/* Protergates, on the Quad design system (same tokens, type and components). Committed light design. */
:root {
  --bg-1: #ffffff; --bg-2: #f5f5f7; --ink: #111114; --ink-2: #55555c; --ink-3: #86868b;
  --line: #e6e6ea; --accent: #4f46e5; --navy: #1b2441; --hero: #4f46e5;
  --news: #4f46e5; --hints: #0e8f83; --guides: #d9541f; --case-studies: #7c3aed; --tips: #b07a00;
  --maxw: 1040px; --nav-h: 52px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
html { color-scheme: light; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg-1); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 720px; }
section { position: relative; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 60; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg-1) 82%, transparent); backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 20px; width: 100%; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.qmark { width: 26px; height: 26px; border-radius: 7px; flex: 0 0 auto; display: block; }
.nav .links { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav .links a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.nav .links a:hover { color: var(--ink); }
.pill { background: var(--accent); color: #fff; border: none; border-radius: 980px; padding: 7px 16px; font-size: 14.5px; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-block; }
.pill:hover { filter: brightness(1.08); }
.nav .links a.pill { color: #fff; }

/* ---------- hero ---------- */
.hero { padding: clamp(70px, 13vh, 150px) 0 clamp(60px, 10vh, 120px); text-align: center; }
.hero h1 { font-size: clamp(2.8rem, 9.5vw, 6.4rem); font-weight: 800; letter-spacing: -.035em; line-height: .96; margin: 0; text-wrap: balance; }
.rot { display: inline-flex; align-items: baseline; gap: .18em; white-space: nowrap; }
.rot .word { color: var(--hero); transition: color .5s ease; }
.rot .glyph { font-size: .72em; transform: translateY(.05em); display: inline-block; }
.swap { display: inline-block; animation: swapIn .55s cubic-bezier(.2, .7, .2, 1); }
@keyframes swapIn { from { opacity: 0; transform: translateY(.42em); } to { opacity: 1; transform: translateY(0); } }
.glyph.swap { animation: glyphIn .6s cubic-bezier(.2, 1.3, .3, 1); }
@keyframes glyphIn { 0% { opacity: 0; transform: translateY(.2em) scale(.4) rotate(-12deg); } 100% { opacity: 1; transform: translateY(.05em) scale(1) rotate(0); } }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: clamp(1.1rem, 2.6vw, 1.5rem); font-weight: 700; letter-spacing: -.02em; color: var(--navy); margin: 0 auto 6px; line-height: 1; }
.eyebrow .qmark { width: 30px; height: 30px; border-radius: 8px; }
.lede { max-width: 44ch; margin: clamp(28px, 5vh, 44px) auto 0; font-size: clamp(1.15rem, 2.5vw, 1.5rem); font-weight: 400; color: var(--ink); line-height: 1.35; text-wrap: balance; }
.lede b { font-weight: 600; }
.hero .cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.ghost { color: var(--accent); text-decoration: none; font-size: 15px; font-weight: 500; align-self: center; }
.ghost:hover { text-decoration: underline; }

/* ---------- feature switcher + cards ---------- */
.feat { background: var(--bg-2); padding: clamp(64px, 10vh, 110px) 0; }
.switch { display: flex; justify-content: center; margin: 0 auto 42px; overflow-x: auto; scrollbar-width: none; }
.switch::-webkit-scrollbar { display: none; }
@media (max-width: 520px) { .switch { justify-content: flex-start; } .seg button { padding: 8px 12px; font-size: 14px; white-space: nowrap; } }
.seg { position: relative; display: inline-flex; background: color-mix(in srgb, var(--ink) 6%, transparent); border-radius: 980px; padding: 4px; }
.seg button { position: relative; z-index: 2; border: none; background: none; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 500;
  color: var(--ink-2); padding: 8px 20px; border-radius: 980px; transition: color .3s; }
.seg button[aria-selected="true"] { color: #fff; }
.seg .knob { position: absolute; z-index: 1; top: 4px; bottom: 4px; left: 4px; border-radius: 980px; background: var(--navy);
  transition: left .35s cubic-bezier(.4, 1.2, .4, 1), width .35s cubic-bezier(.4, 1.2, .4, 1); }
.panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.panel[hidden] { display: none; }
.card { background: var(--bg-1); border: 1px solid var(--line); border-radius: 20px; padding: 26px; min-height: 220px; display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink); transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(20, 20, 40, .35); }
.card .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; margin-bottom: 16px; }
.card h3 { margin: 6px 0 6px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.card .more { margin-top: auto; padding-top: 14px; color: var(--accent); font-size: 14px; font-weight: 500; }
.kicker { font-size: 12.5px; font-weight: 600; letter-spacing: .02em; text-decoration: none; }
.k-news { color: var(--news); } .k-hints { color: var(--hints); } .k-guides { color: var(--guides); } .k-case-studies { color: var(--case-studies); } .k-tips { color: var(--tips); }
.empty { color: var(--ink-3); grid-column: 1 / -1; text-align: center; }
.shelf-title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; margin: 0 0 28px; text-align: center; }

/* ---------- statement + floating tiles ---------- */
.story { padding: clamp(70px, 11vh, 120px) 0; }
.story .grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.story h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; margin: 0 0 18px; text-wrap: balance; }
.story p { color: var(--ink-2); font-size: 1.15rem; max-width: 34ch; margin: 0 0 26px; }
.tiles { position: relative; height: 420px; }
.tile { position: absolute; border-radius: 22px; display: grid; place-items: center; font-size: 44px; color: #fff; box-shadow: 0 20px 50px -20px rgba(20, 20, 40, .45); }
.tile.a { width: 190px; height: 190px; left: 6%; top: 38%; background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.tile.b { width: 150px; height: 150px; left: 44%; top: 2%; background: linear-gradient(135deg, #0fb5a6, #0e7c9e); }
.tile.c { width: 210px; height: 170px; left: 40%; top: 44%; background: linear-gradient(135deg, #ef5a2f, #f0973a); }
.tile.d { width: 130px; height: 130px; left: 70%; top: 8%; background: linear-gradient(135deg, #1b2441, #33406e); }

/* ---------- stat strip ---------- */
.stats { background: var(--bg-2); padding: clamp(56px, 8vh, 90px) 0; }
.stats .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat b { display: block; font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-bottom: 8px; }
.stat span { color: var(--ink-2); font-size: 15px; }
.grad { background: linear-gradient(120deg, #4f46e5, #0fb5a6); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- CTA ---------- */
.cta-final { background: var(--bg-1); color: var(--ink); text-align: center; padding: clamp(80px, 13vh, 150px) 0; }
.cta-final h2 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.03em; margin: 0 0 14px; text-wrap: balance; }
.cta-final .accentword { color: var(--accent); }
.cta-final p { color: var(--ink-2); font-size: 1.15rem; max-width: 32ch; margin: 0 auto 30px; }
.cta-final .pill, .story .pill { font-weight: 600; padding: 12px 26px; font-size: 16px; }

/* ---------- section + page heads ---------- */
.section-head { padding: clamp(56px, 10vh, 110px) 0 clamp(40px, 6vh, 64px); text-align: center; }
.section-head h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; margin: 10px auto 0; max-width: 18ch; text-wrap: balance; }
.section-head .lede { font-size: 1.05rem; color: var(--ink-2); margin-top: 18px; }
.section-head .lede a { color: var(--accent); }

/* ---------- article ---------- */
.post-head { padding-top: clamp(48px, 8vh, 90px); padding-bottom: 8px; text-align: center; }
.post-head .kicker { font-size: 14px; }
.post-head h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; margin: 14px 0 18px; text-wrap: balance; }
.dek { font-size: clamp(1.1rem, 2.4vw, 1.35rem); color: var(--ink-2); line-height: 1.4; margin: 0 auto 22px; max-width: 40ch; text-wrap: balance; }
.byline { font-size: 14px; color: var(--ink-3); margin: 0; }
.byline a { color: var(--ink-2); text-decoration: none; }
.meta { color: var(--ink-3); }
.prose { padding-top: 28px; padding-bottom: 48px; font: 400 18px/1.7 var(--text); }
.prose h2 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 48px 0 12px; }
.prose h3 { font-size: 21px; font-weight: 600; margin: 32px 0 8px; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose li { margin: 6px 0; }
.prose strong { font-weight: 600; }
.prose blockquote { margin: 28px 0; padding: 18px 22px; background: var(--bg-2); border-radius: 16px; color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose code { font-size: .88em; background: var(--bg-2); padding: 2px 6px; border-radius: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 24px 0; display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-2); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.faq, .sources { margin-top: 48px; font-size: 16px; }
.faq details { background: var(--bg-2); border-radius: 16px; padding: 16px 20px; margin: 10px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { color: var(--ink-2); margin: 10px 0 0; }
.sources li { color: var(--ink-2); }

/* ---------- footer ---------- */
footer { background: var(--bg-1); border-top: 1px solid var(--line); padding: 34px 0; color: var(--ink-3); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
footer .fl { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--ink-3); text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 960px) { .nav .links a:not(.pill) { display: none; } }
@media (max-width: 820px) {
  .panel { grid-template-columns: 1fr; }
  .story .grid { grid-template-columns: 1fr; gap: 24px; }
  .tiles { height: 300px; }
  .tile.a { width: 140px; height: 140px; } .tile.c { width: 160px; height: 130px; } .tile.b { width: 110px; height: 110px; } .tile.d { width: 96px; height: 96px; }
  .stats .row { grid-template-columns: 1fr; gap: 34px; }
  .nav .links a:not(.pill) { display: none; }
  .seg button { padding: 8px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .swap, .glyph.swap { animation: none; }
  .card, .seg .knob { transition: none; }
}

/* ---------- expertise ---------- */
.experts { display: grid; gap: 18px; margin: 8px 0 40px; }
.expert { border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: var(--bg-1); scroll-margin-top: calc(var(--nav-h) + 16px); }
.expert-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 600; font-size: 19px; letter-spacing: .02em; }
.expert h2 { margin: 0; font-size: 21px; letter-spacing: -.01em; }
.expert .role { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
.expert .yrs { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--accent); background: #eef0ff; border-radius: 980px; padding: 2px 10px; }
.expert p { color: var(--ink-2); }
.expert h3 { font-size: 15px; margin: 18px 0 8px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13.5px; background: var(--bg-2); border-radius: 980px; padding: 5px 12px; color: var(--ink); }
.expert .work { margin: 0; padding-left: 18px; font-size: 15px; }
.expert .work li { margin: 4px 0; }

/* ---------- breadcrumbs ---------- */
.crumbs { padding-top: 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--ink-3); }
.crumbs li { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { max-width: 46ch; }

/* ---------- article image ---------- */
.hero-img { margin: 8px auto 28px; }
.hero-img img { display: block; width: 100%; height: auto; border-radius: 18px; }

/* ---------- forms ---------- */
.pg-form { border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin: 24px 0 32px; background: var(--bg-2); display: grid; gap: 16px; }
.pg-form .field { display: grid; gap: 6px; }
.pg-form label { font-weight: 600; font-size: 15px; }
.pg-form input, .pg-form select, .pg-form textarea { font: inherit; font-size: 16px; padding: 11px 13px; border: 1px solid #d2d2d8; border-radius: 12px; background: #fff; color: var(--ink); width: 100%; box-sizing: border-box; }
.pg-form input[type=file] { padding: 9px; }
.pg-form textarea { resize: vertical; }
.pg-form input:focus, .pg-form select:focus, .pg-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.pg-form .hint, .pg-form .consent { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.pg-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14.5px; color: var(--ink-2); }
.pg-form .check input { width: auto; margin-top: 3px; }
.pg-form button { justify-self: start; padding: 10px 22px; font-size: 16px; }
.pg-form button:disabled { opacity: .5; cursor: not-allowed; }
.pg-form .form-status { margin: 0; font-size: 14.5px; color: var(--ink-2); min-height: 1.2em; }
.pg-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 18px 0 28px; }
.num { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: var(--bg-2); }
.num b { display: block; font-size: 34px; letter-spacing: -.02em; line-height: 1.1; }
.num span { color: var(--ink-2); font-size: 14.5px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
