/* HeliTracker site styles */

:root {
  --paper: #F3F5F8;
  --paper-2: #E9EDF2;
  --ink: #12203A;
  --ink-2: #4A5870;
  --ink-3: #7C879B;
  --line: #D3DAE4;
  --navy: #14264A;
  --navy-2: #1D3462;
  --signal: #F0A31B;
  --signal-deep: #B87A08;
  --signal-soft: #FBEBC9;
  --sky: #DCE7F2;
  --ok: #2F8F6B;
  --teal: #1F6F7A;
  --teal-soft: #D7ECEE;
  --sky-deep: #B9D0E6;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --hero: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --max: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 6px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; font-variation-settings: "wdth" 90; }
.hero h1 { font-family: var(--hero); font-variation-settings: normal; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; max-width: 62ch; }
p.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 54ch; }
.muted { color: var(--ink-2); }
.small { font-size: 0.92rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: rgba(18,32,58,0.06); }
.btn-signal { background: var(--signal); color: var(--ink); }
.btn-signal:hover { background: #F7B33A; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper-2); }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243,245,248,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand svg { width: 36px; height: 36px; }
.brand .wordmark { display: inline-flex; align-items: flex-start; }
.brand .tm { font-size: 0.5em; font-weight: 500; color: var(--ink-3); margin-left: 1px; margin-top: 0.1em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a.btn-primary { color: #fff; }
.nav a.btn-primary:hover { color: #fff; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav .btn { padding: 10px 16px; font-size: 0.95rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; justify-content: center; border-bottom: 0; }
}

/* Sections */
section { padding: clamp(56px, 9vw, 120px) 0; }
section.tight { padding: clamp(36px, 5vw, 64px) 0; }
.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 48px); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Hero */
.hero { padding-top: clamp(28px, 4vw, 56px); padding-bottom: 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero h1 { margin-bottom: 0.35em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-aside { padding-bottom: 8px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; align-items: start; } }

/* Live detection card */
.detect-card {
  background: var(--navy); color: #fff;
  border-radius: 14px; padding: 22px 24px 20px;
  box-shadow: 0 20px 50px -30px rgba(18,32,58,0.6);
}
.detect-card .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.detect-card .status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem; }
.detect-card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(240,163,27,0.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(240,163,27,0.55);} 70% { box-shadow: 0 0 0 10px rgba(240,163,27,0);} 100% { box-shadow: 0 0 0 0 rgba(240,163,27,0);} }
.detect-card .time { font-variant-numeric: tabular-nums; color: #B7C4DA; font-size: 0.95rem; }
.detect-card .aircraft { font-family: var(--display); font-size: 1.8rem; font-weight: 600; margin: 14px 0 2px; letter-spacing: -0.01em; }
.detect-card .meta { color: #B7C4DA; font-size: 0.95rem; }
.detect-card .meta strong { color: #fff; font-weight: 600; }
.detect-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.14); }
.detect-card dt { font-size: 0.8rem; color: #B7C4DA; margin: 0; }
.detect-card dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Waveform strip */
.wave-strip { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; position: relative; overflow: hidden; }
.wave-strip svg { width: 100%; height: 150px; }
.wave-strip .legend { position: absolute; left: var(--gutter); top: 12px; font-size: 0.82rem; color: var(--ink-3); display: flex; gap: 18px; }
.wave-strip .legend span { display: inline-flex; align-items: center; gap: 6px; }
.wave-strip .legend i { width: 14px; height: 3px; background: var(--ink-3); border-radius: 2px; }
.wave-strip .legend i.sig { background: var(--signal); }

/* Plain feature list */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.three > div { border-top: 2px solid var(--ink); padding-top: 18px; }
.three h3 { margin-top: 6px; }
.three p { margin-bottom: 0; color: var(--ink-2); }
.three svg { width: 34px; height: 34px; color: var(--ink); }
@media (max-width: 760px) { .three { grid-template-columns: 1fr; } }

/* Steps (sequence) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.steps > div { padding: 26px 24px 28px; border-right: 1px solid var(--line); position: relative; }
.steps > div:last-child { border-right: 0; }
.steps .n { font-family: var(--display); font-size: 0.95rem; font-weight: 600; color: var(--signal-deep); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.steps .n::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--ink-2); margin: 0; font-size: 0.98rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .steps > div:nth-child(2) { border-right: 0; } .steps > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .steps > div { border-right: 0; border-bottom: 1px solid var(--line); } .steps > div:last-child { border-bottom: 0; } }

/* Log table */
.log { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.log-wrap { border-radius: 12px; overflow: auto; border: 1px solid var(--line); background: #fff; }
.log-wrap .log { border: 0; }
.log th, .log td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
.log th { font-weight: 600; font-size: 0.85rem; color: var(--ink-2); background: var(--paper-2); }
.log tbody tr:last-child td { border-bottom: 0; }
.log td.conf { color: var(--ink-2); }
.log .bar { display: inline-block; width: 64px; height: 6px; background: var(--paper-2); border-radius: 3px; vertical-align: middle; margin-right: 8px; overflow: hidden; }
.log .bar i { display: block; height: 100%; background: var(--signal); }
.log .tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.82rem; font-weight: 600; background: var(--sky); color: var(--navy); }
.log .tag.unmatched { background: var(--paper-2); color: var(--ink-2); }

/* Dark data section */
.dark { background: var(--navy); color: #fff; }
.dark h2 { color: #fff; }
.dark p { color: #C5D0E2; }
.dark .rule { border-color: rgba(255,255,255,0.15); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.stats div { border-left: 2px solid var(--signal); padding-left: 16px; }
.stats b { display: block; font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats span { color: #C5D0E2; font-size: 0.95rem; display: block; margin-top: 8px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Two column */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; } }
.two.sticky > :first-child { position: sticky; top: 96px; }

/* Audience list */
.aud { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.aud a { text-decoration: none; display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px 24px 24px; }
.aud a:hover { border-color: var(--ink); }
.aud h3 { margin-bottom: 8px; }
.aud p { color: var(--ink-2); margin: 0 0 16px; font-size: 0.98rem; }
.aud .link { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.aud .link svg { width: 16px; height: 16px; }
@media (max-width: 820px) { .aud { grid-template-columns: 1fr; } }

/* Quote / press */
.quote { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; max-width: 30ch; margin: 0; }
.quote + p { margin-top: 18px; }

/* CTA band */
.cta-band { background: var(--sky); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); }

/* Page intro */
.page-intro { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(24px, 4vw, 48px); }
.page-intro h1 { font-size: clamp(2.3rem, 5vw, 4rem); padding-top: 0.1em; }

/* Details / FAQ */
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; flex: none; transition: transform 0.2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 18px; }

/* Definition-style spec list */
.spec { display: grid; grid-template-columns: 180px 1fr; gap: 10px 24px; margin: 0; }
.spec dt { font-weight: 600; padding: 12px 0; border-top: 1px solid var(--line); }
.spec dd { margin: 0; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
@media (max-width: 600px) { .spec { grid-template-columns: 1fr; gap: 0; } .spec dd { border-top: 0; padding-top: 0; } }

/* Forms */
form { max-width: 560px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--ink-3); margin-top: 4px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(240,163,27,0.35); }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.choices { display: grid; gap: 10px; }
.choices label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; }
.choices label:has(input:checked) { border-color: var(--ink); background: var(--signal-soft); }
.choices input { margin-top: 4px; width: auto; flex: none; }
.form-note { font-size: 0.9rem; color: var(--ink-3); margin-top: 14px; }
.hidden { display: none; }

/* Side panel (form pages) */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.panel h3 { margin-bottom: 14px; }
.panel ul { padding-left: 18px; margin: 0; color: var(--ink-2); }
.panel li { margin-bottom: 8px; }
.panel .tick { list-style: none; padding: 0; }
.panel .tick li { display: flex; gap: 10px; }
.panel .tick svg { width: 20px; height: 20px; flex: none; color: var(--ok); margin-top: 2px; }

/* Timeline (press / story) */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { padding: 0 0 28px 26px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.timeline li.now::before { background: var(--signal); border-color: var(--signal); }
.timeline time { display: block; font-size: 0.88rem; color: var(--ink-3); margin-bottom: 4px; }
.timeline h4 { margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--ink-2); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 44px 0 36px; font-size: 0.93rem; color: var(--ink-2); }
.site-foot .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.site-foot h4 { margin-bottom: 10px; color: var(--ink); }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 8px; }
.site-foot a { text-decoration: none; }
.site-foot p a, .mnr { text-decoration: underline !important; text-decoration-color: var(--signal); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 8px; font-size: 0.85rem; color: var(--ink-3); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .site-foot .wrap { grid-template-columns: 1fr; } }

/* Phone mock for app section */
.phone { width: 260px; margin: 0 auto; border-radius: 34px; background: var(--ink); padding: 10px; box-shadow: 0 30px 60px -30px rgba(18,32,58,0.6); }
.phone .screen { background: #fff; border-radius: 26px; overflow: hidden; padding: 22px 16px 18px; font-size: 0.8rem; }
.phone .screen .top { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 14px; }
.phone .screen .item { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.phone .screen .item b { display: block; }
.phone .screen .item span { color: var(--ink-3); font-size: 0.75rem; }
.phone .screen .item em { font-style: normal; font-weight: 600; color: var(--signal-deep); font-variant-numeric: tabular-nums; }
.phone .screen .push { background: var(--paper-2); border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; }
.phone .screen .push b { display: block; font-size: 0.78rem; }
.phone .screen .push span { color: var(--ink-2); font-size: 0.74rem; }

/* Timeline on dark */
.dark .timeline { border-left-color: rgba(255,255,255,0.2); }
.dark .timeline li::before { background: var(--navy); border-color: #fff; }
.dark .timeline li.now::before { background: var(--signal); border-color: var(--signal); }
.dark .timeline h4 { color: #fff; }
.dark .timeline p, .dark .timeline time { color: #C5D0E2; }

/* Corridor map */
.corridor { border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(0,0,0,0.8); }
.corridor svg { width: 100%; height: auto; }
.corridor .rings circle { transform-origin: 230px 185px; animation: ring 3.6s ease-out infinite; opacity: 0; }
.corridor .rings circle:nth-child(2) { animation-delay: 1.2s; }
.corridor .rings circle:nth-child(3) { animation-delay: 2.4s; }
@keyframes ring { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(4.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .corridor .rings circle { opacity: 0.5; transform: scale(2); } }
.stats.three-up { grid-template-columns: repeat(3, 1fr); }
.log td.alt-mid { color: var(--signal-deep); font-weight: 600; }
.log td.alt-low { color: #C0392B; font-weight: 600; }

/* Photo bands */
.photo { position: relative; border-radius: 16px; overflow: hidden; background: var(--navy); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.tall { aspect-ratio: 4 / 5; }
.photo.wide { aspect-ratio: 16 / 7; }
.photo .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px; color: #fff; background: linear-gradient(to top, rgba(12,26,51,0.85), rgba(12,26,51,0)); }
.photo .cap b { font-family: var(--display); font-size: 1.3rem; font-weight: 600; display: block; letter-spacing: -0.01em; }
.photo .cap span { color: #C5D0E2; font-size: 0.92rem; }
.photo-hero { position: relative; margin-top: 24px; border-radius: 18px; overflow: hidden; aspect-ratio: 21 / 9; background: var(--navy); }
.photo-hero img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .photo-hero { aspect-ratio: 4 / 3; } .photo.wide { aspect-ratio: 4 / 3; } }

/* App page */
.app-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .app-hero { grid-template-columns: 1fr; } }
.badge-soon { display: inline-flex; align-items: center; gap: 8px; background: var(--signal-soft); color: var(--signal-deep); font-weight: 600; padding: 6px 12px; border-radius: 999px; font-size: 0.9rem; margin-bottom: 18px; }
.badge-soon i { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; opacity: 0.55; cursor: not-allowed; font-weight: 600; }
.store svg { width: 22px; height: 22px; }
.notify { display: flex; gap: 10px; max-width: 460px; }
.notify input { flex: 1; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.notify input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(240,163,27,0.35); }
.app-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 20px 40px -20px rgba(18,32,58,0.6); margin-bottom: 20px; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.2,0.7,0.2,1), transform 0.7s cubic-bezier(0.2,0.7,0.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity 0.6s cubic-bezier(0.2,0.7,0.2,1), transform 0.6s cubic-bezier(0.2,0.7,0.2,1); }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > :nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in > :nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in > :nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.in > :nth-child(5) { transition-delay: 0.32s; }
.hero-in > * { opacity: 0; transform: translateY(16px); animation: rise 0.8s cubic-bezier(0.2,0.7,0.2,1) forwards; }
.hero-in > :nth-child(2) { animation-delay: 0.12s; }
.hero-in > :nth-child(3) { animation-delay: 0.24s; }
.hero-aside { opacity: 0; transform: translateY(16px) scale(0.98); animation: rise 0.9s 0.35s cubic-bezier(0.2,0.7,0.2,1) forwards; }
.wave-strip { opacity: 0; animation: fade 1s 0.6s ease forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > *, .hero-in > *, .hero-aside, .wave-strip { opacity: 1; transform: none; animation: none; transition: none; }
}

/* ---- Color and texture pass ---- */
.hero { background:
  radial-gradient(900px 480px at 85% 0%, rgba(185,208,230,0.75), rgba(185,208,230,0) 60%),
  radial-gradient(600px 400px at 0% 100%, rgba(240,163,27,0.14), rgba(240,163,27,0) 60%),
  var(--paper); position: relative; }
.hero-rings { position: absolute; right: -120px; top: -160px; width: 720px; height: 720px; pointer-events: none; opacity: 0.55; }
.hero-rings circle { fill: none; stroke: var(--sky-deep); stroke-width: 1.2; }
.hero-rings line { stroke: var(--sky-deep); stroke-width: 1; }
.hero .wrap { position: relative; }
@media (max-width: 900px) { .hero-rings { width: 480px; height: 480px; right: -200px; top: -120px; } }

.band-white { background: #fff; }
.band-sky { background: linear-gradient(180deg, var(--sky) 0%, var(--paper) 100%); }
.band-teal { background: var(--teal); color: #fff; }
.band-teal h2 { color: #fff; }
.band-teal p { color: #D7ECEE; }

.three > div { border-top: 2px solid var(--ink); }
.three > div:nth-child(1) { border-top-color: var(--signal); }
.three > div:nth-child(2) { border-top-color: var(--teal); }
.three > div:nth-child(3) { border-top-color: var(--navy); }
.three svg { color: var(--navy); }

.aud a { border-top: 4px solid var(--navy); }
.aud a:nth-child(1) { border-top-color: var(--signal); }
.aud a:nth-child(2) { border-top-color: var(--teal); }
.aud a:nth-child(3) { border-top-color: var(--navy); }
.aud .ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 16px; background: var(--signal-soft); color: var(--signal-deep); }
.aud a:nth-child(2) .ico { background: var(--teal-soft); color: var(--teal); }
.aud a:nth-child(3) .ico { background: var(--sky); color: var(--navy); }
.aud .ico svg { width: 24px; height: 24px; }

.log th { background: var(--navy); color: #fff; }
.log .tag { background: var(--teal-soft); color: var(--teal); }

.steps > div:nth-child(odd) { background: var(--sky); }
.steps .n { color: var(--teal); }

.cta-band { background: var(--navy); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band .btn-primary { background: var(--signal); color: var(--ink); }
.cta-band .btn-primary:hover { background: #F7B33A; }

.site-foot { background: var(--ink); color: #B7C4DA; border-top: 0; }
.site-foot h4 { color: #fff; }
.site-foot .brand { color: #fff; }
.site-foot .brand .tm { color: #7F98C2; }
.site-foot .legal { border-top-color: rgba(255,255,255,0.14); color: #7F98C2; }
.site-foot p a, .site-foot .mnr { color: #fff; }

.photo-band-full { position: relative; background: var(--navy); color: #fff; overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; }
.photo-band-full img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.photo-band-full::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,26,51,0.95) 0%, rgba(12,26,51,0.35) 55%, rgba(12,26,51,0.1) 100%); }
.photo-band-full .wrap { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 56px; }
.photo-band-full h2 { color: #fff; max-width: 22ch; }
.photo-band-full p { color: #C5D0E2; }

.page-intro.on-photo { position: relative; background: var(--navy); color: #fff; overflow: hidden; padding-bottom: clamp(56px, 8vw, 96px); }
.page-intro.on-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.page-intro.on-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,26,51,0.92) 0%, rgba(12,26,51,0.55) 60%, rgba(12,26,51,0.25) 100%); }
.page-intro.on-photo .wrap { position: relative; z-index: 1; }
.page-intro.on-photo h1 { color: #fff; }
.page-intro.on-photo .lede { color: #C5D0E2; }
.page-intro.on-photo .btn-ghost { color: #fff; border-color: #fff; }
.page-intro.on-photo .btn-ghost:hover { background: rgba(255,255,255,0.1); }

.spec dt { color: var(--teal); }
.quote-mark { color: var(--signal); }
.panel.accent { border-left: 4px solid var(--signal); }
.detect-card { background: linear-gradient(160deg, var(--navy-2), var(--navy) 60%); }

/* Legal pages */
.legal-body h3 { margin-top: 1.8em; font-size: 1.15rem; }
.legal-body h3:first-child { margin-top: 0; }
.legal-body p { color: var(--ink-2); max-width: 66ch; }
.legal-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 3px; }
.site-foot .legal a { color: #B7C4DA; text-decoration: none; }
.site-foot .legal a:hover { text-decoration: underline; }

/* Who it is for: ledger rows */
.who { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.who li { border-bottom: 1px solid var(--line); }
.who a { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 24px 40px; align-items: baseline; padding: 30px 0; text-decoration: none; }
.who .who-name { font-family: var(--display); font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 600; letter-spacing: -0.01em; }
.who p { margin: 0; color: var(--ink-2); max-width: 46ch; }
.who .who-link { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.who .who-link svg { width: 18px; height: 18px; transition: transform 0.2s; }
.who a:hover .who-link svg { transform: translateX(4px); }
.who a:hover .who-name { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 6px; text-decoration-thickness: 2px; }
@media (max-width: 820px) { .who a { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; } }

/* Contact layout */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-grid form { max-width: none; }
.page-intro .lede a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 3px; text-decoration-thickness: 2px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* Contact split layout */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 68px); padding: 0; }
.contact-left { position: relative; background: var(--navy); color: #fff; overflow: hidden; display: flex; align-items: center; }
.contact-left-inner { position: relative; z-index: 1; padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(48px, 7vw, 96px); max-width: 560px; margin-left: auto; width: 100%; }
.contact-left h1 { color: #fff; font-family: var(--hero); letter-spacing: -0.03em; }
.contact-left .lede { color: #C5D0E2; }
.contact-rings { position: absolute; right: -180px; bottom: -220px; width: 620px; height: 620px; opacity: 0.35; }
.contact-rings circle, .contact-rings line { fill: none; stroke: #8FA6CB; stroke-width: 1.3; }
.contact-rings .sweep { fill: #fff; fill-opacity: 0.12; stroke: none; }
.contact-rings .blip { fill: var(--signal); stroke: none; }
.contact-steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.contact-steps li { display: flex; gap: 16px; align-items: flex-start; }
.contact-steps span { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--signal); color: var(--signal); font-weight: 600; display: grid; place-items: center; font-size: 0.9rem; }
.contact-steps b { display: block; margin-bottom: 2px; }
.contact-steps div { color: #C5D0E2; font-size: 0.97rem; }
.contact-alt { margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.15); }
.contact-alt b { display: block; font-family: var(--display); font-size: 1.2rem; margin-bottom: 6px; }
.contact-alt p { color: #C5D0E2; margin-bottom: 16px; }
.contact-right { background: #fff; display: flex; align-items: center; }
.contact-right form { max-width: 560px; width: 100%; margin-right: auto; padding: clamp(48px, 7vw, 96px) var(--gutter); }
.contact-right h2 { font-size: 1.6rem; margin-bottom: 24px; }
.contact-right .form-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .contact-split { grid-template-columns: 1fr; min-height: 0; }
  .contact-left-inner, .contact-right form { max-width: none; margin: 0; }
}

/* Mobile polish */
@media (max-width: 760px) {
  .log-wrap { position: relative; -webkit-overflow-scrolling: touch; }
  .log-scroll-hint { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--ink-3); margin: 8px 0 0; }
  .log-scroll-hint svg { width: 14px; height: 14px; }
  .log th, .log td { padding: 11px 14px; }
  .site-head .wrap { height: 60px; }
  .nav { top: 60px; }
}
.log-scroll-hint { display: none; }
@media (max-width: 760px) { .log-scroll-hint { display: flex; } }
* { -webkit-tap-highlight-color: transparent; }
.btn, .nav a, .who a { touch-action: manipulation; }
