/* ==========================================================================
   Vladiball — "Flight record" design system
   ========================================================================== */

/* Fonts (self-hosted, latin subset) */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }

/* Tokens — light by default, dark when the OS asks for it or the page sets data-theme="dark" */
:root {
  --bg: #F5F3EE;
  --bg-2: #ECE9E1;
  --surface: #FFFFFF;
  --text: #14181F;
  --muted: #4A5361;
  --border: #D6D2C7;
  --focus: #B45309;
  --chrome: #0E1116;
  --chrome-2: #171C24;
  --chrome-text: #E7EBF0;
  --chrome-muted: #A7B0BD;
  --chrome-border: rgba(255, 255, 255, 0.14);
  --amber: #F2A516;
  --sky: #3B82C4;

  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-card: 6px;
  --radius-btn: 4px;
  --wrap: 1200px;
  --gutter: 16px;
  --section-y: clamp(56px, 8vw, 104px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1116;
    --bg-2: #141A22;
    --surface: #171C24;
    --text: #E7EBF0;
    --muted: #A7B0BD;
    --border: #2A323D;
    --focus: #F2A516;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1116;
  --bg-2: #141A22;
  --surface: #171C24;
  --text: #E7EBF0;
  --muted: #A7B0BD;
  --border: #2A323D;
  --focus: #F2A516;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; display: block; }
img, picture, svg { display: block; max-width: 100%; height: auto; }
img { background: var(--bg-2); }
.brand-logo, .footer-logo, .product-img, .shop-main-img { background: none; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); margin-bottom: 0.6em; }
h3 { font-size: 1.2rem; margin-bottom: 0.4em; }
p + p { margin-top: 1em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; margin-inline: auto; width: min(100% - 2 * var(--gutter), 760px); }
.section { padding-block: var(--section-y); }
.section-paper { background: var(--bg-2); }
.mono { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.02em; }
.lede { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: var(--muted); max-width: 62ch; }
.help { font-size: 0.9rem; color: var(--muted); }
.plain li + li { margin-top: 0.4em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 100; background: var(--amber); color: #14181F; padding: 10px 14px; border-radius: var(--radius-btn); font-weight: 600; }
.skip-link:focus { top: 12px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--amber); flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  font: 600 0.95rem/1 var(--font-sans); letter-spacing: 0.01em;
  border-radius: var(--radius-btn); border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.btn-primary { background: var(--amber); color: #14181F; }
.btn-primary:hover { background: #FFB92E; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); background: rgba(14,17,22,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-ghost-dark { color: var(--text); border-color: var(--text); background: transparent; }
.btn-ghost-dark:hover { background: var(--text); color: var(--bg); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--chrome); color: var(--chrome-text);
  border-bottom: 1px solid var(--chrome-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; padding: 8px 0; }
.brand-logo { height: 34px; width: auto; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; min-width: 48px; padding: 0 6px;
  background: none; border: 0; color: inherit; font: 500 0.9rem var(--font-sans); cursor: pointer;
}
.nav-toggle-bars { position: relative; width: 22px; height: 14px; }
.nav-toggle-bars::before, .nav-toggle-bars::after, .nav-toggle-bars { border-top: 2px solid currentColor; }
.nav-toggle-bars { border: 0; }
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform 200ms var(--ease);
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: none; }
html.js .site-nav[hidden] { display: none; }
.site-nav ul { display: flex; flex-direction: column; }
.site-nav a {
  display: flex; align-items: center; min-height: 48px; padding: 0 4px;
  color: var(--chrome-text); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid var(--chrome-border);
}
.site-nav a[aria-current="page"] { color: var(--amber); }
.site-nav .nav-shop { color: var(--amber); }

/* Mobile nav panel */
html.js .site-nav {
  display: block; position: fixed; inset: 64px 0 0 0; z-index: 60;
  background: var(--chrome); padding: 8px var(--gutter) 32px; overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 200ms;
}
html.js .site-nav.is-open { opacity: 1; transform: none; visibility: visible; }
html:not(.js) .site-nav { display: block; border-top: 1px solid var(--chrome-border); }
html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; gap: 4px 20px; padding: 10px var(--gutter); }
html:not(.js) .site-nav a { border: 0; min-height: 40px; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  html.js .site-nav, html:not(.js) .site-nav {
    display: block; position: static; opacity: 1; visibility: visible; transform: none;
    background: none; padding: 0; overflow: visible; border: 0;
  }
  .site-nav ul { flex-direction: row; gap: 4px; }
  .site-nav a { border: 0; min-height: 40px; padding: 0 12px; font-size: 0.92rem; }
  .site-nav a:hover { color: var(--amber); }
  .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
  .header-inner { min-height: 68px; }
}

/* Hero */
.hero {
  position: relative; color: #fff; background: var(--chrome);
  min-height: min(88svh, 780px); display: flex; align-items: flex-end;
  padding-block: 64px 56px; overflow: hidden;
}
.hero-media, .banner-media, .cta-media { position: absolute; inset: 0; z-index: 0; }
.hero-media picture, .banner-media picture, .cta-media picture { width: 100%; height: 100%; }
.hero-img, .banner-img, .cta-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after, .page-banner::after, .cta::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(14,17,22,.25) 0%, rgba(14,17,22,.55) 55%, rgba(14,17,22,.9) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 820px; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: #C9D1DC; }
.hero .eyebrow::before { background: var(--amber); }
.hero-lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); color: #E7EBF0; margin-top: 16px; max-width: 46ch; }

/* Page banners (inner pages) */
.page-banner {
  position: relative; color: #fff; background: var(--chrome);
  min-height: min(52vh, 460px); display: flex; align-items: flex-end;
  padding-block: 56px 44px; overflow: hidden;
}
.page-banner-compact { min-height: 0; padding-block: 56px 40px; }
.page-banner-compact .banner-content { position: relative; z-index: 2; }
.page-banner .banner-content { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; }
.page-banner .eyebrow { color: #C9D1DC; }
.page-banner .eyebrow::before { background: var(--amber); }
.page-title { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
.banner-sub { color: #C9D1DC; margin-top: 14px; }

/* Split and grids */
.split { display: grid; gap: 40px; align-items: start; }
.split-tight { gap: 24px; }
.pair { display: grid; gap: 28px; }
.grid-2 { display: grid; gap: 48px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 0.95fr; gap: 64px; }
  .pair { grid-template-columns: 1fr 1fr; gap: 40px; }
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 64px; }
}

figure figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--muted); }
.rounded { border-radius: var(--radius-card); }
.wide-figure { margin-top: 48px; }
.wide-figure img { width: 100%; border-radius: var(--radius-card); aspect-ratio: 16 / 8; object-fit: cover; }
.product-figure { display: flex; flex-direction: column; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; }
.product-img { width: min(100%, 420px); height: auto; }

/* Spec strip */
.spec-strip { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); }
.spec-strip > div { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--border); }
.spec-strip dt { font: 400 0.75rem/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.spec-strip dd { font-weight: 600; margin-top: 4px; font-size: 1rem; }
@media (min-width: 640px) { .spec-strip { grid-template-columns: repeat(3, 1fr); } }

/* Mission grid */
.mission-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
.mission-item figure { position: relative; }
.mission-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-card); }
.mission-item figcaption { position: absolute; left: 12px; bottom: 12px; margin: 0; }
.mission-item figcaption .mono {
  display: inline-block; background: rgba(14,17,22,.82); color: #fff;
  padding: 6px 10px; border-radius: var(--radius-btn); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem;
}
@media (min-width: 600px) {
  .mission-grid { grid-template-columns: 1fr 1fr; }
  .mission-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .mission-item:last-child:nth-child(odd) .mission-img { aspect-ratio: 21 / 9; }
}
@media (min-width: 1000px) {
  .mission-grid { grid-template-columns: repeat(6, 1fr); }
  .mission-item.m-wide { grid-column: span 3; }
  .mission-item.m-narrow { grid-column: span 2; }
  .mission-item:last-child:nth-child(odd) { grid-column: span 2; }
  .mission-item.m-wide .mission-img { aspect-ratio: 16 / 10; }
  .mission-item.m-narrow .mission-img { aspect-ratio: 4 / 5; }
  .mission-item:last-child:nth-child(odd) .mission-img { aspect-ratio: 4 / 5; }
}

/* Video facade */
.video { margin-top: 32px; }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-card); overflow: hidden;
  background: linear-gradient(135deg, #171C24, #0E1116); border: 1px solid var(--border);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: none; border: 0; color: #fff; cursor: pointer; font: 600 1rem var(--font-sans);
}
.video-play svg { width: 72px; height: 72px; padding: 18px; border-radius: 50%; background: var(--amber); color: #14181F; transition: transform 200ms var(--ease); }
.video-play:hover svg { transform: scale(1.06); }
.video-fallback { margin-top: 12px; font-size: 0.95rem; }

/* Cards */
.cards { display: grid; gap: 20px; margin-top: 40px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; display: flex; flex-direction: column; }
.card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 22px 22px 26px; }
.link-list li { border-top: 1px solid var(--border); }
.link-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; text-decoration: none; min-height: 48px; }
.link-list a:hover { color: var(--focus); }
.link-list a::after { content: "→"; font-family: var(--font-mono); color: var(--muted); }
.link-list .meta { margin-left: auto; font: 400 0.7rem var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* CTA band */
.cta { position: relative; color: #fff; background: var(--chrome); padding-block: clamp(72px, 10vw, 120px); overflow: hidden; }
.cta-content { position: relative; z-index: 2; text-align: left; }
.cta h2 { color: #fff; }
.cta-content .btn { margin-top: 24px; }
.cta-img { opacity: .9; }

/* Inventor teaser */
.inventor-teaser .eyebrow { color: var(--muted); }
.btn-ghost-dark { margin-top: 24px; }

/* Stats / lists (inventor, shop) */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; margin-top: 16px; }
.stats > div { background: var(--surface); padding: 14px 16px; }
.stats dt { font: 400 .75rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stats dd { font-size: 1.35rem; font-weight: 600; font-family: var(--font-mono); margin-top: 2px; }
.check-list { display: grid; gap: 14px; }
.check-list li { padding-left: 26px; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 2px; background: var(--amber); }
.check-list strong { font-weight: 600; }
.mini-title { margin-top: 28px; font-size: 1rem; }
.timeline { border-left: 2px solid var(--border); margin-left: 6px; display: grid; gap: 22px; }
.timeline li { position: relative; padding-left: 26px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45em; width: 12px; height: 12px; background: var(--amber); border-radius: 2px; }
.timeline time { display: block; font: 500 .8125rem var(--font-mono); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }
.timeline p { margin: 0; }
.work-list { display: grid; gap: 16px; }
.work-list li { padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.work-list time { display: block; font: 500 .8125rem var(--font-mono); color: var(--muted); margin-bottom: 2px; }
.work-list a { font-weight: 500; }
.story { font-size: 1.05rem; }
.story + .story { margin-top: 1.1em; }
.pair figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.cta-inline { padding-block: 40px 88px; }

/* Shop */
.shop { display: grid; gap: 48px; }
@media (min-width: 900px) { .shop { grid-template-columns: 1.05fr 0.95fr; gap: 72px; align-items: start; } }
.shop-main-img { width: 100%; border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--border); padding: 24px; aspect-ratio: 4 / 3; object-fit: contain; }
.shop-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.thumb-img { width: 100%; height: auto; border-radius: var(--radius-btn); aspect-ratio: 3 / 5; object-fit: cover; border: 1px solid var(--border); }
.shop-details h1 { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem); }
.price { margin-top: 12px; display: flex; align-items: baseline; gap: 10px; }
.price-from { font: 600 2rem var(--font-mono); }
.price-note { color: var(--muted); font-size: .95rem; }
.calc { margin-top: 28px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); display: grid; gap: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; }
.field input {
  width: 100%; min-height: 52px; padding: 10px 14px; font: 500 1.1rem var(--font-mono);
  color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-btn);
}
.field input:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.calc .help { margin-top: 6px; }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--border); padding-top: 16px; }
.total-label { font: 400 .8125rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.total output { font: 600 2rem var(--font-mono); }
.tiers { margin-top: 22px; padding: 18px 20px; border-left: 3px solid var(--amber); background: var(--surface); border-radius: 0 var(--radius-card) var(--radius-card) 0; }
.tiers p + p { margin-top: 10px; }
.orders { margin-top: 28px; }
.orders h2 { font-size: 1.25rem; }
.orders a { font-weight: 500; }
.fineprint { margin-top: 24px; color: var(--muted); font-size: .9rem; }

/* Legal pages (Owner's Manual, Disclaimer) */
.legal-page { padding-block: 56px 96px; }
.legal, .legal-layout { max-width: 68ch; margin-inline: auto; }
.legal, .about-col-dis { font-size: 1.0625rem; line-height: 1.75; color: var(--text); }
.legal h3, .about-col-dis h1, .about-col-dis h2, .about-col-dis h3 { margin-top: 2.2em; margin-bottom: .5em; font-size: 1.3rem; scroll-margin-top: 90px; }
.about-col-dis h1 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); margin-top: 0; }
.legal p, .about-col-dis p { margin-top: 1em; }
.legal b, .about-col-dis b { font-weight: 600; }
.legal .cen, .legal .cen-dis, .about-col-dis .cen-dis { margin-top: 1.4em; padding: 18px 20px; background: var(--surface); border-left: 3px solid var(--amber); border-radius: 0 var(--radius-card) var(--radius-card) 0; }
.legal .pad-left { padding-left: 0; }
.legal .column, .legal .column-main, .legal .veci-h3, .legal .posebnop-owe, .legal .posebnoh3 { display: block; }
.legal .veci-h3 h3 { font-size: 1.45rem; }
.legal-layout .mascot { margin-top: 40px; max-width: 320px; }
.legal-layout .mascot img { width: 100%; height: auto; }

.toc { display: none; }
@media (min-width: 1000px) {
  .legal-page { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; max-width: var(--wrap); }
  .legal-page .legal { margin-inline: 0; grid-column: 2; }
  .toc { display: block; position: sticky; top: 96px; align-self: start; grid-column: 1; grid-row: 1; font-size: .9rem; }
  .toc[hidden] { display: none; }
  .legal-page > .legal-layout { grid-column: 2; }
  .toc-list li + li { margin-top: 6px; }
  .toc-list a { color: var(--muted); text-decoration: none; display: block; line-height: 1.35; padding: 4px 0 4px 12px; border-left: 2px solid var(--border); }
  .toc-list a:hover, .toc-list a[aria-current="true"] { color: var(--text); border-left-color: var(--amber); }
  .toc-title { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; margin-bottom: 12px; }
}

.not-found { min-height: 60vh; display: flex; align-items: center; padding-block: 96px; }
.not-found h1 { margin-top: 0; }

/* Footer */
.site-footer { background: var(--chrome); color: var(--chrome-text); padding-block: 56px 40px; border-top: 1px solid var(--chrome-border); }
.footer-grid { display: grid; gap: 36px; }
.footer-logo { height: 40px; width: auto; }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-tagline { color: var(--chrome-muted); max-width: 30ch; }
.footer-heading { font: 500 .75rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--chrome-muted); margin-bottom: 12px; }
.site-footer a { color: var(--chrome-text); text-decoration: none; }
.site-footer a:hover { color: var(--amber); text-decoration: underline; }
.site-footer .plain li { display: block; }
.site-footer .plain li + li { margin-top: 0; }
.site-footer .plain a { display: inline-flex; align-items: center; min-height: 40px; }
.footer-credits { color: var(--chrome-muted); font-size: .85rem; line-height: 1.6; }
.footer-credits p + p { margin-top: 1em; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.6fr; } }

/* Motion: fade-in on reveal only when JS is available, and never for reduced motion */
html.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
html.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .video-play:hover svg { transform: none; }
}

/* ==========================================================================
   Homepage (v2): hero with altitude diagram, steps, spotlight, audiences,
   regions, inventor credentials
   ========================================================================== */

.section-dark { background: var(--chrome); color: var(--chrome-text); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--chrome-muted); }
.section-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.section-dark .lede { color: var(--chrome-muted); }

/* Hero: text left, altitude diagram right */
.hero-grid { position: relative; z-index: 2; display: grid; gap: 40px; align-items: end; }
.hero-content.intro { animation: rise 700ms var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.altitude { display: none; }
.altitude svg { width: 100%; max-width: 230px; height: auto; margin-left: auto; }
.alt-axis { stroke: rgba(255,255,255,.55); stroke-width: 2; }
.alt-ticks line { stroke: rgba(255,255,255,.55); stroke-width: 1.5; }
.alt-marker { fill: var(--amber); }
.alt-leader { stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 4 4; }
.alt-label, .alt-value, .alt-sub { font-family: var(--font-mono); fill: #E7EBF0; }
.alt-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; fill: #C9D1DC; }
.alt-value { font-size: 15px; font-weight: 600; }
.alt-sub { font-size: 11px; fill: #C9D1DC; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 300px; }
  .altitude { display: block; }
}

/* Steps */
.steps { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid var(--chrome-border); }
.step { padding: 28px 0; border-bottom: 1px solid var(--chrome-border); display: block; }
.step-no { display: block; color: var(--amber); font-size: 0.9rem; margin-bottom: 8px; }
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--chrome-muted); margin: 0; max-width: 60ch; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); border-top: 0; column-gap: 40px; }
  .step { border-bottom: 0; border-top: 2px solid var(--amber); padding: 24px 0 0; }
  .step-no { margin-bottom: 14px; }
}

/* Intro block */
.intro-block { max-width: 880px; }
.intro-block h2 { margin-bottom: 20px; }

/* Spotlight */
.spotlight { display: grid; gap: 40px; align-items: center; }
.spot-figure { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 40px 24px; display: flex; justify-content: center; }
.spot-img { width: min(100%, 360px); height: auto; }
.spec-table { margin-top: 28px; border-top: 1px solid var(--border); }
.spec-table > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.spec-table dt { color: var(--muted); }
.spec-table dd { font-family: var(--font-mono); font-weight: 600; text-align: right; }
.spec-table .unit { font-weight: 400; color: var(--muted); }
@media (min-width: 900px) { .spotlight { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* Audiences */
.audiences { display: grid; gap: 20px; margin-top: 40px; }
.audience { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; display: flex; flex-direction: column; }
.audience-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.audience h3 { padding: 22px 22px 6px; font-size: 1.3rem; }
.audience .link-list { padding: 0 22px 22px; }
@media (min-width: 900px) { .audiences { grid-template-columns: repeat(3, 1fr); } }

/* Regions: expanding panels (decorative, no information depends on it) */
.regions { display: grid; gap: 12px; margin-top: 40px; }
.region { min-width: 0; }
.region figure { position: relative; height: 100%; }
.region-img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius-card); }
.region figcaption { position: absolute; left: 12px; bottom: 12px; margin: 0; }
.region figcaption .mono {
  display: inline-block; background: rgba(14,17,22,.85); color: #fff;
  padding: 6px 10px; border-radius: var(--radius-btn); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem;
}
@media (min-width: 900px) {
  .regions { grid-template-columns: 1fr; }
  .regions { display: flex; height: 460px; gap: 10px; }
  .region { flex: 1 1 0; transition: flex-grow 500ms var(--ease); }
  .region:hover, .region:focus-within { flex-grow: 3; }
  .region figure, .region-img { height: 100%; }
  .region-img { height: 100%; }
}

/* Inventor band */
.inventor-band .credentials { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--chrome-border); border: 1px solid var(--chrome-border); border-radius: var(--radius-card); overflow: hidden; margin-top: 32px; }
.credentials > div { background: var(--chrome-2); padding: 18px 18px; }
.credentials dt { font: 400 .75rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--chrome-muted); }
.credentials dd { margin-top: 6px; font-size: 1.05rem; font-weight: 600; color: #fff; }
.inventor-text { margin-top: 28px; max-width: 62ch; color: var(--chrome-muted); }
.inventor-band .btn { margin-top: 24px; }
@media (min-width: 900px) { .inventor-band .credentials { grid-template-columns: repeat(4, 1fr); } }

.cta-price { margin-bottom: 24px; font-size: 1.1rem; color: #E7EBF0; }
.cta-price .mono { color: var(--amber); font-size: 1.4rem; font-weight: 600; margin-right: 6px; }

/* Reduced motion: no entrance animation, no panel expansion */
@media (prefers-reduced-motion: reduce) {
  .hero-content.intro { animation: none; }
  .region { transition: none; }
}

/* Print */
@media print {
  :root { --bg: #fff; --text: #000; --muted: #333; --border: #bbb; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .site-footer, .skip-link, .toc, .page-banner .banner-media, .hero, .cta, .btn, .nav-toggle { display: none !important; }
  .page-banner { min-height: 0; padding: 0 0 12pt; background: none; color: #000; }
  .page-banner h1, .page-banner .eyebrow { color: #000; }
  .legal-page { padding: 0; display: block; }
  .legal, .legal-layout { max-width: none; }
  .legal h3, .about-col-dis h1 { break-after: avoid; }
  .legal .cen, .legal .cen-dis, .about-col-dis .cen-dis { background: none; border-left: 2px solid #000; }
  a { color: #000; text-decoration: none; }
  .legal-layout .mascot { display: none; }
}
