/* ==========================================================================
   Mago Solutions, styles.css (core: tokens, base, backdrops, nav, hero,
   proof, pillars, control room, process). Components live in app.css.
   ========================================================================== */

:root {
  --bg: #07080c;
  --bg-2: #0b0d14;
  --bg-3: #10131c;
  --ink: #e9ebf1;
  --ink-2: #b9becd;
  --mute: #8b91a5;
  --line: rgba(233, 235, 241, 0.08);
  --line-2: rgba(233, 235, 241, 0.16);
  --ember: #ff6a3d;
  --amber: #ffb547;
  --violet: #7b61ff;
  --mint: #5be3a3;
  --grad: linear-gradient(135deg, #ff6a3d 0%, #ffb547 100%);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --radius: 20px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --section: clamp(88px, 13vh, 160px);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.has-cursor { cursor: none; }
body.has-cursor a, body.has-cursor button { cursor: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
::selection { background: rgba(255, 106, 61, 0.35); color: #fff; }

.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: var(--section) 0; position: relative; }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vh, 72px); }
.section__head .lede { margin-top: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main { position: relative; z-index: 1; }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0;
}
.h-xl { font-size: clamp(2.9rem, 8.6vw, 6.9rem); }
.h-lg { font-size: clamp(2.25rem, 5.6vw, 4.4rem); }
.h-md { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7em;
  font: 500 0.74rem/1 var(--font-mono);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ember); box-shadow: 0 0 12px var(--ember);
}
.lede { font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mute { color: var(--mute); }
.mono { font-family: var(--font-mono); }

/* masked line reveals (app.js wraps words in .w > .wi; hidden only while JS runs the reveal) */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.14em 0.02em 0.1em; margin: -0.14em -0.02em -0.1em; }
.split .wi { display: inline-block; will-change: transform; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.6em;
  padding: 1em 1.6em; border-radius: 999px;
  font: 600 0.95rem/1 var(--font-body); letter-spacing: -0.01em;
  white-space: nowrap; will-change: transform;
  transition: transform 0.6s var(--ease-out), box-shadow 0.5s, border-color 0.3s, background 0.3s;
}
.btn--primary {
  color: #160a05; background: var(--grad);
  box-shadow: 0 0 0 1px rgba(255, 181, 71, 0.25), 0 12px 40px -12px rgba(255, 106, 61, 0.7);
}
.btn--primary:hover { box-shadow: 0 0 0 1px rgba(255, 181, 71, 0.5), 0 18px 50px -10px rgba(255, 106, 61, 0.85); }
.btn--ghost {
  color: var(--ink); border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover { border-color: rgba(233, 235, 241, 0.34); background: rgba(255, 255, 255, 0.05); }
.btn .arrow { display: inline-block; transition: transform 0.45s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--sm { padding: 0.8em 1.25em; font-size: 0.85rem; }

/* ---------- backdrops: aurora, grain, cursor ---------- */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.32; will-change: transform;
}
.aurora span:nth-child(1) {
  width: 62vmax; height: 62vmax; left: -22vmax; top: -28vmax;
  background: radial-gradient(closest-side, rgba(123, 97, 255, 0.5), transparent 72%);
  animation: drift1 28s var(--ease-in-out) infinite alternate;
}
.aurora span:nth-child(2) {
  width: 52vmax; height: 52vmax; right: -18vmax; top: 18vh;
  background: radial-gradient(closest-side, rgba(255, 106, 61, 0.38), transparent 72%);
  animation: drift2 34s var(--ease-in-out) infinite alternate;
}
.aurora span:nth-child(3) {
  width: 46vmax; height: 46vmax; left: 30vw; bottom: -30vmax;
  background: radial-gradient(closest-side, rgba(255, 181, 71, 0.22), transparent 72%);
  animation: drift1 40s var(--ease-in-out) infinite alternate-reverse;
}
@keyframes drift1 { to { transform: translate(12vmax, 10vmax) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-10vmax, -9vmax) scale(0.9); } }

.grain {
  position: fixed; inset: -50%; z-index: 9990; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: grain 1.4s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-2%, 3%); } 40% { transform: translate(3%, -2%); }
  60% { transform: translate(-1%, -3%); } 80% { transform: translate(2%, 2%); } 100% { transform: translate(0, 0); }
}

.cursor, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 10000; border-radius: 50%;
  transform: translate(-50%, -50%); mix-blend-mode: difference; opacity: 0;
}
.cursor { width: 8px; height: 8px; background: #fff; }
.cursor-ring { width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, 0.75); transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out); }
body.has-cursor .cursor, body.has-cursor .cursor-ring { opacity: 1; }
body.is-hovering .cursor-ring { width: 68px; height: 68px; }
body.is-pressing .cursor-ring { width: 24px; height: 24px; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-ring { display: none; } }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 18px var(--gutter); transition: padding 0.5s var(--ease-out); }
.nav__pill {
  margin-inline: auto; width: min(var(--max), 100%);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 10px 10px 10px 18px; border-radius: 999px; border: 1px solid transparent;
  transition: width 0.6s var(--ease-out), background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.nav.is-scrolled { padding-top: 10px; }
.nav.is-scrolled .nav__pill {
  width: min(1000px, 100%);
  background: rgba(11, 13, 20, 0.62); border-color: var(--line);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 10px 40px -20px rgba(0, 0, 0, 0.8);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand small { font: 500 0.6rem/1 var(--font-mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute); margin-top: 0.15em; }
.nav__links { display: flex; gap: 2px; }
.nav__links a {
  display: block; padding: 0.62em 0.95em; border-radius: 999px;
  font-size: 0.9rem; font-weight: 500; color: var(--ink-2);
  transition: color 0.3s, background 0.3s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.nav__cta { display: flex; align-items: center; gap: 8px; }
.burger {
  display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px; background: rgba(255, 255, 255, 0.03);
}
.burger i { width: 18px; height: 1.5px; background: var(--ink); transition: transform 0.4s var(--ease-out), opacity 0.3s; }
.burger.is-open i:first-child { transform: translateY(3.25px) rotate(45deg); }
.burger.is-open i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav__links, .nav__cta .btn { display: none; }
  .burger { display: flex; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; isolation: isolate; overflow: hidden;
  display: grid; align-items: end;
  padding: calc(110px + 8vh) 0 clamp(56px, 9vh, 110px);
}
#field {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block;
  -webkit-mask-image: radial-gradient(110% 95% at 68% 32%, #000 32%, transparent 74%), linear-gradient(#000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(110% 95% at 68% 32%, #000 32%, transparent 74%), linear-gradient(#000 72%, transparent 100%);
  mask-composite: intersect;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.hero h1 { font-size: clamp(2.9rem, 7.4vw, 6.4rem); max-width: 12ch; }
.hero h1 .dis { white-space: nowrap; }
.hero h1 .dis span { display: inline-block; will-change: transform, opacity, filter; }
.hero .lede { margin-top: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__aside { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.chip {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 14px; border-radius: 16px;
  border: 1px solid var(--line-2); background: rgba(11, 13, 20, 0.55);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  font: 500 0.74rem/1.4 var(--font-mono); color: var(--ink-2);
}
.chip__pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex: none; }
.chip__pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--mint); animation: pulse 2s var(--ease-out) infinite; }
@keyframes pulse { from { transform: scale(0.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.chip b { display: inline-block; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.chip b.bump { animation: bump 0.5s var(--ease-out); }
@keyframes bump { 30% { transform: translateY(-3px); color: var(--amber); } }
.chip small { display: block; color: var(--mute); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.62rem; }
.hero__note { font-size: 0.85rem; color: var(--mute); max-width: 30ch; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font: 500 0.62rem/1 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute);
}
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--mute), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--amber); transform: translateY(-100%); animation: cue 1.8s var(--ease-in-out) infinite; }
@keyframes cue { to { transform: translateY(100%); } }
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .hero__aside { flex-direction: row; align-items: center; gap: 20px; }
}
@media (max-width: 900px) {
  .hero { padding-top: calc(96px + 6vh); }
  .hero__aside { flex-direction: column; align-items: flex-start; }
  .scroll-cue { display: none; }
}

/* ---------- proof strip ---------- */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); }
.proof__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(28px, 4vw, 44px) clamp(20px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__num { display: block; font: 700 clamp(2.1rem, 4vw, 3.4rem)/1 var(--font-display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.stat__label { display: block; margin-top: 12px; font-size: 0.9rem; line-height: 1.45; color: var(--mute); max-width: 26ch; }
@media (max-width: 900px) {
  .proof__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 460px) {
  .proof__grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; }
  .stat:nth-child(n + 2) { border-top: 1px solid var(--line); }
}

/* ---------- pillars (editorial index) ---------- */
.pillar {
  display: grid; grid-template-columns: 72px minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(20px, 3vw, 40px); align-items: start;
  padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line);
}
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar__num { font: 500 0.8rem/1 var(--font-mono); color: var(--amber); padding-top: 0.7em; }
.pillar__title { font-size: clamp(1.85rem, 3.8vw, 3.1rem); }
.pillar__promise { margin: 18px 0 22px; font-size: 1.08rem; line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font: 500 0.7rem/1 var(--font-mono); letter-spacing: 0.06em;
  padding: 0.7em 0.95em; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2);
  transition: border-color 0.3s, color 0.3s;
}
.pillar:hover .tag { border-color: rgba(255, 181, 71, 0.35); color: var(--ink); }
.pillar__art {
  aspect-ratio: 16 / 10; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.005));
  position: relative; overflow: hidden;
}
.pillar__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pillar--quiet { grid-template-columns: 72px 1fr; padding: 28px 0; align-items: center; }
.pillar--quiet .pillar__title { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; color: var(--ink-2); }
.pillar--quiet .pillar__promise { margin: 8px 0 0; font-size: 0.95rem; color: var(--mute); }
@media (max-width: 900px) {
  .pillar { grid-template-columns: 1fr; gap: 20px; }
  .pillar__num { padding-top: 0; }
  .pillar__art { aspect-ratio: 16 / 9; }
  .pillar--quiet { grid-template-columns: 1fr; }
}

/* art 1: flows */
.art-flow .track { stroke: rgba(233, 235, 241, 0.12); stroke-width: 1; }
.art-flow .flow { stroke: url(#gradEmber); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 26 220; animation: flow 3.2s linear infinite; }
.art-flow .flow:nth-child(2) { animation-delay: -1.1s; } .art-flow .flow:nth-child(3) { animation-delay: -2.2s; }
@keyframes flow { to { stroke-dashoffset: -246; } }
.art-flow .gate { fill: var(--bg-3); stroke: rgba(233, 235, 241, 0.25); }
.art-flow .gate-on { fill: var(--amber); transform-origin: center; animation: gate 3.2s steps(1) infinite; }
@keyframes gate { 0%, 45% { opacity: 0.2; } 50%, 100% { opacity: 1; } }
/* art 2: blocks assembling */
.art-blocks rect { fill: rgba(233, 235, 241, 0.06); stroke: rgba(233, 235, 241, 0.22); transform-origin: center; transform-box: fill-box; animation: block 4.8s var(--ease-out) infinite; animation-delay: calc(var(--d, 0) * 0.22s); }
.art-bars rect { animation-delay: calc(var(--d, 0) * 0.12s); }
.art-blocks rect.hot { fill: rgba(255, 106, 61, 0.35); stroke: var(--amber); }
@keyframes block { 0% { transform: scale(0.6) translateY(16px); opacity: 0; } 18%, 80% { transform: none; opacity: 1; } 95%, 100% { transform: scale(0.96); opacity: 0; } }
/* art 3: bars + line */
.art-bars rect { fill: rgba(233, 235, 241, 0.12); transform-origin: bottom; transform-box: fill-box; animation: bar 4.5s var(--ease-out) infinite; animation-delay: calc(var(--d, 0) * 0.12s); }
.art-bars rect.hot { fill: url(#gradEmberV); }
@keyframes bar { 0% { transform: scaleY(0.08); } 25%, 85% { transform: none; } 100% { transform: scaleY(0.08); } }
.art-bars .line { fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 4.5s var(--ease-out) infinite; }
@keyframes draw { 0% { stroke-dashoffset: 400; } 40%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 400; } }
.pillar__art:not(.is-inview) * { animation-play-state: paused; }

/* ---------- control room ---------- */
.room__panel {
  border-radius: 24px; border: 1px solid var(--line-2); overflow: hidden;
  background: linear-gradient(180deg, rgba(16, 19, 28, 0.92), rgba(11, 13, 20, 0.92));
  box-shadow: 0 50px 140px -50px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  will-change: transform;
}
.room__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); font: 500 0.7rem/1 var(--font-mono); letter-spacing: 0.08em; color: var(--mute); }
.room__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.room__bar i:first-child { background: var(--ember); }
.room__bar span { margin-left: 10px; white-space: nowrap; }
@media (max-width: 560px) { .room__bar .mute { display: none; } }
.room__bar .live { margin-left: auto; color: var(--mint); display: inline-flex; align-items: center; gap: 8px; }
.room__bar .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.room__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr); }
.room__main { padding: 22px; border-right: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr; gap: 16px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); min-width: 0; }
.kpi__label { font: 500 0.64rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.kpi__val { margin-top: 10px; font: 700 clamp(1.25rem, 2vw, 1.7rem)/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kpi__delta { margin-top: 8px; font: 500 0.68rem/1 var(--font-mono); color: var(--mint); }
.kpi__delta.down { color: var(--ember); }
.chart { position: relative; border-radius: 14px; border: 1px solid var(--line); padding: 16px 16px 10px; min-height: 230px; display: grid; grid-template-rows: auto 1fr; gap: 8px; }
.chart__head { display: flex; justify-content: space-between; font: 500 0.64rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.chart svg { width: 100%; height: 100%; min-height: 160px; overflow: visible; }
.chart .grid line { stroke: rgba(233, 235, 241, 0.07); }
.chart .area { fill: url(#gradArea); opacity: 0; transition: opacity 1s 0.8s; }
.chart .spark { fill: none; stroke: var(--amber); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .bars rect { fill: rgba(233, 235, 241, 0.14); transform-origin: bottom; transform-box: fill-box; transform: scaleY(0); }
.chart .bars rect.hot { fill: url(#gradEmberV); }
.chart .dot { fill: var(--amber); filter: drop-shadow(0 0 6px var(--amber)); opacity: 0; }
.room__panel.is-on .chart .area { opacity: 1; }
.room__panel.is-on .chart .bars rect { animation: barIn 1s var(--ease-out) forwards; }
@keyframes barIn { to { transform: none; } }
.log { padding: 18px 20px; font: 400 0.76rem/1.75 var(--font-mono); color: var(--ink-2); position: relative; overflow: hidden; min-height: 320px; }
.log__head { font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.log__line { display: flex; gap: 12px; align-items: flex-start; opacity: 0; transform: translateY(8px); transition: opacity 0.45s, transform 0.45s var(--ease-out); }
.log__line.is-on { opacity: 1; transform: none; }
.log__time { color: var(--mute); flex: none; }
.log__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); flex: none; margin-top: 0.62em; }
.log__dot.warn { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.log::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(transparent, rgba(11, 13, 20, 0.95)); pointer-events: none; }
@media (max-width: 900px) {
  .room__grid { grid-template-columns: 1fr; }
  .room__main { border-right: 0; border-bottom: 1px solid var(--line); }
  .log { min-height: 260px; }
}
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr 1fr; } .kpi:nth-child(3) { grid-column: 1 / -1; } }

/* ---------- process (pinned horizontal) ---------- */
.process { overflow: hidden; }
.process__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 80px 0; }
.process__track { display: flex; gap: clamp(16px, 2vw, 28px); padding-left: var(--gutter); will-change: transform; }
.step {
  flex: 0 0 min(560px, 82vw); min-height: 380px; padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px; position: relative; overflow: hidden;
}
.step::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 181, 71, 0.09), transparent 45%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.step:hover::before { opacity: 1; }
.step__num { position: absolute; right: 20px; top: 8px; font: 700 clamp(4.5rem, 9vw, 8rem)/1 var(--font-display); letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px rgba(233, 235, 241, 0.16); pointer-events: none; }
.step h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-top: 48px; }
.step p { margin-top: 14px; color: var(--ink-2); max-width: 40ch; }
.step__tag { align-self: flex-start; }
.process__progress { height: 1px; background: var(--line-2); margin: 36px var(--gutter) 0; position: relative; }
.process__progress i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--grad); }
.process__end { flex: 0 0 var(--gutter); }
@media (max-width: 900px) {
  .process__pin { min-height: 0; padding: 0; }
  .process__track { flex-direction: column; padding-right: var(--gutter); transform: none !important; }
  .step { flex-basis: auto; min-height: 0; }
  .step h3 { margin-top: 40px; }
  .process__progress, .process__end { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .grain { animation: none; }
  .split .wi { transform: none; }
  .cursor, .cursor-ring { display: none; }
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: auto; }
}
