:root {
  --wall: #97938d;
  --wall-ink: #1a1917;
  --wall-soft: #34322e;
  --paper: #ebe9e4;
  --paper-2: #e2dfd9;
  --ink: #151513;
  --muted: #5f5c56;
  --line: #cdc9c1;
  --accent: #b5521b;
  --accent-soft: rgba(181, 82, 27, .14);
  --script: "Instrument Serif", Georgia, serif;
  --sans: "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --pad: clamp(16px, 5vw, 72px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.script { font-family: var(--script); font-weight: 400; font-style: italic; }
.label { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.big { font-weight: 500; font-size: clamp(38px, 6.4vw, 84px); line-height: 1; letter-spacing: -.035em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 40ch; margin-top: 22px; }
.title { font-weight: 500; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.025em; max-width: 16ch; }
.body { color: var(--muted); margin-top: 16px; max-width: 46ch; }
.links { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; }
.link { font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: opacity .2s; }
.link::after { content: " \2197"; font-size: .85em; }
.link:hover { opacity: .6; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--pad);
  transition: background .35s var(--ease), padding .35s var(--ease), border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.solid { background: var(--paper); padding-top: 12px; padding-bottom: 12px; border-color: var(--line); }
.nav a { text-decoration: none; }
.nav-name { font-weight: 500; letter-spacing: -.01em; opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .35s var(--ease); }
.nav.solid .nav-name { opacity: 1; transform: none; }
.nav-links { display: flex; gap: 26px; font-size: 15px; }
.nav-links a { opacity: .75; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta { opacity: 1 !important; border-bottom: 1px solid currentColor; }

/* ---------- HERO ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  background: var(--wall); color: var(--wall-ink); overflow: hidden;
  display: flex; align-items: center;
}
.hero-photo { position: absolute; inset: 0; will-change: transform; }
.hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 30%;
  animation: photoIn 1.6s var(--ease) both;
}
@keyframes photoIn { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: none; } }
.hero-copy { position: relative; z-index: 2; padding: 0 var(--pad); padding-left: max(var(--pad), 7vw); max-width: 1000px; will-change: transform, opacity; }
.hero-script { font-size: clamp(42px, 5.4vw, 84px); line-height: 1.04; letter-spacing: -.015em; }
.hero-script span { display: block; white-space: nowrap; clip-path: inset(0 100% 0 0); animation: write 1.5s var(--ease) forwards; }
.hero-script span:nth-child(1) { animation-delay: .35s; }
.hero-script span:nth-child(2) { animation-delay: 1.05s; padding-left: .6em; }
@keyframes write { to { clip-path: inset(0 -5% 0 0); } }
.hero-rule { height: 1px; background: var(--wall-ink); width: min(420px, 70%); margin: 34px 0 20px; transform-origin: left; transform: scaleX(0); animation: rule 1s var(--ease) 1.9s forwards; }
@keyframes rule { to { transform: scaleX(1); } }
.hero-name, .hero-line, .hero-actions { opacity: 0; transform: translateY(10px); animation: up .9s var(--ease) forwards; }
.hero-name { font-size: clamp(22px, 2vw, 28px); font-weight: 400; letter-spacing: .01em; animation-delay: 2.05s; }
.hero-line { color: var(--wall-soft); margin-top: 6px; font-size: 17px; animation-delay: 2.2s; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; animation-delay: 2.35s; }
@keyframes up { to { opacity: 1; transform: none; } }

.btn { display: inline-flex; align-items: center; height: 46px; padding: 0 22px; text-decoration: none; font-weight: 500; font-size: 15px; border-radius: 2px; transition: transform .25s var(--ease), background .25s, color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-ink { background: var(--wall-ink); color: var(--wall); }
.btn-line { border: 1px solid var(--wall-ink); }
.btn-line:hover { background: var(--wall-ink); color: var(--wall); }

.scroll-cue { position: absolute; left: max(var(--pad), 7vw); bottom: 22px; width: 60px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-decoration: none; color: var(--wall-ink); opacity: 0; animation: up 1s var(--ease) 2.8s forwards; z-index: 3; }
.scroll-cue .mono { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.scroll-cue i { position: relative; width: 1px; height: 44px; background: rgba(26,25,23,.25); overflow: hidden; }
.scroll-cue b { position: absolute; inset: 0; background: var(--wall-ink); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- INTRO + PIPELINE ---------- */
.intro { padding: clamp(110px, 16vw, 200px) 0 clamp(60px, 8vw, 110px); }
.pipe { list-style: none; display: flex; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--ink); }
.pipe li { flex: 1; position: relative; padding: 18px 18px 0 0; font-size: clamp(16px, 1.5vw, 20px); font-weight: 500; letter-spacing: -.01em; }
.pipe li .mono { display: block; color: var(--muted); font-size: 11px; margin-bottom: 6px; }
.pipe li + li::before { content: "\2192"; position: absolute; left: -26px; top: 36px; color: var(--muted); font-weight: 400; }
.pipe a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .2s; }
.pipe a:hover { border-color: var(--accent); }
.pipe li:first-child, .pipe li:last-child { color: var(--muted); }

/* ---------- STORY (sticky scrollytelling) ---------- */
.story { position: relative; }
.story-sticky { padding: clamp(80px, 10vw, 130px) 0; }
.story-grid { display: grid; grid-template-columns: .85fr 1.25fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.story-grid.flip { grid-template-columns: 1.25fr .85fr; }
.story-grid.flip .story-text { order: 2; }
.steps { list-style: none; margin-top: 24px; display: grid; gap: 2px; }
.steps li { position: relative; padding: 6px 0 6px 22px; color: var(--muted); opacity: .4; transition: opacity .4s, color .4s; font-size: 15px; cursor: pointer; }
.steps li:hover { opacity: .75; }
.steps li::before { content: ""; position: absolute; left: 0; top: calc(6px + .78em); width: 9px; height: 1px; background: currentColor; transition: width .4s var(--ease), background .4s; }
.steps li.on { opacity: 1; color: var(--ink); }
.steps li.on::before { width: 14px; background: var(--accent); }
.stat { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); max-width: 42ch; font-size: 15px; }
.stat b { color: var(--ink); font-weight: 600; }
.mono-stat { font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.vis { background: var(--panel); border: 1px solid var(--line); padding: clamp(18px, 2.4vw, 30px); border-radius: 6px; }
.bv.vis { background: transparent; border: 0; padding: 0; }


/* ---------- DEEPCUT ---------- */
.dc-top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.dc-top .mono { color: var(--muted); }
.dc-count { display: flex; align-items: baseline; gap: 2px; font-variant-numeric: tabular-nums; }
.dc-count b { font-size: clamp(44px, 5vw, 68px); font-weight: 500; letter-spacing: -.04em; line-height: .9; }
.dc-count span { font-size: 20px; color: var(--muted); }
.dc-count em { font: 500 13px var(--mono); font-style: normal; color: var(--accent); margin-left: 12px; opacity: 0; transform: translateY(8px); transition: opacity .3s .3s, transform .3s .3s var(--ease); }
.dc[data-step="3"] .dc-count em, .dc[data-step="4"] .dc-count em { opacity: 1; transform: none; }
.dc-track { display: flex; height: 230px; align-items: stretch; gap: 3px; }
.seg { position: relative; flex: var(--w) 1 0; min-width: 0; border-radius: 3px; transition: flex-grow .5s var(--ease) .18s, opacity .35s var(--ease) .08s, transform .45s cubic-bezier(.5,0,.8,.4), background .5s, outline-color .5s; outline: 1px solid transparent; outline-offset: -1px; }
.seg .bars { position: absolute; inset: 78px 5px 26px 5px; display: flex; align-items: center; gap: 2px; }
.seg .bars i { flex: 1; background: var(--ink); border-radius: 1px; height: var(--h); transition: background .5s, opacity .5s; }
.seg.gap .bars i { opacity: .22; }
.seg .word { position: absolute; left: 5px; top: 6px; right: 3px; font: 500 11.5px/1.3 var(--mono); white-space: normal; overflow: hidden; max-height: 64px; }
.seg.gap .word { color: var(--accent); font-size: 13px; opacity: 0; transition: opacity .4s; }
.seg .ts { position: absolute; left: 5px; bottom: 6px; font: 400 10px/1 var(--mono); color: var(--muted); }
.dc:not([data-step="0"]) .seg.gap { background: repeating-linear-gradient(135deg, var(--accent-soft) 0 7px, transparent 7px 14px); outline-color: rgba(181,82,27,.5); }
.dc:not([data-step="0"]) .seg.gap .word { opacity: 1; }
.dc[data-step="2"] .seg.retake, .dc[data-step="3"] .seg.retake, .dc[data-step="4"] .seg.retake { background: var(--accent-soft); outline-color: rgba(181,82,27,.5); }
.dc[data-step="2"] .seg.retake .bars i { background: var(--accent); }
.dc[data-step="2"] .seg.retake .word { text-decoration: line-through; color: var(--accent); }
.dc[data-step="3"] .seg.gap, .dc[data-step="3"] .seg.retake,
.dc[data-step="4"] .seg.gap, .dc[data-step="4"] .seg.retake { flex-grow: 0; opacity: 0; transform: translateY(120px) rotate(9deg); margin: 0 -1.5px; }
.dc-legend { display: flex; gap: 18px; margin-top: 18px; color: var(--muted); flex-wrap: wrap; }
.sw { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; border-radius: 1px; }
.sw-word { background: var(--ink); }
.sw-gap { background: repeating-linear-gradient(135deg, var(--accent) 0 2px, transparent 2px 4px); outline: 1px solid var(--accent); outline-offset: -1px; }
.sw-retake { background: var(--accent); }
.dc-check { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); color: var(--ink); opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s var(--ease); }
.dc-check::before { content: "\2713  "; color: var(--accent); font-weight: 600; }
.dc[data-step="4"] .dc-check { opacity: 1; transform: none; }

/* ---------- DEEPCLIP ---------- */
.cl-top { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 30px; }
.cl-top span:last-child { color: var(--ink); }
.cl-heat { display: flex; align-items: flex-end; gap: 3px; height: 130px; }
.hb { position: relative; flex: 1; height: 14%; background: var(--idle); border-radius: 1px; transition: height .45s var(--ease), background .5s, opacity .5s; }
.hb:nth-child(odd) { transition-delay: .05s; }
.hb em { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); font: 500 10.5px var(--mono); font-style: normal; color: var(--accent); opacity: 0; transition: opacity .4s .3s; white-space: nowrap; }
.cl:not([data-step="0"]) .hb { height: var(--h); background: rgba(var(--ink-rgb),var(--o)); }
.cl:not([data-step="0"]) .hb.pick { background: var(--accent); }
.cl:not([data-step="0"]) .hb.pick em { opacity: 1; }
.cl[data-step="2"] .hb.reject, .cl[data-step="3"] .hb.reject { background: repeating-linear-gradient(135deg, var(--accent) 0 2px, transparent 2px 5px); opacity: .6; }
.cl[data-step="2"] .hb.reject em, .cl[data-step="3"] .hb.reject em { text-decoration: line-through; }
.cl[data-step="2"] .hb.added, .cl[data-step="3"] .hb.added { background: var(--accent); }
.cl[data-step="2"] .hb.added em, .cl[data-step="3"] .hb.added em { opacity: 1; }
.cl-axis { display: flex; justify-content: space-between; color: var(--muted); margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.cl-clips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.clip { position: relative; aspect-ratio: 9 / 16; border: 1px dashed var(--line); border-radius: 8px; overflow: hidden; }
.clip-in { position: absolute; inset: 0; background: var(--ink); opacity: 0; transform: translateY(-80px) scale(.5); transition: opacity .35s, transform .5s var(--ease); }
.clip img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 20%; filter: saturate(.85); }
.clip b { position: absolute; left: 8px; right: 8px; bottom: 26%; color: #fff; font: 800 clamp(10px, 1vw, 13px)/1.1 var(--sans); text-transform: uppercase; text-align: center; -webkit-text-stroke: 3px #000; paint-order: stroke fill; }
.clip i { position: absolute; left: 6px; top: 6px; font: 500 10px var(--mono); font-style: normal; background: var(--accent); color: #fff; padding: 2px 5px; border-radius: 2px; }
.clip span { position: absolute; right: 6px; bottom: 6px; font: 500 10px var(--mono); color: #fff; background: rgba(0,0,0,.55); padding: 2px 5px; border-radius: 2px; }
.cl[data-step="3"] .clip-in { opacity: 1; transform: none; }
.cl[data-step="3"] .clip:nth-child(2) .clip-in { transition-delay: .12s; }
.cl[data-step="3"] .clip:nth-child(3) .clip-in { transition-delay: .24s; }
.cl[data-step="3"] .clip:nth-child(4) .clip-in { transition-delay: .36s; }

/* ---------- DEEPCAPTION ---------- */
.cp { display: flex; justify-content: center; align-items: center; gap: clamp(20px, 3vw, 44px); }
.cp-times { display: grid; gap: 3px; font-size: 12px; min-width: 150px; }
.cp-times p { display: flex; justify-content: space-between; gap: 18px; padding: 4px 8px; color: var(--muted); border-radius: 2px; transition: background .12s, color .12s; }
.cp-times p.on { background: var(--ink); color: var(--paper); }
.cp-phone { width: clamp(230px, 22vw, 300px); background: #222; }
.cp-phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 20%; }
.cp-style { position: absolute; left: 10px; top: 10px; z-index: 3; background: rgba(0,0,0,.6); color: #fff; padding: 3px 7px; border-radius: 3px; font-size: 10.5px; }
.cap { position: absolute; left: 12px; right: 12px; top: 64%; text-align: center; z-index: 3; color: #fff; font: 600 19px/1.15 var(--sans); text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.cap span { display: inline-block; margin: 0 .12em; transition: color .08s, transform .12s var(--ease), opacity .12s; }
.cap span.on { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.cp[data-style="hormozi"] .cap, .cp[data-style="mrbeast"] .cap { font: 900 30px/1.05 var(--sans); text-transform: uppercase; -webkit-text-stroke: 7px #000; paint-order: stroke fill; text-shadow: none; }
.cp[data-style="hormozi"] .cap span.on { color: #3fe05a; text-decoration: none; }
.cp[data-style="mrbeast"] .cap span.on { color: #ffd21f; text-decoration: none; transform: scale(1.18) rotate(-2deg); }
.cp[data-style="minimal"] .cap { font: 500 18px/1.3 var(--sans); background: rgba(24,24,22,.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 8px 12px; border-radius: 8px; text-shadow: none; }
.cp[data-style="minimal"] .cap span { opacity: .55; }
.cp[data-style="minimal"] .cap span.on { opacity: 1; text-decoration: none; }
.cp[data-style="warm"] .cap { font: italic 600 25px/1.15 Georgia, "Times New Roman", serif; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.cp[data-style="warm"] .cap span.on { color: #ff8c42; text-decoration: none; }

/* Bare Video visual */
.bv { display: grid; grid-template-columns: 1fr auto; gap: clamp(16px, 3vw, 36px); align-items: center; }
.bv-side { display: grid; gap: 22px; color: var(--muted); }
.bv-transcript { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: 13px; }
.bv-transcript span { opacity: .3; transition: opacity .3s, color .3s; }
.bv-plan p { padding: 8px 0; border-top: 1px solid var(--line); opacity: 0; transform: translateX(-8px); transition: opacity .45s, transform .45s var(--ease); }
.bv[data-step]:not([data-step="0"]) .bv-plan p { opacity: 1; transform: none; }
.bv-plan p:nth-child(2) { transition-delay: .08s; } .bv-plan p:nth-child(3) { transition-delay: .16s; } .bv-plan p:nth-child(4) { transition-delay: .24s; }
.phone { position: relative; width: clamp(200px, 22vw, 290px); aspect-ratio: 9 / 16; background: var(--wall); border-radius: 22px; overflow: hidden; border: 6px solid #0b0b0a; box-shadow: 0 0 0 1px var(--line); }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity .6s, transform .7s var(--ease); }
.scene-head img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transform: scale(1.06); transition: transform 6s linear; }
.scene-stat { background: var(--paper); display: flex; flex-direction: column; justify-content: center; align-items: center; transform: translateY(30px); }
.scene-stat b { font-size: 84px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.scene-stat span { font: 500 12px var(--mono); color: var(--muted); margin-top: 8px; }
.scene-steps { background: var(--ink); color: var(--paper); display: grid; align-content: center; gap: 12px; padding: 0 22px; }
.scene-steps p { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 500; opacity: 0; transform: translateX(-14px); transition: opacity .45s, transform .45s var(--ease); }
.scene-steps i { font: 500 12px var(--mono); font-style: normal; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; }
.caption { position: absolute; left: 10px; right: 10px; bottom: 52px; text-align: center; font-weight: 600; font-size: 17px; line-height: 1.25; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); opacity: 0; transition: opacity .4s; z-index: 3; }
.caption span:nth-child(2) { color: #f2c29c; }
.render { position: absolute; left: 12px; right: 12px; bottom: 14px; z-index: 4; opacity: 0; transition: opacity .4s; }
.render .mono { font-size: 10px; color: #fff; display: block; margin-top: 5px; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.render-bar { height: 3px; background: rgba(255,255,255,.35); position: relative; overflow: hidden; border-radius: 2px; }
.render-bar::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }

.bv[data-step="0"] .bv-transcript span { opacity: 1; color: var(--ink); }
.bv[data-step="0"] .scene-head,
.bv[data-step="1"] .scene-head { opacity: .35; }
.bv[data-step="2"] .scene-head { opacity: 1; }
.bv[data-step="2"] .scene-head img { transform: scale(1); }
.bv[data-step="2"] .bv-plan p:nth-child(1),
.bv[data-step="3"] .bv-plan p:nth-child(2),
.bv[data-step="4"] .bv-plan p:nth-child(3) { color: var(--ink); }
.bv[data-step="3"] .scene-stat { opacity: 1; transform: none; }
.bv[data-step="4"] .scene-steps { opacity: 1; }
.bv[data-step="4"] .scene-steps p { opacity: 1; transform: none; }
.bv[data-step="4"] .scene-steps p:nth-child(2) { transition-delay: .15s; }
.bv[data-step="4"] .scene-steps p:nth-child(3) { transition-delay: .3s; }
.bv[data-step="2"] .caption, .bv[data-step="3"] .caption, .bv[data-step="4"] .caption { opacity: 1; }
.bv[data-step="3"] .caption, .bv[data-step="4"] .caption { color: #fff; }
.bv[data-step="3"] .caption { text-shadow: none; color: var(--ink); }
.bv[data-step="3"] .caption span:nth-child(2) { color: var(--accent); }
.bv[data-step="4"] .render { opacity: 1; }
.bv[data-step="4"] .render-bar::after { transform: scaleX(1); }

/* ---------- BLOCKS ---------- */
.block { padding: clamp(90px, 12vw, 160px) 0; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }

/* Bare Research visual */
.br { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: clamp(18px, 2.4vw, 28px); font-size: 14px; }
.br-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #0b0b0a; color: #ece9e3; border-radius: 4px; font-size: 13px; white-space: nowrap; overflow: hidden; }
.br-cmd { color: var(--accent); }
.caret { width: 7px; height: 15px; background: #ece9e3; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.br-ms { margin-left: auto; color: #8d8981; font-variant-numeric: tabular-nums; }
.br-chain { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 14px 0; }
.br-node { position: relative; border: 1px solid var(--line); padding: 9px 8px; min-height: 58px; display: flex; flex-direction: column; justify-content: space-between; font-size: 13px; font-weight: 500; transition: border-color .2s, background .2s, color .2s, opacity .2s; overflow: hidden; }
.br-node em { font: 400 10px/1.2 var(--mono); font-style: normal; color: var(--muted); opacity: 0; transition: opacity .2s; }
.br-node::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.br[data-step="1"] .n1::after { animation: req .45s linear forwards; }
.br[data-step="1"] .n1, .br[data-step="2"] .n1, .br[data-step="3"] .n1 { border-color: #c0392b; color: #e06a5c; }
.br[data-step="1"] .n1 em, .br[data-step="2"] .n1 em, .br[data-step="3"] .n1 em { opacity: 1; color: #e06a5c; transition-delay: .4s; }
.br[data-step="2"] .n2, .br[data-step="3"] .n2 { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.br[data-step="2"] .n2 em, .br[data-step="3"] .n2 em { opacity: 1; color: var(--paper); }
.br[data-step="2"] .n3, .br[data-step="2"] .n4, .br[data-step="3"] .n3, .br[data-step="3"] .n4 { opacity: .35; }
.br[data-step="2"] .n3 em, .br[data-step="2"] .n4 em, .br[data-step="3"] .n3 em, .br[data-step="3"] .n4 em { opacity: 1; }
.br[data-step="3"] .n5 { border-color: var(--accent); color: var(--accent); }
.br[data-step="3"] .n5 em { opacity: 1; color: var(--accent); }
.br[data-step="3"] .n5::after { animation: req .9s linear forwards; }
@keyframes req { to { transform: scaleX(1); } }
.br-results { display: grid; gap: 6px; min-height: 236px; align-content: start; }
.br-r { display: grid; grid-template-columns: 18px 1fr auto; gap: 2px 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .3s var(--ease), border-color .3s; position: relative; overflow: hidden; }
.br-r .fav { width: 16px; height: 16px; border-radius: 3px; background: var(--c); grid-row: span 2; }
.br-r b { font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-r small { font: 11px var(--mono); color: var(--muted); grid-column: 2; }
.br-r .tag { grid-row: span 2; font: 500 10.5px var(--mono); color: var(--accent); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.br-r .scrape { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.br[data-step="2"] .br-r, .br[data-step="3"] .br-r { opacity: 1; transform: none; }
.br-r:nth-child(2) { transition-delay: .08s; } .br-r:nth-child(3) { transition-delay: .16s; } .br-r:nth-child(4) { transition-delay: .24s; } .br-r:nth-child(5) { transition-delay: .32s; }
.br[data-step="3"] .br-r.top { border-color: var(--accent); }
.br[data-step="3"] .br-r.top .scrape { animation: req .8s var(--ease) forwards; animation-delay: var(--d); }
.br[data-step="3"] .br-r.top .tag { opacity: 1; transition-delay: calc(var(--d) + .8s); }
.br[data-step="3"] .br-r:not(.top) { opacity: .4; }
.br-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink); opacity: 0; transition: opacity .3s 1.4s; }
.br-foot::before { content: "\2713  "; color: var(--accent); }
.br[data-step="3"] .br-foot { opacity: 1; }
@media (max-width: 860px) { .br-chain { grid-template-columns: repeat(5, 1fr); gap: 3px; } .br-node { font-size: 10px; padding: 6px 4px; min-height: 48px; } .br-node em { font-size: 8px; } }

/* Clients */
.clients { background: var(--paper-2); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(40px, 5vw, 64px); }
.card { background: var(--paper); border: 1px solid var(--line); padding: clamp(22px, 3vw, 36px); border-radius: 4px; }
.card-title { font-weight: 500; font-size: 26px; letter-spacing: -.02em; margin-top: 28px; }
.card-vis { height: 196px; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.queue { display: grid; gap: 8px; align-content: start; }
.q { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); background: var(--panel); opacity: 0; transform: translateX(-16px); }
.q-thumb { width: 52px; height: 29px; background: var(--thumb, var(--wall)); flex: none; }
.q-lines { flex: 1; display: grid; gap: 5px; }
.q-lines i { display: block; height: 6px; background: var(--paper-2); }
.q-lines i:nth-child(2) { width: 55%; }
.q-ok { width: 20px; height: 20px; display: grid; place-items: center; font-size: 12px; color: var(--paper); background: var(--ink); border-radius: 50%; transform: scale(0); }
.queue.play .q { animation: slide .55s var(--ease) forwards; }
.queue.play .q-ok { animation: pop .35s var(--ease) forwards; }
.queue.play .q:nth-child(1) { animation-delay: .1s; } .queue.play .q:nth-child(1) .q-ok { animation-delay: .9s; }
.queue.play .q:nth-child(2) { animation-delay: .25s; } .queue.play .q:nth-child(2) .q-ok { animation-delay: 1.2s; }
.queue.play .q:nth-child(3) { animation-delay: .4s; } .queue.play .q:nth-child(3) .q-ok { animation-delay: 1.5s; }
.queue.play .q:nth-child(4) { animation-delay: .55s; } .queue.play .q:nth-child(4) .q-ok { animation-delay: 1.8s; }
@keyframes slide { to { opacity: 1; transform: none; } }
@keyframes pop { to { transform: scale(1); } }
.pkg { display: grid; gap: 10px; align-content: start; font: 400 14px var(--mono); }
.pkg p { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.pkg .box { width: 18px; height: 18px; border: 1px solid var(--ink); position: relative; }
.pkg .box::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); }
.pkg.play p { animation: ink .3s forwards; }
.pkg.play .box::after { animation: tick .3s var(--ease) forwards; }
.pkg.play p:nth-child(1), .pkg.play p:nth-child(1) .box::after { animation-delay: .3s; }
.pkg.play p:nth-child(2), .pkg.play p:nth-child(2) .box::after { animation-delay: .6s; }
.pkg.play p:nth-child(3), .pkg.play p:nth-child(3) .box::after { animation-delay: .9s; }
.pkg.play p:nth-child(4), .pkg.play p:nth-child(4) .box::after { animation-delay: 1.2s; }
.pkg.play p:nth-child(5), .pkg.play p:nth-child(5) .box::after { animation-delay: 1.5s; }
.pkg p:last-child { font-weight: 500; }
@keyframes tick { to { transform: rotate(45deg) scale(1); } }
@keyframes ink { to { color: var(--ink); } }

/* YouTube */
.count { display: block; margin-top: 12px; font-family: var(--mono); font-size: 13px; color: var(--ink); }
.count b { font-weight: 500; font-variant-numeric: tabular-nums; }
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); margin: clamp(40px, 5vw, 60px) 0 30px; }
.video { text-decoration: none; }
.thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); border-radius: 3px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.video:hover .thumb img { transform: scale(1.04); }
.video p { margin-top: 12px; font-weight: 500; font-size: 15.5px; line-height: 1.35; }

/* Barestack */
.bs { border-top: 1px solid var(--line); }
.repos { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); margin-top: clamp(40px, 5vw, 60px); }
.repo { text-decoration: none; padding: 22px 22px 26px 0; border-bottom: 1px solid var(--line); transition: padding .35s var(--ease); }
.repo + .repo { padding-left: 22px; border-left: 1px solid var(--line); }
.repo span { font-size: 13px; font-weight: 500; }
.repo p { color: var(--muted); margin-top: 10px; font-size: 15.5px; }
.repo:hover span { color: var(--accent); }

/* Contact */
.contact { background: var(--wall); color: var(--wall-ink); padding: clamp(110px, 14vw, 180px) 0 0; text-align: center; }
.contact-script { font-size: clamp(46px, 7vw, 104px); line-height: 1; letter-spacing: -.015em; }
.contact-mail { display: inline-block; margin-top: 30px; font-size: clamp(20px, 2.4vw, 30px); font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; letter-spacing: -.01em; }
.contact-mail:hover { opacity: .65; }
.contact-links { display: flex; justify-content: center; gap: 26px; margin-top: 26px; }
.contact-links a { text-decoration: none; color: var(--wall-soft); }
.contact-links a:hover { color: var(--wall-ink); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: clamp(80px, 10vw, 140px) var(--pad) 26px; font-size: 13px; color: var(--wall-soft); }
.egg { font-size: 22px; opacity: .35; transition: opacity .4s; }
.egg:hover { opacity: .9; }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.videos .reveal:nth-child(2), .repos .reveal:nth-child(2), .cards .reveal:nth-child(2) { transition-delay: .1s; }
.videos .reveal:nth-child(3), .repos .reveal:nth-child(3) { transition-delay: .2s; }


/* ---------- THEMES (refresh) ---------- */
:root { --panel: #f6f5f2; --idle: #d3cec6; --ink-rgb: 21,21,19; }
.dark {
  --ink: #ece9e3; --ink-rgb: 236,233,227; --muted: #a29e96; --line: #2f2e2b;
  --paper: #121211; --paper-2: #1f1e1b; --panel: #1a1917; --idle: #3a3935;
  --accent: #e47a3a; --accent-soft: rgba(228,122,58,.16);
  background: var(--paper); color: var(--ink);
}
.dark .label { color: #8d8981; }
.story.dark + .story.dark .story-sticky, .story.dark + .block.dark { border-top: 1px solid var(--line); }
.clients {
  --paper: #a5a19b; --paper-2: var(--wall); --panel: #a9a59f; --line: rgba(26,25,23,.2);
  --muted: #2f2d2a; --ink: #151513; --thumb: #6c6862;
  background: var(--wall); color: var(--ink);
}
.clients .card { background: rgba(255,255,255,.1); }

/* nav over the dark stage */
.nav.solid.on-dark { background: #121211; color: #ece9e3; border-color: #2f2e2b; }
.nav.solid.on-wall { background: var(--wall); border-color: rgba(26,25,23,.2); }

/* demo progress line */
.vis-prog { height: 2px; background: var(--line); margin-top: 18px; overflow: hidden; border-radius: 1px; }
.vis-prog i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--k, 0)); transition: transform .5s var(--ease); }
.bv .vis-prog { grid-column: 1 / -1; }

/* YouTube: one big, two small */
.videos { grid-template-columns: 1.7fr 1fr; grid-auto-rows: auto; }
.video.feature { grid-row: span 2; }
.video.feature p { font-size: clamp(18px, 1.6vw, 22px); }
@media (max-width: 860px) { .videos { grid-template-columns: 1fr; } .video.feature { grid-row: auto; } }


/* ---------- WORKBENCH ---------- */
.bench { padding: clamp(110px, 14vw, 180px) 0 clamp(90px, 10vw, 140px); }
.tabs { display: flex; gap: clamp(18px, 3vw, 40px); margin-top: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.tab { position: relative; background: none; border: 0; color: var(--muted); font: 500 clamp(15px, 1.4vw, 19px)/1 var(--sans); letter-spacing: -.01em; padding: 0 0 16px; cursor: pointer; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; transition: color .25s; }
.tab .mono { font-size: 11px; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab i { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.tab[aria-selected="true"] i { transform: scaleX(var(--k, 0)); transition: transform var(--dur, .5s) linear; }
.panes { display: grid; margin-top: clamp(36px, 4vw, 56px); }
.pane { grid-area: 1 / 1; grid-template-columns: 1.25fr .85fr; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .45s, transform .6s var(--ease), visibility 0s .45s; }
.pane.active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.pane .story-text { order: 2; }
.pane .label { margin-bottom: 14px; }
.bench-ctrl { display: flex; align-items: center; gap: 12px; margin-top: clamp(28px, 3vw, 44px); padding-top: 18px; border-top: 1px solid var(--line); }
.ctl { height: 40px; min-width: 40px; display: grid; place-items: center; background: none; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s; }
.ctl:hover { border-color: var(--ink); }
.ctl-text { padding: 0 16px; font: 500 14px var(--sans); }
.ic-pause { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.ctl.paused .ic-pause { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
.dots { display: flex; gap: 6px; margin-left: 6px; }
.dots button { width: 8px; height: 8px; border-radius: 4px; border: 0; background: var(--line); cursor: pointer; padding: 0; transition: width .3s var(--ease), background .3s; }
.dots button.on { width: 24px; background: var(--accent); }
.dots button.done { background: #5a5853; }
.bench-note { margin-left: auto; color: var(--muted); }
@media (max-width: 860px) {
  .tabs { overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding: 0 var(--pad); }
  .tabs::-webkit-scrollbar { display: none; }
  .pane { align-self: start; }
  .bench-note { display: none; }
}


/* Client dashboard mock */
.card-vis.dash { height: auto; display: grid; gap: 12px; font-size: 13px; }
.d-top { display: flex; justify-content: space-between; font-weight: 600; }
.d-top .mono { color: var(--muted); font-weight: 400; }
.d-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.d-stats p { background: rgba(255,255,255,.18); border: 1px solid var(--line); padding: 10px 12px; border-radius: 4px; }
.d-stats b { display: block; font-size: 24px; font-weight: 500; letter-spacing: -.02em; line-height: 1; }
.d-stats span { font-size: 11.5px; color: var(--muted); }
.d-rows { display: grid; gap: 6px; }
.d-rows p { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 1px solid var(--line); background: rgba(255,255,255,.12); border-radius: 4px; opacity: 0; transform: translateY(8px); }
.d-rows i { width: 34px; height: 19px; background: var(--thumb); border-radius: 2px; flex: none; }
.d-rows span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-rows em { font: 500 11px var(--mono); font-style: normal; padding: 3px 7px; border-radius: 3px; position: relative; overflow: hidden; white-space: nowrap; }
.d-rows .ok { background: #151513; color: #ebe9e4; }
.d-rows .sch { border: 1px solid #151513; }
.d-rows .warn { background: var(--accent); color: #fff; }
.d-rows .run { border: 1px solid #151513; }
.d-rows .run u { position: absolute; inset: 0; background: rgba(21,21,19,.18); transform-origin: left; transform: scaleX(.1); }
.dash.play .d-rows p { animation: up .5s var(--ease) forwards; }
.dash.play .d-rows p:nth-child(2) { animation-delay: .12s; } .dash.play .d-rows p:nth-child(3) { animation-delay: .24s; } .dash.play .d-rows p:nth-child(4) { animation-delay: .36s; }
.dash.play .run u { animation: load 3.2s ease-in-out .6s infinite; }
@keyframes load { 0% { transform: scaleX(.05); } 85%, 100% { transform: scaleX(1); } }


/* ---------- TOOL GRID: five demos at once ---------- */
.tools { padding: clamp(110px, 14vw, 170px) 0 clamp(90px, 10vw, 140px); }
.tool-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; margin-top: clamp(40px, 5vw, 64px); max-width: 1360px; }
.tool { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: clamp(16px, 1.8vw, 22px); display: flex; flex-direction: column; gap: 18px; min-width: 0; transition: border-color .3s; }
.tool:hover { border-color: #4a4843; }
#deepcut { grid-column: span 7; }
#deepclip { grid-column: span 5; }
#deepcaption { grid-column: span 3; }
#barevideo { grid-column: span 3; }
#bareresearch { grid-column: span 6; }
.tool-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.tool-num { color: var(--accent); padding-top: 4px; }
.tool-head h3 { font-weight: 500; font-size: 21px; letter-spacing: -.02em; line-height: 1.1; }
.tool-head p { color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 4px; }
.tool-link { font-size: 13px; text-decoration: none; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; transition: color .2s, border-color .2s; }
.tool-link::after { content: " \2197"; }
.tool-link:hover { color: var(--ink); border-color: var(--ink); }
.tool-demo { flex: 1; display: flex; align-items: center; justify-content: center; min-width: 0; }
.tool-demo > * { width: 100%; }
.tool-foot { color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
/* demos sit inside the card, so drop their own panel chrome */
.tool .vis, .tool .br { background: none; border: 0; padding: 0; border-radius: 0; }
.tool .dc-track { height: 190px; }
.tool .dc-count b { font-size: clamp(38px, 3.6vw, 54px); }
.tool .cl-heat { height: 110px; }
.tool .cl-clips { gap: 8px; margin-top: 18px; }
.tool .cp { gap: 0; }
.tool .cp-times, .tool .bv-side { display: none; }
.tool .bv { display: flex; justify-content: center; }
.tool .phone, .tool .cp-phone { width: min(100%, 230px); }
.tool .cap { font-size: 16px; }
.tool .cp[data-style="hormozi"] .cap, .tool .cp[data-style="mrbeast"] .cap { font-size: 24px; -webkit-text-stroke-width: 6px; }
.tool .cp[data-style="warm"] .cap { font-size: 21px; }
.tool .br-results { min-height: 0; }
.tool .br-r { padding: 6px 9px; }
@media (max-width: 1100px) {
  #deepcut, #deepclip, #bareresearch { grid-column: span 12; }
  #deepcaption, #barevideo { grid-column: span 6; }
}
@media (max-width: 640px) {
  .tool-grid { gap: 12px; }
  #deepcaption, #barevideo { grid-column: span 12; }
  .tool .dc-track { height: 120px; }
}

/* ---------- MOBILE ---------- */
@media (max-width: 860px) {
  .nav-links { gap: 16px; font-size: 14px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-name { opacity: 1; transform: none; }
  .hero { flex-direction: column; justify-content: flex-end; align-items: stretch; height: auto; min-height: 100svh; padding-bottom: 72px; }
  .hero-photo { position: relative; inset: auto; height: 52svh; flex: none; }
  .hero-photo img { position: static; width: 100%; height: 100%; object-fit: cover; object-position: 100% 15%; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%); mask-image: linear-gradient(to bottom, transparent, #000 30%); }
  .hero-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(to bottom, transparent, var(--wall)); }
  .hero-copy { margin-top: -28px; padding: 0 var(--pad); }
  .hero-rule { margin: 22px 0 14px; }
  .scroll-cue { display: none; }
  .story { height: auto !important; }
  .story-sticky { position: relative; height: auto; display: block; padding: 70px 0; }
  .story-grid, .split, .cards, .videos, .repos { grid-template-columns: 1fr; }
  .story-grid.flip .story-text { order: 0; }
  .steps li { opacity: 1; }
  .dc-track { height: 130px; }
  .seg .bars { inset: 14px 2px 14px 2px; }
  .seg .word, .seg .ts { display: none; }
  .story-grid.flip { grid-template-columns: 1fr; }
  .pipe { flex-wrap: wrap; }
  .pipe li { flex: 1 1 33%; padding-bottom: 16px; }
  .pipe li + li::before { display: none; }
  .cl-heat { height: 90px; gap: 2px; }
  .cl-top { flex-wrap: wrap; gap: 4px 12px; font-size: 11px; }
  .cl-clips { gap: 6px; }
  .clip b { -webkit-text-stroke: 2px #000; font-size: 9px; }
  .cp-times { display: none; }
  .cp-phone { width: 250px; }
  .story-text { display: contents; }
  .story-grid { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
  .story-text > * { order: 1; }
  .story-visual { order: 2; width: 100%; margin-top: 28px; }
  .story-text > .steps, .story-text > .stat, .story-text > .links { order: 3; }
  .bv { grid-template-columns: 1fr; justify-items: center; }
  .bv-side { width: 100%; }
  .repo + .repo { padding-left: 0; border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
