:root {
  --navy: #071a23;
  --navy-2: #0c2833;
  --paper: #f3f1ea;
  --white: #fffef9;
  --ink: #0a2028;
  --muted: #526168;
  --line: rgba(10, 32, 40, 0.18);
  --orange: #ed5526;
  --teal: #2aa198;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Aptos", "Segoe UI Variable", "Segoe UI", Arial, sans-serif; font-size: 1rem; line-height: 1.65; text-rendering: optimizeLegibility; }
a { color: inherit; }
::selection { background: var(--orange); color: white; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; top: -5rem; left: 1rem; padding: .7rem 1rem; background: white; color: var(--ink); text-decoration: none; }
.skip-link:focus { top: 1rem; }
.shell { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.13); background: rgba(7,26,35,.95); color: white; backdrop-filter: blur(14px); }
.nav-shell { width: min(var(--max), calc(100% - 2rem)); min-height: 4.8rem; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 2.55rem; height: 2.55rem; background: var(--orange); color: var(--navy); font-weight: 950; letter-spacing: -.08em; }
.brand-copy strong, .brand-copy span { display: block; }
.brand-copy strong { font-size: .88rem; line-height: 1; letter-spacing: .12em; text-transform: uppercase; }
.brand-copy span { margin-top: .38rem; color: rgba(255,255,255,.48); font-size: .64rem; line-height: 1; letter-spacing: .18em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: 1.4rem; }
.desktop-nav a { color: rgba(255,255,255,.68); font-size: .82rem; font-weight: 750; text-decoration: none; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: white; }
.desktop-nav .nav-cta { padding: .62rem .9rem; border: 1px solid rgba(255,255,255,.26); color: white; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { cursor: pointer; list-style: none; font-weight: 800; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-panel { position: absolute; right: 0; top: 2.25rem; width: min(18rem, calc(100vw - 2rem)); padding: .75rem; border: 1px solid rgba(255,255,255,.15); background: var(--navy); box-shadow: 0 24px 70px rgba(0,0,0,.34); }
.mobile-panel a { display: block; padding: .75rem; text-decoration: none; }

.hero { position: relative; overflow: hidden; min-height: 40rem; display: flex; align-items: stretch; background: var(--navy); color: white; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, #000, rgba(0,0,0,.3) 72%, transparent); }
.hero::after { content: ""; position: absolute; right: -12rem; top: 3rem; width: 34rem; height: 34rem; border: 1px solid rgba(42,161,152,.38); transform: rotate(18deg); box-shadow: 0 0 0 5rem rgba(42,161,152,.03), 0 0 0 10rem rgba(42,161,152,.018); }
.hero-shell { position: relative; z-index: 2; width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; padding: clamp(5rem, 10vw, 8.5rem) 0 4rem; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(16rem, .6fr); gap: 4rem; align-items: end; }
.eyebrow, .kicker, .status, .micro { margin: 0; font-size: .72rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow { color: #6bd1c8; }
.kicker { color: var(--orange); }
.hero h1, .page-hero h1, .section-title { margin: 0; font-weight: 950; letter-spacing: -.065em; }
.hero h1 { max-width: 10ch; margin-top: 1.25rem; font-size: clamp(4rem, 8.5vw, 8.2rem); line-height: .85; }
.hero h1 span { color: #ff7043; }
.hero-lede { max-width: 48rem; margin: 2rem 0 0; color: rgba(255,255,255,.66); font-size: clamp(1.07rem, 1.6vw, 1.28rem); line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.25rem; }
.button { min-height: 3.3rem; display: inline-flex; align-items: center; justify-content: center; gap: .65rem; padding: .78rem 1.15rem; border: 1px solid var(--ink); background: var(--ink); color: white; font-size: .92rem; font-weight: 850; text-decoration: none; transition: transform 150ms ease, background 150ms ease; }
.button:hover { transform: translateY(-2px); }
.button-orange { border-color: var(--orange); background: var(--orange); color: #1b0c07; }
.button-ghost { border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.04); }
.button-paper { border-color: var(--ink); background: transparent; color: var(--ink); }
.hero-route { border-top: 1px solid rgba(255,255,255,.16); }
.hero-route a { display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; min-height: 4rem; border-bottom: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.64); text-decoration: none; }
.hero-route a:hover { color: white; }
.hero-route span { color: #6bd1c8; font-family: monospace; font-size: .76rem; }

.page-hero { padding: clamp(5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6.5rem); background: var(--navy); color: white; }
.page-hero h1 { max-width: 11ch; margin-top: 1.15rem; font-size: clamp(3.5rem, 8vw, 7.5rem); line-height: .86; }
.page-hero p:last-child { max-width: 48rem; margin: 2rem 0 0; color: rgba(255,255,255,.64); font-size: 1.2rem; line-height: 1.75; }

.section { padding: clamp(4.5rem, 8vw, 7.5rem) 0; border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: .65fr 1.35fr; gap: 3rem; align-items: end; margin-bottom: 3.25rem; }
.section-title { max-width: 11ch; margin-top: .8rem; font-size: clamp(2.75rem, 6vw, 5.7rem); line-height: .9; }
.section-lede { max-width: 46rem; margin: 0; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.75; }
.white { background: var(--white); }
.night { background: var(--navy); color: white; }
.night .section-lede, .night .card p, .night .list-row p { color: rgba(255,255,255,.57); }
.night .kicker { color: #6bd1c8; }

.door-grid, .card-grid, .portfolio-grid, .proof-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.door, .card, .portfolio-card, .proof-card { grid-column: span 6; min-height: 20rem; display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.5rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.23); }
.door:first-child { background: var(--white); }
.door .micro, .card .micro, .portfolio-card .micro { color: var(--orange); }
.door h3, .card h3, .portfolio-card h3, .proof-card h3 { margin: 2.5rem 0 0; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; letter-spacing: -.045em; }
.door p, .card p, .portfolio-card p, .proof-card p { color: var(--muted); }
.card-link { margin-top: auto; padding-top: 1.5rem; font-size: .9rem; font-weight: 900; text-underline-offset: .34rem; }
.card { grid-column: span 4; min-height: 22rem; }
.night .card-grid, .night .proof-grid { border-color: rgba(255,255,255,.14); }
.night .card, .night .proof-card { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.025); }
.night .card h3, .night .proof-card h3 { color: white; }
.night .card .micro { color: #6bd1c8; }

.portfolio-card { grid-column: span 4; min-height: 23rem; }
.portfolio-card.featured { grid-column: span 8; background: var(--white); }
.status { width: fit-content; display: inline-flex; align-items: center; gap: .55rem; color: #14675f; }
.status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.status.building { color: #9b4300; }
.status.research { color: #66716d; }

.proof-card { grid-column: span 6; min-height: 18rem; }
.proof-card .outcome { margin-top: auto; color: white; font-size: 1.12rem; font-weight: 800; }

.band { padding: 1rem 0; border-block: 1px solid rgba(255,255,255,.13); background: var(--navy-2); color: white; overflow: hidden; }
.band-line { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; display: flex; flex-wrap: wrap; gap: .9rem 2rem; color: rgba(255,255,255,.62); font-size: .78rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.band-line strong { color: #6bd1c8; }

.steps { counter-reset: step; border-top: 1px solid var(--line); }
.step { counter-increment: step; display: grid; grid-template-columns: 5rem minmax(0,1fr); gap: 1.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.step::before { content: "0" counter(step); color: var(--orange); font-family: monospace; font-size: .8rem; padding-top: .3rem; }
.step h3 { margin: 0; font-size: 1.42rem; letter-spacing: -.025em; }
.step p { margin: .35rem 0 0; color: var(--muted); }

.case { display: grid; grid-template-columns: .6fr 1.4fr; gap: 3rem; padding: 2.5rem 0; border-top: 1px solid var(--line); }
.case:last-child { border-bottom: 1px solid var(--line); }
.case h2 { margin: .65rem 0 0; max-width: 12ch; font-size: clamp(2rem, 4vw, 3.8rem); line-height: .95; letter-spacing: -.05em; }
.case-body { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.4rem; }
.case-body h3 { margin: 0 0 .55rem; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.case-body p { margin: 0; color: var(--muted); }

.list { border-top: 1px solid var(--line); }
.list-row { display: grid; grid-template-columns: .7fr 1.3fr; gap: 2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.list-row h3 { margin: 0; font-size: 1.2rem; }
.list-row p { margin: 0; color: var(--muted); }
.night .list { border-color: rgba(255,255,255,.14); }
.night .list-row { border-color: rgba(255,255,255,.14); }

.form-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-aside { position: sticky; top: 7rem; }
.contact-aside h2 { margin: .8rem 0 0; font-size: clamp(2.8rem,6vw,5.7rem); line-height: .9; letter-spacing: -.06em; }
.contact-aside p { margin: 1.5rem 0 0; color: var(--muted); }
.direct-links { margin-top: 2rem; border-top: 1px solid var(--line); }
.direct-links a { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); font-weight: 850; text-decoration: none; }
.form-card { padding: clamp(1.5rem,4vw,3.25rem); border: 1px solid var(--line); background: var(--white); box-shadow: 0 28px 70px rgba(7,26,35,.09); }
.form-card h2 { margin: 0; font-size: 2rem; letter-spacing: -.035em; }
.form-card > p { color: var(--muted); }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem; margin-top: 2rem; }
.field { display: block; }
.field.full { grid-column: 1 / -1; }
.field span { display: block; margin-bottom: .45rem; font-size: .76rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; min-height: 3.1rem; border: 1px solid rgba(10,32,40,.26); border-radius: 0; background: #fbfaf5; color: var(--ink); font: inherit; padding: .72rem .8rem; }
.field textarea { min-height: 9rem; resize: vertical; }
.consent { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1rem 1fr; gap: .7rem; align-items: start; color: var(--muted); font-size: .88rem; }
.consent input { width: 1.1rem; height: 1.1rem; margin-top: .25rem; }
.form-card button { margin-top: 1.5rem; border: 0; cursor: pointer; }
.form-note { margin: 1rem 0 0; font-size: .82rem; }
.honeypot { position: absolute; left: -9999px; }

.callout { padding: clamp(2rem,5vw,4rem); border: 1px solid var(--line); background: var(--white); }
.callout h2 { margin: 0; max-width: 15ch; font-size: clamp(2.7rem,6vw,5.5rem); line-height: .9; letter-spacing: -.06em; }
.callout p { max-width: 48rem; margin: 1.5rem 0 0; color: var(--muted); font-size: 1.1rem; }
.callout .button { margin-top: 1.7rem; }

.prose { max-width: 50rem; }
.prose h2 { margin-top: 2.5rem; font-size: 1.55rem; letter-spacing: -.025em; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); }

.site-footer { padding: 3rem 0; background: #041016; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: end; }
.footer-grid p { margin: 0; color: rgba(255,255,255,.43); font-size: .82rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1rem; }
.footer-links a { color: rgba(255,255,255,.64); font-size: .82rem; text-decoration: none; }
.footer-links a:hover { color: white; }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .hero-shell, .section-head, .form-layout, .case, .footer-grid { grid-template-columns: 1fr; }
  .hero-shell { gap: 3rem; }
  .card, .portfolio-card, .portfolio-card.featured { grid-column: span 6; }
  .contact-aside { position: static; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .shell, .nav-shell, .hero-shell, .band-line { width: min(100% - 1.25rem, var(--max)); }
  .brand-copy span { display: none; }
  .hero h1 { font-size: clamp(3.6rem,18vw,5.7rem); }
  .hero::after { right: -25rem; }
  .door, .card, .portfolio-card, .portfolio-card.featured, .proof-card { grid-column: span 12; min-height: 17rem; }
  .case-body, .field-grid { grid-template-columns: 1fr; }
  .case-body { gap: 1.5rem; }
  .field.full, .consent { grid-column: auto; }
  .list-row { grid-template-columns: 1fr; gap: .4rem; }
}

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