:root {
  color-scheme: light;
  --paper: #f6f7f3;
  --white: #fffefa;
  --ink: #0b293f;
  --ink-deep: #08273b;
  --teal: #087d79;
  --teal-bright: #16b8ae;
  --body: #425966;
  --line: #d3dedb;
  --sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; }
::selection { background: #a6e5dc; color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 5px; border-radius: 2px; }
.skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; padding: .8rem 1rem; color: #fff; background: var(--ink); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.shell { width: min(100%, 1510px); margin-inline: auto; padding-inline: clamp(1.5rem, 5.2vw, 5.5rem); }
.section-pad { padding-block: clamp(6.5rem, 9vw, 9rem); }
.section-kicker, .eyebrow { margin: 0; color: var(--teal); font-family: var(--mono); font-size: .69rem; font-weight: 700; line-height: 1.6; letter-spacing: .07em; }

/* Header */
.site-header { position: relative; z-index: 20; border-bottom: 1px solid #dce3e0; background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 5.45rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; flex: 0 0 auto; font-size: 1.48rem; font-weight: 700; letter-spacing: -.052em; }
.brand-mark { position: relative; display: block; width: 2.55rem; height: 2.55rem; flex: 0 0 auto; overflow: hidden; }
.brand-mark img { position: absolute; top: -1.08rem; left: -1.08rem; width: 4.75rem; height: 4.75rem; max-width: none; mix-blend-mode: multiply; }
.brand-llc { font-size: .56em; font-weight: 600; letter-spacing: .035em; vertical-align: .13em; }
.site-nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.75rem); }
.site-nav > a { font-size: .84rem; font-weight: 600; transition: color .18s ease; }
.site-nav > a:hover { color: var(--teal); }
.site-nav .nav-contact { display: inline-flex; align-items: center; gap: 1.6rem; margin-left: .2rem; padding: .72rem 1rem; border: 1px solid #b4c5c0; border-radius: 2px; }
.nav-contact span { font-size: 1.15rem; line-height: 1; }
.menu-toggle { display: none; }

/* Hero */
.hero { border-bottom: 1px solid var(--line); background: var(--paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .97fr) minmax(0, 1.03fr); align-items: center; gap: clamp(3rem, 5.2vw, 5.75rem); min-height: 46rem; padding-block: clamp(5rem, 7vw, 7rem); }
.hero-copy { min-width: 0; }
.hero-copy .eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; color: #315466; }
.eyebrow-rule { width: 1.6rem; height: 1px; background: var(--teal); }
.eyebrow-slash { color: #839e9e; }
.hero h1 { margin: 2.05rem 0 1.7rem; font-size: clamp(3.9rem, 5.8vw, 6.1rem); font-weight: 600; letter-spacing: -.072em; line-height: 1.055; }
.hero h1 span { color: var(--teal); }
.hero-lede { max-width: 34rem; margin: 0; color: var(--body); font-size: clamp(1.12rem, 1.48vw, 1.31rem); line-height: 1.68; }
.text-link { display: inline-flex; align-items: center; gap: 1.6rem; margin-top: 2.4rem; padding-bottom: .62rem; border-bottom: 1px solid var(--ink); font-size: .95rem; font-weight: 700; transition: color .18s ease, border-color .18s ease; }
.text-link:hover { color: var(--teal); border-color: var(--teal); }
.text-link span { font-size: 1.3rem; font-weight: 400; line-height: 1; transition: transform .18s ease; }
.text-link:hover span { transform: translate(3px, -3px); }
.hero-caption { margin: 4.15rem 0 0; color: #627c7f; font-family: var(--mono); font-size: .64rem; font-weight: 600; letter-spacing: .075em; }
.hero-caption span { padding-inline: .55rem; color: #93abaa; }

/* Component map */
.systems-diagram { min-width: 0; margin: 0; border: 1px solid #254a5b; border-radius: 3px; background: #0a2a40; color: #e4f1ed; box-shadow: 0 21px 50px rgba(8, 38, 56, .12); }
.diagram-header { display: flex; justify-content: space-between; gap: 1rem; padding: 1.55rem 1.65rem; border-bottom: 1px solid #345366; color: #9bd6cf; font-family: var(--mono); font-size: .64rem; font-weight: 700; letter-spacing: .06em; }
.diagram-header span:last-child { color: #94b9b9; white-space: nowrap; }
.diagram-lane { padding: 1.6rem 1.65rem 1.8rem; }
.diagram-lane-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; color: #9ad9d0; font-family: var(--mono); font-size: .61rem; font-weight: 700; letter-spacing: .04em; }
.diagram-lane-head span:last-child { color: #95b7bd; text-align: right; }
.diagram-flow { display: grid; grid-template-columns: minmax(0, 1fr) .95rem minmax(0, 1fr) .95rem minmax(0, 1fr); align-items: center; gap: .4rem; }
.diagram-node { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 10.25rem; padding: .85rem .78rem; border: 1px solid #4a7180; background: #12384c; }
.node-index { margin-bottom: 1.38rem; color: #91d4cb; font-family: var(--mono); font-size: .6rem; font-weight: 700; letter-spacing: .075em; }
.diagram-node strong { display: block; margin-bottom: .4rem; font-size: 1rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.diagram-node small { color: #b5ced1; font-family: var(--mono); font-size: .7rem; line-height: 1.55; overflow-wrap: anywhere; }
.flow-arrow { color: #78cfc5; font-family: var(--mono); font-size: 1.1rem; text-align: center; }
.diagram-lane-related { border-top: 1px solid #345366; padding-top: 1.45rem; padding-bottom: 1.5rem; }
.related-components { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .56rem; }
.related-components span { display: flex; align-items: center; min-height: 3.2rem; padding: .58rem .65rem; border-left: 2px solid #32b8ae; background: #12384c; color: #d3e6e3; font-family: var(--mono); font-size: .68rem; line-height: 1.45; }
.systems-diagram figcaption { padding: .85rem 1.65rem 1.15rem; border-top: 1px solid #345366; color: #afc6cb; font-size: .72rem; line-height: 1.5; }

/* Shared section structure */
.section-heading { display: grid; grid-template-columns: minmax(10rem, .3fr) minmax(0, 1fr); gap: 3rem; }
.section-heading h2 { margin: -.35rem 0 1rem; font-size: clamp(3.05rem, 4.4vw, 5.1rem); font-weight: 600; letter-spacing: -.065em; line-height: 1.11; }
.section-heading p:not(.section-kicker) { max-width: 46rem; margin: 0; color: var(--body); font-size: 1.15rem; line-height: 1.75; }

/* Research areas */
.areas-section { background: var(--white); }
.area-list { margin-top: clamp(4.3rem, 6vw, 6rem); border-top: 1px solid #a9bdb9; }
.area-row { display: grid; grid-template-columns: 3.3rem minmax(13rem, .75fr) minmax(0, 1.2fr) minmax(10rem, .55fr); align-items: start; gap: clamp(1rem, 2vw, 2.5rem); padding: 2.1rem 0 2.2rem; border-bottom: 1px solid #cad7d2; }
.row-index, .row-meta { color: var(--teal); font-family: var(--mono); font-size: .69rem; font-weight: 700; line-height: 1.8; letter-spacing: .035em; }
.area-row h3 { margin: 0; font-size: clamp(1.45rem, 1.9vw, 2rem); font-weight: 600; letter-spacing: -.043em; line-height: 1.25; }
.area-row p { max-width: 32rem; margin: -.15rem 0 0; color: var(--body); font-size: .97rem; line-height: 1.68; }
.row-meta { justify-self: end; color: #587779; text-align: right; }

/* Developed systems */
.systems-section { background: #edf3f0; }
.systems-heading { margin-bottom: 4.4rem; }
.system-row { display: grid; grid-template-columns: minmax(10rem, .3fr) minmax(0, 1fr); gap: 3rem; padding: 3.2rem 0 4rem; border-top: 1px solid #aec4be; }
.system-ident { padding-top: .45rem; }
.system-number { color: var(--teal); font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .05em; }
.system-ident p { margin: 1rem 0 0; color: #5f7b7d; font-family: var(--mono); font-size: .65rem; font-weight: 700; line-height: 1.6; letter-spacing: .025em; }
.system-content h3 { margin: 0 0 1rem; font-size: clamp(2rem, 3vw, 3rem); font-weight: 600; letter-spacing: -.058em; line-height: 1.18; }
.system-lede { max-width: 49rem; margin: 0; color: #3e5763; font-size: 1.14rem; line-height: 1.75; }
.system-details { margin: 2.15rem 0 0; border-top: 1px solid #c3d2cd; }
.system-details div { display: grid; grid-template-columns: minmax(8.5rem, .25fr) minmax(0, 1fr); gap: 1.5rem; padding: .95rem 0; border-bottom: 1px solid #cbd8d3; }
.system-details dt { color: var(--ink); font-size: .88rem; font-weight: 700; }
.system-details dd { margin: 0; color: #4d6670; font-size: .91rem; line-height: 1.6; }
.research-status { display: grid; grid-template-columns: minmax(10rem, .3fr) minmax(0, 1fr); gap: 3rem; padding: 1.35rem 0; border-top: 1px solid #87a9a5; }
.research-status span { color: var(--teal); font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: .05em; }
.research-status p { margin: 0; color: #34545c; font-size: .89rem; line-height: 1.65; }

/* Engineering */
.engineering-section { background: var(--ink-deep); color: #f4f8f5; }
.engineering-section .section-kicker { color: #86d7cb; }
.engineering-heading p:not(.section-kicker) { color: #c1d2d1; }
.engineering-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(4rem, 6vw, 6rem); border-top: 1px solid #496a73; }
.engineering-grid article { min-width: 0; padding: 1.5rem 1.5rem 0 0; }
.engineering-grid article + article { padding-left: 1.5rem; border-left: 1px solid #496a73; }
.engineering-grid article > span { color: #83d5ca; font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .04em; }
.engineering-grid h3 { margin: 3rem 0 .85rem; font-size: clamp(1.45rem, 1.9vw, 1.85rem); font-weight: 600; letter-spacing: -.04em; }
.engineering-grid p { margin: 0; color: #b9cbcf; font-size: .94rem; line-height: 1.72; }

/* Contact */
.contact-section { padding-block: clamp(6rem, 9vw, 8.5rem); background: #dceee8; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, .6fr); align-items: end; gap: clamp(3rem, 8vw, 9rem); }
.contact-grid h2 { margin: 1.65rem 0 0; font-size: clamp(3.2rem, 5vw, 5.6rem); font-weight: 600; letter-spacing: -.065em; line-height: 1.08; }
.contact-grid > div:last-child { padding-bottom: .15rem; }
.contact-grid > div:last-child p { max-width: 28rem; margin: 0 0 2rem; color: #3e6267; font-size: 1.12rem; line-height: 1.7; }
.contact-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2.5rem; min-width: 17rem; padding: 1.1rem 1.25rem; background: var(--ink); color: #fff; font-size: .89rem; font-weight: 700; transition: background .18s ease, transform .18s ease; }
.contact-button:hover { background: #105a62; transform: translateY(-2px); }
.contact-button span { font-size: 1.35rem; font-weight: 400; line-height: 1; }
.site-footer { background: var(--ink-deep); color: #b9cdd0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 7.5rem; font-size: .75rem; }
.footer-brand { color: #fff; font-size: 1.37rem; font-weight: 700; letter-spacing: -.05em; white-space: nowrap; }

@media (max-width: 1120px) {
  .hero-grid { gap: 2.5rem; }
  .hero h1 { font-size: clamp(3.6rem, 5.8vw, 5.3rem); }
  .diagram-header, .diagram-lane { padding-inline: 1.2rem; }
  .systems-diagram figcaption { padding-inline: 1.2rem; }
  .diagram-node { padding-inline: .55rem; }
  .area-row { grid-template-columns: 2.5rem minmax(11rem, .8fr) minmax(0, 1.3fr); }
  .row-meta { grid-column: 2 / -1; justify-self: start; text-align: left; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 4.5rem; }
  .header-inner { min-height: 4.6rem; }
  .menu-toggle { position: relative; display: block; width: 2.7rem; height: 2.7rem; padding: .6rem; border: 1px solid #b7c9c3; border-radius: 2px; background: transparent; color: var(--ink); cursor: pointer; }
  .menu-toggle span { position: absolute; left: .7rem; right: .7rem; height: 1.5px; background: currentColor; transition: transform .2s ease, top .2s ease; }
  .menu-toggle span:first-child { top: 1.08rem; }
  .menu-toggle span:last-child { top: 1.55rem; }
  .menu-toggle[aria-expanded="true"] span:first-child { top: 1.3rem; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { top: 1.3rem; transform: rotate(-45deg); }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem clamp(1.5rem, 5.2vw, 5.5rem) 2rem; border-bottom: 1px solid #c5d3cf; background: var(--paper); box-shadow: 0 18px 34px rgba(8, 36, 56, .08); }
  .site-nav.is-open { display: flex; }
  .site-nav > a { display: block; padding: 1.05rem 0; border-bottom: 1px solid #d8e0dc; font-size: 1.12rem; }
  .site-nav .nav-contact { display: flex; justify-content: space-between; margin: .85rem 0 0; padding: 1rem; border: 1px solid #a9bbb9; font-size: 1rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 4rem; min-height: 0; padding-block: 5rem 6rem; }
  .hero-copy { max-width: 44rem; }
  .hero h1 { font-size: clamp(4.6rem, 9vw, 6.6rem); }
  .hero-caption { margin-top: 3rem; }
  .systems-diagram { width: min(100%, 47rem); }
  .section-heading { grid-template-columns: 1fr; gap: 1.5rem; }
  .system-row, .research-status { grid-template-columns: 1fr; gap: 1.5rem; }
  .systems-heading { margin-bottom: 3.3rem; }
  .engineering-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
  .engineering-grid article:nth-child(3) { padding-left: 0; border-left: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 650px) {
  .section-pad { padding-block: 5.5rem; }
  .hero-grid { gap: 3.1rem; padding-block: 4.3rem 5.5rem; }
  .hero h1 { margin-top: 1.7rem; font-size: clamp(3.55rem, 10.3vw, 4.85rem); }
  .hero-lede { font-size: 1.08rem; }
  .diagram-flow { grid-template-columns: 1fr; gap: .35rem; }
  .diagram-node { min-height: 0; padding: .8rem 1rem; }
  .node-index { margin-bottom: .45rem; }
  .flow-arrow { transform: rotate(90deg); font-size: 1rem; line-height: 1; }
  .related-components { grid-template-columns: 1fr; }
  .related-components span { min-height: 0; }
  .diagram-lane-head { flex-wrap: wrap; gap: .3rem; }
  .area-row { grid-template-columns: 2.25rem minmax(0, 1fr); gap: .55rem 1rem; padding-block: 1.85rem; }
  .area-row p, .row-meta { grid-column: 2; }
  .area-row h3 { font-size: 1.62rem; }
  .row-meta { margin-top: .3rem; }
  .system-row { padding-block: 2.7rem 3.2rem; }
  .system-ident p { margin-top: .35rem; }
  .system-details div { grid-template-columns: 1fr; gap: .3rem; }
  .engineering-grid { grid-template-columns: 1fr; row-gap: 0; margin-top: 3rem; }
  .engineering-grid article, .engineering-grid article + article, .engineering-grid article:nth-child(3) { padding: 1.8rem 0 2.2rem; border-left: 0; border-bottom: 1px solid #496a73; }
  .engineering-grid h3 { margin-top: 1.2rem; }
  .footer-inner { flex-wrap: wrap; justify-content: flex-start; gap: .85rem 2rem; padding-block: 2rem; }
  .footer-inner span:last-child { flex-basis: 100%; }
}

@media (max-width: 430px) {
  .brand { font-size: 1.3rem; }
  .brand-mark { width: 2.3rem; height: 2.3rem; }
  .brand-mark img { top: -1rem; left: -1rem; width: 4.3rem; height: 4.3rem; }
  .hero-copy .eyebrow { gap: .42rem; font-size: .59rem; }
  .hero h1 { font-size: clamp(3rem, 11.2vw, 3.55rem); }
  .diagram-header, .diagram-lane { padding-inline: 1rem; }
  .systems-diagram figcaption { padding-inline: 1rem; }
  .diagram-header { font-size: .55rem; }
  .diagram-lane-head { font-size: .56rem; }
  .section-heading h2 { font-size: clamp(2.8rem, 10.5vw, 3.4rem); }
  .contact-grid h2 { font-size: 3rem; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 2.65rem; }
  .hero-caption { font-size: .55rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
