/* OneBonsai Gulf Defense — built on the obgulf.com design system (Rev 2) */
:root {
  --paper: #f2f4ef; --paper-2: #e7ebe6; --white: #fbfcf8;
  --ink: #0a0b0a; --graphite: #191c19; --muted: #626862;
  --line: rgba(10, 11, 10, 0.18); --line-light: rgba(251, 252, 248, 0.18);
  --lime: #dcff22; --lime-deep: #708500;
  --dark: #090b0a; --dark-stage: #101512; --dark-card: #111411; --dark-raised: #252725;
  --page-gutter: clamp(20px, 5.6vw, 92px);
  --section-space: clamp(104px, 12vw, 190px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --overshoot: cubic-bezier(.18, 1.45, .28, 1);
  --dim: rgba(251, 252, 248, .62);
}
@media (max-width: 760px) { :root { --section-space: clamp(84px, 22vw, 120px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--dark); color: var(--white);
  font-family: "Hanken Grotesk", "Hanken", system-ui, sans-serif;
  font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { text-wrap: balance; font-weight: 500; }
a { color: inherit; text-decoration: none; }
img, video, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { color: var(--ink); background: var(--lime); }
:where(a, button, summary):focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.mono { font: 400 11px/1.25 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.kicker { color: rgba(255, 255, 255, .54); letter-spacing: .05em; margin-bottom: 22px; }
.muted { color: var(--dim); }
.section-pad { padding: var(--section-space) var(--page-gutter); }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--ink); padding: 10px 14px; font-weight: 560; font-size: 13px; }
.skip-link:focus { top: 12px; }

main { position: relative; z-index: 2; }
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 1; pointer-events: none; }

/* ---------- Boot ---------- */
.boot { position: fixed; inset: 0; z-index: 90; background: var(--dark); display: grid; place-items: center; transition: opacity 620ms ease, visibility 0s linear 620ms; }
.boot.is-done { opacity: 0; visibility: hidden; }
.boot-inner { width: min(360px, 76vw); }
.boot-line { color: var(--dim); }
.boot-count { font-size: clamp(72px, 14vw, 150px); font-weight: 350; letter-spacing: -.05em; line-height: .9; margin: 14px 0 22px; font-variant-numeric: tabular-nums; }
.boot-bar { height: 3px; background: rgba(251, 252, 248, .1); overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 0; background: var(--lime); }
.boot-status { margin-top: 14px; color: var(--dim); }

/* ---------- Reticle cursor ---------- */
.reticle { position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none; opacity: 0; transition: opacity 240ms ease; mix-blend-mode: difference; }
.reticle.is-on { opacity: 1; }
.reticle i { position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; border: 1px solid var(--white); border-radius: 50%; transition: transform 320ms var(--ease), border-color 180ms ease; }
.reticle i::before, .reticle i::after { content: ""; position: absolute; background: var(--white); }
.reticle i::before { left: 50%; top: -6px; width: 1px; height: 44px; margin-left: -.5px; opacity: .5; }
.reticle i::after { top: 50%; left: -6px; height: 1px; width: 44px; margin-top: -.5px; opacity: .5; }
.reticle span { position: absolute; left: 28px; top: 14px; white-space: nowrap; font-size: 9px; color: var(--white); }
.reticle.is-hot i { transform: scale(1.7); border-color: var(--lime); }
.reticle.is-hot span { opacity: 0; }
@media (hover: none) { .reticle { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: 88px; padding: 20px clamp(20px, 3.4vw, 58px);
  background: rgba(4, 5, 6, .48); backdrop-filter: blur(14px) saturate(112%); -webkit-backdrop-filter: blur(14px) saturate(112%);
  border-bottom: 1px solid var(--line-light);
  transition: background-color 320ms ease, min-height 420ms var(--ease), padding 420ms var(--ease), transform 520ms var(--ease);
}
.site-header.is-scrolled { min-height: 72px; padding-block: 12px; background: rgba(4, 5, 6, .74); }
.site-header.on-paper { background: rgba(4, 5, 6, .86); }
.brand { display: flex; align-items: center; gap: 14px; justify-self: start; }
.brand img { width: clamp(140px, 13vw, 205px); height: auto; }
.brand-division { padding-left: 14px; border-left: 1px solid var(--line-light); color: var(--lime); font-size: 10px; letter-spacing: .1em; }
.nav { display: flex; gap: clamp(22px, 2.8vw, 46px); }
.nav a { font: 400 11px/1 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: rgba(251, 252, 248, .78); min-height: 44px; display: inline-flex; align-items: center; transition: color 180ms ease; }
.nav a:hover { color: var(--lime); }
.nav { align-items: center; }
.nav-group { position: relative; }
.nav-trigger { font: 400 11px/1 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: rgba(251, 252, 248, .78); min-height: 44px; display: inline-flex; align-items: center; gap: 7px; transition: color 180ms ease; }
.nav-trigger span { font-size: 9px; transition: transform 320ms var(--ease); }
.nav-group.is-open .nav-trigger, .nav-trigger:hover { color: var(--lime); }
.nav-group.is-open .nav-trigger span { transform: rotate(180deg); }
/* invisible bridge so the pointer can travel from trigger to panel */
.nav-group::after { content: ""; position: absolute; left: -20px; right: -20px; top: 100%; height: 22px; }
.mega { position: absolute; top: calc(100% + 18px); left: 50%; width: min(680px, 86vw); display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: rgba(9, 11, 10, .97); border: 1px solid var(--line-light); border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); overflow: hidden;
  opacity: 0; visibility: hidden; transform: translate(-50%, -8px); transition: opacity 240ms ease, transform 420ms var(--ease), visibility 0s linear 240ms; }
.nav-group.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity 240ms ease, transform 420ms var(--ease), visibility 0s; }
.mega-col { display: flex; flex-direction: column; padding: 22px 14px 18px; }
.mega-space { border-left: 1px solid var(--line-light); background: linear-gradient(160deg, rgba(196, 240, 66, .06), transparent 60%); }
.nav .mega a { min-height: 0; text-transform: none; letter-spacing: 0; font: inherit; align-items: flex-start; text-align: left; }
.nav .mega .mega-head, .nav .mega .mega-demo { align-items: center; }
.nav .mega-head { display: flex; justify-content: space-between; padding: 0 12px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line-light); color: var(--lime); font: 400 10px/1 "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.nav .mega-item { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; color: var(--white); transition: background-color 180ms ease; }
.nav .mega-item b { font: 500 16px/1.1 "Hanken Grotesk", sans-serif; letter-spacing: -.02em; transition: color 180ms ease; }
.nav .mega-item span { font: 400 10px/1.3 "IBM Plex Mono", monospace; letter-spacing: .04em; color: rgba(251, 252, 248, .5); }
.nav .mega-item:hover, .nav .mega-item:focus-visible { background: rgba(251, 252, 248, .06); }
.nav .mega-item:hover b { color: var(--lime); }
.nav .mega-demo { margin: auto 12px 0; padding-top: 14px; border-top: 1px solid var(--line-light); display: flex; align-items: center; gap: 10px; font: 500 13px/1.2 "Hanken Grotesk", sans-serif; color: rgba(251, 252, 248, .85); }
.nav .mega-demo span { padding: 3px 8px; border-radius: 99px; background: var(--lime); color: #0a0b0a; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.nav .mega-demo:hover { color: var(--lime); }
.nav-cta { justify-self: end; font: 500 12px/1 "Hanken Grotesk", sans-serif; min-height: 34px; display: inline-flex; align-items: center; gap: 13px; transition: color 180ms ease; }
.nav-cta:hover { color: var(--lime); }
@media (max-width: 840px) { .nav { display: none; } .site-header { grid-template-columns: 1fr auto; } }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; position: relative; width: 44px; height: 44px; border: 1px solid var(--line-light); border-radius: 50%; }
.menu-btn i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--white); transition: transform 420ms var(--ease), top 420ms var(--ease); }
.menu-btn i:first-child { top: 18px; } .menu-btn i:last-child { top: 24px; }
.menu-open .menu-btn { border-color: var(--lime); }
.menu-open .menu-btn i { top: 21px; background: var(--lime); }
.menu-open .menu-btn i:first-child { transform: rotate(45deg); } .menu-open .menu-btn i:last-child { transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 49; display: flex; flex-direction: column; padding: 110px var(--page-gutter) 32px; background: rgba(9, 11, 10, .97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; transition: opacity 320ms ease; }
.mobile-menu[hidden] { display: none; }
.menu-open .mobile-menu { opacity: 1; }
.mobile-menu nav { display: flex; flex-direction: column; border-top: 1px solid var(--line-light); }
.mobile-menu nav a { display: flex; align-items: baseline; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line-light); font-size: clamp(34px, 10vw, 52px); font-weight: 500; letter-spacing: -.05em; line-height: 1; opacity: 0; transform: translateY(18px); transition: opacity 420ms ease, transform 620ms var(--ease), color 180ms ease; }
.mobile-menu nav a span { color: var(--lime); font-size: 10px; letter-spacing: .08em; }
.mobile-menu nav a:active, .mobile-menu nav a:hover { color: var(--lime); }
.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
.menu-open .mobile-menu nav > :nth-child(2) { transition-delay: 40ms; } .menu-open .mobile-menu nav > :nth-child(3) { transition-delay: 80ms; } .menu-open .mobile-menu nav > :nth-child(4) { transition-delay: 120ms; }
.menu-open .mobile-menu nav > :nth-child(5) { transition-delay: 160ms; } .menu-open .mobile-menu nav > :nth-child(6) { transition-delay: 200ms; } .menu-open .mobile-menu nav > :nth-child(7) { transition-delay: 240ms; }
.mobile-menu { overflow-y: auto; overscroll-behavior: contain; }
.mobile-menu nav > a { font-size: clamp(30px, 8.6vw, 46px); padding: 16px 0; }
.mobile-menu nav .mm-sub { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 16px 34px; border-bottom: 1px solid var(--line-light); opacity: 0; transform: translateY(18px); transition: opacity 420ms ease, transform 620ms var(--ease); }
.menu-open .mobile-menu nav .mm-sub { opacity: 1; transform: none; }
.mobile-menu nav .mm-sub a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-light); border-radius: 99px; font: 400 11px/1 "IBM Plex Mono", monospace; letter-spacing: .06em; opacity: 1; transform: none; color: rgba(251, 252, 248, .82); }
.mobile-menu nav .mm-sub a:active, .mobile-menu nav .mm-sub a:hover { color: var(--lime); border-color: var(--lime); }
.mobile-menu nav > a:has(+ .mm-sub) { border-bottom: 0; }
.mobile-menu-cta { margin-top: 32px; align-self: flex-start; }
.mobile-menu-foot { margin-top: auto; color: rgba(251, 252, 248, .45); }
@media (max-width: 840px) { .menu-btn { display: block; } }
@media (min-width: 841px) { .mobile-menu { display: none !important; } }

/* ---------- Buttons ---------- */
.btn { min-height: 46px; padding: 0 20px; border-radius: 10px; font-size: 13px; font-weight: 560; display: inline-flex; align-items: center; gap: 10px; transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 320ms var(--ease); will-change: transform; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-ghost { border: 1px solid var(--line-light); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(251, 252, 248, .06); }
.btn-lime:hover { background: var(--white); }

/* ---------- Hero ---------- */
.hero { height: 240vh; position: relative; }
.hero-pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 120px var(--page-gutter) 34px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero-pin::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(180deg, transparent, rgba(9, 11, 10, .82)); pointer-events: none; z-index: -1; }
.hero-copy { position: relative; }
.hero-title { font-size: clamp(72px, 15.5vw, 250px); font-weight: 480; line-height: .8; letter-spacing: -.075em; margin: 0 0 clamp(26px, 3.4vw, 54px) -.05em; padding-bottom: .08em; }
.hero-title .w { display: inline-block; transform-origin: 50% 100%; opacity: 0; transform: translate3d(0, .8em, 0) rotate(5deg) scale(.82); transition: opacity 260ms ease, transform 720ms var(--overshoot); transition-delay: calc(var(--i) * 90ms + 200ms); }
body.is-ready .hero-title .w { opacity: 1; transform: none; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: clamp(36px, 8vw, 128px); align-items: end; border-top: 1px solid var(--line-light); padding-top: 26px; }
.hero-lead { font-size: clamp(17px, 1.4vw, 21px); max-width: 44ch; color: rgba(251, 252, 248, .82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.hud { position: absolute; display: flex; flex-direction: column; gap: 7px; font-size: 10px; color: rgba(251, 252, 248, .6); }
.hud b { font-weight: 400; color: var(--lime); }
.hud-tl { left: var(--page-gutter); top: 118px; }
.hud-tr { right: var(--page-gutter); top: 118px; text-align: right; }
.hud-br { position: static; flex-direction: row; align-items: center; gap: 12px; margin-top: 26px; }
.scroll-rail { flex: 1; height: 1px; background: var(--line-light); position: relative; }
.scroll-rail i { position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--lime); }
@media (max-width: 760px) {
  .hero-foot { grid-template-columns: 1fr; gap: 22px; }
  .hero-actions { justify-content: flex-start; }
  .hud-tr { display: none; }
}

/* ---------- Mission ---------- */
.mission { min-height: 130vh; padding: var(--section-space) var(--page-gutter); display: flex; flex-direction: column; justify-content: center; }
.mission-text { font-size: clamp(30px, 4.3vw, 72px); font-weight: 500; line-height: 1.02; letter-spacing: -.05em; max-width: 21ch; }
.mission-text .w { opacity: .13; transition: opacity 320ms ease, color 320ms ease; }
.mission-text .w.is-lit { opacity: 1; }
.mission-text .w.is-key.is-lit { color: var(--lime); }

/* ---------- Loop ---------- */
.loop { height: 460vh; position: relative; }
.loop-pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 124px var(--page-gutter) 34px; display: grid; grid-template-rows: auto 1fr auto; }
.loop-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; border-bottom: 1px solid var(--line-light); padding-bottom: 18px; }
.loop-head .kicker { margin: 0; }
.loop-rail { display: flex; gap: clamp(16px, 3vw, 44px); color: rgba(251, 252, 248, .4); }
.loop-rail li { display: flex; align-items: center; gap: 9px; transition: color 240ms ease; }
.loop-rail i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; transition: background-color 240ms ease, box-shadow 240ms ease; }
.loop-rail li.is-active { color: var(--white); }
.loop-rail li.is-active i { background: var(--lime); border-color: var(--lime); animation: pulse 2.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(220, 255, 34, .26); } 65%, 100% { box-shadow: 0 0 0 14px rgba(220, 255, 34, 0); } }
.loop-steps { display: grid; align-self: center; width: min(560px, 100%); }
.loop-step { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(26px); clip-path: inset(0 0 34% 0); transition: opacity 420ms ease, transform 760ms var(--ease), clip-path 760ms var(--ease), visibility 0s linear 420ms; }
.loop-step.is-active { opacity: 1; visibility: visible; transform: none; clip-path: inset(0); transition-delay: 120ms, 120ms, 120ms, 0s; }
.loop-num { font-size: clamp(90px, 12vw, 190px); font-weight: 350; letter-spacing: -.05em; line-height: .84; color: transparent; -webkit-text-stroke: 1px rgba(251, 252, 248, .34); margin-bottom: 18px; }
.loop-step h2 { font-size: clamp(38px, 4.4vw, 70px); font-weight: 510; line-height: .92; letter-spacing: -.06em; max-width: 12ch; margin-bottom: 22px; }
.loop-step p { max-width: 44ch; color: rgba(251, 252, 248, .76); font-size: clamp(16px, 1.25vw, 19px); }
.loop-readout { display: flex; justify-content: space-between; color: rgba(251, 252, 248, .5); border-top: 1px solid var(--line-light); padding-top: 16px; font-size: 10px; }
@media (max-width: 900px) {
  .loop-steps { align-self: end; }
  .loop-num { font-size: 72px; }
  .loop-pin::before { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(180deg, transparent, rgba(9, 11, 10, .9) 40%); z-index: -1; }
}

/* ---------- Products ---------- */
.products { position: relative; background: var(--dark); }
.products-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: radial-gradient(circle at 18% 15%, rgba(220, 255, 34, .08), transparent 28%), var(--dark); border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.products-track { display: flex; height: 100%; width: max-content; will-change: transform; }
.product-intro { width: min(86vw, 760px); padding: 150px var(--page-gutter) 60px; display: flex; flex-direction: column; justify-content: center; flex: none; }
.product-intro h2 { font-size: clamp(52px, 6.4vw, 108px); line-height: .9; letter-spacing: -.065em; max-width: 9.4ch; margin-bottom: 28px; }
.product-intro p:not(.mono) { color: rgba(251, 252, 248, .76); max-width: 40ch; font-size: clamp(17px, 1.4vw, 21px); }
.products-hint { margin-top: 40px; color: var(--lime); }
.product { flex: none; width: min(92vw, 1320px); height: 100%; padding: 118px clamp(20px, 3vw, 48px) 54px; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(24px, 4vw, 64px); align-items: stretch; border-left: 1px solid var(--line-light); }
.product-copy { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.product-idx { color: rgba(251, 252, 248, .54); margin-bottom: auto; }
.product-name { font-size: clamp(64px, 8.6vw, 148px); font-weight: 480; line-height: .84; letter-spacing: -.07em; margin: 24px 0 18px -.04em; }
.product-line { font-size: clamp(20px, 1.9vw, 28px); font-weight: 510; letter-spacing: -.03em; line-height: 1.08; color: var(--lime); max-width: 18ch; margin-bottom: 26px; }
.product ul li { padding: 12px 0; border-top: 1px solid var(--line-light); color: rgba(251, 252, 248, .76); font-size: 15px; display: flex; gap: 14px; }
.product ul li::before { content: "+"; font-family: "IBM Plex Mono", monospace; color: rgba(251, 252, 248, .4); }
.product-media { position: relative; border-radius: 20px; overflow: hidden; background: var(--graphite); min-height: 0; }
.product-media img { position: absolute; top: 0; left: -10%; width: 120%; max-width: none; height: 100%; object-fit: cover; will-change: transform; }
.product-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(3, 5, 4, .04) 40%, rgba(3, 5, 4, .78)), linear-gradient(90deg, rgba(3, 5, 4, .3), transparent 60%); }
.product-media::after { content: ""; position: absolute; inset: 18px; z-index: 2; pointer-events: none;
  background:
    linear-gradient(var(--white), var(--white)) top left / 18px 1px no-repeat, linear-gradient(var(--white), var(--white)) top left / 1px 18px no-repeat,
    linear-gradient(var(--white), var(--white)) top right / 18px 1px no-repeat, linear-gradient(var(--white), var(--white)) top right / 1px 18px no-repeat,
    linear-gradient(var(--white), var(--white)) bottom left / 18px 1px no-repeat, linear-gradient(var(--white), var(--white)) bottom left / 1px 18px no-repeat,
    linear-gradient(var(--white), var(--white)) bottom right / 18px 1px no-repeat, linear-gradient(var(--white), var(--white)) bottom right / 1px 18px no-repeat;
  opacity: .55; }
.product-media figcaption { position: absolute; left: 38px; right: 38px; bottom: 34px; z-index: 3; display: flex; justify-content: space-between; font-size: 10px; color: rgba(251, 252, 248, .8); }
.product-media figcaption span:last-child::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); margin-right: 9px; animation: pulse 2.8s ease-out infinite; }
.products-progress { position: absolute; left: var(--page-gutter); right: var(--page-gutter); bottom: 24px; height: 1px; background: var(--line-light); }
.products-progress i { display: block; height: 3px; margin-top: -1px; width: 0; background: var(--lime); }
@media (max-width: 900px) {
  .products-pin { position: static; height: auto; overflow: visible; }
  .products-track { flex-direction: column; width: auto; transform: none !important; }
  .product-intro { width: auto; padding: var(--section-space) var(--page-gutter) 40px; }
  .product { width: auto; height: auto; grid-template-columns: 1fr; padding: 40px var(--page-gutter); border-left: 0; border-top: 1px solid var(--line-light); }
  .product-media { aspect-ratio: 4 / 3; order: -1; }
  .product-idx { margin-bottom: 0; }
  .products-progress { display: none; }
}

/* ---------- Shared section heads ---------- */
.split-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: clamp(36px, 8vw, 128px); align-items: end; max-width: 1280px; margin: 0 auto clamp(44px, 6vw, 88px); }
.split-head h2 { font-size: clamp(46px, 6vw, 100px); line-height: .9; letter-spacing: -.065em; max-width: 11ch; }
.lead { font-size: clamp(17px, 1.4vw, 21px); max-width: 44ch; color: rgba(251, 252, 248, .76); }
@media (max-width: 760px) { .split-head { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- Demo ---------- */
.demo { background: var(--dark); position: relative; }
.demo-stage { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: 16px; }
.cop-wrap { position: relative; border: 1px solid var(--line-light); border-radius: 20px; overflow: hidden; background: var(--dark-stage); min-height: 560px; }
#cop { position: absolute; inset: 0; width: 100%; height: 100%; cursor: none; touch-action: pan-y; }
.cop-tag, .cop-stat { position: absolute; left: 20px; right: 20px; display: flex; justify-content: space-between; font-size: 10px; color: rgba(251, 252, 248, .6); pointer-events: none; }
.cop-tag { top: 18px; } .cop-stat { bottom: 18px; } .cop-stat b { font-weight: 400; color: var(--lime); }
.majlis { border: 1px solid var(--line-light); border-radius: 20px; background: var(--dark-card); padding: 22px; display: flex; flex-direction: column; min-height: 560px; }
.majlis-head { display: flex; align-items: center; gap: 10px; color: var(--white); padding-bottom: 16px; border-bottom: 1px solid var(--line-light); margin-bottom: 18px; }
.majlis-head i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: pulse 2.8s ease-out infinite; }
.majlis-empty { padding: 8px 0 22px; } .majlis-empty p:first-child { font-size: 22px; font-weight: 510; letter-spacing: -.03em; margin-bottom: 6px; }
.majlis-body h3 { font-size: 34px; font-weight: 510; letter-spacing: -.05em; line-height: 1; margin-bottom: 14px; }
.majlis dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; font-size: 10px; margin-bottom: 14px; }
.majlis dl div { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line-light); }
.majlis dt { color: rgba(251, 252, 248, .5); } .majlis dd { color: var(--white); }
.majlis-text { font-size: 14px; color: rgba(251, 252, 248, .8); margin-bottom: 16px; }
.majlis-sub { color: rgba(251, 252, 248, .5); font-size: 9px; margin: 6px 0 8px; }
.majlis-options { display: grid; gap: 6px; margin-bottom: 14px; }
.majlis-options button { text-align: left; padding: 10px 12px; border: 1px solid var(--line-light); border-radius: 10px; font-size: 13px; display: flex; justify-content: space-between; gap: 10px; transition: border-color 180ms ease, background-color 180ms ease; }
.majlis-options button small { font: 400 10px/1.6 "IBM Plex Mono", monospace; color: rgba(251, 252, 248, .5); }
.majlis-options button:hover { background: rgba(251, 252, 248, .05); }
.majlis-options button.is-picked { border-color: var(--lime); background: rgba(220, 255, 34, .07); }
.majlis-actions { display: flex; gap: 8px; margin-bottom: 18px; } .majlis-actions .btn { flex: 1; justify-content: center; min-height: 42px; }
.majlis-log { margin-top: 0; font-size: 9px; line-height: 1.5; display: grid; gap: 6px; max-height: 132px; overflow: auto; text-transform: none; letter-spacing: .02em; }
.majlis-log li b { font-weight: 400; color: var(--lime); }
.majlis > .majlis-sub:last-of-type { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-light); }
@media (max-width: 980px) { .demo-stage { grid-template-columns: 1fr; } .cop-wrap { min-height: 440px; } .majlis { min-height: 0; } }

/* ---------- Film ---------- */
.film { height: 240vh; position: relative; background: var(--dark); }
.film-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.film-frame { position: absolute; inset: 0; background: var(--dark-stage); clip-path: inset(22% 24% 22% 24% round 20px); will-change: clip-path; }
.film-frame video { width: 100%; height: 100%; object-fit: cover; }
.film-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 5, 4, .2) 18%, rgba(3, 5, 4, .86) 92%), linear-gradient(90deg, rgba(3, 5, 4, .4), transparent 68%); transition: opacity 520ms ease; pointer-events: none; }
.film-ui { position: absolute; inset: 0; padding: 0 var(--page-gutter) clamp(40px, 7vw, 90px); display: flex; flex-direction: column; justify-content: flex-end; transition: opacity 420ms ease; }
.film-ui h2 { font-size: clamp(64px, 11vw, 180px); font-weight: 480; line-height: .82; letter-spacing: -.075em; margin: 0 0 30px -.04em; }
.film-play { display: inline-flex; align-items: center; gap: 16px; align-self: flex-start; }
.film-play-ring { width: 76px; height: 76px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; transition: transform 320ms var(--ease); }
.film-play:hover .film-play-ring { transform: scale(1.08); }
.film-frame.is-playing .film-ui, .film-frame.is-playing .film-shade { opacity: 0; pointer-events: none; }

/* ---------- Principles (paper) ---------- */
.principles { background: var(--paper); color: var(--ink); position: relative; }
.principles .kicker { color: var(--muted); } .principles .lead { color: var(--muted); }
.principle-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.principle-grid article { padding: clamp(28px, 4vw, 56px) clamp(0px, 3vw, 48px) clamp(28px, 4vw, 56px) 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: clamp(70px, 9vw, 150px) 1fr; column-gap: 20px; align-items: start; transition: background-color 420ms ease; }
.principle-grid article:nth-child(even) { padding-left: clamp(20px, 3vw, 48px); border-left: 1px solid var(--line); }
.numeral { grid-row: span 2; font-size: clamp(90px, 11vw, 180px); font-weight: 350; line-height: .8; letter-spacing: -.05em; color: var(--ink); transition: color 320ms ease, transform 640ms var(--ease); }
.principle-grid article:hover .numeral { color: var(--lime-deep); transform: translateY(-3px) rotate(-2deg); }
.principle-grid h3 { font-size: clamp(30px, 3vw, 48px); font-weight: 510; line-height: .92; letter-spacing: -.058em; margin-bottom: 14px; }
.principle-grid p { color: var(--muted); max-width: 39ch; }
@media (max-width: 760px) { .principle-grid { grid-template-columns: 1fr; } .principle-grid article:nth-child(even) { padding-left: 0; border-left: 0; } }

/* ---------- Domains ---------- */
.domains { background: var(--dark); position: relative; }
.domain-list { border-top: 1px solid var(--line-light); }
.domain-list li { display: grid; grid-template-columns: 54px minmax(0, 1fr) minmax(0, 34ch); align-items: baseline; gap: 16px; padding: clamp(14px, 1.6vw, 24px) 0; border-bottom: 1px solid var(--line-light); transition: padding-left 420ms var(--ease), color 180ms ease; cursor: default; }
.domain-list li span { color: rgba(251, 252, 248, .46); }
.domain-list strong { font-size: clamp(56px, 9vw, 150px); font-weight: 480; line-height: .86; letter-spacing: -.07em; }
.domain-list em { font-style: normal; color: rgba(251, 252, 248, .6); font-size: 15px; justify-self: end; text-align: right; }
.domain-list li:hover { padding-left: 16px; color: var(--lime); }
.domain-float { position: fixed; left: 0; top: 0; z-index: 30; width: min(34vw, 460px); aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; pointer-events: none; opacity: 0; transform: scale(.86); transition: opacity 320ms ease, transform 520ms var(--ease); will-change: left, top; }
.domain-float.is-on { opacity: 1; transform: scale(1); }
.domain-float img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .domain-list li { grid-template-columns: 34px 1fr; } .domain-list em { grid-column: 2; justify-self: start; text-align: left; } .domain-float { display: none; } }

/* ---------- Contact ---------- */
.contact { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 34px; background: linear-gradient(180deg, var(--dark), rgba(9, 11, 10, 0) 30%); }
.contact h2 { font-size: clamp(72px, 12vw, 188px); font-weight: 480; line-height: .8; letter-spacing: -.075em; max-width: 7ch; margin: 0 0 clamp(40px, 6vw, 84px) -.04em; padding-bottom: .1em; }
.contact h2 em { font-style: normal; color: var(--lime); }
.contact-links { max-width: 760px; }
.contact-links a { min-height: 84px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line-light); font-size: clamp(18px, 1.8vw, 26px); font-weight: 500; letter-spacing: -.02em; transition: padding-left 420ms var(--ease), color 180ms ease; }
.contact-links a:last-child { border-bottom: 1px solid var(--line-light); }
.contact-links a:hover { padding-left: 16px; color: var(--lime); }
.footer { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: center; margin-top: clamp(60px, 9vw, 130px); padding-top: 22px; border-top: 1px solid var(--line-light); color: rgba(251, 252, 248, .5); font-size: 10px; }
.footer img { width: 150px; height: auto; margin-right: auto; }

/* ---------- Scroll reveals (brand pattern) ---------- */
html.sr [data-sr="pending"] { opacity: 0; clip-path: inset(0 0 34% 0); transform: translateY(24px); }
html.sr [data-sr="visible"] { animation: sr 760ms var(--ease) var(--d, 0ms) both; }
@keyframes sr { from { opacity: 0; clip-path: inset(0 0 34% 0); transform: translateY(24px); } to { opacity: 1; clip-path: inset(0); transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .mission-text .w { opacity: 1; }
}

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  .brand img { width: 128px; }
  .brand { gap: 10px; } .brand-division { padding-left: 10px; }
  .nav-cta { font-size: 0; gap: 0; width: 34px; justify-content: center; border: 1px solid var(--line-light); border-radius: 50%; }
  .nav-cta span { font-size: 13px; }
  .loop-head .kicker { display: none; }
  .loop-rail { width: 100%; justify-content: space-between; }
}

/* ---------- Hero film ---------- */
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--dark); will-change: opacity, transform; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 11, 10, .62), rgba(9, 11, 10, .12) 34%, rgba(9, 11, 10, .9) 94%), linear-gradient(90deg, rgba(9, 11, 10, .55), transparent 66%); }
#watchFilm svg { flex: none; }

/* ---------- Cinema (full film with sound) ---------- */
.cinema { position: fixed; inset: 0; z-index: 85; background: #000; display: grid; place-items: center; opacity: 0; transition: opacity 420ms ease; }
.cinema[hidden] { display: none; }
.cinema.is-open { opacity: 1; }
.cinema video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.cinema-close { position: absolute; top: 20px; right: 22px; padding: 12px 16px; border: 1px solid var(--line-light); border-radius: 999px; background: rgba(4, 5, 6, .6); color: var(--white); font-size: 10px; transition: color 180ms ease, border-color 180ms ease; }
.cinema-close:hover { color: var(--lime); border-color: var(--lime); }
body.is-cinema { overflow: hidden; }
body.is-cinema .reticle { display: none; }

/* ---------- System section: clearer step labels ---------- */
.loop-rail { gap: 6px; padding: 5px; border: 1px solid var(--line-light); border-radius: 999px; background: rgba(4, 5, 6, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: rgba(251, 252, 248, .72); font-size: 13px; letter-spacing: .1em; }
.loop-rail li { padding: 10px 16px; border-radius: 999px; gap: 10px; transition: color 240ms ease, background-color 240ms ease; }
.loop-rail li.is-active { color: var(--ink); background: var(--lime); }
.loop-rail li.is-active i { background: var(--ink); border-color: var(--ink); animation: none; }
.loop-head { align-items: center; }
.loop-word { display: flex; align-items: center; gap: 12px; color: var(--lime); font-size: 15px; letter-spacing: .14em; margin-bottom: 18px; }
.loop-word i { width: 34px; height: 1px; background: var(--lime); }
.loop-num { margin-bottom: 14px; }
@media (max-width: 560px) {
  .loop-rail { font-size: 11px; gap: 2px; padding: 4px; }
  .loop-rail li { padding: 9px 10px; gap: 7px; flex: 1; justify-content: center; }
}

/* ---------- Hero teaser: lighter shading so every shot reads ---------- */
.hero-media::after { background: linear-gradient(180deg, rgba(9, 11, 10, .5), rgba(9, 11, 10, .05) 30%, rgba(9, 11, 10, .1) 55%, rgba(9, 11, 10, .72) 96%), linear-gradient(90deg, rgba(9, 11, 10, .38), transparent 55%); }
.hero-pin::after { height: 38%; background: linear-gradient(180deg, transparent, rgba(9, 11, 10, .55)); }
.hero-title, .hero-lead { text-shadow: 0 2px 30px rgba(9, 11, 10, .55); }

/* ---------- Step label specificity fix ---------- */
.loop-step .loop-word, .space-step .loop-word { color: var(--lime); font-size: 15px; max-width: none; }

/* ---------- Space (brief) ---------- */
.space { background: var(--dark); position: relative; border-top: 1px solid var(--line-light); }
.space-figure { max-width: 1280px; margin: 0 auto 16px; position: relative; aspect-ratio: 21 / 7; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-light); }
.space-figure img { width: 100%; height: 100%; object-fit: cover; opacity: .78; transform: scale(1.08); transition: transform 2400ms var(--ease); }
.space-figure:not([data-sr="pending"]) img { transform: none; }
.space-figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 11, 10, .7), transparent 60%); }
.space-figure figcaption { position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 1; display: flex; justify-content: space-between; gap: 16px; font-size: 10px; color: rgba(251, 252, 248, .78); }
.touch-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.touch-grid article { padding: 26px 24px 30px; border: 1px solid var(--line-light); border-radius: 16px; background: var(--dark-card); transition: border-color 320ms ease, transform 320ms var(--ease); }
.touch-grid article:hover { border-color: rgba(220, 255, 34, .5); transform: translateY(-2px); }
.touch-grid span { color: rgba(251, 252, 248, .46); }
.touch-grid h3 { font-size: clamp(24px, 2.2vw, 34px); font-weight: 510; line-height: .95; letter-spacing: -.05em; margin: 30px 0 14px; max-width: 13ch; }
.touch-grid p { color: rgba(251, 252, 248, .7); font-size: 15px; max-width: 38ch; }
.space-built { margin-top: 18px; color: rgba(251, 252, 248, .46); font-size: 10px; }
.space-note { max-width: 1280px; margin: 16px auto 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px 40px; padding: 34px 36px; border: 1px solid rgba(220, 255, 34, .55); border-radius: 16px; background: linear-gradient(100deg, rgba(220, 255, 34, .12), rgba(220, 255, 34, .02) 60%); }
.space-note-tag { display: inline-flex; align-items: center; gap: 10px; color: var(--lime); }
.space-note-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(220, 255, 34, .18); animation: notePulse 2.4s ease-in-out infinite; }
@keyframes notePulse { 50% { box-shadow: 0 0 0 10px rgba(220, 255, 34, 0); } }
.space-note-text { font-size: clamp(20px, 1.9vw, 30px); font-weight: 480; line-height: 1.15; letter-spacing: -.03em; color: var(--white); max-width: 34ch; }
.space-note-text em { font-style: normal; color: var(--lime); }
.space-note-kicker { justify-self: end; padding: 14px 20px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 15px; font-weight: 560; letter-spacing: -.01em; text-align: center; max-width: 30ch; line-height: 1.25; }
@media (max-width: 900px) { .space-note { grid-template-columns: 1fr; padding: 26px 22px; gap: 16px; } .space-note-kicker { justify-self: start; } }
@media (prefers-reduced-motion: reduce) { .space-note-tag i { animation: none; } }
@media (max-width: 900px) { .touch-grid { grid-template-columns: 1fr; } .space-figure { aspect-ratio: 16 / 9; } }
@media (max-width: 560px) { .space-figure figcaption span:last-child { display: none; } }

@media (max-width: 560px) {
  .loop-rail { width: 100%; max-width: 100%; font-size: 10px; letter-spacing: .06em; }
  .loop-rail li { padding: 9px 4px; gap: 5px; min-width: 0; }
  .loop-rail i { width: 6px; height: 6px; flex: none; }
}

/* ---------- VR teleoperation (space) ---------- */
.vr { max-width: 1280px; margin: clamp(90px, 10vw, 150px) auto 0; }
.vr-head { margin-bottom: 0; }
.vr-run { position: relative; height: 340vh; }
.vr-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 56px); align-items: center; padding: 104px 0 36px; }
.vr-stage { position: relative; height: min(70vh, 620px); border-radius: 20px; overflow: hidden; background: var(--graphite); border: 1px solid var(--line-light); }
.vr-frame { position: absolute; inset: 0; margin: 0; clip-path: inset(100% 0 0 0); transition: clip-path 1000ms var(--ease); }
.vr-frame.is-active, .vr-frame.was-active { clip-path: inset(0 0 0 0); }
.vr-frame.is-active { z-index: 2; } .vr-frame.was-active { z-index: 1; }
.vr-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 2600ms var(--ease); }
.vr-frame.is-active img { transform: scale(1.02); }
.vr-stage::before { content: ""; position: absolute; inset: 16px; z-index: 4; pointer-events: none; opacity: .6;
  background:
    linear-gradient(var(--lime), var(--lime)) top left / 18px 1px no-repeat, linear-gradient(var(--lime), var(--lime)) top left / 1px 18px no-repeat,
    linear-gradient(var(--lime), var(--lime)) top right / 18px 1px no-repeat, linear-gradient(var(--lime), var(--lime)) top right / 1px 18px no-repeat,
    linear-gradient(var(--lime), var(--lime)) bottom left / 18px 1px no-repeat, linear-gradient(var(--lime), var(--lime)) bottom left / 1px 18px no-repeat,
    linear-gradient(var(--lime), var(--lime)) bottom right / 18px 1px no-repeat, linear-gradient(var(--lime), var(--lime)) bottom right / 1px 18px no-repeat; }
.vr-stage::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30%; z-index: 3; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(220, 255, 34, .07) 85%, rgba(220, 255, 34, .35) 100%); mix-blend-mode: screen; animation: vrScan 4.5s linear infinite; }
@keyframes vrScan { from { transform: translateY(-100%); } to { transform: translateY(340%); } }
.vr-hud { position: absolute; left: 34px; right: 34px; bottom: 30px; z-index: 4; display: flex; justify-content: space-between; font-size: 10px; color: var(--white); text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }
.vr-hud span:first-child::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); margin-right: 9px; animation: pulse 2.8s ease-out infinite; }
.vr-rail { display: flex; gap: 6px; margin-bottom: 26px; }
.vr-rail li { padding: 9px 13px; border: 1px solid var(--line-light); border-radius: 999px; font-size: 10px; color: rgba(251, 252, 248, .6); transition: all 320ms ease; }
.vr-rail li.is-active { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.vr-steps { display: grid; }
.vr-step { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(22px); transition: opacity 420ms ease, transform 700ms var(--ease), visibility 0s linear 420ms; }
.vr-step.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 100ms, 100ms, 0s; }
.vr-step h3 { font-size: clamp(30px, 3vw, 48px); font-weight: 510; line-height: .95; letter-spacing: -.05em; margin-bottom: 16px; max-width: 13ch; }
.vr-step p { color: rgba(251, 252, 248, .76); font-size: clamp(15px, 1.2vw, 18px); max-width: 40ch; }
.vr-link { margin-top: 30px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; font-size: 10px; color: rgba(251, 252, 248, .65); }
.vr-link em { grid-column: 1 / -1; font-style: normal; color: var(--lime); }
.vr-line { position: relative; height: 1px; background: var(--line-light); }
.vr-line i { position: absolute; top: -4px; left: 0; width: 9px; height: 9px; margin-left: -4px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(220, 255, 34, .18), -18px 0 14px -4px rgba(220, 255, 34, .5); animation: vrSignal 1.3s linear infinite; }
@keyframes vrSignal { from { left: 0; } to { left: 100%; } }
@media (max-width: 900px) {
  .vr-run { height: 320vh; }
  .vr-pin { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; gap: 18px; padding: 84px 0 22px; }
  .vr-stage { height: 42svh; }
  .vr-rail { margin-bottom: 16px; }
  .vr-step h3 { font-size: 28px; margin-bottom: 10px; }
  .vr-step p { font-size: 15px; }
  .vr-link { margin-top: 16px; }
  .vr-copy .space-built { display: none; }
  .vr-hud { left: 22px; right: 22px; bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) { .vr-stage::after, .vr-line i { animation: none; } }

/* ---------- Page progress ---------- */
.page-progress { position: fixed; left: 0; top: 0; z-index: 101; height: 2px; width: 100%; background: var(--lime); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* ---------- Phone motion ---------- */
@media (max-width: 900px) {
  .product-media { clip-path: inset(0 round 20px); }
  .product-media img { left: 0; width: 100%; }
  .products { overflow-x: clip; }
  .product-name { will-change: transform; }
  .product ul li { transition: opacity 500ms ease, transform 700ms var(--ease); }
  .sr .product:not(.is-in) ul li { opacity: 0; transform: translateX(-16px); }
  .product.is-in ul li:nth-child(2) { transition-delay: 80ms; } .product.is-in ul li:nth-child(3) { transition-delay: 160ms; } .product.is-in ul li:nth-child(4) { transition-delay: 240ms; }
}

/* ---------- Space note: link to the asteroid mission page ---------- */
.space-note-link { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0 0; border-top: 1px solid rgba(220, 255, 34, .3); font-size: clamp(18px, 1.6vw, 24px); font-weight: 510; letter-spacing: -.02em; color: var(--white); transition: color 180ms ease; }
.space-note-link i { font-style: normal; display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 20px; transition: transform 420ms var(--ease); }
.space-note-link:hover { color: var(--lime); }
.space-note-link:hover i { transform: translateX(6px); }

/* ---------- Space: Emirates Mission to the Asteroid Belt ---------- */
.ema { max-width: 1280px; margin: clamp(100px, 11vw, 170px) auto 0; }
.ema-head { margin-bottom: clamp(36px, 5vw, 64px); }
.ema-head h2 { max-width: 12ch; }
.ema-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--lime); }
.ema-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: pulse 2.8s ease-out infinite; }
.ema-sub { margin: clamp(70px, 8vw, 120px) 0 36px; padding-top: 22px; border-top: 1px solid var(--line-light); }
.ema-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-light); }
.ema-stats li { padding: 24px 20px 0 0; }
.ema-stats li + li { padding-left: 22px; border-left: 1px solid var(--line-light); }
.ema-stats strong { display: block; font-size: clamp(38px, 4.6vw, 76px); font-weight: 460; letter-spacing: -.06em; line-height: .95; font-variant-numeric: tabular-nums; }
.ema-stats li:first-child strong { color: var(--lime); }
.ema-stats strong b { font-weight: inherit; }
.ema-stats span { display: block; margin-top: 10px; color: rgba(251, 252, 248, .55); font-size: 10px; }
.ema-ticker { margin: 48px calc(-1 * var(--page-gutter)) 0; overflow: hidden; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); padding: 20px 0; }
.ema-ticker-track { display: flex; width: max-content; animation: ticker 32s linear infinite; font-size: clamp(22px, 3vw, 44px); letter-spacing: .02em; color: rgba(251, 252, 248, .3); }
.ema-ticker-track span { padding: 0 .9em; display: inline-flex; align-items: center; }
.ema-ticker-track span::after { content: "✦"; color: var(--lime); font-size: .45em; margin-left: 1.8em; }
.ema-ticker-track .hl { color: var(--lime); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (min-width: 1440px) { .ema-ticker { margin-left: calc(-1 * (100vw - 1280px) / 2); margin-right: calc(-1 * (100vw - 1280px) / 2); } }
@media (max-width: 900px) {
  .ema-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ema-stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .ema-stats li:nth-child(n + 3) { border-top: 1px solid var(--line-light); padding-top: 18px; margin-top: 18px; }
}

/* Timeline */
.tl { position: relative; }
.tl-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line-light); }
.tl-line i { position: absolute; left: -1px; top: 0; width: 3px; height: 100%; background: var(--lime); transform-origin: top; transform: scaleY(0); box-shadow: 0 0 14px rgba(220, 255, 34, .5); }
.tl-item { position: relative; width: 50%; padding: 0 64px 80px 0; text-align: right; opacity: .35; transition: opacity 500ms ease; }
.tl-item:nth-child(odd) { margin-left: 50%; padding: 0 0 80px 64px; text-align: left; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item.is-on { opacity: 1; }
.tl-dot { position: absolute; top: 6px; right: -8px; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--line-light); background: var(--dark); transition: background-color 400ms ease, border-color 400ms ease, box-shadow 400ms ease, transform 600ms var(--overshoot); }
.tl-item:nth-child(odd) .tl-dot { right: auto; left: -7px; }
.tl-item.is-on .tl-dot { background: var(--lime); border-color: var(--lime); box-shadow: 0 0 0 6px rgba(220, 255, 34, .16); transform: scale(1.15); }
.tl-when { color: var(--lime); margin-bottom: 12px; }
.tl-item h3 { font-size: clamp(30px, 3.4vw, 54px); font-weight: 500; letter-spacing: -.055em; line-height: .95; margin-bottom: 12px; }
.tl-item p:not(.tl-when) { color: rgba(251, 252, 248, .7); max-width: 36ch; display: inline-block; }
.tl-item.is-final h3 { color: var(--lime); }
@media (max-width: 760px) {
  .tl-line { left: 7px; }
  .tl-item, .tl-item:nth-child(odd) { width: auto; margin-left: 0; padding: 0 0 56px 40px; text-align: left; }
  .tl-dot, .tl-item:nth-child(odd) .tl-dot { left: 0; right: auto; }
}

/* Services: stacking cards */
.svc { position: sticky; top: calc(96px + var(--i, 0) * 14px); height: min(74vh, 620px); margin-bottom: 9vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); border: 1px solid var(--line-light); border-radius: 22px; overflow: hidden; background: var(--dark-card); transform-origin: 50% 0; will-change: transform; box-shadow: 0 -20px 60px rgba(0, 0, 0, .45); }
.svc:last-child { margin-bottom: 0; }
.svc-media { position: relative; margin: 0; overflow: hidden; }
.svc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); will-change: transform; }
.svc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, rgba(17, 20, 17, .9)); }
.svc-copy { padding: clamp(28px, 3.4vw, 54px); display: flex; flex-direction: column; justify-content: flex-end; }
.svc-idx { color: rgba(251, 252, 248, .5); margin-bottom: auto; }
.svc h3 { font-size: clamp(32px, 3.4vw, 54px); font-weight: 510; letter-spacing: -.055em; line-height: .92; margin-bottom: 20px; max-width: 11ch; }
.svc-copy > p:not(.mono) { color: rgba(251, 252, 248, .74); font-size: clamp(15px, 1.2vw, 18px); max-width: 40ch; }
.svc-built { margin-top: 22px; color: var(--lime); font-size: 10px; }
@media (max-width: 900px) {
  .svc { grid-template-columns: 1fr; grid-template-rows: 46% 1fr; height: min(78svh, 620px); top: calc(80px + var(--i, 0) * 10px); }
  .svc-media::after { background: linear-gradient(180deg, transparent 55%, rgba(17, 20, 17, .95)); }
  .svc-copy { padding: 22px 22px 26px; justify-content: flex-start; }
  .svc-idx { margin-bottom: 14px; }
  .svc h3 { font-size: 30px; margin-bottom: 12px; }
  .svc-copy > p:not(.mono) { font-size: 15px; }
  .svc-built { margin-top: 14px; }
}
.ema-flag { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 34px; padding: 14px 18px; border: 1px dashed rgba(251, 252, 248, .28); border-radius: 12px; color: rgba(251, 252, 248, .75); font-size: 11px; line-height: 1.6; letter-spacing: .04em; }
.ema-flag span { padding: 4px 10px; border-radius: 99px; background: rgba(251, 252, 248, .1); color: var(--paper, #fbfcf8); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.ema-source { margin-top: 28px; color: rgba(251, 252, 248, .5); font-size: 10px; line-height: 1.7; letter-spacing: .04em; }
.space-disclaimer { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line-light); color: rgba(251, 252, 248, .45); font-size: 10px; line-height: 1.7; }
@media (prefers-reduced-motion: reduce) { .ema-ticker-track, .ema-kicker i { animation: none; } .svc-media img { transform: none; } }
