/* RUTEGO marketing site — designer presentation prototype */
@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #0a0b0d;
  --bg-elev: #12141a;
  --surface: #f3f0ea;
  --surface-2: #fffdf9;
  --ink: #12141a;
  --ink-soft: #3a3f4a;
  --muted: #6b707a;
  --line: #e4dfd6;
  --line-dark: rgba(255,255,255,.12);
  --red: #F01F01;
  --red-d: #c41800;
  --ok: #1a7f4b;
  --warn: #b45309;
  --radius: 14px;
  --radius-lg: 22px;
  --font: 'Golos Text', 'Segoe UI', system-ui, sans-serif;
  --display: 'Golos Text', 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --paper: #f5f7fb;
  --shadow: 0 24px 60px rgba(10,11,13,.18);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.55 var(--font);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

/* proto chrome */
.proto-bar {
  background: #1c1c1e; color: #9a9a9e; font-size: 12px;
  padding: 7px 18px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  position: relative; z-index: 60;
}
.proto-bar a { color: #fff; font-weight: 600; }
.proto-bar .sep { opacity: .35; }

/* nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: nowrap;
  padding: 14px 28px;
  background: rgba(10,11,13,.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  color: #f4f2ee;
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line-dark);
}
.site-nav .brand {
  flex: 0 0 auto;
  display: flex; align-items: center;
  margin-right: 4px;
}
.site-nav .brand img { height: 26px; width: auto; }
.site-nav-links {
  display: flex;
  align-items: center;
  gap: 6px 18px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
}
.site-nav a.navl {
  color: rgba(244,242,238,.68);
  font-size: 13.5px; font-weight: 500;
  padding: 6px 2px;
  white-space: nowrap;
  transition: color .15s;
}
.site-nav a.navl:hover,
.site-nav a.navl.on { color: #fff; }
.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}
.site-nav-actions .navl { white-space: nowrap; }
/* legacy spacer — не ломает вёрстку, если остался в разметке */
.site-nav .spacer { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: none; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 14px;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-red {
  background: var(--red); color: #fff;
  box-shadow: 0 8px 24px rgba(240,31,1,.35);
}
.btn-red:hover { background: var(--red-d); }
.btn-ghost {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.28);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-lg { padding: 14px 26px; font-size: 15px; }

/* HERO — branded frame: logo, red mark, product object */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #f4f2ee;
  overflow: hidden;
  background: #07080b;
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
  background:
    linear-gradient(100deg, rgba(7,8,11,.78) 0%, rgba(7,8,11,.28) 46%, rgba(7,8,11,.08) 100%),
    linear-gradient(180deg, rgba(7,8,11,.12) 0%, rgba(7,8,11,.5) 100%),
    url('img/hero.jpg') right center/cover no-repeat;
  transform: scale(1.04);
  animation: hero-ken 22s ease-in-out infinite alternate;
}
@keyframes hero-ken {
  from { transform: scale(1.04) translate3d(0,0,0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}
.hero-mark { display: none; }
.hero-stage {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
  padding: 72px 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 28px 40px;
  align-items: center;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: .98;
  letter-spacing: -0.045em;
  max-width: 11ch;
  margin: 0 0 16px;
  color: #fff;
}
.hero h1 em {
  font-style: normal;
  font-weight: 800;
  color: var(--red);
}
.hero-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(244,242,238,.55);
  margin: 0 0 14px;
}
.hero .sub {
  font-size: clamp(17px, 1.7vw, 20px);
  color: rgba(244,242,238,.78);
  margin: 0 0 8px;
  font-weight: 500;
  max-width: 34ch;
  line-height: 1.4;
}
.hero .sub b { color: #fff; font-weight: 700; }
.hero .proof {
  font-size: 14.5px;
  color: rgba(244,242,238,.5);
  margin: 0 0 26px;
  max-width: 42ch;
}
.hero .btn { border-radius: 13px; }
.hero .btn-red {
  background: var(--red);
  box-shadow: 0 16px 40px -14px rgba(240,31,1,.9);
}
.hero .btn-ghost {
  background: rgba(7,8,11,.45);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
}

.hero-object {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}
.hero-ring {
  position: absolute;
  width: min(460px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(240,31,1,.45);
  box-shadow: 0 0 80px rgba(240,31,1,.25), inset 0 0 60px rgba(240,31,1,.08);
  animation: ring-spin 28s linear infinite;
}
.hero-ring::before {
  content: '';
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.18);
}
@keyframes ring-spin { to { transform: rotate(360deg); } }
.hero-ring,
.hero-device { display: none; }
.hero-device {
  position: relative;
  z-index: 2;
  width: min(420px, 92%);
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow:
    0 30px 80px rgba(0,0,0,.55),
    0 0 0 1px rgba(240,31,1,.25),
    0 0 60px rgba(240,31,1,.2);
  transform: rotate(-7deg) translateY(8px);
  animation: device-float 7s ease-in-out infinite;
}
.hero-device img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: left top;
}
@keyframes device-float {
  0%, 100% { transform: rotate(-7deg) translateY(8px); }
  50% { transform: rotate(-5deg) translateY(-6px); }
}
.hero-callout {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 18%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.hero-pin {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(240,31,1,.25);
  flex: 0 0 auto;
}
.hero-callout b {
  display: block;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}
.hero-callout span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: rgba(244,242,238,.7);
}
.hero-scroll {
  position: absolute; z-index: 2; left: 28px; bottom: 22px;
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: rgba(244,242,238,.45);
  letter-spacing: .04em;
}
.hero-scroll span {
  width: 18px; height: 28px; border: 1.5px solid rgba(244,242,238,.35);
  border-radius: 10px; position: relative;
}
.hero-scroll span::after {
  content: ''; position: absolute; left: 50%; top: 6px;
  width: 3px; height: 6px; margin-left: -1.5px;
  border-radius: 2px; background: rgba(244,242,238,.7);
  animation: scroll-dot 1.6s ease-in-out infinite;
}
@keyframes scroll-dot {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: .3; transform: translateY(8px); }
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 10px;
  animation: rise .7s .34s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* sections */
.section {
  max-width: var(--max); margin: 0 auto;
  padding: 72px 28px;
}
.section-head { max-width: 38rem; margin-bottom: 36px; }
.section h2 {
  font-family: var(--display); font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.15;
  margin: 0 0 12px;
}
.section .lead {
  color: var(--muted); font-size: 17px; margin: 0; line-height: 1.55;
}
.eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--red);
  margin-bottom: 10px;
}

/* free task band */
.band-free {
  background: var(--bg); color: #f4f2ee;
  padding: 64px 28px;
}
.band-free-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.band-free h2 {
  font-family: var(--display); font-size: clamp(28px, 3.8vw, 40px);
  letter-spacing: -0.035em; margin: 0 0 14px; line-height: 1.12;
}
.band-free p { color: rgba(244,242,238,.68); font-size: 17px; margin: 0 0 24px; max-width: 36ch; }
.band-free .shot {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  border: 1px solid var(--line-dark);
}
.band-free .shot img { width: 100%; height: 280px; object-fit: cover; }

/* task showcase */
.tasks-panel {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.tasks-layout {
  display: grid; grid-template-columns: .85fr 1.15fr; min-height: 420px;
}
.tasks-visual {
  background: url('img/gate-task.jpg') center/cover;
  position: relative;
}
.tasks-visual::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,11,13,.15), rgba(10,11,13,.45));
}
.tasks-list { padding: 8px 0; }
.task-row {
  display: grid; grid-template-columns: 1fr auto; gap: 16px;
  align-items: center; padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.task-row:last-child { border-bottom: none; }
.task-row:hover { background: #faf7f2; }
.task-row .name { font-weight: 600; font-size: 15px; }
.task-row .est {
  font-family: var(--display); font-weight: 700; font-size: 15px;
  white-space: nowrap; text-align: right;
}
.task-row .est span { display: block; font-weight: 500; color: var(--muted); font-size: 12px; margin-top: 2px; }
.tasks-foot {
  padding: 20px 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  background: #faf7f2;
}

/* how / pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px 24px;
  transition: transform .2s, box-shadow .2s;
}
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pillar .n {
  font-family: var(--display); font-size: 13px; font-weight: 700;
  color: var(--red); letter-spacing: .08em; margin-bottom: 14px;
}
.pillar h3 {
  font-family: var(--display); font-size: 20px; margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.pillar p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* product demo */
.demo-band {
  background: linear-gradient(180deg, #ebe7df 0%, var(--surface) 100%);
  padding: 72px 28px;
}
.demo-inner { max-width: var(--max); margin: 0 auto; }
.demo-frame {
  margin-top: 32px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  background: var(--bg);
}
.demo-frame img { width: 100%; height: auto; max-height: 520px; object-fit: cover; object-position: top; }

/* entries */
.entries { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.entry {
  display: block; padding: 26px 24px; border-radius: var(--radius-lg);
  background: var(--surface-2); border: 1px solid var(--line);
  transition: border-color .15s, transform .15s;
}
.entry:hover { border-color: var(--ink); transform: translateY(-2px); }
.entry h3 {
  font-family: var(--display); font-size: 18px; margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.entry p { margin: 0; color: var(--muted); font-size: 14px; }
.entry .go { margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--red); }

/* trust */
.trust {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch;
}
.trust-img {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  min-height: 280px;
}
.trust-img img { width: 100%; height: 100%; object-fit: cover; }
.trust-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.stat {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 18px;
}
.stat b {
  display: block; font-family: var(--display); font-size: 28px;
  letter-spacing: -0.03em; margin-bottom: 4px;
}
.stat span { font-size: 13px; color: var(--muted); }

/* CTA closing */
.cta-close {
  background: var(--bg); color: #f4f2ee; padding: 80px 28px; text-align: center;
}
.cta-close h2 {
  font-family: var(--display); font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.035em; margin: 0 0 12px; line-height: 1.15;
}
.cta-close p { color: rgba(244,242,238,.65); margin: 0 0 28px; font-size: 17px; }
.cta-close .btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

/* prices page */
.page-hero {
  background: var(--bg); color: #f4f2ee; padding: 56px 28px 48px;
}
.page-hero-inner { max-width: var(--max); margin: 0 auto; }
.page-hero h1 {
  font-family: var(--display); font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.035em; margin: 0 0 12px; max-width: 18ch; line-height: 1.15;
}
.page-hero p { color: rgba(244,242,238,.68); font-size: 17px; margin: 0; max-width: 42ch; }

.pkg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pkg {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px 18px;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .15s, box-shadow .15s;
}
.pkg:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pkg.hi {
  border-color: var(--ink); background: var(--ink); color: #f4f2ee;
}
.pkg.hi .meta, .pkg.hi .sla { color: rgba(244,242,238,.6); }
.pkg .hrs {
  font-family: var(--display); font-size: 32px; font-weight: 800;
  letter-spacing: -0.03em;
}
.pkg .price { font-weight: 600; font-size: 15px; }
.pkg .meta { font-size: 13px; color: var(--muted); }
.pkg .sla {
  font-size: 12px; font-weight: 600; margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--line);
}
.pkg.hi .sla { border-color: rgba(255,255,255,.15); }

.calc {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px; margin-top: 20px;
  box-shadow: var(--shadow);
}
.calc label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.calc input[type=range] { width: 100%; accent-color: var(--red); height: 6px; }
.calc-out {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin: 20px 0;
}
.calc-out div {
  display: flex; justify-content: space-between; padding: 10px 0;
  border-bottom: 1px dashed var(--line); font-size: 14px;
}
.calc-hint { font-size: 13px; color: var(--warn); margin: 0 0 16px; min-height: 1.4em; }

.indiv {
  margin-top: 16px; padding: 28px; border-radius: var(--radius-lg);
  background: var(--bg-elev); color: #f4f2ee;
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start;
}
.indiv h3 { font-family: var(--display); margin: 0 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.indiv p { color: rgba(244,242,238,.62); font-size: 14.5px; margin: 0 0 0; }
.indiv .fields { display: grid; gap: 10px; }
.indiv input, .indiv textarea, .indiv select {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff;
}
.indiv input::placeholder, .indiv textarea::placeholder { color: rgba(255,255,255,.35); }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
}

.reg-wrap { max-width: 440px; margin: 40px auto 80px; padding: 0 20px; }
.reg-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow);
}
.reg-card h1 {
  font-family: var(--display); font-size: 26px; margin: 0 0 8px;
  letter-spacing: -0.03em;
}
.step-dots { display: flex; gap: 6px; margin: 18px 0 22px; }
.step-dots i { width: 32px; height: 4px; border-radius: 2px; background: var(--line); }
.step-dots i.on { background: var(--red); }
.hidden { display: none !important; }

.footer {
  border-top: 1px solid var(--line); padding: 36px 28px 48px;
  color: var(--muted); font-size: 13px;
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px;
}
.footer .brand-f img { height: 24px; margin-bottom: 12px; filter: none; }
.footer b { display: block; color: var(--ink); margin-bottom: 10px; font-size: 13px; }
.footer a { display: block; padding: 3px 0; color: var(--muted); }
.footer a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .band-free-inner, .tasks-layout, .trust, .indiv, .footer-inner { grid-template-columns: 1fr; }
  .pillars, .entries, .pkg-grid { grid-template-columns: 1fr 1fr; }
  .tasks-visual { min-height: 180px; }
  .site-nav { padding: 12px 16px; gap: 10px; }
  .site-nav-links a.navl:not(.keep) { display: none; }
  .site-nav-links { gap: 14px; overflow: hidden; }
}
@media (max-width: 560px) {
  .pillars, .entries, .pkg-grid, .trust-stats, .calc-out { grid-template-columns: 1fr; }
  .site-nav-links a.navl { display: none; }
  .site-nav-links a.navl.keep { display: inline-flex; }
  .site-nav-actions .btn { padding: 10px 14px; font-size: 13px; }
}

.proto-bar,.proto-mini{display:none!important}

/* ========== STORY (Alpine-like liveliness, RUTEGO metaphor) ========== */
.story-page { background: var(--surface); }

.story-rail {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}
.story-rail-meter {
  width: 3px; height: 120px;
  background: rgba(18,20,26,.12);
  border-radius: 2px;
  overflow: hidden;
}
.story-rail-fill {
  width: 100%; height: 0%;
  background: var(--red);
  border-radius: 2px;
  transition: height .2s ease-out;
}
.story-rail-meta {
  text-align: center;
  pointer-events: none;
}
.story-rail-meta b {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.story-rail-meta span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 7em;
}
.story-rail-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: auto;
}
.story-rail-nav a {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  font-family: var(--display);
  font-size: 11px; font-weight: 700;
  color: var(--muted);
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  transition: color .15s, background .15s, border-color .15s;
}
.story-rail-nav a:hover,
.story-rail-nav a.on {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.chapter {
  position: relative;
  padding: 88px 28px 88px 72px;
}
.chapter-dark {
  background: var(--bg);
  color: #f4f2ee;
}
.chapter-tint {
  background: #ebe7df;
}
.chapter-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.chapter-inner.narrow { max-width: 40rem; }
.chapter-num {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.chapter-dark .chapter-num { color: #ff6b5a; }
.chapter h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0 0 16px;
  max-width: 18ch;
}
.chapter h2 em,
.cta-close h2 em {
  font-style: italic;
  font-weight: 600;
}
.chapter-lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 36px;
  max-width: 42ch;
}
.chapter-dark .chapter-lead { color: rgba(244,242,238,.62); }
.chapter-cta { margin-top: 28px; }

.manifest {
  margin: 0;
  padding: 0;
  border: none;
}
.manifest p {
  font-family: var(--display);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: rgba(244,242,238,.78);
  margin: 0 0 22px;
}
.manifest p:last-child { margin-bottom: 0; }
.manifest em {
  font-style: italic;
  color: #fff;
  font-weight: 600;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.feat {
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feat h3 {
  font-family: var(--display);
  font-size: 18px;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.feat p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* path steps + live UI */
.path-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 56px;
}
.path-step:last-child { margin-bottom: 0; }
.path-step.reverse { direction: rtl; }
.path-step.reverse > * { direction: ltr; }
.path-tag {
  font-family: var(--display);
  font-size: 12px; font-weight: 700;
  letter-spacing: .1em;
  color: var(--red);
  margin-bottom: 10px;
}
.path-copy h3 {
  font-family: var(--display);
  font-size: clamp(22px, 2.5vw, 28px);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  line-height: 1.15;
}
.path-copy p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 15.5px;
  max-width: 36ch;
}
.checks {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 8px;
}
.checks li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.checks li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: var(--ok);
  font-weight: 700;
}

.ui-card {
  background: #16181f;
  color: #f4f2ee;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 28px 60px rgba(10,11,13,.28);
  overflow: hidden;
  animation: float-y 7s ease-in-out infinite;
}
.path-step:nth-child(odd) .ui-card { animation-delay: -.8s; }
.path-step:nth-child(even) .ui-card { animation-delay: -2.4s; }
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.ui-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 12px; font-weight: 600;
  color: rgba(244,242,238,.7);
}
.ui-bar i {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.2);
}
.ui-bar i:nth-child(1) { background: #ff5f57; }
.ui-bar i:nth-child(2) { background: #febc2e; }
.ui-bar i:nth-child(3) { background: #28c840; }
.ui-bar .live {
  margin-left: auto;
  color: #ffb020;
  font-style: normal;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ui-bar .ok {
  margin-left: auto;
  color: #3dd68c;
  font-style: normal;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ui-body { padding: 18px 16px 16px; }
.ui-body label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(244,242,238,.4);
  margin: 0 0 6px;
}
.ui-field {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 14px;
  line-height: 1.4;
}
.ui-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.ui-pills span {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255,255,255,.06);
  color: rgba(244,242,238,.55);
  border: 1px solid rgba(255,255,255,.08);
}
.ui-pills span.on {
  background: rgba(240,31,1,.2);
  border-color: rgba(240,31,1,.45);
  color: #ff8a7a;
}
.ui-foot {
  display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px;
}
.ui-foot .ghost,
.ui-foot .act {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--display);
}
.ui-foot .ghost {
  color: rgba(244,242,238,.55);
  border: 1px solid rgba(255,255,255,.14);
}
.ui-foot .act {
  background: var(--red);
  color: #fff;
}
.est-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 14px;
}
.est-row span { color: rgba(244,242,238,.5); }
.est-row b {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: -0.02em;
}
.est-note {
  margin: 12px 0 14px;
  font-size: 13px;
  color: rgba(244,242,238,.5);
  line-height: 1.4;
}
.tl {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0;
}
.tl li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-left: 2px solid rgba(255,255,255,.1);
  margin-left: 8px;
  padding-left: 16px;
  position: relative;
  font-size: 13.5px;
  color: rgba(244,242,238,.7);
}
.tl li::before {
  content: '';
  position: absolute; left: -5px; top: 16px;
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.25);
}
.tl li.done { color: #fff; }
.tl li.done::before { background: #3dd68c; }
.tl time {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  color: rgba(244,242,238,.4);
}

/* cabinet stage */
.cabinet-stage {
  display: grid;
  grid-template-columns: 1.45fr .85fr;
  gap: 16px;
  align-items: start;
}
.ui-dash {
  background: #16181f;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1);
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0,0,0,.35);
}
.dash-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  padding: 22px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.dash-bal span {
  display: block;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(244,242,238,.45);
  margin-bottom: 6px;
}
.dash-bal b {
  display: block;
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.dash-bal small {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(244,242,238,.45);
}
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.dash-kpis div {
  background: rgba(255,255,255,.05);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
}
.dash-kpis span {
  display: block;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(244,242,238,.4);
  margin-bottom: 4px;
}
.dash-kpis b {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -0.02em;
}
.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.dash-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(244,242,238,.4);
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-weight: 600;
}
.dash-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: rgba(244,242,238,.85);
}
.dash-table tr:last-child td { border-bottom: none; }
.pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.pill.ok { background: rgba(61,214,140,.15); color: #3dd68c; }
.pill.work { background: rgba(255,176,32,.15); color: #ffb020; }
.pill.wait { background: rgba(240,31,1,.15); color: #ff8a7a; }
.pill.queue { background: rgba(255,255,255,.08); color: rgba(244,242,238,.55); }

.ui-log {
  background: #16181f;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1);
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0,0,0,.35);
}
.ui-log ul {
  list-style: none; margin: 0; padding: 8px 0 12px;
}
.ui-log li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  color: rgba(244,242,238,.7);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.ui-log li:last-child { border-bottom: none; }
.ui-log time {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  color: rgba(244,242,238,.35);
}
.ui-log b {
  color: #ff8a7a;
  font-weight: 700;
  margin-right: 4px;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.step-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  transition: transform .2s, box-shadow .2s;
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step-card .n {
  font-family: var(--display);
  font-size: 13px; font-weight: 800;
  color: var(--red);
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.step-card h3 {
  font-family: var(--display);
  font-size: 18px;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.step-card p { margin: 0; color: var(--muted); font-size: 14px; }

.start-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  color: #f4f2ee;
}
.start-band h3 {
  font-family: var(--display);
  font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.start-band p {
  margin: 0;
  color: rgba(244,242,238,.62);
  font-size: 14.5px;
}

.cta-close .chapter-num { margin-bottom: 16px; }

@media (max-width: 1100px) {
  .story-rail { display: none; }
  .chapter { padding-left: 28px; }
}
@media (max-width: 900px) {
  .feat-grid, .path-step, .cabinet-stage, .steps-row { grid-template-columns: 1fr; }
  .path-step.reverse { direction: ltr; }
  .dash-top { grid-template-columns: 1fr; }
  .hero-scroll { display: none; }
  .hero-stage { grid-template-columns: 1fr; width: calc(100% - 32px); padding: 88px 0 40px; }
  .hero-object { min-height: 320px; }
  .hero-mark { display: none; }
}

/* cinematic HUD, gates, pin, reveals */
.story-page .site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.story-page .site-nav.is-solid {
  background: rgba(4,6,12,.88);
  border-bottom-color: var(--line-dark);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.story-hud {
  position: fixed;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 45;
  width: 92px;
  color: #f4f2ee;
  mix-blend-mode: difference;
  pointer-events: none;
}
.hud-pct {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: .9;
  font-size: 42px;
}
.hud-pct span { font-size: 16px; font-weight: 600; margin-left: 1px; }
.hud-label {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .75;
}
.hud-bar {
  margin: 12px 0 10px;
  height: 2px;
  background: rgba(255,255,255,.28);
  border-radius: 2px;
  overflow: hidden;
}
.hud-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: #fff;
}
.hud-hours { font-size: 12px; opacity: .7; }
.hud-hours b { font-weight: 700; opacity: 1; }

.chapter { padding: 96px 28px; }
.chapter-manifest { min-height: 88vh; display: flex; align-items: center; }
.manifest p { font-size: clamp(22px, 3vw, 34px); }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.feat-grid .reveal:nth-child(2),
.steps-row .reveal:nth-child(2) { transition-delay: .08s; }
.feat-grid .reveal:nth-child(3),
.steps-row .reveal:nth-child(3) { transition-delay: .16s; }
.feat-grid .reveal:nth-child(4),
.steps-row .reveal:nth-child(4) { transition-delay: .24s; }

.gate {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  background: var(--bg) var(--gate) center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.gate-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,11,13,.15), rgba(10,11,13,.72)),
    linear-gradient(90deg, rgba(10,11,13,.55), transparent 60%);
}
.gate-copy {
  position: relative;
  z-index: 1;
  padding: 48px 8vw 56px;
}
.gate-copy strong {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(72px, 14vw, 160px);
  letter-spacing: -0.06em;
  line-height: .85;
}
.gate-copy span {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .75;
}

.pin-scene { position: relative; height: 280vh; background: var(--surface); }
.pin-sticky {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: calc(var(--max) + 56px);
  margin: 0 auto;
  padding: 24px 28px;
}
.pin-slides { position: relative; min-height: 160px; margin-top: 18px; }
.pin-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
}
.pin-slide.on { opacity: 1; transform: none; pointer-events: auto; }
.pin-slide h3 {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  line-height: 1.1;
}
.pin-slide p { margin: 0; color: var(--ink-soft); max-width: 34ch; font-size: 16px; }
.pin-dots { display: flex; gap: 8px; margin-top: 22px; }
.pin-dots i {
  width: 28px; height: 3px; border-radius: 2px;
  background: var(--line); display: block;
  transition: background .3s, width .3s;
}
.pin-dots i.on { background: var(--red); width: 44px; }
.pin-stage { position: relative; min-height: 340px; }
.pin-stage .ui-card {
  animation: none;
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  transition: opacity .4s ease, transform .45s ease;
}
.pin-stage .ui-card[hidden] { display: none; }

.type-field { min-height: 3.2em; }
.type-field.typed { box-shadow: inset 0 0 0 1px rgba(240,31,1,.35); }
.pill-urg.on {
  background: rgba(240,31,1,.22) !important;
  border-color: rgba(240,31,1,.5) !important;
  color: #ff8a7a !important;
}
.live-tl li { opacity: .28; transition: opacity .35s ease, color .35s; }
.live-tl li.lit { opacity: 1; }
.live-tl li.done { color: #fff; }
.live-tl li.done::before { background: #3dd68c; }

.bal-track {
  margin-top: 14px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
}
.bal-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--red);
  transition: width 1.1s cubic-bezier(.2,.7,.2,1);
}
.live-rows tbody tr,
.live-log li {
  opacity: 0;
  transform: translateY(8px);
}
.live-rows.show tbody tr,
.live-log.show li {
  animation: row-in .5s ease forwards;
}
.live-rows.show tbody tr:nth-child(2),
.live-log.show li:nth-child(2) { animation-delay: .08s; }
.live-rows.show tbody tr:nth-child(3),
.live-log.show li:nth-child(3) { animation-delay: .16s; }
.live-rows.show tbody tr:nth-child(4),
.live-log.show li:nth-child(4) { animation-delay: .24s; }
.live-log.show li:nth-child(5) { animation-delay: .32s; }
@keyframes row-in {
  to { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .story-hud { display: none; }
}
@media (max-width: 900px) {
  .pin-scene { height: auto; }
  .pin-sticky {
    position: static;
    height: auto;
    grid-template-columns: 1fr;
    padding: 72px 20px;
  }
  .pin-slides { min-height: 0; display: grid; gap: 28px; }
  .pin-slide { position: static; opacity: 1; transform: none; }
  .pin-dots { display: none; }
  .pin-stage { min-height: 0; display: grid; gap: 16px; }
  .pin-stage .ui-card { position: static; }
  .gate { min-height: 46vh; }
  .gate-copy strong { font-size: clamp(56px, 18vw, 96px); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media, .hero-scroll span, .ui-card { animation: none !important; }
  .live-rows tbody tr, .live-log li { opacity: 1; transform: none; animation: none; }
  .live-tl li { opacity: 1; }
}
