:root {
  --bg: #FAFBFD;
  --bg-elev: #FFFFFF;
  --bg-elev-2: #F2F5FA;
  --bg-tinted: #EEF2FB;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.16);
  --fg: #0E1A2E;
  --fg-dim: rgba(14, 26, 46, 0.72);
  --fg-mute: rgba(14, 26, 46, 0.55);
  --fg-faint: rgba(14, 26, 46, 0.32);
  --accent: #4F6BFF;
  --accent-bright: #3B53E0;
  --accent-soft: #E5EBFF;
  --accent-glow: rgba(79, 107, 255, 0.18);
  --danger: #E5484D;
  --success: #18794E;
  --container: 1240px;
  --gutter-x: clamp(20px, 4vw, 56px);
  --section-y: clamp(72px, 8vw, 128px);
  --radius: 4px;
  --radius-lg: 10px;
  font-feature-settings: "ss01", "cv11";
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter Tight", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(79, 107, 255, 0.06), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(79, 107, 255, 0.03), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter-x);
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(250, 251, 253, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: 15.5px;
  color: var(--fg);
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-name { letter-spacing: -0.01em; flex-shrink: 0; }
.brand-divider {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--line-strong);
  transform: translateY(2px);
  margin: 0 2px;
  flex-shrink: 0;
}
.brand-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--fg-mute);
  font-weight: 500;
  text-transform: uppercase;
  flex-shrink: 0;
}

.nav-links {
  display: none;
  gap: 26px;
  font-size: 14px;
  color: var(--fg-dim);
  white-space: nowrap;
}
.nav-links a {
  font-weight: 500;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--accent); }
@media (min-width: 880px) { .nav-links { display: inline-flex; } }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 1px 0 rgba(15,23,42,0.08), 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  box-shadow: 0 1px 0 rgba(15,23,42,0.08), 0 0 0 5px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-elev);
  color: var(--fg);
  border-color: var(--line-strong);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm { padding: 9px 14px; font-size: 13px; }

/* ============ SECTION SCAFFOLD ============ */
section { padding-block: var(--section-y); position: relative; }
section + section { border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

h1, h2, h3, h4 {
  font-family: "Inter Tight", sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 6.4vw, 84px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 600; letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; }

p { margin: 0; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--fg-dim); line-height: 1.55; max-width: 64ch; }
.accent-text { color: var(--accent); }

/* ============ HERO ============ */
.hero {
  padding-top: clamp(72px, 8vw, 120px);
  padding-bottom: clamp(72px, 8vw, 120px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15,23,42,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
  position: relative;
}
@media (min-width: 1080px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
}
.hero-descriptor {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: var(--accent-soft);
  border-radius: 999px;
}
.hero-descriptor .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.hero-descriptor .pulse::after {
  content: "";
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}
.hero h1 { margin-bottom: 24px; }
.hero h1 .accent { color: var(--accent); }
.hero h1 .days {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0 0.18em 0.04em;
  border-radius: 0.12em;
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1;
  vertical-align: baseline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero-sub { font-size: clamp(16px, 1.3vw, 18.5px); color: var(--fg-dim); max-width: 56ch; margin-bottom: 32px; line-height: 1.6; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  color: var(--fg-mute);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero-meta .dot { color: var(--accent); }

/* ============ RANK TRACKER PANEL ============ */
.rank-panel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  overflow: hidden;
  box-shadow: 0 24px 48px -24px rgba(15,23,42,0.18), 0 1px 0 rgba(15,23,42,0.04);
  position: relative;
}
.rank-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev-2);
}
.rank-header .dots { display: inline-flex; gap: 6px; }
.rank-header .dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line-strong);
  display: inline-block;
}
.rank-header .label { color: var(--fg-mute); font-size: 11px; letter-spacing: 0.05em; }
.rank-body { padding: 16px 18px 8px; }
.rank-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12.5px;
}
.rank-row:last-child { border-bottom: 0; }
.rank-row .kw { color: var(--fg); }
.rank-row .kw .pre { color: var(--fg-faint); margin-right: 6px; }
.rank-row .pos {
  display: inline-flex; align-items: center; gap: 6px;
  font-variant-numeric: tabular-nums;
  color: var(--fg-mute);
}
.rank-row .pos.now { color: var(--accent); font-weight: 600; }
.rank-row .delta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px;
  color: var(--success);
  font-weight: 600;
  background: rgba(24, 121, 78, 0.08);
  padding: 3px 8px;
  border-radius: 999px;
}
.rank-row .delta .arr { font-size: 10px; }
.rank-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-elev-2);
  font-size: 11px;
  color: var(--fg-mute);
}
.rank-footer .sov b { color: var(--accent); font-weight: 600; }

/* ============ PROBLEM / OPINION BLOCK ============ */
.problem .container { max-width: 980px; }
.problem-text {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--fg);
  font-weight: 400;
}
.problem-text p + p { margin-top: 1.1em; }
.problem-text .dim { color: var(--fg-mute); }
.problem-text .strike { color: var(--fg-faint); position: relative; }
.problem-text .strike::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: var(--fg-faint);
}
.problem-text em.hit {
  font-style: normal;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
  font-weight: 500;
}
.problem-text .small {
  font-size: clamp(15px, 1.1vw, 17px);
  margin-top: 1.4em;
  max-width: 60ch;
  line-height: 1.6;
  color: var(--fg-dim);
}
.problem-text .callout {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 1.2em 0;
}
.problem-text .callout .lt-label {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 6px;
  font-weight: 600;
}

/* ============ SECTION HEADS ============ */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
@media (min-width: 880px) {
  .section-head { grid-template-columns: minmax(200px, 320px) 1fr; gap: 64px; }
}

/* ============ WHAT WE DO list ============ */
.wwd-list { display: grid; grid-template-columns: 1fr; gap: 0; }
.wwd-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: clamp(28px, 3vw, 40px) 0;
  border-top: 1px solid var(--line);
  position: relative;
  transition: background .25s ease;
}
.wwd-item:last-child { border-bottom: 1px solid var(--line); }
.wwd-item:hover { background: rgba(79, 107, 255, 0.025); }
@media (min-width: 880px) {
  .wwd-item { grid-template-columns: 80px 1.1fr 2fr; gap: 40px; align-items: start; }
}
.wwd-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--fg-faint);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.glyph-mark {
  width: 28px; height: 28px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 4px;
  font-size: 13px;
  background: var(--accent-soft);
}
.wwd-title h3 { letter-spacing: -0.02em; }
.wwd-body { color: var(--fg-dim); font-size: 16px; max-width: 60ch; line-height: 1.6; }

/* ============ COMPARE BLOCKS ============ */
.compare-stack { display: grid; gap: clamp(20px, 2vw, 24px); }
.compare {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 44px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15,23,42,0.02);
}
.compare::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent);
}
.compare-head {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 16px;
  margin-bottom: 22px;
}
.compare-head h3 { letter-spacing: -0.02em; }
.compare-head .tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: var(--accent);
  letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 600;
}
.compare p { color: var(--fg-dim); font-size: 16.5px; line-height: 1.6; max-width: 64ch; }
.compare p + p { margin-top: 14px; }
.compare-grid {
  display: grid; grid-template-columns: 1fr; gap: 0;
}
@media (min-width: 760px) {
  .compare-grid { grid-template-columns: 1fr 1px 1fr; gap: clamp(24px, 3vw, 48px); }
}
.compare-col h4 {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}
.compare-col.old h4 { color: var(--fg-faint); }
.compare-col.new h4 { color: var(--accent); }
.compare-col.old p { color: var(--fg-mute); }
.compare-divider {
  display: none;
  background: var(--line);
}
@media (min-width: 760px) { .compare-divider { display: block; } }
@media (max-width: 759px) {
  .compare-col + .compare-col { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
}
.compare .punchline {
  margin-top: 14px;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 13.5px;
  font-weight: 600;
}

/* ============ STEPS ============ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 880px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  background: var(--bg-elev);
  padding: clamp(24px, 2.4vw, 32px);
  display: flex; flex-direction: column; gap: 12px;
  min-height: 260px;
  position: relative;
}
.step .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; color: var(--accent);
  letter-spacing: 0.06em; font-weight: 600;
}
.step .ix-big {
  font-family: "Inter Tight", sans-serif;
  font-size: 56px; font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--accent-soft);
  line-height: 0.9;
  margin-bottom: 4px;
}
.step h3 { font-size: 19px; font-weight: 600; }
.step p { color: var(--fg-dim); font-size: 14.5px; line-height: 1.55; }

/* ============ TIERS ============ */
.tiers {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) { .tiers { grid-template-columns: 1fr 1fr; } }
.tier {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  background: var(--bg-elev);
  position: relative;
  display: flex; flex-direction: column; gap: 22px;
  box-shadow: 0 1px 0 rgba(15,23,42,0.02);
}
.tier.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg-elev) 50%);
  box-shadow: 0 12px 32px -16px var(--accent-glow);
}
.tier-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: var(--fg-mute);
  letter-spacing: 0.08em; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600;
}
.tier-eyebrow .badge {
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  padding: 3px 10px; border-radius: 999px;
}
.tier h3 { font-size: 24px; letter-spacing: -0.02em; }
.tier p.desc { color: var(--fg-dim); font-size: 15.5px; line-height: 1.6; }
.tier ul { list-style: none; padding: 0; margin: 0; }
.tier ul li {
  display: grid; grid-template-columns: 18px 1fr; gap: 12px;
  font-size: 14.5px; color: var(--fg-dim);
  line-height: 1.5;
}
.tier ul li + li { margin-top: 10px; }
.tier ul li::before {
  content: "+"; color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px; line-height: 1.4;
  font-weight: 700;
}
.tier-foot {
  color: var(--fg-mute);
  font-size: 13px;
  font-family: "JetBrains Mono", monospace;
  margin-top: auto;
  padding-top: 8px;
}
.tier .btn { align-self: flex-start; }

/* ============ FIT (who for / not for) ============ */
.split {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) { .split { grid-template-columns: 1.2fr 1fr; } }
.split-col {
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.split-col.left { border-radius: var(--radius-lg); }
@media (min-width: 880px) {
  .split-col.left { border-radius: var(--radius-lg) 0 0 var(--radius-lg); border-right: 0; }
  .split-col.right { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; background: var(--bg-elev-2); }
}
@media (max-width: 879px) {
  .split-col + .split-col { margin-top: 16px; border-radius: var(--radius-lg); }
}
.split-col h3 { margin-bottom: 24px; font-size: 22px; }
.split-col h3 .ok { color: var(--accent); }
.split-col h3 .no { color: var(--danger); }
.fit-list { display: grid; gap: 18px; }
.fit-item { display: grid; grid-template-columns: 18px 1fr; gap: 14px; }
.fit-item .mark {
  font-family: "JetBrains Mono", monospace;
  font-size: 16px; line-height: 1.2;
  font-weight: 700;
}
.fit-item.yes .mark { color: var(--accent); }
.fit-item.no .mark { color: var(--danger); }
.fit-item h4 { font-size: 16px; margin-bottom: 4px; font-weight: 600; }
.fit-item p { color: var(--fg-dim); font-size: 14.5px; line-height: 1.55; }

/* ============ FAQ ============ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--fg);
  text-align: left;
  padding: clamp(20px, 2vw, 28px) 0;
  display: grid;
  grid-template-columns: 36px 1fr 28px;
  gap: 20px;
  align-items: center;
  cursor: pointer;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-family: inherit;
  transition: color .2s ease;
}
.faq-q:hover { color: var(--accent); }
.faq-q .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; color: var(--fg-faint);
  letter-spacing: 0.06em;
}
.faq-q .toggle {
  position: relative; width: 14px; height: 14px;
  justify-self: end;
}
.faq-q .toggle::before, .faq-q .toggle::after {
  content: ""; position: absolute; background: var(--fg-mute);
  transition: transform .25s ease, background .2s ease;
}
.faq-q .toggle::before { left: 0; right: 0; top: 50%; height: 1.5px; transform: translateY(-50%); }
.faq-q .toggle::after  { top: 0; bottom: 0; left: 50%; width: 1.5px; transform: translateX(-50%); }
.faq-item.open .faq-q .toggle::after { transform: translateX(-50%) rotate(90deg); }
.faq-item.open .faq-q .toggle::before { background: var(--accent); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner {
  overflow: hidden;
  color: var(--fg-dim);
  font-size: 16px;
  line-height: 1.6;
  max-width: 70ch;
  padding-left: 56px;
  padding-right: 28px;
}
.faq-item.open .faq-a-inner { padding-bottom: clamp(20px, 2vw, 28px); }

/* ============ STATS STRIP ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--bg-elev);
  padding: clamp(24px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat .v {
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}
.stat .v sup { font-size: 0.5em; color: var(--accent); margin-left: 2px; vertical-align: super; }
.stat .k {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
  text-transform: uppercase;
}

/* ============ ABOUT TOM ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 880px) { .about-grid { grid-template-columns: 280px 1fr; gap: 64px; align-items: start; } }
.about-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--bg-elev);
  display: grid; gap: 14px;
}
.about-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg-elev-2) 100%);
  overflow: hidden;
  position: relative;
  margin-bottom: 4px;
}
.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.about-card .nm { font-size: 17px; font-weight: 600; }
.about-meta { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--fg-mute); display: grid; gap: 4px; }
.about-meta .k { color: var(--fg-faint); }
.about-text { font-size: 17px; color: var(--fg-dim); line-height: 1.65; max-width: 64ch; }
.about-text p + p { margin-top: 1em; }
.about-text strong { color: var(--fg); font-weight: 600; }

/* ============ CASE STUDY ============ */
.case {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 3.5vw, 56px);
  background: var(--bg-elev);
  position: relative;
  overflow: hidden;
}
.case-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: var(--accent);
  letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 22px;
  background: var(--accent-soft);
}
.case h3 {
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  max-width: 24ch;
}
.case p { color: var(--fg-dim); max-width: 60ch; margin-bottom: 26px; line-height: 1.6; }
.case-data {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
@media (min-width: 760px) { .case-data { grid-template-columns: repeat(4, 1fr); } }
.case-cell {
  padding: 18px 20px;
  border-right: 1px dashed var(--line);
  font-family: "JetBrains Mono", monospace;
}
.case-cell:nth-child(even) { border-right: 0; }
@media (min-width: 760px) {
  .case-cell { border-right: 1px dashed var(--line); }
  .case-cell:last-child { border-right: 0; }
}
@media (max-width: 759px) {
  .case-cell:nth-child(-n+2) { border-bottom: 1px dashed var(--line); }
}
.case-cell .k { font-size: 11px; color: var(--fg-faint); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; font-weight: 600; }
.case-cell .v { font-size: 22px; color: var(--fg); letter-spacing: -0.01em; }
.case-cell .v.hi { color: var(--accent); }

/* ============ FINAL CTA ============ */
.final {
  border-top: 1px solid var(--line);
}
.final-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 72px);
  background:
    radial-gradient(600px 300px at 80% 20%, var(--accent-soft), transparent 60%),
    var(--bg-elev);
  position: relative;
  overflow: hidden;
}
.final-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15,23,42,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 80% at 90% 50%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 90% 50%, black, transparent 70%);
  pointer-events: none;
}
.final h2 { margin-bottom: 18px; max-width: 22ch; }
.final p.lead { margin-bottom: 32px; }
.final-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.final-contact { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--fg-mute); }

/* ============ FOOTER ============ */
.footer-wrap {
  background: var(--bg-elev-2);
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  margin-bottom: 40px;
}
@media (min-width: 880px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; } }
.footer-brand p {
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.55;
  max-width: 36ch;
  margin-top: 14px;
}
.footer-col h5 {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin: 0 0 16px;
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a {
  font-size: 14.5px;
  color: var(--fg-dim);
  transition: color .15s ease;
  cursor: pointer;
}
.footer-col a:hover { color: var(--accent); }
.footer-col button.linklike {
  background: 0; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--fg-dim);
  text-align: left;
}
.footer-col button.linklike:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  justify-content: space-between;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--fg-mute);
}

/* ============ CONTACT MODAL ============ */
.cm-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: clamp(0px, 4vw, 40px);
  animation: cm-fade .25s ease;
  overflow-y: auto;
}
@keyframes cm-fade { from { opacity: 0; } to { opacity: 1; } }

.cm-dialog {
  width: 100%;
  max-width: 560px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -10px rgba(15,23,42,0.25);
  display: flex; flex-direction: column;
  position: relative;
  animation: cm-rise .35s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-height: calc(100vh - 32px);
  overflow: hidden;
}
@keyframes cm-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  .cm-backdrop { padding: 0; align-items: stretch; }
  .cm-dialog { max-width: 100%; max-height: 100vh; height: 100vh; border-radius: 0; border: 0; }
}

.cm-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  color: var(--fg-mute);
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px; line-height: 1;
  transition: all .15s ease;
  z-index: 3;
}
.cm-close:hover { color: var(--fg); border-color: var(--line-strong); }

.cm-head {
  padding: clamp(28px, 4vw, 36px) clamp(24px, 4vw, 36px) clamp(18px, 2vw, 22px);
  flex-shrink: 0;
}
.cm-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px; font-weight: 600;
}
.cm-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.cm-head h3 {
  font-size: clamp(22px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  line-height: 1.2;
}
.cm-sub { color: var(--fg-dim); font-size: 15px; line-height: 1.5; max-width: 48ch; }

.cm-form {
  padding: 0 clamp(24px, 4vw, 36px) clamp(24px, 3vw, 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: grid;
  gap: 18px;
  flex: 1;
}

.cm-field { display: grid; gap: 8px; }
.cm-label {
  font-size: 13.5px;
  letter-spacing: -0.005em;
  color: var(--fg);
  font-weight: 600;
}
.cm-req { color: var(--accent); margin-left: 2px; }

.cm-form input[type="text"],
.cm-form input[type="email"],
.cm-form input[type="url"],
.cm-form input[type="tel"],
.cm-form input:not([type]),
.cm-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--fg);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.cm-form textarea { resize: vertical; min-height: 84px; line-height: 1.5; font-size: 15px; }
.cm-form input::placeholder, .cm-form textarea::placeholder { color: var(--fg-faint); }
.cm-form input:focus, .cm-form textarea:focus {
  outline: 0;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.cm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-chip {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--fg-dim);
  padding: 9px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
  min-height: 38px;
}
.cm-chip:hover { border-color: var(--accent); color: var(--accent); }
.cm-chip.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.cm-actions {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.cm-actions .btn { width: 100%; justify-content: center; padding: 14px 22px; }
.cm-fineprint { font-size: 12px; color: var(--fg-mute); letter-spacing: 0.02em; text-align: center; }
@media (min-width: 600px) {
  .cm-actions { grid-template-columns: auto 1fr; align-items: center; }
  .cm-actions .btn { width: auto; }
  .cm-fineprint { text-align: left; }
}

.cm-error {
  background: rgba(229, 72, 77, 0.08);
  border: 1px solid rgba(229, 72, 77, 0.3);
  color: var(--danger);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 13px;
}
.cm-success {
  padding: clamp(40px, 6vw, 64px) clamp(28px, 4vw, 40px);
  display: grid; gap: 14px;
}
.cm-success h3 {
  font-size: clamp(22px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0;
  max-width: 22ch;
}
.cm-success p { color: var(--fg-dim); font-size: 15px; line-height: 1.55; max-width: 48ch; }
.cm-success .btn { justify-self: start; margin-top: 8px; }
.cm-hp { position: absolute; left: -9999px; }

/* ============ MOTION ============ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-descriptor .pulse::after { animation: none; }
}

/* density tweak */
[data-density="compact"] section { padding-block: clamp(56px, 6vw, 96px); }
[data-density="airy"] section { padding-block: clamp(112px, 13vw, 200px); }
[data-density="airy"] .hero { padding-block: clamp(120px, 12vw, 180px); }
