/* ONE THEME FOR THE WHOLE PAGE, the reader's: light unless the device asks for
   dark. Every colour below is a token, and the two blocks set them; sections
   alternate only a shade within the theme, never light against dark. */
:root {
  color-scheme: light dark;
  --accent: #e07a3c;
  --accent-2: #f39a63;
  --on-accent: #1a0d04;
  --radius: 14px;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;

  --bg: #f4f6f8;
  --hero: radial-gradient(120% 90% at 70% 10%, #ffffff, #e6ecf2 60%);
  --surface: #ffffff;
  --surface-2: #f7f9fb;
  --fg: #15202b;
  --fg-mute: #5b6b7a;
  --line: rgba(20, 40, 60, 0.13);
  --stage: radial-gradient(80% 80% at 50% 40%, #ffffff, #dde5ec);
  --figure: linear-gradient(160deg, #ffffff, #e8edf2);
  --shadow: 0 1px 0 var(--line), 0 20px 50px -30px rgba(12, 26, 38, 0.35);
  --nav: rgba(244, 246, 248, 0.92);
  --footer: #e8edf2;
  --tip: rgba(21, 32, 43, 0.94);
  --tip-fg: #f4f6f8;
  --lead: #fff1e6;
  --lead-fg: #b4561c;
  --glow: rgba(224, 122, 60, 0.12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1a26;
    --hero: radial-gradient(120% 90% at 70% 10%, #1b3550, #0c1a26 60%);
    --surface: #12273a;
    --surface-2: #0f2131;
    --fg: #e8eef3;
    --fg-mute: #9db0c2;
    --line: rgba(200, 220, 240, 0.13);
    --stage: radial-gradient(80% 80% at 50% 40%, #2b4560, #13283b);
    --figure: linear-gradient(160deg, #34495e, #1c3043);
    --shadow: 0 1px 0 var(--line), 0 20px 50px -30px rgba(0, 0, 0, 0.6);
    --nav: rgba(12, 26, 38, 0.92);
    --footer: #08131c;
    --tip: rgba(232, 238, 243, 0.95);
    --tip-fg: #0c1a26;
    --lead: rgba(224, 122, 60, 0.16);
    --lead-fg: #f6a676;
    --glow: rgba(240, 138, 75, 0.16);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font: 16px/1.6 var(--body); color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.muted { color: var(--fg-mute); }
.small { font-size: 0.85rem; }
.eyebrow { font: 600 0.78rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.85em 1.4em; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--on-accent); font: 600 0.95rem var(--body); text-decoration: none; cursor: pointer;
  transition: transform 0.15s, background 0.15s; }
.btn:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--small { padding: 0.55em 1.1em; font-size: 0.85rem; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--fg); font-size: 1.1rem; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }

/* ------------------------------------------------------------ nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--fg); transition: background 0.25s, box-shadow 0.25s; }
.nav.is-scrolled, .nav.is-open { background: var(--nav); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav__bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; font: 600 1.15rem var(--display); color: var(--fg); }
.brand svg { width: 30px; height: 30px; }
.brand b { font-weight: 600; color: var(--accent); margin-left: 0.18em; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a:not(.btn) { text-decoration: none; font-size: 0.92rem; color: var(--fg-mute); }
.nav__links a:not(.btn):hover { color: var(--fg); }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.nav__toggle span { display: block; height: 2px; margin: 7px 8px; background: var(--fg); }

/* ------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; background: var(--hero); padding: 120px 0 56px; }
.hero__glow { position: absolute; inset: auto -10% -40% 30%; height: 70%; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
.hero h1 span { display: block; font-size: 0.48em; font-weight: 500; color: var(--fg-mute); letter-spacing: -0.01em; margin-top: 0.4em; }
.lede { font-size: 1.12rem; color: var(--fg-mute); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.badge { display: inline-flex; align-items: center; gap: 0.6em; font-size: 0.82rem; padding: 0.45em 0.9em; border-radius: 999px; background: var(--surface-2); color: var(--fg-mute); box-shadow: inset 0 0 0 1px var(--line); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--glow); }
.hint { text-align: center; font-size: 0.8rem; color: var(--fg-mute); margin-top: 8px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 48px 0 0; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.stats div { background: var(--surface); padding: 20px 22px; }
.stats dt { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-mute); }
.stats dd { margin: 6px 0 2px; font: 600 2rem/1 var(--display); }
.stats dd small { font-size: 0.5em; margin-left: 0.2em; color: var(--fg-mute); }
.stats span { font-size: 0.8rem; color: var(--fg-mute); }

/* ------------------------------------------------------------ highlights */
.highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.highlights article { padding: 24px 24px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.highlights h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.highlights p { color: var(--fg-mute); margin: 0; }

/* ------------------------------------------------------------ viewers */
.viewer { position: relative; width: 100%; cursor: grab; touch-action: pan-y; }
.viewer canvas { display: block; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 0.8s; }
.viewer.is-ready canvas { opacity: 1; }
.viewer__poster { position: absolute; inset: 0; margin: auto; max-height: 80%; max-width: 90%; object-fit: contain; opacity: 0.85; transition: opacity 0.6s; pointer-events: none; }
.viewer.is-ready .viewer__poster { opacity: 0; }
.viewer--hero { height: clamp(320px, 46vw, 560px); }
.viewer--explore { height: clamp(380px, 58vh, 640px); border-radius: var(--radius); background: var(--stage); }
.viewer--small { height: clamp(320px, 42vw, 480px); border-radius: var(--radius); background: var(--stage); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.toolbar__btns { display: flex; gap: 8px; }
.slider { display: flex; align-items: center; gap: 12px; font-size: 0.8rem; color: var(--fg-mute); flex: 1; min-width: 240px; }
.slider input { flex: 1; accent-color: var(--accent); }

.tip { position: fixed; z-index: 60; pointer-events: none; background: var(--tip); color: var(--tip-fg); padding: 8px 12px; border-radius: 8px; font-size: 0.85rem; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.tip strong { display: block; text-transform: capitalize; }
.tip span { color: var(--accent); font-size: 0.78rem; }

/* ------------------------------------------------------------ sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section__head { max-width: 46em; margin-bottom: 44px; }
.section__head p:last-child { font-size: 1.08rem; color: var(--fg-mute); }

/* explore */
.explore { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
.parts { display: grid; gap: 8px; }
.part { text-align: left; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; transition: background 0.15s, border-color 0.15s; font: inherit; }
.part:hover { background: var(--surface-2); }
.part[aria-pressed="true"] { border-color: var(--accent); background: var(--lead); }
.part__kicker { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-mute); }
.part__title { font: 600 1.1rem var(--display); }
.part-detail { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); min-height: 10em; }
.part-detail p { color: var(--fg-mute); }

.ticks { list-style: none; padding: 0; margin: 1em 0 0; display: grid; gap: 0.5em; }
.ticks li { position: relative; padding-left: 1.6em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.8em; height: 2px; background: var(--accent); }

/* features */
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 64px); align-items: center; margin-bottom: clamp(56px, 8vw, 100px); }
.feature--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feature--flip .feature__img, .feature--flip .feature__imgs, .feature--flip .feature__stage { order: 2; }
.feature__img { margin: 0; padding: clamp(16px, 3vw, 36px); border-radius: 20px; background: var(--figure); box-shadow: var(--shadow); }
.feature__img img { margin: auto; max-height: 460px; object-fit: contain; }
.feature__copy p { color: var(--fg-mute); }
.feature__imgs { display: grid; gap: 16px; }
.feature__img--detail { padding: clamp(12px, 2vw, 20px); }
.feature__img figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--fg-mute); text-align: center; }
.feature__stage .toolbar { justify-content: center; }
.viewer--feature { height: clamp(320px, 38vw, 460px); border-radius: 20px; background: var(--figure); box-shadow: var(--shadow); }

/* split sections (DSV, MAV) */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.split--flip .split__copy { order: 2; }
.split__copy p { color: var(--fg-mute); }

/* travel */
.travel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.viewer--travel { height: clamp(340px, 46vw, 560px); border-radius: var(--radius); background: var(--stage); }
.fit { margin: 0 0 16px; display: grid; gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; }
.fit div { background: var(--surface); padding: 12px 16px; display: grid; grid-template-columns: 40% 1fr; gap: 12px; }
.fit dt { color: var(--fg-mute); font-size: 0.88rem; }
.fit dd { margin: 0; font-weight: 600; font-size: 0.94rem; }


/* specs */
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 40px; align-items: start; }
.specs table { width: 100%; border-collapse: collapse; }
.specs caption { text-align: left; font: 600 1.15rem var(--display); padding-bottom: 10px; border-bottom: 2px solid var(--fg); }
.specs th, .specs td { text-align: left; vertical-align: top; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.specs th { width: 42%; font-weight: 500; color: var(--fg-mute); padding-right: 16px; }
.footnote { margin-top: 28px; font-size: 0.85rem; color: var(--fg-mute); max-width: 60em; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font: 600 1.12rem var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--fg-mute); margin: 12px 0 0; }

/* contact */
.contact { text-align: center; }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 24px 0 12px; }
.contact p { color: var(--fg-mute); }

/* footer */
.footer { background: var(--footer); padding: 40px 0; }
.footer__grid { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.footer p { margin: 0; color: var(--fg-mute); }

/* the travel weight and the fit lead */
.stats .stat--lead { background: var(--lead); }
.stats .stat--lead dd { color: var(--lead-fg); }
.fit .fit--lead { background: var(--lead); }
.fit .fit--lead dd { color: var(--lead-fg); font-size: 1.05rem; }

/* ------------------------------------------------------------ narrow */
@media (max-width: 960px) {
  .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__grid, .explore, .feature, .feature--flip, .split, .travel { grid-template-columns: minmax(0, 1fr); }
  .feature--flip .feature__img, .feature--flip .feature__imgs, .feature--flip .feature__stage, .split--flip .split__copy { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .specs { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .nav__toggle { display: block; }
  .nav__links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 16px 20px; background: var(--bg); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); display: none; }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 12px 0; width: 100%; }
  .nav__links .btn { width: auto; margin-top: 8px; }
  /* the subsystem cards become one row that scrolls sideways, so the model
     and the card's text stay on one screen */
  .parts { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scroll-snap-type: x proximity; }
  .part { flex: 0 0 auto; scroll-snap-align: start; padding: 10px 14px; }
  .part__title { font-size: 1rem; white-space: nowrap; }
  .part-detail { min-height: 0; margin-top: 12px; padding-top: 14px; }
}
@media (max-width: 560px) {
  .highlights { grid-template-columns: minmax(0, 1fr); }
  .stats dd { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* touch screens: the hint says two fingers */
.hint--touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .hint--mouse { display: none; }
  .hint--touch { display: inline; }
}
