/* ELVORIX website
   Light theme: warm cream, forest ink and a lime accent.
   Dark theme: a charcoal stage with an indigo glow.
   The theme follows the device; the toggle in the header overrides it. */


:root {
  --f-display: 'Urbanist', 'Jost', system-ui, sans-serif;
  --f-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --f-body: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --lux: linear-gradient(100deg, #4A3EC6 0%, #7B6BF4 38%, #E0456D 72%, #FF6B3D 100%);

  --bg: #FBFAF6;
  --bg-2: #F4F0E8;
  --tile: #F3EFE6;
  --tile-2: #EAE4D7;
  --card: #FFFFFF;
  --ink: #10261D;
  --ink-2: #2F443A;
  --muted: #627169;
  --line: #E2DCCF;
  --line-2: #D5CEBF;
  --accent: #8CC63F;
  --accent-2: #6FA62A;
  --on-accent: #0E2316;
  --glow: 0 0 0 rgba(0, 0, 0, 0);
  --hot: #8CC63F;
  --hot-glow: 0 0 0 8px rgba(140, 198, 63, .18), 0 0 30px rgba(140, 198, 63, .55);
  --shadow: 0 40px 80px -40px rgba(16, 38, 29, .28);
  --shadow-sm: 0 18px 40px -26px rgba(16, 38, 29, .3);
  --stage: radial-gradient(120% 90% at 50% 30%, #FFFFFF 0%, #F7F3EB 46%, #EDE7DA 100%);
  --ghost-fill: linear-gradient(180deg, #E9E3D5 10%, #F6F2EA 92%);
  --ghost-stroke: rgba(16, 38, 29, 0);
  --panel: rgba(255, 255, 255, .72);
  --panel-line: rgba(16, 38, 29, .08);
  --map-line: rgba(16, 38, 29, .22);
  --route: #6FA62A;
  --header: rgba(251, 250, 246, .78);
  --logo-plate: transparent;
  --deep: #10261D;
  --on-deep: #F4F1E8;
  --on-deep-2: rgba(244, 241, 232, .72);
  --logo-plate-pad: 0;
  color-scheme: light;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --max: 1280px;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101012;
    --bg-2: #151518;
    --tile: rgba(255, 255, 255, .035);
    --tile-2: rgba(255, 255, 255, .06);
    --card: #1A1B1E;
    --ink: #EFEFF1;
    --ink-2: #C6C8CE;
    --muted: #8C8F97;
    --line: rgba(255, 255, 255, .09);
    --line-2: rgba(255, 255, 255, .16);
    --accent: #5E5CFF;
    --accent-2: #7A79FF;
    --on-accent: #FFFFFF;
    --glow: 0 0 28px rgba(94, 92, 255, .55);
    --hot: #6A68FF;
    --hot-glow: 0 0 0 8px rgba(106, 104, 255, .16), 0 0 34px rgba(106, 104, 255, .9);
    --shadow: 0 40px 90px -40px rgba(0, 0, 0, .8);
    --shadow-sm: 0 18px 40px -24px rgba(0, 0, 0, .8);
    --stage: radial-gradient(110% 85% at 50% 32%, #36373C 0%, #1D1E21 44%, #0D0D0F 100%);
    --ghost-fill: linear-gradient(180deg, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, .02) 85%);
    --ghost-stroke: rgba(255, 255, 255, .06);
    --panel: rgba(24, 25, 28, .62);
    --panel-line: rgba(255, 255, 255, .08);
    --map-line: rgba(255, 255, 255, .16);
    --route: #6A68FF;
    --header: rgba(16, 16, 18, .66);
    --logo-plate: #F2F0F5;
    --lux: linear-gradient(100deg, #BDB2FF 0%, #9C90FF 36%, #FF8FA8 70%, #FFB47E 100%);
    --deep: #1A1930;
    --on-deep: #F1F0FF;
    --on-deep-2: rgba(241, 240, 255, .7);
    --logo-plate-pad: 7px 14px;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101012;
  --bg-2: #151518;
  --tile: rgba(255, 255, 255, .035);
  --tile-2: rgba(255, 255, 255, .06);
  --card: #1A1B1E;
  --ink: #EFEFF1;
  --ink-2: #C6C8CE;
  --muted: #8C8F97;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --accent: #5E5CFF;
  --accent-2: #7A79FF;
  --on-accent: #FFFFFF;
  --glow: 0 0 28px rgba(94, 92, 255, .55);
  --hot: #6A68FF;
  --hot-glow: 0 0 0 8px rgba(106, 104, 255, .16), 0 0 34px rgba(106, 104, 255, .9);
  --shadow: 0 40px 90px -40px rgba(0, 0, 0, .8);
  --shadow-sm: 0 18px 40px -24px rgba(0, 0, 0, .8);
  --stage: radial-gradient(110% 85% at 50% 32%, #36373C 0%, #1D1E21 44%, #0D0D0F 100%);
  --ghost-fill: linear-gradient(180deg, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, .02) 85%);
  --ghost-stroke: rgba(255, 255, 255, .06);
  --panel: rgba(24, 25, 28, .62);
  --panel-line: rgba(255, 255, 255, .08);
  --map-line: rgba(255, 255, 255, .16);
  --route: #6A68FF;
  --header: rgba(16, 16, 18, .66);
  --logo-plate: #F2F0F5;
  --lux: linear-gradient(100deg, #BDB2FF 0%, #9C90FF 36%, #FF8FA8 70%, #FFB47E 100%);
  --deep: #1A1930;
  --on-deep: #F1F0FF;
  --on-deep-2: rgba(241, 240, 255, .7);
  --logo-plate-pad: 7px 14px;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 17.5px; line-height: 1.72; font-weight: 400; letter-spacing: .008em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(42px, 6.2vw, 92px); line-height: 1.02; letter-spacing: -.035em; font-weight: 400; }
h2 { font-size: clamp(34px, 4.4vw, 62px); line-height: 1.06; letter-spacing: -.03em; font-weight: 400; }
h3 { font-size: clamp(21px, 1.7vw, 25px); line-height: 1.25; letter-spacing: -.01em; font-weight: 600; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 12px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * 40px); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
@media (min-width: 900px) { .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }
.section { padding-block: clamp(80px, 11vw, 150px); }
.section.tight { padding-block: clamp(56px, 7vw, 96px); }

.lead { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.72; color: var(--ink-2); max-width: 62ch; font-weight: 300; letter-spacing: .01em; }
.muted { color: var(--muted); }
.serif { font-family: var(--f-serif); font-weight: 400; letter-spacing: -.01em; }
.statement { font-family: var(--f-serif); font-weight: 500; font-size: clamp(34px, 4vw, 62px); line-height: 1.1; letter-spacing: -.01em; color: var(--ink); max-width: 22ch; text-wrap: balance; }
.tagline { font-family: var(--f-serif); font-style: italic; font-weight: 500; letter-spacing: -.01em; line-height: 1.05; background: var(--lux); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.tagline-sm { font-size: clamp(26px, 2.4vw, 36px); }
.tagline-md { font-size: clamp(26px, 2.8vw, 42px); margin-top: 10px; max-width: 22ch; }
.tagline-xl { font-size: clamp(64px, 10.5vw, 180px); line-height: .95; }
.label { font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--muted); }

/* The outlined pill tag from the light reference */
.tag { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--ink-2); background: transparent; }
.tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: var(--glow); }

/* ---------- Buttons: pill with a round arrow ---------- */
.btn { display: inline-flex; align-items: center; gap: 14px; height: 54px; padding: 0 8px 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: .01em; transition: transform .35s var(--ease), background-color .35s var(--ease), box-shadow .35s var(--ease); white-space: nowrap; }
.btn .arr { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: transform .35s var(--ease); flex: none; }
.btn .arr svg { width: 16px; height: 16px; }
.btn:hover .arr { transform: rotate(-45deg); }
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid .arr { background: var(--accent); color: var(--on-accent); box-shadow: var(--glow); }
.btn-line { border: 1px solid var(--line-2); color: var(--ink); background: transparent; }
.btn-line .arr { background: var(--ink); color: var(--bg); }
.btn-ghost { padding: 0 24px; border: 1px solid var(--line-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.round { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background-color .3s, color .3s; flex: none; }
.round svg { width: 18px; height: 18px; }
.round:hover { background: var(--ink); color: var(--bg); }
.round.fill { background: var(--accent); color: var(--on-accent); border-color: transparent; box-shadow: var(--glow); }

/* ---------- Header ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 100; padding-top: env(safe-area-inset-top, 0px); transition: background-color .4s var(--ease), border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.hdr.scrolled { background: var(--header); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border-bottom-color: var(--line); }
.hdr-in { height: 76px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; background: var(--logo-plate); padding: var(--logo-plate-pad); border-radius: 999px; flex: none; }
.brand img.mark { width: 34px; height: 34px; }
.brand img.word { height: 30px; width: auto; }
.nav { display: flex; gap: 6px; margin: 0 auto; }
.nav a { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); padding: 10px 12px; border-radius: 999px; position: relative; transition: color .3s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent); box-shadow: var(--glow); }
.hdr-tools { display: flex; align-items: center; gap: 10px; }
.theme-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .sun { display: block; } :root:not([data-theme="light"]) .theme-btn .moon { display: none; } }
.hdr .btn { height: 44px; font-size: 14px; padding: 0 6px 0 18px; }
.hdr .btn .arr { width: 32px; height: 32px; }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); place-items: center; }
.burger span { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.burger span::before { top: -5px; } .burger span::after { top: 5px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(5px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-5px) rotate(-45deg); }
.mnav { position: fixed; inset: 0; z-index: 90; background: var(--bg); padding: calc(110px + env(safe-area-inset-top, 0px)) var(--gutter-r) 40px var(--gutter);
  display: flex; flex-direction: column; gap: 6px; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
.mnav a { font-family: var(--f-display); font-size: 38px; font-weight: 500; letter-spacing: -.02em; padding: 6px 0; border-bottom: 1px solid var(--line); }
.mnav .btn { margin-top: 24px; align-self: flex-start; font-family: var(--f-body); font-size: 15px; border-bottom: 0; padding: 0 8px 0 24px; }
.menu-open .mnav { opacity: 1; visibility: visible; }
@media (max-width: 1080px) { .nav, .hdr .btn { display: none; } .burger { display: grid; } .hdr-in { justify-content: space-between; } }

/* ---------- Home hero: a stage the drone moves through as you scroll ---------- */
.hero { position: relative; height: 420vh; background: var(--bg); }
.hero-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--stage); }
.hero-pin::after { content: ""; position: absolute; inset: auto 0 0; height: 18vh; background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none; z-index: 6; }
.ghost { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); font-family: var(--f-display); font-weight: 800; font-size: clamp(96px, 19vw, 360px);
  line-height: .8; letter-spacing: -.045em; white-space: nowrap; background: var(--ghost-fill); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1px var(--ghost-stroke); user-select: none; pointer-events: none; z-index: 1; }
.ghost-over { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); z-index: 4; font-family: var(--f-serif); font-style: italic; font-size: clamp(22px, 2.6vw, 40px); color: var(--ink); opacity: .9; pointer-events: none; white-space: nowrap; }
.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; touch-action: pan-y; }
.hero-map { position: absolute; left: 50%; top: 38%; width: 150vmax; height: 90vmax; transform: translate(-50%, -30%) perspective(900px) rotateX(64deg); z-index: 2; opacity: 0; pointer-events: none; }
.hero-map svg { width: 100%; height: 100%; }
.hero-map .road { fill: none; stroke: var(--map-line); stroke-width: 2; }
.hero-map .route { fill: none; stroke: var(--route); stroke-width: 7; stroke-linecap: round; filter: drop-shadow(0 0 10px var(--route)); }
.scene { position: absolute; z-index: 5; opacity: 0; transform: translateY(24px); transition: none; pointer-events: none; }
.scene.on { pointer-events: auto; }
.scene-1 { left: var(--gutter); bottom: clamp(70px, 12vh, 140px); width: min(640px, calc(100% - 40px)); }
.scene-1 h1 { font-size: clamp(40px, 5.2vw, 78px); }
.scene-1 .lead { margin-top: 18px; }
.scene-1 .btn-row { margin-top: 30px; }
@media (min-width: 900px) { .scene-1 { left: max(40px, calc((100vw - var(--max)) / 2)); } }
.panel { background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--r-lg); backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2); box-shadow: var(--shadow); }
.scene-2 { left: 50%; bottom: clamp(36px, 6vh, 80px); width: min(760px, calc(100% - 40px)); margin-left: max(-380px, calc(-50% + 20px)); text-align: center; padding: 34px clamp(20px, 3vw, 40px) 26px; }
.scene-2 h2 { font-size: clamp(30px, 3.4vw, 48px); }
.scene-2 p { color: var(--ink-2); margin: 10px auto 0; max-width: 52ch; }
.conds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 24px; }
.cond { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border-radius: var(--r-md); border: 1px solid var(--panel-line); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.cond svg { width: 24px; height: 24px; color: var(--ink); }
.scene-3 { left: 50%; top: 50%; width: min(1200px, calc(100% - 40px)); margin-left: max(-600px, calc(-50% + 20px)); margin-top: -10vh; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.scene-3 .lead { margin-top: 6px; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.pills span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--panel-line); font-size: 13.5px; font-weight: 500; color: var(--ink-2); background: color-mix(in srgb, var(--card) 40%, transparent); }
.fix { margin-top: 20px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--panel-line); }
.fix i { width: 10px; height: 10px; border-radius: 50%; background: var(--hot); box-shadow: var(--hot-glow); flex: none; }
.fix b { font-family: var(--f-display); font-size: 15px; letter-spacing: .02em; }
.fix span { font-size: 13px; color: var(--muted); }
.hotspot { position: absolute; z-index: 5; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; display: grid; place-items: center; pointer-events: none; opacity: 0; }
.hotspot::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--hot); box-shadow: var(--hot-glow); }
.hotspot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--hot); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }

/* The progress rail from the dark reference */
.rail { position: absolute; right: max(18px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); z-index: 7; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.rail .bar { width: 1px; height: 26vh; background: var(--line-2); position: relative; overflow: hidden; }
.rail .bar i { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--accent); box-shadow: var(--glow); transform-origin: top; transform: scaleY(var(--p, 0)); }
.rail .n { font-family: var(--f-display); font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .06em; transition: color .3s, transform .3s; }
.rail .n.on { color: var(--ink); transform: scale(1.25); }
.rail .soc { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.rail .soc a { width: 18px; height: 18px; color: var(--muted); }
.rail .soc a:hover { color: var(--ink); }
.cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 7; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.cue i { width: 1px; height: 38px; background: linear-gradient(var(--muted), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.no-webgl .stage-canvas { display: none; }
.fallback-art { position: absolute; inset: 0; display: none; place-items: center; z-index: 3; }
.no-webgl .fallback-art { display: grid; }
.fallback-art img { width: min(46vw, 420px); opacity: .9; }
@media (max-width: 760px) {
  .rail { display: none; }
  .scene-2 { bottom: 40px; padding: 24px 18px 18px; }
  .conds { grid-template-columns: repeat(2, 1fr); }
  .scene-1 { bottom: 70px; }
  .scene-3 { bottom: 50px; padding: 22px; }
  .ghost { top: 26%; }
  .cue { display: none; }
}

/* ---------- Page hero (inner pages) ---------- */
.phero { position: relative; padding-top: calc(170px + env(safe-area-inset-top, 0px)); padding-bottom: clamp(60px, 8vw, 110px); overflow: hidden; }
.phero .tag { margin-bottom: 26px; }
.phero h1 { max-width: 16ch; }
.phero .lead { margin-top: 24px; }
.phero .btn-row { margin-top: 34px; }
.phero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: end; }
@media (max-width: 900px) { .phero-grid { grid-template-columns: 1fr; } }

/* 3D stages on inner pages */
.stage { position: relative; border-radius: var(--r-xl); background: var(--stage); overflow: hidden; min-height: clamp(420px, 62vh, 720px); isolation: isolate; }
.stage .ghost { top: 50%; font-size: clamp(80px, 11.5vw, 200px); }
.stage .stage-canvas { z-index: 3; }
.stage-note { position: absolute; left: 24px; bottom: 20px; z-index: 5; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--muted); }

/* ---------- Tiles, cards, grids ---------- */
.tile { background: var(--tile); border-radius: var(--r-xl); border: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }
.head .tag { margin-bottom: 20px; }
.head h2 { max-width: 18ch; }
.head .lead { max-width: 44ch; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 2.4vw, 34px); display: flex; flex-direction: column; gap: 12px; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.card p { color: var(--ink-2); font-size: 16px; }
.icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); box-shadow: var(--glow); margin-bottom: 6px; }
.icon svg { width: 21px; height: 21px; }
.icon.quiet { background: var(--tile-2); color: var(--ink); box-shadow: none; }
.media { border-radius: var(--r-xl); overflow: hidden; position: relative; background: var(--tile); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.tall { aspect-ratio: 4 / 4.4; }
.media.wide { aspect-ratio: 16 / 9; }
.float-card { position: absolute; left: 18px; bottom: 18px; right: auto; max-width: 300px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px; }
.float-card b { font-family: var(--f-display); font-size: 21px; line-height: 1.2; font-weight: 600; }
.mini-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 34px; }
.mini-feats h3 { font-size: 18px; margin-top: 12px; }
.mini-feats p { font-size: 15px; color: var(--muted); margin-top: 6px; }

/* Product split (light reference: rounded image, text and two mini features) */
.prod { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.prod + .prod { margin-top: clamp(60px, 8vw, 120px); }
.prod.flip .prod-media { order: 2; }
@media (max-width: 860px) { .prod { grid-template-columns: 1fr; } .prod.flip .prod-media { order: 0; } }
.prod-media { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--stage); aspect-ratio: 1 / 1; isolation: isolate; }
.prod-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.prod-media .ghost { font-size: clamp(70px, 10.5vw, 160px); top: 50%; }
.prod h2 { margin: 18px 0 18px; max-width: 14ch; }
.prod .btn-row { margin-top: 34px; }

/* Numbered rows (light reference "Why") */
.why { padding: clamp(20px, 3vw, 40px); }
.rows { display: flex; flex-direction: column; gap: 10px; }
.row { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.row > button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; text-align: left; font-family: var(--f-display); font-size: clamp(19px, 1.6vw, 23px); font-weight: 600; letter-spacing: -.01em; }
.row > button .num { font-family: var(--f-display); font-size: 15px; color: var(--muted); font-weight: 600; letter-spacing: .06em; }
.row .body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.row .body > div { overflow: hidden; }
.row .inner { display: grid; grid-template-columns: 1fr 260px; gap: 24px; padding: 0 26px 26px; align-items: end; }
.row .inner p { color: var(--ink-2); max-width: 56ch; }
.row .inner img { border-radius: var(--r-md); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.row.open .body { grid-template-rows: 1fr; }
@media (max-width: 700px) { .row .inner { grid-template-columns: 1fr; } }
.why-media { margin-top: 12px; border-radius: var(--r-lg); overflow: hidden; position: relative; aspect-ratio: 21 / 9; }
.why-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .why-media { aspect-ratio: 4 / 3; } }

/* Carousel (light reference "Explore our products") */
.car-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px; }
.car-nav { display: flex; gap: 10px; }
.car { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.car::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) { .car { grid-auto-columns: calc((100% - 54px) / 4); } }
.mcard { scroll-snap-align: start; display: flex; flex-direction: column; gap: 16px; }
.mcard .pic { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1 / 1.05; background: var(--tile); }
.mcard .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mcard:hover .pic img { transform: scale(1.05); }
.mcard .pic .round { position: absolute; right: 14px; bottom: 14px; background: var(--card); width: 46px; height: 46px; }
.mcard:hover .pic .round { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.mcard .pic .chip { position: absolute; left: 14px; top: 14px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: var(--card); color: var(--ink); }
.mcard h3 { font-size: 20px; }
.mcard p { font-size: 15px; color: var(--muted); margin-top: -8px; }
.pic-art { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); }
.pic-art svg { width: 44%; height: 44%; opacity: .9; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 28px 22px 4px 0; display: flex; flex-direction: column; gap: 6px; }
.stat + .stat { padding-left: 22px; border-left: 1px solid var(--line); }
.stat b { font-family: var(--f-display); font-size: clamp(38px, 4vw, 58px); font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.stat span { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { padding-left: 0; border-left: 0; } .stat { border-top: 1px solid var(--line); } }

/* Eight-up specification grid */
.stats-8 { grid-template-columns: repeat(4, 1fr); }
.stats-8 .stat:nth-child(4n+1) { padding-left: 0; border-left: 0; }
.stats-8 .stat:nth-child(n+5) { border-top: 1px solid var(--line); margin-top: 6px; }
.stats-8 .stat b { font-size: clamp(30px, 3.2vw, 48px); }
@media (max-width: 760px) { .stats-8 { grid-template-columns: 1fr 1fr; } .stats-8 .stat:nth-child(odd) { padding-left: 0; border-left: 0; } .stats-8 .stat:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); } }

/* 3D product cards and photo tiles */
.pic.stage3d { background: var(--stage); }
.pic.stage3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.prod-media.photo { background: var(--tile); }

/* SAVRIX entry: specification callouts that follow the aircraft */
.callouts { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.callout { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .7s var(--ease); transition-delay: calc(var(--i) * 160ms); }
.landed .callout { opacity: 1; }
.callout i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--hot); box-shadow: var(--hot-glow); }
.callout::before { content: ""; position: absolute; top: 0; height: 1px; width: 64px; background: linear-gradient(90deg, var(--ink-2), transparent); }
.callout.r::before { left: 6px; }
.callout.l::before { right: 6px; background: linear-gradient(270deg, var(--ink-2), transparent); }
.callout span { position: absolute; top: -26px; display: flex; flex-direction: column; gap: 2px; padding: 9px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--panel-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); white-space: nowrap; }
.callout.r span { left: 74px; }
.callout.l span { right: 74px; }
.callout.d span { top: 18px; }
.callout.d::before { transform: rotate(-24deg); transform-origin: right center; }
.callout b { font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.callout em { font-style: normal; font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) { .callouts { display: none; } }
.sx .hx-copy { grid-template-columns: 1fr; max-width: 640px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; counter-reset: s; }
.step { border-top: 1px solid var(--line-2); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.step .k { font-family: var(--f-display); font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .06em; }
.step b { font-family: var(--f-display); font-size: 22px; font-weight: 600; }
.step p { font-size: 14.5px; color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); row-gap: 28px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr 1fr; } }

/* HELMRIX band and page */
.hx { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--stage); isolation: isolate; min-height: clamp(560px, 86vh, 860px); display: grid; }
.hx canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.hx .ghost { top: 30%; font-size: clamp(80px, 17vw, 290px); }
.hx-copy { position: relative; z-index: 4; align-self: end; padding: clamp(24px, 4vw, 54px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; pointer-events: none; }
.hx-copy > * { pointer-events: auto; }
.hx-copy h2 { max-width: 13ch; }
.hx-copy .lead { margin-top: 14px; max-width: 40ch; }
.hx-words { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; max-width: 380px; }
.hx-words span { padding: 10px 16px; border-radius: 999px; background: var(--panel); border: 1px solid var(--panel-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-family: var(--f-display); font-weight: 600; font-size: 15px; }
@media (max-width: 760px) { .hx { min-height: 820px !important; } .hx-copy { grid-template-columns: 1fr; } .hx-words { justify-content: flex-start; } .hx .ghost { top: 16%; } }
.flash { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 55%); mix-blend-mode: screen; }
.hx-feat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .hx-feat { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hx-feat { grid-template-columns: 1fr; } }
.hx-feat .card b { font-family: var(--f-display); font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.platforms { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.platforms span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; }
.platforms span i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: var(--glow); }
.platforms span.soon { color: var(--muted); }
.platforms span.soon i { background: var(--line-2); box-shadow: none; }

/* Editions */
.ed { display: flex; flex-direction: column; gap: 10px; }
.ed .label { margin-bottom: 4px; }
.ed h3 { font-size: 30px; font-family: var(--f-display); }
.ed.hl { background: var(--deep); color: var(--on-deep); border-color: var(--line); }
.ed.hl h3, .ed.hl p { color: var(--on-deep); }
.ed.hl .label { color: var(--accent); }

/* People */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 22px; }
@media (max-width: 640px) { .people { grid-template-columns: 1fr; } }
.person .ph { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--tile); }
.person .ph img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: transform .8s var(--ease); }
.person:hover .ph img { transform: scale(1.04); }
.person h3 { margin-top: 18px; }
.person p { color: var(--muted); font-size: 15px; margin-top: 2px; }

/* Key/value facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--card); }
.facts > div { padding: 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.facts > div:nth-child(3n) { border-right: 0; }
.facts span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.facts b { font-family: var(--f-display); font-weight: 600; font-size: 18px; overflow-wrap: anywhere; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } .facts > div { border-right: 0; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 4vw, 60px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.cinfo { display: flex; flex-direction: column; gap: 14px; }
.cline { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); }
.cline .icon { margin: 0; width: 42px; height: 42px; }
.cline span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); display: block; }
.cline b { font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
form.enq { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 3vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { form.enq { grid-template-columns: 1fr; } }
.fld { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fld.full { grid-column: 1 / -1; }
.fld label { font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--ink-2); }
.fld label em { font-style: normal; color: var(--muted); font-weight: 500; }
.fld input, .fld select, .fld textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px; transition: border-color .3s, box-shadow .3s; }
.fld textarea { min-height: 150px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.fld .bad { border-color: #C2412D; }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; }
.form-msg { grid-column: 1 / -1; font-size: 14.5px; font-weight: 600; min-height: 1em; }
.form-msg.err { color: #C2412D; }
.done { grid-column: 1 / -1; padding: 22px; border-radius: var(--r-md); background: var(--tile); }
.done h3 { margin-bottom: 8px; }

/* CTA band */
.cta { border-radius: var(--r-xl); padding: clamp(36px, 6vw, 84px); background: var(--deep); color: var(--on-deep); border: 1px solid var(--line); position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.cta h2 { color: var(--on-deep); max-width: 16ch; }
.cta p { color: var(--on-deep-2); margin-top: 16px; max-width: 46ch; }
.cta .btn-solid { background: var(--on-deep); color: #10111A; }
.cta::after { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 38%, transparent), transparent 65%); pointer-events: none; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* Footer */
.ftr { padding-top: clamp(70px, 9vw, 120px); padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); margin-top: clamp(60px, 8vw, 110px); }
.ftr-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 900px) { .ftr-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ftr-top { grid-template-columns: 1fr; } }
.ftr .brand img.word { height: 34px; }
.ftr .say { font-family: var(--f-serif); font-size: 30px; line-height: 1.15; margin-top: 22px; max-width: 14ch; }
.ftr h4 { font-family: var(--f-body); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 16px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ftr ul a { color: var(--ink-2); transition: color .3s; }
.ftr ul a:hover { color: var(--ink); }
.ftr address { font-style: normal; color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.ftr-bot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }

/* Reveal on scroll: one quiet rise */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hotspot::after, .cue i { animation: none; }
}
