/* ─── Design tokens ─────────────────────────────────────────────────────── */
:root {
  /* Light (warm off-white) palette — default */
  --bg: #FAFAF7;
  --bg-2: #F2F0E8;
  --bg-3: #ECE9DF;
  --ink: #15140F;
  --ink-2: rgba(21, 20, 15, 0.70);
  --ink-3: rgba(21, 20, 15, 0.46);
  --ink-4: rgba(21, 20, 15, 0.26);
  --rule: rgba(21, 20, 15, 0.10);
  --rule-2: rgba(21, 20, 15, 0.18);
  --accent: #B14D2A;
  --accent-ink: #FAFAF7;

  /* Typography */
  --font-serif: "Instrument Serif", "Newsreader", "EB Garamond", Georgia, serif;
  --font-sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Type scale */
  --t-eyebrow: 11px;
  --t-body: 17px;
  --t-body-lg: 19px;
  --t-h4: 22px;
  --t-h3: 32px;
  --t-h2: 48px;
  --t-h1: 84px;
  --t-display: 124px;

  /* Layout */
  --container: 1280px;
  --gutter: 24px;
  --section-y: 128px;
  --section-y-sm: 72px;
}

[data-palette="dark"] {
  --bg: #0E0E0C;
  --bg-2: #161613;
  --bg-3: #1E1D19;
  --ink: #EFEEE6;
  --ink-2: rgba(239, 238, 230, 0.70);
  --ink-3: rgba(239, 238, 230, 0.46);
  --ink-4: rgba(239, 238, 230, 0.26);
  --rule: rgba(239, 238, 230, 0.10);
  --rule-2: rgba(239, 238, 230, 0.18);
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.55;
  font-weight: 400;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 280ms ease, color 280ms ease;
}
h1, h2, h3, h4, h5 { margin: 0; font-weight: 400; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: default; }
img { display: block; max-width: 100%; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ─── Type primitives ───────────────────────────────────────────────────── */
.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.025em; }
.mono  { font-family: var(--font-mono); font-feature-settings: "ss01"; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  text-transform: lowercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.h1 { font-family: var(--font-serif); font-size: clamp(56px, 8.5vw, var(--t-h1)); line-height: 0.98; letter-spacing: -0.03em; }
.h2 { font-family: var(--font-serif); font-size: clamp(40px, 5.2vw, var(--t-h2)); line-height: 1.02; letter-spacing: -0.025em; }
.h3 { font-family: var(--font-serif); font-size: clamp(26px, 3.4vw, var(--t-h3)); line-height: 1.08; letter-spacing: -0.02em; }
.h4 { font-family: var(--font-serif); font-size: var(--t-h4); line-height: 1.2; letter-spacing: -0.015em; }
.display { font-family: var(--font-serif); font-size: clamp(72px, 12vw, var(--t-display)); line-height: 0.95; letter-spacing: -0.035em; }

.body-lg { font-size: var(--t-body-lg); line-height: 1.5; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.muted-2 { color: var(--ink-3); }

/* ─── Container ─────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.section-sm { padding-top: var(--section-y-sm); padding-bottom: var(--section-y-sm); }
.section-divider { border-top: 1px solid var(--rule); }

/* ─── Nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 24px;
  letter-spacing: -0.02em;
  font-style: italic;
  font-weight: 400;
  cursor: default;
}
.nav-logo .dot { color: var(--accent); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-link {
  font-size: 14px;
  color: var(--ink-2);
  cursor: default;
  padding: 6px 0;
  position: relative;
  transition: color 120ms ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: ""; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 1px; background: var(--accent);
}
.nav-cta { margin-left: 16px; }

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: default;
  transition: transform 120ms ease, background-color 120ms ease, color 120ms ease, border-color 120ms ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-ghost { padding: 6px 0; border: 0; color: var(--ink); border-bottom: 1px solid var(--ink-4); border-radius: 0; }
.btn-ghost:hover { border-bottom-color: var(--accent); color: var(--accent); }

/* ─── Before / After pair ───────────────────────────────────────────────── */
.ba {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.ba-cell {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg);
  overflow: hidden;
}
.ba-cell.input { background: #ffffff; }
.ba-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.ba-cell.input img { object-fit: contain; padding: 8%; }
.ba-cell.input.with-bg img { object-fit: cover; padding: 0; }
.ba-divider {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 1px; background: var(--rule-2);
  transform: translateX(-0.5px);
  pointer-events: none;
}
.ba-tag {
  position: absolute; top: 14px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(21, 20, 15, 0.5);
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 8px;
  pointer-events: none;
}
.ba-tag.input-tag { left: 14px; }
.ba-tag.output-tag { right: 14px; background: rgba(21, 20, 15, 0.75); color: rgba(255, 255, 255, 0.9); }

.ba-caption {
  padding: 18px 0 0;
  display: flex; gap: 24px; align-items: baseline;
  font-size: 14px; color: var(--ink-2);
}
.ba-caption .tag {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-3);
  white-space: nowrap;
}

/* ─── Cards / tiles ─────────────────────────────────────────────────────── */
.card {
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 28px;
  display: flex; flex-direction: column;
  transition: border-color 150ms ease, transform 150ms ease;
}
.card:hover { border-color: var(--rule-2); }
.card-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.card-title { font-family: var(--font-serif); font-size: 22px; line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 10px; }
.card-body { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.card-detail { font-size: 13.5px; line-height: 1.5; color: var(--ink-3); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); }

/* ─── Pipeline diagram ──────────────────────────────────────────────────── */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.pipeline-node {
  background: var(--bg);
  padding: 24px 22px;
  display: flex; flex-direction: column;
  min-height: 200px;
  cursor: default;
  transition: background-color 150ms ease;
  position: relative;
}
.pipeline-node:hover { background: var(--bg-2); }
.pipeline-node:hover .pipeline-detail { opacity: 1; }
.pipeline-detail {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--accent);
  opacity: 0;
  transition: opacity 200ms ease;
}
.pipeline-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.pipeline-name {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.pipeline-desc { font-size: 13px; line-height: 1.5; color: var(--ink-2); }

/* ─── Case study tile ──────────────────────────────────────────────────── */
.case-tile {
  display: grid;
  grid-template-columns: 220px 1fr 1fr 160px;
  align-items: stretch;
  gap: 0;
  border-top: 1px solid var(--rule);
  padding: 32px 0;
  transition: background-color 150ms ease;
}
.case-tile:hover { background: var(--bg-2); }
.case-tile:last-of-type { border-bottom: 1px solid var(--rule); }
.case-brand { display: flex; flex-direction: column; gap: 6px; }
.case-brand-name { font-family: var(--font-serif); font-size: 28px; letter-spacing: -0.02em; }
.case-brand-cat { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.1em; }
.case-line { font-size: 15px; line-height: 1.5; color: var(--ink-2); padding-right: 20px; }
.case-outcome { font-family: var(--font-serif); font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); }
.case-outcome .num { color: var(--accent); }
.case-thumb {
  aspect-ratio: 4 / 5;
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
}
.case-thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-tag-spec {
  position: absolute; top: 8px; right: 8px;
  font-family: var(--font-mono); font-size: 9px;
  background: var(--bg); color: var(--ink-2);
  padding: 3px 6px; letter-spacing: 0.1em;
}

/* ─── Principles grid ───────────────────────────────────────────────────── */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.principle-tile {
  background: var(--bg);
  padding: 36px 28px;
  min-height: 240px;
  display: flex; flex-direction: column;
  cursor: default;
  transition: background-color 150ms ease;
}
.principle-tile:hover { background: var(--bg-2); }
.principle-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent); letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.principle-name {
  font-family: var(--font-serif);
  font-size: 24px; line-height: 1.12; letter-spacing: -0.02em;
  margin-bottom: 14px;
  text-wrap: balance;
}
.principle-statement { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin-top: auto; }

/* ─── 5-day timeline ────────────────────────────────────────────────────── */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.day {
  background: var(--bg);
  padding: 28px 24px;
  display: flex; flex-direction: column;
  min-height: 280px;
  position: relative;
}
.day-label { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 12px; }
.day-title { font-family: var(--font-serif); font-size: 22px; line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 16px; }
.day-list { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin-top: auto; }
.day-list li { list-style: none; padding-left: 14px; position: relative; }
.day-list li::before { content: "·"; position: absolute; left: 4px; color: var(--ink-3); }

/* ─── Offer card ────────────────────────────────────────────────────────── */
.offer {
  max-width: 640px; margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--rule-2);
  padding: 56px 56px 48px;
  text-align: left;
}
.offer-tag { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; }
.offer-price { font-family: var(--font-serif); font-size: 88px; line-height: 1; letter-spacing: -0.03em; }
.offer-price .cents { color: var(--ink-3); font-size: 32px; vertical-align: super; margin-left: 2px; }
.offer-list { margin: 32px 0 36px; padding: 0; }
.offer-list li {
  list-style: none;
  font-size: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 24px;
}
.offer-list li:last-child { border-bottom: 1px solid var(--rule); }
.offer-list .lbl { color: var(--ink-2); }
.offer-list .val { color: var(--ink); font-family: var(--font-mono); font-size: 13px; }

/* ─── Form ──────────────────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 28px; max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); letter-spacing: 0.08em; text-transform: uppercase; }
.field-input, .field-textarea {
  background: transparent;
  border: 0; border-bottom: 1px solid var(--rule-2);
  padding: 10px 0;
  font-size: 18px;
  color: var(--ink);
  outline: none;
  font-family: inherit;
  transition: border-color 150ms ease;
}
.field-input:focus, .field-textarea:focus { border-bottom-color: var(--accent); }
.field-textarea { resize: vertical; min-height: 96px; }
.field-hint { font-size: 12.5px; color: var(--ink-3); }
.field-error { font-size: 12.5px; color: var(--accent); }
.consent {
  font-size: 13px; color: var(--ink-3); line-height: 1.55;
  display: flex; gap: 12px; align-items: flex-start;
}
.consent input { margin-top: 4px; accent-color: var(--accent); }
.toggle-mode {
  display: flex; gap: 0; border: 1px solid var(--rule-2);
  align-self: flex-start;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.toggle-mode button {
  padding: 8px 14px;
  background: transparent;
  color: var(--ink-2);
  cursor: default;
  transition: background-color 120ms ease, color 120ms ease;
}
.toggle-mode button.active { background: var(--ink); color: var(--bg); }

/* ─── Footer ────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--rule);
  padding: 56px 0 36px;
  margin-top: 96px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; font-weight: 400; }
.footer-link { font-size: 14px; color: var(--ink-2); cursor: default; }
.footer-link:hover { color: var(--ink); }
.footer-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 12.5px; color: var(--ink-3);
}

/* ─── Pipeline (deep doc) page ──────────────────────────────────────────── */
.doc {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}
.doc-stage {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}
.doc-stage:last-child { border-bottom: 1px solid var(--rule); }
.doc-stage-num { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.08em; padding-top: 4px; }
.doc-stage-title { font-family: var(--font-serif); font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 10px; }
.doc-stage-body { font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.doc-stage-meta {
  margin-top: 14px;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.04em;
  display: inline-block;
  border: 1px solid var(--rule);
  padding: 4px 8px;
}

.codeblock {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-2);
  white-space: pre-wrap;
  overflow-x: auto;
}

/* ─── Work page case study deep section ─────────────────────────────────── */
.work-case {
  padding: 96px 0;
  border-top: 1px solid var(--rule);
}
.work-case-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}
.work-case-after {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.work-case-after .item {
  aspect-ratio: 4 / 5;
  background: var(--bg-2);
  overflow: hidden;
  border: 1px solid var(--rule);
}
.work-case-after .item img { width: 100%; height: 100%; object-fit: cover; }
.work-case-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 56px;
  align-items: start;
}
.decisions { display: flex; flex-direction: column; gap: 0; }
.decisions li {
  list-style: none;
  display: grid; grid-template-columns: 60px 140px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  font-size: 14.5px;
}
.decisions li:last-child { border-bottom: 1px solid var(--rule); }
.decisions .k { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; padding-top: 2px; }
.decisions .label { color: var(--ink-2); }
.decisions .v { color: var(--ink); }

/* ─── Misc ──────────────────────────────────────────────────────────────── */
.split-50 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.proof-strip {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  display: flex; gap: 32px; flex-wrap: wrap;
}
.proof-strip .num { color: var(--ink); font-feature-settings: "tnum"; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 64px;
  gap: 24px; flex-wrap: wrap;
}
.section-head .lede { max-width: 52ch; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.section-title { font-family: var(--font-serif); font-size: clamp(36px, 4.5vw, 56px); line-height: 1.02; letter-spacing: -0.025em; max-width: 16ch; }
.kicker { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }

.appear { opacity: 0; transform: translateY(10px); transition: opacity 700ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1); }
.appear.in { opacity: 1; transform: none; }

/* ─── Stagger reveal ─────────────────────────────────────────────────────── */
.stagger > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(1)  { transition-delay: 0ms; }
.stagger.in > *:nth-child(2)  { transition-delay: 60ms; }
.stagger.in > *:nth-child(3)  { transition-delay: 120ms; }
.stagger.in > *:nth-child(4)  { transition-delay: 180ms; }
.stagger.in > *:nth-child(5)  { transition-delay: 240ms; }
.stagger.in > *:nth-child(6)  { transition-delay: 300ms; }
.stagger.in > *:nth-child(7)  { transition-delay: 360ms; }
.stagger.in > *:nth-child(8)  { transition-delay: 420ms; }

/* ─── Hero ambient glow ──────────────────────────────────────────────────── */
.hero-wrap { position: relative; overflow: hidden; }
.hero-glow {
  position: absolute;
  top: -20%; right: -10%;
  width: 60vw; height: 60vw;
  max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side,
    color-mix(in oklab, var(--accent) 14%, transparent) 0%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
  animation: hero-glow-drift 18s ease-in-out infinite alternate;
}
[data-palette="dark"] .hero-glow {
  background: radial-gradient(closest-side,
    color-mix(in oklab, var(--accent) 22%, transparent) 0%,
    transparent 70%);
}
@keyframes hero-glow-drift {
  0%   { transform: translate(0, 0)     scale(1);    opacity: 0.7; }
  100% { transform: translate(-5%, 4%)  scale(1.08); opacity: 1; }
}
.hero-wrap > .container { position: relative; z-index: 1; }

/* ─── BA output hover (very subtle zoom + slow sheen) ────────────────────── */
.ba-cell.output img {
  transition: transform 1200ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.ba:hover .ba-cell.output img { transform: scale(1.025); }
.ba-cell.output::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.10) 50%, transparent 60%);
  transform: translateX(-110%);
  transition: transform 1400ms ease;
  pointer-events: none;
}
.ba:hover .ba-cell.output::after { transform: translateX(110%); }

/* ─── Pipeline node hover lift + accent ─────────────────────────────────── */
.pipeline-node { transition: background-color 220ms ease, transform 220ms ease; }
.pipeline-node:hover { background: var(--bg-2); transform: translateY(-2px); }
.pipeline-node .pipeline-num { transition: color 220ms ease; }
.pipeline-node:hover .pipeline-num { color: var(--accent); }

/* ─── Principle tile top-rule sweep ─────────────────────────────────────── */
.principle-tile { position: relative; overflow: hidden; transition: background-color 220ms ease; }
.principle-tile::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 480ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.principle-tile:hover::before { transform: scaleX(1); }

/* ─── Primary button shine on hover ─────────────────────────────────────── */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: -1;
}
.btn-primary:hover::before { transform: translateX(130%); }

/* ─── Kicker / eyebrow short rule ───────────────────────────────────────── */
.kicker, .eyebrow {
  position: relative;
  padding-left: 24px;
}
.kicker::before, .eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 14px; height: 1px;
  background: var(--accent);
  opacity: 0.65;
  transform: scaleX(0);
  transform-origin: left center;
  animation: kicker-draw 700ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes kicker-draw { to { transform: scaleX(1); } }

/* ─── Pipeline node detail expand (replaces previous fade-only) ─────────── */
.pipeline-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 260ms ease, opacity 220ms ease 60ms;
}
.pipeline-node:hover .pipeline-detail { max-height: 60px; opacity: 1; }

/* ─── Reduced motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .appear, .stagger > * { opacity: 1 !important; transform: none !important; }
}

/* ─── Scroll progress bar ───────────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 64px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 49;
  pointer-events: none;
  will-change: transform;
  opacity: 0.85;
}

/* ─── Logo dot pulse ────────────────────────────────────────────────────── */
.nav-logo .dot {
  display: inline-block;
  animation: dot-pulse 3.6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.12); }
}

/* ─── Meta-formats glyph row ────────────────────────────────────────────── */
.meta-formats {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--rule);
}
.mf {
  display: flex; align-items: center; gap: 8px;
  color: var(--ink-3);
  transition: color 200ms ease, transform 220ms ease;
}
.mf.on { color: var(--accent); }
.mf:hover { color: var(--ink); transform: translateY(-1px); }
.mf svg { display: block; }
.mf-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── Category marquee ──────────────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
  margin-bottom: 32px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.marquee-inner {
  display: flex;
  white-space: nowrap;
  animation: marquee-slide 50s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  color: var(--ink-2);
  padding: 0 16px;
  letter-spacing: -0.01em;
}
.marquee-sep {
  margin-left: 32px;
  color: var(--accent);
  font-style: normal;
}
@keyframes marquee-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee:hover .marquee-inner { animation-play-state: paused; }

/* ─── Stage map number → accent on hover (deep pipeline page) ───────────── */
.doc-stage { transition: background-color 220ms ease; }
.doc-stage:hover { background: color-mix(in oklab, var(--bg-2) 50%, transparent); }

/* ─── BA cell — ambient lift on hover ────────────────────────────────────── */
.ba { transition: transform 400ms cubic-bezier(0.22, 0.61, 0.36, 1), border-color 220ms ease; }
.ba:hover { transform: translateY(-2px); border-color: var(--rule-2); }

/* ─── Stat cards (performance section) ──────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.stat-card {
  background: var(--bg);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  min-height: 260px;
  color: var(--ink);
  transition: background-color 220ms ease;
}
.stat-card:hover { background: var(--bg-2); }
.stat-card:hover .stat-num { color: var(--accent); }
.stat-chart {
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.85;
}
.mini-chart-line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: chart-draw 1600ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: 200ms;
}
@keyframes chart-draw { to { stroke-dashoffset: 0; } }
.stat-value {
  display: flex; align-items: baseline; gap: 4px;
  font-family: var(--font-serif);
  margin-bottom: 16px;
  transition: color 220ms ease;
}
.stat-num {
  font-size: 72px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  transition: color 220ms ease;
}
.stat-suffix {
  font-size: 36px;
  color: var(--ink-3);
  letter-spacing: -0.02em;
}
.stat-label { font-size: 15px; color: var(--ink); margin-top: auto; }
.stat-sub { font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }

/* ─── Platform row (under hero CTAs) ────────────────────────────────────── */
.platform-row {
  display: flex; align-items: center; gap: 18px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed var(--rule);
}
.platform-row-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.platforms { display: flex; gap: 18px; }
.plat {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-2);
  transition: color 200ms ease;
}
.plat em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.plat:hover { color: var(--accent); }

/* ─── Pipeline node glyph in header row ─────────────────────────────────── */
.pipeline-node-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.pipeline-node .pipeline-num { margin-bottom: 0; }
.pipeline-glyph {
  color: var(--ink-3);
  transition: color 240ms ease, transform 240ms ease;
}
.pipeline-node:hover .pipeline-glyph {
  color: var(--accent);
  transform: rotate(-2deg) translateY(-1px);
}

/* ─── Hero right column wrapping (BA + Feed mock side-by-side on wide) ──── */
.hero-right {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 16px;
  align-items: start;
}
@media (max-width: 1100px) {
  .hero-right { grid-template-columns: 1fr; }
  .feed-mock { display: none; }
}

/* ─── Phone-frame Meta Feed mockup ──────────────────────────────────────── */
.feed-mock {
  background: var(--bg);
  border: 1px solid var(--rule-2);
  border-radius: 22px;
  padding: 6px 6px 12px;
  font-family: var(--font-sans);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 18px 40px -28px rgba(0,0,0,0.25);
  position: relative;
  overflow: hidden;
  transform: rotate(1.5deg) translateY(8px);
  transition: transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.feed-mock:hover { transform: rotate(0) translateY(0); }
.feed-notch {
  position: absolute;
  top: 8px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 5px;
  background: var(--ink);
  border-radius: 3px;
  opacity: 0.85;
}
.feed-statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 12px 6px;
  font-size: 11px; color: var(--ink-2);
}
.feed-statusbar .feed-icons { display: flex; gap: 4px; color: var(--ink-2); }
.feed-app-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-2);
}
.feed-app-title { font-size: 14px; font-style: italic; }
.feed-app-icons { display: flex; gap: 8px; color: var(--ink-2); }
.feed-post-head {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
}
.feed-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--ink-2));
  flex-shrink: 0;
}
.feed-post-meta { display: flex; flex-direction: column; line-height: 1.15; flex: 1; }
.feed-brand { font-size: 12px; font-weight: 600; }
.feed-sponsored {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.feed-dots { font-size: 14px; color: var(--ink-3); line-height: 0; }
.feed-image {
  aspect-ratio: 4 / 5;
  background: var(--bg-2);
  overflow: hidden;
}
.feed-image img { width: 100%; height: 100%; object-fit: cover; }
.feed-actions {
  display: flex; gap: 10px; align-items: center;
  padding: 8px 10px 4px;
  color: var(--ink);
}
.feed-cta-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 10px 6px;
  gap: 8px;
}
.feed-cta-text { display: flex; flex-direction: column; line-height: 1.2; flex: 1; }
.feed-cta-headline { font-size: 13px; letter-spacing: -0.01em; }
.feed-cta-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  margin-top: 1px;
}
.feed-cta-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 5px 9px;
  border-radius: 2px;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .stat-grid { grid-template-columns: 1fr; }
  .platform-row { flex-wrap: wrap; }
}

/* ─── Facebook post frame (reduced size) ────────────────────────────────── */
.fb-post {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--font-sans);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 14px 32px -24px rgba(0,0,0,0.18);
  transition: transform 400ms cubic-bezier(0.22, 0.61, 0.36, 1), border-color 220ms ease, box-shadow 300ms ease;
  max-width: 320px;
  font-size: 12.5px;
}
.fb-post:hover {
  transform: translateY(-3px);
  border-color: var(--rule-2);
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 22px 50px -28px rgba(0,0,0,0.28);
}

.fb-head {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 12px 12px 8px;
}
.fb-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-serif);
}
.fb-avatar-letter { font-size: 19px; line-height: 1; transform: translateY(1px); }
.fb-head-meta { flex: 1; min-width: 0; }
.fb-page-line {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
.fb-page { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-verified { flex-shrink: 0; }
.fb-sub {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}
.fb-sponsored { font-weight: 500; }
.fb-dot { font-size: 10px; line-height: 1; }
.fb-sub svg { opacity: 0.65; }
.fb-dots {
  font-size: 18px;
  color: var(--ink-3);
  background: none; border: 0; padding: 4px 8px;
  cursor: default;
  line-height: 0;
  align-self: flex-start;
}

.fb-caption {
  padding: 0 12px 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}

.fb-image {
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.fb-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  transition: transform 1200ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.fb-post:hover .fb-image img { transform: scale(1.02); }

.fb-cta-strip {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.fb-cta-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.fb-cta-domain {
  font-size: 10px; letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.fb-cta-headline {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.25;
  margin-top: 2px;
  font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fb-cta-btn {
  flex-shrink: 0;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 4px;
  cursor: default;
  transition: filter 200ms ease, transform 150ms ease;
}
.fb-cta-btn:hover { filter: brightness(0.93); transform: translateY(-1px); }

.fb-reactions {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 12px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.fb-action {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px;
  padding: 9px 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  background: transparent;
  border: 0;
  cursor: default;
  transition: background-color 150ms ease, color 150ms ease;
}
.fb-reaction-icons { display: flex; }
.fb-rxn {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: -4px;
  border: 1.5px solid var(--bg);
  border-radius: 50%;
  position: relative;
  transition: transform 220ms ease;
}
.fb-rxn:first-child { margin-left: 0; }
.fb-post:hover .fb-rxn-like { transform: translateY(-2px); }
.fb-post:hover .fb-rxn-love { transform: translateY(-2px) scale(1.08); transition-delay: 60ms; }
.fb-post:hover .fb-rxn-wow  { transform: translateY(-2px); transition-delay: 120ms; }
.fb-reaction-count { font-variant-numeric: tabular-nums; }
.fb-meta-count {
  font-size: 12.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.fb-actions {
  display: flex;
  border-top: 1px solid var(--rule);
}
.fb-action:hover {
  background: var(--bg-2);
  color: var(--ink);
}
.fb-action svg { stroke: currentColor; }

/* dark palette refinements */
[data-palette="dark"] .fb-post {
  box-shadow: 0 18px 40px -28px rgba(0,0,0,0.5);
}
[data-palette="dark"] .fb-cta-strip { background: var(--bg-3); }

/* ─── Instagram feed post frame ─────────────────────────────────────────── */
.ig-post {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--font-sans);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 14px 32px -24px rgba(0,0,0,0.18);
  transition: transform 400ms cubic-bezier(0.22, 0.61, 0.36, 1), border-color 220ms ease, box-shadow 300ms ease;
  max-width: 320px;
  font-size: 12.5px;
}
.ig-post:hover {
  transform: translateY(-3px);
  border-color: var(--rule-2);
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 22px 50px -28px rgba(0,0,0,0.28);
}
.ig-head {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px;
}
.ig-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  /* Instagram brand gradient */
  background: conic-gradient(from 150deg, #F58529, #DD2A7B, #8134AF, #515BD4, #F58529);
  color: #fff;
}
.ig-avatar-letter { font-size: 15px; line-height: 1; transform: translateY(0.5px); }
.ig-head-meta { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; }
.ig-name-line { display: flex; align-items: center; gap: 4px; }
.ig-username {
  font-size: 12.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ig-verified { flex-shrink: 0; }
.ig-sponsored {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  margin-top: 1px;
}
.ig-dots {
  font-size: 14px; color: var(--ink-2); line-height: 0;
  background: transparent; border: 0; cursor: default;
}
.ig-image { background: var(--bg-2); overflow: hidden; }
.ig-image img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block;
  transition: transform 1200ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.ig-post:hover .ig-image img { transform: scale(1.02); }
.ig-cta-strip {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.ig-cta-label { font-size: 12.5px; font-weight: 600; color: var(--accent); letter-spacing: 0.01em; }
.ig-cta-strip svg { color: var(--ink-3); flex-shrink: 0; }
.ig-actions {
  display: flex; gap: 12px; align-items: center;
  padding: 9px 12px 4px;
  color: var(--ink);
}
.ig-likes {
  padding: 2px 12px 4px;
  font-size: 12.5px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ig-caption {
  padding: 0 12px 6px;
  font-size: 12.5px; line-height: 1.5; color: var(--ink);
}
.ig-caption-user { font-weight: 600; margin-right: 4px; }
.ig-sub {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 0 12px 12px;
  color: var(--ink-3);
}
.ig-comments { font-size: 12px; }
.ig-time {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.04em; text-transform: uppercase;
  white-space: nowrap;
}
[data-palette="dark"] .ig-post {
  box-shadow: 0 18px 40px -28px rgba(0,0,0,0.5);
}
[data-palette="dark"] .ig-cta-strip { background: var(--bg-3); }

/* ─── TikTok / Reels vertical video frame ───────────────────────────────── */
.tt-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  color: #fff;
  font-family: var(--font-sans);
  isolation: isolate;
  border: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 14px 32px -24px rgba(0,0,0,0.18);
  transition: transform 400ms cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 300ms ease, border-color 220ms ease;
}
.tt-frame:hover {
  transform: translateY(-3px);
  border-color: var(--rule-2);
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 22px 50px -28px rgba(0,0,0,0.28);
}
.tt-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.tt-frame::after {
  /* bottom gradient for caption legibility */
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, transparent 18%, transparent 60%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
  z-index: 1;
}
.tt-top {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
  gap: 18px;
  padding: 14px 12px 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}
.tt-top-active {
  color: #fff;
  position: relative;
}
.tt-top-active::after {
  content: ""; position: absolute; left: 25%; right: 25%; bottom: -6px;
  height: 2px; background: #fff;
}
.tt-top svg { position: absolute; right: 12px; top: 14px; color: #fff; }

.tt-rail {
  position: absolute; right: 8px; bottom: 90px;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  gap: 16px;
}
.tt-profile {
  position: relative;
  margin-bottom: 4px;
}
.tt-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #B14D2A, #2A2620);
  border: 1.5px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 19px;
  color: #fff;
}
.tt-follow {
  position: absolute;
  bottom: -8px; left: 50%; transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  line-height: 1;
  padding-bottom: 2px;
}
.tt-act {
  background: none; border: 0;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: #fff;
  cursor: default;
  transition: transform 200ms ease;
}
.tt-act:hover { transform: scale(1.08); }
.tt-act em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.tt-music-disc {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle, #444 30%, #111 31%, #222 60%, #000 70%);
  border: 1.5px solid #000;
  position: relative;
  animation: tt-spin 4.5s linear infinite;
  margin-top: 4px;
}
.tt-music-disc span {
  position: absolute; inset: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 1px solid #fff;
}
@keyframes tt-spin { to { transform: rotate(360deg); } }

.tt-bottom {
  position: absolute; left: 12px; right: 60px; bottom: 12px;
  z-index: 2;
  display: flex; flex-direction: column; gap: 5px;
}
.tt-handle {
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.tt-sponsored {
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(255,255,255,0.15);
  padding: 2px 5px; border-radius: 3px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}
.tt-caption {
  font-size: 12px;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  max-width: 100%;
}
.tt-music {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px;
  margin-top: 2px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.tt-music svg { opacity: 0.9; }
.tt-cta {
  align-self: flex-start;
  background: rgba(255,255,255,0.92);
  color: #15140F;
  font-size: 12px; font-weight: 600;
  padding: 7px 14px;
  border: 0; border-radius: 4px;
  margin-top: 6px;
  cursor: default;
  transition: filter 200ms ease, transform 150ms ease;
}
.tt-cta:hover { filter: brightness(0.95); transform: translateY(-1px); }
.tt-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.15);
  z-index: 2;
}
.tt-progress span {
  display: block; height: 100%;
  background: rgba(255,255,255,0.9);
  width: 0;
  animation: tt-progress-bar 12s linear infinite;
}
@keyframes tt-progress-bar {
  from { width: 0; }
  to   { width: 100%; }
}

/* ─── Tilt smoothing ────────────────────────────────────────────────────── */
.tilt {
  transform-style: preserve-3d;
  transition: transform 380ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

/* ─── Magnetic button transition smoothing ──────────────────────────────── */
.btn-primary, .btn-secondary {
  transition: transform 200ms cubic-bezier(0.22, 0.61, 0.36, 1),
              background-color 120ms ease,
              color 120ms ease,
              border-color 120ms ease;
}

/* ─── Hover counter — small flash when re-rolled ────────────────────────── */
.hover-counter {
  display: inline-block;
  transition: color 200ms ease;
}
.hover-counter:hover { color: var(--accent); }

/* ─── Stat card — chart re-draws on hover ───────────────────────────────── */
.stat-card:hover .mini-chart-line {
  animation: chart-draw 1100ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

/* ─── Marquee — speed up on hover instead of pause ──────────────────────── */
.marquee:hover .marquee-inner {
  animation-duration: 22s;
}

/* ─── Pipeline flow dot (decorative, satisfying) ────────────────────────── */
.pipeline-grid {
  position: relative;
}
.pipeline-grid::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 22%, transparent);
  animation: pipe-flow 16s cubic-bezier(0.65, 0.05, 0.36, 1) infinite;
  pointer-events: none;
  opacity: 0.85;
}
@keyframes pipe-flow {
  0%   { top: 12%;  left: 4%;   transform: scale(1);   opacity: 0; }
  3%   { opacity: 1; }
  12%  { top: 12%;  left: 29%;  }
  25%  { top: 12%;  left: 54%;  }
  37%  { top: 12%;  left: 79%;  transform: scale(1.2); }
  50%  { top: 62%;  left: 79%;  transform: scale(1); }
  62%  { top: 62%;  left: 54%;  }
  75%  { top: 62%;  left: 29%;  }
  87%  { top: 62%;  left: 4%;   transform: scale(1.2); }
  97%  { opacity: 1; }
  100% { top: 62%;  left: 4%;   opacity: 0; }
}

/* ─── Reveal on scroll — slight upscale for satisfaction ─────────────────── */
.appear { opacity: 0; transform: translateY(14px) scale(0.985); }
.appear.in { opacity: 1; transform: none; }

/* ─── BA cell — subtle "pop" when finding viewport ──────────────────────── */
.ba-cell.output {
  transition: filter 600ms ease;
}
.ba:hover .ba-cell.output { filter: saturate(1.05) contrast(1.02); }

/* ─── Stat number breath ────────────────────────────────────────────────── */
.stat-card:hover .stat-num {
  animation: stat-pulse 800ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes stat-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* ─── Cursor highlight on hero glow area (very subtle) ──────────────────── */
@media (hover: hover) {
  .hero-wrap { cursor: default; }
}

/* ─── Transform gallery (2-up grid of input → output pairs) ─────────────── */
.transform-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 88px 48px;
}
@media (max-width: 880px) {
  .transform-gallery { grid-template-columns: 1fr; gap: 72px; }
}
.transform-gallery > .your-product,
.transform-gallery > .appear:last-child {
  grid-column: 1 / -1;
  max-width: 720px;
  margin: 16px auto 0;
}
.transform-gallery > .appear:last-child > .your-product {
  margin: 0;
}

.your-product {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
  justify-items: start;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: opacity 220ms ease, border-color 220ms ease;
  padding: 40px 48px;
  border: 1px solid var(--rule);
  background: var(--bg-2);
  text-align: left;
}
.your-product .kicker { text-align: left; }
@media (max-width: 720px) {
  .your-product { grid-template-columns: 1fr; gap: 28px; padding: 32px 24px; justify-items: center; text-align: center; }
  .your-product .your-output { align-items: center; text-align: center; }
  .your-product .your-card { margin: 0 auto; }
}

/* Each row: input on left, output on right */
.transform-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: start;
  position: relative;
}
.transform-input { position: relative; max-width: 160px; }
.transform-output { max-width: 320px; min-width: 0; }

.transform-arrow {
  position: absolute;
  top: 60%;
  right: -28px;
  transform: translateY(-50%);
  color: var(--accent);
  opacity: 0.55;
  display: none;
}
@media (min-width: 980px) {
  .transform-arrow { display: block; }
}
@media (max-width: 720px) {
  .transform-row { grid-template-columns: 1fr; gap: 24px; }
  .transform-input { max-width: 280px; }
  .transform-output { max-width: 100%; }
}

/* ─── "Your product" ghost tile (sized + behavior) ─────────────────────── */
.your-product:hover { opacity: 1; }
.your-product:hover .your-card { border-color: var(--accent); }
.your-product:hover .your-output { border-color: var(--accent); }
.your-product:hover .your-output-num { color: var(--accent); }

.your-card {
  aspect-ratio: 1 / 1;
  width: 160px;
  max-width: 160px;
  border: 1.5px dashed var(--rule-2);
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  color: var(--ink-3);
  position: relative;
  transition: border-color 220ms ease, color 220ms ease;
}
.your-product:hover .your-card { color: var(--accent); }
.your-card-plus {
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 1;
  font-weight: 300;
  transition: transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.your-product:hover .your-card-plus { transform: rotate(90deg) scale(1.08); }
.your-card-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.your-card-corners span {
  position: absolute;
  width: 14px; height: 14px;
  border: 1.5px solid var(--accent);
  opacity: 0;
  transition: opacity 280ms ease;
}
.your-card-corners span:nth-child(1) { top: -1px; left: -1px;   border-right: 0; border-bottom: 0; }
.your-card-corners span:nth-child(2) { top: -1px; right: -1px;  border-left: 0;  border-bottom: 0; }
.your-card-corners span:nth-child(3) { bottom: -1px; left: -1px;  border-right: 0; border-top: 0; }
.your-card-corners span:nth-child(4) { bottom: -1px; right: -1px; border-left: 0;  border-top: 0; }
.your-product:hover .your-card-corners span { opacity: 1; }

.your-output {
  aspect-ratio: auto;
  max-width: 380px;
  border: 0;
  background: transparent;
  padding: 0;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  transition: border-color 220ms ease;
}
.your-output-num {
  font-size: 88px;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 8px;
  transition: color 240ms ease;
}
.your-output-line {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 28ch;
}

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  :root { --section-y: 80px; --section-y-sm: 56px; }
  .pipeline-grid { grid-template-columns: repeat(2, 1fr); }
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; }
  .day { min-height: auto; }
  .case-tile { grid-template-columns: 140px 1fr; row-gap: 12px; column-gap: 24px; }
  .case-outcome { font-size: 18px; }
  .case-line { padding-right: 0; }
  .case-thumb { grid-column: 2; max-width: 200px; }
  .split-50 { grid-template-columns: 1fr; gap: 48px; }
  .doc { grid-template-columns: 1fr; gap: 24px; }
  .doc-stage { grid-template-columns: 60px 1fr; gap: 16px; padding: 24px 0; }
  .work-case-after { grid-template-columns: repeat(2, 1fr); }
  .work-case-meta { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { display: none; }
  .nav-cta { margin-left: 0; }
  .offer { padding: 36px 28px; }
  .offer-price { font-size: 64px; }
}
@media (max-width: 560px) {
  .pipeline-grid { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; }
  .work-case-after { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .case-tile { grid-template-columns: 1fr; }
  .case-thumb { max-width: 100%; }
  .ba-tag { font-size: 9px; padding: 3px 6px; top: 8px; }
  .ba-tag.input-tag { left: 8px; } .ba-tag.output-tag { right: 8px; }
}

/* ─── Cross-site responsive guards ──────────────────────────────────────── */
.container { width: 100%; box-sizing: border-box; }
img, video { max-width: 100%; height: auto; }
.fb-post, .tt-frame { width: 100%; }
.transform-row, .your-product { width: 100%; box-sizing: border-box; }

@media (max-width: 480px) {
  :root { --gutter: 16px; --section-y: 56px; --section-y-sm: 40px; }
  .h1 { font-size: clamp(40px, 11vw, 64px) !important; }
  .display { font-size: clamp(48px, 14vw, 88px) !important; }
  .offer { padding: 28px 20px; }
  .offer-price { font-size: 52px; }
  .nav-inner { height: 56px; }
  .scroll-progress { top: 56px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .platform-row { flex-wrap: wrap; gap: 12px; }
  .platforms { gap: 12px; flex-wrap: wrap; }
  .your-card { width: 140px; max-width: 140px; }
  .your-output-num { font-size: 64px; }
  .stat-num { font-size: 56px; }
  .meta-formats { gap: 14px; flex-wrap: wrap; }
}
