/* =========================================================
   Funnel Sans — self-hosted (variable, latin + latin-ext)
========================================================= */
@font-face {
  font-family: 'Funnel Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../assets/fonts/FunnelSans-Variable-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Funnel Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../assets/fonts/FunnelSans-Variable-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Funnel Sans';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url('../assets/fonts/FunnelSans-Italic-Variable-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Funnel Sans';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url('../assets/fonts/FunnelSans-Italic-Variable-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================
   Funnel Display — section headlines
========================================================= */
@font-face {
  font-family: 'Funnel Display';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../assets/fonts/FunnelDisplay-Variable-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Funnel Display';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../assets/fonts/FunnelDisplay-Variable-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================
   SVNTN — Design Tokens
========================================================= */
:root{
  --bg: #0a0a09;
  --bg-alt: #111110;
  --surface: #16150f;
  --surface-2: #1d1b16;
  --fg: #f3f1ea;
  --fg-dim: #c9c6bc;
  --muted: #8d8a82;
  --line: rgba(243, 241, 234, 0.09);
  --line-strong: rgba(243, 241, 234, 0.18);
  --accent: #e8a34a;
  --accent-2: #ffd18a;
  --accent-dim: rgba(232, 163, 74, 0.14);
  --accent-glow: rgba(232, 163, 74, 0.35);
  --accent-ink: #14110a;

  --font-display: 'Funnel Sans', 'Arial Narrow', sans-serif;
  --font-headline: 'Funnel Display', 'Funnel Sans', 'Arial Narrow', sans-serif;
  --font-body: 'Funnel Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1240px;
  --pad: clamp(24px, 5vw, 64px);
  --section-pad: clamp(88px, 12vw, 168px);

  --ease: cubic-bezier(.16,.84,.44,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{
  background: var(--bg);
  scroll-behavior: auto;
}

body{
  margin:0;
  background: radial-gradient(ellipse at 70% 10%, #14120d 0%, var(--bg) 55%);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection{ background: var(--accent); color: var(--accent-ink); }

a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
p{ margin:0; }
h1,h2,h3,h4{ margin:0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
button{ font-family: inherit; }

img, canvas{ display:block; max-width:100%; }

/* The persistent 3D world sits behind everything */
#world-canvas{
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
main, .site-footer{ position: relative; z-index: 1; }

/* subtle film-grain overlay for texture, matches concrete/brutalist photography mood */
.grain{
  position: fixed; inset:0; z-index: 999; pointer-events:none;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px;
}

.progress-rail{
  position: fixed; top:0; left:0; right:0; height:2px; z-index: 998;
  background: transparent;
}
.progress-fill{
  height:100%; width:0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--accent-glow);
}

.mirror{ display:inline-block; transform: scaleX(-1); }

.accent{ color: var(--accent); }
strong{ color: var(--fg); font-weight: 600; }
em{ font-style: normal; color: var(--accent); }

/* =========================================================
   NAV
========================================================= */
.nav{
  position: fixed; top:0; left:0; right:0; z-index: 500;
  display:flex; align-items:center; justify-content:space-between;
  padding: 20px var(--pad);
  transition: transform .5s var(--ease), background .4s ease, padding .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled{
  padding-top: 14px; padding-bottom: 14px;
  background: rgba(10,10,9,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
/* Hide chrome on scroll-down, but keep the brand mark fixed top-left */
.nav.nav-hidden .nav-actions{
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.nav-actions{
  display: flex; align-items: center; gap: 12px;
  margin-left: auto;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.brand-logo{
  position: fixed;
  top: 20px; left: var(--pad);
  z-index: 520;
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--fg);
  line-height: 1;
  transition: top .4s ease;
}
body:has(.nav.scrolled) .brand-logo{ top: 16px; }
.nav-logo-spacer{
  width: 7.5rem; height: 1px; flex-shrink: 0;
  visibility: hidden; pointer-events: none;
}

.btn{
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: 0.02em;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  cursor:pointer; overflow:hidden; isolation:isolate; white-space:nowrap;
  transition: transform .35s var(--ease), border-color .35s ease, background .35s ease, color .35s ease;
}
.btn span{ position:relative; z-index:2; }
.btn-primary{
  background: var(--fg); color: #12100b;
}
.btn-primary::before{
  content:""; position:absolute; inset:0; z-index:1;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  transform: translateX(-101%); transition: transform .45s var(--ease);
}
.btn-primary:hover::before{ transform: translateX(0); }
.btn-primary:hover{ color: var(--accent-ink); transform: translateY(-2px); }

.btn-ghost{
  background: rgba(10,10,9,0.35); color: var(--fg); border-color: var(--line-strong);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover{ border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn-nav{ padding: 11px 22px; font-size: 13px; }

.nav-burger{
  display:flex; flex-direction:column; justify-content:center; gap:5px;
  width: 34px; height: 34px; padding: 7px 6px;
  background: rgba(10,10,9,0.55); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 6px;
  cursor: pointer; z-index: 600;
  transition: border-color .3s ease, background .3s ease;
}
.nav-burger:hover{ border-color: var(--accent); }
.nav-burger span{
  display:block; width:100%; height:1.5px; background: var(--fg);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-burger.open span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2){ opacity:0; }
.nav-burger.open span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

.site-menu{
  position: fixed; inset: 0; z-index: 550;
  background: rgba(10,10,9,0.92); backdrop-filter: blur(20px) saturate(120%);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px;
  padding: var(--pad);
  opacity: 0; pointer-events: none;
  transform: translateY(-12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.site-menu.open{ opacity: 1; pointer-events: auto; transform: translateY(0); }
.site-menu a{
  font-family: var(--font-headline); font-size: clamp(22px, 4vw, 36px); font-weight: 600; color: var(--fg);
  display: flex; align-items: baseline; gap: 14px;
  transition: color .2s ease;
}
.site-menu a span{
  font-family: var(--font-display); font-size: 0.45em; color: var(--accent); letter-spacing: 0.08em;
}
.site-menu a:hover{ color: var(--accent); }

/* =========================================================
   LAYOUT HELPERS
========================================================= */
.section{
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-pad) var(--pad);
}
.eyebrow{
  display:inline-block; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); font-family: var(--font-display); margin-bottom: 22px;
  padding: 6px 14px; border: 1px solid var(--accent-dim); border-radius: 999px;
  background: rgba(10,10,9,0.4);
}
.section-h2{
  font-family: var(--font-headline);
  font-size: clamp(32px, 5vw, 56px); line-height: 1.08; margin-bottom: 28px;
}
.section-h3{ font-family: var(--font-headline); font-size: clamp(26px, 4vw, 38px); margin-bottom: 18px; }
.copy{ max-width: 640px; color: var(--fg-dim); font-size: 17px; line-height: 1.75; }
.copy.lead{ font-size: 19px; color: var(--fg); max-width: 720px; }
.copy-lg{ max-width: 820px; font-size: clamp(19px, 2.4vw, 26px); color: var(--fg-dim); line-height: 1.6; }
.fazit{ margin-top: 32px; font-size: clamp(20px, 2.6vw, 28px); font-family: var(--font-display); font-weight: 500; max-width: 760px; }

.bg-wordmark{
  position:absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(120px, 22vw, 340px); color: var(--fg); opacity: 0.025;
  white-space: nowrap; pointer-events:none; z-index:0; letter-spacing: -0.02em;
  user-select:none;
}

/* Ambient "17" — same display face as the logo lockup, drifting in and out */
.bg-seventeen{
  position:absolute; z-index:0; pointer-events:none; user-select:none;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(140px, 28vw, 420px);
  line-height: 0.85; letter-spacing: -0.04em;
  color: var(--fg);
  opacity: 0;
  white-space: nowrap;
  animation: seventeen-pulse var(--seventeen-dur, 14s) var(--ease) infinite;
  animation-delay: var(--seventeen-delay, 0s);
}
.bg-seventeen--a{ top: 8%; right: -4%; --seventeen-dur: 16s; --seventeen-delay: 1.2s; }
.bg-seventeen--b{ bottom: 6%; left: -6%; --seventeen-dur: 18s; --seventeen-delay: 5s; transform: rotate(-8deg); }
.bg-seventeen--c{ top: 12%; left: 52%; --seventeen-dur: 15s; --seventeen-delay: 2.8s; transform: translateX(-50%) rotate(4deg); }
.bg-seventeen--d{ top: 18%; right: -2%; --seventeen-dur: 17s; --seventeen-delay: 7.5s; }
.bg-seventeen--e{ bottom: 10%; right: 4%; --seventeen-dur: 19s; --seventeen-delay: 4s; transform: rotate(6deg); }

@keyframes seventeen-pulse{
  0%, 62%, 100%{ opacity: 0; }
  70%{ opacity: 0.035; }
  78%{ opacity: 0.05; }
  86%{ opacity: 0.028; }
}
@media (prefers-reduced-motion: reduce){
  .bg-seventeen{ animation: none; opacity: 0.03; }
}
/* Preview helper: ?show17 forces marks visible for design checks */
html.show-seventeen .bg-seventeen{
  animation: none !important;
  opacity: 0.07 !important;
}

/* Reveal system (JS toggles .is-visible) */
[data-reveal], [data-reveal-line], .hero-h1 .line{
  opacity: 0; transform: translateY(28px);
}
.is-visible[data-reveal]{ opacity:1; transform: translateY(0); transition: opacity .9s var(--ease), transform .9s var(--ease); }

/* word-split 3D reveal targets (populated by JS) */
.line-mask{ display:block; overflow:hidden; perspective: 700px; }
.line-mask .w{ display:inline-block; transform-origin: 50% 100%; will-change: transform, opacity; }

[data-tilt]{ transform-style: preserve-3d; will-change: transform; }
.problem-grid, .flow-track, .channel-icons, .process-rail{ perspective: 1200px; }

/* =========================================================
   HERO
========================================================= */
.hero{
  position: relative; min-height: 100svh; display:flex; align-items:center;
  overflow:hidden; background: transparent;
}
.hero-vignette{
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background: linear-gradient(180deg, rgba(10,10,9,0.25) 0%, rgba(10,10,9,0) 32%, rgba(10,10,9,0.5) 100%);
}
.hero-content{
  position: relative; z-index: 2; max-width: var(--container); margin: 0 auto; width:100%;
  padding: 140px var(--pad) 80px;
  will-change: transform, opacity;
}
.kicker{
  font-family: var(--font-display); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 26px; display:block;
}
.kicker.bold-line{
  font-size: clamp(18px, 2.4vw, 26px); letter-spacing: 0.04em; text-transform: none;
  line-height: 1.35; color: var(--fg-dim); max-width: 28ch;
}
.kicker.bold-line .wordmark{ color: var(--fg); }
.pronounce{
  color: var(--accent); cursor: help; position: relative; font-size: 0.7em;
}
.pronounce::after{
  content: attr(title); position: absolute; left: 50%; bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px); white-space: nowrap;
  font-size: 12px; letter-spacing: 0.02em; text-transform: none;
  color: var(--fg); background: rgba(22,21,15,0.95); border: 1px solid var(--line);
  padding: 6px 10px; border-radius: 6px; opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.pronounce:hover::after, .pronounce:focus-visible::after{
  opacity: 1; transform: translateX(-50%) translateY(0);
}
.ipa{ font-family: var(--font-display); color: var(--accent); }
.hero-h1{ font-family: var(--font-headline); font-size: clamp(34px, 6.4vw, 84px); line-height: 1.06; margin-bottom: 30px; max-width: 18ch; }
.hero-h1 .line{ display:block; overflow:hidden; }
.hero-h1 .line.accent{ color: var(--accent); }
.hero-subline{ max-width: 620px; font-size: 18px; color: var(--fg-dim); line-height: 1.7; margin-bottom: 36px; }
.hero-ctas{ display:flex; gap: 18px; flex-wrap:wrap; margin-bottom: 26px; }
.footnote{ font-size: 13px; color: var(--muted); max-width: 520px; }
.wordmark{ font-family: var(--font-display); font-weight: 700; }

.scroll-cue{
  position:absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index:2;
  display:flex; flex-direction:column; align-items:center; gap:10px;
  color: var(--muted); font-size: 11px; letter-spacing: 0.12em; text-transform:uppercase;
}
.scroll-cue-line{ width:1px; height: 46px; background: var(--line-strong); position:relative; overflow:hidden; }
.scroll-cue-line i{
  position:absolute; top:-40%; left:0; width:100%; height:40%; background: var(--accent);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue{ 0%{ top:-40%; } 60%{ top:100%; } 100%{ top:100%; } }

/* =========================================================
   PROBLEM
========================================================= */
.problem-grid{
  display:grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 20px; position:relative; z-index:1;
}
.problem-col{
  padding: 36px; border-radius: 20px; border: 1px solid var(--line);
  background: rgba(22,21,15,0.82); backdrop-filter: blur(6px);
}
.problem-col.old{ opacity: .75; }
.problem-col.new{ border-color: var(--accent-dim); background: linear-gradient(160deg, rgba(29,27,22,0.9), rgba(22,21,15,0.85)); }
.problem-col .col-tag{ display:block; font-size: 12px; letter-spacing: 0.1em; text-transform:uppercase; color: var(--muted); margin-bottom: 14px; }
.problem-col.new .col-tag{ color: var(--accent); }
.problem-col p{ color: var(--fg-dim); font-size: 16px; line-height: 1.7; margin-bottom: 22px; }
.x-list li, .check-list li{ padding: 10px 0 10px 30px; position:relative; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.x-list li:first-child, .check-list li:first-child{ border-top:none; }
.x-list li::before{ content:"×"; position:absolute; left:0; color: #7a6a55; font-family: var(--font-display); }
.check-list li{ color: var(--fg-dim); }
.check-list li::before{ content:"—"; position:absolute; left:0; color: var(--accent); font-family: var(--font-display); }

/* =========================================================
   UEBERGABE
========================================================= */
.pull-quote{
  margin: 44px 0; padding: 40px clamp(24px,4vw,56px); border-radius: 24px;
  background: rgba(22,21,15,0.82); backdrop-filter: blur(6px);
  border-left: 3px solid var(--accent); max-width: 780px;
}
.pull-quote p{ font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 30px); line-height: 1.4; color: var(--fg); }

/* ~2 blank lines after the preceding paragraph */
.copy-gap{ margin-top: 3.2em; }

.stoerer{
  margin: 48px 0 8px; max-width: 720px;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(22px, 3.2vw, 36px); line-height: 1.25;
  color: var(--fg);
  padding: 28px 0 8px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.stoerer::before{
  content: ""; display: block; width: 48px; height: 2px; margin-bottom: 18px;
  background: var(--accent); box-shadow: 0 0 12px var(--accent-glow);
}

/* =========================================================
   LIVE TERMINAL — proof dashboard (dual-case stream)
========================================================= */
.live-terminal{
  margin: 28px 0 36px; max-width: 980px;
  border: 1px solid var(--line-strong); border-radius: 14px;
  background: linear-gradient(180deg, rgba(16,14,12,0.95), rgba(10,10,9,0.98));
  overflow: hidden;
  box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 8%, transparent);
}
.live-terminal-chrome{
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.live-terminal-chrome span{
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(243,241,234,0.18);
}
.live-terminal-chrome span:nth-child(1){ background: #fc5c3a; }
.live-terminal-chrome span:nth-child(2){ background: #f0c040; }
.live-terminal-chrome span:nth-child(3){ background: #4ade80; }
.live-terminal-chrome em{
  margin-left: auto; font-style: normal; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  font-family: var(--font-display);
}
.live-terminal-panes{
  display: grid;
  grid-template-columns: 1fr;
  min-height: 300px;
  transition: grid-template-columns .45s var(--ease);
}
.live-terminal-panes.is-split{
  grid-template-columns: 1fr 1fr;
}
.live-pane{
  padding: 16px 16px 20px;
  min-width: 0;
  transition: opacity .4s var(--ease), transform .45s var(--ease);
}
.live-terminal-panes.is-split .live-pane:first-child{
  border-right: 1px solid var(--line);
  opacity: 0.72;
}
.live-pane.is-exiting{
  opacity: 0;
  transform: translateX(-12px);
}
.live-pane-label{
  font-family: var(--font-display); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.live-pane-title{
  font-size: 12px; color: var(--fg); margin-bottom: 14px;
  line-height: 1.4;
}
.live-terminal-body{
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.65; color: var(--fg-dim);
  min-height: 220px; white-space: pre-wrap;
}
.live-terminal-body .ts{ color: var(--muted); }
.live-terminal-body .ok{ color: var(--accent); }
.live-terminal-body .status-line{
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--fg); font-weight: 600;
}
.live-terminal-body .cursor{
  display: inline-block; width: 8px; height: 1.05em; margin-left: 2px;
  background: var(--accent); vertical-align: text-bottom;
  animation: terminal-blink 1s steps(1) infinite;
}
@keyframes terminal-blink{
  0%, 49%{ opacity: 1; }
  50%, 100%{ opacity: 0; }
}
@media (max-width: 720px){
  .live-terminal-panes.is-split{ grid-template-columns: 1fr; }
  .live-terminal-panes.is-split .live-pane:first-child{
    border-right: none; border-bottom: 1px solid var(--line);
  }
}

/* =========================================================
   CALL FLOW
========================================================= */
.flow-track{ position:relative; margin: 60px 0 40px; display:flex; flex-direction:column; gap: 56px; padding-left: 56px; }
.flow-line{ position:absolute; left: 8px; top:0; width:4px; height:100%; overflow:visible; }
.flow-line-bg{ stroke: var(--line-strong); stroke-width:2; }
.flow-line-fg{ stroke: var(--accent); stroke-width:2; stroke-dasharray: 900; stroke-dashoffset: 900; filter: drop-shadow(0 0 6px var(--accent-glow)); }
.flow-step{
  position:relative; padding: 30px clamp(20px,3vw,36px); border-radius: 20px;
  background: rgba(22,21,15,0.82); backdrop-filter: blur(6px); border: 1px solid var(--line); max-width: 640px;
}
.flow-step::before{
  content:""; position:absolute; left:-56px; top: 32px; width:14px; height:14px; border-radius:50%;
  background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 0 6px var(--bg);
}
.flow-num{ font-family: var(--font-display); color: var(--accent); font-size: 13px; letter-spacing: 0.1em; }
.flow-step h3{ font-size: 22px; margin: 10px 0 10px; }
.flow-step p{ color: var(--fg-dim); font-size: 15.5px; line-height: 1.7; }

/* =========================================================
   CHANNELS
========================================================= */
.channel-icons{ display:flex; gap: 18px; flex-wrap:wrap; margin: 34px 0 44px; }
.channel-icon{
  display:flex; flex-direction:column; align-items:center; gap: 12px;
  width: 130px; padding: 26px 12px; border-radius: 18px; border:1px solid var(--line);
  background: rgba(22,21,15,0.82); backdrop-filter: blur(6px);
}
.channel-icon svg{ width: 28px; height:28px; color: var(--accent); }
.channel-icon span{ font-size: 13px; color: var(--fg-dim); }
.solves-list{ display:grid; grid-template-columns: 1fr 1fr; gap: 4px 40px; margin-bottom: 40px; max-width: 900px; }
.solves-list li{
  padding: 14px 0; border-top: 1px solid var(--line); color: var(--fg-dim); font-size: 15.5px;
  position:relative; padding-left: 22px;
}
.solves-list li::before{ content:"—"; position:absolute; left:0; color: var(--accent); }

/* =========================================================
   PROCESS — pinned horizontal scroll
========================================================= */
.section-process{ position: relative; }
.process-intro{ padding-bottom: 12px; }
.process-pin{
  position: relative; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.process-rail{
  display: flex; gap: 26px; align-items: stretch;
  width: max-content; padding: 0 var(--pad);
  will-change: transform;
}
.process-card{
  width: clamp(300px, 32vw, 430px); flex-shrink: 0;
  padding: 38px 32px; border-radius: 22px;
  background: rgba(22,21,15,0.86); backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  transition: border-color .4s ease;
  display: flex; flex-direction: column;
}
.process-card:hover{ border-color: var(--accent-dim); }
.process-num{ font-family: var(--font-display); font-size: 52px; color: var(--accent); display:block; margin-bottom: 22px; line-height: 1; }
.process-card h3{ font-size: 24px; margin-bottom: 14px; }
.process-card p{ font-size: 15.5px; color: var(--fg-dim); line-height: 1.7; }
.process-card.cta-card{
  justify-content: center; gap: 18px;
  background: linear-gradient(160deg, rgba(29,27,22,0.92), rgba(22,21,15,0.88));
  border-color: var(--accent-dim);
}
.process-card.cta-card .btn{ align-self: flex-start; }
.rail-progress{
  height: 2px; margin: 48px var(--pad) 0; border-radius: 2px; overflow: hidden;
  background: var(--line-strong);
}
.rail-progress i{
  display:block; height:100%; width:0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--accent-glow);
}

/* =========================================================
   PRICING
========================================================= */
.pricing-h2{ font-family: var(--font-headline); max-width: 900px; }
.pricing-sub{ margin-bottom: 40px; }
.price{ font-family: var(--font-display); }
.price-new .counter{ color: var(--accent); }
.price-compare{ display:flex; flex-direction:column; gap: 22px; max-width: 640px; margin: 10px 0 44px; }
.price-bar-row{ display:grid; grid-template-columns: 150px 1fr 90px; align-items:center; gap: 18px; }
.price-bar-label{ font-size: 14px; color: var(--muted); }
.price-bar-track{ height: 10px; border-radius: 999px; background: rgba(22,21,15,0.85); border: 1px solid var(--line); overflow:hidden; }
.price-bar-fill{ height:100%; width:0%; border-radius:999px; }
.price-bar-fill.old{ background: linear-gradient(90deg,#5b5347,#7a705d); }
.price-bar-fill.new{ background: linear-gradient(90deg,var(--accent),var(--accent-2)); box-shadow: 0 0 16px var(--accent-glow); }
.price-bar-value{ font-family: var(--font-display); font-size: 15px; text-align:right; }
.price-bar-value.accent{ color: var(--accent); }

/* =========================================================
   FOUNDER
========================================================= */
.founder-grid{ display:grid; grid-template-columns: 220px 1fr; gap: 44px; align-items:start; margin-bottom: 60px; }
.founder-portrait{
  width: 220px; height: 220px; border-radius: 50%; position:relative;
  background: conic-gradient(from 210deg, var(--surface-2), var(--accent-dim), var(--surface-2));
  display:flex; align-items:center; justify-content:center; border: 1px solid var(--line-strong);
  overflow: hidden;
}
.founder-portrait::before{
  content:""; position:absolute; inset:10px; border-radius:50%; border: 1px dashed var(--line-strong);
  z-index: 2; pointer-events: none;
}
.founder-portrait img{
  width: 100%; height: 100%; object-fit: cover; object-position: center 15%;
  border-radius: 50%;
}
.founder-copy{ padding-top: 8px; margin-bottom: 16px; }

.founder-quote{
  position: relative;
  max-width: 640px;
  margin: -12px 0 0 auto;
  padding: 28px 30px 24px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  background: linear-gradient(160deg, rgba(28,24,18,0.92), rgba(14,13,11,0.88));
  box-shadow:
    0 24px 60px rgba(0,0,0,0.35),
    0 0 40px color-mix(in srgb, var(--accent) 10%, transparent);
  animation: quote-float 7s ease-in-out infinite;
}
.founder-quote p{
  font-family: var(--font-display); font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.45; color: var(--fg); margin-bottom: 16px;
}
.founder-quote cite{
  display: block; font-style: normal; font-size: 13px;
  letter-spacing: 0.04em; color: var(--muted);
}
@keyframes quote-float{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce){
  .founder-quote{ animation: none; }
}

.timeline{ margin: 20px 0 50px; }
.timeline-track{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px 24px; position:relative;
}
.timeline-item{ position:relative; padding: 26px 8px 0 0; }
.timeline-dot{ position:absolute; top:0; left:0; width:12px; height:12px; border-radius:50%; background: var(--accent); box-shadow: 0 0 0 5px var(--bg), 0 0 12px var(--accent-glow); }
.timeline-label{ display:block; font-family: var(--font-display); font-size: 16px; margin-bottom: 8px; }
.timeline-item p{ font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* =========================================================
   MANIFEST — content floats over the assembling particle wordmark
========================================================= */
.manifest{ text-align:center; min-height: 100svh; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.manifest-h2{ font-family: var(--font-headline); font-size: clamp(38px, 7vw, 88px); line-height:1.05; margin-bottom: 34px; position:relative; z-index:1; text-shadow: 0 2px 30px rgba(10,10,9,0.8); }
.manifest .copy-lg{ margin: 0 auto 30px; text-align:center; position:relative; z-index:1; text-shadow: 0 2px 20px rgba(10,10,9,0.9); }
.manifest-punch{ font-family: var(--font-display); font-size: clamp(22px,3vw,32px); margin-bottom: 40px; position:relative; z-index:1; }

/* =========================================================
   MANIFEST PAGE (manifest.html)
========================================================= */
.manifest-page .progress-rail{ display: none; }
.manifest-back{
  position: fixed; top: 22px; right: var(--pad); z-index: 520;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); transition: color .25s ease;
}
.manifest-back:hover{ color: var(--accent); }
.manifest-doc{
  max-width: 820px; margin: 0 auto;
  padding: 140px var(--pad) 100px;
}
.manifest-doc-header{ margin-bottom: 48px; }
.manifest-doc-header .eyebrow{ opacity: 1; transform: none; }
.manifest-doc-header .manifest-h2{
  text-align: left; text-shadow: none; margin-bottom: 0;
  opacity: 1; transform: none;
}
.manifest-beliefs p{
  font-size: clamp(18px, 2.3vw, 24px); line-height: 1.55;
  color: var(--fg-dim); margin: 0 0 28px; max-width: 38ch;
}
.manifest-beliefs .manifest-close{
  margin-top: 40px; color: var(--fg);
  font-family: var(--font-headline); font-weight: 600;
  font-size: clamp(22px, 2.8vw, 30px);
}
.manifest-doc-cta{ margin-top: 56px; }
.manifest-page .site-footer{ max-width: 820px; }

/* =========================================================
   CONTACT
========================================================= */
.contact-form{ margin-top: 40px; max-width: 720px; display:flex; flex-direction:column; gap: 20px; }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field{ display:flex; flex-direction:column; gap: 8px; }
.form-field label{ font-size: 12px; letter-spacing:0.06em; text-transform:uppercase; color: var(--muted); }
.form-field input, .form-field textarea{
  background: rgba(22,21,15,0.85); border: 1px solid var(--line); color: var(--fg);
  border-radius: 12px; padding: 14px 16px; font-family: var(--font-body); font-size: 15px;
  transition: border-color .3s ease, background .3s ease; resize: vertical;
  backdrop-filter: blur(6px);
}
.form-field input:focus, .form-field textarea:focus{
  outline:none; border-color: var(--accent); background: var(--surface-2);
}
.contact-actions{ display:flex; gap: 18px; flex-wrap:wrap; margin-top: 6px; }
.form-note{ font-size: 14px; color: var(--accent); min-height: 20px; }

/* =========================================================
   FOOTER
========================================================= */
.site-footer{
  border-top: 1px solid var(--line); padding: 64px var(--pad) 30px; max-width: var(--container); margin: 0 auto;
}
.footer-top{ display:flex; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; gap:16px; margin-bottom: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-logo{ font-family: var(--font-display); font-weight:700; font-size: 40px; position:relative; }
.footer-star{ color: var(--accent); }
.footer-tag{ color: var(--muted); font-size: 14px; letter-spacing: 0.05em; }
.footer-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 50px; }
.footer-col{ display:flex; flex-direction:column; gap: 14px; }
.footer-heading{ font-size: 12px; text-transform:uppercase; letter-spacing:0.1em; color: var(--muted); margin-bottom: 4px; }
.footer-col a{ color: var(--fg-dim); font-size: 14.5px; transition: color .3s ease; }
.footer-col a:hover{ color: var(--accent); }
.footer-bottom{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size: 12.5px; color: var(--muted); padding-top: 20px; border-top: 1px solid var(--line); }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 980px){
  .problem-grid{ grid-template-columns: 1fr; }
  .founder-grid{ grid-template-columns: 1fr; }
  .founder-portrait{ width:160px; height:160px; }
  .founder-mono{ font-size:40px; }
  .solves-list{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

/* below 900px the process rail stacks vertically, no pinning */
@media (max-width: 899px){
  .process-pin{ height: auto; overflow: visible; display: block; padding: 24px 0 40px; }
  .process-rail{ width: auto; flex-direction: column; }
  .process-card{ width: 100%; }
  .rail-progress{ display: none; }
}

@media (max-width: 620px){
  .price-bar-row{ grid-template-columns: 100px 1fr 70px; }
  .footer-grid{ grid-template-columns: 1fr; }
  .flow-track{ padding-left: 40px; }
  .flow-step::before{ left: -40px; }
}

/* =========================================================
   WORLD MODE — content sections live inside the 3D scene as
   CSS3D panels sharing the WebGL camera. The document flow is
   emptied; a spacer div provides the scroll distance.
========================================================= */
html.world body{ background: #0b0a09; }
html.world body > main{ visibility: hidden; height: 0; overflow: hidden; }
html.world body > .site-footer{ visibility: hidden; }

html.world .panel-el{
  margin: 0 !important;
  max-width: none !important;
  will-change: transform, opacity;
  /* holographic display: dark glass, thin luminous edge, soft accent cast */
  background: linear-gradient(180deg, rgba(22,20,15,0.55), rgba(12,11,9,0.68));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 6px;
  box-shadow:
    0 0 70px color-mix(in srgb, var(--accent) 6%, transparent),
    inset 0 0 90px color-mix(in srgb, var(--accent) 4%, transparent);
  position: relative;
}
/* HUD corner brackets */
html.world .panel-el::before,
html.world .panel-el::after{
  content: ""; position: absolute; width: 20px; height: 20px; pointer-events: none;
}
html.world .panel-el::before{
  top: -1px; left: -1px;
  border-top: 2px solid color-mix(in srgb, var(--accent) 65%, transparent);
  border-left: 2px solid color-mix(in srgb, var(--accent) 65%, transparent);
  border-top-left-radius: 6px;
}
html.world .panel-el::after{
  bottom: -1px; right: -1px;
  border-bottom: 2px solid color-mix(in srgb, var(--accent) 65%, transparent);
  border-right: 2px solid color-mix(in srgb, var(--accent) 65%, transparent);
  border-bottom-right-radius: 6px;
}
/* backdrop-filter inside 3D-transformed subtrees renders unreliably */
html.world .panel-el, html.world .panel-el *{ backdrop-filter: none !important; }

html.world .panel-el.section{ padding: 52px 58px; }
html.world .hero.panel-el{ min-height: 0; padding: 0; }
html.world .hero.panel-el .hero-content{ padding: 48px 56px; }
html.world .hero.panel-el .hero-vignette{ display: none; }
html.world .hero.panel-el .scroll-cue{
  position: relative; left: auto; bottom: auto; transform: none;
  margin: 10px 0 40px 56px; align-items: flex-start;
}

/* inside a board, nested web-cards flatten to etched panels: hairline
   separations on the sign itself instead of cards floating on a card */
html.world .panel-el .problem-col,
html.world .panel-el .flow-step,
html.world .panel-el .channel-icon,
html.world .panel-el .pull-quote,
html.world .panel-el .founder-quote,
html.world .panel-el .live-terminal{
  background: transparent !important;
  border-radius: 0;
  box-shadow: none;
}
html.world .panel-el .problem-col{ border-width: 0 0 0 1px; padding-left: 32px; }
html.world .panel-el .problem-col.new{ border-left-color: var(--accent-dim); }
html.world .panel-el .flow-step{ border-width: 0 0 1px 0; border-radius: 0; }
html.world .panel-el .channel-icon{ border-width: 1px; }
html.world .panel-el .eyebrow{ background: transparent; }
html.world .panel-el .live-terminal{
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  background: rgba(10,10,9,0.35) !important;
}
html.world .panel-el .founder-quote{
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  background: rgba(18,16,12,0.45) !important;
  animation: none;
}

html.world .process-intro.panel-el{ padding: 0; }
html.world .process-card.panel-el{ width: 430px; }
html.world .process-pin, html.world .rail-progress{ display: none; }

html.world .site-footer.panel-el{
  visibility: visible;
  padding: 44px 52px 28px;
}

html.world .panel-el .bg-seventeen{
  /* Inside CSS3D panels the large mark reads as panel chrome — keep it quieter */
  font-size: 220px;
}

/* activation-animated bits start hidden in world mode */
html.world .timeline-item{ opacity: 0; }

