/* Kevin Shelly — the classic site. One bright, airy look (white canvas, tight display type,
   calm grey copy, an indigo→magenta accent) with a single dark band, in the design language of
   Compass. Every colour is set here. */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f9;
  --ink: #0c0b14;
  --ink-2: #2b2a37;
  --muted: #6a6878;
  --faint: #9a98a8;
  --line: #e9e8ef;
  --line-2: #dedde7;
  --indigo: #4f46e5;
  --indigo-2: #4338ca;
  --violet: #7c3aed;
  --magenta: #d946ef;
  --rose: #f43f5e;
  --amber: #f59e0b;
  --ok: #16a34a;
  --warn: #d97706;
  --night: #07071a;
  --night-2: #12112b;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(16, 12, 40, 0.06), 0 8px 24px rgba(16, 12, 40, 0.06);
  --shadow-lg: 0 2px 6px rgba(16, 12, 40, 0.06), 0 30px 80px rgba(36, 22, 90, 0.18);
  --display: 'Inter Tight', ui-sans-serif, system-ui, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
::selection { background: #e0dcff; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 820px; }
.section { padding-block: 120px; position: relative; }
.section.tight { padding-block: 72px; }
.section.soft { background: var(--bg-soft); }
.center { text-align: center; }
.center .lede, .center .copy { margin-left: auto; margin-right: auto; }
.head { margin-bottom: 56px; }
.head.center { display: grid; justify-items: center; }

/* ── Type ── */
.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
  font-size: clamp(46px, 7.4vw, 92px);
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  font-size: clamp(36px, 5vw, 60px);
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.15;
  font-size: 22px;
  margin: 0;
}
.lede {
  font-size: clamp(18px, 2vw, 20px);
  color: var(--muted);
  line-height: 1.55;
  max-width: 640px;
  margin: 20px 0 0;
  text-wrap: pretty;
}
.copy { color: var(--muted); max-width: 560px; margin: 18px 0 0; text-wrap: pretty; }
.copy strong, .lede strong { color: var(--ink); font-weight: 600; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--indigo-2);
  background: #eef0ff;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow.ok { background: #e7f7ee; color: #15803d; }
.eyebrow.warn { background: #fff3df; color: #b45309; }
.eyebrow.rose { background: #ffe8ec; color: #be123c; }
.eyebrow.dark { background: rgba(255, 255, 255, 0.1); color: #c7d2fe; }
.grad-text {
  background: linear-gradient(100deg, var(--indigo) 0%, var(--violet) 45%, var(--magenta) 75%, var(--rose) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted-text { color: var(--faint); }
.fine { color: var(--muted); font-size: 14px; margin-top: 20px; }
.fine a { color: var(--ink); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
  color: var(--indigo-2);
}
.text-link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.text-link:hover svg { transform: translateX(3px); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 6px 18px rgba(12, 11, 20, 0.18); }
.btn-dark:hover { box-shadow: 0 10px 26px rgba(12, 11, 20, 0.24); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-light:hover { border-color: #c9c7d6; }
.btn-ghost { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }
.btn-white { background: #fff; color: var(--ink); }
.btn svg { width: 17px; height: 17px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.center .btn-row, .btn-row.center { justify-content: center; }
@media (hover: none) { .btn:hover { transform: none; } }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
  padding-top: env(safe-area-inset-top, 0px);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}
.mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(145deg, #5b52f0, #4338ca);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 6px 16px rgba(79, 70, 229, 0.35);
  flex: none;
}
.mark svg { width: 60%; height: 60%; }
.mark.lg { width: 64px; height: 64px; border-radius: 18px; }
.mark.xl { width: 84px; height: 84px; border-radius: 24px; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-links a[aria-current] { font-weight: 600; }
.nav-cta { margin-left: auto; display: flex; gap: 10px; }
.nav-cta .btn { height: 40px; padding: 0 18px; font-size: 14.5px; }
.mmenu { display: none; position: relative; margin-left: auto; }
.mmenu summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #fff;
  cursor: pointer;
}
.mmenu summary::-webkit-details-marker { display: none; }
.mmenu summary svg { width: 20px; height: 20px; }
.mmenu-panel {
  position: absolute;
  right: 0;
  top: 52px;
  width: min(320px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: grid;
  gap: 2px;
}
.mmenu-panel a {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 550;
}
.mmenu-panel a:hover { background: var(--bg-soft); }
.mmenu-panel .btn { justify-content: center; margin-top: 6px; color: #fff; }
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .mmenu { display: block; }
}

/* ── Hero ── */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 72px 0 96px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.45; animation: float 16s ease-in-out infinite alternate; }
.b1 { width: 520px; height: 520px; left: -140px; top: 120px; background: #c7d2fe; }
.b2 { width: 460px; height: 460px; right: -120px; top: 40px; background: #f5d0fe; animation-delay: -5s; }
.b3 { width: 420px; height: 420px; left: 38%; top: 520px; background: #fde68a; opacity: 0.35; animation-delay: -9s; }
@keyframes float { to { transform: translate(40px, -30px) scale(1.08); } }
.grid-fade {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 20%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 20%, #000 20%, transparent 70%);
  opacity: 0.6;
}
.hero-inner { display: grid; justify-items: center; text-align: center; }
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 550;
  background: #fff;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.hero-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px #dcfce7; margin-left: 6px; }
.hero-pill svg { width: 15px; height: 15px; color: var(--muted); }
.hero-mark { display: flex; justify-content: center; margin: 32px 0 24px; animation: rise 0.8s 0.08s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.hero-mark .mark { animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-3deg); } }
.hero .display { animation: rise 0.9s 0.14s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.hero .lede { animation: rise 0.9s 0.22s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; margin-left: auto; margin-right: auto; }
.hero .btn-row { animation: rise 0.9s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; justify-content: center; }
.hero .hero-stage { animation: rise 1s 0.42s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.rot { display: inline-block; color: var(--violet); font-weight: 650; }
.rot span { display: inline-block; animation: word 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes word { from { opacity: 0; transform: translateY(60%); } }
.hero-stage { width: 100%; margin-top: 64px; }
.hero.left .hero-inner { justify-items: start; text-align: left; }
.hero.left .lede { margin-left: 0; }
.hero.left .btn-row { justify-content: flex-start; }

/* ── Signature: a product window inside a soft, moving gradient frame ── */
.frame { position: relative; border-radius: 30px; padding: clamp(14px, 3vw, 40px); overflow: hidden; isolation: isolate; }
.frame::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 80% at 10% 100%, var(--amber) 0%, transparent 60%),
    radial-gradient(55% 75% at 90% 100%, var(--rose) 0%, transparent 60%),
    radial-gradient(70% 90% at 50% 0%, var(--violet) 0%, transparent 65%),
    linear-gradient(135deg, var(--indigo), var(--magenta));
  filter: saturate(1.05);
  animation: drift 18s ease-in-out infinite alternate;
  background-size: 140% 140%;
}
@keyframes drift { 0% { background-position: 0% 0%; } 100% { background-position: 100% 100%; } }
.frame-soft::before { opacity: 0.85; }
.frame-pale::before { opacity: 0.32; }
.window {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfbfd;
  font-size: 13px;
  color: var(--muted);
}
.win-dots { display: flex; gap: 6px; }
.win-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e3e2ea; }
.win-title { font-weight: 600; color: var(--ink-2); }
.win-bar .chip { margin-left: auto; }
.win-body { padding: 22px; }

/* ── Dashboard (hero window) ── */
.dash { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 380px; }
.dash-side { border-right: 1px solid var(--line); padding: 16px 12px; background: #fcfcfe; display: grid; align-content: start; gap: 4px; }
.dash-side .who { display: flex; gap: 10px; align-items: center; padding: 6px 8px 14px; }
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  background: linear-gradient(135deg, var(--indigo), var(--magenta));
  flex: none;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.who b { display: block; font-size: 14px; line-height: 1.2; }
.who small { color: var(--muted); font-size: 12px; }
.side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 550;
  color: var(--ink-2);
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.side-item i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.side-item .v { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 600; }
.side-item[aria-selected='true'] { background: #eef0ff; color: var(--indigo-2); }
.side-item:hover { background: var(--bg-soft); }
.dash-main { padding: 22px 24px; display: grid; gap: 18px; align-content: start; }
.dash-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dash-top .k { font-size: 13px; color: var(--muted); font-weight: 550; }
.dash-big { font-family: var(--display); font-weight: 700; font-size: 44px; letter-spacing: -0.04em; line-height: 1; margin-top: 6px; }
.dash-big small { font-size: 18px; color: var(--muted); font-weight: 600; letter-spacing: -0.01em; }
.dash-chart { height: 170px; position: relative; }
.dash-chart svg { width: 100%; height: 100%; overflow: visible; }
.dash-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.tile .k { font-size: 12px; color: var(--muted); font-weight: 550; }
.tile .v { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.03em; margin-top: 2px; }
.dash-panel { display: none; }
.dash-panel.on { display: grid; gap: 18px; animation: fadein 0.35s ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }
.line-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s 0.2s cubic-bezier(0.6, 0, 0.2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ── Chips ── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: #eef0ff;
  color: var(--indigo-2);
  white-space: nowrap;
}
.chip svg { width: 14px; height: 14px; }
.chip.ok { background: #e7f7ee; color: #15803d; }
.chip.warn { background: #fff3df; color: #b45309; }
.chip.ai { background: #f3edff; color: #6d28d9; }
.chip.gray { background: #f1f1f5; color: #4b4a5c; }
.chip.rose { background: #ffe8ec; color: #be123c; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Layout helpers ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
.split.top { align-items: start; }
.split.reverse > :first-child { order: 2; }
.sticky { position: sticky; top: 100px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 28px; }
.card.flat { box-shadow: none; }
.feature { display: flex; flex-direction: column; gap: 8px; }
.feature .ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef0ff;
  color: var(--indigo-2);
  margin-bottom: 6px;
}
.feature .ico svg { width: 20px; height: 20px; }
.feature p { color: var(--muted); margin: 0; font-size: 16px; }

/* ── Stat strip ── */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 28px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .v { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4vw, 46px); letter-spacing: -0.045em; line-height: 1; }
.stat .k { font-weight: 600; margin-top: 10px; font-size: 15px; }
.stat .s { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* ── Work cards (case studies) ── */
.work { display: grid; gap: 28px; }
.work-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease;
}
a.work-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.work-copy { padding: clamp(28px, 4vw, 48px); display: grid; align-content: start; gap: 6px; }
.work-copy .h2 { font-size: clamp(32px, 3.6vw, 46px); }
.work-copy .tag { color: var(--muted); font-weight: 550; font-size: 14px; }
.work-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin-top: 26px; }
.work-kpis .v { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -0.04em; line-height: 1.05; }
.work-kpis .k { color: var(--muted); font-size: 14px; }
.work-visual { position: relative; display: grid; place-items: center; padding: clamp(20px, 3vw, 36px); min-height: 320px; }
.work-visual .window { width: 100%; }
.work-card .text-link { margin-top: 26px; }

/* ── Mini chart ── */
.mini { display: grid; gap: 12px; }
.mini-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mini-head .k { font-size: 13px; color: var(--muted); font-weight: 550; }
.mini-head .v { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.035em; }
.mini svg { width: 100%; height: 140px; overflow: visible; }
.mini .axis { display: flex; justify-content: space-between; color: var(--faint); font-size: 11.5px; font-weight: 550; }

/* ── Bars (before / after) ── */
.bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 70px; gap: 14px; align-items: center; font-size: 14.5px; }
.bar-row .n { color: var(--ink-2); font-weight: 550; }
.bar-track { height: 10px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: #cfcde0; width: 0; transition: width 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.bar-fill.hi { background: linear-gradient(90deg, var(--indigo), var(--magenta)); }
.bar-row .val { text-align: right; font-weight: 700; font-family: var(--display); letter-spacing: -0.02em; }

/* ── Tabs (story) ── */
.tabs { display: grid; gap: 6px; }
.tab {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.tab svg { width: 20px; height: 20px; color: var(--muted); margin-top: 3px; }
.tab b { font-family: var(--display); font-size: 19px; letter-spacing: -0.02em; font-weight: 650; }
.tab small { grid-column: 2; color: var(--muted); font-size: 14.5px; display: none; }
.tab[aria-selected='true'] { background: var(--bg-soft); border-color: var(--line); }
.tab[aria-selected='true'] small { display: block; }
.tab[aria-selected='true'] svg { color: var(--indigo); }
.tab:hover { background: var(--bg-soft); }
.panel { display: none; }
.panel.on { display: block; animation: fadein 0.4s ease both; }

/* ── Metric cards with methodology ── */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metric { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: grid; align-content: start; gap: 4px; }
.metric .v { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -0.045em; line-height: 1; }
.metric .k { font-weight: 600; margin-top: 8px; font-size: 15px; }
.metric .s { color: var(--muted); font-size: 13.5px; }
.metric details { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.metric summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--indigo-2); list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.metric summary::-webkit-details-marker { display: none; }
.metric summary::before { content: '+'; font-weight: 700; }
.metric details[open] summary::before { content: '−'; }
.metric dl { margin: 10px 0 0; display: grid; gap: 6px; font-size: 13.5px; }
.metric dt { font-weight: 600; color: var(--ink-2); }
.metric dd { margin: 0 0 4px; color: var(--muted); }

/* ── Case hero ── */
.case-hero { padding: 64px 0 88px; }
.case-hero .display { font-size: clamp(42px, 6.2vw, 80px); }
.meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 40px; }
.meta-grid div { padding: 18px 18px 0 0; }
.meta-grid span { display: block; font-size: 13px; color: var(--muted); font-weight: 550; }
.meta-grid b { font-weight: 600; font-size: 15px; }
.updated { color: var(--faint); font-size: 13px; margin-top: 18px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* In-page section nav for long pages */
.subnav { position: sticky; top: 68px; z-index: 40; background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.subnav .container { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; height: 52px; align-items: center; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a { flex: none; text-decoration: none; font-size: 14px; font-weight: 550; color: var(--muted); padding: 7px 12px; border-radius: 999px; }
.subnav a:hover { color: var(--ink); }
.subnav a.on { background: var(--ink); color: #fff; }

/* ── Prose / context ── */
.prose { font-size: 18px; color: var(--ink-2); line-height: 1.7; }
.prose p { margin: 0 0 18px; }
.prose strong { color: var(--ink); }
.quote {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
}
.quote-cite { margin-top: 16px; color: var(--muted); font-size: 15px; display: flex; align-items: center; gap: 10px; }

/* ── Findings + funnel ── */
.finding { padding: 26px; display: grid; gap: 10px; align-content: start; }
.finding .lab { font-size: 13px; font-weight: 600; color: #be123c; }
.finding p { margin: 0; color: var(--ink-2); font-size: 16px; }
.finding .m { margin-top: 6px; font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line-2); padding-top: 10px; }
.funnel { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.fstage { border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px; background: #fff; display: grid; gap: 10px; align-content: start; }
.fstage b { font-size: 14.5px; }
.fstage .bar { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--indigo), var(--violet)); }
.fstage.broken .bar { background: repeating-linear-gradient(90deg, #fda4af 0 8px, #fff1f2 8px 12px); }
.fstage small { font-size: 12.5px; color: var(--muted); }
.fstage.broken small { color: #be123c; font-weight: 550; }

/* ── Steps (operating system) ── */
.steps { display: grid; gap: 14px; counter-reset: step; }
.step { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 26px; }
.step .num {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  color: #fff;
  background: linear-gradient(145deg, #5b52f0, #7c3aed);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.28);
}
.step p { margin: 8px 0 0; color: var(--muted); }
.step .out { margin-top: 14px; font-size: 14px; color: var(--ink-2); font-weight: 550; display: flex; gap: 8px; align-items: flex-start; }
.step .out svg { width: 16px; height: 16px; color: var(--indigo); flex: none; margin-top: 3px; }
.step .chips { margin-top: 14px; }

/* ── Timeline ── */
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--indigo), var(--magenta)); border-radius: 2px; opacity: 0.35; }
.tl { position: relative; padding: 0 0 40px 48px; }
.tl:last-child { padding-bottom: 0; }
.tl::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--indigo);
  box-shadow: 0 0 0 5px #eef0ff;
}
.tl .when { font-size: 13px; font-weight: 600; color: var(--indigo-2); }
.tl .h3 { margin-top: 4px; }
.tl p { color: var(--muted); margin: 10px 0 0; }
.tl .chip { margin-top: 14px; white-space: normal; line-height: 1.4; border-radius: 10px; padding: 6px 10px; }

/* ── Failure callout ── */
.fail { border: 1px solid #fed7aa; background: linear-gradient(180deg, #fffaf3, #fff); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); }
.fail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.fail-grid b { display: block; font-size: 13px; font-weight: 600; color: #b45309; margin-bottom: 6px; }
.fail-grid p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.takeaway { margin-top: 28px; padding: 18px 20px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 16px; color: var(--ink-2); }
.takeaway strong { color: var(--ink); }

/* ── Testimonials ── */
.testi { padding: 30px; display: grid; gap: 18px; align-content: space-between; }
.testi blockquote { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.testi .who { display: flex; gap: 12px; align-items: center; }
.testi .who b { font-size: 15px; }
.testi .who small { display: block; color: var(--muted); font-size: 13.5px; }

/* ── Learnings ── */
.learn { padding: 30px; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; }
.learn .n { font-family: var(--display); font-weight: 700; font-size: 40px; letter-spacing: -0.05em; line-height: 1; }
.learn p { color: var(--muted); margin: 10px 0 0; }
.learn .principle { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #f7f6ff; color: var(--ink-2); font-size: 15px; border: 1px solid #e7e4ff; }

/* ── 90-day plan ── */
.plan { padding: 28px; display: grid; gap: 14px; align-content: start; }
.plan ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; color: var(--ink-2); font-size: 15.5px; }
.plan li svg { width: 18px; height: 18px; color: var(--ok); margin-top: 3px; }

/* ── Proof ── */
.proof-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.ptab { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 14.5px; font-weight: 550; cursor: pointer; color: var(--ink-2); }
.ptab[aria-selected='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }
.proof-card { padding: 20px; display: grid; gap: 8px; align-content: start; }
.proof-card .ph { height: 120px; border-radius: 10px; background: repeating-linear-gradient(135deg, #f6f6f9 0 10px, #fbfbfd 10px 20px); border: 1px dashed var(--line-2); display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 12.5px; padding: 10px; margin-bottom: 6px; }
.proof-card .ph span { font-size: 26px; display: block; }
.proof-card b { font-size: 15px; line-height: 1.35; }
.proof-card small { color: var(--muted); font-size: 13px; }
.note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ── Dark band ── */
.dark {
  background: radial-gradient(80% 60% at 50% 0%, #241c6b 0%, transparent 70%), var(--night);
  color: #fff;
}
.dark .h2, .dark .h3 { color: #fff; }
.dark .lede, .dark .copy, .dark p { color: #b4b1d6; }
.dark .card { background: var(--night-2); border-color: rgba(255, 255, 255, 0.08); box-shadow: none; }
.dark .step .num { box-shadow: 0 8px 26px rgba(124, 58, 237, 0.45); }
.dark .chip.gray { background: rgba(255, 255, 255, 0.08); color: #d6d3f5; }
.dark .step .out { color: #e0ddff; }
.dark .step .out svg { color: #a5b4fc; }

/* ── FAQ ── */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* ── CTA ── */
.cta { display: grid; justify-items: center; gap: 20px; text-align: center; padding: clamp(48px, 8vw, 96px) 24px; color: #fff; }
.cta .h2 { max-width: 760px; color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.85); max-width: 600px; margin: 0; font-size: 18px; }
.cta .btn-row { margin-top: 6px; justify-content: center; }
.cta .mark { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.14), 0 16px 40px rgba(20, 10, 60, 0.35); }
.cta .fine { color: rgba(255, 255, 255, 0.75); margin: 0; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--line); padding: 64px 0 48px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand p { color: var(--muted); font-size: 15px; max-width: 320px; }
.footer-h { font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer ul a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer ul a:hover { color: var(--ink); }
.footer-fine { margin-top: 48px; color: var(--faint); font-size: 13.5px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ── Phone action bar ── */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 40px rgba(20, 10, 60, 0.18);
    translate: 0 calc(100% + 24px);
    opacity: 0;
    transition: translate 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
  }
  .mobile-cta.on { translate: 0 0; opacity: 1; }
  .mobile-cta .btn { height: 46px; justify-content: center; padding: 0 12px; }
}

/* ── Reveal ── */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }

/* ── Articles ── */
.article-hero { padding: 56px 0 40px; }
.article-hero .display { font-size: clamp(38px, 5.4vw, 66px); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.article-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
.toc { position: sticky; top: 100px; display: grid; gap: 2px; font-size: 14px; }
.toc b { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.toc a { text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 8px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); background: var(--bg-soft); }
.toc a.on { color: var(--indigo-2); border-left-color: var(--indigo); background: #f7f6ff; }
.article { max-width: 720px; }
.article h2 { font-family: var(--display); font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.035em; line-height: 1.1; margin: 56px 0 16px; }
.article p { font-size: 18px; line-height: 1.75; color: var(--ink-2); margin: 0 0 18px; }
.article ul { padding-left: 20px; margin: 0 0 18px; }
.article li { font-size: 18px; line-height: 1.7; color: var(--ink-2); margin-bottom: 8px; }
.article blockquote { margin: 28px 0; padding: 6px 0 6px 22px; border-left: 3px solid var(--indigo); font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.3; color: var(--ink); }
.callouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 8px 0 8px; }
.callout { padding: 22px; }
.callout .k { font-size: 13px; font-weight: 600; color: var(--indigo-2); margin-bottom: 8px; }
.callout p, .callout li { font-size: 15.5px !important; line-height: 1.6 !important; margin: 0 !important; color: var(--ink-2); }
.callout ul { padding-left: 18px; margin: 0; display: grid; gap: 6px; }
.checklist { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 16px !important; margin: 0 !important; }
.checklist svg { width: 20px; height: 20px; color: var(--ok); margin-top: 3px; }

/* Blog index */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post { padding: 26px; display: grid; gap: 10px; align-content: start; text-decoration: none; transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease; }
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post .h3 { font-size: 21px; }
.post p { margin: 0; color: var(--muted); font-size: 15.5px; }
.post .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--faint); font-size: 13px; font-weight: 550; margin-top: 6px; }
.post.featured { grid-column: span 2; padding: 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); }
.post.featured .in { padding: 34px; display: grid; gap: 12px; align-content: center; }
.post.featured .h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.035em; }
.post.featured .art { min-height: 260px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }

/* Photo */
.portrait { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-soft); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; gap: 10px; margin-top: 18px; }
.facts div { display: flex; gap: 12px; align-items: center; font-size: 15.5px; color: var(--ink-2); }
.facts svg { width: 18px; height: 18px; color: var(--indigo); flex: none; }

/* Island teaser */
.island { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; display: grid; align-items: end; color: #fff; text-decoration: none; isolation: isolate; box-shadow: var(--shadow-lg); }
.island img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.island:hover img { transform: scale(1.04); }
.island::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(7, 7, 26, 0.82)); }
.island .in { padding: clamp(26px, 4vw, 48px); display: grid; gap: 10px; max-width: 640px; }
.island .h2 { color: #fff; font-size: clamp(30px, 4vw, 48px); }
.island p { margin: 0; color: rgba(255, 255, 255, 0.85); }

/* ── Case pages ── */
.case-hero .lede { max-width: 820px; }
.hero-metrics { margin-top: 48px; }
.ctx-list { display: grid; gap: 48px; }
.ctx .h3 { font-size: 24px; margin-bottom: 14px; }
.quote-card { margin-top: 8px; background: linear-gradient(180deg, #faf9ff, #fff); }
.results-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: stretch; }
.results-grid.one { grid-template-columns: minmax(0, 1fr); }
.results-grid > .card { display: grid; align-content: start; gap: 18px; }
.mini-head .v small { font-size: 15px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.ba-list { display: grid; }
.ba { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.ba:first-child { border-top: 0; }
.ba .n { color: var(--ink-2); font-weight: 550; font-size: 15px; }
.ba .b { color: var(--faint); font-family: var(--display); font-weight: 600; font-size: 18px; text-decoration: line-through; text-decoration-color: #d4d2df; }
.ba svg { width: 18px; height: 18px; color: var(--violet); }
.ba .a { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; text-align: right; }
.notes { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 0 22px; }
.notes summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; font-size: 15px; display: flex; gap: 10px; align-items: center; }
.notes summary::-webkit-details-marker { display: none; }
.notes summary svg { width: 18px; height: 18px; color: var(--indigo); }
.notes p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.proof-card .pi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #eef0ff; color: var(--indigo-2); margin-bottom: 6px; }
.proof-card .pi svg { width: 18px; height: 18px; }
.avatar.sm { width: 40px; height: 40px; background: #eef0ff; color: var(--indigo-2); }
.avatar.sm svg { width: 18px; height: 18px; }
.avatar.xl { width: 72px; height: 72px; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18); }
.testi .chip { justify-self: start; white-space: normal; line-height: 1.4; }
.learn-list { display: grid; gap: 16px; max-width: 920px; margin: 0 auto; }
.rel { text-decoration: none; transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease; }
.rel:hover, .work-card:hover { box-shadow: var(--shadow-lg); }
.rel:hover { transform: translateY(-3px); }
.rel .k, .feature .k { font-size: 13px; font-weight: 600; color: var(--muted); }
.rel .text-link { margin-top: 8px; }
.next { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: center; text-align: center; }
.next span { color: var(--muted); font-size: 14px; font-weight: 550; }
.next a { font-family: var(--display); font-weight: 650; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.next a svg { width: 18px; height: 18px; color: var(--violet); transition: transform 0.2s ease; }
.next a:hover svg { transform: translateX(3px); }
.dark .feature .ico { background: rgba(255, 255, 255, 0.08); color: #c7d2fe; font-family: var(--display); font-weight: 700; font-size: 15px; }

/* ── About ── */
.about-hero .split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.about-hero .lede { margin-left: 0; }
.about-hero .btn-row { justify-content: flex-start; }
.portrait-frame { padding: clamp(12px, 2vw, 22px); animation: rise 1s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.portrait-frame .portrait { border-radius: 18px; box-shadow: var(--shadow-lg); }
.belief { display: grid; gap: 8px; align-content: start; }
.belief .n, .stat-card .v { font-family: var(--display); font-weight: 700; font-size: 34px; letter-spacing: -0.05em; line-height: 1; margin-bottom: 8px; }
.stat-card .v { font-size: 52px; }
.belief p { margin: 0; color: var(--muted); font-size: 16px; }

/* ── Writing ── */
.chip-btn { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 14.5px; font-weight: 550; cursor: pointer; color: var(--ink-2); transition: background-color 0.2s ease, color 0.2s ease; }
.chip-btn:hover { border-color: var(--ink); }
.chip-btn[aria-pressed='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }
.post[hidden] { display: none !important; }
.post .text-link { margin-top: 6px; }
.post.featured .art { position: relative; overflow: hidden; display: grid; place-items: center; padding: 34px; background: linear-gradient(135deg, var(--indigo), var(--violet) 45%, var(--magenta)); }
.post.featured .art::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 70% at 15% 100%, rgba(245, 158, 11, 0.7), transparent 60%), radial-gradient(50% 60% at 95% 0%, rgba(244, 63, 94, 0.55), transparent 60%); }
.art-q { position: relative; display: grid; gap: 18px; justify-items: start; }
.art-q p { margin: 0; color: #fff; font-family: var(--display); font-weight: 650; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.03em; line-height: 1.2; text-wrap: balance; }
.art-q .mark { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.16); }
.byline { display: flex; gap: 12px; align-items: center; margin-top: 28px; }
.byline .avatar { width: 40px; height: 40px; }
.byline b { display: block; font-size: 15px; line-height: 1.2; }
.byline small { color: var(--muted); font-size: 13.5px; }
.article-hero .hero-inner { margin-left: auto; margin-right: auto; }
.article section { scroll-margin-top: 100px; }
.article .kicker { display: block; margin-top: 56px; font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--violet); letter-spacing: 0.02em; }
.article .kicker + h2 { margin-top: 6px; }
.art-note { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; padding: 16px 18px; border-radius: 14px; background: #f7f6ff; border: 1px solid #e7e4ff; margin: 8px 0 18px; }
.art-note svg { width: 18px; height: 18px; color: var(--violet); margin-top: 4px; }
.art-note p { margin: 0 !important; font-size: 16px !important; line-height: 1.6 !important; }
.callout.wrap { margin-top: 28px; }
.toc-cta { margin-top: 18px; display: inline-flex !important; gap: 6px; align-items: center; color: var(--ink) !important; font-weight: 600; }
.toc-cta svg { width: 15px; height: 15px; }

/* ── Responsive ── */
@media (max-width: 1000px) {
  .metrics, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .funnel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .section { padding-block: 80px; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split.reverse > :first-child { order: 0; }
  .sticky { position: static; }
  .work-card { grid-template-columns: minmax(0, 1fr); }
  .work-visual { min-height: 0; padding-top: 0; }
  .dash { grid-template-columns: minmax(0, 1fr); }
  .dash-side { border-right: 0; border-bottom: 1px solid var(--line); grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding: 10px; }
  .dash-side .who { display: none; }
  .meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fail-grid { grid-template-columns: minmax(0, 1fr); }
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .post.featured { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .callouts { grid-template-columns: minmax(0, 1fr); }
  .results-grid, .about-hero .split { grid-template-columns: minmax(0, 1fr); }
  .about-hero .portrait-frame { max-width: 420px; }
}
@media (max-width: 760px) {
  .footer { padding: 48px 0 calc(110px + env(safe-area-inset-bottom, 0px)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer ul { gap: 0; }
  .footer ul a { display: block; padding: 8px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding-block: 72px; }
  .section.tight { padding-block: 56px; }
  .head { margin-bottom: 40px; }
  .lede { font-size: 17px; }
  .btn { height: 50px; padding: 0 24px; }
  .btn-row { flex-direction: column; align-items: stretch; max-width: 380px; }
  .center .btn-row, .hero .btn-row { margin-left: auto; margin-right: auto; width: 100%; }
  .btn-row .btn { justify-content: center; }
  .metrics, .grid-4, .posts { grid-template-columns: minmax(0, 1fr); }
  .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar-row { grid-template-columns: 110px minmax(0, 1fr) 56px; font-size: 13.5px; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 22px; }
  .learn { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 24px; }
  .hero { padding: 48px 0 72px; }
  .case-hero { padding: 40px 0 64px; }
  input, select, textarea { font-size: 16px !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .line-draw { stroke-dashoffset: 0; }
}
