/* ==========================================================================
   AA Scales · styles
   Eclipse: near-black, midnight purple and navy. Still, twinkling stars; a planet horizon under the hero.
   ========================================================================== */

:root {
  color-scheme: dark;
  /* Eclipse palette (chosen Sep 2026): near-black, midnight purple, navy. Every color on the page comes from these tokens. */
  --bg: #030206;
  --space-top: #110a22;
  --ink: #ede9f7;       --ink-rgb: 237 233 247;
  --ink-2: #aaa4c3;
  --ink-3: #6c6689;
  --line: rgb(170 150 230 / .12);
  --line-2: rgb(170 150 230 / .22);
  --glass: rgb(13 9 24 / .66);
  --glass-2: rgb(22 15 40 / .86);
  --panel: #0a0714;     --panel-hi: #221a3e;
  --chip-bg: rgb(7 5 14 / .9);
  --nav-bg: rgb(3 2 6 / .74);
  --band: rgb(3 2 6 / .5);
  --you-bg: rgb(30 20 60 / .96);
  --scroll: #231a40;
  --a1: #8c6fe0;        --a1-rgb: 140 111 224;   --a1-soft: #c9b9f5;
  --a2: #5d73cf;        --a2-rgb: 93 115 207;    --a2-soft: #aebbf0;
  --grad: linear-gradient(100deg, #f1ecff 0%, #c6b4f4 42%, #8466d9 100%);
  --grad-border: linear-gradient(140deg, rgb(241 236 255 / .75), rgb(140 111 224 / .4) 45%, rgb(93 115 207 / .7));
  --on-accent: #07040f;
  --logo-1: #f4f0ff;    --logo-2: #bba6f2;       --logo-3: #7b5ed6;
  --neb-1: rgb(52 24 104 / .30);  --neb-2: rgb(12 16 56 / .35);  --neb-3: rgb(40 14 80 / .22);  --neb-4: rgb(20 20 70 / 0);
  --star-tints: 255,255,255|236,228,255|215,200,250;
  --star-alpha: .75;
  --hud: none;          /* "block" shows a faint navigation grid */
  --horizon: block;      /* "block" shows the eclipse horizon under the hero */
  --gold: #ffd27a;
  --good: #5ef0a8;
  --radius: 22px;
  --wrap: 1180px;
  --f-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-label: "Michroma", "Manrope", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --nav-h: 72px;
}

/* ---------- alternate palettes (preview any with ?palette=midnight|mission|chrome) ---------- */
/* 1 · Midnight: navy-black, a haze of midnight purple, ice-silver accents */
:root[data-palette="midnight"] {
  --bg: #03050d; --space-top: #0b1330;
  --ink: #e8ecf8; --ink-rgb: 232 236 248; --ink-2: #a3acc6; --ink-3: #66708f;
  --line: rgb(140 160 215 / .12); --line-2: rgb(140 160 215 / .22);
  --glass: rgb(9 14 32 / .66); --glass-2: rgb(15 21 46 / .86);
  --panel: #070b1a; --panel-hi: #1a2344; --chip-bg: rgb(5 8 20 / .9);
  --nav-bg: rgb(3 5 13 / .74); --band: rgb(3 5 13 / .5); --you-bg: rgb(18 26 58 / .96); --scroll: #1c2546;
  --a1: #7d93dc; --a1-rgb: 125 147 220; --a1-soft: #b8c6ef;
  --a2: #8a78d4; --a2-rgb: 138 120 212; --a2-soft: #c2b7ee;
  --grad: linear-gradient(100deg, #f1f4ff 0%, #b8c6ef 45%, #7d8fd6 100%);
  --grad-border: linear-gradient(140deg, rgb(241 244 255 / .7), rgb(125 147 220 / .35) 45%, rgb(138 120 212 / .7));
  --on-accent: #050814;
  --logo-1: #f3f5ff; --logo-2: #aebde9; --logo-3: #6f82cc;
  --neb-1: rgb(46 28 104 / .34); --neb-2: rgb(10 30 86 / .42); --neb-3: rgb(34 18 76 / .30); --neb-4: rgb(16 40 96 / .22);
  --star-tints: 255,255,255|226,232,255|200,212,245|214,205,245; --star-alpha: .8;
}
/* 3 · Mission Control: deep navy, electric-blue signal, a faint navigation grid */
:root[data-palette="mission"] {
  --bg: #020713; --space-top: #071a3c;
  --ink: #e6eeff; --ink-rgb: 230 238 255; --ink-2: #9fb0d4; --ink-3: #5f7099;
  --line: rgb(90 140 255 / .13); --line-2: rgb(90 140 255 / .24);
  --glass: rgb(6 14 34 / .68); --glass-2: rgb(10 22 52 / .88);
  --panel: #050c1f; --panel-hi: #122650; --chip-bg: rgb(3 8 20 / .9);
  --nav-bg: rgb(2 7 19 / .74); --band: rgb(2 7 19 / .5); --you-bg: rgb(10 30 78 / .96); --scroll: #12254d;
  --a1: #3f7bff; --a1-rgb: 63 123 255; --a1-soft: #9dbdff;
  --a2: #7a66e0; --a2-rgb: 122 102 224; --a2-soft: #bdb2f5;
  --grad: linear-gradient(100deg, #eaf1ff 0%, #93b5ff 42%, #3f73ff 100%);
  --grad-border: linear-gradient(140deg, rgb(234 241 255 / .7), rgb(63 123 255 / .45) 45%, rgb(122 102 224 / .7));
  --on-accent: #020713;
  --logo-1: #f0f5ff; --logo-2: #8fb0ff; --logo-3: #336af5;
  --neb-1: rgb(12 40 110 / .34); --neb-2: rgb(28 18 80 / .30); --neb-3: rgb(8 30 80 / .26); --neb-4: rgb(30 80 200 / .12);
  --star-tints: 255,255,255|210,225,255|170,200,255; --star-alpha: .7;
  --hud: block;
}
/* 4 · Black Chrome: true black, chrome-silver accents, navy and purple only in the shadows */
:root[data-palette="chrome"] {
  --bg: #020204; --space-top: #0a0d20;
  --ink: #f2f3f7; --ink-rgb: 242 243 247; --ink-2: #a9adbd; --ink-3: #6b7084;
  --line: rgb(200 205 225 / .10); --line-2: rgb(200 205 225 / .20);
  --glass: rgb(12 13 20 / .7); --glass-2: rgb(20 22 34 / .88);
  --panel: #0a0b12; --panel-hi: #23263a; --chip-bg: rgb(6 6 10 / .9);
  --nav-bg: rgb(2 2 4 / .76); --band: rgb(2 2 4 / .55); --you-bg: rgb(26 28 44 / .96); --scroll: #22253a;
  --a1: #b9c0d6; --a1-rgb: 185 192 214; --a1-soft: #e6e9f2;
  --a2: #6c63b8; --a2-rgb: 108 99 184; --a2-soft: #b3adeb;
  --grad: linear-gradient(100deg, #ffffff 0%, #d3d8e6 38%, #7f879f 100%);
  --grad-border: linear-gradient(140deg, rgb(255 255 255 / .7), rgb(185 192 214 / .25) 45%, rgb(108 99 184 / .6));
  --on-accent: #06070c;
  --logo-1: #ffffff; --logo-2: #cdd2e2; --logo-3: #767e98;
  --neb-1: rgb(34 22 76 / .26); --neb-2: rgb(8 18 56 / .32); --neb-3: rgb(22 14 50 / .20); --neb-4: rgb(0 0 0 / 0);
  --star-tints: 255,255,255|235,238,245; --star-alpha: .7;
}
.glow-flood { flood-color: var(--a1); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); scrollbar-color: var(--scroll) var(--bg); overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: rgb(var(--a1-rgb) / .45); color: #fff; }
:focus-visible { outline: 2px solid var(--a2); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:focus { top: 16px; }

.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wrap { width: min(var(--wrap), 100% - 48px); margin: 0 auto; }

/* ---------- the space layer ---------- */
.space { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, var(--space-top) 0%, var(--bg) 60%); }
.nebula { position: absolute; inset: -20% -10%; will-change: transform; }
.nebula i { position: absolute; border-radius: 50%; opacity: .9; animation: drift 38s ease-in-out infinite alternate; }
.nebula .n1 { width: 62vmax; height: 62vmax; left: -8%; top: -12%; background: radial-gradient(closest-side, var(--neb-1), transparent); }
.nebula .n2 { width: 58vmax; height: 58vmax; right: -14%; top: 8%; background: radial-gradient(closest-side, var(--neb-2), transparent); animation-duration: 46s; animation-delay: -12s; }
.nebula .n3 { width: 50vmax; height: 50vmax; left: 22%; top: 48%; background: radial-gradient(closest-side, var(--neb-3), transparent); animation-duration: 52s; animation-delay: -20s; }
.nebula .n4 { width: 34vmax; height: 34vmax; right: 12%; top: 62%; background: radial-gradient(closest-side, var(--neb-4), transparent); animation-duration: 40s; animation-delay: -6s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(4vw, 3vh, 0) scale(1.12); } }
#stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.space::after { content: ""; position: absolute; inset: 0; display: var(--hud); background-image: linear-gradient(rgb(var(--a1-rgb) / .07) 1px, transparent 1px), linear-gradient(90deg, rgb(var(--a1-rgb) / .07) 1px, transparent 1px); background-size: 76px 76px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 10%, transparent 75%); }
.hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: -12%; height: 58%; z-index: -1; pointer-events: none; display: var(--horizon); background: radial-gradient(ellipse 88% 100% at 50% 118%, var(--bg) 58%, rgb(var(--a1-rgb) / .75) 59.2%, rgb(var(--a1-rgb) / .28) 61.5%, rgb(var(--a2-rgb) / .08) 67%, transparent 74%); }
.grain { position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay; 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%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

main, .footer { position: relative; } /* no z-index: the hero logo must be able to rise above the nav */

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font: 700 15px/1 var(--f-body); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s, border-color .3s, color .3s; overflow: hidden;
}
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-glow { background: var(--grad); color: var(--on-accent); box-shadow: 0 10px 34px -6px rgb(var(--a1-rgb) / .6), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-glow::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); transition: left .7s var(--ease); }
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -6px rgb(var(--a1-rgb) / .8), 0 0 0 1px rgba(255, 255, 255, .2), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-glow:hover::after { left: 130%; }
.btn-ghost { background: rgba(255, 255, 255, .035); border-color: var(--line-2); color: var(--ink); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--a1-soft); background: rgb(var(--a1-rgb) / .1); transform: translateY(-2px); }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn.is-off { opacity: .5; filter: saturate(.3); pointer-events: none; box-shadow: none; }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px; font: 400 11.5px/1.4 var(--f-label); letter-spacing: .26em; text-transform: uppercase; color: var(--a1-soft); }
.eyebrow::before { content: ""; width: 9px; height: 9px; background: var(--a2); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); box-shadow: 0 0 10px var(--a2); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  display: flex; align-items: center; gap: 28px; padding: env(safe-area-inset-top, 0px) max(24px, calc((100vw - 1320px) / 2)) 0;
  transition: background-color .4s, border-color .4s, backdrop-filter .4s, opacity .8s var(--ease), transform .8s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: var(--nav-bg); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.nav-logo { display: block; width: 168px; flex: none; opacity: 0; transition: opacity .35s; }
.nav-logo.show { opacity: 1; }
.nav-logo img { width: 100%; height: auto; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { position: relative; padding: 8px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: color .25s, background-color .25s; }
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--a2); box-shadow: 0 0 8px var(--a2); }
.nav-burger { display: none; width: 44px; height: 44px; margin-left: auto; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); cursor: pointer; position: relative; }
.nav-burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease); }
.nav-burger span:first-child { top: 17px; } .nav-burger span:last-child { top: 25px; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
/* EN / ES switch (i18n.js) */
.lang { display: inline-flex; flex: none; margin-right: -12px; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); }
.lang button { min-width: 36px; height: 30px; padding: 0 9px; border: 0; border-radius: 999px; background: none; font: 600 12px/1 var(--f-mono); letter-spacing: .08em; color: var(--ink-3); cursor: pointer; transition: color .25s, background-color .25s; }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { color: var(--on-accent); background: var(--grad); }
.menu { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; background: var(--bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); opacity: 0; transition: opacity .35s; }
.menu.open { opacity: 1; }
.menu nav { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.menu nav a:not(.btn) { font: 500 26px/1.4 var(--f-display); text-decoration: none; color: var(--ink); padding: 6px 12px; }
.menu .btn { margin-top: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: calc(var(--nav-h) + 24px) 20px 110px; text-align: center; }
.hero-inner { width: 100%; display: flex; flex-direction: column; align-items: center; }
.hero-eyebrow { margin-bottom: 8px; }
.hero-logo-wrap { width: min(1000px, 92vw); margin: 0 auto 10px; transform-origin: 0 0; will-change: transform; position: relative; z-index: 70; }
.hero-logo { width: 100%; height: auto; overflow: visible; }
.hero-logo .glyph { stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.lg-a1 .glyph { fill: url(#hl-grad); stroke: url(#hl-grad); }
.lg-a2 .glyph { fill: var(--ink); stroke: var(--ink); }
.hero-logo .glyph { fill-opacity: 1; stroke-opacity: 0; transition: fill-opacity .6s var(--ease), stroke-opacity .7s var(--ease); }
.lg-word { fill: var(--ink); }
.lg-word .letter { transition: opacity .5s var(--ease), transform .65s var(--ease), filter .5s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.lg-shine { opacity: 0; }
.pen { opacity: 0; transition: opacity .12s; } /* glowing tip is a radial gradient: no filter to recompute every frame */
.shine .lg-shine { animation: shine 1.6s var(--ease) forwards; }
@keyframes shine { 0% { opacity: 1; transform: translateX(0); } 100% { opacity: 1; transform: translateX(560px); } }
/* logo variants: only the one named by data-logo on <html> shows (autograph | sketch1 … sketch4) */
.hero-logo[data-variant] { display: none; }
[data-logo="autograph"] .hero-logo[data-variant="autograph"], [data-logo="sketch1"] .hero-logo[data-variant="sketch1"],
[data-logo="sketch2"] .hero-logo[data-variant="sketch2"], [data-logo="sketch3"] .hero-logo[data-variant="sketch3"],
[data-logo="sketch4"] .hero-logo[data-variant="sketch4"] { display: block; }
/* hand-drawn marks: each tone is revealed through a mask of its stroke centerlines, drawn one by one by main.js */
.sketch-logo .tone-ink { fill: var(--ink); }
.sketch-logo .mk { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.sketch-logo:not(.drawing) .tone { mask: none; }                  /* masks only matter while drawing */
.intro .sketch-logo .mk { stroke-dashoffset: 1; }
.intro .sketch-logo:not(.drawing):not(.drawn) .tone { opacity: 0; } /* nothing shows before the pen starts */
.sketch-logo .tone-glow { transition: opacity .7s ease; }
.intro .sketch-logo:not(.drawn) .tone-glow { opacity: 0; }        /* the glow blooms once the ink is down */

/* ---------- opening effects (one shows, chosen by data-intro on <html>) ---------- */
.hero-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-fx > * { display: none; }
[data-intro="sunrise"] .fx-sunrise, [data-intro="constellation"] .fx-constellation, [data-intro="aurora"] .fx-aurora { display: block; }
/* sunrise: light spills up from the planet rim, with a bright "diamond ring" flare where the rim peaks */
.fx-sunrise { position: absolute; inset: 0; }
.dawn { position: absolute; left: 50%; bottom: -12%; width: 130%; height: 100%; transform: translateX(-50%); background: radial-gradient(ellipse 46% 58% at 50% 100%, rgb(var(--a1-rgb) / .36), rgb(var(--a2-rgb) / .12) 48%, transparent 72%); opacity: .6; }
.flare { position: absolute; left: 50%; top: 88.1%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 3px rgb(255 255 255 / .9), 0 0 36px 10px rgb(var(--a1-rgb) / .75), 0 0 110px 36px rgb(var(--a1-rgb) / .3); opacity: .5; }
.flare::before { content: ""; position: absolute; left: 50%; top: 50%; width: 46vw; height: 2px; transform: translate(-50%, -50%); background: linear-gradient(90deg, transparent, rgb(255 255 255 / .65), transparent); }
/* constellation: stars link into a rising growth line, then settle faintly behind the hero */
.fx-constellation { position: absolute; inset: 0; opacity: .3; }
.fx-constellation svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fx-constellation path { fill: none; stroke: rgb(var(--ink-rgb) / .55); stroke-width: 1.2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.fx-constellation i { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 10px 2px rgb(var(--a1-rgb) / .8); }
.fx-constellation i.goal { width: 11px; height: 11px; margin: -5.5px; box-shadow: 0 0 18px 5px rgb(var(--a1-rgb) / .9), 0 0 0 7px rgb(var(--a1-rgb) / .14); }
/* aurora: WebGL ribbons (main.js), screen-blended so black stays see-through */
.fx-aurora { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; -webkit-mask-image: linear-gradient(#000 50%, transparent 90%); mask-image: linear-gradient(#000 50%, transparent 90%); }

.intro .hero::before { animation: rimFade 2.4s .2s ease both; }
@keyframes rimFade { from { opacity: 0; } to { opacity: 1; } }
.intro[data-intro="sunrise"] .hero::before { animation: rimRise 2.9s .1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rimRise { from { opacity: 0; transform: translateY(14%); } to { opacity: 1; transform: none; } }
.intro[data-intro="sunrise"] .dawn { animation: dawn 3.4s .2s ease-out both; }
@keyframes dawn { 0% { opacity: 0; transform: translateX(-50%) translateY(12%) scale(.8); } 45% { opacity: 1.6; transform: translateX(-50%) translateY(2%) scale(1.05); } 100% { opacity: .6; transform: translateX(-50%); } }
.intro[data-intro="sunrise"] .flare { animation: flare 3.3s .25s ease-out both; }
@keyframes flare { 0% { opacity: 0; transform: translateY(72px) scale(.3); } 42% { opacity: 1; transform: translateY(10px) scale(2.6); } 100% { opacity: .5; transform: none; } }
.intro[data-intro="constellation"] .fx-constellation { animation: cDim 4.2s both; }
@keyframes cDim { 0%, 58% { opacity: 1; } 100% { opacity: .3; } }
.intro[data-intro="constellation"] .fx-constellation path { animation: cDraw 1.9s .15s cubic-bezier(.45, 0, .2, 1) both; }
@keyframes cDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.intro[data-intro="constellation"] .fx-constellation i { animation: cPop .6s both; animation-delay: calc(.15s + var(--i) * .17s); }
@keyframes cPop { 0% { opacity: 0; transform: scale(0); } 60% { opacity: 1; transform: scale(1.9); } 100% { opacity: 1; transform: scale(1); } }

/* ---------- theme scenes: a real photo or film behind the hero (preview with ?scene= or #himalaya #summit #fuji #koi; placed by scenes.js) ----------
   Photos (Unsplash license): Himalaya, Ama Dablam at dawn, by Dylan Shaw · Summit, peaks above Dingboche, Nepal, by Kerensa Pickett ·
   Fuji, Lake Kawaguchi at night, by Takashi Miyazaki. Koi film (Pexels license): video 18401105, looped with a 1s cross-fade.
   Each palette is sampled from its photo. */
[data-scene] { --horizon: none; }
[data-scene] .hero-fx { overflow: hidden; }
[data-scene] .hero-fx > .scene { display: block; }
.scene { position: absolute; inset: 0; background: var(--scene-sky); will-change: transform; }
.scene-img, .scene-vid { position: absolute; max-width: none; opacity: 0; transition: opacity 1.6s ease, transform 3.2s cubic-bezier(.2, .7, .2, 1); }
.scene-img { -webkit-mask-image: linear-gradient(transparent, #000 14%); mask-image: linear-gradient(transparent, #000 14%); transform: scale(1.05); transform-origin: 50% 70%; }
.scene-img.free { -webkit-mask-image: linear-gradient(90deg, transparent, #000 26%), linear-gradient(transparent, #000 14%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 26%), linear-gradient(transparent, #000 14%); mask-composite: intersect; }
.scene-vid { inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.scene-img:not([src]), .scene-vid:not([poster]) { display: none; }
.scene.on .scene-img, .scene.on .scene-vid { opacity: 1; transform: none; }
.scene-stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 2.4s ease .4s; }
.scene.on .scene-stars { opacity: 1; }
.scene-shade { position: absolute; inset: 0; background: radial-gradient(ellipse 62% 50% at 48% 50%, rgb(var(--veil-rgb) / var(--veil, .4)), rgb(var(--veil-rgb) / calc(var(--veil, .4) * .45)) 60%, transparent 100%), var(--scene-shade, none); } /* a wide, soft veil behind the words (a tight one reads as a smudge on a smooth sky) */
.scene-shade::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24%; background: linear-gradient(transparent, var(--bg)); }
[data-scene] #stars { opacity: 0; }
[data-scene="summit"] #stars { opacity: 1; }   /* the main theme: little twinkling stars down the whole page */
[data-scene="summit"] .nav-logo img, [data-scene="summit"] .foot-logo { filter: grayscale(1) brightness(1.55) contrast(1.05); }   /* the logo files are amethyst; Summit is silver */
[data-scene] .hero-sub { color: var(--ink); opacity: .86; text-shadow: 0 1px 16px rgb(var(--veil-rgb) / .7); }
[data-scene] .hero-eyebrow, [data-scene] .hero-title { text-shadow: 0 2px 22px rgb(var(--veil-rgb) / .55); }

/* Himalaya: a twilight-blue sky over black ridges, a touch of dawn peach on the horizon */
:root[data-scene="himalaya"] {
  --bg: #03050b; --space-top: #0c1630;
  --ink: #eef2fb; --ink-rgb: 238 242 251; --ink-2: #b3bdd6; --ink-3: #6f7a98;
  --line: rgb(150 175 230 / .13); --line-2: rgb(150 175 230 / .24);
  --glass: rgb(8 13 28 / .68); --glass-2: rgb(14 22 44 / .88);
  --panel: #060a17; --panel-hi: #1a2646; --chip-bg: rgb(4 7 16 / .9);
  --nav-bg: rgb(3 5 11 / .74); --band: rgb(3 5 11 / .5); --you-bg: rgb(22 34 66 / .96); --scroll: #1d2a4c;
  --a1: #7f9be0; --a1-rgb: 127 155 224; --a1-soft: #c5d1ef;
  --a2: #e9b48f; --a2-rgb: 233 180 143; --a2-soft: #f5d6c0;
  --grad: linear-gradient(100deg, #f6f8ff 0%, #b4c6ee 48%, #e9b48f 100%);
  --grad-border: linear-gradient(140deg, rgb(246 248 255 / .7), rgb(127 155 224 / .4) 45%, rgb(233 180 143 / .6));
  --on-accent: #050813;
  --logo-1: #f6f8ff; --logo-2: #a9bde8; --logo-3: #6683c4;
  --neb-1: rgb(30 50 110 / .28); --neb-2: rgb(10 20 56 / .35); --neb-3: rgb(70 50 60 / .12); --neb-4: rgb(0 0 0 / 0);
  --star-tints: 255,255,255|226,234,255; --star-alpha: .6;
  --scene-sky: #2a3f76; --veil-rgb: 6 12 34; --veil: .58;
  --scene-shade: linear-gradient(rgb(6 12 34 / .34), rgb(6 12 34 / .26) 45%, rgb(6 12 34 / .12) 75%, rgb(6 12 34 / 0) 90%);
}
/* Summit: black-and-white granite and snow; graphite, silver and white */
:root[data-scene="summit"] {
  --bg: #0a0a0b; --space-top: #1a1a1c;
  --ink: #f3f3f4; --ink-rgb: 243 243 244; --ink-2: #b2b3b8; --ink-3: #727378;
  --line: rgb(220 222 228 / .11); --line-2: rgb(220 222 228 / .2);
  --glass: rgb(18 18 20 / .7); --glass-2: rgb(28 28 31 / .88);
  --panel: #111113; --panel-hi: #2a2a2e; --chip-bg: rgb(10 10 11 / .9);
  --nav-bg: rgb(10 10 11 / .76); --band: rgb(10 10 11 / .5); --you-bg: rgb(40 40 44 / .96); --scroll: #2a2a2e;
  --a1: #d3d5da; --a1-rgb: 211 213 218; --a1-soft: #eeeff2;
  --a2: #8d9098; --a2-rgb: 141 144 152; --a2-soft: #c6c8cd;
  --grad: linear-gradient(100deg, #ffffff 0%, #dcdee3 45%, #8d9098 100%);
  --grad-border: linear-gradient(140deg, rgb(255 255 255 / .7), rgb(211 213 218 / .25) 45%, rgb(141 144 152 / .6));
  --on-accent: #0a0a0b;
  --logo-1: #ffffff; --logo-2: #d4d6db; --logo-3: #868a93;
  --neb-1: rgb(60 60 64 / .2); --neb-2: rgb(30 30 34 / .3); --neb-3: rgb(50 50 54 / .14); --neb-4: rgb(0 0 0 / 0);
  --star-tints: 255,255,255|232,234,240|210,214,224; --star-alpha: .8;
  --scene-sky: #1c1c1c; --veil-rgb: 12 12 13; --veil: .3;
}
/* Fuji: an indigo night, violet haze over the lake, warm town lights */
:root[data-scene="fuji"] {
  --bg: #04051a; --space-top: #111746;
  --ink: #eef0ff; --ink-rgb: 238 240 255; --ink-2: #aeb3dc; --ink-3: #6b70a0;
  --line: rgb(150 155 240 / .13); --line-2: rgb(150 155 240 / .24);
  --glass: rgb(10 12 40 / .68); --glass-2: rgb(16 19 58 / .88);
  --panel: #070922; --panel-hi: #1c2160; --chip-bg: rgb(5 6 24 / .9);
  --nav-bg: rgb(4 5 26 / .74); --band: rgb(4 5 26 / .5); --you-bg: rgb(26 30 86 / .96); --scroll: #1e2360;
  --a1: #8e95f0; --a1-rgb: 142 149 240; --a1-soft: #c8ccfa;
  --a2: #ffc27a; --a2-rgb: 255 194 122; --a2-soft: #ffe1bd;
  --grad: linear-gradient(100deg, #f7f8ff 0%, #c8ccfa 45%, #8e95f0 100%);
  --grad-border: linear-gradient(140deg, rgb(247 248 255 / .7), rgb(142 149 240 / .4) 45%, rgb(255 194 122 / .55));
  --on-accent: #05061c;
  --logo-1: #f7f8ff; --logo-2: #b9bef7; --logo-3: #6a72e0;
  --neb-1: rgb(40 44 140 / .3); --neb-2: rgb(16 20 80 / .4); --neb-3: rgb(60 50 140 / .2); --neb-4: rgb(0 0 0 / 0);
  --star-tints: 255,255,255|226,230,255; --star-alpha: .7;
  --scene-sky: #10153f; --veil-rgb: 6 8 34; --veil: .3;
}
/* Koi: dark teal pond water, koi orange, red and cream */
:root[data-scene="koi"] {
  --bg: #020b0f; --space-top: #07181f;
  --ink: #f6efe8; --ink-rgb: 246 239 232; --ink-2: #bdb6af; --ink-3: #7a7570;
  --line: rgb(140 200 210 / .12); --line-2: rgb(140 200 210 / .22);
  --glass: rgb(4 16 21 / .7); --glass-2: rgb(8 26 33 / .88);
  --panel: #04131a; --panel-hi: #11303a; --chip-bg: rgb(2 11 15 / .9);
  --nav-bg: rgb(2 11 15 / .74); --band: rgb(2 11 15 / .5); --you-bg: rgb(12 40 48 / .96); --scroll: #12323c;
  --a1: #ff7a35; --a1-rgb: 255 122 53; --a1-soft: #ffc29e;
  --a2: #e8463a; --a2-rgb: 232 70 58; --a2-soft: #f6a49c;
  --grad: linear-gradient(100deg, #fff6ee 0%, #ffb684 42%, #ff6a2b 100%);
  --grad-border: linear-gradient(140deg, rgb(255 246 238 / .7), rgb(255 122 53 / .45) 45%, rgb(232 70 58 / .65));
  --on-accent: #1a0701;
  --logo-1: #fff6ee; --logo-2: #ffad78; --logo-3: #f0552a;
  --neb-1: rgb(10 50 60 / .3); --neb-2: rgb(4 30 40 / .35); --neb-3: rgb(60 20 10 / .12); --neb-4: rgb(0 0 0 / 0);
  --star-tints: 255,255,255; --star-alpha: .4;
  --scene-sky: #03121a; --veil-rgb: 2 12 16; --veil: .5;
  --scene-shade: linear-gradient(rgb(2 12 16 / .3), rgb(2 12 16 / .3));
}

/* intro start-state (only when JS runs the intro) */
.intro .hero-logo .glyph { fill-opacity: 0; stroke-opacity: 1; stroke-dashoffset: 1; }
.intro .lg-word .letter { opacity: 0; transform: translateY(14px); filter: blur(4px); }
.intro.i-word .lg-word .letter { opacity: 1; transform: none; filter: none; }
.hero .glyph.filled { fill-opacity: 1; stroke-opacity: 0; }

.hero-title { text-wrap: balance; margin: 6px 0 0; font: 500 clamp(28px, 4.4vw, 62px)/1.08 var(--f-display); letter-spacing: -.025em; }
.hero-title .w { display: inline-block; transition: opacity .65s var(--ease), transform .75s var(--ease), filter .65s var(--ease); }
.intro .hero-title .w { opacity: 0; transform: translateY(.45em); filter: blur(10px); }
.intro.i-title .hero-title .w { opacity: 1; transform: none; filter: none; }
.hero-title .w:nth-child(2) { transition-delay: .07s; } .hero-title .w:nth-child(3) { transition-delay: .14s; } .hero-title .w:nth-child(4) { transition-delay: .21s; }
.hero-sub { max-width: 610px; text-wrap: balance; margin: 22px auto 0; font-size: clamp(16px, 1.35vw, 18.5px); color: var(--ink-2); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
.reveal-intro { transition: opacity .75s var(--ease), transform .75s var(--ease); }
.intro .reveal-intro, .intro .nav { opacity: 0; transform: translateY(14px); }
.intro .nav { transform: translateY(-10px); }
.intro.i-ui .reveal-intro, .intro.i-ui .nav { opacity: 1; transform: none; }
.intro.i-ui .hero-sub { transition-delay: .1s; } .intro.i-ui .hero-ctas { transition-delay: .22s; } .intro.i-ui .scroll-cue { transition-delay: .5s; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; margin-left: -30px; width: 60px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; font: 400 10px/1 var(--f-label); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--a1-soft), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: -1px; width: 3px; height: 12px; border-radius: 2px; background: var(--a2); box-shadow: 0 0 8px var(--a2); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { from { top: -12px; } to { top: 46px; } }

/* ---------- ticker ---------- */
.ticker { position: relative; z-index: 2; border-block: 1px solid var(--line); background: var(--band); padding: 18px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker span { display: inline-flex; align-items: center; font: 400 12.5px/1 var(--f-label); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.ticker span::after { content: ""; width: 7px; height: 7px; margin: 0 34px; background: var(--a1); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- story (pinned) ---------- */
.story { position: relative; height: 340vh; }
.story-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(22px, 4vh, 44px); padding: calc(var(--nav-h) + 8px) 20px 36px; }
.story-lines { position: relative; width: min(1100px, 100%); font: 500 clamp(26px, 4.3vw, 62px)/1.06 var(--f-display); height: 2.25em; }
.story-line { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; text-align: center; font: inherit; letter-spacing: -.03em; text-wrap: balance; opacity: 0; transform: translateY(30px) scale(.98); filter: blur(10px); transition: opacity .3s, transform .45s var(--ease), filter .3s; }
.story-line.on { opacity: 1; transform: none; filter: none; transition: opacity .8s .22s var(--ease), transform .9s .22s var(--ease), filter .8s .22s var(--ease); }
.story-line.past { transform: translateY(-34px) scale(.98); }
.search-card { width: min(640px, 100%); padding: 14px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6), 0 0 80px -30px rgb(var(--a1-rgb) / .55); }
.search-bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .045); border: 1px solid var(--line); font-size: 17px; font-weight: 500; }
.search-bar .ico { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; }
.query { white-space: nowrap; }
.caret { width: 2px; height: 20px; background: var(--a2); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.search-meta { margin-left: auto; font: 400 11.5px/1 var(--f-mono); color: var(--ink-3); }
.serp { position: relative; height: 312px; margin-top: 10px; }
.skeleton { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(3, 60px); gap: 8px; transition: opacity .5s; }
.skeleton i { border-radius: 14px; background: linear-gradient(100deg, rgba(255,255,255,.025) 30%, rgba(255,255,255,.07) 50%, rgba(255,255,255,.025) 70%) 0 0 / 300% 100%; animation: shimmer 1.8s linear infinite; }
.skeleton i:nth-child(2) { opacity: .7; } .skeleton i:nth-child(3) { opacity: .45; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -200% 0; } }
.search-card:not([data-state="0"]) .skeleton { opacity: 0; }
.result {
  --slot: 0; position: absolute; left: 0; right: 0; top: calc(var(--slot) * 68px); height: 60px;
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; padding: 0 14px;
  border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid transparent;
  opacity: 0; transform: translateY(12px);
  transition: top .9s var(--ease), opacity .6s var(--ease), transform .6s var(--ease), background-color .6s, border-color .6s, box-shadow .6s, filter .6s;
}
.r-rank { font: 500 13px/1 var(--f-mono); color: var(--ink-3); text-align: center; }
.r-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.r-body b { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-meta { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stars { font-style: normal; color: var(--gold); letter-spacing: 1px; }
.r-actions { display: flex; gap: 6px; }
.r-actions i { font: normal 600 11.5px/1 var(--f-body); padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }
.r-badge { position: absolute; right: 12px; top: -10px; padding: 4px 9px; border-radius: 999px; background: var(--grad); color: var(--on-accent); font: 700 10.5px/1 var(--f-body); letter-spacing: .04em; text-transform: uppercase; opacity: 0; transform: scale(.8); transition: opacity .5s .5s, transform .5s .5s var(--ease); }
.page-two { position: absolute; left: 0; right: 0; top: calc(3 * 68px + 6px); display: flex; align-items: center; gap: 12px; font: 400 11px/1 var(--f-mono); letter-spacing: .06em; color: var(--ink-3); opacity: 0; transition: opacity .6s; }
.page-two::before, .page-two::after { content: ""; flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
/* states */
.search-card[data-state="1"] .result:not(.you), .search-card[data-state="2"] .result:not(.you), .search-card[data-state="3"] .result:not(.you) { opacity: 1; transform: none; }
.result[data-rank="1"] { --slot: 0; } .result[data-rank="2"] { --slot: 1; } .result[data-rank="3"] { --slot: 2; }
.result.you { --slot: 3.72; }
.search-card[data-state="2"] .page-two { opacity: 1; }
.search-card[data-state="2"] .result.you { opacity: .42; transform: none; filter: saturate(.3); }
.search-card[data-state="3"] .result.you { --slot: 0; opacity: 1; transform: none; background: linear-gradient(var(--you-bg), var(--you-bg)) padding-box, var(--grad) border-box; border-color: transparent; box-shadow: 0 0 40px -6px rgb(var(--a1-rgb) / .7); z-index: 2; }
.search-card[data-state="3"] .result.you .r-rank { color: var(--a2-soft); }
.r-rank i { font-style: normal; } .rk-hi { display: none; }
.search-card[data-state="3"] .rk-lo { display: none; } .search-card[data-state="3"] .rk-hi { display: inline; }
.search-card[data-state="3"] .result.you .r-badge { opacity: 1; transform: none; }
.search-card[data-state="3"] .result.you .call { background: var(--grad); color: var(--on-accent); border-color: transparent; animation: ring 1.6s 1s ease-in-out infinite; }
.search-card[data-state="3"] .result[data-rank="1"] { --slot: 1; } .search-card[data-state="3"] .result[data-rank="2"] { --slot: 2; }
.search-card[data-state="3"] .result[data-rank="3"] { --slot: 3; opacity: .35; }
.search-card[data-state="3"] .result:not(.you) .r-rank { visibility: hidden; }
@keyframes ring { 0%, 100% { transform: none; } 10%, 30% { transform: rotate(-6deg); } 20%, 40% { transform: rotate(6deg); } 50% { transform: none; } }
.story-progress { display: flex; gap: 8px; }
.story-progress i { width: 26px; height: 3px; border-radius: 3px; background: var(--line-2); transition: background-color .5s, width .5s var(--ease); }
.story-progress i.on { width: 44px; background: var(--grad); }

/* ---------- sections ---------- */
.section { padding: clamp(84px, 10vw, 136px) 0; }
.sec-head { max-width: 840px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.sec-head.left { text-align: left; margin-left: 0; }
.sec-head h2 { text-wrap: balance; margin: 0; font: 500 clamp(30px, 4.5vw, 58px)/1.07 var(--f-display); letter-spacing: -.028em; }
.lede { max-width: 620px; text-wrap: balance; margin: 18px auto 0; font-size: clamp(16px, 1.3vw, 18px); color: var(--ink-2); }
.sec-head.left .lede { margin-left: 0; }
.lede a { color: var(--a2-soft); }

.card { position: relative; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); isolation: isolate; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), rgb(var(--a1-rgb) / .16), transparent 60%); opacity: 0; transition: opacity .5s; }
.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--line-2); }

.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 24px; font-size: 15px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 10px; background: var(--grad); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.ticks b { color: var(--ink); }
.src { display: block; margin-top: 8px; font: 400 10.5px/1.4 var(--f-mono); letter-spacing: .04em; color: var(--ink-3); }

/* reveal on scroll (only when JS runs) */
.js [data-reveal] { opacity: 0; transform: translateY(30px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: var(--rd, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.svc { padding: 26px; display: flex; flex-direction: column; }
.svc-vis { position: relative; height: 190px; margin-bottom: 24px; border-radius: 16px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); overflow: hidden; }
.svc-num { margin: 0; font: 500 12px/1 var(--f-mono); color: var(--ink-3); }
.svc h3 { margin: 10px 0 4px; font: 500 25px/1.15 var(--f-display); letter-spacing: -.02em; }
.svc-hook { margin: 0 0 10px; font-weight: 700; color: var(--a2-soft); }
.svc > p { margin-top: 0; color: var(--ink-2); font-size: 15.5px; }
.svc-fact { margin: auto 0 0 !important; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px !important; }
.svc .ticks { margin-bottom: 22px; }
.svc-fact b { font: 500 20px/1 var(--f-display); margin-right: 6px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 05 · business cards: the wide card, with our own card (Summit style) flipping in 3D */
.svc-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.biz-copy > p { margin-top: 0; color: var(--ink-2); font-size: 15.5px; }
.biz-copy .ticks { margin-bottom: 0; }
.biz-wrap { display: grid; justify-items: center; gap: 14px; padding: 26px 10px 6px; border-radius: 16px; background: radial-gradient(70% 80% at 50% 40%, rgba(255, 255, 255, .05), transparent 70%); }
.biz { position: relative; container-type: inline-size; width: min(470px, 100%); aspect-ratio: 7 / 4; padding: 0; border: 0; background: none; cursor: pointer; perspective: 1400px; color: #f2f2f3; font: inherit; text-align: left; }
.biz-face { --u: .1905cqw; position: absolute; inset: 0; overflow: hidden; border-radius: calc(14 * var(--u)); backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform 1s cubic-bezier(.3, .7, .2, 1); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .09) inset; }
.biz-front { background: radial-gradient(1.2px 1.2px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 31% 9%, rgba(255,255,255,.8), transparent), radial-gradient(1.4px 1.4px at 47% 27%, #fff, transparent), radial-gradient(1px 1px at 63% 12%, rgba(255,255,255,.7), transparent), radial-gradient(1.2px 1.2px at 82% 22%, #fff, transparent), radial-gradient(1px 1px at 92% 8%, rgba(255,255,255,.75), transparent), radial-gradient(1px 1px at 22% 38%, rgba(255,255,255,.6), transparent), radial-gradient(1px 1px at 71% 34%, rgba(255,255,255,.6), transparent), linear-gradient(160deg, #1d1d1f, #0c0c0d 70%); }
.biz-back { transform: rotateY(180deg); background: linear-gradient(160deg, #19191b, #0b0b0c 75%); }
.biz.flipped .biz-front { transform: rotateY(-180deg); }
.biz.flipped .biz-back { transform: rotateY(0deg); }
.biz:focus-visible { outline-offset: 8px; }
.biz-peaks { position: absolute; right: -6%; bottom: -26%; width: 78%; max-width: none; filter: grayscale(1) contrast(1.05); -webkit-mask-image: linear-gradient(90deg, transparent, #000 34%), linear-gradient(transparent, #000 30%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 34%), linear-gradient(transparent, #000 30%); mask-composite: intersect; }
.biz-logo { position: absolute; left: 6%; top: 14%; width: 54%; height: auto; filter: grayscale(1) brightness(1.7) contrast(1.05); }   /* logo 4 in silver */
.biz-tag { position: absolute; left: 8.6%; top: 59%; font: 400 calc(9.5 * var(--u))/1 var(--f-label); letter-spacing: .24em; text-transform: uppercase; color: #c9cbd1; }
.biz-mark { position: absolute; right: 6%; top: 8%; width: 14%; height: auto; filter: grayscale(1) brightness(1.7) contrast(1.05); }
.biz-name { position: absolute; left: 8%; top: 17%; width: 70%; font: 500 calc(25 * var(--u))/1.1 var(--f-display); letter-spacing: -.02em; color: #fff; }
.biz-role { position: absolute; left: 8%; top: 36%; font: 400 calc(9 * var(--u))/1 var(--f-label); letter-spacing: .22em; text-transform: uppercase; color: #b9bbc2; }
.biz-lines { position: absolute; left: 8%; top: 52%; display: grid; gap: calc(7 * var(--u)); font: 500 calc(13 * var(--u))/1.2 var(--f-body); color: #e7e8ec; }
.biz-svcs { position: absolute; left: 8%; right: 8%; bottom: 10%; padding-top: calc(10 * var(--u)); border-top: 1px solid rgba(255, 255, 255, .14); font: 500 calc(9.5 * var(--u))/1 var(--f-mono); letter-spacing: .08em; color: #9a9ca4; }
.biz-note { margin: 0; font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

.book-call { margin: 26px 0 0; }

/* mini browser */
.mini-browser { position: absolute; left: 50%; top: 22px; width: 72%; margin-left: -36%; height: 150px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line-2); overflow: hidden; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6); }
.mb-bar { display: flex; align-items: center; gap: 4px; height: 18px; padding: 0 8px; background: rgba(255, 255, 255, .04); }
.mb-bar i { width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }
.mb-bar span { margin-left: 8px; width: 40%; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .06); }
.mb-hero { padding: 14px 14px 10px; display: grid; gap: 7px; }
.mb-hero b { height: 9px; border-radius: 5px; background: var(--grad); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease); }
.mb-hero b:first-child { width: 70%; } .mb-hero b:nth-child(2) { width: 46%; transition-delay: .15s; opacity: .7; }
.mb-hero em { width: 64px; height: 16px; border-radius: 999px; background: var(--a2); margin-top: 4px; opacity: 0; transform: translateY(6px); transition: opacity .6s .5s, transform .6s .5s var(--ease); }
.mb-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 4px 14px; }
.mb-row u { height: 34px; border-radius: 6px; background: rgb(var(--a1-rgb) / .16); opacity: 0; transform: translateY(8px); transition: opacity .6s, transform .6s var(--ease); }
.mb-row u:nth-child(1) { transition-delay: .7s; } .mb-row u:nth-child(2) { transition-delay: .82s; } .mb-row u:nth-child(3) { transition-delay: .94s; }
.in .mb-hero b { transform: scaleX(1); }
.in .mb-hero em, .in .mb-row u { opacity: 1; transform: none; }
.speed-chip, .ring-chip, .rank-chip, .bot-chip { position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; background: var(--chip-bg); border: 1px solid var(--line-2); font: 500 11px/1 var(--f-mono); color: var(--ink); }
.speed-chip { right: 12px; bottom: 12px; }
.speed-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); }
/* ads bars */
.bars { position: absolute; left: 18px; right: 18px; bottom: 16px; top: 44px; display: flex; align-items: flex-end; gap: 8px; }
.bars i { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--a2), rgb(var(--a1-rgb) / .45)); transform-origin: bottom; transform: scaleY(0); transition: transform 1s var(--ease); }
.bars i:nth-child(2) { transition-delay: .07s; } .bars i:nth-child(3) { transition-delay: .14s; } .bars i:nth-child(4) { transition-delay: .21s; } .bars i:nth-child(5) { transition-delay: .28s; } .bars i:nth-child(6) { transition-delay: .35s; } .bars i:nth-child(7) { transition-delay: .42s; } .bars i:nth-child(8) { transition-delay: .49s; box-shadow: 0 0 18px rgb(var(--a2-rgb) / .6); }
.in .bars i { transform: scaleY(1); }
.ring-chip { left: 12px; top: 12px; }
.ring-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--a2); box-shadow: 0 0 0 0 rgb(var(--a2-rgb) / .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgb(var(--a2-rgb) / 0); } 100% { box-shadow: 0 0 0 0 rgb(var(--a2-rgb) / 0); } }
/* map */
.map-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(circle at 50% 55%, #000 30%, transparent 80%); mask-image: radial-gradient(circle at 50% 55%, #000 30%, transparent 80%); }
.map-grid::after { content: ""; position: absolute; left: -10%; right: -10%; top: 58%; height: 10px; background: rgb(var(--a1-rgb) / .14); transform: rotate(-12deg); }
.pin { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); opacity: .6; }
.p1 { left: 22%; top: 30%; } .p2 { left: 70%; top: 26%; } .p3 { left: 30%; top: 70%; } .p4 { left: 80%; top: 64%; }
.pin.you { left: 52%; top: 44%; width: 16px; height: 16px; margin: -3px; background: var(--grad); opacity: 1; box-shadow: 0 0 0 0 rgb(var(--a1-rgb) / .6); transform: scale(0); transition: transform .8s .3s cubic-bezier(.3, 1.6, .5, 1); animation: pulse 2.2s 1.2s infinite; }
.pin.you b { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); padding: 4px 8px; border-radius: 8px; background: var(--ink); color: var(--bg); font: 700 11px/1 var(--f-body); }
.in .pin.you { transform: scale(1); }
.rank-chip { right: 12px; bottom: 12px; }
.rank-chip s { color: var(--ink-3); } .rank-chip b { color: var(--a2-soft); }
/* chatbot: a conversation that types itself, English then Spanish, on a 10s loop */
.vis-chat .chat { position: absolute; inset: 12px 14px 44px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.msg { max-width: 82%; margin: 0; padding: 6px 11px; border-radius: 14px; font-size: 12.5px; line-height: 1.35; opacity: 0; animation: 10s var(--ease) infinite both; }
.msg.you { align-self: flex-end; color: var(--ink); background: rgba(255, 255, 255, .08); border: 1px solid var(--line-2); border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; color: var(--on-accent); background: var(--grad); font-weight: 600; border-bottom-left-radius: 4px; }
.msg:nth-child(1) { animation-name: msg1; } .msg:nth-child(2) { animation-name: msg2; } .msg:nth-child(3) { animation-name: msg3; } .msg:nth-child(4) { animation-name: msg4; }
@keyframes msg1 { 0%, 2% { opacity: 0; transform: translateY(8px); } 6%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes msg2 { 0%, 14% { opacity: 0; transform: translateY(8px); } 18%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes msg3 { 0%, 34% { opacity: 0; transform: translateY(8px); } 38%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes msg4 { 0%, 48% { opacity: 0; transform: translateY(8px); } 52%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
.bot-chip { left: 12px; bottom: 12px; }
.bot-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); }

/* ---------- results ---------- */
.results-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: stretch; }
.dash { padding: 22px 22px 18px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dash-title { display: flex; align-items: center; gap: 10px; margin: 0; font: 400 12px/1.4 var(--f-label); letter-spacing: .16em; text-transform: uppercase; }
.dash-sub { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-3); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--a2); animation: pulse 2s infinite; }
.sample-tag { flex: none; padding: 6px 11px; border-radius: 999px; border: 1px dashed var(--line-2); font: 500 10.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--a1-soft); }
.dash-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0; }
.dash-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.dash-tabs button, .filters button { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--ink-2); transition: all .3s var(--ease); }
.dash-tabs button:hover, .filters button:hover { color: var(--ink); border-color: var(--line-2); }
.dash-tabs button[aria-selected="true"], .filters button[aria-selected="true"] { color: var(--ink); border-color: rgb(var(--a1-rgb) / .7); background: rgb(var(--a1-rgb) / .16); box-shadow: 0 0 22px -6px rgb(var(--a1-rgb) / .8); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); min-width: 0; }
.kpi span { display: block; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.kpi b { display: block; margin-top: 4px; font: 500 clamp(20px, 2.1vw, 27px)/1.1 var(--f-mono); font-variant-numeric: tabular-nums; }
.kpi em { display: block; min-height: 1.2em; margin-top: 3px; font: normal 600 12px/1.2 var(--f-mono); color: var(--good); }
.chart { position: relative; height: 270px; margin-top: 18px; }
.chart svg { width: 100%; height: 240px; overflow: visible; }
.chart .grid-lines line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 8px rgb(var(--a1-rgb) / .7)); }
.chart .base-line { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 5 6; opacity: .7; vector-effect: non-scaling-stroke; }
.chart .launch { stroke: var(--a1-soft); stroke-width: 1; stroke-dasharray: 3 5; opacity: .6; vector-effect: non-scaling-stroke; }
.chart-dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--a2-soft); box-shadow: 0 0 0 5px rgb(var(--a2-rgb) / .2), 0 0 22px var(--a2); left: 0; top: 0; }
.chart-dot span { position: absolute; right: 18px; bottom: 12px; padding: 6px 9px; border-radius: 9px; background: var(--chip-bg); border: 1px solid var(--line-2); font: 500 12px/1 var(--f-mono); white-space: nowrap; }
.chart-launch { position: absolute; top: -8px; padding: 3px 8px; border-radius: 6px; background: rgb(var(--a1-rgb) / .2); font: 500 10.5px/1 var(--f-mono); color: var(--a1-soft); transform: translateX(-50%); }
.chart-x { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; font: 400 11px/1 var(--f-mono); color: var(--ink-3); }
.chart-legend { display: flex; gap: 16px; font-size: 12px; color: var(--ink-3); }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.lg-before::before { content: ""; width: 16px; border-top: 1.5px dashed var(--ink-3); }
.lg-after::before { content: ""; width: 16px; height: 3px; border-radius: 3px; background: var(--grad); }
.dash-note { margin: 14px 0 0; font-size: 12.5px; color: var(--ink-3); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.fact { padding: 22px; display: flex; flex-direction: column; }
.fact p { margin: 14px 0 0; font-size: 14.5px; color: var(--ink-2); }
.fact .src { margin-top: auto; padding-top: 12px; }
.fact-ring { position: relative; width: 104px; height: 104px; }
.fact-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.fact-ring circle { fill: none; stroke: var(--line); stroke-width: 9; }
.fact-ring .val { stroke: var(--a1); stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.8s var(--ease); filter: drop-shadow(0 0 6px rgb(var(--a1-rgb) / .8)); }
.fact:nth-child(2) .fact-ring .val { stroke: var(--a2); filter: drop-shadow(0 0 6px rgb(var(--a2-rgb) / .8)); }
.fact.in .fact-ring .val { stroke-dasharray: var(--p) 100; }
.fact-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 500 24px/1 var(--f-display); }
.fact-big { display: flex; align-items: baseline; gap: 8px; min-height: 104px; }
.fact-big b { font: 500 58px/1 var(--f-display); letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact-big small { font: 400 12px/1 var(--f-mono); color: var(--ink-3); }

/* ---------- work ---------- */
.stage { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.devices { position: relative; padding: 0 7% 26px 0; }
.laptop-screen { padding: 10px 10px 12px; border-radius: 16px 16px 6px 6px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 70px -20px rgb(var(--a1-rgb) / .45); }
.screen-bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 6px 6px; }
.screen-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.screen-bar span { margin: 0 auto; padding: 4px 14px; border-radius: 999px; background: rgba(255, 255, 255, .05); font: 400 11px/1 var(--f-mono); color: var(--ink-3); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: #f4f1ea; }
.screen-view img { width: 100%; height: auto; will-change: transform; transition: opacity .35s; }
.screen-view img.scrolling { animation: shotscroll var(--dur, 18s) 1.2s ease-in-out infinite alternate; }
@keyframes shotscroll { 0%, 6% { transform: translateY(0); } 94%, 100% { transform: translateY(var(--dist, -60%)); } }
.laptop-base { position: relative; height: 16px; margin: 0 -7%; border-radius: 2px 2px 18px 18px; background: linear-gradient(var(--panel-hi), var(--panel) 70%); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7); }
.laptop-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 6px; margin-left: -8%; border-radius: 0 0 8px 8px; background: rgba(0, 0, 0, .35); }
.phone { position: absolute; right: 0; bottom: 0; width: 23%; aspect-ratio: 390 / 844; border-radius: 26px; padding: 5px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 40px -10px rgb(var(--a2-rgb) / .35); overflow: hidden; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 21px; transition: opacity .35s; }
.phone-notch { position: absolute; left: 50%; top: 10px; z-index: 2; width: 30%; height: 12px; margin-left: -15%; border-radius: 999px; background: var(--panel); }
.stage-info { min-width: 0; }
.stage-info > * { transition: opacity .35s, transform .45s var(--ease); }
.stage.switching .stage-info > *, .stage.switching .screen-view img, .stage.switching .phone img { opacity: 0; }
.stage.switching .stage-info > * { transform: translateY(8px); }
.stage-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.concept-tag, .style-tag { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; font: 500 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.concept-tag { color: var(--a1-soft); border: 1px solid rgb(var(--a1-rgb) / .5); background: rgb(var(--a1-rgb) / .1); }
.style-tag { color: var(--a2-soft); border: 1px solid rgb(var(--a2-rgb) / .4); background: rgb(var(--a2-rgb) / .08); }
.stage-info h3 { margin: 18px 0 8px; font: 500 clamp(28px, 3.3vw, 44px)/1.08 var(--f-display); letter-spacing: -.025em; }
.stage-where { margin: 0; font: 400 11.5px/1.5 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.stage-blurb { margin: 16px 0 26px; font-size: 16.5px; color: var(--ink-2); }
.stage-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.stage-count { margin-top: 26px; font: 400 13px/1 var(--f-mono); color: var(--ink-3); }
.stage-count b { color: var(--ink); font-weight: 500; }
.rail-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: clamp(46px, 6vw, 70px) 0 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.rail-arrows { display: flex; gap: 8px; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); cursor: pointer; transition: all .3s var(--ease); }
.round:hover { border-color: var(--a1-soft); background: rgb(var(--a1-rgb) / .14); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 232px; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: thin; scrollbar-color: var(--scroll) transparent; overscroll-behavior-x: contain; }
.rail-card { position: relative; scroll-snap-align: start; padding: 8px 8px 12px; text-align: left; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); cursor: pointer; transition: border-color .3s, transform .35s var(--ease), box-shadow .35s; overflow: hidden; }
.rail-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.rail-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 10px; }
.rail-card b { display: block; margin: 10px 4px 2px; font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-card span { display: block; margin: 0 4px; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-card[aria-current="true"] { border-color: rgb(var(--a1-rgb) / .8); box-shadow: 0 0 30px -8px rgb(var(--a1-rgb) / .8); }
.rail-card[aria-current="true"]::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }
.autoplay .rail-card[aria-current="true"]::after { animation: progress var(--auto, 8s) linear forwards; }
/* the one client vs the concept demos (shown as "Your Name Here") */
.concept-tag.is-client, .client-chip { color: var(--good); border: 1px solid rgb(94 240 168 / .45); background: rgb(94 240 168 / .08); }
.client-chip { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px; font: 500 9.5px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; font-style: normal; vertical-align: 2px; }
.stage-info h3.placeholder, .rail-card:not(.is-client) b { text-decoration: underline dashed rgb(var(--a1-rgb) / .55); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.rail-card:not(.is-client) b { text-decoration-thickness: 1px; }
@keyframes progress { to { transform: scaleX(1); } }
.rail-card[hidden] { display: none; }
.concept-note { margin: 18px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); }

/* ---------- process ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); padding-top: 64px; }
.constellation { position: absolute; left: 0; top: 0; width: 100%; height: 60px; overflow: visible; }
.constellation path { fill: none; stroke: rgb(var(--ink-rgb) / .3); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; transition: stroke-dashoffset 2.4s var(--ease); }
.steps.in .constellation path { stroke-dashoffset: 0; }
.step { position: relative; }
.step-star { position: absolute; left: 0; top: -58px; width: 22px; height: 22px; background: var(--grad); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); filter: drop-shadow(0 0 8px var(--a1)); }
.step:nth-of-type(2) .step-star { top: -44px; } .step:nth-of-type(3) .step-star { top: -52px; }
.step-num { margin: 0 0 12px; font: 400 11.5px/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: var(--a1-soft); }
.step h3 { margin: 0 0 10px; font: 500 23px/1.2 var(--f-display); letter-spacing: -.02em; }
.step p { margin: 0; color: var(--ink-2); }

/* ---------- packages ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.pkg { display: flex; flex-direction: column; padding: 30px 28px 28px; }
.pkg-name { margin: 0; font: 500 32px/1 var(--f-display); letter-spacing: -.03em; }
.pkg-for { margin: 12px 0 6px; color: var(--ink-2); min-height: 3.2em; }
.pkg .ticks { margin-bottom: 28px; }
.pkg .btn { margin-top: auto; }
.pkg.featured { background: linear-gradient(var(--glass-2), var(--glass-2)) padding-box, var(--grad-border) border-box; border-color: transparent; box-shadow: 0 30px 80px -30px rgb(var(--a1-rgb) / .8); transform: translateY(-10px); }
.js .pkg.featured[data-reveal].in { transform: translateY(-10px); }
.pkg-flag { position: absolute; top: -13px; right: 24px; padding: 7px 12px; border-radius: 999px; background: var(--grad); color: var(--on-accent); font: 700 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- faq ---------- */
.faq-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.faq .sec-head h2 { font-size: clamp(30px, 3.6vw, 48px); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { position: relative; list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-size: 17.5px; font-weight: 700; transition: color .25s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--a2-soft); }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 50%; width: 30px; height: 30px; margin-top: -15px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); font: 400 18px/1 var(--f-body); color: var(--a1-soft); transition: transform .35s var(--ease), background-color .3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); background: rgb(var(--a1-rgb) / .16); }
.faq-list details p { margin: -6px 0 22px; padding-right: 40px; color: var(--ink-2); }

/* ---------- contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.contact-copy h2 { margin: 0; font: 500 clamp(34px, 5vw, 64px)/1.04 var(--f-display); letter-spacing: -.03em; }
.contact-copy .lede { margin-left: 0; }
.ticks.big li { font-size: 16px; }
.direct { margin-top: 26px; color: var(--ink-3); font-size: 14.5px; }
.direct a { color: var(--a2-soft); word-break: break-all; }
.form { padding: clamp(20px, 3vw, 30px); }
.form-body { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field em { font-style: normal; font-weight: 500; color: var(--ink-3); }
.field input, .field textarea { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--ink); font: 500 15.5px/1.4 var(--f-body); transition: border-color .25s, box-shadow .25s, background-color .25s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--a1); background: rgb(var(--a1-rgb) / .06); box-shadow: 0 0 0 4px rgb(var(--a1-rgb) / .18); }
.field input[aria-invalid="true"] { border-color: #ff8fa8; }
.chips { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { padding: 0; margin-bottom: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 10px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); font-size: 14px; font-weight: 700; color: var(--ink-2); transition: all .25s var(--ease); }
.chips input:checked + span { color: var(--ink); border-color: rgb(var(--a1-rgb) / .8); background: rgb(var(--a1-rgb) / .2); box-shadow: 0 0 20px -6px rgb(var(--a1-rgb) / .9); }
.chips input:focus-visible + span { outline: 2px solid var(--a2); outline-offset: 2px; }
.form-error { margin: 0; min-height: 1.2em; font-size: 13.5px; font-weight: 600; color: #ff9db0; }
.form-fine { margin: 0; text-align: center; font-size: 12.5px; color: var(--ink-3); }
.form-fine a { color: var(--a2-soft); }
.form-done { text-align: center; padding: 30px 10px; display: grid; justify-items: center; gap: 12px; outline: none; }
.form-done h3 { margin: 6px 0 0; font: 500 30px/1.1 var(--f-display); }
.form-done p { margin: 0; max-width: 420px; color: var(--ink-2); }
.done-star { width: 54px; height: 54px; background: var(--grad); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); filter: drop-shadow(0 0 16px var(--a1)); animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 70px 0 40px; background: linear-gradient(transparent, var(--band)); }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.foot-logo { width: min(360px, 80vw); height: auto; }
.foot-tag { margin: 0; font: 400 13px/1 var(--f-label); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); }
.foot-cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin: 44px 0 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.foot-cols nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-cols a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.foot-cols a:hover { color: var(--ink); }
.foot-contact { display: grid; gap: 6px; text-align: right; font-size: 14px; color: var(--ink-3); }
.foot-fine { margin: 0; max-width: 900px; font-size: 12.5px; color: var(--ink-3); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-burger { display: block; margin-left: 0; }
  .lang { margin-left: auto; }
}
@media (max-width: 980px) {
  .svc-grid, .pkg-grid { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .svc-wide { grid-template-columns: 1fr; gap: 24px; }
  .results-grid { grid-template-columns: 1fr; }
  .stage { grid-template-columns: 1fr; }
  .faq-wrap, .contact-wrap { grid-template-columns: 1fr; }
  .pkg.featured, .js .pkg.featured[data-reveal].in { transform: none; }
  .pkg-for { min-height: 0; }
  .steps { grid-template-columns: 1fr; padding-top: 0; padding-left: 40px; gap: 36px; }
  .constellation { display: none; }
  .steps::before { content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--a1), var(--a2), transparent); opacity: .6; }
  .step-star, .step:nth-of-type(2) .step-star, .step:nth-of-type(3) .step-star { left: -41px; top: 0; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .wrap { width: calc(100% - 32px); }
  .nav { gap: 12px; padding: env(safe-area-inset-top, 0px) 16px 0; }
  .nav-logo { width: 132px; }
  .nav-cta { display: none; }
  .lang { margin-right: 0; }
  .hero { padding-bottom: 96px; }
  .hero-eyebrow { font-size: 9.5px; letter-spacing: .15em; gap: 8px; }
  .hero-ctas .btn { width: 100%; }
  .hero-ctas { width: 100%; max-width: 360px; }
  .search-meta { display: none; }
  .r-actions i:not(.call) { display: none; }
  .result { grid-template-columns: 22px 1fr auto; gap: 8px; padding: 0 10px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: 1fr; }
  .fact { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: center; }
  .fact p { margin: 0; }
  .fact .src { grid-column: 1 / -1; }
  .fact-ring { width: 84px; height: 84px; }
  .fact-ring b { font-size: 19px; }
  .fact-big { min-height: 0; flex-direction: column; gap: 4px; }
  .fact-big b { font-size: 42px; }
  .devices { padding: 0 12% 20px 0; }
  .phone { width: 30%; border-radius: 18px; padding: 3px; }
  .phone img { border-radius: 15px; }
  .phone-notch { top: 7px; height: 8px; }
  .rail { grid-auto-columns: 72%; }
  .rail-arrows { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .foot-contact { text-align: left; }
  .stage-ctas .btn { flex: 1 1 auto; }
  .story { height: 300vh; }
}
@media (max-height: 700px) and (min-width: 641px) {
  .serp { height: 250px; }
  .skeleton { grid-template-rows: repeat(3, 52px); }
  .result { height: 52px; top: calc(var(--slot) * 58px); }
  .page-two { top: calc(3 * 58px + 4px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .ticker-track { animation: none; }
  .nebula i { animation: none; }
  .msg { animation: none !important; opacity: 1; }
}
