/* ============================================================
   Shelton Aviation — raleighexechangar.com
   Tokens, themes, components. Hand-written; no framework.
   ============================================================ */

:root {
  /* brand */
  --navy:   #142853;
  --deep:   #0B1A3A;
  --slate:  #495372;
  --mist:   #919AAC;
  --haze:   #C2CED5;
  --paper:  #F7F8FA;
  --white:  #FEFEFE;
  --beacon: #E4901F;
  --beacon-ink: #1a1206;

  /* semantic (light) */
  --bg:        var(--paper);
  --surface:   var(--white);
  --surface-2: #EEF1F5;
  --ink:       #0F1D3A;
  --ink-2:     var(--slate);
  --ink-3:     #6B7690;
  --rule:      #DCE2EA;
  --rule-2:    var(--haze);
  --band:      var(--navy);
  --band-ink:  #F4F6FA;
  --band-ink-2:#B9C4D6;
  --band-rule: rgba(255,255,255,.14);
  --accent:    var(--beacon);
  --accent-ink:var(--beacon-ink);
  --ok:        #2E8B57;
  --shadow:    0 1px 2px rgba(15,29,58,.06), 0 12px 32px -12px rgba(15,29,58,.18);

  /* type */
  /* Apple look: San Francisco on Apple devices, Inter (closest metric match) everywhere else */
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body:    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:    ui-monospace, "SF Mono", "Geist Mono", Menlo, Consolas, monospace;

  /* layout */
  --measure: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 14px;
  --radius-sm: 8px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #0B1426;
    --surface:   #111C33;
    --surface-2: #172441;
    --ink:       #EEF2F8;
    --ink-2:     #B7C2D6;
    --ink-3:     #8A97B0;
    --rule:      #223052;
    --rule-2:    #2C3B5F;
    --band:      #0B1A3A;
    --band-ink:  #F4F6FA;
    --band-ink-2:#B9C4D6;
    --band-rule: rgba(255,255,255,.12);
    --shadow:    0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg:        #0B1426;
  --surface:   #111C33;
  --surface-2: #172441;
  --ink:       #EEF2F8;
  --ink-2:     #B7C2D6;
  --ink-3:     #8A97B0;
  --rule:      #223052;
  --rule-2:    #2C3B5F;
  --band:      #0B1A3A;
  --band-ink:  #F4F6FA;
  --band-ink-2:#B9C4D6;
  --band-rule: rgba(255,255,255,.12);
  --shadow:    0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.022em; line-height: 1.07; margin: 0; text-wrap: balance; font-weight: 600; }
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 700; letter-spacing: -0.028em; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.32rem); line-height: 1.45; letter-spacing: -0.012em; color: var(--ink-2); max-width: 62ch; text-wrap: pretty; font-weight: 400; }
.measure { max-width: 65ch; }
.eyebrow {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }
.band .eyebrow { color: var(--band-ink-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--body); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 16px 24px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #F0A030; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost.on-dark:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #1B3670; }
.btn svg { width: 18px; height: 18px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: #fff;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.nav-inner { max-width: var(--measure); margin-inline: auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 24px; }
.nav.solid { background: color-mix(in srgb, var(--surface) 86%, transparent); color: var(--ink); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--rule); }
.brand { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.brand img { height: 34px; width: auto; display: block; }
.brand .logo-color { display: none; }
.nav.solid .brand .logo-white, .nav.open .brand .logo-white { display: none; }
.nav.solid .brand .logo-color, .nav.open .brand .logo-color { display: block; }
.nav.light-start:not(.solid):not(.open) .brand .logo-white { display: none; }
.nav.light-start:not(.solid):not(.open) .brand .logo-color { display: block; }
.nav-links { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; font-size: .95rem; font-weight: 500; padding: 8px 12px; border-radius: 999px; opacity: .92; }
.nav-links a:hover { background: rgba(127,127,127,.14); opacity: 1; }
.nav-cta { margin-left: 8px; padding: 11px 18px; font-size: .92rem; }
.nav-toggle { display: none; margin-left: auto; background: transparent; border: 0; color: inherit; width: 44px; height: 44px; border-radius: 999px; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px var(--gutter) 16px; background: var(--surface); color: var(--ink); box-shadow: 0 16px 32px -16px rgba(0,0,0,.4); }
  .nav.open .nav-links { display: flex; }
  .nav.open { background: var(--surface); color: var(--ink); }
  .nav-links a { padding: 14px 12px; font-size: 1.05rem; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; background: var(--deep);
  min-height: min(88vh, 900px); display: grid; align-items: end; overflow: hidden;
}
.hero-media, .hero-media.ph-wrap { position: absolute; inset: 0; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-media.front img { object-position: 50% 88%; }
.hero-media.ramp img { object-position: 55% 50%; }
.hero-video { opacity: 0; transition: opacity 1.2s ease; }
.hero-video.playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,26,58,.50) 0%, rgba(11,26,58,.04) 28%, rgba(11,26,58,.18) 52%, rgba(11,26,58,.90) 100%),
    linear-gradient(90deg, rgba(11,26,58,.35) 0%, rgba(11,26,58,0) 55%);
}
.hero-inner { position: relative; padding-top: 140px; padding-bottom: clamp(40px, 6vw, 80px); display: grid; gap: 22px; max-width: 820px; }
.hero h1 { color: #fff; }
.hero .lede { color: rgba(255,255,255,.86); }
.hero .eyebrow { color: rgba(255,255,255,.8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* hero option B: still photo (same layout as video, no motion) — nothing extra needed */

/* hero option C: Apple-style framed — centered type on paper, photo in a rounded frame below */
.hero-framed { background: var(--bg); color: var(--ink); padding-top: calc(120px + env(safe-area-inset-top, 0px)); }
.hero-framed .hero-copy { text-align: center; display: grid; justify-items: center; gap: 20px; max-width: 900px; margin-inline: auto; }
.hero-framed h1 { font-size: clamp(2.7rem, 7vw, 5.4rem); letter-spacing: -0.035em; line-height: 1.02; color: var(--ink); }
.hero-framed .lede { text-align: center; max-width: 56ch; font-size: clamp(1.15rem, 1.7vw, 1.45rem); }
.hero-framed .hero-actions { justify-content: center; }
.hero-framed .frame { margin-top: clamp(36px, 5vw, 64px); position: relative; border-radius: clamp(18px, 2.4vw, 32px); overflow: hidden; aspect-ratio: 16 / 8.5; background: var(--deep); box-shadow: 0 40px 90px -40px rgba(11,26,58,.45), 0 1px 0 rgba(11,26,58,.06); }
.hero-framed .frame img, .hero-framed .frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-framed .frame .tag { position: absolute; left: 18px; bottom: 16px; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgba(11,26,58,.55); padding: 6px 10px; border-radius: 8px; backdrop-filter: blur(8px); }
@media (max-width: 700px) { .hero-framed .frame { aspect-ratio: 4 / 3; border-radius: 16px; } }
/* on option C the nav starts on a light ground, so use the color logo and ink text from the top */
.nav.light-start { color: var(--ink); }

/* preview-only hero switcher (not shipped in dist) */
.hero-switch { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 92%, transparent); color: #fff; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); font-size: .82rem; backdrop-filter: blur(10px); }
.hero-switch span { padding: 8px 6px 8px 14px; opacity: .7; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; align-self: center; }
.hero-switch a { color: inherit; text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; }
.hero-switch a.on { background: var(--accent); color: var(--accent-ink); }
.hero-switch a:hover:not(.on) { background: rgba(255,255,255,.12); }

/* ---------- specs strip ---------- */
.specs { background: var(--band); color: var(--band-ink); }
.specs-inner { display: grid; grid-template-columns: repeat(5, 1fr); }
.spec { padding: 26px 22px; border-left: 1px solid var(--band-rule); display: grid; gap: 4px; }
.spec:first-child { border-left: 0; }
.spec b { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.spec b sup { font-size: .5em; font-weight: 600; vertical-align: top; margin-left: 2px; }
.spec span { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--band-ink-2); }
@media (max-width: 900px) { .specs-inner { grid-template-columns: repeat(3, 1fr); } .spec:nth-child(4) { border-left: 0; } }
@media (max-width: 560px) { .specs-inner { grid-template-columns: repeat(2, 1fr); } .spec:nth-child(odd) { border-left: 0; } .spec:nth-child(4) { border-left: 1px solid var(--band-rule); } }

/* ---------- split (text + photo) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.flip > .split-media { order: -1; }
.split-copy { display: grid; gap: 18px; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.split-media figcaption { position: absolute; left: 14px; bottom: 14px; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(11,26,58,.55); padding: 6px 10px; border-radius: 6px; backdrop-filter: blur(6px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > .split-media { order: 0; } }

/* ---------- feature list ---------- */
.feature-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.feature-list li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--rule); align-items: start; }
.feature-list li:last-child { border-bottom: 1px solid var(--rule); }
.feature-list svg { width: 22px; height: 22px; color: var(--accent); margin-top: 3px; }
.feature-list b { display: block; font-weight: 600; }
.feature-list span { color: var(--ink-2); font-size: .97rem; }

/* ---------- fit chart ---------- */
.fit { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.fit-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .fit-grid { grid-template-columns: 1fr; } }
.fit-key { display: grid; gap: 10px; font-family: var(--mono); font-size: .76rem; color: var(--ink-3); letter-spacing: .04em; margin-top: 18px; }
.fit-key div { display: flex; align-items: center; gap: 10px; }
.fit-key i { display: inline-block; width: 28px; height: 10px; border-radius: 3px; }
.fit-key i.span { background: var(--navy); }
.fit-key i.len { background: var(--haze); }
.fit-key i.door { width: 2px; height: 16px; background: var(--accent); border-radius: 0; }
.chart { display: grid; gap: 0; }
.chart-head, .chart-row { display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(0, 3fr) 96px; gap: 14px; align-items: center; }
.chart-head { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 0 0 12px; border-bottom: 1px solid var(--rule); }
.chart-row { padding: 13px 0; border-bottom: 1px solid var(--rule); }
.chart-row .name b { display: block; font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: -0.012em; }
.chart-row .name span { font-family: var(--mono); font-size: .7rem; color: var(--ink-3); letter-spacing: .06em; }
.bars { position: relative; height: 30px; overflow-x: clip; }
.bars .door { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--accent); }
.bars .door::after { content: attr(data-label); position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; color: var(--accent); white-space: nowrap; }
.bars .span { position: absolute; left: 0; top: 4px; height: 10px; background: var(--navy); border-radius: 3px; }
.bars .len { position: absolute; left: 0; bottom: 4px; height: 6px; background: var(--haze); border-radius: 3px; }
.chart-row .vals { font-family: var(--mono); font-size: .74rem; color: var(--ink-2); text-align: right; line-height: 1.35; font-variant-numeric: tabular-nums; }
.chart-row .vals b { color: var(--ink); font-weight: 600; }
.chart-head + .chart-row { padding-top: 26px; }
.chart-head + .chart-row .bars .door::after { display: block; }
.chart-row:not(.chart-head + .chart-row) .bars .door::after { display: none; }
@media (max-width: 560px) { .chart-head, .chart-row { grid-template-columns: minmax(110px, 1fr) minmax(0, 2fr); } .chart-row .vals, .chart-head .vals { display: none; } }
.fit-note { font-size: .92rem; color: var(--ink-3); margin-top: 18px; max-width: 60ch; }

/* ---------- amenities ---------- */
.amen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
@media (max-width: 860px) { .amen { grid-template-columns: 1fr; } }
.amen-group { display: grid; gap: 18px; align-content: start; }
.amen-group figure { margin: 0; }
.amen-group img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.amen-group h3 { margin-top: 8px; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(120px, 18vw, 260px); gap: 8px; padding-inline: 8px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 10px; background: var(--surface-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figure:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.gallery figure:nth-child(2) { grid-column: span 2; }
.gallery figure:nth-child(3) { grid-column: span 2; }
.gallery figure:nth-child(4) { grid-column: span 2; }
.gallery figure:nth-child(5) { grid-column: span 2; }
.gallery figure:nth-child(6) { grid-column: span 2; }
.gallery figcaption { position: absolute; left: 10px; bottom: 10px; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(11,26,58,.55); padding: 5px 9px; border-radius: 6px; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; } .gallery figure { grid-column: span 1 !important; grid-row: span 1 !important; } .gallery figure:nth-child(1) { grid-column: span 2 !important; } }

/* ---------- paths ---------- */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } }
.path { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); display: grid; gap: 16px; align-content: start; box-shadow: var(--shadow); }
.path ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ink-2); font-size: .97rem; }
.path li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.path li svg { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.path .btn { justify-self: start; margin-top: 8px; }

/* ---------- airport ---------- */
.airport { background: var(--band); color: var(--band-ink); }
.airport .lede { color: var(--band-ink-2); }
.airport h2 { color: #fff; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--band-rule); border: 1px solid var(--band-rule); border-radius: var(--radius); overflow: hidden; margin-top: 36px; }
.fact { background: var(--band); padding: 22px 20px; display: grid; gap: 6px; }
.fact b { font-family: var(--display); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fact span { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--band-ink-2); }
.fact p { color: var(--band-ink-2); font-size: .92rem; margin-top: 6px; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.airport-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 40px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--band-ink-2); }
.airport-list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.airport-list svg { width: 18px; height: 18px; color: var(--accent); margin-top: 4px; }
@media (max-width: 640px) { .airport-list { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact-card { display: grid; gap: 22px; }
.contact-card dl { margin: 0; display: grid; gap: 14px; }
.contact-card dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.contact-card dd { margin: 2px 0 0; font-size: 1.05rem; }
.contact-card dd a { text-decoration: none; border-bottom: 1px solid var(--rule-2); }
.contact-card dd a:hover { border-color: var(--ink); }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow); }
.form h3 { font-size: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.field label small { font-weight: 500; color: var(--ink-3); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--rule-2); border-radius: var(--radius-sm); padding: 12px 14px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: .82rem; color: var(--ink-3); }
.field-unit { position: relative; }
.field-unit input { padding-right: 44px; }
.field-unit::after { content: attr(data-unit); position: absolute; right: 14px; bottom: 13px; font-family: var(--mono); font-size: .78rem; color: var(--ink-3); pointer-events: none; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-foot .fine { font-size: .84rem; color: var(--ink-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { display: none; border-radius: var(--radius-sm); padding: 14px 16px; font-size: .95rem; }
.form-status.error { display: block; background: #FBE9E7; color: #7A2E22; border: 1px solid #F1C4BC; }
:root[data-theme="dark"] .form-status.error { background: #3A1E1A; color: #FFD6CF; border-color: #6B3A32; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form-status.error { background: #3A1E1A; color: #FFD6CF; border-color: #6B3A32; } }
.form-done { display: none; text-align: left; gap: 14px; padding: 8px 0; }
.form.is-done .form-body { display: none; }
.form.is-done .form-done { display: grid; }
.form-done .check { width: 44px; height: 44px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.form-done .check svg { width: 24px; height: 24px; }
.segmented { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 4px; gap: 2px; }
.segmented label { position: relative; }
.segmented input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.segmented span { display: inline-block; padding: 9px 16px; border-radius: 999px; font-size: .92rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.segmented input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- request pages ---------- */
.page-head { padding-top: calc(110px + env(safe-area-inset-top, 0px)); padding-bottom: clamp(24px, 4vw, 48px); display: grid; gap: 14px; max-width: 760px; }
.request { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: clamp(64px, 9vw, 128px); }
@media (max-width: 900px) { .request { grid-template-columns: 1fr; } }
.rail { display: grid; gap: 22px; position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); }
.rail img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.rail-block { display: grid; gap: 10px; }
.rail-block h3 { font-size: 1.05rem; }
.rail-block ol, .rail-block ul { margin: 0; padding-left: 1.2em; color: var(--ink-2); font-size: .95rem; display: grid; gap: 6px; }
.rail-block p { color: var(--ink-2); font-size: .95rem; }
.rail .eyebrow { margin-bottom: -6px; }

/* ---------- footer ---------- */
.footer { background: var(--deep); color: var(--band-ink-2); padding-block: clamp(40px, 6vw, 72px) calc(28px + env(safe-area-inset-bottom, 0px)); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer .brand img { height: 40px; }
.footer .brand .logo-color { display: none; } .footer .brand .logo-white { display: block; }
.footer p { font-size: .95rem; max-width: 40ch; margin-top: 14px; }
.footer h4 { color: #fff; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .95rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--band-rule); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; }

/* ---------- photo fallback (until originals are dropped in) ---------- */
img.ph { background: linear-gradient(135deg, #1B3670 0%, #0B1A3A 100%); object-fit: cover; }
img.ph.missing { position: relative; }
.ph-wrap { position: relative; }
.ph-wrap.missing::after { content: attr(data-photo); position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); background: linear-gradient(135deg, #1B3670 0%, #0B1A3A 100%); border-radius: inherit; }
.ph-wrap.missing img { visibility: hidden; }

/* ---------- reveal: page is always at rest; class kept as a hook only ---------- */
.reveal { opacity: 1; transform: none; }
