/* ============================================================
   1337 VENTURES v2 — agency site
   Brand addendum: brand/12-v2-direction.md
   Warm near-black · bone text · one green · Geist + Geist Mono
   ============================================================ */

@font-face { font-family: 'Geist'; src: url('../fonts/Geist-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('../fonts/Geist-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('../fonts/Geist-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('../fonts/GeistMono-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('../fonts/GeistMono-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --bg:        #0B0A09;
  --bg-2:      #121110;
  --surface:   #181714;
  --surface-2: #201E1B;
  --line:      rgba(245,238,225,.08);
  --line-2:    rgba(245,238,225,.15);
  --text:      #F3EFE7;
  --text-2:    #A8A399;   /* 7.6:1 on --bg */
  --text-3:    #7D796F;   /* 4.6:1 on --bg — labels only */
  --signal:    #4ADE80;
  --signal-ink:#07140C;
  --ember:     255,178,102; /* warm light, glows only */
  --paper:     #EDE8DF;
  --ink:       #12110F;
  --ink-2:     #5C5850;
  --ink-line:  rgba(18,17,15,.12);

  --sans: 'Geist', ui-sans-serif, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(20px, 4.5vw, 72px);
  --max: 1320px;
  --section: clamp(110px, 16vw, 240px);
  --r: 22px;
  --r-sm: 14px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--signal); color: var(--signal-ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--signal); color: var(--signal-ink); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }

/* ---- grain: the warmth layer ---- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .9 0 0 0 1 0'/%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%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

/* ============================================================
   TYPE
   ============================================================ */
.label {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3);
}
.label b { color: var(--signal); font-weight: 500; }
.label .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(74,222,128,.5); animation: live 2.4s var(--ease-io) infinite; }
@keyframes live { 0%{box-shadow:0 0 0 0 rgba(74,222,128,.45)} 70%{box-shadow:0 0 0 8px rgba(74,222,128,0)} 100%{box-shadow:0 0 0 0 rgba(74,222,128,0)} }

.display {
  font-weight: 500; font-size: clamp(48px, 9.2vw, 152px); line-height: .92; letter-spacing: -.05em;
  margin: 0; text-wrap: balance;
}
.h2 { font-weight: 500; font-size: clamp(38px, 5.6vw, 88px); line-height: .98; letter-spacing: -.045em; margin: 0; text-wrap: balance; }
.h3 { font-weight: 500; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.1; letter-spacing: -.03em; margin: 0; }
.tone { color: var(--text-3); }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--text-2); margin: 0; max-width: 34em; text-wrap: pretty; }
.small { font-size: 14px; color: var(--text-2); }
.mono { font-family: var(--mono); }
.g { color: var(--signal); }

/* split-line masks (set up by JS) */
/* SplitText wraps each line in .line-in-mask (overflow: clip). Tight display
   line-heights push descenders (g, y, p) and ascenders past the line box, so
   the mask gets room on both sides and gives it back with negative margins. */
.line-mask, .line-in-mask { display: block; overflow: clip; padding: .1em .06em .2em; margin: -.1em -.06em -.2em; }
.line-in { display: block; will-change: transform; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  --h: 54px;
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: var(--h); padding: 0 26px; border-radius: 999px;
  font: 500 15px/1 var(--sans); letter-spacing: -.01em; white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  isolation: isolate; overflow: hidden;
}
.btn--signal { background: var(--signal); color: var(--signal-ink); }
.btn--signal::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; transform: translateY(101%); border-radius: inherit; transition: transform .5s var(--ease); }
.btn--signal:hover::before { transform: none; }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #000; }
.btn .arr { flex: none; display: inline-block; transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn .pip { flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.btn--sm { --h: 40px; padding: 0 16px; font-size: 14px; gap: 9px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.ulink { position: relative; display: inline-flex; gap: 8px; font-weight: 500; }
.ulink::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform-origin: right; transform: scaleX(1); transition: transform .5s var(--ease); opacity: .5; }
.ulink:hover::after { animation: uline .8s var(--ease); }
@keyframes uline { 0%{transform:scaleX(1);transform-origin:right} 45%{transform:scaleX(0);transform-origin:right} 46%{transform:scaleX(0);transform-origin:left} 100%{transform:scaleX(1);transform-origin:left} }

/* ============================================================
   NAV — floating pill, hides on scroll down
   ============================================================ */
.nav {
  position: fixed; z-index: 60; top: 16px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px;
  padding: 6px; border-radius: 999px;
  background: rgba(18,17,16,.62); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  transition: transform .6s var(--ease), opacity .4s var(--ease);
}
.nav.is-hidden { transform: translate(-50%, -140%); }
.logo { display: inline-flex; align-items: center; gap: 10px; padding: 0 14px 0 4px; height: 40px; font-weight: 600; letter-spacing: -.02em; font-size: 15px; white-space: nowrap; }
.chip { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 4px; background: var(--signal); color: var(--signal-ink); font: 700 10px/1 var(--sans); letter-spacing: -.03em; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__a {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; color: var(--text-2); transition: color .25s var(--ease), background .25s var(--ease);
}
.nav__a:hover, .nav__a[aria-expanded="true"] { color: var(--text); background: rgba(255,255,255,.05); }
.nav__a.is-current { color: var(--text); }
.nav__a.is-current::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--signal); }
.nav__a .chev { width: 9px; transition: transform .35s var(--ease); }
.nav__a[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav__menu { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-radius: 999px; color: var(--text-2); font-size: 14px; transition: color .25s var(--ease), background .25s var(--ease); }
.nav__menu:hover { color: var(--text); background: rgba(255,255,255,.05); }
.burger { width: 16px; height: 8px; position: relative; flex: none; }
.burger i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .5s var(--ease), top .5s var(--ease), width .4s var(--ease); }
.burger i:first-child { top: 0; } .burger i:last-child { top: 6.5px; width: 70%; }
.nav__menu:hover .burger i:last-child { width: 100%; }

/* industries dropdown */
.dd {
  position: absolute; top: calc(100% + 10px); left: 50%; width: min(590px, calc(100vw - 32px));
  transform: translate(-50%, -8px); opacity: 0; visibility: hidden;
  padding: 10px; border-radius: 26px; background: rgba(18,17,16,.9); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s linear .45s;
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
}
.dd.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.dd__card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 3 / 4; padding: 14px; border-radius: 18px; overflow: hidden; isolation: isolate; }
.dd__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.06); transition: transform 1s var(--ease), filter .6s var(--ease); filter: saturate(.85) brightness(.7); }
.dd__card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8,7,6,.9), rgba(8,7,6,0) 60%); }
.dd__card:hover img { transform: scale(1); filter: saturate(1) brightness(.85); }
.dd__card b { font-weight: 500; font-size: 17px; letter-spacing: -.02em; }
.dd__card span { font: 400 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); margin-top: 4px; }
.dd__card .i { position: absolute; top: 12px; left: 14px; font: 500 11px/1 var(--mono); color: var(--text-2); }

/* ============================================================
   MENU — one panel that swings in from the right
   ============================================================ */
.menu { position: fixed; inset: 0; z-index: 120; visibility: hidden; transition: visibility 0s linear .7s; }
.menu.is-open { visibility: visible; transition-delay: 0s; }
.menu__scrim { position: absolute; inset: 0; background: rgba(6,5,4,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .5s var(--ease); }
.menu.is-open .menu__scrim { opacity: 1; }
.menu__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(500px, 100%);
  display: flex; flex-direction: column; overflow: auto; overscroll-behavior: contain;
  padding: 22px clamp(22px, 3vw, 40px) max(24px, env(safe-area-inset-bottom));
  background: var(--bg-2); border-left: 1px solid var(--line); box-shadow: -40px 0 120px rgba(0,0,0,.55);
  transform-origin: 100% 50%; transform: perspective(1600px) rotateY(-32deg) translate3d(18%, 0, 0); opacity: 0;
  transition: transform .7s var(--ease), opacity .45s var(--ease);
}
.menu.is-open .menu__panel { transform: none; opacity: 1; }
.menu__top { display: flex; justify-content: space-between; align-items: center; height: 44px; }
.menu__x { width: 44px; height: 44px; margin-right: -12px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); transition: color .25s var(--ease), background .25s var(--ease), transform .5s var(--ease); }
.menu__x:hover { color: var(--text); background: rgba(255,255,255,.06); transform: rotate(90deg); }
.menu__nav { margin-top: clamp(28px, 6vh, 64px); }
.menu__big { list-style: none; margin: 0; padding: 0; }
.menu__big > li { border-top: 1px solid var(--line); }
.menu__big > li:last-child { border-bottom: 1px solid var(--line); }
.menu__big > li > a, .menu__big > li > button {
  display: flex; align-items: baseline; gap: 16px; width: 100%; min-height: 64px; padding: 16px 0; text-align: left;
  font-size: clamp(34px, 4.6vh, 52px); font-weight: 500; letter-spacing: -.045em; line-height: 1;
  color: var(--text); transition: color .3s var(--ease), padding-left .5s var(--ease);
}
.menu__big > li > a:hover, .menu__big > li > button:hover, .menu__big > li > button[aria-expanded="true"] { padding-left: 10px; }
@media (hover: hover) { .menu__big:hover > li > :not(:hover) { color: var(--text-3); } }
.menu__big .n { font: 400 12px/1 var(--mono); color: var(--text-3); position: relative; top: -.9em; letter-spacing: 0; transition: color .3s; }
.menu__big > li > :hover .n, .menu__big [aria-expanded="true"] .n { color: var(--signal); }
.menu__big .plus { margin-left: auto; align-self: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: transform .5s var(--ease), background .3s, border-color .3s; }
.menu__big .plus::before, .menu__big .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px; margin-left: -5px; background: currentColor; }
.menu__big .plus::after { transform: rotate(90deg); }
.menu__big [aria-expanded="true"] .plus { transform: rotate(45deg); background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.menu__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.menu__sub.is-open { grid-template-rows: 1fr; }
.menu__sub > div { overflow: hidden; }
.menu__list { list-style: none; margin: 0; padding: 0 0 14px 0; }
.menu__list a { display: grid; grid-template-columns: 26px 1fr; align-items: baseline; column-gap: 14px; min-height: 48px; padding: 9px 0 9px 40px; font-size: 19px; font-weight: 500; letter-spacing: -.02em; color: var(--text-2); transition: color .25s var(--ease); }
.menu__list a:hover { color: var(--text); }
.menu__list .n { top: 0; }
.menu__list .s { grid-column: 2; margin-top: 2px; font: 400 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.menu__foot { margin-top: auto; padding-top: 28px; display: grid; grid-template-columns: 96px 1fr; gap: 16px 18px; align-items: end; }
.menu__peek { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--surface); opacity: 0; transition: opacity .4s var(--ease); }
.menu__peek.has-img { opacity: 1; }
.menu__peek img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .5s var(--ease), transform 1.2s var(--ease); }
.menu__peek img.is-on { opacity: .9; transform: none; }
.menu__meta { display: flex; flex-direction: column; gap: 6px; font: 400 12px/1.6 var(--mono); letter-spacing: .04em; color: var(--text-3); }
.menu__meta a { color: var(--text-2); display: inline-block; padding-block: 6px; }
.menu__meta a:hover { color: var(--signal); }
.menu__foot .btn { grid-column: 1 / -1; justify-content: center; }
/* items rise in once the panel lands */
.menu__big > li, .menu__foot { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.menu.is-open .menu__big > li, .menu.is-open .menu__foot { opacity: 1; transform: none; }
.menu.is-open .menu__big > li:nth-child(1) { transition-delay: .18s; } .menu.is-open .menu__big > li:nth-child(2) { transition-delay: .24s; }
.menu.is-open .menu__big > li:nth-child(3) { transition-delay: .30s; } .menu.is-open .menu__big > li:nth-child(4) { transition-delay: .36s; }
.menu.is-open .menu__foot { transition-delay: .44s; }
@media (max-width: 600px) {
  .menu__panel { width: 100%; border-left: 0; }
  .menu__foot { grid-template-columns: 1fr; }
  .menu__peek { display: none; }
}
@media (max-height: 640px) { .menu__peek { display: none; } .menu__foot { grid-template-columns: 1fr; } }

/* ============================================================
   MOBILE DOCK — Menu + Book, thumb reach
   ============================================================ */
.dock { display: none; }
@media (max-width: 900px) {
  .nav { top: 12px; left: 12px; right: 12px; transform: none; justify-content: space-between; }
  .nav.is-hidden { transform: translateY(-140%); }
  .nav__links, .nav__menu, .nav > .btn { display: none; }
  .field.is-on { opacity: .42 !important; }
  .dock {
    position: fixed; z-index: 70; left: 50%; bottom: max(14px, env(safe-area-inset-bottom));
    transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; border-radius: 999px;
    background: rgba(18,17,16,.78); border: 1px solid var(--line-2);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0,0,0,.5);
  }
  .dock__menu { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 500; }
  .dock__menu .burger { width: 18px; height: 10px; }
  .dock__menu .burger i:last-child { top: 8.5px; width: 100%; }
  .dock .btn { --h: 48px; }
}

/* ============================================================
   CURSOR — dot + ring that grows a label
   ============================================================ */
.cur { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; display: none; }
.has-cursor .cur { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor [data-cursor] { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.cur__dot { position: fixed; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--signal); }
.cur__ring {
  position: fixed; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  border: 1px solid rgba(243,239,231,.35); display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
}
.cur__ring span { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--signal-ink); opacity: 0; transform: scale(.6); transition: opacity .3s var(--ease), transform .45s var(--ease); white-space: nowrap; }
.cur.is-link .cur__ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: rgba(74,222,128,.6); }
.cur.is-label .cur__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--signal); border-color: var(--signal); }
.cur.is-label .cur__ring span { opacity: 1; transform: none; }
.cur.is-label .cur__dot, .cur.is-text .cur__dot { opacity: 0; }
.cur.is-down .cur__ring { transform: scale(.85); }
.cur.is-hidden { opacity: 0; }

/* ============================================================
   PAGE TRANSITION
   ============================================================ */
.pt { position: fixed; inset: 0; z-index: 140; pointer-events: none; }
.pt__panel { position: absolute; inset: 0; background: var(--bg-2); transform: translateY(0); }
.pt__line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--signal); transform-origin: left; }
.pt__label { position: absolute; left: var(--gutter); bottom: 28px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.no-js .pt { display: none; }

/* ============================================================
   REVEALS (JS gated)
   ============================================================ */
.js [data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(8px); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; transition: opacity 1s var(--ease), transform 1.2s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }

/* ============================================================
   FIELD — the particle canvas
   ============================================================ */
.field { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.6s var(--ease); }
.field.is-on { opacity: 1; }
main { position: relative; z-index: 1; }

/* ============================================================
   HOME · HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 140px 0 clamp(40px, 7vh, 80px); }
.hero__glow { position: absolute; z-index: -1; left: -10%; top: -20%; width: 70vw; height: 70vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--ember),.09), transparent 70%); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.hero .display { margin: 26px 0 0; }
.hero__foot { display: grid; grid-template-columns: minmax(0, 520px) 1fr; gap: 40px; align-items: end; margin-top: clamp(28px, 5vh, 56px); }
.hero__foot .btns { justify-content: flex-end; }
.hero__meta { display: flex; justify-content: space-between; gap: 20px; margin-top: clamp(40px, 8vh, 90px); padding-top: 18px; border-top: 1px solid var(--line); }
.hero__meta span { font: 400 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.scrollcue { display: inline-flex; align-items: center; gap: 10px; }
.scrollcue i { width: 1px; height: 22px; background: var(--line-2); position: relative; overflow: hidden; }
.scrollcue i::after { content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: var(--signal); animation: drip 2s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }
@media (max-width: 900px) {
  .hero { align-items: center; }
  .hero__foot { grid-template-columns: 1fr; }
  .hero__foot .btns { justify-content: flex-start; }
  .hero__meta span:first-child { display: none; }   /* the four industries live in the menu on small screens */
  .hero__meta .scrollcue { margin-left: auto; }
}

/* ---- statement: words fill in on scroll ---- */
.statement { padding-block: clamp(120px, 18vw, 260px) clamp(40px, 6vw, 90px); }
.statement p { margin: 0; font-weight: 500; font-size: clamp(32px, 5vw, 76px); line-height: 1.04; letter-spacing: -.045em; max-width: 17em; text-wrap: balance; }
.js .statement .w { opacity: .14; transition: opacity .2s linear; }
.statement .w.g { color: var(--signal); }

/* ---- philosophy: four panels travelling left as you scroll ----
   Default (no JS, reduced motion, touch): a native horizontal strip with snap.
   Desktop with JS: the section pins and the track is driven by scroll. */
.philo { --ph: min(58svh, 560px); --cap: 96px; position: relative; padding-block: clamp(40px, 6vw, 80px) clamp(40px, 6vw, 72px); }
.philo__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 5vh, 56px); padding-block: 80px 40px; }
.philo__head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.philo__count { margin: 0; font: 400 12px/1 var(--mono); letter-spacing: .12em; color: var(--text); font-variant-numeric: tabular-nums; }
.philo__track {
  position: relative; display: flex; align-items: flex-end; gap: clamp(16px, 2.2vw, 30px);
  padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.philo__track::-webkit-scrollbar { display: none; }
.philo.is-pin .philo__track { overflow: visible; scroll-snap-type: none; will-change: transform; }
.philo__intro { flex: none; width: clamp(280px, 30vw, 440px); align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: calc(var(--cap) + 8px); scroll-snap-align: start; }
.philo__intro .h2 { font-size: clamp(38px, 4.6vw, 72px); }
.philo__hint { display: inline-flex; align-items: center; gap: 10px; margin: 28px 0 0; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.philo__hint .arr { display: inline-block; color: var(--signal); animation: nudge 1.8s var(--ease-io) infinite; }
.philo__hint .m { display: none; }
@media (hover: none) { .philo__hint .d { display: none; } .philo__hint .m { display: inline; } }
@keyframes nudge { 50% { transform: translateX(5px); } }
.philo__panel { --f: 1; flex: none; margin: 0; width: calc(var(--ph) * .8); scroll-snap-align: center; }
.philo__img { position: relative; height: var(--ph); border-radius: var(--r); overflow: hidden; background: var(--surface); transform: scale(calc(.94 + .06 * var(--f))); transform-origin: 50% 100%; }
.philo__img img { position: absolute; top: 0; bottom: 0; left: -8%; width: 116%; height: 100%; object-fit: cover; }
.philo__img::after { content: ""; position: absolute; inset: 0; background: var(--bg); opacity: calc(.55 * (1 - var(--f))); pointer-events: none; }
.philo__panel figcaption { position: relative; height: var(--cap); padding-top: 22px; }
.philo__panel .n { display: block; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.philo__panel .n b { color: var(--signal); font-weight: 500; }
.philo__panel .n i { position: absolute; left: 0; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); transition: background .4s, border-color .4s, box-shadow .6s var(--ease); }
.philo__panel.is-lit .n i { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 0 5px rgba(74,222,128,.16); }
.philo__panel .t { display: block; margin-top: 12px; font-weight: 500; font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -.025em; line-height: 1.25; max-width: 19em; opacity: calc(.35 + .65 * var(--f)); }
.philo__thread { position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--cap); height: 1px; background: var(--line-2); pointer-events: none; }
.philo__thread i { position: absolute; inset: 0; background: var(--signal); transform: scaleX(var(--p, 0)); transform-origin: left; }
.philo__thread::after { content: ""; position: absolute; top: -2px; left: calc(var(--p, 0) * 100%); width: 5px; height: 5px; margin-left: -2px; border-radius: 50%; background: var(--signal); opacity: var(--on, 0); }
.js .philo__thread::after { --on: 1; }
@media (max-width: 900px) {
  .philo { --ph: min(54svh, 460px); --cap: 92px; }
  .philo__pin { min-height: 0; padding-block: 0 8px; gap: 28px; }
  .philo__head { padding-inline: var(--gutter); }
  .philo__intro { width: min(72vw, 360px); }
  .philo__panel { width: min(78vw, calc(var(--ph) * .8)); }
  .philo__panel .t { font-size: 17px; }
}
@media (hover: hover) { .philo__track:focus-visible { outline-offset: -2px; } }

/* ---- how we work: paper section ---- */
.paper { background: var(--paper); color: var(--ink); border-radius: clamp(24px, 3vw, 44px); margin-inline: clamp(8px, 1vw, 16px); }
.paper .label { color: var(--ink-2); }
.paper .tone { color: #7F7A70; } /* 3.4:1 on paper, large text */
.paper .lead { color: var(--ink-2); }
.models { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: clamp(48px, 7vw, 96px); }
.model { position: relative; display: flex; flex-direction: column; min-height: 460px; padding: clamp(26px, 3vw, 44px); border-radius: var(--r); background: #F7F4EE; border: 1px solid var(--ink-line); overflow: hidden; transition: background .5s var(--ease), color .5s var(--ease); }
.model--dark { background: var(--ink); color: var(--paper); border-color: transparent; }
.model__k { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); display: flex; justify-content: space-between; }
.model--dark .model__k { color: #8C877D; }
.model__big { margin-top: auto; font-weight: 500; font-size: clamp(44px, 5.4vw, 88px); line-height: .92; letter-spacing: -.05em; }
.model__big small { display: block; font-size: .42em; letter-spacing: -.03em; color: var(--ink-2); margin-top: 6px; }
.model--dark .model__big small { color: #8C877D; }
.model p { margin: 22px 0 0; max-width: 28em; color: var(--ink-2); }
.model--dark p { color: #A7A298; }
.model__list { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.model__list li { font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--ink-line); }
.model--dark .model__list li { border-color: rgba(237,232,223,.14); }
.model__orb { position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 1px dashed var(--ink-line); animation: spin 40s linear infinite; }
.model--dark .model__orb { border-color: rgba(74,222,128,.28); }
.model__orb::after { content: ""; position: absolute; left: 50%; top: -4px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--signal); }
@keyframes spin { to { transform: rotate(360deg); } }
.models__foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 36px; }
@media (max-width: 800px) { .models { grid-template-columns: 1fr; } .model { min-height: 380px; } }

/* ---- systems: old school x new tech ---- */
.compare { position: relative; margin-top: clamp(48px, 7vw, 96px); aspect-ratio: 16 / 8.5; border-radius: var(--r); overflow: hidden; background: var(--surface); touch-action: pan-y; user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__new { clip-path: inset(0 0 0 var(--x, 50%)); }
.compare__bar { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 1px; background: rgba(243,239,231,.7); }
.compare__knob { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--signal); color: var(--signal-ink); display: grid; place-items: center; font: 500 12px/1 var(--mono); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
/* the four old → new pairs live on the slider itself, same order both sides */
.compare__cap { position: absolute; bottom: 22px; z-index: 2; display: flex; flex-direction: column; gap: 10px; max-width: 42%; }
.compare__cap b { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.compare__cap span { font: 400 clamp(13px, 1.1vw, 15px)/1.65 var(--sans); color: rgba(243,239,231,.82); text-shadow: 0 1px 12px rgba(0,0,0,.8); }
.compare__cap--l { left: 24px; } .compare__cap--r { right: 24px; text-align: right; align-items: flex-end; }
.compare::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,7,6,.78), transparent 45%); pointer-events: none; }
@media (max-width: 700px) { .compare { aspect-ratio: 4 / 5; } .compare img { object-position: 50% 50%; } .compare__cap { max-width: 46%; bottom: 18px; } .compare__cap--l { left: 16px; } .compare__cap--r { right: 16px; } }
.sys__line { margin-top: clamp(40px, 5vw, 64px); font-size: clamp(20px, 1.9vw, 28px); letter-spacing: -.02em; max-width: 22em; }

/* brand list: rows with a floating preview */
.rows { list-style: none; margin: clamp(56px, 8vw, 100px) 0 0; padding: 0; border-bottom: 1px solid var(--line); }
.row { border-top: 1px solid var(--line); }
.row a, .row > div { position: relative; display: grid; grid-template-columns: 60px 1fr auto auto; gap: 20px; align-items: center; padding: clamp(16px, 2vw, 24px) 0; }
.row .n { font: 400 12px/1 var(--mono); color: var(--text-3); }
.row .t { font-weight: 500; font-size: clamp(26px, 3.4vw, 50px); letter-spacing: -.04em; line-height: 1; transition: transform .6s var(--ease), color .4s var(--ease); }
.row .k { font: 400 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.row .go { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .5s var(--ease); }
.row a:hover .t { transform: translateX(14px); }
.row a:hover .go { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); transform: rotate(-45deg); }
.rows:hover .row a:not(:hover) .t { color: var(--text-3); }
@media (max-width: 700px) { .row a, .row > div { grid-template-columns: 1fr auto; } .row .n, .row .k { display: none; } }
.peek { position: fixed; left: 0; top: 0; z-index: 55; width: 300px; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; pointer-events: none; opacity: 0; transform: scale(.8); transition: opacity .35s var(--ease), transform .5s var(--ease); }
.peek.is-on { opacity: 1; transform: scale(1); }
.peek img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .peek { display: none; } }

/* ---- CTA: the terminal close ---- */
.close { text-align: left; }
.close__term { font: 400 clamp(14px, 1.2vw, 16px)/1.7 var(--mono); color: var(--text-3); margin-bottom: 28px; }
.close__term .g { color: var(--signal); }
.caret { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.18em; background: var(--signal); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.close .display { font-size: clamp(52px, 10vw, 170px); }
.close__row { display: flex; justify-content: space-between; align-items: end; gap: 28px; flex-wrap: wrap; margin-top: clamp(32px, 5vw, 64px); }

/* ============================================================
   FOOTER — one quiet line
   ============================================================ */
.foot { position: relative; z-index: 1; padding: 22px 0 max(28px, env(safe-area-inset-bottom)); }
.foot__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); font: 400 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.foot__row a { color: var(--text-2); display: inline-flex; align-items: center; min-height: 44px; }
.foot__row a:hover { color: var(--signal); }
.foot__links { display: flex; gap: 22px; flex-wrap: wrap; }
@media (max-width: 900px) { .foot { padding-bottom: 100px; } }

/* ============================================================
   SHARED BLOCKS — industry + case templates
   ============================================================ */
.crumbs { display: flex; gap: 10px; align-items: center; font: 400 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.crumbs a { padding-block: 10px; transition: color .25s var(--ease); }
.crumbs a:hover { color: var(--text); }

.split { min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: 130px 60px; }
.split__media { position: relative; height: min(78svh, 780px); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.split__media img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; }
.split .display { font-size: clamp(46px, 6.6vw, 112px); margin-top: 22px; }
.split .lead { margin-top: 24px; }
.split .btns { margin-top: 34px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; min-height: 0; padding-block: 110px 40px; } .split__media { height: 62svh; order: -1; } .split__media--shot { height: auto; } }

/* device frame for screenshots */
.device { position: relative; border-radius: 16px; background: #1b1a17; border: 1px solid var(--line-2); padding: 34px 10px 10px; box-shadow: 0 50px 100px rgba(0,0,0,.55); }
.device::before { content: ""; position: absolute; top: 13px; left: 16px; width: 44px; height: 8px; background: radial-gradient(circle at 4px 4px, #3a3834 3.5px, transparent 4px) 0 0 / 16px 8px repeat-x; }
.device img { border-radius: 8px; width: 100%; height: auto; }
.split__media--shot { background: radial-gradient(120% 90% at 70% 20%, rgba(var(--ember),.12), transparent 60%), var(--surface); display: grid; place-items: center; padding: clamp(18px, 3vw, 44px); }
.split__media--shot .device { width: 100%; transform: rotate(-2deg); }
.split__media--shot img { position: static; height: auto; inset: auto; }

/* proof / numbers */
.nums { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.num { padding: clamp(26px, 4vw, 56px) clamp(0px, 2vw, 32px); border-left: 1px solid var(--line); }
.num:first-child { border-left: 0; padding-left: 0; }
.num b { display: block; font-weight: 500; font-size: clamp(56px, 7.5vw, 124px); line-height: .9; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.num b.todo { color: var(--text-3); }
.num span { display: block; margin-top: 14px; font: 400 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); max-width: 22ch; }
@media (max-width: 700px) { .nums { grid-template-columns: 1fr; } .num { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; } .num:first-child { border-top: 0; } }

.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: clamp(40px, 6vw, 80px); }
.pain { padding: clamp(24px, 2.6vw, 36px); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); min-height: 280px; display: flex; flex-direction: column; }
.pain .x { font: 500 12px/1 var(--mono); color: var(--text-3); }
.pain h3 { margin-top: auto; }
.pain p { margin: 12px 0 0; color: var(--text-2); font-size: 15px; }
@media (max-width: 900px) { .pains { grid-template-columns: 1fr; } .pain { min-height: 0; gap: 40px; } }

.steps { list-style: none; padding: 0; margin: clamp(40px, 6vw, 80px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-2); }
.steps::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--signal); transform: scaleX(var(--p, 0)); transform-origin: left; }
.step { position: relative; padding: 36px 24px 0 0; }
.step::before { content: ""; position: absolute; left: 0; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); transition: background .4s, border-color .4s; }
.step.is-lit::before { background: var(--signal); border-color: var(--signal); }
.step .k { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.step p { margin: 14px 0 0; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.02em; line-height: 1.25; }
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
  .steps::before, .steps::after { left: 5px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; transform: scaleY(var(--p, 0)); transform-origin: top; }
  .step { padding: 0 0 36px 36px; }
}

.feature { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); margin-top: clamp(40px, 6vw, 80px); }
.feature__img { position: relative; min-height: 460px; overflow: hidden; background: #161513; display: grid; place-items: center; padding: 28px; }
.feature__img .device { width: 100%; }
.feature__body { padding: clamp(28px, 3.4vw, 52px); display: flex; flex-direction: column; }
.feature__body .h2 { font-size: clamp(32px, 3.6vw, 56px); margin-top: 18px; }
.feature__body .lead { margin-top: 16px; font-size: 16px; }
.feature__body .btns { margin-top: auto; padding-top: 32px; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature__img { min-height: 300px; } }

/* lead magnet opt-in */
.magnet { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(28px, 5vw, 72px); border-radius: clamp(24px, 3vw, 40px); overflow: hidden; background: var(--paper); color: var(--ink); }
.magnet .label { color: var(--ink-2); }
.magnet__book { position: relative; aspect-ratio: 3 / 4; max-width: 380px; width: 100%; margin-inline: auto; perspective: 1200px; }
.magnet__cover { position: absolute; inset: 0; border-radius: 6px 16px 16px 6px; background: var(--ink); color: var(--paper); padding: 28px 26px; display: flex; flex-direction: column; box-shadow: 30px 40px 60px rgba(18,17,15,.3), inset 6px 0 0 rgba(255,255,255,.06); transform: rotateY(-18deg) rotateX(4deg); transform-origin: left; transition: transform 1s var(--ease); }
.magnet:hover .magnet__cover { transform: rotateY(-8deg) rotateX(2deg); }
.magnet__cover .chip { width: 38px; height: 38px; }
.magnet__cover b { margin-top: auto; font-weight: 500; font-size: clamp(26px, 2.6vw, 38px); line-height: 1; letter-spacing: -.04em; }
.magnet__cover span { margin-top: 14px; font: 400 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #8C877D; }
.magnet__cover::after { content: "PLACEHOLDER"; position: absolute; top: 28px; right: 24px; font: 500 10px/1 var(--mono); letter-spacing: .12em; color: var(--signal); }
.magnet .h2 { font-size: clamp(34px, 4vw, 64px); margin-top: 16px; }
.magnet p { color: var(--ink-2); margin: 16px 0 0; max-width: 32em; }
.optin { display: flex; gap: 8px; margin-top: 28px; padding: 6px; border-radius: 999px; background: #fff; border: 1px solid var(--ink-line); max-width: 520px; }
.optin input { flex: 1; min-width: 0; height: 50px; padding: 0 18px; border: 0; outline: 0; background: none; font: 400 16px var(--sans); color: var(--ink); }
.optin input::placeholder { color: #767169; }
.optin .btn { --h: 50px; }
.optin__note { margin-top: 12px; font: 400 12px/1.4 var(--mono); color: var(--ink-2); }
.optin__done { display: none; margin-top: 28px; font-weight: 500; font-size: 20px; }
.optin.is-done { display: none; } .optin.is-done + .optin__note + .optin__done, .optin.is-done ~ .optin__done { display: block; }
@media (max-width: 800px) { .magnet { grid-template-columns: 1fr; } .magnet__book { max-width: 240px; } .optin { flex-direction: column; border-radius: 22px; } .optin .btn { justify-content: center; } }

/* faq */
.faq { margin-top: clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-size: clamp(19px, 1.8vw, 26px); letter-spacing: -.025em; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: transform .5s var(--ease), background .4s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; margin: 0 0 0 -6px; background: currentColor; }
.faq summary i::after { transform: rotate(90deg); transition: transform .5s var(--ease); }
.faq details[open] summary i { background: var(--signal); color: var(--signal-ink); border-color: var(--signal); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq .a { overflow: hidden; }
.faq .a p { margin: 0; padding: 0 60px 26px 0; color: var(--text-2); max-width: 40em; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 100px); }
@media (max-width: 800px) { .two { grid-template-columns: 1fr; } }
.kv { list-style: none; padding: 0; margin: 0; }
.kv li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.kv li span:first-child { font: 400 12px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: clamp(40px, 6vw, 80px); }
.gallery figure { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.gallery figure:nth-child(3n+1) { grid-column: span 2; }
.gallery img { width: 100%; height: auto; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } .gallery figure:nth-child(3n+1) { grid-column: auto; } }

.next { display: block; padding-block: clamp(80px, 12vw, 180px); border-top: 1px solid var(--line); }
.next .label { margin-bottom: 20px; }
.next .display { font-size: clamp(44px, 8vw, 132px); transition: color .5s var(--ease); }
.next:hover .display { color: var(--signal); }

.todo-flag { display: inline-block; font: 500 10px/1 var(--mono); letter-spacing: .12em; color: var(--signal-ink); background: var(--signal); padding: 4px 6px; border-radius: 4px; vertical-align: middle; }

/* ============================================================
   WORK INDEX
   ============================================================ */
.work-hero { padding-block: 170px 40px; }
.work-hero .display { font-size: clamp(64px, 16vw, 260px); line-height: .85; }
.work-hero sup { font: 400 clamp(14px, 1.4vw, 20px)/1 var(--mono); letter-spacing: 0; vertical-align: top; color: var(--signal); margin-left: .3em; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.card__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #161513; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.card:hover .card__img img { transform: none; }
.card__body { display: flex; justify-content: space-between; gap: 20px; align-items: end; padding: 22px 24px 24px; }
.card__body .h3 { max-width: 16em; }
.card__body .label { margin-bottom: 10px; }
@media (max-width: 800px) { .cards { grid-template-columns: 1fr; } }

/* ============================================================
   VENTURES
   ============================================================ */
.v-hero { min-height: 92svh; display: flex; flex-direction: column; justify-content: center; padding-block: 150px 40px; position: relative; overflow: clip; }
.v-hero .display { font-size: clamp(56px, 11vw, 190px); line-height: .88; }
.v-hero__marquee { position: absolute; left: 0; right: 0; bottom: 34px; display: flex; white-space: nowrap; font: 400 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.v-hero__marquee div { display: flex; gap: 48px; padding-right: 48px; animation: marq 40s linear infinite; }
@keyframes marq { to { transform: translateX(-100%); } }
.venture { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: clamp(60px, 9vw, 130px); border-top: 1px solid var(--line); }
.venture:nth-child(even) .venture__img { order: 2; }
.venture__img { position: relative; aspect-ratio: 5 / 4; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.venture__img img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.venture__img img.shot { object-position: top; }
.venture .k { display: flex; gap: 14px; align-items: center; }
.venture .h2 { margin-top: 18px; font-size: clamp(40px, 5.4vw, 88px); }
.venture .lead { margin-top: 18px; }
.venture .btns { margin-top: 30px; }
@media (max-width: 800px) { .venture { grid-template-columns: 1fr; } .venture:nth-child(even) .venture__img { order: 0; } }

/* ============================================================
   FOUNDER
   ============================================================ */
.f-hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 140px 0 40px; overflow: clip; }
.f-hero__name { font-weight: 500; font-size: clamp(64px, 19vw, 340px); line-height: .8; letter-spacing: -.07em; margin: 0; white-space: nowrap; }
.f-hero__name .ln { display: block; overflow: clip; padding: .22em .05em .14em; margin: -.22em -.05em -.14em; }
.f-hero__name .ln > span { display: inline-block; }
.f-hero__name .ln:last-child { text-align: right; color: var(--text-3); }
.f-hero__img { position: absolute; z-index: -1; right: var(--gutter); top: 110px; width: min(34vw, 460px); aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; }
.f-hero__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); }
.f-hero__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg), transparent 50%); }
.f-hero__row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 800px) { .f-hero__img { position: relative; top: auto; right: auto; width: 100%; margin-bottom: 28px; z-index: 0; } .f-hero { justify-content: flex-start; padding-top: 100px; } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { padding: 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
.stat b { font-weight: 500; font-size: clamp(48px, 5vw, 80px); letter-spacing: -.06em; line-height: .9; }
.stat span { font: 400 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } }
.timeline { position: relative; overflow-x: clip; }
.timeline__track { display: flex; gap: 12px; width: max-content; padding-inline: var(--gutter); }
.tl { width: min(420px, 78vw); min-height: 380px; padding: 28px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.tl .y { font-weight: 500; font-size: clamp(56px, 6vw, 96px); letter-spacing: -.06em; line-height: .9; color: transparent; -webkit-text-stroke: 1px var(--line-2); }
.tl.is-lit .y { color: var(--text); -webkit-text-stroke: 0; transition: color .6s; }
.tl h3 { margin-top: auto; }
.tl p { color: var(--text-2); margin: 12px 0 0; font-size: 15px; }
.prose { max-width: 40em; }
.prose p { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; color: var(--text-2); letter-spacing: -.01em; margin: 0 0 1.2em; }
.prose p:first-child { color: var(--text); font-size: clamp(24px, 2.4vw, 36px); line-height: 1.25; letter-spacing: -.03em; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .js .statement .w { opacity: 1; }
  .grain { animation: none; }
}

/* rise: a word sliding up out of its own mask (founder name) */
.js [data-rise] { transform: translateY(105%); }
.js.is-ready [data-rise] { transform: none; transition: transform 1.4s var(--ease) calc(.5s + var(--d, 0s)); }
@media (prefers-reduced-motion: reduce) { .js [data-rise] { transform: none; } }

/* industry pages: the booking block that replaced the lead magnet */
.magnet__kv { align-self: center; }
.magnet__kv li { border-top-color: var(--ink-line); }
.magnet__kv li span:first-child { color: var(--ink-2); }
.magnet__kv li span:last-child { color: var(--ink); }

/* ============================================================
   THE NUMBER — the hero quote, the run command, and section 02
   Green on the home page means one thing: the number.
   ============================================================ */
@media (min-width: 901px) { .hero__foot { grid-template-columns: minmax(0, 640px) 1fr; } }
.hero__quote { margin: 0; max-width: 30em; font-size: clamp(19px, 1.7vw, 25px); line-height: 1.38; letter-spacing: -.015em; color: var(--text-2); text-wrap: pretty; }
.hero__quote .hi { color: var(--text); }
.hero__term { display: inline-flex; align-items: center; gap: 8px; margin: 22px 0 0; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(18,17,16,.6); font: 400 13px/1 var(--mono); color: var(--text-2); white-space: nowrap; max-width: 100%; }
.hero__term .p { color: var(--text-3); }
.hero__term .type { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero__term .ok { color: var(--signal); opacity: 0; transform: translateY(4px); }
.js .hero__term.is-in .type { width: 0; animation: typeIn 1.6s steps(31, end) .9s forwards; }
.js .hero__term.is-in .ok { animation: okIn .5s var(--ease) 2.6s forwards; }
.no-js .hero__term .ok { opacity: 1; transform: none; }
@keyframes typeIn { to { width: 31ch; } }
@keyframes okIn { to { opacity: 1; transform: none; } }
@media (max-width: 420px) { .hero__term { font-size: 11.5px; } }

.philo__build { font-size: clamp(34px, 3.8vw, 60px) !important; line-height: 1; }

/* ---- 02 then we run it ---- */
.run { position: relative; }
.run__pin { display: flex; flex-direction: column; justify-content: center; height: 100svh; min-height: 640px; padding-block: clamp(84px, 10vh, 120px) clamp(40px, 6vh, 72px); }
.run__pin > .wrap { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.run__head { flex: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; margin-bottom: clamp(48px, 6vh, 64px); }
.run__head .h2 { margin-top: 18px; font-size: clamp(38px, min(5vw, 8.5vh), 80px); }
.run__status { margin: 0; min-width: min(100%, 360px); padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(18,17,16,.7); font: 400 13px/1.3 var(--mono); color: var(--text-2); }
.run.is-done .run__status { color: var(--signal); border-color: rgba(74,222,128,.45); }
.run__status.is-new { animation: statusIn .45s var(--ease); }
@keyframes statusIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.run__chart { position: relative; flex: 1 1 auto; min-height: 240px; margin-right: clamp(16px, 4vw, 70px); }
.run__chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.run__grid { stroke: var(--line); stroke-width: 1; fill: none; }
.run__base { stroke: var(--line-2); stroke-width: 1; fill: none; }
.run__area { fill: rgba(74,222,128,.07); }
.run__line { fill: none; stroke: var(--signal); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(74,222,128,.45)); }
.run__ax { position: absolute; font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.run__ax--y { left: 0; top: -22px; }
.run__ax--x { right: 0; bottom: -24px; }

.run__drop { position: absolute; width: 0; border-left: 1px dashed rgba(245,238,225,.22); opacity: 0; transition: opacity .5s var(--ease); }
.run__drop.is-on { opacity: 1; }
.run__mark { position: absolute; width: 0; height: 0; }
.run__dot { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); transition: background .4s, border-color .4s, box-shadow .6s var(--ease); }
.run__pill { position: absolute; left: 0; bottom: 16px; transform: translate(-50%, 10px); white-space: nowrap; padding: 8px 13px; border-radius: 999px; background: var(--text); color: var(--ink); font-size: clamp(12px, 1vw, 15px); font-weight: 500; letter-spacing: -.01em; box-shadow: 0 14px 30px rgba(0,0,0,.45); opacity: 0; transition: opacity .45s var(--ease), transform .6s var(--ease); }
.run__mark.is-on .run__dot { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 0 6px rgba(74,222,128,.16); }
.run__mark.is-on .run__pill { opacity: 1; transform: translate(-50%, 0); }
.run__end { position: absolute; width: 0; height: 0; }
.run__dot--end { left: -9px; top: -9px; width: 18px; height: 18px; }
.run__win { position: absolute; right: 18px; top: -46px; white-space: nowrap; font-weight: 500; font-size: clamp(18px, 2vw, 30px); letter-spacing: -.03em; color: var(--signal); opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.run__end.is-on .run__dot--end { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 0 10px rgba(74,222,128,.14), 0 0 30px rgba(74,222,128,.5); }
.run__end.is-on .run__win { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .run__pin { height: auto; min-height: 0; padding-block: clamp(80px, 14vw, 120px) 72px; }
  .run__pin > .wrap { display: block; }
  .run__chart { flex: none; height: 340px; margin-right: 8px; }
  .run__pill { padding: 6px 10px; font-size: 12px; }
  .run__head { align-items: flex-start; }
  .run__status { min-width: 0; width: 100%; }
}
/* narrow screens: keep the two right-hand pills clear of the edge */
@media (max-width: 600px) {
  .run__mark.m3 .run__pill { transform: translate(-70%, 10px); }
  .run__mark.m3.is-on .run__pill { transform: translate(-70%, 0); }
  .run__mark.m4 .run__pill { transform: translate(-88%, 10px); }
  .run__mark.m4.is-on .run__pill { transform: translate(-88%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero__term .type { width: auto; animation: none; }
  .hero__term .ok { opacity: 1; transform: none; animation: none; }
}

/* ============================================================
   SCREENSHOTS — always whole, in a browser frame, never cropped
   ============================================================ */
.device img { display: block; max-width: 100%; }
.venture__img--shot { aspect-ratio: auto; display: grid; place-items: center; padding: clamp(18px, 3vw, 40px); background: radial-gradient(120% 90% at 70% 20%, rgba(var(--ember),.1), transparent 60%), var(--surface); }
.venture__img--shot .device { width: 100%; }
.venture__img--shot img, .card__img--shot img { position: static; inset: auto; width: 100%; height: auto; object-fit: initial; transform: none; }
.card__img--shot { display: grid; place-items: center; padding: clamp(16px, 2.4vw, 32px); background: radial-gradient(120% 90% at 70% 20%, rgba(var(--ember),.08), transparent 60%), #161513; }
.card__img--shot .device { width: 100%; transition: transform 1.2s var(--ease); }
.card:hover .card__img--shot .device { transform: translateY(-4px); }
.dd__card--shot { background: #161513; }
.dd__card--shot img { inset: 12px 10px auto; height: auto; width: calc(100% - 20px); object-fit: contain; border-radius: 6px; transform: none; filter: none; box-shadow: 0 10px 24px rgba(0,0,0,.5); }
.dd__card--shot:hover img { transform: none; filter: none; }
.menu__peek img.is-shot { object-fit: contain; background: #161513; padding: 10px; }
.device img { object-fit: contain !important; }
.menu__peek img.is-shot, .menu__peek img.is-shot.is-on { transform: none; }
.dd__card--shot img { inset: 34px 10px auto; }
