/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --purple: #7c3aed;
  --pink: #ec4899;
  --teal: #14b8a6;
  --purple-soft: #f1eafe;
  --pink-soft: #fde8f3;
  --teal-soft: #ddf7f3;
  --gradient: linear-gradient(100deg, var(--purple) 0%, var(--pink) 50%, var(--teal) 100%);

  --bg: #fbfaf8;
  --surface: #ffffff;
  --surface-2: #f3f1ee;
  --text: #16141a;
  --text-muted: #5f5b66;
  --text-faint: #8f8a96;
  --border: #e7e4e0;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 16px;
  --radius-sm: 10px;
  --section: clamp(72px, 10vw, 128px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --purple: #a78bfa;
    --pink: #f472b6;
    --teal: #2dd4bf;
    --purple-soft: #2a1f42;
    --pink-soft: #3a1a2c;
    --teal-soft: #12302c;
    --bg: #0f0e12;
    --surface: #17161b;
    --surface-2: #1f1d24;
    --text: #f3f1f5;
    --text-muted: #aaa5b2;
    --text-faint: #75707d;
    --border: #2a2830;
  }
}
:root[data-theme="dark"] {
  --purple: #a78bfa;
  --pink: #f472b6;
  --teal: #2dd4bf;
  --purple-soft: #2a1f42;
  --pink-soft: #3a1a2c;
  --teal-soft: #12302c;
  --bg: #0f0e12;
  --surface: #17161b;
  --surface-2: #1f1d24;
  --text: #f3f1f5;
  --text-muted: #aaa5b2;
  --text-faint: #75707d;
  --border: #2a2830;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
p { margin: 0; }
::selection { background: var(--purple); color: #fff; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section + .section { border-top: 1px solid var(--border); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(32px, 4.5vw, 52px); margin-top: 16px; max-width: 16ch; }
.section-head p { color: var(--text-muted); max-width: 42ch; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); border-color: var(--text-faint); }
.btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-primary:hover { border-color: var(--text); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: border-color .2s ease;
}
.link-arrow:hover { border-color: var(--purple); }

.chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: var(--surface-2);
  color: var(--text-muted);
}
.chip.purple { background: var(--purple-soft); color: var(--purple); }
.chip.pink { background: var(--pink-soft); color: var(--pink); }
.chip.teal { background: var(--teal-soft); color: var(--teal); }

/* Placeholder media — swap for real images */
.media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 16 / 10;
}
.media::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}
.media.purple { background: linear-gradient(135deg, var(--purple-soft), var(--surface-2)); }
.media.pink { background: linear-gradient(135deg, var(--pink-soft), var(--surface-2)); }
.media.teal { background: linear-gradient(135deg, var(--teal-soft), var(--surface-2)); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media:has(img)::after { content: none; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--gradient); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 15px; color: var(--text-muted); transition: color .2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }

@media (max-width: 820px) {
  .menu-toggle { display: grid; }
  .nav-actions .btn { display: none; }
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; font-size: 18px; color: var(--text); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: clamp(64px, 12vw, 140px) 0 clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.hero-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 640px; height: 640px;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--purple) 22%, transparent), transparent 60%),
    radial-gradient(circle at 70% 50%, color-mix(in srgb, var(--pink) 18%, transparent), transparent 60%),
    radial-gradient(circle at 50% 80%, color-mix(in srgb, var(--teal) 18%, transparent), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(44px, 7.5vw, 96px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 24px 0 28px;
  max-width: 14ch;
}
.hero-lede { font-size: clamp(18px, 2vw, 21px); color: var(--text-muted); max-width: 56ch; }
.hero-cta { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 15px;
}
.hero-meta div span { display: block; color: var(--text-faint); font-size: 13px; margin-bottom: 2px; }
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 8px;
  box-shadow: 0 0 0 4px var(--teal-soft);
}

/* ==========================================================================
   Impact stats
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 32px 28px; }
.stat-value { font-family: var(--font-display); font-size: clamp(36px, 4vw, 48px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.stat:nth-child(4n+1) .stat-value { color: var(--purple); }
.stat:nth-child(4n+2) .stat-value { color: var(--pink); }
.stat:nth-child(4n+3) .stat-value { color: var(--teal); }
.stat:nth-child(4n) .stat-value { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { margin-top: 12px; color: var(--text-muted); font-size: 15px; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } }

/* ==========================================================================
   Work
   ========================================================================== */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
.work-card { display: flex; flex-direction: column; gap: 20px; }
.work-card .media { transition: transform .4s ease; }
.work-card:hover .media { transform: scale(1.01); }
.work-card h3 { font-size: clamp(22px, 2.4vw, 28px); transition: color .2s ease; }
.work-card:hover h3 { color: var(--purple); }
.work-card p { color: var(--text-muted); }
.work-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.work-company { font-size: 14px; color: var(--text-faint); margin-bottom: 6px; }
.work-metrics { display: flex; gap: 28px; padding-top: 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.work-metrics strong { display: block; font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; }
.work-metrics span { font-size: 13px; color: var(--text-faint); }

.work-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.work-card.featured .media { aspect-ratio: 4 / 3; }
/* Cover images are 16:9; match it so nothing gets cropped */
.work-card .media:has(img),
.work-card.featured .media:has(img) { aspect-ratio: 16 / 9; }
.work-card.featured h3 { font-size: clamp(28px, 3.2vw, 40px); }
.work-card.featured .work-body { display: flex; flex-direction: column; gap: 20px; }

@media (max-width: 820px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card.featured { grid-template-columns: 1fr; gap: 20px; }
}

/* ==========================================================================
   Approach
   ========================================================================== */
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.approach-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.approach-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 24px; }
.approach-icon svg { width: 22px; height: 22px; }
.approach-card:nth-child(1) .approach-icon { background: var(--purple-soft); color: var(--purple); }
.approach-card:nth-child(2) .approach-icon { background: var(--pink-soft); color: var(--pink); }
.approach-card:nth-child(3) .approach-icon { background: var(--teal-soft); color: var(--teal); }
.approach-card h3 { font-size: 22px; margin-bottom: 12px; }
.approach-card p { color: var(--text-muted); font-size: 16px; }
.approach-card ul { margin: 20px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--text-muted); }
.approach-card li { padding: 8px 0; border-top: 1px solid var(--border); }
@media (max-width: 900px) { .approach-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Experience
   ========================================================================== */
.experience-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.experience-item {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.experience-dates { color: var(--text-faint); font-size: 15px; font-variant-numeric: tabular-nums; }
.experience-role h3 { font-size: 22px; }
.experience-role .company { color: var(--text-muted); margin-top: 4px; }
.experience-role p { color: var(--text-muted); margin-top: 12px; font-size: 16px; max-width: 60ch; }
@media (max-width: 720px) {
  .experience-item { grid-template-columns: 1fr; gap: 8px; }
}

/* ==========================================================================
   Testimonial
   ========================================================================== */
.quote-wrap { max-width: 900px; }
.quote {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 24px 0 32px;
}
.quote-author { display: flex; align-items: center; gap: 14px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--gradient); flex-shrink: 0; }
.quote-author strong { display: block; }
.quote-author span { color: var(--text-muted); font-size: 15px; }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.about-grid .media { aspect-ratio: 4 / 5; }
.about-body h2 { font-size: clamp(32px, 4.5vw, 52px); margin: 16px 0 28px; }
.about-body p { color: var(--text-muted); margin-bottom: 18px; }
.about-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.about-facts h4 { font-family: var(--font-sans); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: 10px; }
.about-facts ul { margin: 0; padding: 0; list-style: none; font-size: 15px; }
.about-facts li { padding: 3px 0; }
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid .media { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   Contact / footer
   ========================================================================== */
.contact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  padding: clamp(40px, 7vw, 88px);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient);
}
.contact h2 { font-size: clamp(36px, 6vw, 72px); letter-spacing: -0.035em; max-width: 14ch; margin: 20px 0 24px; }
.contact p { color: var(--text-muted); max-width: 48ch; }
.contact .hero-cta { margin-top: 36px; }

.footer { padding: 40px 0 56px; color: var(--text-faint); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }

/* ==========================================================================
   Case study
   ========================================================================== */
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 15px; }
.back-link:hover { color: var(--text); }
.cs-hero { padding: clamp(48px, 8vw, 96px) 0 48px; }
.cs-hero h1 { font-size: clamp(40px, 6.5vw, 80px); letter-spacing: -0.035em; line-height: 1.04; margin: 24px 0 24px; max-width: 18ch; }
.cs-hero .hero-lede { max-width: 62ch; }
.cs-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); }
.cs-meta span { display: block; font-size: 13px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.cs-meta p { font-size: 16px; }
@media (max-width: 720px) { .cs-meta { grid-template-columns: repeat(2, 1fr); } }

.cs-cover { aspect-ratio: 16 / 8; border-radius: calc(var(--radius) * 1.25); }

/* Real images at their natural aspect ratio */
.cs-figure { margin: 0; border-radius: calc(var(--radius) * 1.25); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.cs-figure img { width: 100%; height: auto; }
.cs-section .cs-figure { margin-top: 32px; margin-bottom: 12px; border-radius: var(--radius); }

.cs-figure.bare { border: 0; background: none; border-radius: 0; }

/* Small cards for goals, pain points, etc. */
.cs-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0 18px; }
.cs-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cs-cards:not(.cols-3) > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.cs-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px 22px; }
.cs-card h4 { font-size: 17px; margin-bottom: 8px; }
.cs-section .cs-card p { margin: 0; font-size: 15px; }
.cs-card:nth-child(3n+1) h4 { color: var(--purple); }
.cs-card:nth-child(3n+2) h4 { color: var(--pink); }
.cs-card:nth-child(3n) h4 { color: var(--teal); }
@media (max-width: 600px) { .cs-cards, .cs-cards.cols-3 { grid-template-columns: 1fr; } }

/* Before/after strips with callouts. Fixed light colors so the light screenshots
   read the same in dark mode. */
.cs-compare {
  --c-purple: #7c3aed; --c-pink: #db2777; --c-teal: #0d9488;
  background: linear-gradient(135deg, #f1ecfe, #fdecf4);
  border-radius: calc(var(--radius) * 1.25);
  padding: 28px;
  margin-top: 32px; margin-bottom: 12px;
  display: grid; gap: 8px;
  color: #16141a;
}
.cs-compare-row { display: grid; gap: 12px; }
.cs-compare-label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #5f5b66; }
.cs-compare-label .chip { white-space: nowrap; flex-shrink: 0; }
.cs-compare .chip:not(.purple) { background: #fff; color: #5f5b66; }
.cs-compare .chip.purple { background: #fff; color: var(--c-purple); }
.cs-compare-strip {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: #fff; border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px -12px rgba(46, 26, 77, 0.25);
  padding: 18px 16px 14px;
}
.cs-compare-shot { position: relative; width: 100%; }
/* MVP source is 1784px vs. 2000px for the current header: keep the two at the same scale */
.cs-compare-shot.mvp { width: 89.2%; }
.cs-compare-shot img { width: 100%; height: auto; display: block; }
/* Side by side at equal height: columns sized by each image's aspect ratio
   (phone 921×2000, paper 1500×1290) */
.cs-pair { display: grid; grid-template-columns: 0.46fr 1.163fr; gap: 28px; align-items: end; }
.cs-pair figure { margin: 0; display: grid; gap: 14px; }
.cs-pair img { width: 100%; height: auto; display: block; }
.cs-pair-phone { border-radius: 22px; box-shadow: 0 16px 36px -14px rgba(46, 26, 77, 0.35); }
@media (max-width: 600px) {
  .cs-pair { grid-template-columns: 1fr; gap: 32px; }
  .cs-pair-phone { max-width: 240px; }
}
.cs-compare-arrow { text-align: center; font-size: 20px; color: var(--c-purple); line-height: 1; padding: 4px 0; }

.callout-box { position: absolute; border-radius: 8px; border: 2px solid; pointer-events: none; }
.callout-box.purple { border-color: var(--c-purple); background: rgba(124, 58, 237, 0.06); }
.callout-box.pink { border-color: var(--c-pink); background: rgba(219, 39, 119, 0.05); }
.callout-box.teal { border-color: var(--c-teal); background: rgba(13, 148, 136, 0.06); }
.callout-box.dashed { border-style: dashed; }
.callout-box i, .cs-numbered i {
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  font-style: normal; font-size: 12px; font-weight: 600; color: #fff;
}
.callout-box i { position: absolute; top: -12px; left: -12px; }
.callout-box.purple i, .cs-numbered i.purple { background: var(--purple); }
.callout-box.pink i, .cs-numbered i.pink { background: var(--pink); }
.cs-numbered i.teal { background: var(--teal); }
.callout-box.purple i { background: var(--c-purple); }
.callout-box.pink i { background: var(--c-pink); }
.callout-box.teal i { background: var(--c-teal); }
.cs-numbered-2col { grid-template-columns: 1fr 1fr; column-gap: 28px; }
@media (max-width: 600px) { .cs-numbered-2col { grid-template-columns: 1fr; } }

.cs-numbered { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; color: var(--text-muted); }
.cs-numbered li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.cs-numbered i { margin-top: 2px; }
.cs-numbered strong { color: var(--text); font-weight: 600; }

@media (max-width: 720px) {
  .cs-compare { padding: 20px 16px; }
  .cs-compare-shot { width: 720px; }
  .cs-compare-shot.mvp { width: 642px; }
}
.cs-compare .chip:not(.purple) { background: #f3f1ee; color: #5f5b66; }

/* Text beside a tall screenshot */
.cs-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin: 56px 0; }
.cs-feature h3 { margin-top: 0; }
.cs-feature p { margin-bottom: 0; }
.cs-section .cs-feature .cs-figure { margin: 0; }
@media (max-width: 600px) { .cs-feature { grid-template-columns: 1fr; gap: 20px; } }

.cs-layout { display: grid; grid-template-columns: 200px 1fr; gap: 80px; padding-top: var(--section); padding-bottom: var(--section); }
.cs-toc { position: sticky; top: 104px; align-self: start; }
.cs-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.cs-toc a { display: block; padding: 8px 0 8px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; color: var(--text-faint); transition: color .2s, border-color .2s; }
.cs-toc a:hover { color: var(--text); }
.cs-toc a.active { color: var(--text); border-left-color: var(--purple); }

.cs-content { max-width: 720px; }
.cs-section { scroll-margin-top: 104px; }
.cs-section + .cs-section { margin-top: 96px; }
.cs-section h2 { font-size: clamp(28px, 3.5vw, 40px); margin: 16px 0 24px; }
.cs-section h3 { font-size: 22px; margin: 40px 0 12px; }
.cs-section p { color: var(--text-muted); margin-bottom: 18px; }
.cs-section .media { margin: 40px 0 12px; }
.caption { font-size: 14px; color: var(--text-faint); margin-bottom: 18px; }

.callout {
  border-left: 3px solid var(--purple);
  background: var(--purple-soft);
  padding: 24px 28px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 32px 0;
}
.callout p { color: var(--text); margin: 0; font-size: 18px; }

.cs-media-wide { margin: 40px calc(-1 * min(120px, 8vw)) 12px; }
.cs-two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px 0 12px; }
.cs-two-up .media { margin: 0; aspect-ratio: 4 / 5; }
.cs-section .cs-gallery .cs-figure { margin: 0; }

.cs-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0; }
.cs-result { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.cs-result .stat-value { font-size: 40px; }
.cs-result:nth-child(1) .stat-value { color: var(--purple); }
.cs-result:nth-child(2) .stat-value { color: var(--pink); }
.cs-result:nth-child(3) .stat-value { color: var(--teal); }
.cs-result p { margin: 10px 0 0; font-size: 15px; }

.cs-list { margin: 0 0 18px; padding-left: 20px; color: var(--text-muted); }
.cs-list li { margin-bottom: 8px; }
.cs-list strong { color: var(--text); font-weight: 600; }

.cs-table { width: 100%; border-collapse: collapse; margin: 16px 0 18px; font-size: 16px; }
.cs-table th { text-align: left; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); padding: 0 0 12px; border-bottom: 1px solid var(--border); }
.cs-table td { padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.cs-table td:last-child { text-align: right; }

/* Draft notes — remove each one as the content is confirmed.
   Hidden on the live site; main.js adds .show-drafts when previewing on localhost. */
html:not(.show-drafts) mark.todo,
html:not(.show-drafts) p:has(> mark.todo:only-child),
html:not(.show-drafts) .draft-only { display: none; }
mark.todo {
  background: color-mix(in srgb, #f59e0b 22%, transparent);
  color: var(--text);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.92em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
mark.todo::before { content: "Draft · "; font-weight: 600; }

.next-project {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.next-project span { color: var(--text-faint); font-size: 14px; }
.next-project h3 { font-size: clamp(28px, 4vw, 48px); margin-top: 8px; transition: color .2s; }
.next-project:hover h3 { color: var(--purple); }
.next-project .arrow-circle { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; font-size: 22px; transition: background .2s, color .2s; }
.next-project:hover .arrow-circle { background: var(--text); color: var(--bg); }

@media (max-width: 960px) {
  .cs-layout { grid-template-columns: 1fr; gap: 0; }
  .cs-toc { display: none; }
  .cs-media-wide { margin-left: 0; margin-right: 0; }
}
@media (max-width: 600px) {
  .cs-results { grid-template-columns: 1fr; }
  .cs-two-up { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Motion
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
