/* ─── Design Tokens ─────────────────────────────────────── */
:root {
  /* Colors */
  --color-bg:           #f5f4ff;   /* Light purple — section/page tint */
  --color-surface:      #ffffff;   /* Pure white — cards, panels */
  --color-text:         #23124b;   /* Deep purple — all headings & body */
  --color-muted:        rgba(35,18,75,0.68); /* Darkened from 0.5 for WCAG AA contrast (~5.9:1 on white) */
  --color-muted-2:      rgba(35,18,75,0.62); /* Darkened from 0.38 for WCAG AA contrast (~4.9:1 on white); still lighter than --color-muted */
  --color-accent:       #E261FF;   /* Purple — CTAs, active states */
  --color-accent-light: #f5f4ff;   /* Light purple tint */
  --color-border:       #EEE8FA;  /* Dividers, card outlines, nav border */
  --color-badge:        #6E50BE;   /* Muted indigo-purple — challenge/solution index badges */
  --color-badge-bg:     #EFE6FC;   /* Pale badge background */
  --color-pro:          #00DFAB;   /* Mint — "pro" checkmark */
  --color-pro-bg:       rgba(0,223,171,0.2);
  --color-con:          #FF3892;   /* Pink — "con" close icon */
  --color-con-bg:       rgba(255,56,146,0.2);
  /* Nav-specific */
  --color-home-bg:      #ffffff;  /* body.home background */
  --color-nav-link:     #5A4E86;  /* default pill nav link */
  --color-nav-active:   #E261FF;  /* active nav link & dot */
  --color-nav-border:   var(--color-border); /* alias → #EEE8FA */
  --color-nav-shadow:   rgba(110,80,190,0.10);

  /* Typography */
  --font-primary: 'Bricolage Grotesque', sans-serif; /* All headings & body */
  --font-label:   'Work Sans', system-ui, sans-serif; /* Tags, meta labels */
  --font-meta:    'Work Sans', sans-serif;            /* Footer, uppercase meta */

  /* Aliases for inner pages */
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body:    'Bricolage Grotesque', sans-serif;

  /* Font sizes */
  --text-xs:   0.68rem;
  --text-sm:   0.78rem;
  --text-base: 0.9rem;
  --text-md:   1rem;
  --text-lg:   1.2rem;
  --text-xl:   1.6rem;
  --text-2xl:  2.2rem;
  --text-3xl:  3rem;

  /* Radii */
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      22px;
  --radius-xl:      40px;   /* Project cards */
  --radius-section: 144px;  /* Section organic corners */
  --radius-pill:    99px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(35,18,75,0.06);
  --shadow-md: 0 8px 24px rgba(35,18,75,0.08);
  --shadow-lg: 0 16px 48px rgba(35,18,75,0.12);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring:   cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --duration: 0.25s;
  --max-width: 1000px;

  /* Spacing scale — case study pages (4px base unit) */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #ffffff;
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: var(--text-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--color-accent); color: white; }

/* ─── Layout ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Pill Nav ────────────────────────────────────────────── */
.pill-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 24px 16px 0;
  background: transparent;
  pointer-events: none;
}

/* Unified pill nav — brand (logo + name) left, contact links right. Shared by the home page and every case study. */
.pill-nav-new {
  width: 100%;
  max-width: 740px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px 0 23px;
  border-radius: 32px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(110, 80, 190, 0.08);
  pointer-events: all;
}

.pill-nav-new-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.pill-nav-new-logo { width: 32px; height: 32px; display: block; flex-shrink: 0; }
.pill-nav-new-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: #000;
  white-space: nowrap;
}

.pill-nav-new-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pill-nav-new-link {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-muted-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.pill-nav-new-link:hover { color: var(--color-text); }
.pill-nav-new-link img { width: 24px; height: 24px; display: block; }
.pill-nav-new-dot {
  font-size: 13px;
  color: var(--color-muted-2);
}


/* ─── Tags ────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0;
  background: var(--color-accent-light);
  color: var(--color-accent);
}

/* ─── Pill button ─────────────────────────────────────────── */
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  border: 1px solid var(--color-text);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text);
  background: transparent;
  transition: background var(--duration) ease, color var(--duration) ease;
  cursor: pointer;
}
.pill-btn:hover { background: var(--color-text); color: var(--color-surface); }
.pill-btn.accent { border-color: var(--color-accent); color: var(--color-accent); }
.pill-btn.accent:hover { background: var(--color-accent); color: white; }

/* ─── Meta Label (shared) ────────────────────────────────────
   Unified type style for: section eyebrows, back link, case
   study meta items (role/team/type), and footer copyright. ── */
.section-label,
.cs-back,
.cs-meta-item label,
.home-footer p {
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
}

/* ─── Footer (inner pages) ────────────────────────────────── */
.home-footer {
  background: #f5f4fe;
  padding: 40px 0;
  text-align: center;
}
.home-footer p {
  margin: 0 auto;
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

/* ─── Case Study ──────────────────────────────────────────── */
/* Wide 1120px measure — scoped to case study pages only, distinct from the
   shared 1000px .container used on index/about so those pages are unaffected. */
.cs-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.cs-hero {
  padding: var(--space-8) 0 var(--space-6);
  text-align: center;
}
.cs-hero h1 {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  max-width: 820px;
  margin: 0 auto var(--space-5);
}
.cs-page--art .cs-hero h1 { max-width: 740px; }
.cs-hero p {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--color-muted);
  max-width: 740px;
  margin: 0 auto var(--space-7);
}

.cs-meta {
  display: flex;
  justify-content: center;
  gap: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}
.cs-meta-item { text-align: center; }
.cs-meta-item label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted-2);
  margin-bottom: var(--space-2);
}
.cs-meta-item span {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: normal;
  color: var(--color-text);
}

.cs-cover { margin-top: var(--space-7); }
.cs-cover img {
  width: 100%;
  border-radius: var(--radius-xl);
  display: block;
}
.cs-cover-row {
  width: 89.38%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: flex-end;
  gap: 1.95%;
}
.cs-cover-row.cs-cover img.cs-cover-item {
  width: auto;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 0;
  opacity: 0;
  transform: translateY(44px);
  animation: cs-cover-flow-up 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.cs-cover-row.cs-cover img.cs-cover-item:nth-child(1) { animation-delay: 0.08s; }
.cs-cover-row.cs-cover img.cs-cover-item:nth-child(2) { animation-delay: 0.26s; }
.cs-cover-row.cs-cover img.cs-cover-item:nth-child(3) { animation-delay: 0.44s; }
.cs-cover-row.cs-cover img.cs-cover-item:nth-child(4) { animation-delay: 0.62s; }
.cs-cover-row.cs-cover img.cs-cover-item:nth-child(5) { animation-delay: 0.80s; }
@keyframes cs-cover-flow-up {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .cs-cover-row.cs-cover img.cs-cover-item { animation: none; opacity: 1; transform: none; }
}

/* Case study content */
.cs-content { padding-top: var(--space-10); }
.cs-content section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 120px;
}
.cs-content section:last-child { margin-bottom: 0; }

.cs-content p.cs-eyebrow {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-muted-2);
  max-width: 740px;
  margin: 0 auto var(--space-5);
}
.cs-content h2 {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  max-width: 740px;
  margin: 0 auto var(--space-7);
}
.cs-content h2.cs-heading--wide { max-width: 820px; }
.cs-content h2.cs-heading--gap-xl { margin-bottom: var(--space-8); }
.cs-content h3 {
  font-family: var(--font-body);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-4);
}
.cs-content h4 {
  font-family: var(--font-body);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
  text-align: center;
  max-width: 740px;
  margin: 0 auto var(--space-3);
}
.cs-content h5 {
  font-family: var(--font-body);
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  width: 100%;
  max-width: 740px;
  margin: 0 auto var(--space-3);
}
.cs-content p {
  color: var(--color-muted);
  font-weight: 400;
  line-height: 1.65;
  max-width: 740px;
  margin: 0 auto var(--space-4);
}
.cs-content p:last-child { margin-bottom: 0; }
/* Art Team case study — wider paragraph rhythm per its own Figma frame */
.cs-page--art .cs-content p:not(:last-child) { margin-bottom: var(--space-5); }
.cs-page--art .cs-content p.cs-gap-9 { margin-bottom: var(--space-9); }
.cs-content ul {
  color: var(--color-muted);
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.8;
  max-width: 740px;
  margin: 0 auto var(--space-4);
  padding-left: 1.25rem;
}

.cs-img { width: 100%; border-radius: var(--radius-lg); margin: var(--space-6) 0; display: block; }
.cs-img--sm { max-width: 640px; margin-left: auto; margin-right: auto; }
.cs-img--inset { width: 89.29%; margin-left: auto; margin-right: auto; }

/* Old UI three-panel interactive demo */
.old-ui-demo { width: 100%; align-self: stretch; margin: var(--space-6) 0; }
.old-ui-demo-stage {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 640 / 494;
  margin: 0 auto;
}
.old-ui-panel {
  position: absolute;
  top: 1.3%;
  height: 97.4%;
  width: 34.7%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: left 0.3s ease-out, transform 0.3s ease-out, filter 0.3s ease-out, box-shadow 0.3s ease-out;
}
.old-ui-panel[data-id="left"] { left: 0%; }
.old-ui-panel[data-id="center"] { left: 32.69%; }
.old-ui-panel[data-id="right"] { left: 65.38%; }
.old-ui-panel-mask {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
}
.old-ui-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.old-ui-panel.is-front {
  box-shadow: 0 30px 60px -24px rgba(35, 18, 75, 0.35);
}
.old-ui-panel.is-back {
  filter: brightness(1.18) saturate(0.7) opacity(0.82);
  transform: scale(0.965);
}
.old-ui-panel.is-back:hover,
.old-ui-panel.is-back:focus-visible {
  filter: brightness(1.28) saturate(0.85) opacity(0.95);
  transform: scale(0.98);
}
.old-ui-panel.is-hidden {
  filter: brightness(1.18) saturate(0.7) opacity(0);
  pointer-events: none;
}
.old-ui-frame {
  position: absolute;
  top: 0%;
  left: 31.63%;
  width: 36.74%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}
.old-ui-panel:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.old-ui-demo-hint {
  margin: var(--space-6) 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-muted-2);
}
@media (prefers-reduced-motion: reduce) {
  .old-ui-panel { transition: none; }
}

/* Metrics */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  width: 100%;
}
.metric-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.metric-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.metric-card .metric-value {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
}
.metric-card .metric-label {
  font-size: 0.9375rem;
  color: var(--color-muted);
  font-weight: 400;
  line-height: 1.4;
}

/* Challenge cards */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
  width: 100%;
}
.challenge-grid--2col { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) {
  .challenge-grid--2col { grid-template-columns: 1fr; }
}
.challenge-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: left;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.challenge-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.challenge-card .challenge-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--color-badge-bg);
  color: var(--color-badge);
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.challenge-card h4 {
  text-align: left;
  max-width: none;
  margin: 0 0 var(--space-3);
}
.challenge-card p {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  max-width: none;
  margin: 0;
}

/* Art Team — challenge grids sit in the narrow 740px text column (Sleeper's stay at the full 1120px section width) */
.cs-page--art .challenge-grid { max-width: 740px; margin: 0 auto; }
/* Art Team — plain numbered challenge cards (no inline category label) use a larger radius than the default --cat cards */
.cs-page--art .challenge-card { border-radius: 32px; }
.cs-page--art .challenge-grid:not(.challenge-grid--2col) { grid-template-columns: 1fr; gap: 8px; padding-top: 8px; }
.cs-page--art .challenge-grid:not(.challenge-grid--2col) .challenge-card { border-radius: 20px; padding: 28px; }
.cs-page--art .challenge-grid:not(.challenge-grid--2col) .challenge-num { width: 36px; height: 36px; margin-bottom: 14px; }
.cs-page--art .challenge-grid:not(.challenge-grid--2col) .challenge-card h4 { margin-bottom: 14px; }

/* Challenge card variant — inline category badge (num + label) */
.challenge-card--cat { border-radius: 32px; }
.challenge-cat {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.challenge-cat .challenge-num { margin-bottom: 0; }
.challenge-cat-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-badge);
}

/* Pro / con checklist items */
.pro-con-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
  text-align: left;
}
.pro-con-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.pro-con-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pro-con-item--pro .pro-con-icon { background: var(--color-pro-bg); color: var(--color-pro); }
.pro-con-item--con .pro-con-icon { background: var(--color-con-bg); color: var(--color-con); }
.pro-con-icon svg { width: 16px; height: 16px; display: block; }
.pro-con-text { flex: 1; }
.pro-con-text strong {
  display: block;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.pro-con-text p {
  font-size: 0.9375rem;
  color: var(--color-muted);
  max-width: none;
  margin: 0;
  text-align: left;
}

/* Solution rows — image always on the left */
.cs-solution {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-7);
  align-items: center;
  width: 100%;
  margin-bottom: var(--space-8);
}
.cs-solution:last-child { margin-bottom: 0; }
.cs-solution-img { order: -1; border-radius: var(--radius-lg); overflow: hidden; }
.cs-solution-img img { width: 100%; display: block; }
.cs-solution-text .sol-num {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.cs-solution-text h3 { text-align: left; margin-bottom: var(--space-4); }
.cs-solution-text p,
.cs-solution-text ul { text-align: left; margin-left: 0; }

/* Art Team solution blocks — text on top, full-width visual below (narrower 740px content doesn't fit a 2-col split) */
.cs-solution-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-7);
  width: 100%;
  max-width: 740px;
  margin: 0 auto var(--space-9);
}
.cs-solution-stack:last-child { margin-bottom: 0; }
.cs-solution-stack--tight { gap: 39px; }
.cs-solution-stack-text { width: 100%; }
.cs-content .cs-solution-stack-text p.sol-num-big { margin-bottom: var(--space-3); }
.cs-solution-stack-text h3 { text-align: left; margin-bottom: var(--space-3); }
.cs-solution-stack-text p,
.cs-solution-stack-text ul { text-align: left; max-width: none; margin: 0; }
.cs-solution-stack-media { width: 100%; border-radius: 24px; overflow: hidden; }
.cs-solution-stack-media img { width: 100%; display: block; }
.cs-solution-stack-media--pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  border-radius: 0;
  overflow: visible;
}
.cs-solution-stack-media--pair img { border-radius: 24px; }

/* Ritual — 3-up card grid (replaces the old stacked icon-row list) */
.cs-ritual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  width: 100%;
}
.cs-ritual-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: var(--space-5) var(--space-5) var(--space-6);
}
.cs-ritual-card img { width: 32px; height: 32px; display: block; margin-bottom: var(--space-2); }
.cs-ritual-card h4 { text-align: left; max-width: none; margin: 0 0 var(--space-3); }
.cs-ritual-card p { font-size: 0.9375rem; text-align: left; max-width: none; margin: 0; }
@media (max-width: 768px) {
  .cs-solution-stack-media--pair { grid-template-columns: 1fr; }
  .cs-ritual-grid { grid-template-columns: 1fr; }
}

/* Solution row variant — equal columns, alternating image side, big decorative numeral */
.cs-solution--v2 { grid-template-columns: 1fr 1fr; }
.cs-solution--v2.cs-solution--right .cs-solution-img { order: 1; }
.cs-solution--04 { grid-template-columns: 568fr 504fr; }
.cs-content p.sol-num-big {
  font-family: var(--font-display);
  font-size: 100px;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
  letter-spacing: -1.68px;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
  color: var(--color-badge);
  opacity: 0.2;
  margin-bottom: var(--space-4);
}
/* Single inset mockup (video or image) — Figma insets it to ~56% of its 536px column */
.cs-solution-img--mock {
  display: flex;
  justify-content: center;
}
.cs-solution-img--mock .cs-video-wrap,
.cs-solution-img--mock > img {
  width: 56%;
}
.cs-video-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-bg);
}
.cs-video-wrap video { width: 100%; display: block; }

/* Solution-02 — two overlapping videos */
.cs-solution-dual {
  position: relative;
  width: 100%;
  aspect-ratio: 536 / 715;
}
.cs-solution-dual video {
  position: absolute;
  width: 56%;
  aspect-ratio: 300 / 649;
  border-radius: var(--radius-xl);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.cs-solution-dual video:nth-child(1) { top: 0; left: 0; z-index: 1; }
.cs-solution-dual video:nth-child(2) { top: 10.2%; left: 44%; z-index: 2; }

/* Key takeaway — divider-framed headline */
.cs-section-divider {
  width: 40px;
  height: 8px;
  background: rgba(35,18,75,0.62);
  opacity: 0.5;
  margin: 0 auto var(--space-8);
}
.cs-section-divider:last-child { margin-bottom: 0; }
.cs-takeaway p.cs-eyebrow { margin-bottom: var(--space-6); }
.cs-takeaway h2 { margin-bottom: var(--space-8); }

/* Principle table — 3-column breakdown (principle / root cause / implementation) */
.cs-principle-table {
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 70px rgba(35,18,75,0.08);
  overflow: hidden;
}
.cs-principle-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.4fr;
  gap: var(--space-6);
  padding: var(--space-6);
  text-align: left;
}
.cs-principle-row + .cs-principle-row { border-top: 1px solid var(--color-border); }
.cs-principle-head {
  background: var(--color-surface);
  padding: var(--space-4) var(--space-6);
}
.cs-principle-head span {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-muted-2);
}
.cs-principle-row dt {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
}
.cs-principle-row dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.5;
}
.cs-principle-row .cs-principle-impl dt { margin-bottom: var(--space-2); }
@media (max-width: 768px) {
  .cs-principle-head { display: none; }
  .cs-principle-row { grid-template-columns: 1fr; gap: var(--space-3); }
  .cs-principle-row dt::before { content: attr(data-label); display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted-2); margin-bottom: var(--space-1); }
}

/* Next case study */
.next-case {
  margin-top: var(--space-9);
  padding: var(--space-7);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  text-decoration: none;
  transition: box-shadow var(--duration) ease, transform var(--duration) ease;
}
.next-case:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.next-case .next-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted-2);
  margin-bottom: var(--space-2);
}
.next-case h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--color-text);
}
.next-case-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--color-accent);
  color: white;
  font-size: 22px;
  transition: transform var(--duration) ease;
}
.next-case:hover .next-case-arrow { transform: translateX(6px); }

/* Case study page background + footer — scoped to .cs-page only */
body.cs-page { background: #FBFAFF; }
body.cs-page .home-footer { background: transparent; }
body.cs-page .home-footer p {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-muted-2);
}

/* ─── About Page ──────────────────────────────────────────── */
.about-hero { padding: 5rem 0 4rem; border-bottom: 1px solid var(--color-border); }
.about-hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 5rem;
  align-items: start;
}
.about-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.about-hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  text-transform: none;
  color: var(--color-accent);
}
.about-hero p {
  color: var(--color-muted);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: var(--text-base);
  max-width: 560px;
}
.about-photo {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  object-fit: cover;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.about-section {
  padding: 4rem 0;
  border-top: 1px solid var(--color-border);
}
.about-section h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.skill-item {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-muted);
  padding: 0.875rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.value-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.value-card h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.value-card p {
  font-size: var(--text-xs);
  color: var(--color-muted);
  line-height: 1.65;
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .metrics-row { grid-template-columns: repeat(2, 1fr); }
  .about-hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .cs-solution { grid-template-columns: 1fr; }
  .cs-solution--04 { grid-template-columns: 1fr; }
  .cs-solution--v2.cs-solution--right .cs-solution-img { order: -1; }
  .cs-solution-dual { aspect-ratio: auto; height: 420px; max-width: 320px; margin: 0 auto; }
  .cs-solution-img--mock .cs-video-wrap,
  .cs-solution-img--mock > img { width: 72%; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .cs-container { padding: 0 var(--space-4); }
  .metrics-row,
  .challenge-grid,
  .skills-grid,
  .values-grid,
  .about-hero-inner { grid-template-columns: 1fr; }
  .cs-page--art .challenge-grid:not(.challenge-grid--2col) { grid-template-columns: 1fr; }
  .cs-meta { gap: var(--space-5); flex-direction: column; }
  .next-case { flex-direction: column; align-items: flex-start; padding: var(--space-6); }
  .about-photo { aspect-ratio: 1/1; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .pill-nav-wrap { padding: 12px 16px 0; }
  .pill-nav-new { height: 56px; padding: 0 10px 0 16px; }
  .pill-nav-new-name { display: none; }
  .pill-nav-new-link span { display: none; }
  .pill-nav-new-link { padding: 0 10px; }
  .pill-nav-new-dot { display: none; }
  .cs-hero h1,
  .cs-content h2 { font-size: 2.5rem; }
  .cs-content p.cs-eyebrow { font-size: 1.25rem; }
}
