/* ------------------------------------------------------------------
   Tarlan Khanaliyev — Portfolio
   Type: Geist (display) + Geist Mono (labels)
   Mood: Quiet cream, tight bold display type, atmospheric gradient cards
   ------------------------------------------------------------------ */

:root {
  --bg: #ffffff;
  --bg-soft: #f3f1ec;
  --paper: #f3f1ec;
  --ink: #111111;
  --ink-soft: #1a1a1a;
  --muted: #6b6b66;
  --hair: rgba(17, 17, 17, 0.08);
  --accent: #5b5fdb;
  --accent-soft: #eeeefb;
  --shadow-card: 0 30px 60px -30px rgba(0, 0, 0, 0.2), 0 8px 24px -8px rgba(0, 0, 0, 0.06);
  --shadow-tilt: 0 40px 80px -30px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --radius-lg: 32px;
}

/* When a section is wrapped in a cream band, flip paper→white so cards pop */
.cream-band {
  position: relative;
  background: var(--bg-soft);
  /* Full-bleed cream that extends to viewport edges while keeping content centered */
  box-shadow: 0 0 0 100vmax var(--bg-soft);
  clip-path: inset(0 -100vmax);
}
.cream-band-soft {
  --paper: #ffffff;
}

[data-palette="paper"] {
  --bg: #fafaf7;
  --bg-soft: #f0eee7;
  --paper: #f7f5ef;
  --hair: rgba(17, 17, 17, 0.07);
}
[data-palette="sage"] {
  --bg: #fafbf6;
  --bg-soft: #ecede4;
  --paper: #ecede4;
  --hair: rgba(17, 17, 17, 0.08);
}
[data-palette="ink"] {
  --bg: #0e0e10;
  --bg-soft: #16161a;
  --paper: #1a1a1f;
  --ink: #f3f1ec;
  --ink-soft: #ebe8e1;
  --muted: #8a8a85;
  --hair: rgba(243, 241, 236, 0.1);
  --accent: #8d91ff;
  --accent-soft: rgba(141, 145, 255, 0.12);
  --shadow-card: 0 30px 60px -30px rgba(0, 0, 0, 0.6), 0 8px 24px -8px rgba(0, 0, 0, 0.4);
  --shadow-tilt: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
[data-palette="ink"] .cream-band { background: #15151a; }
[data-palette="ink"] .cream-band-soft { --paper: #1a1a1f; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", -apple-system, system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 400ms ease, color 400ms ease;
}

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

/* Layout primitives ---------------------------------------------- */

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.label {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--ink);
}

.muted { color: var(--muted); }

.placeholder {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 1px 8px;
  border-radius: 4px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.85em;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Display type --------------------------------------------------- */

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-wrap: balance;
}

.h-display {
  font-size: clamp(56px, 8.4vw, 132px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.92;
}

.h-section {
  font-size: clamp(40px, 5.4vw, 84px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.h-block {
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

p { line-height: 1.55; text-wrap: pretty; }

.lede {
  font-size: clamp(17px, 1.3vw, 19px);
  color: var(--ink-soft);
  max-width: 56ch;
}

/* Nav ------------------------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.nav.scrolled { border-bottom-color: var(--hair); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 32px;
  max-width: 1240px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 16px;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 700;
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a {
  position: relative;
  transition: color 200ms ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--ink);
  color: var(--bg);
  border: 0;
  padding: 9px 16px 9px 9px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -10px rgba(0,0,0,0.4); }
.nav-cta .dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  display: grid;
  place-items: center;
}

/* Hero ----------------------------------------------------------- */

.hero {
  padding: 96px 32px 60px;
  text-align: center;
  max-width: 1240px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--muted);
  text-transform: lowercase;
  margin-bottom: 28px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--hair);
}
.hero-sub {
  margin: 32px auto 40px;
  max-width: 60ch;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-soft);
}
.cta-pill {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 8px 22px 8px 8px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  transition: transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 6px 18px -10px rgba(0,0,0,0.25);
}
.cta-pill:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(0,0,0,0.35); }
.cta-pill .arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
}

/* Numbers strip (tilted cards) ---------------------------------- */

.numbers {
  margin-top: 24px;
  padding: 40px 0 80px;
  overflow: hidden;
}
.numbers-row {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 60px 16px;
}
.num-card {
  width: 220px;
  height: 280px;
  border-radius: 24px;
  padding: 26px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-tilt);
  position: relative;
  overflow: hidden;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.num-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.25'/></svg>");
  opacity: 0.4;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.num-card .stat {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.92;
}
.num-card .stat .small { font-size: 28px; font-weight: 700; }
.num-card .label-light {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  text-transform: lowercase;
  opacity: 0.8;
}
.num-card .desc {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  opacity: 0.95;
}
.num-card[data-tilt="1"] { transform: rotate(-6deg) translateY(8px); }
.num-card[data-tilt="2"] { transform: rotate(3deg) translateY(-14px); }
.num-card[data-tilt="3"] { transform: rotate(-2deg) translateY(0px); }
.num-card[data-tilt="4"] { transform: rotate(4deg) translateY(-8px); }
.num-card[data-tilt="5"] { transform: rotate(-5deg) translateY(10px); }
.num-card:hover { transform: rotate(0) translateY(-12px) scale(1.04); }

.grad-1 { background: linear-gradient(135deg, #6a7cff 0%, #c9b6ff 50%, #ffd0c1 100%); }
.grad-2 { background: linear-gradient(135deg, #1a1a1a 0%, #353740 100%); }
.grad-3 { background: linear-gradient(135deg, #f4a17c 0%, #f1cba8 50%, #e3a9c9 100%); }
.grad-4 { background: linear-gradient(135deg, #4a6cf7 0%, #6884ff 50%, #b6c6ff 100%); }
.grad-5 { background: linear-gradient(135deg, #2d4a5a 0%, #5a7f8f 60%, #b6cdd6 100%); }
.grad-sky { background: linear-gradient(135deg, #0a1438 0%, #1a2e6e 40%, #4a5fc1 100%); }
.grad-warm { background: linear-gradient(135deg, #ddd0bc 0%, #c4a989 50%, #876a4d 100%); }
.grad-deep { background: linear-gradient(160deg, #0a0a14 0%, #1a1e3a 60%, #3a4570 100%); }

/* Intro two-column ---------------------------------------------- */

.intro {
  padding: 80px 32px;
  max-width: 1240px;
  margin: 0 auto;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 64px;
  align-items: start;
}
.intro-grid .divider { background: var(--hair); }
.intro-block h3 { margin-bottom: 20px; }
.intro-block p { color: var(--ink-soft); max-width: 42ch; font-size: 16px; }
.intro-block p + p { margin-top: 14px; }

/* Capabilities --------------------------------------------------- */

.cap {
  padding: 100px 32px;
  max-width: 1240px;
  margin: 0 auto;
}
.cap-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 60px;
}
.cap-header .copy p {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 42ch;
}
.cap-header .copy p + p { margin-top: 14px; }
.cap-pill {
  justify-self: end;
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 12px 18px 28px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 18px;
  min-width: 320px;
  font-size: 15px;
}
.cap-pill .title { font-weight: 600; }
.cap-pill .sub { font-size: 13px; opacity: 0.7; margin-top: 2px; }
.cap-pill .arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  display: grid; place-items: center;
}

/* Funnel block — Paid media section ----------------------------- */
.cap-funnel {
  justify-self: end;
  align-self: end;
  width: 360px;
  max-width: 100%;
  background: var(--ink);
  color: var(--bg);
  border-radius: 18px;
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cap-funnel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(243, 241, 236, 0.12);
  font-family: "Geist Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
.cap-funnel-label { color: rgba(243, 241, 236, 0.55); }
.cap-funnel-meta { color: rgba(243, 241, 236, 0.85); }

.cap-funnel-stages {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cap-funnel-row {
  display: grid;
  grid-template-columns: 26px 88px 1fr;
  align-items: center;
  gap: 10px;
}
.cap-funnel-num {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  color: rgba(243, 241, 236, 0.45);
  letter-spacing: 0.02em;
}
.cap-funnel-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--bg);
}
.cap-funnel-bar {
  position: relative;
  height: 10px;
  border-radius: 3px;
  background: rgba(243, 241, 236, 0.08);
  display: block;
  transform-origin: left;
}
.cap-funnel-bar i {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background: linear-gradient(90deg,
    rgba(141, 145, 255, 0.95) 0%,
    rgba(141, 145, 255, 0.45) 100%);
  transform-origin: left;
  animation: funnelGrow 1100ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.cap-funnel-row:nth-child(1) i { animation-delay: 0ms; }
.cap-funnel-row:nth-child(2) i { animation-delay: 110ms; }
.cap-funnel-row:nth-child(3) i { animation-delay: 220ms; }
.cap-funnel-row:nth-child(4) i { animation-delay: 330ms; }
@keyframes funnelGrow {
  from { transform: scaleX(0); opacity: 0.3; }
  to   { transform: scaleX(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cap-funnel-bar i { animation: none; }
}

/* Converge block — Content & social section --------------------- */
.cap-converge {
  justify-self: end;
  align-self: end;
  width: 360px;
  max-width: 100%;
  background: var(--ink);
  color: var(--bg);
  border-radius: 18px;
  padding: 22px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cap-converge-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(243, 241, 236, 0.12);
  font-family: "Geist Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
.cap-converge-label { color: rgba(243, 241, 236, 0.55); }
.cap-converge-meta { color: rgba(243, 241, 236, 0.85); }
.cap-converge-svg {
  width: 100%;
  height: auto;
  display: block;
}
.cc-tag {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  fill: rgba(243, 241, 236, 0.55);
}
.cc-tag-o { text-anchor: start; }
.cc-tag-p { text-anchor: start; }
.cc-node-label {
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: rgba(141, 145, 255, 0.95);
}
.cc-strand {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 250;
  stroke-dashoffset: 250;
  animation: ccFlow 1400ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.cc-strand-o { stroke: url(#cc-grad-o); animation-delay: 80ms; }
.cc-strand-p { stroke: url(#cc-grad-p); animation-delay: 220ms; }
.cc-tagicon {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 0 50%;
  animation: ccPop 500ms cubic-bezier(0.2, 1.2, 0.4, 1) 700ms forwards;
}

@keyframes ccFlow { to { stroke-dashoffset: 0; } }
@keyframes ccFade { to { opacity: 1; } }
@keyframes ccPop {
  0%   { opacity: 0; transform: scale(0.3); }
  100% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .cc-strand { stroke-dashoffset: 0; animation: none; }
  .cc-tagicon { opacity: 1; animation: none; }
}

.cap-converge-legend {
  display: none;
}

/* Paid mock = algorithm poster (replaces the campaign workspace) */
.paid-poster {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 20px 8px;
}
.paid-poster .algo-poster-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: rgba(243, 241, 236, 0.55);
  margin: 0;
}
.paid-poster .algo-poster-line {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.95;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--bg);
}
.paid-poster .algo-poster-em {
  font-style: italic;
  font-weight: 500;
  color: #8d91ff;
}
.paid-poster .algo-poster-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid rgba(243, 241, 236, 0.10);
}
.paid-poster .algo-poster-strategy {
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(243, 241, 236, 0.10);
  max-width: 64ch;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: rgba(243, 241, 236, 0.78);
}
.paid-poster .algo-poster-strategy::before {
  content: "/ strategy";
  display: block;
  margin-bottom: 10px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: #8d91ff;
}

/* ContentMock — compounding reach + signal weights ---------------- */
.content-mock {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  width: 100%;
  height: 100%;
}
.content-mock--single {
  grid-template-columns: 1fr;
}
.cm-panel {
  background: #1a1a1f;
  border: 1px solid rgba(243, 241, 236, 0.10);
  border-radius: 14px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.cm-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(243, 241, 236, 0.12);
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
.cm-label { color: rgba(243, 241, 236, 0.55); }
.cm-meta  { color: rgba(243, 241, 236, 0.85); }

/* Compounding reach chart */
.cm-chart {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  flex: 1 1 auto;
  align-items: end;
  padding-top: 8px;
  min-height: 180px;
}
.cm-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  position: relative;
}
.cm-col-total {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  text-align: center;
  color: rgba(243, 241, 236, 0.6);
  letter-spacing: 0.01em;
}
.cm-stack {
  display: flex;
  flex-direction: column-reverse;
  height: 150px;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  background: rgba(243, 241, 236, 0.04);
}
.cm-seg {
  display: block;
  width: 100%;
  transform-origin: bottom;
  transform: scaleY(0);
  animation: cmGrow 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.cm-seg-o { background: rgba(141, 145, 255, 0.85); }
.cm-seg-p { background: rgba(243, 241, 236, 0.45); }
@keyframes cmGrow { to { transform: scaleY(1); } }
.cm-col-label {
  text-align: center;
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  color: rgba(243, 241, 236, 0.55);
}
.cm-callout {
  position: absolute;
  top: -10px;
  right: -8px;
  background: #8d91ff;
  color: var(--ink);
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 12px -4px rgba(141, 145, 255, 0.5);
  animation: ccFade 400ms ease 1100ms both;
  opacity: 0;
}

.cm-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: rgba(243, 241, 236, 0.7);
  letter-spacing: 0.02em;
}
.cm-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 2px;
  margin-right: 6px;
  transform: translateY(-1px);
}
.cm-dot-o { background: rgba(141, 145, 255, 0.85); }
.cm-dot-p { background: rgba(243, 241, 236, 0.45); }

.cm-insight {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed rgba(243, 241, 236, 0.10);
  font-family: "Geist Mono", monospace;
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(243, 241, 236, 0.8);
  letter-spacing: 0.005em;
}
.cm-insight-mark {
  color: #8d91ff;
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 1px;
}

/* Signal weights — right panel */
.cm-signals {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  padding-top: 4px;
}
.cm-sig-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 4px;
  align-items: center;
}
.cm-sig-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--bg);
  grid-row: 1;
}
.cm-sig-bar {
  position: relative;
  height: 8px;
  border-radius: 3px;
  background: rgba(243, 241, 236, 0.06);
  display: block;
  grid-row: 1;
}
.cm-sig-bar i {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(141, 145, 255, 1) 0%, rgba(141, 145, 255, 0.55) 100%);
  transform-origin: left;
  animation: funnelGrow 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.cm-sig-note {
  grid-column: 2;
  grid-row: 2;
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.01em;
  color: rgba(243, 241, 236, 0.5);
}

@media (max-width: 880px) {
  .cap-converge { justify-self: start; width: 100%; }
  .content-mock { grid-template-columns: 1fr; }
}

.cap-art {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 8.2;
  padding: 56px;
  display: flex;
  align-items: flex-end;
}
.cap-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3'/></filter><rect width='300' height='300' filter='url(%23n)' opacity='0.3'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.5;
  pointer-events: none;
}
.cap-screenshot {
  position: relative;
  z-index: 1;
  width: 100%;
  background: var(--paper);
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.4);
}
.cap-screenshot--dark {
  background: var(--ink);
  color: var(--bg);
}
.cap-screenshot--dark .mock-head { border-bottom-color: rgba(243, 241, 236, 0.08); }
.cap-screenshot--dark .mock-tabs .tab { color: rgba(243, 241, 236, 0.55); }
.cap-screenshot--dark .mock-tabs .tab.active { background: rgba(243, 241, 236, 0.08); color: var(--bg); }

/* Mock card UIs inside cap-art --------------------------------- */

.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hair);
}
.mock-tabs { display: flex; gap: 8px; }
.mock-tabs .tab {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 8px;
  color: var(--muted);
}
.mock-tabs .tab.active { background: var(--bg-soft); color: var(--ink); }
.mock-title-row { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.mock-title-row .square {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--accent); color: white;
  display: grid; place-items: center;
  font-family: "Geist Mono", monospace; font-size: 11px;
}
.mock-h {
  font-size: 22px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink);
  margin: 8px 0 18px;
}
.mock-meta {
  display: flex; gap: 16px;
  font-size: 13px; color: var(--muted);
  border-bottom: 1px solid var(--hair);
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.mock-meta span { display: inline-flex; gap: 6px; align-items: center; }
.mock-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 18px;
}
.mock-stat-block {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 16px;
}
.mock-stat-block .k {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mock-stat-block .v {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.mock-stat-block .delta {
  font-size: 12px;
  color: #1f8a5b;
  margin-top: 2px;
}
.mock-stat-block .delta.bad { color: #c5483a; }

.mock-cand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 14px;
}
.mock-cand-row:last-child { border-bottom: 0; }
.mock-cand-row .left { display: flex; align-items: center; gap: 12px; }
.mock-cand-row .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #d4cbb8 0%, #a89377 100%);
}
.mock-cand-row .name { font-weight: 600; }
.mock-cand-row .sub { font-size: 12px; color: var(--muted); }
.mock-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Campaigns ledger ---------------------------------------------- */

.ledger {
  padding: 100px 32px;
  max-width: 1240px;
  margin: 0 auto;
}
.ledger-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}
.ledger-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ledger-card {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 250ms ease, box-shadow 250ms ease;
  min-height: 280px;
}
.ledger-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.ledger-card .meta {
  display: flex; justify-content: space-between;
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  color: var(--muted);
  text-transform: lowercase;
}
.ledger-card .outcome {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-top: auto;
}
.ledger-card .outcome .unit {
  font-size: 22px;
  font-weight: 600;
  color: var(--muted);
}
.ledger-card .name { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.ledger-card .desc { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* Comparison bar chart ------------------------------------------ */

.compare {
  padding: 60px 32px 100px;
  max-width: 1240px;
  margin: 0 auto;
}
.compare-card {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 64px 64px 56px;
  position: relative;
}
.compare-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  margin-bottom: 28px;
  align-items: end;
}
.compare-head .copy p {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 50ch;
}
.cta-soft {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border-radius: 999px;
  padding: 12px 22px 12px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.cta-soft .arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
}

.bars-wrap {
  position: relative;
  margin-top: 56px;
  padding-left: 48px;
}
.bars-grid {
  position: absolute;
  left: 48px;
  right: 0;
  top: 56px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.gridline {
  position: relative;
  border-top: 1px dashed rgba(17, 17, 17, 0.10);
  height: 0;
}
.gridline-base {
  border-top: 1px solid rgba(17, 17, 17, 0.45);
}
.gridline span {
  position: absolute;
  left: -44px;
  top: -8px;
  font-family: "Geist Mono", "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px;
  align-items: end;
  height: 380px;
  position: relative;
}
.bar-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  justify-content: flex-end;
  max-width: 110px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}
.bar-top {
  position: absolute;
  bottom: 100%;
  left: 0; right: 0;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.bar-delta {
  font-family: "Geist Mono", "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
  background: rgba(17, 17, 17, 0.04);
  padding: 3px 7px;
  border-radius: 999px;
}
.bar-value {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-feature-settings: "tnum" 1;
}
.bar-value .bar-x {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 1px;
}
.bar-value-mine {
  font-weight: 700;
}
.bar-track {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: flex-end;
}
.bar-label {
  text-align: center;
  font-family: "Geist Mono", "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  height: 28px;
  line-height: 28px;
  margin-top: 0;
  text-transform: uppercase;
  flex: 0 0 28px;
}
.bar {
  width: 100%;
  background: linear-gradient(180deg, rgba(91, 95, 219, 0.42) 0%, rgba(91, 95, 219, 0.28) 100%);
  border-radius: 3px 3px 0 0;
  transform-origin: bottom;
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  min-height: 4px;
  height: 100%;
}
[data-palette="ink"] .bar { background: linear-gradient(180deg, rgba(141, 145, 255, 0.48) 0%, rgba(141, 145, 255, 0.22) 100%); }
[data-palette="ink"] .gridline { border-top-color: rgba(243, 241, 236, 0.12); }
[data-palette="ink"] .gridline-base { border-top-color: rgba(243, 241, 236, 0.45); }
[data-palette="ink"] .bar-delta { background: rgba(243, 241, 236, 0.08); }
.bar.mine {
  background: var(--ink);
}
[data-palette="ink"] .bar.mine { background: var(--bg); }

/* Services ------------------------------------------------------ */

.services {
  padding: 100px 32px;
  max-width: 1240px;
  margin: 0 auto;
}
.services-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}
.services-head .copy p {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 44ch;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 360px;
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}
.service-card.feature {
  background: var(--ink);
  color: var(--bg);
  border-color: transparent;
}
.service-num {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  color: var(--muted);
  text-transform: lowercase;
  letter-spacing: 0.03em;
}
.service-card.feature .service-num { color: rgba(243, 241, 236, 0.55); }
.service-card.feature .service-list li { border-color: rgba(243, 241, 236, 0.15); color: rgba(243, 241, 236, 0.85); }
.service-name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.service-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.service-card.feature .service-desc { color: rgba(243, 241, 236, 0.7); }
.service-list {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  font-size: 14px;
}
.service-list li {
  padding: 10px 0;
  border-top: 1px solid var(--hair);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
}
.service-list li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.service-card.feature .service-list li::before { background: #ffd700; }
.service-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  color: var(--muted);
}
.service-card.feature .service-foot { border-color: rgba(243, 241, 236, 0.15); color: rgba(243, 241, 236, 0.55); }

/* Testimonials -------------------------------------------------- */

.testimonials {
  padding: 100px 32px;
  max-width: 1240px;
  margin: 0 auto;
}
.testimonials-head {
  text-align: center;
  margin-bottom: 60px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.t-card {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.t-card.dark {
  background: var(--ink);
  color: var(--bg);
  border-color: transparent;
}
.t-card.gradient {
  background: linear-gradient(150deg, #6a7cff 0%, #c9b6ff 60%, #ffd0c1 100%);
  border-color: transparent;
  color: #15152e;
}
.t-quote-mark {
  font-family: "Geist", serif;
  font-size: 64px;
  line-height: 0.7;
  font-weight: 800;
  color: var(--accent);
}
.t-card.dark .t-quote-mark { color: #ffd700; }
.t-card.gradient .t-quote-mark { color: #15152e; }
.t-quote {
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.015em;
  font-weight: 500;
  flex: 1;
}
.t-card.gradient .t-quote { color: #15152e; }
.t-attrib {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
}
.t-card.dark .t-attrib { border-color: rgba(243, 241, 236, 0.15); }
.t-card.gradient .t-attrib { border-color: rgba(21, 21, 46, 0.18); }
.t-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  flex-shrink: 0;
}
.t-card.dark .t-avatar { background: rgba(243, 241, 236, 0.12); color: var(--bg); }
.t-name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.t-role { font-size: 13px; opacity: 0.65; margin-top: 2px; }

/* Toolkit ------------------------------------------------------- */

/* Content calendar mock ---------------------------------------- */
.content-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 4px;
}
.content-tile {
  position: relative;
  border-radius: 12px;
  padding: 12px;
  height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  overflow: hidden;
  font-family: "Geist Mono", monospace;
}
.content-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/></filter><rect width='100' height='100' filter='url(%23n)' opacity='0.3'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.4;
  pointer-events: none;
}
.tile-grad-1 { background: linear-gradient(150deg,#6a7cff,#c9b6ff); }
.tile-grad-2 { background: linear-gradient(150deg,#1a1a1a,#3a4570); }
.tile-grad-3 { background: linear-gradient(150deg,#0a4d8c,#4a6fa5); }
.tile-grad-4 { background: linear-gradient(150deg,#f4a17c,#e3a9c9); }
.tile-grad-5 { background: linear-gradient(150deg,#0e0e16,#5a4080); }
.tile-grad-6 { background: linear-gradient(150deg,#876a4d,#ddd0bc); }
.ct-top, .ct-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ct-day { font-size: 11px; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.05em; }
.ct-plat {
  font-size: 10px;
  background: rgba(255,255,255,0.18);
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ct-type { font-family: "Geist", sans-serif; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.ct-metric { font-size: 10px; opacity: 0.85; }

/* Creative — hook variants ------------------------------------ */
.hooks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.hook-row {
  display: grid;
  grid-template-columns: 32px 1fr 160px auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: 12px;
  border: 1px solid transparent;
  transition: border-color 200ms ease;
}
.hook-row.hook-winner {
  background: var(--paper);
  border-color: var(--accent);
}
.hook-var {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  font-weight: 600;
}
.hook-row.hook-winner .hook-var { background: var(--accent); }
.hook-text {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.3;
}
.hook-meta {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  text-transform: lowercase;
}
.hook-score-num {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hook-score-num span { font-size: 12px; color: var(--muted); font-weight: 500; }
.hook-score-bar {
  margin-top: 6px;
  background: var(--bg-soft);
  border-radius: 4px;
  height: 4px;
  overflow: hidden;
}
.hook-row.hook-winner .hook-score-bar { background: rgba(91, 95, 219, 0.18); }
.hook-score-bar > div {
  height: 100%;
  background: var(--ink);
  border-radius: 4px;
  transition: width 800ms ease;
}
.hook-row.hook-winner .hook-score-bar > div { background: var(--accent); }
.hook-tag {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent);
  color: #fff;
  padding: 4px 8px;
  border-radius: 999px;
}

/* Strategy — competitor matrix -------------------------------- */
.strategy-matrix {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-rows: 1fr 28px;
  gap: 8px;
  height: 240px;
  margin-top: 4px;
}
.axis-y {
  grid-row: 1;
  grid-column: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}
.axis-x {
  grid-row: 2;
  grid-column: 2;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}
.matrix-frame {
  grid-row: 1;
  grid-column: 2;
  position: relative;
  background: var(--bg-soft);
  border-radius: 10px;
  overflow: hidden;
}
.quad-grid {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, transparent calc(50% - 0.5px), var(--hair) calc(50% - 0.5px), var(--hair) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(to bottom, transparent calc(50% - 0.5px), var(--hair) calc(50% - 0.5px), var(--hair) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}
.comp-dot {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, 50%);
  transition: transform 200ms ease;
}
.comp-a { background: rgba(107, 107, 102, 0.5); }
.comp-b { background: rgba(151, 130, 96, 0.6); }
.comp-c { background: rgba(91, 95, 219, 0.45); }
.comp-us {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(91, 95, 219, 0.18);
}
.comp-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  white-space: nowrap;
  color: var(--ink);
}
.comp-label em { color: var(--muted); font-style: normal; }
.comp-us + .comp-label, .comp-us .comp-label { font-weight: 600; }

/* Toolkit ------------------------------------------------------- */

.toolkit {
  padding: 100px 32px;
  max-width: 1240px;
  margin: 0 auto;
}
.toolkit-head {
  margin-bottom: 56px;
  max-width: 760px;
}
.toolkit-head .label { display: block; margin-bottom: 22px; }
.toolkit-head .lede { margin-top: 24px; }

.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.tool-card {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 340px;
  position: relative;
  overflow: hidden;
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

/* Accent variants — each card a different tone */
.tool-card.tool-ink {
  background: var(--ink);
  color: var(--bg);
  border-color: transparent;
}
.tool-card.tool-ink .tool-chips li { background: rgba(243,241,236,0.10); color: var(--bg); }
.tool-card.tool-ink .tool-num,
.tool-card.tool-ink .tool-meta { color: rgba(243,241,236,0.55); }
.tool-card.tool-ink .tool-blurb { color: rgba(243,241,236,0.75); }

.tool-card.tool-warm {
  background: linear-gradient(160deg, #f1cba8 0%, #e9b89a 60%, #d99a78 100%);
  border-color: transparent;
  color: #2b1f14;
}
.tool-card.tool-warm .tool-chips li { background: rgba(43,31,20,0.10); color: #2b1f14; }
.tool-card.tool-warm .tool-num,
.tool-card.tool-warm .tool-meta { color: rgba(43,31,20,0.55); }
.tool-card.tool-warm .tool-blurb { color: rgba(43,31,20,0.78); }

.tool-card.tool-indigo {
  background: linear-gradient(160deg, #5b5fdb 0%, #4a4fc4 60%, #2f349f 100%);
  border-color: transparent;
  color: #f3f1ec;
}
.tool-card.tool-indigo .tool-chips li { background: rgba(243,241,236,0.16); color: #f3f1ec; }
.tool-card.tool-indigo .tool-num,
.tool-card.tool-indigo .tool-meta { color: rgba(243,241,236,0.60); }
.tool-card.tool-indigo .tool-blurb { color: rgba(243,241,236,0.85); }

.tool-card.tool-sand {
  background: #ebe5d4;
  border-color: transparent;
  color: #2b251a;
}
.tool-card.tool-sand .tool-chips li { background: rgba(43,37,26,0.10); color: #2b251a; }
.tool-card.tool-sand .tool-num,
.tool-card.tool-sand .tool-meta { color: rgba(43,37,26,0.55); }
.tool-card.tool-sand .tool-blurb { color: rgba(43,37,26,0.75); }

.tool-num {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.tool-meta {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.tool-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.tool-chips {
  list-style: none;
  padding: 0;
  margin: 4px 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tool-chips li {
  font-family: "Geist Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.01em;
  background: var(--bg-soft);
  color: var(--ink);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.tool-blurb {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 4px 0 0;
}

/* On the side of the algorithm — editorial poster ---------------- */

.algo-poster-wrap {
  padding: 60px 32px;
  margin: 0 auto;
  max-width: 1240px;
}
.algo-poster {
  padding: 56px 56px 48px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--bg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* faint diagonal sheen — a single sweeping line, very subtle */
.algo-poster::before {
  content: "";
  position: absolute;
  inset: -40% -10%;
  background:
    repeating-linear-gradient(
      115deg,
      transparent 0 80px,
      rgba(255, 255, 255, 0.025) 80px 81px
    );
  pointer-events: none;
  z-index: -1;
}

.algo-poster-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: rgba(243, 241, 236, 0.55);
  margin-bottom: 32px;
}
.algo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(141, 145, 255, 0.55);
  animation: algoBlink 2.2s ease-in-out infinite;
}
@keyframes algoBlink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(141, 145, 255, 0.55); }
  50%      { box-shadow: 0 0 0 8px rgba(141, 145, 255, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .algo-dot { animation: none; }
}

.algo-poster-line {
  margin: 0 0 40px;
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.95;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.algo-poster-line span { display: block; }
.algo-poster-em {
  font-style: italic;
  font-weight: 500;
  color: #8d91ff; /* indigo accent — works on dark */
}

.algo-poster-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 28px;
  border-top: 1px solid rgba(243, 241, 236, 0.10);
}
.algo-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 14px;
  border-radius: 999px;
  background: rgba(243, 241, 236, 0.06);
  border: 1px solid rgba(243, 241, 236, 0.10);
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.005em;
  color: var(--bg);
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.algo-chip:hover {
  background: rgba(243, 241, 236, 0.10);
  transform: translateY(-1px);
}
.algo-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.algo-chip--meta i   { background: #1877F2; box-shadow: 0 0 12px rgba(24, 119, 242, 0.6); }
.algo-chip--tiktok i { background: #FE2C55; box-shadow: 0 0 12px rgba(254, 44, 85, 0.6); }
.algo-chip--google i { background: #FBBC04; box-shadow: 0 0 12px rgba(251, 188, 4, 0.55); }
.algo-chip--meta:hover   { border-color: rgba(24, 119, 242, 0.45); }
.algo-chip--tiktok:hover { border-color: rgba(254, 44, 85, 0.45); }
.algo-chip--google:hover { border-color: rgba(251, 188, 4, 0.45); }

@media (max-width: 720px) {
  .algo-poster { padding: 36px 28px 32px; margin-top: 40px; }
  .algo-poster-eyebrow { margin-bottom: 22px; }
  .algo-poster-line { margin-bottom: 28px; }
  .algo-poster-chips { padding-top: 20px; }
}

/* Trusted-by — logo marquee ------------------------------------ */

.trusted {
  padding: 80px 32px 60px;
  margin: 0 auto;
  max-width: 1240px;
}
.trusted-head { margin-bottom: 56px; }
.trusted-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 22px;
}
.trusted-count {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: "Geist", system-ui, sans-serif;
}
.trusted-count-num {
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: var(--ink);
}
.trusted-plus {
  font-size: 0.55em;
  font-weight: 700;
  color: var(--accent);
  margin-left: 2px;
}
.trusted-count-label {
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: lowercase;
  padding-bottom: 6px;
}
.trusted-lede {
  color: var(--muted);
  font-size: 16px;
  max-width: 64ch;
  line-height: 1.55;
  margin: 0;
}
.logo-track {
  overflow: hidden;
  position: relative;
  padding: 12px 0;
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.logo-row {
  display: flex;
  gap: 80px;
  align-items: center;
  width: max-content;
  animation: logo-slide 50s linear infinite;
}
.logo-row:hover { animation-play-state: paused; }
.logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  flex-shrink: 0;
  filter: saturate(0.95);
  opacity: 0.95;
  transition: opacity 240ms ease, filter 240ms ease, transform 240ms ease;
  padding: 0 8px;
}
.logo-cell:hover {
  opacity: 1;
  filter: saturate(1);
  transform: scale(1.05);
}
.logo-cell img {
  max-width: 260px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
[data-palette="ink"] .logo-cell { filter: saturate(0.9) brightness(1.4) contrast(0.9); }
@keyframes logo-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 600px) {
  .trusted-head-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .logo-cell { height: 72px; width: 150px; }
  .logo-cell img { max-width: 130px; }
}

/* Hero secondary CTA -------------------------------------------- */

.hero-ctas {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 4px;
}
.cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 10px 4px;
  border-bottom: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}
.cta-ghost:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* Industries marquee -------------------------------------------- */

.industries {
  padding: 100px 0 80px;
  max-width: 1240px;
  margin: 0 auto;
}
.industries-head {
  padding: 0 32px;
  margin-bottom: 56px;
}
.industries-head .label { display: block; margin-bottom: 22px; }
.industries-head h3 {
  text-align: left;
  max-width: 16ch;
}
.marquee {
  overflow: hidden;
  width: 100%;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  align-items: baseline;
  animation: marquee-slide 60s linear infinite;
  padding: 24px 0;
}
.marquee-item {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  font-family: "Geist", system-ui, sans-serif;
  font-size: clamp(22px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
  flex-shrink: 0;
  white-space: nowrap;
}
.marquee-item:nth-child(odd) {
  color: var(--ink);
  -webkit-text-stroke: 0;
}
.marquee-item:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
[data-palette="ink"] .marquee-item:nth-child(even) {
  -webkit-text-stroke: 1.5px var(--ink-soft);
}
.marquee-num {
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
  -webkit-text-stroke: 0;
  align-self: flex-start;
  margin-top: 4px;
}
.industries-foot {
  padding: 40px 32px 0;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 38ch;
  font-weight: 500;
}
@keyframes marquee-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Education timeline -------------------------------------------- */

.education {
  padding: 100px 32px;
  max-width: 1240px;
  margin: 0 auto;
}
.education-head {
  margin-bottom: 56px;
  max-width: 720px;
}
.education-head .lede { margin-top: 24px; }
.education-list {
  border-top: 1px solid var(--hair);
}
.edu-row {
  display: grid;
  grid-template-columns: 200px 1fr 140px;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--hair);
  align-items: start;
  transition: background-color 200ms ease, padding-left 200ms ease, padding-right 200ms ease;
}
.edu-row:hover {
  background: var(--bg-soft);
  padding-left: 16px;
  padding-right: 16px;
}
.edu-year {
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
  padding-top: 4px;
}
.edu-school {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.edu-detail {
  font-size: 15px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
  max-width: 56ch;
}
.edu-badge {
  justify-self: end;
  align-self: start;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink);
  white-space: nowrap;
}

/* Letter with portrait ------------------------------------------ */

.letter-inner.with-portrait {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  max-width: 1040px;
  align-items: start;
}
.portrait-col {
  position: sticky;
  top: 100px;
}
.portrait-frame {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  background: #0a0a0a;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.18);
  position: relative;
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) brightness(0.96);
}
.portrait-cap {
  margin-top: 20px;
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 4px;
}
.portrait-cap .who { color: var(--ink); font-weight: 500; }
.letter-text { min-width: 0; }
.letter-text h2 { letter-spacing: -0.04em; }
.letter-text p b { font-weight: 700; color: var(--ink); }

/* Contact CTAs -------------------------------------------------- */

.contact-ctas {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
}
.contact .contact-ctas { display: flex; justify-content: center; }
.cta-ghost-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(243, 241, 236, 0.75);
  padding: 10px 4px;
  border-bottom: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}
.cta-ghost-dark:hover { color: white; border-bottom-color: rgba(255,255,255,0.6); }

.email-line { font-family: "Geist Mono", monospace; font-size: 13px; }

/* Languages & markets strip ------------------------------------- */

.markets {
  padding: 100px 32px;
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}
.markets h3 { max-width: 24ch; margin: 0 auto 18px; }
.markets .lede { margin: 0 auto 60px; }
.markets-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 80px;
  align-items: center;
}
.market-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.market-item .name {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.market-item .sub {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  color: var(--muted);
}

/* Open letter --------------------------------------------------- */

.letter {
  padding: 80px 32px 100px;
  max-width: 1240px;
  margin: 0 auto;
}
.letter-inner {
  max-width: 720px;
  margin: 0 auto;
}
.letter h2 { margin-bottom: 40px; }
.letter p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 22px;
}
.letter .sign {
  font-family: "Geist Mono", monospace;
  font-size: 14px;
  margin-top: 36px;
  line-height: 1.6;
}
.letter .signature {
  font-family: "Geist", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  margin-top: 14px;
  letter-spacing: -0.01em;
}

/* Services ------------------------------------------------------ */

.services {
  padding: 100px 32px;
  max-width: 1240px;
  margin: 0 auto;
}
.services-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 380px;
  position: relative;
  overflow: hidden;
  transition: transform 250ms ease, box-shadow 250ms ease;
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.service.featured {
  background: var(--ink);
  color: var(--bg);
  border-color: transparent;
}
.service.featured .label,
.service.featured .price,
.service.featured h3 { color: var(--bg); }
.service.featured .desc { color: rgba(243, 241, 236, 0.7); }
.service.featured ul li::before { background: var(--bg); }
.service .label {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
.service .featured-badge {
  position: absolute;
  top: 20px; right: 20px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  background: rgba(243, 241, 236, 0.14);
  color: var(--bg);
  padding: 4px 10px;
  border-radius: 999px;
}
.service h3 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-top: 4px;
}
.service .desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.service ul {
  list-style: none;
  padding: 0;
  margin: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.service ul li {
  position: relative;
  padding-left: 16px;
}
.service ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 6px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
}
.service .price {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.service .price-note {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.service.featured .price-note { color: rgba(243, 241, 236, 0.6); }

/* Now (current focus) ------------------------------------------ */

.now-section {
  padding: 80px 32px 100px;
  max-width: 1240px;
  margin: 0 auto;
}
.now-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.now-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.now-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--hair);
  align-items: baseline;
}
.now-row:last-child { border-bottom: 1px solid var(--hair); }
.now-row .when {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  color: var(--muted);
  text-transform: lowercase;
  letter-spacing: 0.02em;
}
.now-row .what {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.now-row .what .secondary {
  display: block;
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 4px;
}
.now-row .where {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: lowercase;
}
.now-pulse {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #1f8a5b;
  margin-right: 6px;
  animation: pulse 2s infinite;
  vertical-align: middle;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* Letter (photo slot) ------------------------------------------ */

.letter-photo-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 48px;
}
.letter-photo-slot {
  width: 140px;
  height: 140px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--hair);
}
.letter-photo-slot image-slot {
  width: 100%;
  height: 100%;
  display: block;
}
.letter-meta {
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  text-transform: lowercase;
}
.letter-meta .name {
  font-family: "Geist", sans-serif;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  text-transform: none;
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 6px;
}

/* Footer / Contact CTA ----------------------------------------- */

.contact {
  position: relative;
  border-radius: 32px 32px 0 0;
  margin-top: 80px;
  overflow: hidden;
  padding: 120px 48px 56px;
  background: var(--grad-deep, linear-gradient(180deg, #0a1438 0%, #1a2e6e 40%, #2c3e8e 100%));
  color: #f3f1ec;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/></filter><rect width='400' height='400' filter='url(%23n)' opacity='0.35'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.6;
  pointer-events: none;
}
.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(1px 1px at 60% 50%, white, transparent),
    radial-gradient(2px 2px at 80% 20%, white, transparent),
    radial-gradient(1px 1px at 35% 70%, white, transparent),
    radial-gradient(1.5px 1.5px at 75% 80%, white, transparent),
    radial-gradient(1px 1px at 10% 85%, white, transparent),
    radial-gradient(2px 2px at 50% 15%, white, transparent),
    radial-gradient(1px 1px at 90% 60%, white, transparent);
  opacity: 0.5;
  pointer-events: none;
}
.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
}
.contact h2 {
  font-size: clamp(48px, 7vw, 110px);
  text-align: center;
  margin-bottom: 28px;
}
.contact .lede {
  text-align: center;
  color: rgba(243, 241, 236, 0.75);
  margin: 0 auto 40px;
}
.contact .cta-pill { margin: 0 auto; display: flex; width: fit-content; }
.contact .cta-pill { color: var(--ink); background: var(--bg); border-color: transparent; }
.contact .cta-pill .arrow { background: var(--ink); color: var(--bg); }

.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-top: 120px;
  padding-top: 48px;
  border-top: 1px solid rgba(243, 241, 236, 0.12);
}
.footer-cols .brand {
  font-size: 18px;
  color: #f3f1ec;
  margin-bottom: 14px;
}
.footer-cols .tag {
  font-size: 14px;
  color: rgba(243, 241, 236, 0.6);
  max-width: 28ch;
  line-height: 1.5;
}
.footer-col h5 {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  text-transform: lowercase;
  color: rgba(243, 241, 236, 0.5);
  margin: 0 0 16px;
}
.footer-col a {
  display: block;
  font-size: 15px;
  color: rgba(243, 241, 236, 0.85);
  padding: 4px 0;
  transition: color 200ms ease;
}
.footer-col a:hover { color: white; }
.copyline {
  margin-top: 60px;
  display: flex; justify-content: space-between;
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  color: rgba(243, 241, 236, 0.45);
}

/* Scroll reveal ------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1), transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive --------------------------------------------------- */

@media (max-width: 880px) {
  .nav-links { display: none; }
  .intro-grid, .cap-header, .ledger-head, .compare-head, .services-head, .now-grid { grid-template-columns: 1fr; gap: 32px; }
  .intro-grid .divider { display: none; }
  .ledger-grid, .services-grid { grid-template-columns: 1fr 1fr; }
  .toolkit-grid { grid-template-columns: 1fr 1fr; }
  .content-grid { grid-template-columns: repeat(3, 1fr); }
  .hook-row { grid-template-columns: 28px 1fr 100px; }
  .hook-tag { display: none; }
  .cap-pill { justify-self: start; }
  .cap-funnel { justify-self: start; width: 100%; }
  .cta-soft { justify-self: start; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .compare-card { padding: 36px 28px; }
  .bars { gap: 12px; }
  .letter-inner.with-portrait { grid-template-columns: 1fr; gap: 36px; }
  .portrait-col { position: relative; top: 0; }
  .portrait-frame { width: 200px; height: 200px; margin: 0 auto; }
  .portrait-cap { text-align: center; align-items: center; }
  .edu-row { grid-template-columns: 110px 1fr; gap: 16px; }
  .edu-badge { grid-column: 1 / -1; justify-self: start; padding-left: 0; }
  .edu-row:hover { padding-left: 12px; padding-right: 12px; }
}

@media (max-width: 600px) {
  .wrap, .hero, .intro, .cap, .ledger, .compare, .markets, .letter, .services, .now-section { padding-left: 20px; padding-right: 20px; }
  .nav-inner { padding: 0 20px; }
  .ledger-grid, .services-grid { grid-template-columns: 1fr; }
  .now-row { grid-template-columns: 90px 1fr; }
  .now-row .where { grid-column: 1 / -1; padding-left: 0; }
  .markets-row { gap: 40px; }
  .num-card { width: 180px; height: 240px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ------------------------------------------------------------------
   Toolkit v2 — rails with brand logos
   ------------------------------------------------------------------ */

.toolkit2 {
  padding: 100px 32px;
  max-width: 1240px;
  margin: 0 auto;
}

.tk2-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  margin-bottom: 48px;
  max-width: 1240px;
}
.tk2-head-text { max-width: 760px; }
.tk2-head .label { display: block; margin-bottom: 22px; }
.tk2-head .lede { margin-top: 22px; }
.tk2-head-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--muted);
}
.tk2-head-hint-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #d97757;
  box-shadow: 0 0 0 4px rgba(217, 119, 87, 0.16);
  animation: mascot-pulse 1.8s ease-in-out infinite;
}

/* ── Mascot ── */
.mascot {
  position: relative;
  width: 360px;
  height: 440px;
  flex-shrink: 0;
  pointer-events: none;
  z-index: 4;
}
.mascot-bob {
  width: 100%;
  height: 100%;
  animation: mascot-bob 3.8s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.mascot-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.12));
}
.mascot-head {
  transition: transform 0s; /* JS-driven */
}
.mascot-shadow {
  animation: mascot-shadow 3.8s ease-in-out infinite;
  transform-origin: 140px 328px;
}
.mascot-antenna {
  animation: mascot-pulse 1.6s ease-in-out infinite;
  transform-origin: 140px 15px;
  transform-box: fill-box;
}
.mascot.is-reacting .mascot-antenna {
  animation-duration: 0.7s;
  fill: #ef8a4f;
}

/* Eyebrows */
.mascot-brow {
  transform-origin: 50% 50%;
  transform-box: fill-box;
  transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mascot.is-reacting .mascot-brow--l { transform: translateY(-5px) rotate(-6deg); }
.mascot.is-reacting .mascot-brow--r { transform: translateY(-5px) rotate(6deg); }

/* Eyes — periodic blink. Inner group scales; outer keeps bbox stable. */
.mascot-eye {
  transform-origin: 50% 50%;
  transform-box: fill-box;
  animation: mascot-blink 5.4s ease-in-out infinite;
}
.mascot.is-reacting .mascot-eye {
  animation-duration: 4s;
  transform: scale(1.06);
}

/* Mouth states */
.mascot-mouth-smile {
  transition: opacity 200ms ease, transform 200ms ease;
}
.mascot-mouth-o {
  opacity: 0;
  transform-origin: 140px 166px;
  transform-box: fill-box;
  transform: scale(0.2);
  transition: opacity 200ms ease, transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mascot.is-reacting .mascot-mouth-smile { opacity: 0; }
.mascot.is-reacting .mascot-mouth-o { opacity: 1; transform: scale(1); }

/* Arms — lift up when reacting */
.mascot-arm {
  transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: 50% 0%;
  transform-box: fill-box;
}
.mascot.is-reacting .mascot-arm--l { transform: translateY(-10px) rotate(-10deg); }
.mascot.is-reacting .mascot-arm--r { transform: translateY(-10px) rotate(10deg); }

/* Speech bubble */
.mascot-bubble {
  position: absolute;
  top: -10px;
  left: -160px;
  min-width: 168px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 12px 14px 12px 12px;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.32), 0 4px 12px -6px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transform-origin: 100% 80%;
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.mascot-bubble.is-on {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.mascot-bubble::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: 22px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  transform: rotate(45deg);
}
.mascot-bubble-logo {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 9px;
  background: #f7f4ec;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}
.mascot-bubble-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mascot-bubble-text { display: flex; flex-direction: column; gap: 2px; }
.mascot-bubble-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}
.mascot-bubble-freq {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--muted);
}

@keyframes mascot-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes mascot-shadow {
  0%, 100% { transform: scale(1); opacity: 0.18; }
  50%      { transform: scale(0.86); opacity: 0.12; }
}
@keyframes mascot-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
@keyframes mascot-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  94%, 96%      { transform: scaleY(0.06); }
}

@media (prefers-reduced-motion: reduce) {
  .mascot-bob,
  .mascot-antenna,
  .mascot-eye,
  .mascot-shadow,
  .tk2-head-hint-dot { animation: none !important; }
}

.tk2-rails {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tk2-rail {
  display: grid;
  grid-template-columns: minmax(260px, 1.05fr) 2.4fr;
  gap: 36px;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 36px 36px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 280ms ease, box-shadow 280ms ease;
}
.tk2-rail::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='240' height='240' filter='url(%23n)' opacity='0.25'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.35;
  pointer-events: none;
}

/* Accent variants — different vibe per category */
.tk2-rail.tk2-blue {
  background: linear-gradient(135deg, #f4f3ee 0%, #eaeaf3 100%);
}
.tk2-rail.tk2-blue::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(81, 81, 238, 0.16), transparent 65%);
  pointer-events: none;
}

.tk2-rail.tk2-warm {
  background: linear-gradient(135deg, #f1cba8 0%, #e9b89a 50%, #d99a78 100%);
  color: #2b1f14;
  border-color: transparent;
}

.tk2-rail.tk2-indigo {
  background: linear-gradient(135deg, #0a0a1f 0%, #1a1d4c 40%, #2f349f 100%);
  color: #f3f1ec;
  border-color: transparent;
}
.tk2-rail.tk2-indigo::after {
  content: "";
  position: absolute;
  inset: auto -20% -60% auto;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(141, 145, 255, 0.3), transparent 60%);
  pointer-events: none;
}

.tk2-rail.tk2-sand {
  background: #ebe5d4;
  color: #2b251a;
  border-color: transparent;
}

/* Meta column (left side) */
.tk2-rail-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.tk2-meta-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}

.tk2-num {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
  opacity: 0.6;
}

.tk2-cat {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 3px 9px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
}

.tk2-rail.tk2-warm .tk2-num,
.tk2-rail.tk2-warm .tk2-cat { color: #2b1f14; }
.tk2-rail.tk2-warm .tk2-cat { background: rgba(43, 31, 20, 0.12); }

.tk2-rail.tk2-indigo .tk2-num,
.tk2-rail.tk2-indigo .tk2-cat { color: #f3f1ec; }
.tk2-rail.tk2-indigo .tk2-num { opacity: 0.5; }
.tk2-rail.tk2-indigo .tk2-cat { background: rgba(243, 241, 236, 0.12); }

.tk2-rail.tk2-sand .tk2-num,
.tk2-rail.tk2-sand .tk2-cat { color: #2b251a; }
.tk2-rail.tk2-sand .tk2-cat { background: rgba(43, 37, 26, 0.10); }

.tk2-title {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 14ch;
  color: inherit;
}

.tk2-blurb {
  font-size: 14.5px;
  line-height: 1.5;
  max-width: 30ch;
  margin: 0;
  color: var(--muted);
}
.tk2-rail.tk2-warm .tk2-blurb { color: rgba(43, 31, 20, 0.72); }
.tk2-rail.tk2-indigo .tk2-blurb { color: rgba(243, 241, 236, 0.7); }
.tk2-rail.tk2-sand .tk2-blurb { color: rgba(43, 37, 26, 0.7); }

/* Tool tile grid (right side) */
.tk2-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 12px;
  position: relative;
  z-index: 1;
  align-content: start;
}

.tk2-tool {
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  padding: 22px 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  min-height: 128px;
  justify-content: center;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
  position: relative;
  overflow: hidden;
}
.tk2-tool::before {
  /* subtle radial glow on hover */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 50% 0%, rgba(0,0,0,0.04), transparent 70%);
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}
.tk2-tool:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -22px rgba(0, 0, 0, 0.35), 0 4px 12px -6px rgba(0, 0, 0, 0.12);
}
.tk2-tool:hover::before { opacity: 1; }

.tk2-rail.tk2-warm .tk2-tool { background: #fffaf5; border-color: rgba(43, 31, 20, 0.08); }
.tk2-rail.tk2-indigo .tk2-tool { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.10); backdrop-filter: blur(8px); }
.tk2-rail.tk2-indigo .tk2-tool:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.18); }
.tk2-rail.tk2-sand .tk2-tool { background: #faf6ec; border-color: rgba(43, 37, 26, 0.08); }

.tk2-logo {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.tk2-logo svg,
.tk2-logo img { width: 100%; height: 100%; display: block; object-fit: contain; }
/* On the dark AI rail, give transparent-PNG logos a light chip so they stay visible.
   Logos that already have their own opaque tile (Claude) skip this. */
.tk2-rail.tk2-indigo .tk2-logo--chatgpt,
.tk2-rail.tk2-indigo .tk2-logo--gemini {
  background: #ffffff;
  border-radius: 12px;
  padding: 6px;
  box-sizing: border-box;
}

.tk2-tool-name {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.15;
}
.tk2-rail.tk2-indigo .tk2-tool-name { color: #f3f1ec; }
.tk2-rail.tk2-warm .tk2-tool-name { color: #2b1f14; }
.tk2-rail.tk2-sand .tk2-tool-name { color: #2b251a; }

.tk2-tool-freq {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
.tk2-rail.tk2-indigo .tk2-tool-freq { color: rgba(243, 241, 236, 0.55); }
.tk2-rail.tk2-warm .tk2-tool-freq { color: rgba(43, 31, 20, 0.55); }
.tk2-rail.tk2-sand .tk2-tool-freq { color: rgba(43, 37, 26, 0.55); }

@media (max-width: 880px) {
  .toolkit2 { padding: 80px 24px; }
  .tk2-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .mascot {
    width: 200px;
    height: 240px;
    margin: 0 auto;
  }
  .mascot-bubble {
    left: auto;
    right: -8px;
    top: -8px;
  }
  .tk2-rail {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 24px 24px;
  }
  .tk2-tools { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
  .tk2-tool { min-height: 110px; padding: 16px 10px 14px; gap: 12px; }
  .tk2-logo { width: 42px; height: 42px; }
  .tk2-tool-name { font-size: 12px; }
}

/* ------------------------------------------------------------------
   Intro — visual career-arc
   ------------------------------------------------------------------ */

.intro-visual {
  padding: 100px 32px 110px;
  max-width: 1240px;
  margin: 0 auto;
}

.iv-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 56px 56px 40px;
  overflow: hidden;
}

.iv-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(91, 95, 219, 0.07), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(151, 130, 96, 0.06), transparent 60%);
  pointer-events: none;
}

.iv-head {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 8px;
}

.iv-eyebrow {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: lowercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.iv-num {
  background: var(--bg);
  border: 1px solid var(--hair);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.iv-h {
  font-size: clamp(36px, 4.4vw, 64px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.94;
  margin: 0 0 24px;
  color: var(--ink);
}

.iv-p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0 0 28px;
}

.iv-col-right { text-align: right; }
.iv-col-right .iv-p { margin-left: auto; }
.iv-col-right .iv-eyebrow,
.iv-col-right .iv-tag { justify-content: flex-end; }

/* inline metric tag at the bottom of each column */
.iv-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg);
  border: 1px solid var(--hair);
  border-radius: 999px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
}
.iv-tag-k {
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.iv-tag-v {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.iv-tag-spark {
  display: inline-flex;
  width: 60px;
  height: 16px;
  color: var(--muted);
}
.iv-tag.perf .iv-tag-spark { color: var(--accent); }
.iv-tag.perf .iv-tag-v { color: var(--accent); }

/* center arrow between the two columns */
.iv-arrow {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  margin-top: 80px;
}
.iv-arrow svg {
  width: 80px;
  height: 24px;
}
.iv-arrow span {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10.5px;
  text-transform: lowercase;
  letter-spacing: 0.12em;
  opacity: 0.8;
}

/* ── Career arc chart ─────────────────────────────────────────── */
.iv-chart {
  position: relative;
  margin-top: 28px;
  height: 380px;
  color: var(--ink);
}

/* Cards row sits across the top */
.iv-cards-row {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 110px;
  pointer-events: none;
}
.iv-mcard {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 152px;
  max-width: 28%;
  text-align: center;
  pointer-events: auto;
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--hair);
  border-radius: 12px;
  box-shadow: 0 14px 28px -18px rgba(0,0,0,0.22);
}
.iv-chart.in .iv-mcard {
  opacity: 1;
  transform: translate(-50%, 0);
}
.iv-mcard.accent {
  background: var(--ink);
  border-color: transparent;
}
.iv-mcard-year {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: lowercase;
}
.iv-mcard.accent .iv-mcard-year { color: rgba(243,241,236,0.55); }
.iv-mcard-title {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 4px;
  line-height: 1.2;
}
.iv-mcard.accent .iv-mcard-title { color: var(--bg); }
.iv-mcard-sub {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  line-height: 1.35;
}
.iv-mcard.accent .iv-mcard-sub { color: rgba(243,241,236,0.6); }

/* SVG line chart + dots share the plot area */
.iv-plot {
  position: absolute;
  top: 110px;
  bottom: 36px;
  left: 0; right: 0;
}
.iv-chart-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.iv-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 3.4s cubic-bezier(0.5, 0, 0.5, 1) 300ms;
}
.iv-path-fill {
  opacity: 0;
  transition: opacity 1.6s ease 2.6s;
}
.iv-chart.in .iv-path { stroke-dashoffset: 0; }
.iv-chart.in .iv-path-fill { opacity: 1; }

/* Vertical guides from top of plot down to dot — height set inline */
.iv-guide {
  position: absolute;
  top: 0;
  width: 1px;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  background: linear-gradient(to bottom, var(--hair) 0%, var(--hair) 60%, transparent 100%);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.iv-chart.in .iv-guide { transform: translateX(-50%) scaleY(1); }

/* Dots — bottom % is direct fraction of plot area */
.iv-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  border: 2.5px solid var(--paper);
  box-shadow: 0 0 0 1px var(--hair), 0 4px 10px -3px rgba(0,0,0,0.4);
  transform: translate(-50%, 50%) scale(0);
  opacity: 0;
  transition: opacity 400ms ease, transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}
.iv-chart.in .iv-dot { opacity: 1; transform: translate(-50%, 50%) scale(1); }
.iv-chart.in .iv-dot { opacity: 1; }
.iv-dot.accent {
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 0 6px rgba(91, 95, 219, 0.16), 0 6px 14px -4px rgba(91, 95, 219, 0.5);
  animation: ivPulse 2.4s infinite ease-in-out;
}
@keyframes ivPulse {
  0%, 100% { box-shadow: 0 0 0 1px var(--accent), 0 0 0 6px rgba(91, 95, 219, 0.16), 0 6px 14px -4px rgba(91, 95, 219, 0.5); }
  50%      { box-shadow: 0 0 0 1px var(--accent), 0 0 0 12px rgba(91, 95, 219, 0),    0 6px 14px -4px rgba(91, 95, 219, 0.5); }
}

.iv-chart-axis {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-between;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: lowercase;
  padding: 12px 8px 0;
  border-top: 1px solid var(--hair);
}

@media (max-width: 980px) {
  .iv-card { padding: 36px 28px 32px; }
  .iv-head {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 36px;
  }
  .iv-col-right { text-align: left; }
  .iv-col-right .iv-p { margin-left: 0; }
  .iv-col-right .iv-eyebrow,
  .iv-col-right .iv-tag { justify-content: flex-start; }
  .iv-arrow {
    flex-direction: row;
    margin-top: 0;
    gap: 14px;
  }
  .iv-arrow svg { transform: rotate(90deg); width: 40px; height: 16px; }
  .iv-chart { height: 360px; }
  .iv-mcard { width: 120px; padding: 8px 10px; }
  .iv-mcard-title { font-size: 12px; }
}

@media (max-width: 640px) {
  .iv-chart { height: 340px; }
  .iv-cards-row { height: 96px; }
  .iv-plot { top: 96px; }
  .iv-mcard { width: 96px; padding: 6px 8px; }
  .iv-mcard-sub { display: none; }
}

/* ------------------------------------------------------------------
   Hero — editorial split with portrait
   ------------------------------------------------------------------ */

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 72px;
  align-items: center;
  text-align: left;
  padding: 80px 32px 80px;
  max-width: 1320px;
  position: relative;
}

.hero-split::before {
  content: "";
  position: absolute;
  left: 32px; right: 32px;
  top: 28px;
  height: 1px;
  background: var(--hair);
}

.hero-split .hero-eyebrow {
  margin-bottom: 22px;
  margin-top: 8px;
}
.hero-split .hero-eyebrow::before { display: none; }
.hero-split .hero-eyebrow::after {
  width: 80px;
  margin-left: 4px;
}

.hero-headline {
  font-size: clamp(48px, 6.6vw, 104px);
  text-align: left;
  letter-spacing: -0.05em;
  line-height: 0.94;
}

.hero-split .hero-sub {
  margin: 28px 0 36px;
  max-width: 50ch;
  text-align: left;
}

.hero-split .hero-ctas {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.hero-strip {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--hair);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 560px;
}
.hero-strip-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-strip-item .k {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1;
}
.hero-strip-item .v {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.01em;
  text-transform: lowercase;
  line-height: 1.35;
}

/* Portrait column */
.hero-portrait {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  justify-self: end;
  width: 100%;
  max-width: 480px;
}

.hero-portrait-frame {
  position: relative;
  aspect-ratio: 1086 / 1448;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #0d0d10;
  box-shadow:
    0 50px 100px -40px rgba(0, 0, 0, 0.55),
    0 20px 50px -25px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
  isolation: isolate;
}

.hero-portrait-frame::before {
  /* subtle warm vignette to integrate with cream page */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 10%, transparent 55%, rgba(0, 0, 0, 0.25) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.18) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-portrait-frame::after {
  /* fine inner stroke */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  z-index: 3;
  pointer-events: none;
}

.hero-portrait-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  filter: contrast(1.04) saturate(1.02);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-portrait-frame:hover img {
  transform: scale(1.03);
}

/* Floating tag card overlapping the portrait */
.hero-portrait-tag {
  position: absolute;
  left: -22px;
  bottom: 72px;
  background: var(--bg);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 12px 16px 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.3), 0 6px 16px -8px rgba(0, 0, 0, 0.12);
  z-index: 4;
  max-width: 260px;
}
.hero-portrait-tag .dot-live {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #1f8a5b;
  box-shadow: 0 0 0 4px rgba(31, 138, 91, 0.18);
  flex-shrink: 0;
  animation: pulse 2.2s infinite ease-in-out;
}
.hero-portrait-tag .tag-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
}
.hero-portrait-tag .tag-loc {
  margin-top: 4px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.01em;
}

.hero-portrait-meta {
  display: flex;
  justify-content: space-between;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  padding: 0 4px;
}

[data-palette="ink"] .hero-portrait-tag {
  background: var(--paper);
  border-color: var(--hair);
}

@media (max-width: 980px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 56px;
    text-align: center;
    padding-top: 56px;
  }
  .hero-split::before { display: none; }
  .hero-headline { text-align: center; }
  .hero-split .hero-sub { margin-left: auto; margin-right: auto; text-align: center; }
  .hero-split .hero-ctas { justify-content: center; }
  .hero-strip { margin-left: auto; margin-right: auto; }
  .hero-portrait { justify-self: center; max-width: 380px; }
  .hero-portrait-tag { left: 12px; }
}

@media (max-width: 600px) {
  .hero-split { padding: 48px 20px 60px; }
  .hero-strip { grid-template-columns: 1fr 1fr; gap: 18px; }
  .hero-strip-item .k { font-size: 22px; }
  .hero-portrait-tag { left: 8px; bottom: 48px; padding: 10px 14px; }
}

/* ===================================================================
   Toolkit v3 — orbital stage with central mascot
   =================================================================== */
.toolkit3 {
  padding: 80px 32px 72px;
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
}

.tk3-header {
  max-width: 720px;
  margin: 0 auto 20px;
  text-align: center;
}
.tk3-header .h-section { margin-top: 16px; }
.tk3-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 7px 14px 7px 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
}
.tk3-eyebrow .label { margin: 0; font-size: 11px; }
.tk3-eyebrow-divider {
  width: 1px; height: 12px; background: rgba(0, 0, 0, 0.12);
}
.tk3-eyebrow-meta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: lowercase;
}
.tk3-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #d97757;
  box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.18);
  animation: tk3-dot-pulse 1.6s ease-in-out infinite;
}
@keyframes tk3-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.18); }
  50%      { box-shadow: 0 0 0 5px rgba(217, 119, 87, 0.05); }
}

.tk3-sub {
  margin: 18px auto 0;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* Stage — aspect-ratio so positions scale uniformly */
.tk3-stage {
  --cat-color: rgba(0, 0, 0, 0.4);
  position: relative;
  width: 100%;
  max-width: 980px;
  /* extra vertical margin gives the perf/content labels room to sit
     just above/below the stage frame without crashing into the header
     or the speech card. */
  margin: 92px auto 0;
  aspect-ratio: 1240 / 800;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(217, 119, 87, 0.03), transparent 70%),
    linear-gradient(180deg, rgba(0,0,0,0.015), transparent 30%);
  border-radius: 24px;
  isolation: isolate;
}
.tk3-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Beam */
.tk3-beam-line {
  animation: tk3-beam-flow 0.7s linear infinite;
}
@keyframes tk3-beam-flow {
  to { stroke-dashoffset: -14; }
}
.tk3-beam-ring {
  transform-origin: center;
  transform-box: fill-box;
  animation: tk3-ring-pulse 1.6s ease-out infinite;
}
.tk3-beam-ring--2 { animation-delay: 0.4s; }
@keyframes tk3-ring-pulse {
  0%   { transform: scale(0.7); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Tools — positioned absolutely, centered on (left,top) */
.tk3-tool {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 3;
  --cat-color: rgba(0, 0, 0, 0.5);
  --tool-size: 92px;
  font: inherit;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.tk3-tool:focus-visible { outline: none; }
.tk3-tool-disc {
  position: relative;
  width: var(--tool-size);
  height: var(--tool-size);
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    0 14px 30px -16px rgba(0, 0, 0, 0.25),
    0 2px 6px -2px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  display: grid;
  place-items: center;
  transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 260ms ease, opacity 260ms ease, filter 260ms ease;
}
.tk3-tool-disc img {
  width: 62%;
  height: 62%;
  object-fit: contain;
  display: block;
}
.tk3-tool-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--cat-color);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 240ms ease, transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tk3-tool-cap {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--muted);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 220ms ease, transform 220ms ease;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.18);
}
.tk3-tool:hover .tk3-tool-disc,
.tk3-tool:focus-visible .tk3-tool-disc,
.tk3-tool.is-active .tk3-tool-disc {
  transform: translateY(-10px) scale(1.12);
  box-shadow:
    0 22px 40px -16px rgba(0, 0, 0, 0.3),
    0 4px 10px -2px rgba(0, 0, 0, 0.12),
    0 0 0 6px color-mix(in srgb, var(--cat-color) 14%, transparent),
    inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.tk3-tool:hover .tk3-tool-ring,
.tk3-tool.is-active .tk3-tool-ring {
  opacity: 1;
  transform: scale(1);
}
.tk3-tool:hover .tk3-tool-cap,
.tk3-tool.is-active .tk3-tool-cap {
  opacity: 1;
  transform: translateY(0);
}

/* Dim non-active tools slightly when one is hovered */
.tk3-stage.is-hovering .tk3-tool:not(.is-active) .tk3-tool-disc {
  opacity: 0.55;
  filter: saturate(0.6);
  transform: scale(0.95);
}
.tk3-stage.is-hovering .tk3-tool:not(.is-active):hover .tk3-tool-disc {
  opacity: 1;
  filter: none;
}

/* Category labels */
.tk3-cat {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 2;
  pointer-events: none;
  font-family: "Geist", system-ui, sans-serif;
  transition: opacity 220ms ease;
}
.tk3-cat-num {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  opacity: 0.7;
}
.tk3-cat-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-transform: lowercase;
  transition: color 240ms ease;
}
.tk3-cat-blurb {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.tk3-cat.is-active .tk3-cat-name { color: var(--cat-color); }
.tk3-cat.is-active .tk3-cat-num  { opacity: 1; color: var(--cat-color); }

.tk3-cat--tc { transform: translate(-50%, 0); align-items: center; text-align: center; }
.tk3-cat--bc { transform: translate(-50%, -100%); align-items: center; text-align: center; }
.tk3-cat--lm { transform: translate(0, -50%); align-items: flex-start; text-align: left; }
.tk3-cat--rm { transform: translate(-100%, -50%); align-items: flex-end; text-align: right; }

/* perf (top) and content (bottom) sit OUTSIDE the stage frame now
   (tools occupy the top/bottom strip inside). Render those two labels
   as a single compact horizontal line so they fit cleanly above/below. */
.tk3-cat--tc,
.tk3-cat--bc {
  flex-direction: row;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}
.tk3-cat--tc .tk3-cat-blurb,
.tk3-cat--bc .tk3-cat-blurb { display: none; }

.tk3-stage.is-hovering .tk3-cat:not(.is-active) { opacity: 0.35; }

/* Central mascot wrap */
.tk3-mascot-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}
/* Inside the toolkit stage we render the mascot a little smaller so the
   center-column tools (TikTok above, CapCut below) keep a healthy gap
   from the robot's silhouette. Stage is 1240×800, center (620,400);
   a 296×362 mascot leaves ~26px between robot edge and tool edge. */
.tk3-mascot-wrap .mascot {
  width: 296px;
  height: 362px;
}
.tk3-mascot-wrap::before {
  /* soft platform glow under the bot */
  content: "";
  position: absolute;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  width: 260px;
  height: 60px;
  background: radial-gradient(ellipse 60% 50% at 50% 60%, rgba(0,0,0,0.18), transparent 70%);
  filter: blur(6px);
  z-index: -1;
}

/* Info card — sits above the stage, like the robot's persistent speech.
   It's centered, has a little tail pointing down toward the mascot. */
.tk3-card {
  --cat-color: rgba(0, 0, 0, 0.12);
  position: relative;
  max-width: 560px;
  margin: 40px auto 0;
  padding: 20px 24px 22px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 20px;
  box-shadow:
    0 32px 64px -30px rgba(0, 0, 0, 0.32),
    0 6px 18px -8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 280ms ease, border-color 280ms ease;
}
.tk3-card.is-on {
  border-color: color-mix(in srgb, var(--cat-color) 30%, rgba(0,0,0,0.07));
  box-shadow:
    0 36px 70px -28px rgba(0, 0, 0, 0.4),
    0 8px 20px -8px rgba(0, 0, 0, 0.12),
    0 0 0 5px color-mix(in srgb, var(--cat-color) 10%, transparent);
}
.tk3-card::after {
  /* tail pointing down toward stage */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%) rotate(45deg);
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-right: 1px solid rgba(0, 0, 0, 0.07);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  transition: border-color 280ms ease;
}
.tk3-card.is-on::after {
  border-color: color-mix(in srgb, var(--cat-color) 30%, rgba(0,0,0,0.07));
}

.tk3-card-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tk3-card-logo {
  --cat-color: rgba(0, 0, 0, 0.18);
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: #f6f3ea;
  display: grid;
  place-items: center;
  padding: 8px;
  flex-shrink: 0;
  border: 1px solid color-mix(in srgb, var(--cat-color) 30%, transparent);
  transition: background 280ms ease, border-color 280ms ease;
}
.tk3-card-logo img { width: 100%; height: 100%; object-fit: contain; }
.tk3-card-logo--idle {
  background: #f1efe8;
  position: relative;
}
.tk3-card-cursor {
  position: relative;
  width: 16px; height: 16px;
  background: var(--ink);
  clip-path: polygon(0 0, 0 70%, 28% 56%, 50% 100%, 64% 90%, 42% 48%, 80% 38%);
  animation: tk3-cursor-wiggle 2.4s ease-in-out infinite;
}
@keyframes tk3-cursor-wiggle {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(3px, -2px); }
  60%      { transform: translate(-2px, 2px); }
}
.tk3-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tk3-card-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.1;
}
.tk3-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}
.tk3-card-freq { color: var(--muted); }
.tk3-card-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(0,0,0,0.2);
}
.tk3-card-cat { font-weight: 600; }

/* Description — the "robot speaking" line. Quote mark gives it personality. */
.tk3-card-desc {
  margin: 14px 0 0;
  padding-left: 26px;
  position: relative;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
  min-height: 3em;
}
.tk3-card-quote {
  position: absolute;
  left: 0;
  top: -2px;
  font-family: "Geist", system-ui, serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  color: color-mix(in srgb, var(--cat-color, rgba(0,0,0,0.3)) 70%, var(--ink-soft));
  opacity: 0.55;
}
.tk3-card.is-on .tk3-card-quote { opacity: 0.9; }

/* Idle hint — disappears once user interacts */
.tk3-hint {
  position: absolute;
  bottom: -44px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--muted);
  z-index: 4;
  transition: opacity 280ms ease, transform 280ms ease;
  animation: tk3-hint-float 3s ease-in-out infinite;
}
@keyframes tk3-hint-float {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, -4px); }
}
.tk3-hint.is-hidden { opacity: 0; transform: translate(-50%, 8px); pointer-events: none; }

/* Responsive — scale down the mascot and tools on narrow screens */
@media (max-width: 1100px) {
  .tk3-tool { --tool-size: 96px; }
  .tk3-tool-cap { font-size: 10px; }
  .tk3-mascot-wrap .mascot { width: 300px; height: 360px; }
}
@media (max-width: 880px) {
  .toolkit3 { padding: 80px 18px 60px; }
  .tk3-header { text-align: left; }
  .tk3-eyebrow { padding: 6px 12px; }
  .tk3-card { max-width: 100%; padding: 16px 18px 18px; }
  .tk3-card-desc { font-size: 13.5px; padding-left: 22px; }
  .tk3-card-quote { font-size: 30px; }
  .tk3-stage { aspect-ratio: auto; min-height: 720px; }
  .tk3-tool { --tool-size: 78px; }
  .tk3-tool-cap { display: none; }
  .tk3-mascot-wrap .mascot { width: 240px; height: 290px; }
  .tk3-cat-blurb { display: none; }
  .tk3-cat-name { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .tk3-tool-disc,
  .tk3-beam-ring,
  .tk3-beam-line,
  .tk3-hint,
  .tk3-eyebrow-dot,
  .tk3-card-cursor { animation: none !important; }
}
