/* ==========================================================================
   PASSIVE ALTITUDE — v1 design system
   Theme: "Altitude". Scrolling is an ascent: ivory ground → morning sky →
   cloud layer → stratosphere → orbit. Visual fidelity evolves with each era:
   line art → flat colour → gradients & glass → glow → light.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Brand palette — sampled from the infinity mark */
  --pa-glacier: #8CCBD6;
  --pa-signal: #1A82FF;
  --pa-deep: #0B3E8F;
  --pa-ice: #D8F3FF;
  --pa-ink: #0E1116;
  --pa-paper: #F3EFE6;
  --pa-night: #04060C;
  --pa-gradient: linear-gradient(115deg, #8CCBD6 0%, #3D9BFF 46%, #1A6FE8 72%, #2B5EA6 100%);
  --pa-gradient-night: linear-gradient(115deg, #A8DCE4 0%, #6CB2FF 55%, #4D9BFF 100%);

  --gutter: clamp(20px, 4.2vw, 64px);
  --maxw: 1320px;
  --nav-h: 76px;
  --radius: 22px;
  --radius-sm: 14px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --fs-hero: clamp(3rem, 1.25rem + 6.6vw, 8.25rem);
  --fs-h2: clamp(2.25rem, 1.3rem + 3.6vw, 5rem);
  --fs-era: clamp(2rem, 1.2rem + 2.5vw, 3.75rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .5vw, 1.6rem);
  --fs-lead: clamp(1.06rem, .98rem + .4vw, 1.3rem);
  --fs-body: clamp(.98rem, .95rem + .12vw, 1.05rem);
  --fs-small: .875rem;
  --fs-mono: .72rem;
}

/* Tone tokens: every section declares data-tone="light" | "dark".
   Scenes draw ONLY with these variables so they adapt automatically. */
[data-tone="light"] {
  --ink: #0E1116; --ink-2: #464C56; --ink-3: #8D8E89;
  --line: rgba(14, 17, 22, .12); --line-2: rgba(14, 17, 22, .24);
  --surface: #FBF9F4; --surface-2: #E8E3D7; --bg: #F3EFE6;
  --accent: #1667DB; --accent-2: #4FA3B8; --accent-3: #0B3E8F; --glow: rgba(26, 130, 255, .22);
  --c-green: #1F9D6B; --c-amber: #D98E1F; --c-red: #D9473F;
  --text-3: #575954; --ink-dim: #6B6C67; --accent-text: #0F55BF;
  --btn-bg: #0E1116; --btn-fg: #F7F5EF;
  --card: rgba(255, 255, 255, .55); --card-line: rgba(14, 17, 22, .09);
  color: var(--ink);
}
[data-tone="dark"] {
  --ink: #EDF2FA; --ink-2: #A3AFC2; --ink-3: #56627A;
  --line: rgba(237, 242, 250, .11); --line-2: rgba(237, 242, 250, .24);
  --surface: #0E1A30; --surface-2: #15243F; --bg: #070C18;
  --accent: #4DA3FF; --accent-2: #8CCBD6; --accent-3: #D8F3FF; --glow: rgba(77, 163, 255, .35);
  --c-green: #3DD68C; --c-amber: #F5B44A; --c-red: #FF6B6B;
  --text-3: #8A97AE; --ink-dim: #7D8AA3; --accent-text: #6CB2FF;
  --btn-bg: #F4F7FC; --btn-fg: #0A0F1A;
  --card: rgba(255, 255, 255, .035); --card-line: rgba(237, 242, 250, .09);
  color: var(--ink);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-anchor: none; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; overflow-x: hidden; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html.smooth { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--pa-ink);
  background: var(--pa-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* not hidden: hidden would break position: sticky */
  font-feature-settings: "ss01", "cv11";
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
em { font-style: normal; }
::selection { background: rgba(26, 130, 255, .22); }
:focus-visible { outline: 2px solid var(--accent, #1667DB); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -.125em; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--pa-ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; transition: top .3s; }
.skip:focus { top: 16px; }

/* ---------- Atmosphere layers ---------- */
.sky { position: fixed; inset: 0; z-index: -3; background: #F3EFE6; }
.stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; opacity: 0; }
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: clamp(96px, 14vh, 176px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .65em;
  font-family: var(--font-mono); font-size: var(--fs-mono); font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: 1.5rem;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--glow); }
.eyebrow:has(.ico)::before { display: none; }
.eyebrow .ico { color: var(--accent); width: 1.4em; height: 1.4em; }
.h2 { font-size: var(--fs-h2); line-height: 1; letter-spacing: -.04em; font-weight: 500; max-width: 16ch; text-wrap: balance; }
.h2 em, .hero__title em, .era__to, .footer__tag em, .clouds__line em, .about__statement em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.012em;
}
.h2 em { font-size: 1.06em; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); max-width: 44rem; margin-top: 1.6rem; text-wrap: pretty; }
.section-head { margin-bottom: clamp(48px, 8vh, 96px); }
.section-head--split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.section-head--split .lead { margin-top: 0; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--btn-bg, #0E1116); --b-fg: var(--btn-fg, #F7F5EF);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  min-height: 52px; padding: 0 1.45em 0 1.55em; border: 0; border-radius: 999px;
  background: var(--b-bg); color: var(--b-fg);
  font-size: .98rem; font-weight: 500; letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  transition: transform .6s var(--ease-out), box-shadow .5s var(--ease-out), background-color .4s;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 12px 28px -14px rgba(14, 17, 22, .55);
  will-change: transform; isolation: isolate; overflow: hidden;
}
.btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; background: radial-gradient(120px 60px at var(--bx, 50%) var(--by, 50%), rgba(140, 203, 214, .35), transparent 70%); opacity: 0; transition: opacity .4s; }
.btn:hover::after { opacity: 1; }
.btn .ico { transition: transform .5s var(--ease-out); }
.btn:hover .ico { transform: translateX(3px); }
.btn--sm { min-height: 42px; padding: 0 1.1em 0 1.2em; font-size: .9rem; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn--glow { background: linear-gradient(var(--btn-bg), var(--btn-bg)) padding-box, var(--pa-gradient) border-box; border: 1px solid transparent; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: inherit; }
.brand__mark { width: 38px; height: auto; aspect-ratio: 1010 / 464; }
.brand__word { font-weight: 600; font-size: 1.02rem; letter-spacing: -.02em; }
.brand__word span { font-weight: 400; margin-left: .28em; opacity: .62; }
.brand--lg .brand__mark { width: 64px; }
.brand--lg .brand__word { font-size: 1.5rem; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; z-index: 80; top: max(14px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)), 1240px); height: 60px;
  display: flex; align-items: center; gap: 24px; padding: 0 9px 0 20px; border-radius: 999px;
  color: #0E1116; background: rgba(251, 249, 244, .64);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(14, 17, 22, .07);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 18px 40px -26px rgba(14, 17, 22, .4);
  transition: color .6s, background-color .6s, border-color .6s, box-shadow .6s, transform .6s var(--ease-out);
  --btn-bg: #0E1116; --btn-fg: #F7F5EF; --line-2: rgba(14, 17, 22, .24); --accent: #1667DB;
}
body[data-nav="dark"] .nav {
  color: #EDF2FA; background: rgba(9, 14, 26, .52); border-color: rgba(237, 242, 250, .09);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 18px 40px -24px rgba(0, 0, 0, .7);
  --btn-bg: #F4F7FC; --btn-fg: #0A0F1A; --line-2: rgba(237, 242, 250, .24); --accent: #4DA3FF;
}
.nav.is-hidden { transform: translate(-50%, calc(-100% - 24px)); }
.nav.is-hidden:focus-within { transform: translateX(-50%); }
.nav__links { display: flex; gap: 6px; margin: 0 auto; }
.nav__links a { position: relative; padding: 8px 14px; font-size: .92rem; text-decoration: none; opacity: .72; transition: opacity .3s; border-radius: 999px; }
.nav__links a:hover, .nav__links a.is-active { opacity: 1; }
.nav__links a::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .4s var(--ease-out); }
.nav__links a.is-active::after { transform: scale(1); }
.nav__toggle { display: none; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: 50%; background: transparent; cursor: pointer; place-items: center; }
.nav__toggle .ico { width: 22px; height: 22px; }
.nav__toggle .ico--close { display: none; }
html.menu-open .nav__toggle .ico--open { display: none; }
html.menu-open .nav__toggle .ico--close { display: block; }

.menu {
  position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; justify-content: flex-start; overflow-y: auto; overscroll-behavior: contain;
  padding: 110px max(var(--gutter), env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left)); background: rgba(8, 12, 22, .96); color: #EDF2FA;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.menu[hidden] { display: none; }
.menu__links { display: flex; flex-direction: column; gap: 4px; margin-top: 4vh; }
.menu__foot { margin-top: auto; padding-top: 32px; }
.menu__links a { min-height: 44px; display: flex; align-items: baseline; gap: 16px; font-size: clamp(2.1rem, 9vw, 3rem); letter-spacing: -.035em; line-height: 1.15; text-decoration: none; opacity: 0; transform: translateY(18px); animation: menuIn .7s var(--ease-out) forwards; }
.menu__links a i { font-family: var(--font-mono); font-style: normal; font-size: .8rem; color: #4DA3FF; letter-spacing: .1em; }
.menu__links a:nth-child(2) { animation-delay: .05s; } .menu__links a:nth-child(3) { animation-delay: .1s; }
.menu__links a:nth-child(4) { animation-delay: .15s; } .menu__links a:nth-child(5) { animation-delay: .2s; } .menu__links a:nth-child(6) { animation-delay: .25s; }
.menu__foot { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: #A3AFC2; }
.menu__foot a { color: #EDF2FA; }
@keyframes menuIn { to { opacity: 1; transform: none; } }
html.menu-open { overflow: hidden; }
html.menu-open body { --nav-forced: dark; }

/* ---------- Altimeter (desktop chapter rail) ---------- */
.alt {
  position: fixed; z-index: 60; left: clamp(14px, 2vw, 30px); top: 50%; transform: translate(-12px, -50%);
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  font-family: var(--font-mono); color: var(--alt-ink, #0E1116);
  opacity: 0; visibility: hidden; transition: opacity .6s, transform .6s var(--ease-out), visibility 0s .6s, color .6s;
}
body[data-alt="dark"] .alt { --alt-ink: #EDF2FA; --alt-dim: rgba(237, 242, 250, .3); --alt-acc: #4DA3FF; }
html.in-journey .alt { opacity: 1; visibility: visible; transform: translate(0, -50%); transition-delay: 0s; }
.alt__readout { display: grid; grid-template-columns: auto auto; column-gap: 3px; align-items: baseline; font-size: .62rem; letter-spacing: .08em; }
.alt__k { grid-column: 1 / -1; text-transform: uppercase; opacity: .55; margin-bottom: 2px; }
.alt__v { font-size: .8rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.alt__u { opacity: .55; }
.alt__scale { display: flex; flex-direction: column; gap: 0; position: relative; padding-left: 2px; }
.alt__scale a { position: relative; display: block; width: 44px; height: 20px; }
.alt__scale a::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 1.5px; background: var(--alt-dim, rgba(14, 17, 22, .28)); transition: width .5s var(--ease-out), background-color .4s; }
.alt__scale a:hover::before { width: 22px; background: var(--alt-ink, #0E1116); }
.alt__scale a.is-active::before { width: 30px; background: var(--alt-acc, #1667DB); height: 2px; }
.alt__scale a.is-between::before { width: 20px; background: var(--alt-acc, #1667DB); opacity: .7; }
.alt__scale a.is-past::before { background: var(--alt-ink, #0E1116); opacity: .55; }
.alt__scale a span {
  position: absolute; left: 40px; top: 50%; transform: translate(-6px, -50%); white-space: nowrap;
  font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 8px;
  background: var(--alt-tip-bg, rgba(14, 17, 22, .88)); color: #fff; opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease-out);
}
.alt__scale a:hover span, .alt__scale a:focus-visible span { opacity: 1; transform: translate(0, -50%); }
.alt__year { max-width: 64px; font-size: .6rem; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }

.alt-chip {
  position: fixed; z-index: 60; left: 50%; top: max(10px, env(safe-area-inset-top)); transform: translate(-50%, 52px) scale(.96);
  display: none; align-items: center; gap: 9px; padding: 6px 13px 6px 6px; border-radius: 999px;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  color: #0E1116; background: rgba(251, 249, 244, .78); border: 1px solid rgba(14, 17, 22, .08);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transition: opacity .5s, transform .5s var(--ease-out), color .5s, background-color .5s;
}
body[data-nav="dark"] .alt-chip { color: #EDF2FA; background: rgba(9, 14, 26, .7); border-color: rgba(237, 242, 250, .1); }
/* the chip appears only while the nav is tucked away (scrolling down the journey) and takes its place */
html.in-journey .nav.is-hidden ~ .alt-chip { opacity: 1; transform: translate(-50%, 4px); }
.alt-chip__ring { width: 24px; height: 24px; border-radius: 50%; background: conic-gradient(var(--pa-signal) calc(var(--j, 0) * 360deg), rgba(127, 127, 127, .25) 0); display: grid; place-items: center; }
.alt-chip__ring i { width: 18px; height: 18px; border-radius: 50%; background: inherit; background: var(--chip-hole, #F3EFE6); }
body[data-nav="dark"] .alt-chip__ring i { --chip-hole: #0A1020; }
.alt-chip__n { font-weight: 500; }
.alt-chip__y { opacity: .55; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--nav-h) + 48px) 0 clamp(28px, 5vh, 56px); overflow: hidden; overflow: clip; }
.hero__stage { position: absolute; inset: 0; z-index: 0; }
.hero__stage svg { width: 100%; height: 100%; }
.hero__inner { position: relative; z-index: 1; width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "chip chip" "title title" "foot flight"; gap: 0 48px; align-items: end; }
.hero__chip { grid-area: chip; justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 9px; margin-bottom: clamp(24px, 5vh, 48px); border-radius: 999px; font-size: .86rem; text-decoration: none; color: var(--ink); background: rgba(255, 255, 255, .55); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: border-color .4s, background-color .4s; }
.hero__chip:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .8); }
.hero__chip b { font-family: var(--font-mono); font-size: .66rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--pa-ink); color: #fff; }
.hero__chip .ico { color: var(--accent); }
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--pa-signal); flex: none; }
.pulse-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--pa-signal); animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.hero__title { grid-area: title; font-size: var(--fs-hero); line-height: .94; letter-spacing: -.05em; font-weight: 500; margin-bottom: clamp(28px, 5vh, 56px); }
.hero__title em { letter-spacing: -.02em; font-size: 1.04em; }
.hero__title .w { display: inline-block; }
.pa-intro .hero__title .w { opacity: 0; transform: translateY(.35em); filter: blur(10px); }
.is-loaded .hero__title .w { animation: wordIn 1.3s var(--ease-out) forwards; }
.hero__title .w:nth-child(2) { animation-delay: .08s; } .hero__title .w:nth-child(4) { animation-delay: .18s; }
.hero__title .w:nth-child(5) { animation-delay: .26s; } .hero__title .w:nth-child(6) { animation-delay: .34s; }
@keyframes wordIn { to { opacity: 1; transform: none; filter: none; } }
.hero__foot { grid-area: foot; display: flex; flex-direction: column; gap: 28px; max-width: 40rem; }
.hero__lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__flight { grid-area: flight; display: flex; flex-direction: column; align-items: flex-end; gap: 22px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.hero__readout { display: grid; justify-items: end; gap: 2px; }
.hero__readout strong { font-variant-numeric: tabular-nums; font-family: var(--font-sans); font-size: 2.4rem; font-weight: 400; letter-spacing: -.04em; color: var(--ink); text-transform: none; }
.hero__scroll { display: flex; align-items: center; gap: 12px; }
.hero__scroll i { position: relative; width: 1px; height: 56px; background: var(--line-2); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--ink); transform: translateY(-100%); animation: scrollCue 2.2s var(--ease-in-out) infinite; }
@keyframes scrollCue { to { transform: translateY(250%); } }
.past-hero .hero__scroll i::after, .past-hero .pulse-dot::after { animation-play-state: paused; }
.pa-intro .hero__chip, .pa-intro .hero__foot, .pa-intro .hero__flight { opacity: 0; transform: translateY(16px); }
.is-loaded .hero__chip, .is-loaded .hero__foot, .is-loaded .hero__flight { animation: wordIn 1.2s var(--ease-out) forwards; }
.is-loaded .hero__foot { animation-delay: .45s; } .is-loaded .hero__flight { animation-delay: .6s; }

/* ---------- Prologue ---------- */
.prologue { padding: clamp(120px, 20vh, 220px) 0 clamp(60px, 10vh, 120px); }
.prologue .h2 { max-width: 14ch; }
.ruler { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); margin-top: clamp(56px, 9vh, 104px); border-top: 1px solid var(--line-2); }
.ruler a { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 10px 0 0; text-decoration: none; min-height: 112px; }
.ruler a::before { content: ""; position: absolute; left: 0; top: -1px; width: 1px; height: 12px; background: var(--ink); }
.ruler a::after { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--accent); transition: width .6s var(--ease-out); }
.ruler a:hover::after { width: 100%; }
.ruler b { font-family: var(--font-mono); font-weight: 500; font-size: .72rem; color: var(--accent-text); letter-spacing: .08em; }
.ruler span { font-size: .9rem; line-height: 1.25; letter-spacing: -.01em; }
.ruler i { font-family: var(--font-mono); font-style: normal; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-top: auto; }

/* ---------- Era chapters ---------- */
.journey { position: relative; }
.era { position: relative; --p: 1; }
.js .era__copy { --p: 0; }
.era__pin { position: relative; width: 100%; max-width: 1560px; margin: 0 auto; }
.era__copy { position: relative; max-width: 34rem; }
.era__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5em 1.1em; font-family: var(--font-mono); font-size: var(--fs-mono); font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 1.4rem; }
.era__meta span + span { position: relative; }
.era__meta span + span::before { content: ""; position: absolute; left: -.62em; top: 50%; width: 3px; height: 3px; margin-top: -1.5px; border-radius: 50%; background: currentColor; opacity: .5; }
.era__num { color: var(--accent-text); }
.era__title { font-size: var(--fs-era); line-height: 1.02; letter-spacing: -.038em; font-weight: 500; margin-bottom: 1.3rem; text-wrap: balance; }
.era__from { display: block; color: var(--ink-2); opacity: calc(1 - .2 * clamp(0, (var(--p) - .3) / .35, 1)); }
.era__to {
  display: block; font-size: 1.08em; line-height: 1.05; padding-bottom: .06em;
  background-image: linear-gradient(90deg, var(--ink) 0 50%, var(--ink-dim) 50% 100%);
  background-size: 200% 100%; background-position: calc(100% - 100% * clamp(0, (var(--p) - .25) / .45, 1)) 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
[data-tone="dark"] .era__to { background-image: linear-gradient(90deg, #EDF2FA 0 30%, #8CCBD6 42%, #6CB2FF 50%, var(--ink-dim) 50% 100%); }
.era__body { color: var(--ink-2); line-height: 1.65; text-wrap: pretty; }
.era__track { display: flex; align-items: center; gap: 12px; margin: 1.6rem 0 1.4rem; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.era__track i { position: relative; width: 12rem; height: 1px; background: var(--line-2); }
.era__track i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p)); }
.era__track b { position: absolute; left: -4px; top: -3.5px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--glow); transform: translateX(calc(var(--p) * 12rem)); }
.era__bridge { font-size: .92rem; line-height: 1.55; color: var(--ink-2); padding-top: 1.1rem; border-top: 1px solid var(--line); transform: translateY(calc((1 - clamp(0, (var(--p) - .45) / .25, 1)) * 6px)); }
.era__bridge a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.era__bridge-k { display: block; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); margin-bottom: .4rem; }
.stage { position: relative; margin: 0; content-visibility: auto; }
.stage > svg, .scene-svg { width: 100%; height: 100%; overflow: visible; }
.era__stage { width: 100%; aspect-ratio: 4 / 3; }
.stage[tabindex] { cursor: pointer; border-radius: var(--radius); }
.stage__hint {
  position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 9px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
  background: rgba(243, 239, 230, .9); white-space: nowrap;
  transition: color .3s, border-color .3s, transform .5s var(--ease-out);
}
.stage__hint:hover { color: var(--ink); border-color: var(--line-2); }
.stage__hint[hidden], .tabs-pause[hidden] { display: none; }
[data-tone="dark"] .stage__hint { background: rgba(7, 12, 24, .9); }
@supports (color: color-mix(in srgb, red, blue)) { .stage__hint, [data-tone="dark"] .stage__hint { background: color-mix(in srgb, var(--bg) 88%, transparent); } }
.stage__hint .ico { color: var(--accent); width: 14px; height: 14px; }
.stage.is-tappable { cursor: pointer; -webkit-tap-highlight-color: transparent; }
@keyframes hintPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }

/* Flow layout (default; mobile, tablets, short screens, reduced motion) */
.era { padding: clamp(56px, 9vh, 96px) 0; }
.era__pin { display: flex; flex-direction: column; gap: clamp(20px, 4vw, 40px); padding: 0 var(--gutter); }
.era__stage { max-width: 640px; width: min(100%, calc(76svh * 4 / 3)); align-self: center; }
.era__copy { max-width: 40rem; align-self: center; width: 100%; }

/* Pinned layout (desktop, JS active, motion allowed) */
.mode-pin .era { height: 190vh; padding: 0; }
.mode-pin .era__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(32px, 5vw, 88px);
  padding: calc(var(--nav-h) + 12px) var(--gutter) 24px calc(var(--gutter) + 64px);
}
.mode-pin .era__copy { grid-column: 1; grid-row: 1; }
.mode-pin .era__stage { grid-column: 2; grid-row: 1; max-width: none; justify-self: center; width: min(100%, calc((100svh - var(--nav-h) - 60px) * 4 / 3)); }
.mode-pin .era__copy { align-self: center; }

/* ---------- Cloud interlude ---------- */
.clouds {
  position: relative; height: 200vh;
  background: linear-gradient(to bottom, #CADBEA 0%, #E9EFF4 18%, #F7F9FB 36%, #F4F7FA 50%, #A9B7C9 66%, #3A4D6B 82%, #0D1B34 100%);
}
.clouds__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.clouds__stage { position: absolute; inset: 0; }
.clouds__stage svg { width: 100%; height: 100%; }
.clouds__line {
  position: relative; z-index: 2; max-width: 18ch; padding: 0 var(--gutter); text-align: center;
  font-size: clamp(2rem, 1.2rem + 3vw, 4.2rem); line-height: 1.04; letter-spacing: -.04em; color: #0E1116; text-wrap: balance;
  opacity: calc(clamp(0, (var(--p, .4) - .12) / .14, 1) * (1 - clamp(0, (var(--p, .4) - .48) / .1, 1)));
  transform: translateY(calc((.35 - var(--p, .35)) * 80px));
}
.clouds__line em { color: #1667DB; }
.reduced .clouds { height: auto; padding: 30vh 0; }
.reduced .clouds__pin { position: relative; height: auto; }
.reduced .clouds__line { opacity: 1; transform: none; }

/* ---------- AI ecosystem ---------- */
.ai { padding-top: clamp(140px, 22vh, 260px); }
.ai .h2 em { background: var(--pa-gradient-night); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-right: .06em; }
.eco { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.eco__stage { width: 100%; aspect-ratio: 1; max-width: 720px; justify-self: center; }
.eco__panel { min-width: 0; }
.eco__hint { text-wrap: balance; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.eco__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.eco__tabs button {
  position: relative; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer;
  font-size: .84rem; color: var(--ink-2); transition: color .3s, border-color .3s, background-color .3s; overflow: hidden;
}
.eco__tabs button:hover { color: var(--ink); border-color: var(--line-2); }
.eco__tabs button[aria-selected="true"] { color: #04060C; background: #EDF2FA; border-color: #EDF2FA; }
.eco__tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--pa-signal); transform-origin: left; transform: scaleX(0); }
.eco__tabs.is-cycling button[aria-selected="true"]::after { animation: tabTimer var(--cycle, 5.2s) linear forwards; }
@keyframes tabTimer { to { transform: scaleX(1); } }
.eco__panels { position: relative; display: grid; }
.eco__item { grid-area: 1 / 1; }
.js .eco__item[hidden] { display: block; visibility: hidden; }
.tabs-pause { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.tabs-pause:hover { color: var(--ink); border-color: var(--line-2); }
.tabs-pause__i { width: 8px; height: 9px; border-left: 2.5px solid currentColor; border-right: 2.5px solid currentColor; }
.tabs-pause[aria-pressed="true"] .tabs-pause__i { width: 0; height: 0; border: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.eco__item { padding: 28px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(77, 163, 255, .09), rgba(255, 255, 255, .02) 60%); border: 1px solid var(--card-line); }
.eco__item:not([hidden]) { animation: panelIn .7s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }
.eco__ind { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 10px; }
.eco__item h3 { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 12px; }
.eco__item > p:not(.eco__ind) { color: var(--ink-2); }
.eco__caps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.eco__caps li { font-size: .78rem; padding: 5px 11px; border-radius: 999px; background: rgba(77, 163, 255, .12); color: var(--accent-3); }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: clamp(72px, 12vh, 140px); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillars li { padding: 32px 28px 36px; background: #050811; }
.pillars__g { display: block; width: 44px; height: 44px; margin-bottom: 26px; color: #8CCBD6; }
.pillars__g svg { width: 100%; height: 100%; }
.pillars h3 { display: block; font-size: 1.15rem; font-weight: 500; letter-spacing: -.02em; margin-bottom: 10px; }
.pillars p { font-size: .94rem; color: var(--ink-2); }
.ai__principle { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; margin-top: 40px; font-size: clamp(1.2rem, 1rem + .8vw, 1.7rem); letter-spacing: -.02em; line-height: 1.3; }
.ai__principle span { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }

/* ---------- Consulting ---------- */
.consult__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.consult__steps { display: flex; flex-direction: column; }
.consult__steps li { position: relative; padding: clamp(40px, 9vh, 96px) 0 clamp(40px, 9vh, 96px) 72px; border-top: 1px solid var(--line); opacity: .8; transition: opacity .6s; }
.consult__steps li::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--accent); transition: width .8s var(--ease-out); }
.consult__steps li.is-active::before { width: 48px; }
.consult__steps li:last-child { border-bottom: 1px solid var(--line); }
.consult__steps li.is-active, .reduced .consult__steps li, .mode-flow .consult__steps li { opacity: 1; }
.consult__n { position: absolute; left: 0; top: clamp(44px, 9.4vh, 100px); font-family: var(--font-mono); font-size: .8rem; color: var(--accent); letter-spacing: .08em; }
.consult__steps h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem); font-weight: 500; letter-spacing: -.035em; margin-bottom: 14px; }
.consult__steps p { color: var(--ink-2); max-width: 30rem; }
.consult__visual { position: relative; }
.consult__stage { width: 100%; aspect-ratio: 1; }
@media (min-width: 901px) {
  /* The visual column spans an extra row so the sticky stage stays pinned until the
     last step (Operate) has passed the middle of the screen. */
  .consult__grid { --cs: min(40vw, calc(100vh - 170px), 600px); grid-template-rows: auto calc(var(--cs) / 2 + 56px); }
  .consult__steps { grid-row: 1; grid-column: 1; }
  .consult__visual { grid-row: 1 / span 2; grid-column: 2; }
  .consult__stage { position: sticky; top: calc((100vh - var(--cs)) / 2 + 36px); width: var(--cs); height: var(--cs); margin: 0 auto; }
}
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(72px, 12vh, 140px); }
.offer { padding: 30px 28px 34px; border-radius: var(--radius); border: 1px solid var(--card-line); background: var(--card); transition: border-color .4s, transform .6s var(--ease-out); }
@media (hover: hover) { .offer:hover { border-color: var(--line-2); transform: translateY(-4px); } }
.offer__k { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 40px; }
.offer h3 { font-size: 1.3rem; font-weight: 500; letter-spacing: -.02em; margin-bottom: 10px; }
.offer p { color: var(--ink-2); font-size: .95rem; }
.roi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: 16px; padding: clamp(28px, 4vw, 48px); border-radius: calc(var(--radius) + 6px); border: 1px solid var(--card-line); background: linear-gradient(140deg, rgba(77, 163, 255, .1), rgba(140, 203, 214, .04) 50%, rgba(255, 255, 255, .02)); }
.roi .eyebrow { margin-bottom: 1rem; }
.roi h3 { font-size: 1.6rem; font-weight: 500; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 12px; }
.roi__intro p:not(.eyebrow) { color: var(--ink-2); font-size: .92rem; }
.roi__inputs { display: flex; flex-direction: column; gap: 26px; justify-content: center; }
.range { display: block; }
.range__top { display: flex; justify-content: space-between; gap: 16px; font-size: .88rem; color: var(--ink-2); margin-bottom: 10px; }
.range output { font-family: var(--font-mono); color: var(--ink); font-weight: 500; }
.range input { width: 100%; height: 22px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; --fill: 50%; }
.range input::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--pa-signal) var(--fill), var(--line-2) var(--fill)); }
.range input::-moz-range-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--pa-signal) var(--fill), var(--line-2) var(--fill)); }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8.5px; border-radius: 50%; background: #EDF2FA; border: 5px solid var(--pa-signal); box-shadow: 0 0 0 6px rgba(26, 130, 255, .18); }
.range input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #EDF2FA; border: 5px solid var(--pa-signal); box-shadow: 0 0 0 6px rgba(26, 130, 255, .18); }
.roi__result { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; }
.roi__big { display: block; font-size: clamp(3rem, 2rem + 3vw, 4.6rem); font-weight: 400; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; background: var(--pa-gradient-night); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.roi__unit { display: block; color: var(--ink-2); margin-top: 6px; }
.roi__fte { color: var(--ink-2); font-size: .92rem; margin-bottom: 14px; }
.roi__fte b { color: var(--ink); font-weight: 500; }
.roi__result .btn { white-space: nowrap; }
.roi__note { display: block; margin-top: 6px; font-size: .8rem; color: var(--text-3); }
.range label { cursor: pointer; }

/* ---------- Re-entry band ---------- */
.reentry { position: relative; height: 48vh; display: grid; place-items: center; background: linear-gradient(to bottom, #0A1426 0%, #1C2C47 26%, #6F7F96 52%, #C9CFD3 74%, #F3EFE6 100%); }
.reentry span { padding: 0 var(--gutter); text-align: center; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(14, 17, 22, .66); transform: translateY(13vh); }

/* ---------- Solutions ---------- */
.solutions { background: var(--pa-paper); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: .88rem; color: var(--ink-2); transition: all .3s; }
.filters button span { font-family: var(--font-mono); font-size: .7rem; margin-left: 4px; opacity: .6; }
.filters button:hover { color: var(--ink); border-color: var(--line-2); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--pa-paper); border-color: var(--ink); }
.sols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.sol {
  position: relative; grid-column: span 4; display: flex; flex-direction: column; padding: 28px 26px 26px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .5); border: 1px solid var(--card-line); overflow: hidden; isolation: isolate;
  transition: border-color .4s, transform .7s var(--ease-out), box-shadow .6s var(--ease-out), opacity .4s;
  scroll-margin-top: 110px;
}
.sol--half { grid-column: span 6; }
.sol--wide { grid-column: span 12; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: start; padding: 36px; color: #EDF2FA; background: radial-gradient(120% 140% at 0% 0%, #12305E 0%, #0A1426 55%, #070C18 100%); border-color: rgba(140, 203, 214, .25); }
.sol--wide .sol__cat, .sol--wide .sol__desc { color: #A3AFC2; }
.sol--wide .sol__tags li { border-color: rgba(237, 242, 250, .16); color: #D8E2F0; }
.sol--wide .sol__glyph { width: 84px; height: 84px; color: #8CCBD6; }
.sol--wide .sol__name { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); }
@media (hover: hover) { .sol:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: 0 30px 60px -40px rgba(14, 17, 22, .45); } }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(26, 130, 255, .1), transparent 60%); }
.spot:hover::before { opacity: 1; }
.sol.is-out { display: none; }
.sols[data-shown="1"] .sol { grid-column: span 6; }
.sols[data-shown="2"] .sol, .sols[data-shown="4"] .sol { grid-column: span 6; }
.sols[data-shown="3"] .sol { grid-column: span 4; }
.sol__glyph { width: 52px; height: 52px; color: var(--ink); margin-bottom: 30px; }
.sol__glyph svg { width: 100%; height: 100%; }
.sol__cat { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.sol__new { padding: 2px 8px; border-radius: 999px; background: var(--pa-gradient); color: #04060C; font-weight: 500; }
.sol__name { font-size: 1.35rem; font-weight: 500; letter-spacing: -.025em; line-height: 1.2; margin-bottom: 10px; }
.sol__name span { display: block; font-size: .88rem; font-weight: 400; letter-spacing: 0; color: var(--text-3); margin-top: 2px; }
.sol__desc { color: var(--ink-2); font-size: .94rem; line-height: 1.6; }
.sol__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.sol__tags li { font-size: .74rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.sol__ai { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 22px; font-size: .84rem; color: var(--accent); }
/* Suite cards (homepage) */
.sol__count { margin-left: auto; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); letter-spacing: .08em; white-space: nowrap; }
.sol__name a { color: inherit; text-decoration: none; }
.sol__name a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.suite-card__list { display: grid; gap: 0 18px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.sol--half .suite-card__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.suite-card__list a { display: block; padding: 6px 0; font-size: .9rem; line-height: 1.35; color: var(--ink); text-decoration: none; transition: color .25s; }
.suite-card__list a:hover { color: var(--accent-text); }
.suite-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px; font-size: .9rem; font-weight: 500; color: var(--accent-text); text-decoration: none; }
.suite-card__more .ico, .eco__more .ico { transition: transform .4s var(--ease-out); }
.suite-card__more:hover .ico, .eco__more:hover .ico { transform: translateX(3px); }
.sol--wide .sol__count { border-color: rgba(237, 242, 250, .18); }
.sol--wide .suite-card__list { display: flex; flex-wrap: wrap; gap: 8px; border-color: rgba(237, 242, 250, .14); }
.sol--wide .suite-card__list a { padding: 7px 14px; border: 1px solid rgba(237, 242, 250, .16); border-radius: 999px; color: #EDF2FA; }
.sol--wide .suite-card__list a:hover { border-color: #8CCBD6; color: #fff; }
.sol--wide .suite-card__more { color: #8CCBD6; }
.sol--wide .sol__name a { color: #EDF2FA; }
.eco__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: .9rem; font-weight: 500; color: var(--accent-3); text-decoration: none; }
.sol-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.nav__links a[aria-current="page"] { opacity: 1; }
.nav__links a[aria-current="page"]::after { transform: scale(1); }
.footer__cols.footer__cols--4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.2fr); }
@media (max-width: 900px) { .footer__cols.footer__cols--4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 640px) { .sol--half .suite-card__list { grid-template-columns: 1fr; } }

.studio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: clamp(64px, 10vh, 112px); padding-top: 48px; border-top: 1px solid var(--line); }
.studio__g { display: block; width: 36px; height: 36px; color: var(--ink); margin-bottom: 18px; }
.studio__g svg { width: 100%; height: 100%; }
.studio h3 { font-size: 1.1rem; font-weight: 500; letter-spacing: -.015em; margin-bottom: 8px; }
.studio p { color: var(--ink-2); font-size: .94rem; }
.sol-cta { margin-top: 56px; }

/* ---------- About ---------- */
.about { background: var(--pa-paper); padding-top: 0; }
.dusk { height: 28vh; background: linear-gradient(to bottom, #F3EFE6 0%, #C9CBCB 30%, #4B566A 68%, #070B14 100%); }
.about__top { padding-top: clamp(72px, 12vh, 140px); border-top: 1px solid var(--line); }
.about__statement { max-width: 22ch; font-size: clamp(2rem, 1.2rem + 3vw, 4.2rem); }
.about__team { margin-top: clamp(28px, 4vh, 44px); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(64px, 10vh, 112px); border-top: 1px solid var(--line-2); }
.stats div { padding: 24px 24px 0 0; display: flex; flex-direction: column-reverse; gap: 8px; }
.stats dd { font-size: clamp(3rem, 2rem + 3.6vw, 5.5rem); font-weight: 400; letter-spacing: -.055em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats dt { font-size: .9rem; color: var(--ink-2); }
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; margin-top: clamp(72px, 12vh, 128px); }
.principles__n { display: block; font-family: var(--font-serif); font-style: italic; font-size: 1.6rem; color: var(--accent); margin-bottom: 18px; }
.principles h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: -.02em; margin-bottom: 8px; }
.principles p { color: var(--ink-2); font-size: .94rem; }

/* ---------- Contact & footer ---------- */
.contact { background: radial-gradient(90% 60% at 85% 18%, rgba(26, 130, 255, .14), transparent 60%), radial-gradient(70% 50% at 0% 36%, rgba(140, 203, 214, .07), transparent 60%), #070B14; }
.contact::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 160px; background: linear-gradient(#070B14, rgba(7, 11, 20, 0)); pointer-events: none; }
.contact > .container { position: relative; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 7vw, 112px); }
.contact .h2 em { background: var(--pa-gradient-night); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-right: .06em; }
.contact__details { display: flex; flex-direction: column; gap: 22px; margin-top: 48px; }
.contact__details li { display: flex; gap: 16px; }
.contact__details .ico { width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.contact__details span { display: block; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.contact__details a { display: inline-block; padding: 8px 0; font-size: 1.1rem; text-decoration: none; border-bottom: 1px solid var(--line-2); }
.contact__details address { font-style: normal; color: var(--ink-2); font-size: .94rem; max-width: 30rem; }
.form { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3.4vw, 40px); border-radius: calc(var(--radius) + 6px); background: rgba(255, 255, 255, .03); border: 1px solid var(--card-line); align-self: start; }
.form__interest { border: 0; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.form__interest legend { width: 100%; padding: 0; margin-bottom: 12px; font-size: .88rem; color: var(--ink-2); }
.form__interest label { position: relative; cursor: pointer; }
.form__interest input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.form__interest span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: .84rem; color: var(--ink-2); transition: all .3s; }
.form__interest input:checked + span { background: #EDF2FA; color: #04060C; border-color: #EDF2FA; }
.form__interest input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: .84rem; color: var(--ink-2); }
.field i { font-style: normal; color: var(--text-3); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .3s, background-color .3s, box-shadow .3s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(77, 163, 255, .06); box-shadow: 0 0 0 4px rgba(77, 163, 255, .14); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--c-red); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 6px; }
.form__note { font-size: .84rem; color: var(--text-3); max-width: 30rem; }
.form__status { font-size: .94rem; min-height: 1.4em; }
.form__status.is-ok { color: var(--c-green); }
.form__status.is-err { color: var(--c-red); }
.form.is-sending .btn { opacity: .7; pointer-events: none; }
.contact { padding-bottom: clamp(96px, 16vh, 180px); }
.footer { padding: 64px 0 max(32px, env(safe-area-inset-bottom)); background: #070B14; border-top: 1px solid var(--line); }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer__tag { font-size: clamp(1.3rem, 1rem + 1vw, 2rem); letter-spacing: -.03em; color: var(--ink-2); }
.footer__tag em { color: var(--ink); }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.footer__cols h2 { font-family: var(--font-mono); font-size: .66rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.footer__cols a { display: block; padding: 4px 0; color: var(--ink-2); text-decoration: none; font-size: .94rem; transition: color .3s; }
.footer__cols a:hover { color: var(--ink); }
.footer__cols p { color: var(--ink-2); font-size: .94rem; margin-top: 6px; }
.footer__base { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--text-3); }
.footer__up { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.motion-toggle { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-size: .82rem; cursor: pointer; }
.motion-toggle:hover { color: var(--ink); border-color: var(--line-2); }
.motion-toggle[aria-pressed="true"] { color: var(--ink); border-color: var(--accent); }
.menu__foot .motion-toggle { align-self: flex-start; margin-top: 10px; color: #A3AFC2; border-color: rgba(237, 242, 250, .16); }

/* ---------- Reveal ---------- */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal-ready [data-reveal].is-in, .reveal-ready [data-reveal]:focus-within { opacity: 1; transform: none; }
.reduced [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  .ruler { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 8px; }
}
@media (max-width: 1100px) {
  .nav__links a { padding: 8px 10px; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roi { grid-template-columns: 1fr 1fr; }
  .roi__intro { grid-column: 1 / -1; }
  .ruler { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 8px; }
}
@media (max-width: 900px) {
  :root { --nav-h: 68px; }
  .clouds { height: 180vh; }
  .nav { height: 56px; padding: 0 6px 0 16px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: grid; }
  .alt { display: none; }
  .alt-chip { display: inline-flex; }
  .hero__inner { grid-template-columns: 1fr; grid-template-areas: "chip" "title" "foot" "flight"; }
  .hero__flight { flex-direction: row; justify-content: space-between; align-items: flex-end; margin-top: 36px; }
  .hero__readout { justify-items: start; }
  .section-head--split { grid-template-columns: 1fr; }
  .eco { grid-template-columns: minmax(0, 1fr); }
  .eco__stage { max-width: 520px; }
  .eco__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 22px; padding: 2px var(--gutter); scroll-snap-type: x proximity; }
  .eco__tabs::-webkit-scrollbar { display: none; }
  .eco__tabs button { flex: none; scroll-snap-align: start; }
  .consult__grid { grid-template-columns: 1fr; gap: 0; }
  /* the visual stays pinned under the nav while the four steps scroll beneath it */
  .consult__visual { order: -1; position: sticky; top: calc(var(--nav-h) + 2px); z-index: 2; padding-bottom: 18px; margin: 0 calc(var(--gutter) * -1); background: linear-gradient(#0A1426 calc(100% - 18px), rgba(10, 20, 38, 0)); }
  /* cover the strip above the pinned visual too, so scrolled text never shows around the nav pill */
  #consulting .section-head { margin-bottom: calc(var(--nav-h) + 24px); }
  .consult__visual::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: calc(var(--nav-h) + 2px); background: #0A1426; }
  .consult__stage { position: relative; top: 0; width: min(100%, 44svh, 520px); margin: 0 auto; }
  .consult__steps li { padding: 32px 0 32px 56px; opacity: 1; }
  .consult__n { top: 37px; }
  .offers { grid-template-columns: 1fr; }
  .sol, .sol--half { grid-column: span 12; }
  .sol--wide { grid-template-columns: 1fr; gap: 0; padding: 28px 26px; }
  .sol--wide .sol__glyph { width: 64px; height: 64px; margin-bottom: 26px; }
  .studio { grid-template-columns: 1fr; gap: 28px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div { padding-bottom: 28px; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > div { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 24px; padding: 2px var(--gutter); }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; }
  .ruler { grid-template-columns: 1fr 1fr; border-top: 0; column-gap: 16px; }
  .ruler a { min-height: 0; flex-direction: row; align-items: baseline; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
  .ruler a::before { display: none; }
  .ruler i { margin: 0 0 0 auto; display: none; }
  .pillars, .principles, .roi { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__readout strong { font-size: 1.8rem; }
  .stage__hint { right: 2px; bottom: 2px; gap: 6px; min-height: 32px; padding: 5px 10px 5px 8px; font-size: .62rem; letter-spacing: .08em; }
  .stage__hint .ico { width: 12px; height: 12px; }
}
/* Short laptop screens (pinned layout between 680 and 820 px tall): tighter rhythm so the copy column fits */
@media (min-width: 901px) and (max-height: 820px) {
  .mode-pin .era__pin { padding-top: calc(var(--nav-h) + 2px); padding-bottom: 12px; }
  .mode-pin .era__title { font-size: clamp(1.8rem, 5.2vh, 3.1rem); margin-bottom: 1rem; }
  .mode-pin .era__meta { margin-bottom: 1rem; }
  .mode-pin .era__body { font-size: .95rem; line-height: 1.55; }
  .mode-pin .era__track { margin: .9rem 0 .8rem; }
  .mode-pin .era__bridge { padding-top: .8rem; font-size: .88rem; }
}
@media (min-width: 901px) and (max-height: 760px) {
  .hero { padding-top: calc(var(--nav-h) + 20px); }
  .hero__title { font-size: clamp(3rem, 13vh, 8.25rem); margin-bottom: 24px; }
  .hero__chip { margin-bottom: 18px; }
  .hero__lead { font-size: 1rem; line-height: 1.5; }
  .hero__foot { gap: 20px; }
}
/* Tablets: two-column platform cards */
@media (min-width: 641px) and (max-width: 900px) {
  .offers, .studio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .sol, .sol--half { grid-column: span 6; }
  .sol--wide { grid-column: span 12; }
}
@media (max-width: 900px) {
  .eco__tabs { scroll-padding-inline: var(--gutter); }
  .stage__hint { font-size: .62rem; }
}
/* Landscape phones: copy beside a stage that fits the screen; compact chrome */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --nav-h: 56px; }
  .nav { top: 8px; height: 48px; }
  .alt-chip { display: none !important; }
  .era { padding: 32px 0; }
  .era__pin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 24px; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
  /* the stage stays pinned beside the copy while its story plays */
  .era__stage { position: sticky; top: 60px; align-self: start; width: min(100%, calc((100svh - 72px) * 4 / 3)); }
  .era__copy { align-self: start; }
  .eco__stage { max-width: min(520px, calc(100svh - 80px)); }
  .consult__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .consult__visual { order: 0; grid-column: 2; grid-row: 1; position: sticky; top: 60px; align-self: start; margin: 0; padding: 0; background: none; }
  .consult__visual::before { display: none; }
  .consult__stage { width: min(100%, calc(100svh - 76px)); }
  .consult__steps { grid-column: 1; grid-row: 1; }
  .hero { min-height: 0; padding-top: 88px; }
  .menu { padding-top: 72px; }
  .menu__links { margin-top: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .menu__links a { font-size: 1.6rem; }
  .container, .hero__inner { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
}
/* Touch: comfortable targets and room for focus rings inside horizontal scrollers */
@media (pointer: coarse) {
  .filters button, .eco__tabs button, .tabs-pause { min-height: 44px; display: inline-flex; align-items: center; }
  .form__interest span { padding: 11px 14px; }
  .footer__cols a { padding: 9px 0; }
  .range input { height: 36px; }
  .range input::-webkit-slider-thumb { width: 26px; height: 26px; margin-top: -11.5px; }
  .nav__links a { padding: 10px 14px; }
}
.filters, .eco__tabs { padding-top: 6px; padding-bottom: 6px; }
@media (max-width: 640px) { .roi__result .btn { width: 100%; } }

/* Without JavaScript: every section readable, no empty animation boxes */
html:not(.js) .journey [data-tone="dark"], html:not(.js) .ai, html:not(.js) .consult { background: #0A1426; }
html:not(.js) .era__stage, html:not(.js) .eco__stage, html:not(.js) .consult__stage, html:not(.js) .hero__stage, html:not(.js) .clouds__stage { display: none; }
html:not(.js) .clouds { height: auto; padding: 24vh 0; }
html:not(.js) .clouds__pin { position: relative; height: auto; }
html:not(.js) .clouds__line { opacity: 1; transform: none; }
html:not(.js) .consult__steps li { opacity: 1; }
html:not(.js) .eco__tabs, html:not(.js) .eco__hint { display: none; }
html:not(.js) .eco__panels { display: grid; gap: 12px; }
html:not(.js) .eco__item { grid-area: auto; }
html:not(.js) .nav__toggle { display: none; }
@media (max-width: 900px) {
  html:not(.js) .nav__links { display: flex; overflow-x: auto; margin: 0; gap: 0; }
  html:not(.js) .nav__links a { padding: 8px; font-size: .84rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .pa-intro .hero__title .w, .pa-intro .hero__chip, .pa-intro .hero__foot, .pa-intro .hero__flight { opacity: 1; transform: none; filter: none; }
}
