/* alpine3d marketing site. Brand tokens match web/src/style.css: near-black, sage glass,
   monochrome ice accent, thin type. Colour is reserved for data (danger levels, slope bands). */
:root {
  --bg: #0b0d0c;
  --bg-2: #101311;
  --glass: rgba(20, 24, 21, 0.74);
  --line: rgba(226, 238, 228, 0.1);
  --line-2: rgba(226, 238, 228, 0.18);
  --text: #eef1ec;
  --muted: #98a299;
  --accent: #e8ece6;
  --accent-ink: #0f1311;
  --accent-soft: rgba(232, 236, 230, 0.14);
  --sage: #8ea291;
  --radius: 20px;
  --radius-sm: 12px;
  --font: "SF Pro Display", "Inter Display", "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  /* EAWS danger colours: data only, never chrome */
  --d1: #ccff66; --d2: #ffff00; --d3: #ff9900; --d4: #ff0000;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-weight: 300; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 300; letter-spacing: -0.02em; margin: 0; line-height: 1.04; }
h1 { font-size: clamp(44px, 8vw, 112px); font-weight: 400; }
h2 { font-size: clamp(34px, 5.4vw, 72px); }
h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; }
h4 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.thin { font-weight: 200; color: #cfd6cd; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-weight: 400; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px; color: var(--sage); margin: 0 0 18px; font-weight: 500; }
.lede { font-size: clamp(17px, 1.5vw, 21px); color: #c6cec4; max-width: 40ch; margin: 22px 0 0; }
section { position: relative; padding: clamp(80px, 12vw, 160px) var(--gutter); }
.section-head { max-width: 1200px; margin: 0 auto clamp(40px, 6vw, 80px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 14px 24px;
  font: 500 15px/1 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, border-color .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { background: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.4); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* Nav */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1200px, calc(100% - 2 * var(--gutter))); display: flex; align-items: center; gap: 24px;
  padding: 8px 8px 8px 18px; border-radius: 999px; background: rgba(14, 17, 15, 0.55);
  border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  transition: background .3s;
}
.nav.scrolled { background: rgba(14, 17, 15, 0.82); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; letter-spacing: -0.01em; font-size: 17px; }
.brand svg { width: 22px; height: 22px; }
.brand > span { text-transform: uppercase; letter-spacing: 0.22em; font-weight: 400; font-size: 15px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
@media (max-width: 860px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* Hero */
.hero { min-height: 100svh; padding-top: 140px; padding-bottom: 60px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: 1fr auto; gap: 24px 40px; max-width: 1440px; margin: 0 auto; align-items: center; overflow: hidden; }
.hero-snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .55; }
.hero-copy { position: relative; z-index: 2; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-stage { position: relative; z-index: 1; margin-right: calc(-1 * var(--gutter)); }
.float { position: relative; animation: float 9s ease-in-out infinite; will-change: transform; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero-video { mix-blend-mode: lighten; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%); -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%); }
.callout { position: absolute; font-size: 12px; color: #dfe5dc; white-space: nowrap; opacity: 0; transition: opacity 1s var(--ease) 1.2s; }
.loaded .callout { opacity: 1; }
.callout b { font-weight: 600; }
.callout .dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #fff; background: rgba(255,255,255,.25); box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
.callout .leader { position: absolute; width: 1px; background: rgba(255,255,255,.75); }
/* label sits above its dot; positions tuned to media/base.jpg */
.c1 { left: 40.5%; top: 1%; } .c1 .dot { left: -4px; top: 92px; } .c1 .leader { left: 0; top: 18px; height: 74px; }
.c2 { left: 60%; top: 14%; } .c2 .dot { left: -4px; top: 92px; } .c2 .leader { left: 0; top: 18px; height: 74px; }
.c3 { left: 53%; top: 50%; } .c3 .dot { left: -4px; top: 92px; } .c3 .leader { left: 0; top: 18px; height: 74px; }
.callout { padding-left: 0; transform: translateX(-2px); }
.compass { position: absolute; right: 8%; bottom: 4%; width: 54px; color: #dfe5dc; opacity: .8; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line); position: relative; z-index: 2; }
.stats > div { padding: 22px 20px 0 0; }
.stats dt { font-size: clamp(30px, 3.4vw, 48px); font-weight: 200; letter-spacing: -0.03em; }
.stats dd { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.scroll-hint { position: absolute; left: 50%; bottom: 18px; width: 22px; height: 36px; border: 1px solid var(--line-2); border-radius: 12px; }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; background: var(--text); border-radius: 2px; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; }
  .hero-stage { margin: 0 calc(-1 * var(--gutter)); order: -1; }
  .callout { font-size: 10px; } .callout .dot { top: 52px !important; } .callout .leader { height: 34px !important; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .scroll-hint { display: none; }
}

/* Layers scrollytelling */
.layers { padding-bottom: 0; }
.scrolly { position: relative; max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; }
.stage { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.stage-inner { position: relative; width: 100%; }
.stage-videos { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.stage-videos video, .stage-videos img { mix-blend-mode: lighten; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s var(--ease); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%); -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%); }
.stage-videos .on { opacity: 1; }
.stage-hud { position: absolute; left: 6%; bottom: 2%; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.hud-tag { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hud-legend { display: flex; gap: 6px; flex-wrap: wrap; font-size: 11px; color: #d9dfd6; min-height: 1px; }
.hud-legend span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); animation: pop .5s var(--ease) both; }
.hud-legend span:nth-child(2) { animation-delay: .06s; } .hud-legend span:nth-child(3) { animation-delay: .12s; } .hud-legend span:nth-child(4) { animation-delay: .18s; }
.hud-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.stage-progress { position: absolute; left: 6%; right: 6%; top: 4%; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.stage-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s var(--ease); }
.steps { list-style: none; margin: 0; padding: 30vh 0 40vh; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: .22; transition: opacity .6s var(--ease), transform .6s var(--ease); transform: translateX(10px); }
.step.active { opacity: 1; transform: none; }
.step-n { font-family: var(--mono); font-size: 12px; color: var(--sage); margin-bottom: 14px; }
.step p { color: #c6cec4; font-size: 17px; max-width: 38ch; margin: 16px 0 0; }
.step .note { font-size: 13px; color: var(--muted); border-left: 1px solid var(--line-2); padding-left: 12px; }
@media (max-width: 900px) {
  .scrolly { grid-template-columns: 1fr; gap: 0; }
  .stage { height: 56vh; top: 56px; z-index: 1; margin: 0 calc(-1 * var(--gutter)); }
  .stage-hud { top: 9%; bottom: auto; left: 16px; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .hud-tag { padding: 6px 11px; font-size: 10.5px; }
  .stage-progress { top: 3%; left: 16px; right: 16px; }
  .steps { position: relative; z-index: 2; padding: 10vh 0 30vh; }
  .step { min-height: 70vh; justify-content: flex-end; opacity: 0; transform: none; }
  .step.active { opacity: 1; }
  .step > * { background: rgba(11, 13, 12, .82); }
  .step { padding-bottom: 4vh; }
  .step h3, .step p, .step-n { padding: 0 14px; } .step h3 { padding-top: 14px; } .step p:last-child { padding-bottom: 14px; }
  .step > :first-child { border-radius: 14px 14px 0 0; } .step > :last-child { border-radius: 0 0 14px 14px; }
  .step .note { border-left: 0; }
}

/* Avalanche bento */
.avy { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 30%, var(--bg-2) 70%, var(--bg) 100%); }
.bento { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(232,236,230,.06), transparent 40%); pointer-events: none; }
.card-top { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--accent-soft); font-weight: 500; }
.chip-ghost { background: transparent; border: 1px dashed var(--line-2); color: var(--muted); }
.card-copy { color: #c1c9bf; font-size: 14.5px; margin: 18px 0 0; }
.fine { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.card-bulletin { grid-column: span 3; grid-row: span 2; }
.card-rose { grid-column: span 3; grid-row: span 2; }
.card-report { grid-column: span 3; }
.card-pit { grid-column: span 3; }
.card-station { grid-column: span 2; }
.card-privacy { grid-column: span 2; }
.card-standards { grid-column: span 2; }
.card-history { grid-column: span 6; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento > .card { grid-column: span 2; grid-row: auto; } }
@media (min-width: 640px) and (max-width: 1000px) { .card-station, .card-privacy { grid-column: span 1 !important; } }

.bulletin { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.lvl { width: 138px; aspect-ratio: 1; border-radius: 22px; background: var(--d3); color: #1a1205; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; position: relative; }
.lvl-num { font-size: 72px; font-weight: 200; line-height: .9; letter-spacing: -0.04em; }
.lvl-name { font-size: 13px; font-weight: 600; }
.bulletin-meta { margin: 0; display: grid; gap: 10px; font-size: 13.5px; }
.bulletin-meta dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.bulletin-meta dd { margin: 2px 0 0; }
.states { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.state { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); color: #c9cfc7; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sw-grey { background: repeating-linear-gradient(45deg, #6b716b 0 3px, #4a4f4a 3px 6px); }
@media (max-width: 520px) { .bulletin { grid-template-columns: 1fr; } .lvl { width: 100%; aspect-ratio: auto; height: 110px; } }

.rose { width: min(100%, 340px); margin: 0 auto; overflow: visible; }
.rose path { stroke: var(--bg); stroke-width: 1.5; transition: opacity .5s, transform .5s var(--ease); transform-origin: 0 0; }
.rose text { fill: var(--muted); font: 500 9px var(--font); }
.rose-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.rose-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rose-legend i { width: 10px; height: 10px; border-radius: 3px; }

.report-head { display: flex; gap: 12px; align-items: center; font-size: 14px; line-height: 1.4; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: #2a302b; display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.badge { font-size: 10.5px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-2); margin-left: 4px; }
.report-rows { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 0; font-size: 13.5px; }
.report-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.report-rows li span { color: var(--muted); }
.report-rows b { font-weight: 500; text-align: right; }
.report-rows em { font-style: normal; font-weight: 300; }
.report-thread { font-size: 12.5px; padding-top: 10px; border-top: 1px solid var(--line); }

.pit { width: 100%; }
.pit text { font: 500 9px var(--font); fill: var(--muted); }

.station-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.big-num { font-size: 44px; font-weight: 200; letter-spacing: -0.03em; }
.unit { font-size: 16px; margin-left: 3px; }
.spark { width: 100%; height: 80px; margin: 10px 0; }
.station-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: #c9cfc7; }
.station-row b { font-weight: 500; }

.vis { display: grid; gap: 8px; font-size: 13.5px; }
.vis-row { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.vis-k { font-weight: 500; }

.std-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.std-grid span { font-size: 12.5px; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line-2); }

.history { width: 100%; height: 90px; }

/* Draw-on animations for SVG strokes */
.draw { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); transition: stroke-dashoffset 2.4s var(--ease); }
.in .draw { stroke-dashoffset: 0; }
.grow { transform: scaleX(0); transform-origin: left center; transform-box: fill-box; transition: transform 1.1s var(--ease); }
.in .grow { transform: scaleX(1); }

/* Trips */
.split { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; color: #c6cec4; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 1px; background: var(--accent); }
.ticks b { color: var(--text); font-weight: 500; }
.phone { width: min(340px, 100%); margin: 0 auto; aspect-ratio: 9 / 19; border-radius: 46px; padding: 10px; background: #191d1a; border: 1px solid var(--line-2); box-shadow: 0 40px 80px rgba(0,0,0,.5); transform: rotate(-3deg); transition: transform 1s var(--ease); }
.split-visual.in .phone { transform: rotate(0); }
.phone-screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: #000; }
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; transform: scale(1.25); animation: pan 18s ease-in-out infinite alternate; }
@keyframes pan { to { transform: scale(1.4) translate(-4%, 3%); } }
.phone-card { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 14px; border-radius: 24px; background: rgba(17, 20, 18, .86); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.pc-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; gap: 8px; }
.pc-row .muted { font-size: 11px; }
.profile { width: 100%; height: 64px; margin: 10px 0; }
.pc-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: left; }
.pc-stats b { display: block; font-size: 22px; font-weight: 300; letter-spacing: -0.02em; }
.pc-stats span { font-size: 11px; color: var(--muted); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Tech */
.tech-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tech-item { padding: 26px 22px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s; }
.tech-item:hover { background: rgba(255,255,255,.02); }
.tech-k { display: block; font-size: 30px; font-weight: 200; letter-spacing: -0.03em; margin-bottom: 26px; }
.tech-item p { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
@media (max-width: 1000px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tech-grid { grid-template-columns: 1fr; } }

/* Roadmap */
.timeline { list-style: none; max-width: 1200px; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 24px; position: relative; }
.timeline li { position: relative; padding-top: 28px; border-top: 1px solid var(--line-2); }
.timeline .t-dot { position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--accent); background: var(--bg); }
.timeline .done .t-dot { background: var(--accent); }
.timeline .done b::after { content: "Shipped"; margin-left: 8px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.timeline b { font-weight: 500; font-size: 17px; }
.timeline p { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.timeline em { color: var(--text); font-style: normal; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } }

/* Principles */
.principles-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 50px; text-align: left; }
.rules p { margin: 0; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.rules b { display: block; color: var(--text); font-weight: 500; margin-bottom: 6px; }

/* CTA */
.cta { min-height: 80vh; display: grid; place-items: center; text-align: center; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; opacity: .5; }
.cta-bg video { mix-blend-mode: lighten; width: 100%; height: 100%; object-fit: cover; mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 40%, transparent 100%); -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 40%, transparent 100%); }
.cta-inner { position: relative; max-width: 640px; }
.cta-inner .lede { margin-left: auto; margin-right: auto; }
.cta-form { display: flex; gap: 8px; justify-content: center; margin-top: 30px; flex-wrap: wrap; position: relative; }
.cta-form input { flex: 1 1 240px; max-width: 320px; padding: 14px 20px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(14,17,15,.7); color: var(--text); font: 300 15px var(--font); outline: none; }
.cta-form input:focus { border-color: rgba(255,255,255,.5); }
.sent-msg { display: none; width: 100%; color: var(--muted); font-size: 14px; }
.cta-form.sent input, .cta-form.sent button { display: none; }
.cta-form.sent .sent-msg { display: block; }

/* Footer */
.foot { padding: 40px var(--gutter) 60px; border-top: 1px solid var(--line); max-width: 1440px; margin: 0 auto; display: flex; gap: 40px; justify-content: space-between; flex-wrap: wrap; }
.foot-brand { font-weight: 400; text-transform: uppercase; letter-spacing: 0.22em; }
.foot-brand .muted { text-transform: none; letter-spacing: normal; }
.foot-legal { max-width: 70ch; color: var(--muted); font-size: 12.5px; margin: 0; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.br-wide { display: inline; }
@media (max-width: 700px) { .br-wide { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .draw { stroke-dashoffset: 0; } .grow { transform: none; }
}

/* ───────── Pro network ───────── */
.net { background: radial-gradient(1200px 600px at 50% 10%, rgba(120, 150, 190, 0.07), transparent 70%); }
.tag { display: inline-block; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding: 3px 7px; border-radius: 999px; vertical-align: 1px; margin-left: 4px; }
.tag-live { background: var(--accent); color: var(--accent-ink); margin: 0 10px 0 0; }
.tag-next { border: 1px dashed var(--line-2); color: var(--muted); }
.feat .tag-next { margin: 0 10px 0 0; }

.net-stage { position: relative; max-width: 1300px; margin: 0 auto; aspect-ratio: 16 / 9; }
.net-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: lighten;
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%); -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%); }
.net-loop { opacity: 0; transition: opacity .4s; }
.net-stage.looping .net-loop { opacity: 1; }
.net-tag { position: absolute; right: 4%; top: 4%; }
.toasts { position: absolute; inset: 0; pointer-events: none; }
.toast { position: absolute; width: min(290px, 44%); padding: 11px 13px; border-radius: 16px; background: rgba(17, 20, 18, .82); border: 1px solid var(--line-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 16px 40px rgba(0,0,0,.45); font-size: 12.5px; line-height: 1.4;
  opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.toast.show { opacity: 1; transform: none; }
.toast .t-top { display: flex; gap: 6px; align-items: center; margin-bottom: 3px; }
.toast .t-top b { font-weight: 600; }
.toast .t-top time { margin-left: auto; color: var(--muted); font-size: 11px; }
.toast .t-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.6); animation: ping 1.6s infinite; }
.toast p { margin: 0; color: #c9d0c7; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 100% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } }
.net-counters { position: absolute; left: 3%; bottom: 3%; display: flex; gap: 28px; }
.net-counters b { display: block; font-size: clamp(26px, 3vw, 40px); font-weight: 200; letter-spacing: -0.03em; }
.net-counters span { font-size: 12px; color: var(--muted); }
@media (max-width: 700px) {
  .net-stage { aspect-ratio: 4 / 5; margin: 0 calc(-1 * var(--gutter)); }
  .net-video { object-position: 50% 50%; }
  .toast { width: 70%; font-size: 11.5px; }
  .net-counters { gap: 16px; left: 16px; }
  .net-tag { right: 16px; }
}

.console-wrap { max-width: 1300px; margin: clamp(60px, 9vw, 120px) auto 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 50px; align-items: start; }
.console-copy { position: sticky; top: 110px; }
.console-copy h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 300; }
.life { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 4px; counter-reset: life; }
.life li { position: relative; padding: 12px 0 12px 34px; color: var(--muted); font-size: 14.5px; transition: color .5s; border-left: 1px solid var(--line); margin-left: 6px; padding-left: 26px; }
.life li::before { content: ""; position: absolute; left: -6px; top: 17px; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); transition: background .4s, border-color .4s, box-shadow .4s; }
.life li b { color: #c9d0c7; font-weight: 500; transition: color .5s; }
.life li.on { color: #c6cec4; }
.life li.on b { color: var(--text); }
.life li.on::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(232,236,230,.1); }

.console { position: relative; border-radius: 22px; border: 1px solid var(--line-2); background: #0f1210; box-shadow: 0 40px 100px rgba(0,0,0,.55), 0 1px 0 rgba(255,255,255,.06) inset; overflow: hidden; }
.console-tag { position: absolute; right: 14px; top: 9px; padding: 4px 9px; font-size: 10px; }
.console-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2f2b; }
.console-bar span { margin-left: 10px; }
.console-body { display: grid; grid-template-columns: 170px minmax(0, 1fr) 210px; min-height: 560px; }
.c-side, .c-ctx { padding: 16px 14px; font-size: 13px; }
.c-side { border-right: 1px solid var(--line); background: rgba(255,255,255,.012); }
.c-ctx { border-left: 1px solid var(--line); }
.c-h { margin: 14px 0 8px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.c-h:first-child { margin-top: 0; }
.c-ch, .c-dm { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 8px; color: #b9c1b7; cursor: default; }
.c-ch::before { content: "#"; color: var(--muted); }
.c-ch.on { background: var(--accent-soft); color: var(--text); }
.c-badge { margin-left: auto; font-style: normal; font-size: 10.5px; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 1px 6px; font-weight: 600; }
.lock { margin-left: auto; font-size: 7px; color: var(--muted); }
.pres { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--muted); }
.pres.on { background: #fff; border-color: #fff; }
.c-thread { padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.msg { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.025); border: 1px solid var(--line); font-size: 13.5px; color: #c9d0c7;
  display: none; }
.msg.show { display: block; animation: msgIn .55s var(--ease) both; }
.msg-sys.show { display: flex; }
@keyframes msgIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.msg p { margin: 6px 0 0; }
.m-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.m-head b { color: var(--text); font-weight: 600; }
.m-head .org { color: var(--muted); }
.m-head time { margin-left: auto; color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; background: #2b322d; color: var(--text); }
.av-2 { background: #333a3f; } .av-3 { background: #e8ece6; color: var(--accent-ink); } .av-pub { background: transparent; border: 1px dashed var(--line-2); }
.badge-warn { border-style: dashed; color: var(--muted); }
.m-report { display: grid; grid-template-columns: 120px 1fr; gap: 12px; margin-top: 10px; }
.m-photo { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; }
.m-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; transform: scale(1.8); }
.m-rows p { margin: 0; display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--text); }
.m-rows span { color: var(--muted); }
.m-rows code { font-family: var(--mono); font-size: 11.5px; }
.msg-sys { background: none; border: 0; padding: 2px 4px; font-size: 12px; color: var(--muted); align-items: center; gap: 8px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: ping 1.6s infinite; }
.msg-public { border-style: dashed; background: none; }
.mention { color: var(--text); background: var(--accent-soft); padding: 1px 5px; border-radius: 5px; }
.m-react { display: flex; gap: 6px; margin-top: 10px; }
.react { font-size: 11.5px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.react.on { border-color: rgba(255,255,255,.45); color: var(--text); }
.typing { display: none; gap: 4px; padding: 6px 4px; }
.typing.show { display: flex; animation: msgIn .3s both; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.ctx-map { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; }
.ctx-map img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 35%; transform: scale(1.6); }
.ctx-pin { position: absolute; left: 52%; top: 46%; width: 12px; height: 12px; border-radius: 50%; background: #fff; animation: ping 1.6s infinite; }
.ctx-dl { margin: 12px 0 0; display: grid; gap: 8px; }
.ctx-dl dt { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.ctx-dl dd { margin: 1px 0 0; font-size: 13px; }
@media (max-width: 1100px) { .console-body { grid-template-columns: 150px minmax(0, 1fr); } .c-ctx { display: none; } }
@media (max-width: 900px) {
  .console-wrap { grid-template-columns: 1fr; gap: 30px; }
  .console-copy { position: static; }
  .console-body { grid-template-columns: 1fr; min-height: 0; }
  .c-side { display: none; }
  .m-report { grid-template-columns: 1fr; }
  .m-photo { aspect-ratio: 16 / 7; }
}

.roles { max-width: 1300px; margin: clamp(60px, 9vw, 120px) auto 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.role { padding: 22px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass); transition: transform .4s var(--ease), border-color .4s; }
.role:hover { transform: translateY(-4px); border-color: var(--line-2); }
.role-ic { display: block; font-size: 14px; color: var(--sage); margin-bottom: 26px; }
.role p { color: var(--muted); font-size: 13.5px; margin: 8px 0 14px; }
.role ul { list-style: none; padding: 0; margin: 0; font-size: 12.5px; display: grid; gap: 4px; }
.role li::before { content: "— "; color: var(--muted); }
.role-public { background: transparent; border-style: dashed; }
@media (max-width: 1000px) { .roles { grid-template-columns: repeat(2, 1fr); } .role-public { grid-column: span 2; } }
@media (max-width: 520px) { .roles { grid-template-columns: 1fr; } .role-public { grid-column: auto; } }

.trust { max-width: 1200px; margin: clamp(70px, 10vw, 140px) auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.trust-copy h3 { font-size: clamp(28px, 3vw, 42px); font-weight: 300; }
.feat { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; font-size: 14.5px; color: #c6cec4; }
.rings { container-type: inline-size; position: relative; aspect-ratio: 1; width: min(460px, 100%); margin: 0 auto; }
.ring { position: absolute; border-radius: 50%; border: 1px solid var(--line-2); display: flex; justify-content: center; }
.ring span { margin-top: -9px; height: 18px; padding: 0 10px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; background: var(--bg); color: var(--muted); }
.r3 { inset: 0; border-style: dashed; }
.r2 { inset: 17%; }
.r1 { inset: 34%; background: radial-gradient(circle, rgba(232,236,230,.1), transparent 70%); border-color: rgba(255,255,255,.4); }
.r1 span { color: var(--text); }
.orb { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px rgba(255,255,255,.6); }
.o1 { animation: orbit 14s linear infinite; --r: 16cqw; }
.o2 { animation: orbit 20s linear infinite reverse; --r: 33cqw; }
.o3 { animation: orbit 26s linear infinite; --r: 33cqw; animation-delay: -9s; }
.o4 { animation: orbit 34s linear infinite; --r: 50cqw; opacity: .6; }
.o5 { animation: orbit 30s linear infinite reverse; --r: 50cqw; animation-delay: -12s; opacity: .6; }
@keyframes orbit { from { transform: rotate(0) translateX(var(--r)); } to { transform: rotate(360deg) translateX(var(--r)); } }
@media (max-width: 900px) {
  .trust { grid-template-columns: 1fr; }
}

/* ───────── Hero: live terrain model ───────── */
.xhero { height: 460vh; padding: 0; position: relative; }
.xh-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: radial-gradient(900px 600px at 64% 46%, rgba(120, 150, 190, .09), transparent 70%), var(--bg); }
.xh-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s; }
.xhero.live .xh-canvas { opacity: 1; }
.xh-fallback { position: absolute; right: -4%; top: 50%; width: 70%; transform: translateY(-50%); opacity: 0; mix-blend-mode: lighten;
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%); -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%); }
.xhero.no-webgl .xh-fallback { opacity: 1; }
.xhero.no-webgl .xh-labels, .xhero.no-webgl .xh-steps, .xhero.no-webgl .xh-ruler { display: none; }

.xh-frame { position: absolute; inset: 88px var(--gutter) 22px; pointer-events: none; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.xh-rule-top, .xh-rule-bot { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.xh-rule-top { top: 0; } .xh-rule-bot { bottom: 0; }
.xh-title { position: absolute; top: -7px; left: 50%; transform: translateX(-50%); padding: 0 14px; background: var(--bg); white-space: nowrap; color: #c9d0c7; }
.xh-title i { color: var(--line-2); font-style: normal; margin: 0 6px; } .xh-title b { font-weight: 500; color: var(--text); }
.xh-corner { position: absolute; line-height: 1.6; }
.xh-corner.tl { top: 14px; right: 0; text-align: right; }
.xh-corner.br { bottom: 14px; right: 0; text-align: right; }

.xh-ruler { position: absolute; right: calc(var(--gutter) + 4px); top: 24%; bottom: 24%; width: 60px; border-right: 1px solid var(--line-2); font-family: var(--mono); font-size: 10px; color: var(--muted); pointer-events: none; }
.xh-ruler span { position: absolute; right: 10px; top: calc(var(--p) * 100%); transform: translateY(-50%); white-space: nowrap; }
.xh-ruler span::after { content: ""; position: absolute; right: -10px; top: 50%; width: 6px; height: 1px; background: var(--line-2); }
.xh-ruler-cursor { position: absolute; right: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); transform: translateY(-50%); transition: top .3s; box-shadow: 0 0 0 4px rgba(232,236,230,.12); }

.xh-labels { position: absolute; inset: 0; pointer-events: none; }
.xh-label { position: absolute; left: 0; top: 0; font-size: 12px; color: #dfe5dc; white-space: nowrap; transition: opacity .5s; will-change: transform; }
.xh-label b { font-weight: 600; margin-right: 6px; }
.xh-label small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--muted); margin-top: 2px; }
.xh-label .ln { position: absolute; }
/* summit + face labels: vertical leader up from the point */
.lab-summit, .lab-face { margin: -78px 0 0 -4px; padding-left: 0; }
.lab-summit::before, .lab-face::before { content: ""; position: absolute; left: 0; top: 72px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #fff; background: rgba(255,255,255,.2); }
.lab-summit .ln, .lab-face .ln { left: 4px; top: 36px; width: 1px; height: 36px; background: rgba(255,255,255,.7); }
.lab-summit { margin-top: -84px; } .lab-summit::before { top: 78px; } .lab-summit .ln { top: 36px; height: 42px; }
/* strata labels: horizontal leader to the right */
.lab-stratum { margin: -14px 0 0 0; padding-left: 70px; }
.lab-stratum .ln { left: 0; top: 13px; width: 60px; height: 1px; background: rgba(255,255,255,.35); }
.lab-stratum::before { content: ""; position: absolute; left: -3px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: #efe6c8; }
.lab-stratum.weak b { color: #fff; }
.lab-stratum.weak::before { background: #e8382a; box-shadow: 0 0 0 4px rgba(232,56,42,.25); }
.lab-stratum.weak b::after { content: "Weak layer"; margin-left: 8px; font: 600 9px var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: #e8382a; color: #fff; vertical-align: 1px; }

.xh-copy { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-46%); width: min(520px, 42vw); z-index: 2; transition: opacity .6s, transform .6s var(--ease); }

.xh-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; }
.xh-tag span { background: var(--accent); color: var(--accent-ink); padding: 3px 7px; margin-right: 8px; font-weight: 600; }
.xh-copy h1 { font-size: clamp(42px, 6vw, 92px); }
.xh-copy .lede { font-size: clamp(16px, 1.3vw, 19px); }

.xh-steps { position: absolute; left: var(--gutter); bottom: 46px; list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); z-index: 2; }
.xh-steps li { position: relative; padding-top: 12px; transition: color .4s; }
.xh-steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-2); }
.xh-steps li::after { content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 0; background: var(--accent); transition: width .6s var(--ease); }
.xh-steps li.on { color: var(--text); } .xh-steps li.on::after { width: 100%; }
.xh-steps b { font-weight: 500; margin-right: 6px; }
.xh-steps span { display: block; text-transform: none; letter-spacing: 0; font-family: var(--font); font-size: 12px; color: var(--muted); margin-top: 4px; }

.xh-legend { position: absolute; right: calc(var(--gutter) + 90px); bottom: 104px; display: grid; grid-template-columns: auto 160px auto; gap: 4px 10px; align-items: center; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); opacity: 0; transition: opacity .5s; }
.xh-legend.on { opacity: 1; }
.xh-legend i { height: 6px; border-radius: 2px; background: linear-gradient(90deg, #efe6c8, #e8382a); }
.xh-legend em { grid-column: 1 / -1; font-style: normal; text-align: center; color: #c9d0c7; }

.xhero .scroll-hint { bottom: 50px; }
.stats-wrap { padding-top: 40px; padding-bottom: 20px; max-width: 1440px; margin: 0 auto; }
.stats-wrap .stats { border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .xhero { height: 420vh; }
  .xh-copy { top: auto; bottom: 120px; transform: none; width: auto; right: var(--gutter); }
  .xh-copy h1 { font-size: 40px; }
  .xh-copy .lede { display: none; }
  .xh-frame { inset: 76px 16px 14px; }
  .xh-corner.tl { display: none; }
  .xh-title { font-size: 9px; }
  .xh-ruler { display: none; }
  .xh-steps { bottom: 30px; gap: 14px; font-size: 10px; }
  .xh-steps span { display: none; }
  .xh-legend { right: 16px; bottom: auto; top: 118px; grid-template-columns: auto 80px auto; }
  .xhero .scroll-hint { display: none; }
  .lab-stratum { padding-left: 34px; } .lab-stratum .ln { width: 26px; }
  .xh-label { font-size: 11px; }
}

@media (max-width: 900px) {
  .xh-copy::before { content: ""; position: absolute; inset: -40px calc(-1 * var(--gutter)) -60px; z-index: -1;
    background: linear-gradient(180deg, transparent, rgba(11, 13, 12, .78) 30%, rgba(11, 13, 12, .92)); }
  .xh-corner.br { display: none; }
}
@media (max-width: 700px) {
  .toast { left: 16px !important; right: 16px; width: auto; }
}

/* ───────── Layers as a player (replaces the long scroll) ───────── */
.layers { padding-bottom: clamp(80px, 12vw, 160px); }
.player { align-items: center; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.player .stage { position: relative; top: auto; height: auto; }
.player .steps { padding: 0; counter-reset: none; display: flex; flex-direction: column; gap: 2px; }
.player .step { min-height: 0; display: block; opacity: 1; transform: none; cursor: pointer; position: relative;
  padding: 12px 16px 12px 52px; border-radius: 14px; transition: background .3s; outline: none; }
.player .step:hover, .player .step:focus-visible { background: rgba(255,255,255,.035); }
.player .step.active { background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); padding-top: 16px; padding-bottom: 18px; }
.player .step-n { position: absolute; left: 16px; top: 15px; margin: 0; transition: color .3s; }
.player .step.active .step-n { color: var(--text); top: 19px; }
.player .step h3 { font-size: 17px; font-weight: 400; color: var(--muted); transition: color .3s, font-size .3s; }
.player .step.active h3 { color: var(--text); font-size: 21px; }
.player .step p { display: none; font-size: 14.5px; margin-top: 10px; }
.player .step.active p { display: block; animation: msgIn .5s var(--ease) both; }
.player .step .note { font-size: 12.5px; }
.player .step::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; opacity: 0; }
.player .step.run::after { opacity: .85; animation: stepbar var(--dwell, 7.5s) linear forwards; }
.player.paused .step.run::after { animation-play-state: paused; }
@keyframes stepbar { to { transform: scaleX(1); } }
.player .steps-col { min-width: 0; }
.autoplay-row { display: flex; align-items: center; gap: 12px; margin: 0 0 10px 4px; }
.autoplay { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 14px 6px 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; cursor: pointer; transition: background .2s; }
.autoplay:hover { background: rgba(255,255,255,.08); }
.autoplay:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.autoplay svg { width: 11px; height: 11px; fill: currentColor; }
.autoplay .ap-play, .player.paused .autoplay .ap-pause { display: none; }
.player.paused .autoplay .ap-play { display: block; }
.ap-hint { font-size: 12.5px; color: var(--muted); }
.player .stage-progress { display: none; }
@media (max-width: 900px) {
  .player { grid-template-columns: 1fr; gap: 16px; }
  .player .stage { margin: 0 calc(-1 * var(--gutter)); height: auto; top: auto; }
  .player .stage-hud { top: auto; bottom: 4%; }
  .player .steps { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; padding-bottom: 6px; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
  .player .step { flex: 0 0 auto; padding: 10px 14px 10px 40px; scroll-snap-align: start; border: 1px solid var(--line); }
  .player .step.active { flex: 0 0 82%; }
  .player .step > * { background: none !important; padding: 0 !important; border-radius: 0 !important; }
  .player .step-n { left: 14px !important; top: 12px !important; position: absolute; }
  .player .step h3 { font-size: 14px; white-space: nowrap; }
  .player .step.active h3 { font-size: 17px; white-space: normal; }
}

/* ───────── Avalanche story: report → map → danger zone → every slope ───────── */
.avs { position: relative; height: 340vh; margin: 0 calc(-1 * var(--gutter)) clamp(60px, 8vw, 110px); }
.avs-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.avs-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s; }
.avs.live .avs-canvas { opacity: 1; }
.avs-fallback { position: absolute; right: 0; top: 50%; width: 70%; transform: translateY(-50%); opacity: 0; mix-blend-mode: lighten; }
.avs.no-webgl .avs-fallback { opacity: 1; }
.avs.no-webgl .avs-pin, .avs.no-webgl .avs-probe { display: none; }

.avs-pin, .avs-probe { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; will-change: transform; transition: opacity .4s; }
.avs-pin .ring { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; background: rgba(255,255,255,.25); }
.avs-pin .r2 { background: none; border-width: 1px; animation: ripple 2s ease-out infinite; }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }
.avs-pin .stem { position: absolute; left: -.5px; bottom: 10px; width: 1px; height: 0; background: rgba(255,255,255,.85); transition: height .6s var(--ease); }
.avs-pin.dropped .stem { height: 64px; }
.avs-pin .pin-tag { position: absolute; left: 10px; bottom: 66px; white-space: nowrap; padding: 7px 11px; border-radius: 10px; background: #fff; color: var(--accent-ink); font-size: 12.5px; line-height: 1.25;
  transform: translateY(8px); opacity: 0; transition: transform .5s var(--ease) .2s, opacity .5s .2s; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.avs-pin.dropped .pin-tag { transform: none; opacity: 1; }
.avs-pin .pin-tag b { display: block; font-weight: 600; }
.avs-pin .pin-tag em { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: #505650; }

.avs-probe .cross { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 4px rgba(0,0,0,.25); }
.avs-probe .cross::before, .avs-probe .cross::after { content: ""; position: absolute; background: #fff; }
.avs-probe .cross::before { left: 50%; top: -7px; bottom: -7px; width: 1px; } .avs-probe .cross::after { top: 50%; left: -7px; right: -7px; height: 1px; }
.avs-probe .readout { position: absolute; left: 24px; top: -10px; min-width: 190px; padding: 11px 13px; border-radius: 14px; background: rgba(15, 18, 16, .88); border: 1px solid var(--line-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 12.5px; box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.ro-top { display: flex; gap: 10px; align-items: baseline; font-family: var(--mono); font-size: 12px; color: #c9d0c7; }
.ro-top b { font-family: var(--font); font-size: 20px; font-weight: 400; color: var(--text); }
.ro-band { color: var(--muted); font-size: 11.5px; margin: 2px 0 8px; }
.ro-level { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.ro-level::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--lv, #ff9900); }
.ro-prob { color: #c9d0c7; margin-top: 3px; }

.avs-steps { position: absolute; left: var(--gutter); top: 15%; width: min(380px, 34vw); list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; z-index: 3; }
.avs-steps li { display: grid; grid-template-columns: 34px 1fr; padding: 12px 14px 12px 12px; border-radius: 14px; cursor: pointer; transition: background .3s; }
.avs-steps li:hover { background: rgba(255,255,255,.03); }
.avs-steps li.on { background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.avs-steps .n { font-family: var(--mono); font-size: 11px; color: var(--sage); padding-top: 5px; }
.avs-steps h3 { font-size: 17px; font-weight: 400; color: var(--muted); transition: color .3s; }
.avs-steps li.on h3 { color: var(--text); font-size: 21px; }
.avs-steps p { display: none; margin: 8px 0 0; font-size: 14px; color: #c6cec4; }
.avs-steps li.on p { display: block; animation: msgIn .5s var(--ease) both; }
.avs-steps .hint { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }

.avs-report { position: absolute; right: var(--gutter); top: 15%; width: 320px; padding: 16px; border-radius: 20px; background: rgba(17, 20, 18, .86); border: 1px solid var(--line-2);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 24px 60px rgba(0,0,0,.5); z-index: 3;
  opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .6s var(--ease); }
.avs[data-step] .avs-report { opacity: 1; transform: none; }
.rp-head { display: flex; gap: 10px; align-items: center; font-size: 13px; line-height: 1.35; }
.rp-title { margin: 12px 0 0; font-size: 16px; font-weight: 500; }
.rp-full { display: block; max-height: 0; overflow: hidden; transition: max-height .7s var(--ease); }
.avs[data-step="1"] .rp-full { max-height: 420px; }
.rp-photo { position: relative; margin-top: 12px; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 8; }
.rp-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; transform: scale(1.6); }
.rp-photo span { position: absolute; left: 8px; bottom: 8px; font-size: 11px; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.6); }
.rp-rows { list-style: none; padding: 0; margin: 10px 0 0; font-size: 12.5px; }
.rp-rows li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.rp-rows span { color: var(--muted); } .rp-rows b { font-weight: 500; text-align: right; }
.rp-thread { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.rp-thread .dots { display: inline-flex; } .rp-thread .dots i { width: 16px; height: 16px; border-radius: 50%; background: #2b322d; border: 2px solid #111412; margin-left: -5px; }
.rp-thread .dots i:first-child { margin-left: 0; background: #e8ece6; }
.rp-match { margin: 0; max-height: 0; overflow: hidden; font-size: 13px; color: #c9d0c7; transition: max-height .5s, margin .5s; }
.avs[data-step="2"] .rp-match, .avs[data-step="3"] .rp-match { max-height: 60px; margin-top: 10px; }
.rp-match b { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.rp-match b::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--lv, #ff9900); }

.avs-rose { position: absolute; right: var(--gutter); bottom: 9%; width: 250px; padding: 14px 16px; border-radius: 20px; background: rgba(17, 20, 18, .8); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .6s var(--ease); z-index: 3; }
.avs[data-step="2"] .avs-rose, .avs[data-step="3"] .avs-rose { opacity: 1; transform: none; }
.avs-rose-h { margin: 0 0 6px; font-size: 13px; font-weight: 500; display: flex; justify-content: space-between; }
.avs-rose-h span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--line-2); padding: 2px 7px; border-radius: 999px; }
.avs-rose svg { width: 100%; overflow: visible; }
.avs-rose path { stroke: #111412; stroke-width: 1.5; opacity: 0; transition: opacity .4s calc(var(--i) * 25ms), filter .3s; }
.avs[data-step="2"] .avs-rose path, .avs[data-step="3"] .avs-rose path { opacity: 1; }
.avs[data-step="3"] .avs-rose path { opacity: .35; }
.avs[data-step="3"] .avs-rose path.hi { opacity: 1; stroke: #fff; stroke-width: 2.5; }
.avs-rose text { fill: var(--muted); font: 600 9px var(--font); }
.avs-rose-key { display: flex; gap: 12px; font-size: 11px; color: var(--muted); }
.avs-rose-key span { display: inline-flex; align-items: center; gap: 5px; } .avs-rose-key i { width: 9px; height: 9px; border-radius: 2px; }
.avs-rose-bands { margin: 6px 0 0; font-size: 10.5px; color: var(--muted); }

.avs-note { position: absolute; left: var(--gutter); bottom: 4%; max-width: 560px; margin: 0; font-size: 11.5px; color: var(--muted); z-index: 3; }

@media (max-width: 900px) {
  .avs { height: 320vh; }
  .avs-steps { top: auto; bottom: 64px; left: 16px; right: 16px; width: auto; }
  .avs-steps li:not(.on) { display: none; }
  .avs-steps li.on h3 { font-size: 18px; }
  .avs-report { top: 70px; left: 16px; right: 16px; width: auto; padding: 12px; }
  .avs[data-step="1"] .rp-full { max-height: 230px; }
  .rp-photo { display: none; }
  .avs-rose { width: 150px; right: 16px; bottom: auto; top: 200px; padding: 10px; }
  .avs-rose-bands, .avs-rose-h span { display: none; }
  .avs-note { left: 16px; right: 16px; bottom: 14px; font-size: 10.5px; }
  .avs-probe .readout { min-width: 160px; left: -80px; top: 24px; }
}

.avs[data-step="3"] .avs-report { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.player .step { padding-top: 9px; padding-bottom: 9px; }
.player .step-n { top: 12px; }
.player .step h3 { font-size: 15.5px; }
@media (max-width: 900px) {
  .avs-pin .pin-tag { left: auto; right: 10px; }
}

/* ───────── App showcase (real captures) ───────── */
.app { overflow: hidden; }
.browser { max-width: 1240px; margin: 0 auto; border-radius: 18px; border: 1px solid var(--line-2); background: #121513; box-shadow: 0 50px 120px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.06) inset; overflow: hidden; }
.b-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.b-dots { display: flex; gap: 6px; } .b-dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a2f2b; }
.b-url { font-size: 12px; color: var(--muted); padding: 5px 12px; border-radius: 8px; background: rgba(255,255,255,.04); white-space: nowrap; }
.b-tabs { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.b-tabs button { font: 500 12.5px var(--font); color: var(--muted); background: none; border: 1px solid transparent; padding: 7px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: color .2s, background .2s; }
.b-tabs button:hover { color: var(--text); }
.b-tabs button.on { color: var(--accent-ink); background: var(--accent); }
.b-screen { position: relative; aspect-ratio: 16 / 10; background: #0b0d0c; }
.b-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.b-screen video.on { opacity: 1; }
.b-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.08); }
.b-prog i { display: block; height: 100%; width: 0; background: var(--accent); }

.phones { max-width: 1100px; margin: clamp(70px, 10vw, 130px) auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 4vw, 56px); align-items: start; }
.phone-f { margin: 0; text-align: center; }
.pf-screen { aspect-ratio: 390 / 844; border-radius: 44px; padding: 9px; background: #181c19; border: 1px solid var(--line-2); box-shadow: 0 40px 90px rgba(0,0,0,.55); overflow: hidden; position: relative; }
.pf-screen::after { content: ""; position: absolute; top: 17px; left: 50%; width: 28%; height: 22px; margin-left: -14%; border-radius: 999px; background: #050605; }
.pf-screen img, .pf-screen video { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 36px; display: block; }
.phone-f figcaption { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.p1 { margin-top: 70px; } .p3 { margin-top: 140px; }
.p1 .pf-screen { animation: float 10s ease-in-out infinite; } .p2 .pf-screen { animation: float 9s ease-in-out infinite -3s; } .p3 .pf-screen { animation: float 11s ease-in-out infinite -6s; }

.shots-head { max-width: 1240px; margin: clamp(70px, 10vw, 130px) auto 18px; display: flex; justify-content: space-between; align-items: baseline; }
.shots-head h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 300; }
.shots-head .muted { font-size: 13px; }
.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(var(--gutter), calc((100vw - 1240px) / 2)) 20px; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: thin; scrollbar-color: #2a2f2b transparent; outline: none; }
.shot { flex: 0 0 min(560px, 82vw); margin: 0; scroll-snap-align: start; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0,0,0,.45); transition: transform .5s var(--ease); }
.shot:hover img { transform: translateY(-4px); }
.shot figcaption { margin-top: 14px; font-size: 13.5px; color: var(--muted); max-width: 46ch; }
.shot figcaption b { display: block; color: var(--text); font-weight: 500; font-size: 15px; margin-bottom: 2px; }

.phone-screen.real img { position: static; transform: none; animation: none; object-fit: cover; object-position: top; }

@media (max-width: 900px) {
  .b-bar { flex-wrap: wrap; } .b-url { display: none; } .b-tabs { margin-left: 0; width: 100%; }
  .browser { margin: 0 calc(-1 * var(--gutter) + 8px); }
  .phones { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 10px; scrollbar-width: none; }
  .phone-f { scroll-snap-align: center; } .p1, .p3 { margin-top: 0; }
  .pf-screen { border-radius: 36px; } .pf-screen img, .pf-screen video { border-radius: 28px; }
}

.pf-screen::after { display: none; }

.xh-label { opacity: 0; }
.avs-pin, .avs-probe { opacity: 0; }

/* Hero step 04: routes */
.xh-routes-legend { grid-template-columns: repeat(3, auto); gap: 6px 16px; text-transform: none; letter-spacing: 0; font-family: var(--font); font-size: 12px; color: #c9d0c7; }
.xh-routes-legend span { display: inline-flex; align-items: center; gap: 7px; }
.xh-routes-legend i { height: 2px; width: 26px; border-radius: 0; background: none; }
.xh-routes-legend .lg-hike { background: repeating-linear-gradient(90deg, #e6edf5 0 5px, transparent 5px 9px); }
.xh-routes-legend .lg-alp { height: 3px; background: #fff; box-shadow: 0 0 8px rgba(255,255,255,.8); }
.xh-routes-legend .lg-hut { width: 9px; height: 9px; border-radius: 2px; background: #fff; }
.xh-routes-legend em { font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; color: var(--muted); text-align: left; }
.lab-hut, .lab-route { margin: -58px 0 0 -4px; }
.lab-hut::before { content: ""; position: absolute; left: 0; top: 54px; width: 8px; height: 8px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 3px rgba(0,0,0,.35); }
.lab-hut .ln, .lab-route .ln { left: 4px; top: 22px; width: 1px; height: 32px; background: rgba(255,255,255,.6); }
.lab-route::before { content: ""; position: absolute; left: -1px; top: 53px; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #fff; background: rgba(255,255,255,.3); }
.lab-route b { font-size: 13px; }
@media (max-width: 900px) {
  .xh-routes-legend { grid-template-columns: auto auto auto; gap: 4px 10px; font-size: 10.5px; }
  .xh-routes-legend em { grid-column: 1 / -1; }
  .xh-steps { gap: 10px; }
}

/* ───────── Brand: Aspect mark + tracked uppercase wordmark (as in the app) ───────── */
.brand .logo { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); }
.brand .logo .mark { width: 15px; height: 15px; display: block; transform: translateY(-0.5px); }
.brand > .logo + span { font-size: 14px; }
.xh-mark { width: 11px; height: 11px; display: inline-block; vertical-align: -1px; margin-right: 8px; color: var(--text); }
.cta-mark { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.25); background: radial-gradient(circle, rgba(232,236,230,.12), rgba(232,236,230,.02)); box-shadow: 0 0 60px rgba(232,236,230,.08); }
.cta-mark svg { width: 30px; height: 30px; color: var(--text); }
.cta-word { margin: 0 0 18px; text-transform: uppercase; letter-spacing: .32em; font-size: 13px; color: #c9d0c7; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-brand svg { width: 16px; height: 16px; }

/* ───────── Data side ───────── */
.data { background: linear-gradient(180deg, var(--bg), #0d100f 40%, var(--bg)); }
.pipe { position: relative; max-width: 1300px; margin: 0 auto; display: flex; justify-content: space-between; gap: 22px; align-items: center; padding: 10px 0; }
.pipe-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.pipe-line { fill: none; stroke: rgba(226, 238, 228, .14); stroke-width: 1; }
.pipe-dot { fill: #fff; filter: drop-shadow(0 0 4px rgba(255,255,255,.9)); }
.pipe-col { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 9px; flex: 1 1 0; min-width: 0; }
.pc-h { margin: 0 0 4px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }
.dn { position: relative; padding: 10px 12px; border-radius: 12px; background: rgba(17, 20, 18, .92); border: 1px solid var(--line); font-size: 13px; line-height: 1.3; transition: border-color .4s, box-shadow .4s; }
.dn b { display: block; font-weight: 500; }
.dn small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.dn .tag { position: absolute; right: 8px; top: 8px; margin: 0; font-size: 8.5px; padding: 2px 6px; }
.dn.big { padding: 18px 16px; }
.dn.big b { font-size: 16px; }
.dn.glow { border-color: rgba(255,255,255,.35); box-shadow: 0 0 40px rgba(232,236,230,.08), inset 0 0 0 1px rgba(255,255,255,.05); }
.dn.ping { animation: dnping .6s ease-out; }
@keyframes dnping { 0% { border-color: rgba(255,255,255,.6); box-shadow: 0 0 18px rgba(255,255,255,.15); } 100% { border-color: var(--line); } }
.dn.glow.ping { animation: none; }
@media (max-width: 900px) {
  .pipe { flex-direction: column; align-items: stretch; gap: 30px; }
  .pipe-col { flex-direction: row; flex-wrap: wrap; }
  .pipe-col .pc-h { width: 100%; }
  .pipe-col .dn { flex: 1 1 140px; }
  .dn .tag { position: static; display: inline-block; margin-top: 6px; }
}

.engine { max-width: 1300px; margin: clamp(60px, 9vw, 110px) auto 0; display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.eng-side { display: grid; gap: 16px; align-content: start; }
.eng-card { padding: 22px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow); }
.eng-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.eng-h { margin: 0; font-size: 17px; font-weight: 500; }
.eng-sub { margin: 2px 0 0; font-size: 13px; }
.eng-seg { display: inline-flex; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 999px; padding: 2px; gap: 2px; }
.eng-seg button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; cursor: pointer; color: var(--muted); font: 500 12.5px var(--font); }
.eng-seg button.on { background: var(--accent-soft); color: var(--text); box-shadow: 0 0 0 1px rgba(232,236,230,.22) inset; }
.eng-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 10px; }
.eng-rose { width: 100%; max-width: 330px; margin: 0 auto; overflow: visible; }
.er-ring { fill: none; stroke: rgba(255,255,255,.07); }
.er-bar { fill: #e8ece6; }
.eng-rose text { fill: var(--muted); font: 600 10px var(--font); }
.eng-rose .er-val { fill: #c9d0c7; font: 500 9px var(--mono); }
.eng-rose .er-unit { fill: var(--muted); font: 500 8.5px var(--mono); }
.eng-list { margin: 0; display: grid; gap: 0; font-size: 13.5px; }
.eng-list div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.eng-list dt { color: var(--muted); }
.eng-list dd { margin: 0; text-align: right; }
.eng-list b { font-weight: 500; font-variant-numeric: tabular-nums; }
.eng-list em { font-style: normal; color: var(--muted); font-size: 12px; }
.eng-fine { margin-top: 16px; }
.qc { width: 100%; height: 110px; margin: 12px 0 8px; }
.qc-line { fill: none; stroke: #eef1ec; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.qc-band { opacity: .9; }
.qc-band.spike { fill: rgba(232, 236, 230, .16); }
.qc-band.stuck { fill: rgba(152, 162, 153, .16); }
.qc-band.gap { fill: none; stroke: rgba(255,255,255,.35); stroke-dasharray: 3 3; }
.qc-flags { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; color: #c9d0c7; }
.qc-flags span { display: inline-flex; align-items: center; gap: 6px; }
.qf { width: 12px; height: 10px; border-radius: 2px; display: inline-block; }
.qf.spike { background: rgba(232, 236, 230, .35); } .qf.stuck { background: rgba(152, 162, 153, .4); } .qf.gap { border: 1px dashed rgba(255,255,255,.5); }
.alert-card { border-color: rgba(255,255,255,.22); }
.al-top { display: flex; align-items: center; gap: 9px; }
.al-top b { font-weight: 600; } .al-top time { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.al-body { margin: 10px 0 0; font-size: 14px; color: #c9d0c7; }
.al-label { margin: 10px 0 14px; font-size: 11.5px; color: var(--muted); padding: 7px 10px; border: 1px dashed var(--line-2); border-radius: 10px; }
.alert-card.acked .pulse { animation: none; background: var(--muted); }
.al-ack:disabled { opacity: .7; cursor: default; transform: none; }
@media (max-width: 1000px) { .engine { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .eng-body { grid-template-columns: 1fr; } }

.data-rules { max-width: 1300px; margin: clamp(50px, 7vw, 90px) auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.data-rules > div { padding: 22px 20px 0 0; }
.data-rules b { font-weight: 500; font-size: 15px; }
.data-rules p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; max-width: 30ch; }
@media (max-width: 900px) { .data-rules { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .data-rules { grid-template-columns: 1fr; } }
.cta-bg { opacity: .35; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 40% 45% at 50% 52%, rgba(11,13,12,.85), transparent 75%); }
.cta-inner .lede { color: #d5dcd3; }

/* Hero copy swaps with the step instead of disappearing */
.xh-texts { display: grid; }
.xh-text { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity .55s, transform .65s var(--ease); pointer-events: none; }
.xh-text.on { opacity: 1; transform: none; pointer-events: auto; transition-delay: .12s; }
.xh-h { margin: 0; font-size: clamp(38px, 4.8vw, 74px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.04; }
@media (max-width: 900px) { .xh-h { font-size: 34px; } }
