:root {
  --bg: #ffffff;
  --ink: #1b1a19;
  --muted: #5c5853;
  --panel: #f5f3f0;
  --line: #e6e2dc;
  --site: #40196d;
  --brand: #40196d;
  --on-brand: #ffffff;
  --soft: #eed3f8;
  --on-soft: #40196d;
  --deep: #40196d;
  --deep-ink: #ffffff;
  --deep-line: #6a4a8f;
  --accent: #40196d;
  --pop: #f2734f;
  --gutter: 80px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --ink: #f6f4f2; --muted: #b9b5b1; --panel: #121212; --line: #2b2b2b; --site: #eed3f8;
    --brand: #eed3f8; --on-brand: #40196d; --soft: #40196d; --on-soft: #eed3f8; --deep: #141016; --deep-ink: #fcf7f2; --deep-line: #2e2633; --accent: #eed3f8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --ink: #f6f4f2; --muted: #b9b5b1; --panel: #121212; --line: #2b2b2b; --site: #eed3f8;
  --brand: #eed3f8; --on-brand: #40196d; --soft: #40196d; --on-soft: #eed3f8; --deep: #141016; --deep-ink: #fcf7f2; --deep-line: #2e2633; --accent: #eed3f8;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, system-ui, sans-serif; font-size: 17px; line-height: 1.6; }
a { color: inherit; }
a:hover { opacity: 0.85; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; }
h1, h2, h3, .display { font-family: Outfit, system-ui, sans-serif; font-weight: 700; letter-spacing: -0.01em; }
.wrap { padding-left: var(--gutter); padding-right: var(--gutter); max-width: 1440px; margin: 0 auto; }
.eyebrow { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: 999px; z-index: 10; }
.skip:focus { top: 12px; }

/* Header */
.site-header { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 28px; gap: 16px; }
.logo { font-family: Outfit, sans-serif; font-weight: 700; font-size: 24px; color: var(--site); text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { padding: 10px 14px; text-decoration: none; font-size: 15px; font-weight: 500; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 999px; cursor: pointer; }
.icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: block; }
:root[data-theme="dark"] .icon-btn .moon { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.btn-brand { background: var(--brand); color: var(--on-brand); }
.btn-soft { background: var(--soft); color: var(--on-soft); }
.btn-ink { background: var(--ink); color: var(--bg); }

/* Home hero */
.hero { display: flex; gap: 72px; align-items: center; padding-top: 112px; padding-bottom: 144px; }
.hero-copy { flex: 6 1 0; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.hero h1 { margin: 0; font-size: clamp(40px, 5vw, 68px); line-height: 1.09; letter-spacing: -0.02em; }
.hero p { margin: 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); max-width: 680px; }
.lens { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.lens button { min-height: 40px; padding: 0 2px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font-family: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.lens button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--brand); font-weight: 700; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.tree { flex: 5 1 0; min-width: 0; display: flex; justify-content: center; }
.tree-inner { position: relative; width: 520px; height: 470px; }
.tree-inner > div { position: absolute; }
.tree .ln { border-top: 3px solid var(--pop); height: 0; }
.tree .ln.dash { border-top-style: dashed; }
.tree .vln { border-left: 3px solid var(--pop); width: 0; }

/* Companies + stats */
.companies { display: flex; flex-direction: column; gap: 28px; padding-top: 56px; padding-bottom: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.company-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; font-family: Outfit, sans-serif; font-weight: 700; font-size: 28px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px; }
.stat-n { font-family: Outfit, sans-serif; font-weight: 700; font-size: 60px; line-height: 64px; color: var(--brand); }
.stat-l { font-size: 15px; line-height: 22px; color: var(--muted); margin-top: 10px; }
.stat-bar { display: block; width: 32px; height: 4px; background: var(--accent); border-radius: 999px; margin-bottom: 16px; }
.section { padding-top: 112px; padding-bottom: 144px; }
.section-tight { padding-bottom: 144px; }

/* Work cards */
.work-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.work-head h2 { margin: 0; font-size: 44px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; gap: 16px; padding: 36px; min-height: 340px; border-radius: 28px; text-decoration: none; border: 1px solid transparent; }
.card .co { font-size: 14px; font-weight: 500; }
.card .ti { font-family: Outfit, sans-serif; font-weight: 700; font-size: 32px; line-height: 36px; }
.card .su { font-size: 17px; line-height: 26px; margin-top: auto; }
.card.c0 { background: var(--brand); color: var(--on-brand); }
.card.c1 { background: var(--soft); color: var(--on-soft); }
.card.c2 { background: var(--panel); color: var(--ink); border-color: var(--line); }
.card.c2 .co { color: var(--muted); }
:root[data-theme="dark"] .card.c0 { background: #eed3f8; color: #40196d; }
:root[data-theme="dark"] .card.c1 { background: #40196d; color: #ffffff; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 20px; }
.quote-box { display: flex; flex-direction: column; gap: 28px; padding: 64px 72px 48px; background: var(--panel); border-radius: 28px; min-height: 620px; }
.quote-text { font-family: Outfit, sans-serif; font-weight: 500; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.33; margin: 0; }
.quote-who { font-size: 18px; font-weight: 500; }
.quote-role { font-size: 16px; color: var(--muted); }
.quote-nav { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.dots { display: flex; gap: 10px; }
.dots span { width: 9px; height: 9px; border-radius: 999px; background: var(--line); }
.dots span.on { background: var(--ink); }
.quote-nav button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--ink); cursor: pointer; }
.side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.tile { flex: 1 1 0; display: flex; flex-direction: column; gap: 14px; padding: 32px; background: var(--panel); border-radius: 28px; }
.tile h3 { margin: 0; font-weight: 500; font-size: 24px; }
.tools { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: auto; }
.tools span { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: #ffffff; border: 1px solid var(--line); border-radius: 14px; }
.tools img { width: 26px; height: 26px; }
.hire { font-family: Outfit, sans-serif; font-weight: 500; font-size: 26px; line-height: 34px; margin: 0; }

/* Case study */
.cs-hero { display: flex; flex-direction: column; gap: 32px; padding-top: 72px; padding-bottom: 96px; }
.back { font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; }
.co-line { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 500; color: var(--muted); }
.co-logo { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: #ffffff; border: 1px solid var(--line); border-radius: 14px; }
.co-logo img { width: 28px; height: 28px; }
.cs-hero h1 { margin: 0; font-size: clamp(44px, 6vw, 88px); line-height: 1.05; letter-spacing: -0.02em; max-width: 1180px; }
.cs-sub { margin: 0; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.5; color: var(--muted); max-width: 860px; }
.meta { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; padding-top: 24px; border-top: 3px solid var(--accent); margin: 0; }
.meta dt { font-size: 13px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.meta dd { margin: 8px 0 0; font-size: 17px; line-height: 26px; }
.shot { height: clamp(260px, 43vw, 620px); background: var(--panel); border-radius: 32px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--muted); text-align: center; padding: 24px; }
.shot img { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; }
.opp h2 { margin: 48px 0; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.17; max-width: 1080px; }
.hmw { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; padding-top: 96px; padding-bottom: 144px; background: var(--panel); }
.hmw-band { background: var(--panel); }
.hmw h2 { margin: 24px 0 0; font-size: clamp(28px, 3vw, 44px); line-height: 1.18; }
.ps { display: flex; flex-direction: column; gap: 40px; padding-top: 40px; }
.ps h3 { margin: 0 0 12px; font-size: 22px; }
.ps p { margin: 0; font-size: 18px; line-height: 29px; color: var(--muted); }
.tablist { display: flex; gap: 32px; border-bottom: 1px solid var(--line); margin: 40px 0; flex-wrap: wrap; }
.tablist button { min-height: 52px; padding: 0 0 14px; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; color: var(--muted); font-family: Outfit, sans-serif; font-weight: 700; font-size: 24px; cursor: pointer; text-align: left; }
.tablist button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); }
.single-tab { margin: 40px 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 32px; }
.tabpanel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.tabpanel[hidden] { display: none; }
.intro { margin: 0 0 32px; font-size: 20px; line-height: 32px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 32px; }
.steps li { display: flex; gap: 20px; }
.num { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 999px; background: var(--soft); color: var(--on-soft); display: flex; align-items: center; justify-content: center; font-family: Outfit, sans-serif; font-weight: 700; font-size: 15px; }
.steps strong { display: block; font-size: 18px; margin-bottom: 6px; }
.steps span.d { font-size: 16px; line-height: 26px; color: var(--muted); }
.right { display: flex; flex-direction: column; gap: 20px; }
.panel { display: flex; flex-direction: column; gap: 18px; padding: 36px; background: var(--panel); border-radius: 28px; }
.panel .row { display: flex; gap: 16px; font-size: 16px; line-height: 25px; }
.panel .row b { flex: 0 0 96px; font-size: 15px; }
.bubble { margin-top: 8px; padding: 20px 22px; background: var(--bg); border-radius: 22px 22px 22px 6px; font-size: 16px; line-height: 26px; }
.caption { font-size: 13px; line-height: 20px; color: var(--muted); }
.shot-sm { height: 260px; }
.shot-md { height: 520px; }
.research-head h2 { margin: 16px 0; font-size: clamp(28px, 3vw, 44px); line-height: 1.18; }
.findings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.finding { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--panel); border-radius: 24px; }
.finding .k { font-size: 12px; letter-spacing: 0.16em; color: var(--muted); }
.finding h3 { margin: 0; font-size: 22px; line-height: 28px; }
.finding p { margin: 0; font-size: 15px; line-height: 24px; color: var(--muted); }
.finding blockquote { margin: auto 0 0; font-size: 15px; line-height: 23px; font-style: italic; color: var(--ink); }
.learn-band { background: var(--deep); color: var(--deep-ink); }
.learn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; padding-top: 96px; padding-bottom: 96px; }
.learn .eyebrow { color: inherit; opacity: 0.8; }
.learn h2 { margin: 20px 0; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.2; }
.learn p { margin: 0; font-size: 18px; line-height: 29px; opacity: 0.88; }
.learn dl { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.learn dl div { padding-bottom: 18px; border-bottom: 1px solid var(--deep-line); }
.learn dt { font-weight: 700; font-size: 16px; }
.learn dd { margin: 4px 0 0; font-size: 16px; line-height: 25px; opacity: 0.88; }
.status { display: inline-block; padding: 10px 18px; background: var(--soft); color: var(--on-soft); border-radius: 999px; font-size: 15px; font-weight: 500; margin-top: 48px; }
.outcomes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.outcome { display: flex; gap: 20px; padding: 32px; border: 1px solid var(--line); border-radius: 24px; }
.outcome .n { flex: 0 0 auto; min-width: 120px; font-family: Outfit, sans-serif; font-weight: 700; font-size: 40px; line-height: 44px; color: var(--brand); }
.outcome .n.sm { font-size: 28px; }
.outcome p { margin: 0; font-size: 17px; line-height: 27px; }
.roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.road { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--panel); border-radius: 24px; }
.chip { align-self: flex-start; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.road:nth-child(1) .chip { background: var(--brand); color: var(--on-brand); }
.road:nth-child(2) .chip { background: var(--soft); color: var(--on-soft); }
.road:nth-child(3) .chip { background: var(--line); color: var(--ink); }
.road h3 { margin: 0; font-size: 22px; }
.road p { margin: 0; font-size: 15px; line-height: 24px; color: var(--muted); }
.note { margin: 44px 0 0; font-size: 15px; line-height: 24px; color: var(--muted); }
.pdf-box { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 40px 48px; border: 1px solid var(--line); border-radius: 32px; margin-bottom: 24px; flex-wrap: wrap; }
.pdf-box h2 { margin: 0 0 8px; font-size: 28px; }
.pdf-box p { margin: 0; font-size: 16px; color: var(--muted); }
.next { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 48px; background: var(--brand); color: var(--on-brand); border-radius: 32px; text-decoration: none; margin-bottom: 160px; flex-wrap: wrap; }
.next .lbl { font-size: 14px; opacity: 0.85; }
.next .ti { font-family: Outfit, sans-serif; font-weight: 700; font-size: 40px; line-height: 1.15; }
.next .go { padding: 16px 28px; background: var(--on-brand); color: var(--brand); font-weight: 700; font-size: 16px; border-radius: 999px; }

/* Work index + unlock */
.list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.list a { display: flex; flex-direction: column; gap: 10px; padding: 32px; border: 1px solid var(--line); border-radius: 24px; text-decoration: none; }
.list .co { font-size: 14px; color: var(--muted); font-weight: 500; }
.list .ti { font-family: Outfit, sans-serif; font-weight: 700; font-size: 26px; line-height: 1.2; }
.unlock { max-width: 560px; margin: 0 auto; padding: 120px 16px 160px; display: flex; flex-direction: column; gap: 20px; }
.unlock h1 { margin: 0; font-size: 44px; }
.unlock label { font-weight: 500; font-size: 15px; }
.unlock input { width: 100%; height: 52px; padding: 0 18px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; font: inherit; }
.unlock .err { color: #b3261e; font-size: 15px; min-height: 24px; }
:root[data-theme="dark"] .unlock .err { color: #ffb4ab; }

/* Footer */
.site-footer { background: #000000; color: #ffffff; border-top: 1px solid #2b2b2b; }
.foot { display: flex; flex-direction: column; gap: 56px; padding-top: 72px; padding-bottom: 40px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 48px; }
.foot-name { font-family: Outfit, sans-serif; font-weight: 700; font-size: 32px; }
.foot-grid p { margin: 12px 0 0; font-size: 16px; line-height: 26px; color: #bdbdbd; max-width: 380px; }
.foot-grid nav { display: flex; flex-direction: column; gap: 12px; }
.foot-grid nav span { font-size: 13px; letter-spacing: 0.16em; color: #bdbdbd; }
.foot-grid nav a { font-size: 16px; text-decoration: none; }
.foot-base { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid #2b2b2b; font-size: 14px; color: #bdbdbd; flex-wrap: wrap; }

@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .tree { display: none; }
  .hero { padding-top: 72px; padding-bottom: 96px; }
  .stats, .findings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card { min-height: 0; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hmw, .learn, .tabpanel { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .roadmap { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .nav a { padding: 10px 8px; font-size: 14px; }
  .logo { font-size: 20px; }
  .stats, .findings, .outcomes, .list, .meta, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .stats { gap: 32px; }
  .quote-box { padding: 32px 24px; min-height: 0; }
  .company-row { font-size: 22px; justify-content: flex-start; }
  .outcome { flex-direction: column; gap: 8px; }
  .pdf-box, .next { padding: 28px; }
  .section { padding-top: 72px; padding-bottom: 96px; }
}
