:root {
  --navy: #131c52;
  --deep: #0c1340;
  --peach: #ffc680;
  --peach-soft: #ffe3bf;
  --line: rgba(255, 255, 255, .14);
  --grid: rgba(255, 255, 255, .06);
  --paper: #f6f2ea;
  --ink: #131c52;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--sans);
  color: #e9ecff;
  background: var(--navy);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  line-height: 1.6;
  font-size: 17px
}

a {
  color: inherit
}

.skip {
  position: absolute;
  left: -999px
}

.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--peach);
  color: var(--navy);
  padding: 8px 12px;
  z-index: 9
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase
}

.sheet {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px
}

/* drawing-frame header */
.frame-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(19, 28, 82, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line)
}

.frame-top .sheet {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  min-height: 64px
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding-right: 24px;
  border-right: 1px solid var(--line)
}

.brand img {
  width: 155px;
  /* height: 34px */
}

.brand b {
  font-size: 22px;
  letter-spacing: -.01em;
  font-weight: 600
}

.sheets {
  display: flex;
  list-style: none
}

.sheets a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 0 18px;
  text-decoration: none;
  border-right: 1px solid var(--line);
  font-size: 15px
}

.sheets a span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--peach);
  letter-spacing: .1em
}

.sheets a:hover,
.sheets a:focus-visible {
  background: rgba(255, 198, 128, .08)
}

.rev {
  display: flex;
  align-items: center;
  padding-left: 20px;
  gap: 14px
}

.rev a {
  background: var(--peach);
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 16px;
  font-size: 15px
}

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: #fff;
  font-family: var(--mono);
  padding: 8px 12px
}

/* hero */
.hero {
  padding: 70px 0 40px;
  position: relative
}

.hero .sheet {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: center
}

.hero h1 {
  font-size: clamp(44px, 5.6vw, 80px);
  line-height: .98;
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 18px 0 22px
}

.hero h1 em {
  font-style: normal;
  color: var(--peach)
}

.hero p.lead {
  max-width: 470px;
  color: #c8cdf0;
  font-size: 19px
}

.hero .actions {
  display: flex;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap
}

.btn-line {
  border: 1px dashed var(--peach);
  color: var(--peach);
  text-decoration: none;
  padding: 13px 18px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase
}

.btn-solid {
  background: var(--peach);
  color: var(--navy);
  text-decoration: none;
  padding: 13px 18px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600
}

.drawing {
  border: 1px solid var(--line);
  padding: 14px;
  position: relative
}

.drawing svg {
  width: 100%;
  height: auto;
  display: block
}

.drawing .cap {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 10px;
  color: #aab1de
}

/* section header (sheet-style, not eyebrow) */
.sec {
  padding: 96px 0;
  border-top: 1px solid var(--line)
}

.sec-head {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  margin-bottom: 44px;
  align-items: end
}

.sec-head .tag {
  border: 1px solid var(--peach);
  color: var(--peach);
  font-family: var(--mono);
  text-align: center;
  padding: 16px 0;
  font-size: 22px
}

.sec-head h2 {
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -.015em
}

.sec-head p {
  color: #b9bfe6;
  max-width: 620px;
  margin-top: 10px
}

/* diagnosis */
.diag {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px
}

.symptoms {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.symptoms label {
  display: flex;
  gap: 14px;
  border: 1px dashed var(--line);
  padding: 18px;
  cursor: pointer;
  height: 100%;
  transition: .2s
}

.symptoms input {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--peach);
  flex: none;
  margin-top: 3px;
  display: grid;
  place-content: center
}

.symptoms input:checked::after {
  content: "×";
  color: var(--peach);
  font-family: var(--mono);
  font-size: 20px;
  line-height: 1
}

.symptoms label:has(input:checked) {
  border-style: solid;
  border-color: var(--peach);
  background: rgba(255, 198, 128, .06)
}

.symptoms strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3
}

.symptoms small {
  color: #aab1de;
  font-size: 14px
}

.readout {
  border: 1px solid var(--peach);
  padding: 28px;
  position: sticky;
  top: 100px;
  align-self: start;
  background: var(--deep)
}

.readout .meter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px 0
}

.readout .meter div {
  border: 1px solid var(--line);
  padding: 12px 10px
}

.readout .meter b {
  display: block;
  font-family: var(--mono);
  font-size: 30px;
  color: var(--peach)
}

.readout h3 {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15
}

.readout p {
  color: #c3c8ee;
  margin-top: 10px
}

/* specification sheet on paper */
.paper {
  background: var(--paper);
  color: var(--ink);
  border-top: none
}

.paper .sec-head .tag {
  border-color: var(--ink);
  color: var(--ink)
}

.paper .sec-head p {
  color: #3d4677
}

table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px
}

.spec th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 2px solid var(--ink);
  color: #4a5385
}

.spec td {
  padding: 20px 14px;
  border-bottom: 1px solid #cfcbbf;
  vertical-align: top
}

.spec td:first-child {
  font-family: var(--mono);
  font-weight: 600;
  width: 70px
}

.spec td strong {
  font-size: 20px;
  display: block;
  line-height: 1.2
}

.spec tr:hover td {
  background: #efe9dc
}

.spec .span {
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
  background: var(--peach-soft);
  padding: 3px 8px
}

/* gantt */
.gantt {
  border: 1px solid var(--line)
}

.g-row {
  display: grid;
  grid-template-columns: 220px repeat(12, 1fr);
  border-bottom: 1px solid var(--line);
  min-height: 62px
}

.g-row:last-child {
  border-bottom: none
}

.g-row>div {
  border-left: 1px solid var(--grid)
}

.g-row .label {
  border-left: none;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.g-row .label b {
  font-weight: 600;
  font-size: 17px
}

.g-row .label small {
  color: #aab1de;
  font-size: 13px
}

.g-head {
  min-height: 40px
}

.g-head div {
  font-family: var(--mono);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aab1de
}

.bar {
  align-self: center;
  height: 22px;
  background: repeating-linear-gradient(135deg, var(--peach) 0 8px, #ffd7a6 8px 16px);
  margin: 0 4px;
  position: relative
}

.bar.outline {
  background: none;
  border: 1.5px dashed var(--peach)
}

.gantt-note {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  color: #aab1de;
  flex-wrap: wrap
}

.key {
  display: inline-block;
  width: 26px;
  height: 10px;
  margin-right: 8px;
  vertical-align: middle;
  background: repeating-linear-gradient(135deg, var(--peach) 0 6px, #ffd7a6 6px 12px)
}

.key.o {
  background: none;
  border: 1.5px dashed var(--peach)
}

/* tolerances */
.tol {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line)
}

.tol div {
  padding: 30px 24px;
  border-right: 1px solid var(--line);
  position: relative
}

.tol div:last-child {
  border-right: none
}

.tol .dim {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--peach);
  font-family: var(--mono);
  font-size: 12px;
  margin-bottom: 22px
}

.tol .dim::before,
.tol .dim::after {
  content: "";
  height: 1px;
  background: var(--peach);
  flex: 1
}

.tol h3 {
  font-size: 24px;
  line-height: 1.15;
  font-weight: 600;
  margin-bottom: 10px
}

.tol p {
  color: #b9bfe6;
  font-size: 16px
}

/* notes */
.notes {
  columns: 2;
  column-gap: 56px;
  counter-reset: n
}

.notes details {
  break-inside: avoid;
  border-top: 1px solid var(--line);
  padding: 18px 0;
  counter-increment: n
}

.notes summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: 70px 1fr 20px;
  font-size: 19px;
  font-weight: 500
}

.notes summary::before {
  content: "NOTE "counter(n);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--peach);
  padding-top: 6px
}

.notes summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--peach)
}

.notes details[open] summary::after {
  content: "–"
}

.notes details p {
  padding: 12px 0 0 70px;
  color: #c3c8ee;
  font-size: 16px
}

/* title block */
.titleblock {
  border: 2px solid #e9ecff;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  margin: 20px 0 40px
}

.titleblock>div {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 20px
}

.titleblock .big {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px
}

.titleblock .big h2 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.02em
}

.titleblock .k {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--peach);
  letter-spacing: .1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px
}

.titleblock .wide {
  grid-column: span 2
}

.legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 22px 34px;
  color: #aab1de;
  font-size: 14px
}

.legal nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap
}

:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: 3px
}

@media (max-width:1000px) {
  .sheets {
    display: none
  }

  .menu-btn {
    display: block
  }

  .frame-top .sheet {
    grid-template-columns: 100px 1fr auto;
  }

  .sheets.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--deep);
    border-bottom: 1px solid var(--line)
  }

  .sheets.open a {
    padding: 14px 28px;
    border-right: none;
    border-top: 1px solid var(--line)
  }

  .rev a {
    display: none
  }

  .hero .sheet,
  .diag {
    grid-template-columns: 1fr
  }

  .symptoms {
    grid-template-columns: 1fr
  }

  .tol {
    grid-template-columns: 1fr 1fr
  }

  .tol div:nth-child(2) {
    border-right: none
  }

  .tol div {
    border-bottom: 1px solid var(--line)
  }

  .notes {
    columns: 1
  }

  .g-row {
    grid-template-columns: 130px repeat(12, 1fr)
  }

  .titleblock {
    grid-template-columns: 1fr
  }

  .titleblock .wide {
    grid-column: auto
  }

  .spec thead {
    display: none
  }

  .spec tr {
    display: block;
    border-bottom: 1px solid #cfcbbf;
    padding: 14px 0
  }

  .spec td {
    display: block;
    border: none;
    padding: 4px 0
  }

  .sec-head {
    grid-template-columns: 1fr
  }

  .sec-head .tag {
    width: 100px
  }
}

@media (max-width:560px) {
  .tol {
    grid-template-columns: 1fr
  }

  .tol div {
    border-right: none
  }

  .g-row .label small {
    display: none
  }

  .g-head div:nth-child(odd):not(:first-child) {
    color: transparent
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }
}

/* ===================== INNER PAGES ===================== */
/* Everything below styles the inner and policy pages. */
/* page header */
.ph {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line)
}

.ph-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  align-items: end
}

.ph-code {
  border: 1px solid var(--peach);
  color: var(--peach);
  font-family: var(--mono);
  font-size: 24px;
  text-align: center;
  padding: 22px 0
}

.ph h1 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.02em
}

.ph p {
  color: #c8cdf0;
  font-size: 19px;
  max-width: 640px;
  margin-top: 12px
}

/* about */
.split-ab {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px
}

.note-col h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  font-weight: 600;
  margin-top: 8px
}

.prose p {
  color: #d6daf5;
  margin-bottom: 16px;
  font-size: 18px
}

.facts {
  border: 1px solid var(--line)
}

.facts div {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-bottom: 1px solid var(--line)
}

.facts div:last-child {
  border-bottom: none
}

.facts dt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--peach);
  padding: 18px;
  border-right: 1px solid var(--line)
}

.facts dd {
  padding: 18px
}

.principles {
  list-style: none;
  counter-reset: p;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.principles li {
  counter-increment: p;
  border: 1px dashed var(--line);
  padding: 24px;
  color: #c8cdf0
}

.principles li::before {
  content: "0"counter(p);
  display: block;
  font-family: var(--mono);
  color: var(--peach);
  margin-bottom: 10px
}

.principles b {
  color: #fff;
  display: block;
  font-size: 20px;
  font-weight: 600
}

.cta-strip {
  background: var(--peach);
  color: var(--navy);
  padding: 44px 0
}

.cta-strip .sheet {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap
}

.cta-strip h2 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 600
}

.cta-strip .btn-solid {
  background: var(--navy);
  color: var(--peach)
}

/* services */
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px
}

.jump a {
  font-family: var(--mono);
  font-size: 12px;
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-decoration: none
}

.jump a:hover {
  border-color: var(--peach);
  color: var(--peach)
}

.svc {
  display: grid;
  grid-template-columns: 150px 1.6fr 1fr;
  border: 1px solid var(--line);
  margin-bottom: 20px;
  scroll-margin-top: 90px
}

.svc-tag {
  border-right: 1px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.svc-tag span {
  font-family: var(--mono);
  font-size: 30px;
  color: var(--peach)
}

.svc-tag small {
  font-family: var(--mono);
  font-size: 12px;
  color: #aab1de
}

.svc-body {
  padding: 24px 28px
}

.svc-body h2 {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 12px
}

.svc-body p {
  color: #d0d4f2
}

.svc-body .ideal {
  margin-top: 14px;
  border-left: 3px solid var(--peach);
  padding-left: 12px
}

.svc-scope {
  border-left: 1px dashed var(--line);
  padding: 24px;
  background: var(--deep)
}

.svc-scope ul {
  list-style: none;
  margin-top: 10px
}

.svc-scope li {
  padding: 6px 0;
  border-bottom: 1px dotted var(--line)
}

.svc-scope li::before {
  content: "→ ";
  color: var(--peach)
}

/* approach */
.stages {
  border-left: 2px solid var(--peach);
  margin-left: 30px
}

.stage {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 0 0 40px 0;
  position: relative
}

.st-n {
  font-family: var(--mono);
  font-size: 22px;
  background: var(--navy);
  border: 1px solid var(--peach);
  color: var(--peach);
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  margin-left: -31px
}

.stage h2 {
  font-size: 32px;
  font-weight: 600
}

.stage p {
  color: #d0d4f2;
  max-width: 720px;
  margin-top: 6px
}

.stage .out {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--peach)
}

.need {
  list-style: none
}

.need li {
  padding: 14px 0;
  border-bottom: 1px solid #cfcbbf;
  font-size: 18px
}

.need li::before {
  content: "☐ ";
  font-family: var(--mono)
}

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start
}

.draft-form {
  display: grid;
  gap: 16px
}

.draft-form label {
  display: grid;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #aab1de
}

.draft-form input,
.draft-form select,
.draft-form textarea {
  font: inherit;
  font-family: var(--sans);
  font-size: 17px;
  text-transform: none;
  letter-spacing: 0;
  background: transparent;
  border: 1px dashed var(--line);
  color: #fff;
  padding: 12px
}

.draft-form select option {
  color: #000
}

.draft-form input:focus,
.draft-form textarea:focus,
.draft-form select:focus {
  border-style: solid;
  border-color: var(--peach);
  outline: none
}

.draft-form .consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--sans);
  font-size: 15px
}

.draft-form .consent input {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px
}

.draft-form button {
  border: none;
  cursor: pointer;
  justify-self: start
}

.form-note {
  font-size: 14px;
  color: #aab1de
}

.tb-contact {
  grid-template-columns: 1fr 1fr;
  margin: 0
}

.tb-contact .wide {
  grid-column: span 2
}

/* legal */
.legal-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start
}

.legal-idx {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line)
}

.legal-idx a {
  font-family: var(--mono);
  font-size: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-decoration: none
}

.legal-idx a:last-child {
  border-bottom: none
}

.legal-idx a:hover {
  color: var(--peach)
}

.clause {
  padding: 0 0 30px;
  margin-bottom: 30px;
  border-bottom: 1px dashed var(--line);
  scroll-margin-top: 90px
}

.clause h2 {
  font-size: 26px;
  font-weight: 600;
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 12px
}

.clause h2 span {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--peach)
}

.clause p,
.clause li {
  color: #d0d4f2;
  max-width: 760px
}

.clause p+p,
.clause p+ul,
.clause ul+p {
  margin-top: 10px
}

.clause ul {
  padding-left: 20px
}

.clause li {
  margin: 6px 0
}

@media (max-width:1000px) {

  .split-ab,
  .contact-grid,
  .legal-grid {
    grid-template-columns: 1fr
  }

  .legal-idx {
    position: static
  }

  .svc {
    grid-template-columns: 1fr
  }

  .svc-tag {
    flex-direction: row;
    align-items: baseline;
    border-right: none;
    border-bottom: 1px solid var(--line)
  }

  .svc-scope {
    border-left: none;
    border-top: 1px dashed var(--line)
  }

  .facts div {
    grid-template-columns: 1fr
  }

  .facts dt {
    border-right: none;
    padding-bottom: 0
  }

  .principles {
    grid-template-columns: 1fr
  }

  .ph-grid {
    grid-template-columns: 1fr
  }

  .ph-code {
    width: 110px;
    padding: 14px 0;
    font-size: 18px
  }

  .tb-contact {
    grid-template-columns: 1fr
  }

  .tb-contact .wide {
    grid-column: auto
  }
}