/* ==========================================================================
   141 Ventures — Site A "Horizon"
   Brand: Black #0A0A0F · Agent Blue #2D6BFF · Cloud #F9F9FB · Mid Grey #8E8E93
   ========================================================================== */

:root {
  --bg: #0A0A0F;
  --bg-2: #0D0D14;
  --bg-3: #10121C;
  --ink: #F9F9FB;
  --muted: #8E8E93;
  --muted-2: #5E5E66;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --surface: rgba(255, 255, 255, 0.035);
  --blue: #2D6BFF;
  --blue-2: #6A95FF;
  --blue-glow: rgba(45, 107, 255, 0.35);
  --green: #22C55E;
  --display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  --mono: 'SF Mono', 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --radius: 22px;
  --radius-sm: 12px;
  --gutter: clamp(20px, 4vw, 64px);
  --max: 1280px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --z-bg: 0; --z-layer: 1; --z-content: 10; --z-nav: 50; --z-cursor: 100; --z-loader: 200;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  cursor: none;
}
@media (hover: none), (pointer: coarse) { body { cursor: auto; } }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--blue); color: #fff; }

:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 4px; border-radius: 4px; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typography ---------- */
.display { font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; line-height: 0.98; }
h1.display { font-size: clamp(2.6rem, 6.5vw, 5.9rem); font-weight: 700; }
h2.display { font-size: clamp(2rem, 4.6vw, 3.9rem); }
h3.display { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -0.025em; line-height: 1.1; }
.lede { font-size: clamp(1.05rem, 1.35vw, 1.25rem); color: var(--muted); line-height: 1.6; max-width: 58ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.02em; color: var(--muted);
  padding: 8px 14px 8px 10px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(10, 10, 15, 0.45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 12px var(--blue); }
.eyebrow.green::before { background: var(--green); box-shadow: 0 0 12px var(--green); }

/* Line reveal (headlines) */
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > .line-inner { display: block; transform: translateY(110%); will-change: transform; }
.line .accent { color: var(--blue-2); }

/* Word reveal (scrubbed paragraphs) */
.words .w { display: inline-block; opacity: 0.14; will-change: opacity; }

/* Generic reveal */
.reveal { opacity: 0; transform: translateY(28px); will-change: transform, opacity; }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%; z-index: var(--z-cursor);
  pointer-events: none; opacity: 0.045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -2%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: var(--z-cursor); pointer-events: none;
  width: 10px; height: 10px; border-radius: 50%; background: var(--ink);
  transform: translate(-50%, -50%); mix-blend-mode: difference; will-change: transform;
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), opacity 0.3s;
}
.cursor.is-hover { width: 56px; height: 56px; }
.cursor.is-hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: var(--z-loader); background: var(--bg);
  display: grid; place-items: center; will-change: transform;
}
.loader-mark { font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 10vw, 7rem); letter-spacing: -0.05em; color: var(--ink); display: flex; align-items: baseline; gap: 0.15em; }
.loader-mark .dot { width: 0.18em; height: 0.18em; border-radius: 50%; background: var(--blue); box-shadow: 0 0 24px var(--blue); transform: translateY(-0.05em); }
.loader-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--line); }
.loader-bar i { display: block; height: 100%; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: var(--z-nav);
  width: min(100% - 32px, 1180px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  border: 1px solid transparent; background: transparent;
  transition: background 0.4s, border-color 0.4s, transform 0.5s var(--ease-out), backdrop-filter 0.4s;
}
.nav.is-scrolled { background: rgba(10, 10, 15, 0.62); border-color: var(--line); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.nav.is-hidden { transform: translate(-50%, -140%); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.05rem; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 0.68rem; font-weight: 800; letter-spacing: -0.04em; }
.brand .dot { color: var(--blue); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 999px; font-size: 0.86rem; color: var(--muted); transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,0.05); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 500; letter-spacing: -0.005em; line-height: 1; white-space: nowrap;
  transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.35s;
  cursor: pointer; will-change: transform;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,0.06); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 8px 30px -10px var(--blue-glow); }
.btn-blue:hover { background: #3F79FF; box-shadow: 0 12px 40px -10px var(--blue-glow); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); }
.btn-sm { padding: 11px 18px; font-size: 0.85rem; }
.btn .arrow { width: 14px; height: 14px; transition: transform 0.3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; place-items: center; border: 1px solid var(--line-2); }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 2.5px 0; transition: transform 0.3s, opacity 0.3s; }
.nav.is-open .menu-btn span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav.is-open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.is-open .menu-btn span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; overflow: clip; display: flex; align-items: center; isolation: isolate; }
.hero-media { position: absolute; inset: -6% 0 0 0; z-index: var(--z-bg); will-change: transform; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-layer { position: absolute; inset: 0; z-index: var(--z-layer); pointer-events: none; will-change: transform; }
.hero-mist img {
  width: 150%; height: 75%; object-fit: cover; position: absolute; left: -25%; bottom: -5%;
  mix-blend-mode: screen; opacity: 0.55; filter: contrast(1.25) brightness(0.85);
  -webkit-mask-image: radial-gradient(ellipse 45% 40% at 50% 60%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 45% 40% at 50% 60%, #000 20%, transparent 100%);
  animation: drift 46s ease-in-out infinite alternate;
}
.hero-ridge img {
  width: 120%; height: 64%; object-fit: cover; object-position: center bottom; position: absolute; left: -10%; bottom: -6%;
  mix-blend-mode: screen; opacity: 0.8; filter: contrast(1.3) brightness(0.8);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%), linear-gradient(to right, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 45%), linear-gradient(to right, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-composite: intersect;
}
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(6%); } }
.hero-vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(10,10,15,0.55) 0%, rgba(10,10,15,0.05) 30%, rgba(10,10,15,0) 55%, rgba(10,10,15,0.85) 92%, var(--bg) 100%),
    radial-gradient(60% 50% at 50% 45%, rgba(45,107,255,0.10), transparent 70%);
}
.hero-content { position: relative; z-index: var(--z-content); text-align: center; padding: 140px 0 320px; width: 100%; will-change: transform, opacity; }
.hero-content .eyebrow { margin-bottom: 28px; }
.hero-content h1 { margin: 0 auto 26px; max-width: 20ch; }
.hero-content .lede { margin: 0 auto 36px; text-align: center; max-width: 52ch; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: var(--z-content); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-scroll i { display: block; width: 1px; height: 44px; background: linear-gradient(to bottom, var(--muted), transparent); animation: scrollhint 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes scrollhint { 0% { transform: scaleY(0); opacity: 0; } 40% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1) translateY(20px); opacity: 0; } }

/* Console card — floats at the bottom of the hero, overlaps the next section */
.console-wrap { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 42%); z-index: var(--z-content); width: min(100% - 2 * var(--gutter), 860px); perspective: 1600px; }
.console {
  border-radius: var(--radius); border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(20,20,28,0.82), rgba(12,12,18,0.92));
  backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 40px 120px -30px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.02) inset, 0 30px 80px -40px var(--blue-glow);
  overflow: hidden; transform-style: preserve-3d; will-change: transform;
}
.console-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 0.78rem; color: var(--muted); }
.console-head .app { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.74rem; color: var(--ink); }
.console-head .app i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.console-head .pipe { display: flex; gap: 8px; align-items: center; font-family: var(--mono); font-size: 0.72rem; }
.console-head .pipe b { font-weight: 500; color: var(--ink); padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); }
.console-head .pipe svg { width: 12px; height: 12px; color: var(--muted-2); }
.console-body { display: grid; grid-template-columns: 1.1fr 0.9fr; }
.console-col { padding: 18px; }
.console-col + .console-col { border-left: 1px solid var(--line); }
.msg { border-radius: 14px; padding: 14px 16px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); font-size: 0.86rem; line-height: 1.55; }
.msg + .msg { margin-top: 12px; }
.msg .meta { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--muted); margin-bottom: 8px; font-family: var(--mono); }
.msg .stars { color: #F5B301; letter-spacing: 1px; }
.msg.draft { border-color: rgba(45,107,255,0.35); background: rgba(45,107,255,0.08); }
.msg.draft .meta { color: var(--blue-2); }
.typed::after { content: ''; display: inline-block; width: 1px; height: 1em; background: var(--blue-2); vertical-align: -0.15em; margin-left: 2px; animation: pulse 1s steps(2) infinite; }
.msg-actions { display: flex; gap: 8px; margin-top: 12px; }
.chip { font-size: 0.76rem; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); background: rgba(255,255,255,0.03); }
.chip.ok { background: var(--green); border-color: var(--green); color: #05130a; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.stat { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.stat b { display: block; font-family: var(--display); font-size: 1.35rem; letter-spacing: -0.03em; font-weight: 600; }
.stat span { font-size: 0.7rem; color: var(--muted); }
.log { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); line-height: 1.9; }
.log li { display: flex; gap: 10px; align-items: baseline; }
.log li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--muted-2); flex: none; }
.log li.ok::before { background: var(--green); }
.log li.cur::before { background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.log li span { color: var(--ink); }
.log time { margin-left: auto; color: var(--muted-2); }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(96px, 12vw, 180px) 0; }
.section-head { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head h2 { max-width: 16ch; }
@media (min-width: 900px) { .section-head { grid-template-columns: 1.2fr 1fr; align-items: end; } .section-head .lede { justify-self: end; } }

/* Intro statement */
.intro { padding-top: clamp(300px, 34vw, 420px); }
.intro-inner { max-width: 1000px; }
.intro .eyebrow { margin-bottom: 40px; }
.intro p.big { font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 3.4vw, 3rem); line-height: 1.22; letter-spacing: -0.025em; }
.intro p.big .w.accent { color: var(--blue-2); }

/* Stack cards */
.stack { position: relative; }
.stack-card {
  position: sticky; top: 8vh; min-height: 84vh;
  border-radius: var(--radius); border: 1px solid var(--line-2); overflow: hidden;
  background: linear-gradient(160deg, #13141C 0%, #0D0D14 60%);
  display: grid; grid-template-columns: 1.05fr 1fr; will-change: transform, filter;
  box-shadow: 0 -20px 80px -40px rgba(0,0,0,0.9);
}
.stack-card + .stack-card { margin-top: 6vh; }
.stack-card.blue { background: linear-gradient(160deg, #0F1C44 0%, #0B1226 55%, #0A0A0F 100%); border-color: rgba(106,149,255,0.3); }
.stack-copy { padding: clamp(32px, 4.5vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.stack-copy .num { font-family: var(--mono); font-size: 0.76rem; color: var(--muted); letter-spacing: 0.08em; }
.stack-copy h2 { max-width: 13ch; }
.stack-copy .lede { max-width: 48ch; }
.checks { display: grid; gap: 10px; margin-top: 6px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: #C9C9D1; }
.checks svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--blue-2); }
.blue .checks svg { color: #9DB8FF; }
.stack-copy .btn { align-self: flex-start; margin-top: 8px; }
.stack-media { position: relative; overflow: hidden; min-height: 320px; }
.stack-media img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.stack-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, #0F1016 0%, transparent 28%); }
.blue .stack-media::after { background: linear-gradient(to right, #0F1A3E 0%, transparent 30%); }
.float-card {
  position: absolute; border-radius: 16px; border: 1px solid var(--line-2);
  background: rgba(12,12,18,0.75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 14px 16px; font-size: 0.8rem; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.9); will-change: transform;
}
.float-card b { display: block; font-family: var(--display); font-size: 1.5rem; letter-spacing: -0.03em; font-weight: 600; }
.float-card span { color: var(--muted); font-size: 0.74rem; }
.float-card.a { right: 8%; top: 12%; }
.float-card.b { left: 10%; bottom: 14%; }
.float-card.c { right: 12%; bottom: 20%; }
.float-card.green b { color: var(--green); }

/* Proof numbers */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { padding: clamp(28px, 4vw, 56px) clamp(16px, 2.5vw, 36px); border-left: 1px solid var(--line); position: relative; }
.proof-item:first-child { border-left: 0; }
.proof-item b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(2.6rem, 5vw, 4.6rem); letter-spacing: -0.045em; line-height: 1; }
.proof-item b small { font-size: 0.42em; color: var(--muted); font-weight: 500; letter-spacing: -0.01em; margin-left: 4px; }
.proof-item p { margin-top: 14px; color: var(--muted); font-size: 0.92rem; max-width: 22ch; }
.proof-item .from { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 0.7rem; color: var(--blue-2); padding: 4px 8px; border-radius: 6px; background: rgba(45,107,255,0.1); }

/* Work — horizontal track */
.work { overflow: clip; }
.work-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 80px 0; }
.work-head { margin-bottom: 40px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.track { display: flex; gap: clamp(16px, 2vw, 28px); padding-left: var(--gutter); padding-right: var(--gutter); width: max-content; will-change: transform; }
.card {
  position: relative; flex: none; width: clamp(300px, 34vw, 480px); aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-2); background: var(--bg-3); isolation: isolate;
}
.card.tall { width: clamp(320px, 38vw, 540px); }
.card.wide { width: clamp(340px, 44vw, 620px); aspect-ratio: 5 / 4; }
.card:nth-child(even) { transform: translateY(6vh); }
.card img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; will-change: transform; transition: transform 0.8s var(--ease-out); }
.card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,15,0.92) 0%, rgba(10,10,15,0.2) 45%, transparent 70%); z-index: 1; }
.card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; z-index: 2; }
.card-tag { position: absolute; top: 18px; left: 18px; z-index: 2; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10,10,15,0.5); backdrop-filter: blur(10px); }
.card-tag.studio { color: var(--blue-2); border-color: rgba(106,149,255,0.4); }
.card-tag.systems { color: var(--green); border-color: rgba(34,197,94,0.35); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.9rem; }
.card-ui { background: linear-gradient(160deg, #13141C, #0C0C12); padding: 24px; display: flex; flex-direction: column; }
.card-ui::after { display: none; }
.card-ui .card-body { position: static; padding: 0; margin-top: auto; }
.terminal { font-family: var(--mono); font-size: 0.74rem; line-height: 1.9; color: var(--muted); border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,0.35); padding: 16px; margin-top: 44px; }
.terminal .p { color: var(--blue-2); }
.terminal .ok { color: var(--green); }
.terminal .k { color: var(--ink); }
.terminal-actions { display: flex; gap: 8px; margin-top: 10px; }
.bigstat { margin-top: 44px; display: flex; align-items: baseline; gap: 12px; font-family: var(--display); font-weight: 600; letter-spacing: -0.045em; }
.bigstat .from { font-size: clamp(2rem, 4vw, 3rem); color: var(--muted-2); text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: rgba(255,255,255,0.15); }
.bigstat .to { font-size: clamp(4.5rem, 9vw, 7.5rem); line-height: 1; color: var(--ink); }
.bigstat svg { width: 28px; height: 28px; color: var(--blue-2); align-self: center; }
.brands { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.brands span { font-size: 0.72rem; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.card-end { width: clamp(260px, 26vw, 360px); display: grid; place-items: center; border-style: dashed; background: transparent; }
.card-end::after { display: none; }
.card-end .btn { position: relative; z-index: 2; }
.work-mobile-hint { display: none; }

/* Process */
.process-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) { .process-grid { grid-template-columns: 0.9fr 1.1fr; gap: 80px; } }
.process-sticky { position: sticky; top: 18vh; align-self: start; }
.process-sticky .big-num { font-family: var(--display); font-weight: 700; font-size: clamp(6rem, 18vw, 16rem); line-height: 0.85; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.18); position: relative; height: 0.9em; }
.process-sticky .big-num span { position: absolute; left: 0; top: 0; opacity: 0; }
.process-sticky .big-num span.is-active { opacity: 1; color: var(--ink); -webkit-text-stroke: 0; }
.process-sticky h2 { margin-top: 28px; }
.steps { position: relative; padding-left: 40px; }
.steps::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.steps .progress { position: absolute; left: 8px; top: 0; width: 1px; height: 100%; background: linear-gradient(to bottom, var(--blue-2), var(--blue)); transform: scaleY(0); transform-origin: top; box-shadow: 0 0 16px var(--blue-glow); }
.step { position: relative; padding: 36px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step::before { content: ''; position: absolute; left: -36px; top: 46px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); transition: background 0.4s, border-color 0.4s, box-shadow 0.4s; }
.step.is-active::before { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 16px var(--blue); }
.step .num { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); letter-spacing: 0.1em; }
.step h3 { margin: 10px 0 12px; }
.step p { color: var(--muted); max-width: 46ch; }
.step .tag { display: inline-block; margin-top: 14px; font-size: 0.74rem; color: var(--ink); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.03); }

/* About */
.about { background: linear-gradient(to bottom, var(--bg) 0%, var(--bg-3) 50%, var(--bg) 100%); }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.2fr 0.8fr; gap: 80px; align-items: start; } }
.quote { font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1.25; letter-spacing: -0.02em; }
.quote em { font-style: normal; color: var(--blue-2); }
.about-aside { display: grid; gap: 24px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.kv dt { color: var(--muted); }
.kv dd { color: var(--ink); }
.stackline { display: flex; flex-wrap: wrap; gap: 8px; }
.stackline span { font-family: var(--mono); font-size: 0.72rem; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); }

/* CTA */
.cta { position: relative; overflow: clip; min-height: 90vh; display: flex; align-items: center; isolation: isolate; }
.cta-media { position: absolute; inset: -10% 0; z-index: 0; will-change: transform; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: 0.55; }
.cta-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--bg) 0%, rgba(10,10,15,0.3) 40%, rgba(10,10,15,0.6) 100%); }
.cta-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: 40px; width: 100%; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; } }
.cta h2 { max-width: 12ch; }
.cta .lede { margin-top: 20px; }
.cta-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta-actions .mail { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); padding-left: 6px; }
.form { border-radius: var(--radius); border: 1px solid var(--line-2); background: rgba(12,12,18,0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: clamp(22px, 3vw, 34px); display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.78rem; color: var(--muted); }
.field input, .field textarea { font: inherit; color: var(--ink); background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; font-size: 0.95rem; transition: border-color 0.2s, background 0.2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-2); background: rgba(45,107,255,0.06); }
.field textarea { min-height: 96px; resize: vertical; }
.form .btn { justify-content: center; margin-top: 4px; }
.form small { color: var(--muted-2); font-size: 0.74rem; text-align: center; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 80px 0 32px; overflow: clip; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; } }
.footer h4 { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 500; }
.footer li { margin-bottom: 8px; font-size: 0.92rem; }
.footer li a { color: #C9C9D1; transition: color 0.2s; }
.footer li a:hover { color: var(--ink); }
.footer p { color: var(--muted); font-size: 0.9rem; max-width: 34ch; margin-top: 12px; }
.giant { margin-top: 64px; overflow: hidden; line-height: 0.8; }
.giant span {
  display: block; font-family: var(--display); font-weight: 800; letter-spacing: -0.06em; font-size: clamp(6rem, 24vw, 22rem);
  background: url('assets/hero-ridge.jpg') center 35% / cover no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(30%); will-change: transform;
}
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--muted-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .console-body { grid-template-columns: 1fr; }
  .console-col + .console-col { border-left: 0; border-top: 1px solid var(--line); }
  .console-col.right { display: none; }
  .console-wrap { transform: translate(-50%, 30%); }
  .intro { padding-top: clamp(240px, 30vw, 360px); }
  .stack-card { grid-template-columns: 1fr; min-height: auto; position: relative; top: auto; }
  .stack-card + .stack-card { margin-top: 24px; }
  .stack-media { min-height: 280px; order: -1; }
  .stack-media::after { background: linear-gradient(to top, #0F1016 0%, transparent 40%); }
  .blue .stack-media::after { background: linear-gradient(to top, #0F1A3E 0%, transparent 40%); }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-item:nth-child(3) { border-left: 0; }
  .proof-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; padding: 12px; border-radius: 24px; background: rgba(10,10,15,0.92); border: 1px solid var(--line); backdrop-filter: blur(20px); }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { padding: 14px 16px; font-size: 1rem; }
  .nav-cta { display: none; }
  .menu-btn { display: grid; }
  .hero-content { padding: 130px 0 220px; }
  .console-wrap { width: min(100% - 2 * var(--gutter), 560px); transform: translate(-50%, 24%); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .work-pin { min-height: auto; padding: 0; }
  .work-scroller { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-bottom: 12px; }
  .work-scroller::-webkit-scrollbar { display: none; }
  .track { padding-left: var(--gutter); padding-right: var(--gutter); }
  .card { scroll-snap-align: start; width: min(78vw, 400px) !important; }
  .card:nth-child(even) { transform: none; }
  .card.wide { aspect-ratio: 4 / 5; }
  .work-mobile-hint { display: block; font-size: 0.74rem; color: var(--muted-2); margin-top: 8px; }
  .process-sticky { position: static; }
  .process-sticky .big-num { display: none; }
  .steps { padding-left: 28px; }
  .step::before { left: -24px; }
  .giant span { font-size: clamp(5rem, 30vw, 14rem); }
}
@media (max-width: 560px) {
  .hero-content h1 { font-size: clamp(2.4rem, 11vw, 3.6rem); }
  .console-wrap { transform: translate(-50%, 18%); }
  .console-head .pipe { display: none; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .stat b { font-size: 1.1rem; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-item { border-left: 0; border-top: 1px solid var(--line); }
  .proof-item:first-child { border-top: 0; }
  .kv { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .hero-scroll i, .hero-mist img { animation: none !important; }
  .line > .line-inner { transform: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .words .w { opacity: 1 !important; }
  .giant span { transform: none !important; }
  .loader { display: none; }
  .cursor { display: none; }
  body { cursor: auto; }
}
