/* ============================================================
   GoLiveIQ landing page
   The page goes live as you scroll: a dark hall before power,
   the lights coming on gate by gate, then cool white product
   tiles, closing on the campus at night.
   Motion styles only apply under html.m (set in the head when
   reduced motion is off, confirmed by js/landing.js).
   ============================================================ */

:root {
  --night: #07090C;
  --ink: #0D1116;
  --graphite: #161B21;
  --steel: #8391A0;
  --mist: #B9C3CC;
  --frost: #EEF2F5;
  --cloud: #F2F4F6;
  --paper: #FFFFFF;
  --orange: #E85D2D;

  --on-dark: #F3F6F8;
  --on-dark-2: rgba(238, 242, 245, 0.68);
  --on-dark-3: rgba(238, 242, 245, 0.44);
  --dim-d: #7C8793;
  --on-light: #0D1116;
  --on-light-2: #545E69;
  --on-light-3: #858E98;
  --dim-l: #8E97A0;
  --line-d: rgba(238, 242, 245, 0.12);
  --line-l: rgba(13, 17, 22, 0.08);

  --f: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-code: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1240px;
  --r-tile: 28px;
  --tile-pad: clamp(28px, 3.4vw, 52px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* ---- base ------------------------------------------------- */
*, *::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; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--night);
  color: var(--on-dark);
  font-family: var(--f);
  font-size: 17px; line-height: 1.52; font-weight: 400;
  letter-spacing: -0.012em;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; letter-spacing: inherit; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow { font-size: 15px; line-height: 1.3; font-weight: 600; letter-spacing: -0.008em; color: var(--steel); }

.display-l {
  font-size: clamp(2.5rem, 5vw, 4.75rem); line-height: 1.04; font-weight: 600;
  letter-spacing: -0.032em;
}
.display-l em { font-style: normal; color: var(--dim-d); }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; letter-spacing: -0.017em; }
.dim { color: var(--dim-d); }

/* film grain on the dark sections only */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  opacity: 0.045; transition: opacity 0.6s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.is-light-zone .grain { opacity: 0; }
.m .grain { animation: grain 0.9s steps(5) infinite; }
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---- buttons ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: 16px; line-height: 1; font-weight: 500; letter-spacing: -0.014em; white-space: nowrap;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn__arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #E4E9EE; }
.btn--ghost {
  color: var(--on-dark); background: rgba(238, 242, 245, 0.06);
  box-shadow: inset 0 0 0 1px rgba(238, 242, 245, 0.26);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.btn--ghost:hover { background: rgba(238, 242, 245, 0.12); box-shadow: inset 0 0 0 1px rgba(238, 242, 245, 0.45); }
.btn--sm { height: 36px; padding: 0 16px; font-size: 14px; }

/* ---- nav -------------------------------------------------- */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 80;
  width: min(calc(100% - 28px), 1200px);
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 56px; padding: 0 10px 0 22px; border-radius: 999px;
  color: var(--on-dark);
  background: rgba(7, 9, 12, 0);
  box-shadow: inset 0 0 0 1px rgba(238, 242, 245, 0);
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.6s var(--ease);
}
.nav.is-glass {
  background: rgba(12, 15, 19, 0.56);
  box-shadow: inset 0 0 0 1px rgba(238, 242, 245, 0.09), 0 12px 32px -18px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}
.nav.is-light { color: var(--on-light); }
.nav.is-light.is-glass { background: rgba(250, 251, 252, 0.72); box-shadow: inset 0 0 0 1px rgba(13, 17, 22, 0.07), 0 12px 32px -20px rgba(13, 17, 22, 0.25); }
.nav.is-hidden { transform: translate(-50%, -140%); }
.nav__brand { display: flex; align-items: center; color: inherit; }
.nav__brand .logo { display: block; width: 132px; height: auto; }
.nav__links { display: flex; gap: 32px; font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.nav__links a { opacity: 0.72; transition: opacity 0.25s ease; }
.nav__links a:hover { opacity: 1; }
.nav__cta { background: #fff; color: var(--ink); }
.nav__cta:hover { background: #E4E9EE; }
.nav.is-light .nav__cta { background: var(--ink); color: #fff; }
.nav.is-light .nav__cta:hover { background: #262D36; }
@media (max-width: 760px) {
  .nav { top: 10px; height: 52px; padding-left: 18px; width: calc(100% - 20px); }
  .nav__links { display: none; }
  .nav__brand .logo { width: 118px; }
}

/* ---- hero ------------------------------------------------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 640px;
  overflow: hidden; background: var(--ink); isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--night); }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 62%;
}
.hero__img--lit {
  -webkit-mask-image: radial-gradient(circle var(--tr, 0px) at var(--mx, 50%) var(--my, 64%), #000 0%, #000 34%, rgba(0, 0, 0, 0.6) 62%, transparent 100%);
  mask-image: radial-gradient(circle var(--tr, 0px) at var(--mx, 50%) var(--my, 64%), #000 0%, #000 34%, rgba(0, 0, 0, 0.6) 62%, transparent 100%);
}
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(7, 9, 12, 0.86) 0%, rgba(7, 9, 12, 0.6) 30%, rgba(7, 9, 12, 0.12) 52%, rgba(7, 9, 12, 0.1) 64%, rgba(7, 9, 12, 0.62) 80%, rgba(7, 9, 12, 0.9) 100%),
    radial-gradient(120% 80% at 50% 62%, transparent 45%, rgba(7, 9, 12, 0.5) 100%);
}
/* headline above the engineer, the call to action below him */
.hero__inner {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center;
  padding-top: clamp(112px, 16vh, 168px); padding-bottom: clamp(74px, 10.5vh, 104px);
}
.hero__top, .hero__bottom { display: flex; flex-direction: column; align-items: center; }
.hero__pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; letter-spacing: -0.006em; color: var(--on-dark-2);
  background: rgba(238, 242, 245, 0.06); box-shadow: inset 0 0 0 1px rgba(238, 242, 245, 0.12);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.hero__title {
  margin-top: 26px;
  font-size: clamp(2.9rem, 6.6vw, 6.5rem); line-height: 1.02; font-weight: 600;
  letter-spacing: -0.036em;
}
.hero__title .ln > span {
  background: linear-gradient(180deg, #FFFFFF 22%, #AEB9C4 108%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ln { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.ln > span { display: block; }
.hero__sub { max-width: 36em; font-size: clamp(15.5px, 1.3vw, 18.5px); line-height: 1.5; color: var(--on-dark-2); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.hero__meta {
  position: absolute; left: 0; right: 0; bottom: 24px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  font-size: 13px; font-weight: 500; letter-spacing: -0.005em; color: var(--on-dark-3);
}
.hero__hint { justify-self: end; }
.hero__cue { position: relative; width: 1px; height: 32px; background: rgba(238, 242, 245, 0.16); overflow: hidden; }
.hero__cue i { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--on-dark); }
.m .hero__cue i { animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { top: -40%; } 60%, 100% { top: 100%; } }
@media (hover: none), (max-width: 760px) { .hero__hint { visibility: hidden; } }
@media (max-width: 760px) {
  .hero__inner { padding-top: 104px; padding-bottom: 64px; }
  .hero__pill { font-size: 12.5px; padding: 7px 13px; }
  .hero__title { margin-top: 20px; }
  .hero__actions { gap: 8px; margin-top: 22px; }
  .hero__actions .btn { height: 44px; padding: 0 16px; font-size: 14.5px; gap: 8px; }
  .hero__meta { grid-template-columns: 1fr auto; }
  .hero__meta .hero__hint { display: none; }
}

/* ---- problem ---------------------------------------------- */
.problem { position: relative; background: var(--ink); padding: clamp(120px, 20vh, 220px) 0 clamp(110px, 17vh, 190px); }
.problem__head { text-align: center; }
.problem__statement {
  margin: 26px auto 0; max-width: 17em;
  font-size: clamp(2.1rem, 4.4vw, 4.1rem); line-height: 1.1; font-weight: 600;
  letter-spacing: -0.032em;
}
.problem__statement .w { display: inline-block; }
.m .problem__statement .w { opacity: 0.16; }
.problem__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(48px, 7vw, 120px); align-items: center;
  margin-top: clamp(96px, 15vh, 160px);
}
.problem__fig { width: 100%; max-width: 460px; }
.problem__frame { position: relative; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 24px; background: #111; }
.problem__move { position: absolute; inset: -8% 0; }
.problem__move img { width: 100%; height: 100%; object-fit: cover; }
.problem__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.problem__ring circle { fill: none; stroke: #fff; stroke-width: 5; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 0.92; }
.m .problem__ring circle { stroke-dashoffset: 1; }
.problem__fig figcaption { margin-top: 18px; font-size: 15px; line-height: 1.5; color: var(--on-dark-2); max-width: 30em; }
.cap-label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--on-dark); }
.problem__body { max-width: 26em; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.42; font-weight: 500; letter-spacing: -0.02em; color: var(--on-dark); }
.stat {
  display: flex; align-items: flex-end; gap: 28px;
  margin-top: clamp(44px, 6vh, 64px); padding-top: 32px; border-top: 1px solid var(--line-d);
}
.stat__num {
  font-size: clamp(4.5rem, 8vw, 7.5rem); line-height: 0.8; font-weight: 600;
  letter-spacing: -0.05em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #FFFFFF 20%, #9AA6B2 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__num small { font-size: 0.42em; letter-spacing: -0.02em; margin-left: 0.04em; vertical-align: 0.95em; }
.stat__text p { max-width: 22em; font-size: 16px; }
.stat__attr { margin-top: 6px; font-size: 13.5px; color: var(--on-dark-3); }
@media (max-width: 900px) {
  .problem__grid { grid-template-columns: 1fr; }
  .problem__fig { max-width: 400px; }
}
@media (max-width: 520px) {
  .stat { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* ---- the nine gates --------------------------------------- */
.gj { position: relative; background: var(--night); }
.gj__intro { text-align: center; padding-top: clamp(120px, 18vh, 200px); padding-bottom: clamp(64px, 9vh, 110px); }
.gj__intro .display-l { margin: 22px auto 0; max-width: 13em; }
.gj__intro .lede { margin: 26px auto 0; max-width: 34em; color: var(--on-dark-2); }

/* without motion: a plain list of the nine gates over the lit hall */
.gj__stage { position: relative; overflow: hidden; }
.gj__media { position: absolute; inset: 0; }
.gj__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 56%; }
.gj__img--dark { display: none; }
.gj__img--lit { opacity: 0.22; }
.gj__flash { position: absolute; inset: 0; background: #DDE6EE; opacity: 0; mix-blend-mode: soft-light; }
.gj__shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(7, 9, 12, 0.6), rgba(7, 9, 12, 0.85)); }
.gj__body { position: relative; padding-top: 64px; padding-bottom: 64px; }
.gj__gates { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 44px 40px; }
.gj__stack, .gj__rail { display: none; }

.gj-gate__no { font-size: 14px; font-weight: 600; letter-spacing: -0.005em; color: var(--steel); }
.gj-gate__name { margin-top: 10px; font-size: 2.2rem; line-height: 1; font-weight: 600; letter-spacing: -0.032em; }
.gj-gate__desc { margin-top: 14px; color: var(--on-dark-2); max-width: 30em; }
.gj-gate__ev { margin-top: 18px; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.35; font-weight: 500; color: var(--on-dark); }
.gj-gate__ev li { display: flex; align-items: center; gap: 10px; }
.gj-gate__ev li::before {
  content: ""; flex: none; width: 15px; height: 15px; border-radius: 50%;
  background: var(--frost) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%2307090C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.gj-gate__ev li.is-missing { color: var(--on-dark-3); }
.gj-gate__ev li.is-missing::before { background: none; box-shadow: inset 0 0 0 1.3px rgba(238, 242, 245, 0.4); }
.gj-gate__note {
  margin-top: 20px; max-width: 30em; padding: 14px 18px; border-radius: 16px;
  font-size: 14.5px; line-height: 1.5; color: var(--on-dark);
  background: rgba(238, 242, 245, 0.07); box-shadow: inset 0 0 0 1px rgba(238, 242, 245, 0.12);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.gj-gate__sign {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 22px;
  font-size: 13.5px; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--on-dark);
}
.pip { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.3px rgba(238, 242, 245, 0.5); }
.pip--ok { background: var(--frost); box-shadow: none; }
.pip--live { background: var(--orange); box-shadow: 0 0 0 4px rgba(232, 93, 45, 0.18); }

/* with motion: one pinned stage */
.m .gj__stage { height: 100vh; height: 100svh; min-height: 600px; }
.m .gj__img--dark { display: block; }
.m .gj__img--lit {
  opacity: 1;
  -webkit-mask-image: radial-gradient(ellipse var(--lit, 0%) var(--lit, 0%) at 50% 54%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse var(--lit, 0%) var(--lit, 0%) at 50% 54%, #000 62%, transparent 100%);
}
.m .gj__shade {
  background:
    linear-gradient(90deg, rgba(7, 9, 12, 0.9) 0%, rgba(7, 9, 12, 0.66) 34%, rgba(7, 9, 12, 0.1) 62%, rgba(7, 9, 12, 0.35) 100%),
    linear-gradient(to top, rgba(7, 9, 12, 0.9) 0%, rgba(7, 9, 12, 0) 30%);
}
.m .gj__body {
  position: absolute; inset: 0; z-index: 2; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: center;
  padding-top: 96px; padding-bottom: 150px;
}
.m .gj__gates { display: block; position: relative; height: 100%; }
.m .gj-gate {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  max-width: 640px; visibility: hidden;
}
.m .gj-gate.is-on { visibility: visible; }
.m .gj-gate__name { font-size: clamp(2.8rem, 5.6vw, 5.5rem); line-height: 0.98; letter-spacing: -0.04em; margin-top: 16px; }
.m .gj-gate__desc { font-size: clamp(16px, 1.3vw, 19px); }

/* evidence stack */
.m .gj__stack { display: block; position: relative; width: 300px; height: 380px; justify-self: end; }
.doc {
  position: absolute; inset: 0; padding: 22px 22px 20px;
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink); border-radius: 18px;
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(13, 17, 22, 0.04);
  opacity: 0; visibility: hidden;
}
.doc__top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; letter-spacing: 0; color: #66707B; padding-bottom: 12px; border-bottom: 1px solid rgba(13, 17, 22, 0.1); }
.doc__title { margin-top: 18px; font-size: 21px; line-height: 1.15; font-weight: 600; letter-spacing: -0.022em; color: var(--ink); }
.doc__lines { margin-top: 22px; display: grid; gap: 11px; }
.doc__lines i { display: block; height: 6px; border-radius: 3px; background: rgba(13, 17, 22, 0.08); }
.doc__lines i:nth-child(2) { width: 88%; }
.doc__lines i:nth-child(3) { width: 94%; }
.doc__lines i:nth-child(4) { width: 64%; }
.doc__lines i:nth-child(5) { width: 78%; }
.doc__chart { margin-top: 20px; height: 70px; border-bottom: 1px solid rgba(13, 17, 22, 0.15); background: repeating-linear-gradient(to bottom, transparent 0 13px, rgba(13, 17, 22, 0.06) 13px 14px); }
.doc__chart svg { width: 100%; height: 100%; }
.doc__chart polyline { fill: none; stroke: var(--ink); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.doc__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; font-size: 12px; line-height: 1.45; color: #66707B; text-align: right; }
.doc__stamp {
  padding: 5px 9px; border: 1.5px solid rgba(13, 17, 22, 0.75); border-radius: 7px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(13, 17, 22, 0.85);
  transform: rotate(-6deg); text-align: left;
}
.doc__stamp--live { border-color: var(--orange); color: var(--orange); }
.doc--pack { background: var(--graphite); color: var(--frost); box-shadow: 0 34px 70px -24px rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(238, 242, 245, 0.08); }
.doc--pack .doc__top { color: var(--mist); border-color: rgba(238, 242, 245, 0.12); align-items: center; }
.doc--pack .doc__title { color: #fff; font-size: 46px; letter-spacing: -0.04em; margin-top: 24px; }
.doc__facts { margin-top: auto; display: grid; gap: 12px; }
.doc__facts div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding-top: 12px; border-top: 1px solid rgba(238, 242, 245, 0.1); }
.doc__facts dt { color: var(--mist); }
.doc__facts dd { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.live-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.live-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--orange); opacity: 0; }
.m .live-dot::after { animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(1.8); opacity: 0; } }

/* rail */
.m .gj__rail { display: block; position: absolute; left: 0; right: 0; bottom: clamp(26px, 5vh, 46px); z-index: 3; margin: 0 auto; }
.rail { position: relative; padding-top: 46px; }
.rail__line { position: absolute; top: 50px; left: calc(100% / 18); right: calc(100% / 18); height: 1px; background: rgba(238, 242, 245, 0.18); }
.rail__fill { position: absolute; inset: 0; background: var(--frost); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.rail__stops { display: grid; grid-template-columns: repeat(9, 1fr); }
.rail__stops li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.rail__stops i {
  position: relative; z-index: 1; width: 9px; height: 9px; border-radius: 50%;
  background: var(--night); box-shadow: inset 0 0 0 1.3px rgba(238, 242, 245, 0.45);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.rail__stops b { font-size: 12px; line-height: 1; font-weight: 600; color: var(--on-dark-3); transition: color 0.3s ease; }
.rail__stops span { font-size: 13px; line-height: 1.2; font-weight: 500; color: var(--on-dark-3); transition: color 0.3s ease; }
.rail__stops li.is-done i { background: var(--frost); box-shadow: none; }
.rail__stops li.is-done b, .rail__stops li.is-done span { color: var(--on-dark-2); }
.rail__stops li.is-on i { background: var(--orange); box-shadow: 0 0 0 5px rgba(232, 93, 45, 0.2); transform: scale(1.15); }
.rail__stops li.is-on b, .rail__stops li.is-on span { color: var(--on-dark); }
.rail__tag {
  position: absolute; top: 0; left: calc(100% / 18); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 9px;
  background: #fff; color: var(--ink); border-radius: 999px;
  font-size: 12.5px; line-height: 1; font-weight: 600; white-space: nowrap;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.6);
  will-change: left;
}
.rail__tag::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 9px; height: 9px; margin-left: -4.5px;
  background: #fff; transform: rotate(45deg); border-radius: 1.5px; z-index: -1;
}

@media (max-width: 900px) {
  .m .gj__body { grid-template-columns: 1fr; padding-top: 90px; padding-bottom: 130px; align-items: end; }
  .m .gj__stack { display: none; }
  .m .gj-gate { top: auto; bottom: 0; transform: none; }
  .m .gj__shade { background: linear-gradient(to top, rgba(7, 9, 12, 0.95) 0%, rgba(7, 9, 12, 0.75) 45%, rgba(7, 9, 12, 0.25) 100%); }
  .rail__stops span { display: none; }
}
@media (max-width: 560px) {
  .m .gj-gate__name { font-size: 2.6rem; }
  .m .gj-gate__desc { font-size: 15.5px; }
  .gj-gate__ev { font-size: 13.5px; gap: 6px; margin-top: 14px; }
  .gj-gate__note { font-size: 13.5px; padding: 11px 14px; margin-top: 14px; }
  .gj-gate__sign { margin-top: 16px; font-size: 13px; }
}

/* ---- product (cool white) --------------------------------- */
.product { position: relative; background: var(--cloud); color: var(--on-light); padding: clamp(130px, 20vh, 220px) 0 clamp(24px, 4vw, 48px); }
.product__wash { display: none; }
.m .product__wash { display: block; position: absolute; left: 0; right: 0; top: 0; height: 100vh; background: var(--night); pointer-events: none; }
.product__head, .film, .tiles { position: relative; }
.product .eyebrow { color: #6B7580; }
.product .display-l em { color: var(--dim-l); }
.product__head { text-align: center; }
.product__head .display-l { margin: 22px auto 0; max-width: 13em; }
.product__head .lede { margin: 26px auto 0; max-width: 34em; color: var(--on-light-2); }

.film { margin-top: clamp(60px, 9vh, 100px); padding: 0 var(--gutter); perspective: 1800px; }
.film__frame {
  max-width: 1160px; margin: 0 auto; border-radius: 20px; overflow: hidden;
  background: #0E1217;
  box-shadow: 0 80px 140px -60px rgba(13, 17, 22, 0.55), 0 30px 60px -30px rgba(13, 17, 22, 0.28), 0 0 0 1px rgba(13, 17, 22, 0.08);
  transform-origin: 50% 0%;
}
.film__bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; background: #161B21; border-bottom: 1px solid rgba(238, 242, 245, 0.06); }
.film__bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(238, 242, 245, 0.14); }
.film__bar span { margin: 0 auto; transform: translateX(-26px); padding: 5px 16px; border-radius: 8px; background: rgba(238, 242, 245, 0.06); font-size: 12px; line-height: 1.2; font-weight: 500; color: rgba(238, 242, 245, 0.5); }
.film__screen { position: relative; aspect-ratio: 1680 / 920; overflow: hidden; background: #0F1216; }
.film__screen video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* shown on the video only when it is paused by you or the browser refused autoplay */
.film__start {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  padding: 0; border: 0; background: rgba(7, 9, 12, 0.32); cursor: pointer;
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.film__screen.is-idle .film__start { opacity: 1; visibility: visible; }
.film__start span {
  display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 26px 0 22px; border-radius: 999px;
  font-size: 16px; font-weight: 500; letter-spacing: -0.014em; color: var(--ink);
  background: rgba(255, 255, 255, 0.94); box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.6);
  transition: transform 0.35s var(--ease), background-color 0.25s ease;
}
.film__start:hover span { transform: scale(1.04); background: #fff; }
@media (max-width: 560px) { .film__start span { height: 46px; padding: 0 20px 0 17px; font-size: 15px; } }

.film__controls { max-width: 1160px; margin: 28px auto 0; display: flex; align-items: center; justify-content: center; gap: 10px; }
.film__play {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%;
  color: var(--ink); background: rgba(13, 17, 22, 0.07); cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s var(--ease);
}
.film__play:hover { background: rgba(13, 17, 22, 0.12); }
.film__play:active { transform: scale(0.94); }
.film__play .i-pause { display: none; }
.film__play.is-playing .i-play { display: none; }
.film__play.is-playing .i-pause { display: block; }
.film__chapters {
  position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 999px; min-width: 0;
  background: rgba(13, 17, 22, 0.07);
  overflow-x: auto; scrollbar-width: none;
}
.film__chapters::-webkit-scrollbar { display: none; }
.chap {
  position: relative; flex: none; padding: 11px 17px; border: 0; border-radius: 999px; background: transparent;
  font-size: 14px; line-height: 1; font-weight: 500; color: var(--on-light-2); cursor: pointer;
  transition: color 0.25s ease, background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.chap b { position: relative; font-weight: inherit; }
.chap:hover { color: var(--on-light); }
.chap.is-on { background: #fff; color: var(--on-light); box-shadow: 0 1px 2px rgba(13, 17, 22, 0.08), 0 6px 16px -8px rgba(13, 17, 22, 0.2); }
.chap__bar { position: absolute; left: 17px; right: 17px; bottom: 5px; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(13, 17, 22, 0.1); opacity: 0; transition: opacity 0.25s ease; }
.chap.is-on .chap__bar { opacity: 1; }
.chap__bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
.film__cap { max-width: 40em; margin: 18px auto 0; min-height: 3em; text-align: center; font-size: 15px; color: var(--on-light-2); }
@media (max-width: 760px) {
  .film__controls { justify-content: flex-start; }
  .film__play { width: 40px; height: 40px; }
  .chap { padding: 10px 14px; font-size: 13.5px; }
  .chap__bar { left: 14px; right: 14px; }
  .film__bar { height: 30px; }
  .film__bar span { display: none; }
  .film__frame { border-radius: 14px; }
}

/* ---- feature tiles ---------------------------------------- */
.tiles {
  margin-top: clamp(100px, 15vh, 170px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
}
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  padding: var(--tile-pad); border-radius: var(--r-tile);
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(13, 17, 22, 0.045), 0 24px 60px -44px rgba(13, 17, 22, 0.28);
  transition: box-shadow 0.6s var(--ease), translate 0.6s var(--ease);
}
/* translate, not transform, so the hover lift never fights the scroll reveal */
.tile:hover { box-shadow: 0 0 0 1px rgba(13, 17, 22, 0.06), 0 40px 80px -44px rgba(13, 17, 22, 0.38); translate: 0 -3px; }
.tile--wide { grid-column: 1 / -1; }
.tile .eyebrow { color: #6B7580; }
.tile__title { margin-top: 12px; max-width: 14em; font-size: clamp(1.75rem, 2.5vw, 2.4rem); line-height: 1.08; font-weight: 600; letter-spacing: -0.028em; }
.tile__copy { margin-top: 16px; max-width: 31em; color: var(--on-light-2); }
.tlink {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; padding: 0; border: 0; background: none;
  font-size: 16px; font-weight: 500; letter-spacing: -0.014em; color: var(--on-light); cursor: pointer;
}
.tlink svg { transition: transform 0.3s var(--ease); }
.tlink:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.tlink:hover svg { transform: translateX(3px); }

.tile--split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.tile--waiver { display: flex; flex-direction: column; }
.tile--waiver .waiver { margin-top: 36px; }

/* photo tiles */
.tile--photo { padding: 0; min-height: 560px; background: var(--ink); color: var(--on-dark); }
.tile__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; transition: transform 1.4s var(--ease); }
.tile--photo:hover .tile__media { transform: scale(1.03); }
.tile__img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; }
.tile--capture { display: flex; flex-direction: column; justify-content: flex-end; }
.tile--capture .tile__img { object-position: 50% 40%; }
.tile--capture .tile__text {
  padding: 140px var(--tile-pad) var(--tile-pad);
  background: linear-gradient(to top, rgba(7, 9, 12, 0.9) 0%, rgba(7, 9, 12, 0.72) 48%, rgba(7, 9, 12, 0) 100%);
}
.tile--capture .eyebrow { color: var(--mist); }
.tile--capture .tile__copy { color: var(--on-dark-2); }
.tile--capture .tlink { color: #fff; }
.tile--turnover { display: flex; align-items: center; min-height: clamp(480px, 46vw, 640px); background: #E9EDF0; color: var(--on-light); }
.tile--turnover .tile__img { object-position: 72% 50%; }
.tile--turnover .tile__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(244, 246, 248, 0.94) 0%, rgba(244, 246, 248, 0.7) 32%, rgba(244, 246, 248, 0) 58%);
}
.tile--turnover .tile__text { max-width: 500px; padding: var(--tile-pad); }

/* blocker chain */
.chain { padding: clamp(22px, 2.6vw, 32px); border-radius: 20px; background: var(--cloud); }
.chain__eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: #B83A22; }
.chain__eyebrow .pip { width: 7px; height: 7px; box-shadow: 0 0 0 3px rgba(232, 93, 45, 0.16); }
.chain__head p { margin-top: 10px; font-size: 15.5px; color: var(--on-light); }
.chain__stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 20px; border-top: 1px solid var(--line-l); }
.chain__stats div { padding-top: 14px; }
.chain__stats b { display: block; font-size: clamp(1.6rem, 2.3vw, 2.1rem); line-height: 1; font-weight: 600; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.chain__stats span { display: block; margin-top: 6px; font-size: 13px; color: var(--on-light-3); }
.chain__stats .is-late b { color: #B83A22; }
.chain__steps { margin-top: 26px; display: grid; gap: 7px; }
.chain__steps li { display: grid; grid-template-columns: 4.4em minmax(0, 1fr); column-gap: 14px; align-items: center; }
.chain__id { grid-row: span 2; font-size: 12.5px; font-weight: 600; color: var(--on-light-2); text-align: right; font-variant-numeric: tabular-nums; }
.chain__bar { display: block; height: 8px; border-radius: 4px; background: var(--ink); width: calc(var(--n) / 24 * 100%); min-width: 8px; transform-origin: 0 50%; }
.chain__steps li:first-child .chain__bar { background: #C2412A; }
.chain__label { margin-top: 4px; font-size: 12.5px; line-height: 1.2; color: var(--on-light-3); }
.m .chain__bar { transform: scaleX(0); }

/* waiver */
.waiver { padding: clamp(22px, 2.6vw, 30px); border-radius: 20px; background: var(--cloud); }
.waiver__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.waiver__id { font-size: 14px; font-weight: 600; }
.waiver__chip { padding: 6px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #955509; background: #FBEAD0; }
.waiver__excerpt { margin-top: 20px; padding: 18px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px var(--line-l); }
.waiver__src { display: block; font-size: 12.5px; font-weight: 500; color: var(--on-light-3); }
.waiver__excerpt code {
  position: relative; display: block; margin-top: 10px; font: 500 13.5px/1.5 var(--f-code); letter-spacing: 0; color: var(--on-light);
  background-image: linear-gradient(rgba(232, 93, 45, 0.18), rgba(232, 93, 45, 0.18));
  background-repeat: no-repeat; background-size: var(--hl, 100%) 100%;
}
.waiver__excerpt code b { font-weight: 600; margin-left: 0.6em; }
.waiver__excerpt p { margin-top: 10px; font-size: 14.5px; color: var(--on-light-2); }
.waiver__facts { margin-top: 18px; display: grid; }
.waiver__facts div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-l); font-size: 14.5px; }
.waiver__facts dt { font-size: 13px; line-height: 1.7; font-weight: 500; color: var(--on-light-3); }
.waiver__status { display: flex; align-items: center; gap: 9px; padding-top: 14px; border-top: 1px solid var(--line-l); font-size: 13.5px; font-weight: 600; }

/* smaller features */
.minis { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mini {
  padding: 30px 28px 32px; border-radius: 24px; background: var(--paper);
  box-shadow: 0 0 0 1px rgba(13, 17, 22, 0.045), 0 24px 60px -48px rgba(13, 17, 22, 0.28);
}
.mini h4 { font-size: 19px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.mini p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--on-light-2); }

@media (max-width: 1000px) {
  .minis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .tiles { grid-template-columns: 1fr; gap: 16px; }
  .tile--split { grid-template-columns: 1fr; }
  .tile--capture { min-height: 640px; }
  .tile--turnover { flex-direction: column; align-items: stretch; min-height: 0; background: var(--paper); }
  .tile--turnover .tile__media { position: relative; order: 2; height: clamp(240px, 56vw, 420px); z-index: 0; }
  .tile--turnover .tile__media::after { display: none; }
  .tile--turnover .tile__text { max-width: none; }
  .minis { gap: 16px; }
}
@media (max-width: 560px) {
  :root { --r-tile: 24px; }
  .minis { grid-template-columns: 1fr; }
  .waiver__facts div { grid-template-columns: 1fr; gap: 2px; }
  .chain__stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---- project meridian ------------------------------------- */
.meridian { position: relative; overflow: hidden; background: var(--cloud); color: var(--on-dark); padding-top: clamp(150px, 26vh, 280px); isolation: isolate; }
.meridian__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--night); }
.meridian__media img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; object-position: 50% 60%; }
.meridian__shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(7, 9, 12, 0.85) 0%, rgba(7, 9, 12, 0.5) 38%, rgba(7, 9, 12, 0.72) 68%, rgba(7, 9, 12, 0.95) 100%); }
.meridian__inner { text-align: center; }
.meridian__inner .display-l { margin: 22px auto 0; max-width: 14em; }
.meridian .eyebrow { color: var(--mist); }
.meridian .display-l em { color: rgba(238, 242, 245, 0.52); }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(70px, 11vh, 120px); }
.nums div { display: flex; flex-direction: column-reverse; align-items: center; padding: 6px 16px; }
.nums div + div { border-left: 1px solid var(--line-d); }
.nums dd { font-size: clamp(2.75rem, 5vw, 4.75rem); line-height: 1; font-weight: 600; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.nums dt { margin-top: 12px; font-size: 15px; font-weight: 500; color: var(--on-dark-2); }
@media (max-width: 760px) {
  .nums { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .nums div:nth-child(3) { border-left: 0; }
}

.ticker { margin-top: clamp(90px, 15vh, 160px); border-top: 1px solid var(--line-d); overflow: hidden; }
.ticker__track { display: flex; width: max-content; }
.ticker__list { display: flex; flex: none; }
.ticker__list li { display: flex; align-items: center; gap: 12px; padding: 22px 32px; white-space: nowrap; font-size: 14px; color: var(--on-dark-2); border-right: 1px solid var(--line-d); }
.ticker__list b { font-weight: 600; color: var(--on-dark); }
.m .ticker__track { animation: ticker 70s linear infinite; }
.m .ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---- about ------------------------------------------------ */
.about { background: var(--cloud); color: var(--on-light); padding: clamp(130px, 20vh, 220px) 0 clamp(90px, 14vh, 150px); text-align: center; }
.about .eyebrow { color: #6B7580; }
.about__note { margin-top: 26px; }
.about__note p { max-width: 23em; margin: 0 auto; font-size: clamp(1.55rem, 2.8vw, 2.5rem); line-height: 1.25; font-weight: 600; letter-spacing: -0.03em; }
.about__note .dim { color: var(--dim-l); }
.about__note footer { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 40px; }
.about__sig { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.about__role { font-size: 15px; color: var(--on-light-3); }

/* ---- close ------------------------------------------------ */
.close { background: var(--cloud); padding: 0 clamp(10px, 2vw, 28px) clamp(10px, 2vw, 28px); }
.close__card {
  position: relative; overflow: hidden; isolation: isolate;
  max-width: 1480px; min-height: min(88vh, 860px); margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(96px, 15vh, 160px) 24px 48px;
  border-radius: clamp(24px, 3vw, 40px); background: var(--night); color: var(--on-dark);
}
.close__media { position: absolute; inset: 0; z-index: -2; }
.close__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.close__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(7, 9, 12, 0.55) 0%, rgba(7, 9, 12, 0.1) 42%, rgba(7, 9, 12, 0.2) 70%, rgba(7, 9, 12, 0.6) 100%); }
.close__title { max-width: 11em; font-size: clamp(2.6rem, 6.2vw, 6.25rem); line-height: 1.02; font-weight: 600; letter-spacing: -0.038em; }
.close__title em { font-style: normal; color: rgba(238, 242, 245, 0.55); }
.close__sub { margin-top: 20px; font-size: clamp(17px, 1.45vw, 21px); color: var(--on-dark-2); }
.close__card .btn { margin-top: 34px; }

/* ---- footer ----------------------------------------------- */
.foot { background: var(--cloud); color: var(--on-light-3); font-size: 13px; }
.foot__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: clamp(40px, 6vh, 64px); padding-bottom: 26px; border-bottom: 1px solid var(--line-l); }
.foot__brand { color: var(--on-light); }
.foot__brand .logo { display: block; width: 116px; height: auto; }
.foot__links { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; font-weight: 500; color: var(--on-light-2); }
.foot__links a { transition: color 0.2s ease; }
.foot__links a:hover { color: var(--on-light); }
.foot__legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 32px; }
@media (max-width: 560px) { .foot__links { gap: 18px; } }

/* ---- motion prep (only when animations will run) ---------- */
.m .ln > span { transform: translateY(110%); }
.m [data-hero] { opacity: 0; }
.m [data-reveal] { opacity: 0; transform: translateY(28px); }
.m [data-reveal-group] > * { opacity: 0; transform: translateY(24px); }
