/* ==========================================================
   annamazzanti.com — shared styles for every page
   1. Tokens & base   2. Nav & footer   3. Buttons & type
   4. Home            5. Case study     6. Motion   7. Responsive
   ========================================================== */

/* ---------- 1. Tokens & base ---------- */
:root {
  --bg: #FAFAF8;
  --ink: #0F0F10;
  --muted: rgba(15, 15, 16, .62);
  --accent: #5B3DF5;
  --accent-dark: #4529d6;
  --accent-light: #7C63FF;
  --tint: #EDE9FF;
  --surface: #FFFFFF;
  --line: rgba(15, 15, 16, .1);
  --dark: #111111;
  --ok: #34c759;

  --wide: 1160px;
  --text: 760px;
  --gutter: 32px;
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --focus: 0 0 0 3px rgba(91, 61, 245, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 14px; }
strong { font-weight: 700; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--surface); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.text { max-width: var(--text); }
.wrap.text { max-width: var(--wide); }
.wrap.text > * { max-width: var(--text); }
.accent { color: var(--accent); }
.muted { color: var(--muted); }

/* ---------- 2. Nav & footer ---------- */
.site-nav { position: sticky; top: 0; z-index: 30; background: rgba(250, 250, 248, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.site-nav .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 68px; }
.brand { font-size: 15px; font-weight: 500; justify-self: start; }
.nav-links { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.status-pill { justify-self: end; display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 100px; padding: 8px 14px 8px 12px; font-size: 14px; box-shadow: 0 0 0 1px var(--line); }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, .45); } 70% { box-shadow: 0 0 0 7px rgba(52, 199, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); } }

.site-footer { padding: 32px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--ink); font-weight: 500; }
.site-footer a:hover { color: var(--accent); }

/* ---------- 3. Buttons & type ---------- */
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(44px, 7vw, 72px); line-height: 1.02; font-weight: 700; letter-spacing: -.04em; margin: 0 0 24px; }
h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.15; font-weight: 500; letter-spacing: -.025em; margin: 0 0 20px; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; margin: 0 0 8px; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.eyebrow--muted { color: var(--muted); }
.eyebrow--light { color: rgba(255, 255, 255, .6); }
.lede { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.45; font-weight: 500; letter-spacing: -.015em; color: var(--muted); max-width: 780px; }

.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: #fff; border-radius: 100px; padding: 14px 22px; font-size: 15px; font-weight: 500; border: 0; cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn svg, .text-link svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--ghost { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.btn--ghost:hover { background: #f2f1ed; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; color: var(--accent); }

ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { position: relative; padding-left: 26px; margin-bottom: 10px; }
ul.ticks li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- 4. Home ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(48px, 8vw, 96px); line-height: .98; letter-spacing: -.045em; margin-bottom: 28px; }
.spotlight {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(520px circle at var(--x, 70%) var(--y, 30%), rgba(91, 61, 245, .16), rgba(91, 61, 245, .05) 40%, transparent 70%);
  opacity: var(--o, .7); transition: opacity .4s;
}
.spotlight--dark { background: radial-gradient(420px circle at var(--x, 80%) var(--y, 20%), rgba(124, 99, 255, .35), transparent 65%); }
.byline { display: flex; align-items: center; gap: 14px; margin-bottom: 36px; }
.byline img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }

/* AM monogram */
.monogram {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #8A74FF 0%, #6E4FF7 50%, #9A52E6 100%);
  background: linear-gradient(135deg in oklab, #8A74FF 0%, #6E4FF7 50%, #9A52E6 100%);
  box-shadow: 0 6px 16px rgba(91, 61, 245, .3), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .3s var(--ease);
}
.monogram { position: relative; overflow: hidden; }
.monogram::before { /* glossy highlight + fine inner ring */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 55%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22);
}
.mono-text { position: relative; z-index: 1; font-size: 21px; font-weight: 700; letter-spacing: -.06em; line-height: 1; color: #fff; transform: translateX(-1px); text-shadow: 0 1px 2px rgba(40, 10, 120, .35); }
.mono-spark { position: absolute; z-index: 1; top: 12px; right: 11px; width: 8px; height: 8px; fill: #fff; opacity: .9; transition: transform .4s var(--ease); }
.byline:hover .mono-spark { transform: rotate(90deg) scale(1.2); }
.byline:hover .monogram { transform: scale(1.06); }
.byline-name { margin: 0; font-size: 15px; font-weight: 500; }
.byline-role { margin: 0; font-size: 14px; color: var(--muted); }
.hero-copy { font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 560px; margin-bottom: 32px; }
.hero-cta { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.cta-note { font-size: 15px; font-weight: 500; color: #2E2B28; margin: 0; }

.stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 80px 0 0; }
.stat { border-top: 1px solid var(--line); padding-top: 22px; }
.stat dt { font-size: clamp(40px, 5vw, 56px); font-weight: 500; letter-spacing: -.04em; line-height: 1; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.stat dd { margin: 0; color: var(--muted); font-size: 15px; }

.home-section { padding: 96px 0; position: relative; }
.home-section h2 { font-size: clamp(40px, 6vw, 64px); line-height: 1.02; letter-spacing: -.04em; margin: 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; }
.section-intro { max-width: 360px; color: var(--muted); margin: 0; }

/* Project cards */
.card { display: flex; flex-direction: column; border-radius: var(--radius); transform-style: preserve-3d; transition: transform .5s var(--ease); }
.card-media { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: #ece9f7; isolation: isolate; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .28), transparent 55%); opacity: 0; transition: opacity .3s; }
.card:hover .card-media img, .card:focus-visible .card-media img { transform: scale(1.045); }
.card:hover .card-media::after { opacity: 1; }
.card-body { padding: 20px 4px 0; }
.card-tag { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.card-desc { color: var(--muted); font-size: 16px; margin: 0; max-width: 520px; }
.card h3 { transition: color .2s; }
.card:hover h3 { color: var(--accent); }
.metric-pill, .badge-new { position: absolute; left: 16px; top: 16px; z-index: 1; display: inline-flex; align-items: baseline; gap: 6px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 100px; padding: 6px 12px; font-size: 13px; color: var(--ink); box-shadow: 0 4px 14px rgba(20, 10, 70, .08); }
.metric-pill strong { color: var(--accent); font-size: 15px; }
.badge-new { background: var(--accent); color: #fff; font-weight: 500; letter-spacing: .02em; }
.card--featured { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-bottom: 56px; }
.card--featured .card-body { padding: 0; }
.card--featured h3 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; font-weight: 500; margin-bottom: 14px; }
.card--featured .card-desc { font-size: 17px; margin-bottom: 24px; }
.card--featured-reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.card--featured-reverse .card-media { order: 2; }
.card:hover .text-link svg { transform: translate(2px, -2px); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 32px; }

.bring { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bring-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: 0 0 0 1px var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.bring-card h3 { font-size: 22px; letter-spacing: -.02em; }
.bring-proof { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--accent); }
.bring-proof strong { font-size: 15px; }
.bring-proof svg { width: 11px; height: 11px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; margin-left: auto; transition: transform .2s var(--ease); }
.bring-proof:hover svg { transform: translate(2px, -2px); }
.bring-proof:hover { color: var(--accent-dark); }
.bring-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(40, 20, 120, .08); }
.bring-card .icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--tint); color: var(--accent); margin-bottom: 22px; }
.bring-card svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.bring-card p { color: var(--muted); font-size: 16px; margin: 0 0 22px; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.about-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.4; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; letter-spacing: -.03em; margin-bottom: 24px; }
.about p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 24px 0 0; padding: 0; }
.tags li { background: var(--tint); color: var(--accent); border-radius: 100px; padding: 6px 14px; font-size: 14px; }

.quote { margin: 0; max-width: 900px; }
.quote blockquote { margin: 0 0 20px; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.35; font-weight: 500; letter-spacing: -.02em; }
.quote figcaption { color: var(--muted); font-size: 15px; }

.contact {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: center;
  background: #0E0C16; color: #fff; border-radius: 32px; padding: clamp(32px, 6vw, 72px);
}
/* faint dot grid */
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(115deg, transparent 15%, #000 70%);
  -webkit-mask-image: linear-gradient(115deg, transparent 15%, #000 70%);
}
/* slow drifting colour blobs */
.contact-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; filter: blur(60px); opacity: .75; }
.contact-glow span { position: absolute; border-radius: 50%; animation: drift 18s ease-in-out infinite alternate; }
.contact-glow span:nth-child(1) { width: 420px; height: 420px; right: -80px; top: -140px; background: #5B3DF5; }
.contact-glow span:nth-child(2) { width: 300px; height: 300px; right: 22%; bottom: -170px; background: #C04BD8; animation-duration: 22s; animation-delay: -6s; opacity: .55; }
.contact-glow span:nth-child(3) { width: 240px; height: 240px; left: -90px; bottom: -120px; background: #2E5BFF; animation-duration: 26s; animation-delay: -12s; opacity: .4; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-40px, 30px) scale(1.08); } 100% { transform: translate(30px, -20px) scale(.95); } }
.contact .spotlight { z-index: -1; }

.contact-main { min-width: 0; }
.contact h2 { color: #fff; margin-bottom: 18px; font-size: clamp(44px, 6.5vw, 76px); }
.contact .accent { background: linear-gradient(90deg, #9C8BFF, #D59BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact-lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.45; color: rgba(255, 255, 255, .72); max-width: 460px; margin-bottom: 32px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn svg[viewBox="0 0 16 16"] { width: 16px; height: 16px; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #EDE9FF; }
.btn--outline-light { background: rgba(255, 255, 255, .06); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); }

.email-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
.contact-email { font-size: clamp(18px, 2.2vw, 24px); font-weight: 500; letter-spacing: -.01em; overflow-wrap: anywhere; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease), color .2s; }
.contact-email:hover { color: #C9BEFF; background-size: 100% 1px; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .85); border: 0; border-radius: 100px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .2s; }
.copy-btn:hover { background: rgba(255, 255, 255, .16); }
.copy-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.copy-btn.is-copied { background: rgba(52, 199, 89, .2); color: #8BF0A9; }

.contact-card {
  min-width: 0; padding: 28px; border-radius: 22px;
  background: rgba(255, 255, 255, .07); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 60px rgba(0, 0, 0, .3);
  transform: rotate(1.5deg); transition: transform .5s var(--ease);
}
.contact:hover .contact-card { transform: rotate(0deg) translateY(-4px); }
.contact-card-head { display: flex; align-items: center; gap: 14px; }
.contact-card-head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px rgba(255, 255, 255, .15); }
.contact-card-name { margin: 0; font-size: 18px; font-weight: 700; }
.contact-card-role { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .65); }
.contact-status { display: inline-flex; align-items: center; gap: 8px; margin: 20px 0 22px; padding: 6px 12px; border-radius: 100px; background: rgba(52, 199, 89, .14); color: #8BF0A9; font-size: 13px; font-weight: 500; }
.contact-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 2.4s infinite; }
.contact-facts { margin: 0; display: grid; gap: 0; }
.contact-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.contact-facts dt { color: rgba(255, 255, 255, .55); }
.contact-facts dd { margin: 0; text-align: right; font-weight: 500; }

/* ---------- 5. Case study ---------- */
.cs-hero { padding: 88px 0 48px; }
.cs-hero h1 { max-width: 980px; }
.cs-hero .hero-cta { margin-top: 32px; }
/* Metrics and meta share one 4-column grid so their columns line up */
.metrics, .meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 48px 0 0; }
.metrics div { border-top: 1px solid var(--line); padding-top: 18px; }
.metrics .span-2 { grid-column: span 2; }
.metrics dt { display: flex; align-items: flex-end; min-height: 46px; font-size: clamp(32px, 4vw, 44px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; color: var(--accent); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.metrics dt .check { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--tint); color: var(--accent); }
.metrics dt .check svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.metrics dd { margin: 0; font-size: 15px; color: var(--muted); max-width: 320px; }
.metrics dd.outcome-text { font-size: 17px; font-weight: 500; color: var(--ink); }
.meta { padding: 28px 0 0; border-top: 1px solid var(--line); }
.meta dt { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.meta dd { margin: 0; font-size: 16px; }
.hero-media { margin: 48px 0 0; border-radius: var(--radius); overflow: hidden; }
.hero-media--tinted { background: linear-gradient(135deg, #f1edff, #e6e1ff); padding: clamp(16px, 3vw, 40px); }
.hero-media--tinted img { border-radius: 12px; box-shadow: 0 20px 50px rgba(30, 20, 90, .18); }

.cs-section { padding: 72px 0; }
.cs-section + .cs-section { border-top: 1px solid var(--line); }
.cs-section .text > p { font-size: 18px; line-height: 1.65; max-width: 680px; }
p, li, dd, figcaption, blockquote { text-wrap: pretty; }
.figure { margin: 32px 0 0; }
.figure img { width: 100%; border-radius: var(--radius-sm); box-shadow: 0 0 0 1px var(--line), 0 10px 30px rgba(0, 0, 0, .05); background: #fff; }
.figure figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; }
.figure-label { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 32px 0 -16px; }
.figures { display: grid; gap: 24px; margin-top: 32px; }
.figures .figure { margin: 0; }
.figures--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.figures--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.split .figure { margin: 0; }

.card-grid { display: grid; gap: 16px; margin-top: 36px; }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.info-card { background: var(--surface); border-radius: var(--radius-sm); padding: 26px; box-shadow: 0 0 0 1px var(--line); }
.info-card h3 { font-size: 20px; }
.info-card p, .info-card li { font-size: 16px; line-height: 1.55; color: var(--muted); }
.info-card p:last-child, .info-card ul:last-child { margin-bottom: 0; }
.info-card .num { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 100px; background: var(--tint); color: var(--accent); font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.info-card .card-icon { width: 44px; height: 44px; object-fit: contain; margin-bottom: 16px; }
.info-card--accent { background: var(--tint); box-shadow: none; }
.info-card--accent p, .info-card--accent li { color: var(--ink); }

.glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.glance .info-card .eyebrow { margin-bottom: 10px; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 32px; }
.stat-row div { background: var(--surface); border-radius: var(--radius-sm); padding: 22px; box-shadow: 0 0 0 1px var(--line); }
.stat-row dt { font-size: 36px; font-weight: 700; color: var(--accent); letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-row dd { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.stat-row--big dt { font-size: clamp(40px, 5vw, 56px); }

.pull { margin: 32px 0 0; max-width: 680px; padding: 22px 26px; border-radius: var(--radius-sm); background: var(--tint); border-left: 3px solid var(--accent); }
.pull blockquote { margin: 0 0 10px; font-size: 18px; line-height: 1.5; font-weight: 500; letter-spacing: -.01em; }
.pull figcaption { font-size: 14px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { background: var(--tint); color: var(--accent); border-radius: 100px; padding: 6px 14px; font-size: 14px; font-weight: 500; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; list-style: none; padding: 0; margin: 24px 0 0; }
.flow li { background: var(--surface); box-shadow: 0 0 0 1px var(--line); border-radius: 100px; padding: 8px 16px; font-weight: 500; }
.flow li + li::before { content: "→"; color: var(--accent); margin: 0 12px 0 -4px; }

.dark-panel { background: var(--dark); color: #F4F1EC; border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.dark-panel .eyebrow { color: #B9AAFF; }
.dark-panel h3 { color: #fff; font-size: 26px; font-weight: 500; }
.dark-panel p { color: rgba(244, 241, 236, .78); }
.codes { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.codes li { display: flex; align-items: baseline; gap: 16px; background: rgba(255, 255, 255, .06); border-radius: 10px; padding: 14px 16px; }
.codes code { font-family: inherit; font-weight: 700; font-size: 20px; color: #fff; min-width: 64px; }

.goal-list { counter-reset: goal; list-style: none; padding: 0; margin: 28px 0 0; }
.goal-list li { counter-increment: goal; display: grid; grid-template-columns: 56px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 19px; }
.goal-list li:first-child { border-top: 1px solid var(--line); }
.goal-list li::before { content: counter(goal, decimal-leading-zero); color: var(--accent); font-weight: 500; font-size: 15px; padding-top: 3px; }

.steps { display: grid; gap: 64px; margin-top: 48px; }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 48px; align-items: center; }
.step:nth-child(even) .step-text { order: 2; }
.step .figure { margin: 0; }
.step-text .step-num { display: inline-block; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.step-text p { color: var(--muted); }

.proto { background: var(--tint); border-radius: 28px; padding: clamp(20px, 4vw, 48px); }
.proto-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.proto-head h2 { margin-bottom: 8px; }
.proto-head p { margin: 0; color: var(--muted); max-width: 560px; }
.proto-frame { background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(40, 20, 120, .16); }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #f6f5f2; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #dcd9d3; }
.browser-bar span { margin-left: 12px; font-size: 13px; color: var(--muted); }
.proto-frame iframe { display: block; width: 100%; height: 760px; border: 0; }
.try-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: t; }
.try-list li { counter-increment: t; background: rgba(255, 255, 255, .7); border-radius: 12px; padding: 16px; font-size: 15px; line-height: 1.45; }
.try-list li::before { content: counter(t); display: block; font-weight: 700; color: var(--accent); margin-bottom: 6px; }

.outcomes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.outcome { margin: 0; background: var(--surface); border-radius: var(--radius-sm); padding: 26px; box-shadow: 0 0 0 1px var(--line); font-size: 20px; line-height: 1.4; font-weight: 500; letter-spacing: -.01em; }
.outcome::before { content: ""; display: block; width: 28px; height: 3px; background: var(--accent); border-radius: 2px; margin-bottom: 16px; }
.status-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 100px; padding: 6px 14px; font-size: 14px; font-weight: 500; box-shadow: 0 0 0 1px var(--line); margin-bottom: 18px; }
.status-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

/* Next project */
.next { padding: 72px 0 96px; border-top: 1px solid var(--line); }
.next-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }
.next-card .card-media { aspect-ratio: 16 / 10; }

/* ---------- 6. Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* Top of page: animate in on load instead of waiting for scroll */
.js .hero-inner .reveal, .js .cs-hero .reveal { opacity: 1; transform: none; transition: none; animation: rise .7s var(--ease) both; }
.js .hero-inner .reveal:nth-child(2), .js .cs-hero .reveal:nth-of-type(2) { animation-delay: .08s; }
.js .hero-inner .reveal:nth-child(3), .js .cs-hero .reveal:nth-of-type(3) { animation-delay: .16s; }
.js .hero-inner .reveal:nth-child(4), .js .cs-hero .reveal:nth-of-type(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- 7. Responsive ---------- */
@media (max-width: 960px) {
  .card--featured, .next-card { grid-template-columns: 1fr; gap: 0; }
  .card--featured-reverse .card-media { order: 0; }
  .card--featured .card-body, .next-card .card-body { padding: 20px 4px 0; }
  .card-grid--3 { grid-template-columns: 1fr; }
  .card-grid--4, .try-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about, .split, .dark-panel, .step, .contact { grid-template-columns: 1fr; gap: 28px; }
  .contact { gap: 40px; }
  .contact-card { transform: none; max-width: 440px; }
  .step:nth-child(even) .step-text { order: 0; }
  .about-photo { max-width: 480px; }
}
@media (max-width: 700px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .site-nav .wrap { grid-template-columns: auto 1fr; gap: 16px; height: 60px; }
  .nav-links { justify-self: end; gap: 20px; }
  .status-pill { display: none; }
  .hero { padding: 40px 0 24px; }
  .hero-copy { font-size: 18px; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 56px; }
  .stats .stat:last-child { grid-column: 1 / -1; }
  .home-section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
  .bring, .grid, .glance, .outcomes, .card-grid--2, .card-grid--4, .try-list, .figures--2, .figures--3 { grid-template-columns: 1fr; }
  .grid { gap: 40px; }
  .card--featured { margin-bottom: 40px; }
  .cs-hero { padding: 48px 0 32px; }
  .cs-section { padding: 56px 0; }
  .cs-section .text > p { font-size: 17px; }
  .meta, .metrics { grid-template-columns: 1fr 1fr; }
  .metrics .span-2 { grid-column: 1 / -1; }
  .proto { border-radius: 20px; padding: 20px 12px; }
  .proto-frame iframe { height: 720px; }
  .outcome { font-size: 18px; }
  .goal-list li { grid-template-columns: 44px 1fr; font-size: 17px; }
  .next { padding: 56px 0 72px; }
  .contact { border-radius: 24px; padding: 32px 20px; }
  .contact-card { padding: 22px; }
  .contact-actions .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Project details sit under the hero image */
.hero-media + .meta { margin-top: 32px; padding-top: 0; border-top: 0; }

/* Two-pillar block (e.g. Accessibility + Compliance) */
.pillars-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.pillars-intro h2 { margin-bottom: 0; }
.pillars-intro p { color: var(--muted); }
.partners-label { margin: 20px 0 10px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.pillar { position: relative; overflow: hidden; border-radius: var(--radius); padding: clamp(28px, 4vw, 40px); background: var(--tint); }
.pillar::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(91, 61, 245, .18), transparent 70%); }
.pillar-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent); color: #fff; margin-bottom: 28px; }
.pillar-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pillar-label { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.pillar h3 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 500; letter-spacing: -.025em; margin-bottom: 12px; }
.pillar p:last-child { font-size: 17px; margin: 0; max-width: 420px; color: rgba(15, 15, 16, .72); }
.pillar--dark { background: var(--dark); color: #fff; }
.pillar--dark::after { background: radial-gradient(circle, rgba(124, 99, 255, .45), transparent 70%); }
.pillar--dark .pillar-icon { background: #fff; color: var(--accent); }
.pillar--dark .pillar-label { color: #B9AAFF; }
.pillar--dark p:last-child { color: rgba(255, 255, 255, .72); }
@media (max-width: 760px) {
  .pillars-intro, .pillars { grid-template-columns: 1fr; gap: 16px; }
  .pillars-intro { gap: 8px; }
}

/* ---------- Design-process bar (sticky under the site nav) ---------- */
.process { position: sticky; top: 68px; z-index: 25; background: rgba(250, 250, 248, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process ol { display: flex; gap: 4px; list-style: none; margin: 0; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.process ol::-webkit-scrollbar { display: none; }
.process a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 8px 14px; border-radius: 100px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background .2s, color .2s; }
.process a span { font-size: 11px; font-weight: 700; color: var(--accent); opacity: .7; }
.process a:hover { color: var(--ink); background: rgba(91, 61, 245, .06); }
.process a.is-active { background: var(--accent); color: #fff; }
.process a.is-active span { color: #fff; opacity: .8; }
section[id] { scroll-margin-top: 140px; }

/* Phase label: "03 EXPLORE & TEST —— USER TESTING" (accent phase, muted topic) */
.eyebrow:has(.phase) { display: flex; align-items: center; flex-wrap: wrap; row-gap: 6px; color: var(--muted); }
.eyebrow .phase { display: inline-flex; align-items: center; color: var(--accent); font-weight: 700; }
.eyebrow .phase::after { content: ""; width: 28px; height: 1px; margin: 0 12px; background: currentColor; opacity: .45; }

/* ---------- Insights as cards ---------- */
.insights { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.insights li { position: relative; background: var(--surface); border-radius: var(--radius-sm); padding: 26px; box-shadow: 0 0 0 1px var(--line); }
.insights li::before { content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.insights .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 18px; }
.insights h3 { font-size: 19px; }
.insights p { margin: 0; font-size: 16px; color: var(--muted); line-height: 1.55; }

/* ---------- Zoomable images ---------- */
.zoomable { position: relative; display: block; cursor: zoom-in; border-radius: var(--radius-sm); }
.zoomable::after {
  content: ""; position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(15, 15, 16, .72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L20 20M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") center / 18px no-repeat;
  opacity: 0; transform: scale(.9); transition: opacity .2s, transform .2s;
}
.zoomable:hover::after, .zoomable:focus-visible::after { opacity: 1; transform: none; }
@media (hover: none) { .zoomable::after { opacity: .9; transform: none; } }

.lightbox { position: fixed; inset: 0; z-index: 100; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 10, 20, .98); color: #fff; }
.lightbox::backdrop { background: rgba(12, 10, 20, .6); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.lb-count { font-size: 14px; color: rgba(255, 255, 255, .6); }
.lb-actions { display: flex; gap: 8px; }
.lb-btn { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 0; border-radius: 100px; background: rgba(255, 255, 255, .1); color: #fff; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-stage { position: relative; overflow: auto; display: grid; place-items: center; padding: 0 64px; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 150px); border-radius: 8px; background: #fff; cursor: zoom-in; }
.lb-stage.is-zoomed { place-items: start center; }
.lb-stage.is-zoomed img { max-width: none; max-height: none; cursor: zoom-out; }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); z-index: 2; box-shadow: 0 4px 16px rgba(0, 0, 0, .35); background: rgba(40, 36, 56, .92); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-caption { padding: 12px 18px 18px; text-align: center; font-size: 14px; color: rgba(255, 255, 255, .72); }

@media (max-width: 960px) { .insights { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .insights { grid-template-columns: 1fr; }
  .process { top: 60px; }
  .lb-stage { padding: 0 8px; }
  .lb-nav { top: auto; bottom: 14px; transform: none; }
}
button.zoomable { width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: inherit; }

/* Phones: stat boxes stack in one column, number beside its label */
@media (max-width: 700px) {
  .stat-row { grid-template-columns: 1fr; gap: 10px; }
  .stat-row div { padding: 18px 20px; }
  .stat-row dt, .stat-row--big dt { font-size: 32px; }
}

/* Icon-only button (LinkedIn) and footer contact links */
.btn--icon { width: 48px; height: 48px; padding: 0; justify-content: center; }
.btn .icon-li { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.btn--icon:hover svg { transform: none; }
.btn svg[viewBox="0 0 16 16"] { fill: none; stroke: currentColor; stroke-width: 1.5; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Stage gallery (CoSprint) */
.stages .figure figcaption { font-size: 15px; line-height: 1.5; }
.stages .figure figcaption strong { color: var(--ink); margin-right: 4px; }
.stage-num { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.tool-card h3 { font-size: 22px; }
.stages { gap: 40px 24px; }
.stages .figure img { aspect-ratio: 1440 / 1240; object-fit: cover; object-position: top; }
/* Showcase images that bring their own background: no white card edge */
.figure--bare img { background: none; box-shadow: 0 20px 50px rgba(30, 20, 90, .18); border-radius: var(--radius); }

/* Design-system explainer (CoSprint) */
.pipeline { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.pipeline li { position: relative; background: var(--surface); border-radius: var(--radius-sm); padding: 24px; box-shadow: 0 0 0 1px var(--line); }
.pipeline li:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 30px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); color: var(--accent); font-size: 14px; z-index: 1; }
.pipe-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--tint); color: var(--accent); font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.pipeline h4 { margin: 0 0 6px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.pipeline p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.5; }

.token-chain { margin-top: 24px; padding: 24px; border-radius: var(--radius); background: var(--dark); color: #fff; }
.token-chain-title { margin: 0 0 16px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #B9AAFF; }
.chain { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.chain-step { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.chain-step--figma { background: rgba(124, 99, 255, .22); box-shadow: inset 0 0 0 1px rgba(185, 170, 255, .4); }
.chain-kind { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.chain-step code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; color: #fff; overflow-wrap: anywhere; }
.chain-note { font-size: 13px; color: rgba(255, 255, 255, .65); }
.swatch { width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); margin-bottom: 4px; }
.chain-arrow { align-self: center; color: #B9AAFF; font-size: 18px; }
@media (max-width: 960px) {
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline li::after { display: none; }
}
@media (max-width: 700px) {
  .pipeline { grid-template-columns: 1fr; }
  .chain { flex-direction: column; }
  .chain-arrow { transform: rotate(90deg); }
}

/* Principle cards (RCM) */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.principle { display: flex; gap: 20px; align-items: flex-start; padding: 28px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.principle:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), 0 16px 36px rgba(40, 20, 120, .08); }
.principle-icon { flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, #8A74FF, #5B3DF5); color: #fff; box-shadow: 0 8px 18px rgba(91, 61, 245, .25); }
.principle-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.principle-num { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--accent); }
.principle h3 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 6px; }
.principle p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.principles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.principles--3 .principle { flex-direction: column; gap: 22px; }
@media (max-width: 900px) {
  .principles--3 { grid-template-columns: 1fr; }
  .principles--3 .principle { flex-direction: row; }
}
@media (max-width: 700px) {
  .principles { grid-template-columns: 1fr; }
  .principle { padding: 22px; gap: 16px; }
}

/* Research blocks (Medicare): persona, competitive scan, plan-card ranking */
.cs-subhead { margin: 72px 0 0; font-size: 28px; font-weight: 500; letter-spacing: -.02em; }
.cs-subcopy { max-width: var(--text); margin: 10px 0 0; color: var(--muted); }

.persona { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: 28px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 20px 50px rgba(40, 20, 120, .06); overflow: hidden; }
.persona-profile { padding: 32px; background: linear-gradient(160deg, #F4F1FF, #E7E1FF); }
.persona-avatar { width: 96px; height: 96px; border-radius: 50%; margin-bottom: 20px; box-shadow: 0 0 0 4px #fff, 0 10px 24px rgba(91, 61, 245, .2); }
.persona-profile .eyebrow { margin-bottom: 6px; }
.persona-profile h4 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.persona-meta { margin: 4px 0 14px; color: var(--muted); font-size: 15px; }
.persona-profile .chips li { background: #fff; }
.persona-quote { margin: 22px 0 0; padding-left: 16px; border-left: 3px solid var(--accent); font-size: 17px; line-height: 1.5; font-weight: 500; }
.persona-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 28px; padding: 32px; align-content: start; }
.persona-label { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.persona-details p, .persona-details li { font-size: 15px; line-height: 1.55; color: var(--muted); }
.persona-details p:last-child { margin: 0; }
.persona-details ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }


.scan { list-style: none; margin: 28px 0 0; padding: 0; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.scan > li { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: center; padding: 16px 24px; border-top: 1px solid var(--line); }
.scan > li:first-child { border-top: 0; }
.scan-name strong { display: block; font-size: 16px; }
.scan-name span { font-size: 13px; color: var(--muted); }
.scan-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.scan-steps li { counter-increment: step; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border-radius: 100px; background: var(--bg); box-shadow: 0 0 0 1px var(--line); font-size: 13px; }
.scan-steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--tint); color: var(--accent); font-size: 11px; font-weight: 700; }

.questions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.question { padding: 22px; border-radius: var(--radius-sm); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.question:first-child { background: var(--tint); box-shadow: none; }
.question-num { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.question h4 { margin: 6px 0 14px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.question .chips { gap: 6px; }
.question .chips li { font-size: 13px; padding: 5px 11px; }
.question:first-child .chips li { background: #fff; }

.rl-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-top: 48px; }
.rl-scale { display: flex; gap: 16px; margin: 0; font-size: 13px; color: var(--muted); }
.ranklist { list-style: none; margin: 16px 0 0; padding: 0; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.rl-row { display: grid; grid-template-columns: 44px minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, 1.6fr); gap: 20px; align-items: start; padding: 18px 24px; border-top: 1px solid var(--line); }
.rl-row:first-child { border-top: 0; }
.rl-row--top { background: linear-gradient(90deg, #F1EDFF, #FAF9FF); }
.rl-rank { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--tint); color: var(--accent); font-weight: 700; font-size: 15px; }
.rl-row--top .rl-rank { background: var(--accent); color: #fff; box-shadow: 0 6px 14px rgba(91, 61, 245, .3); }
.rl-row h4 { margin: 6px 0 0; font-size: 16px; font-weight: 700; }
.rl-tag { display: block; margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.rl-good .rl-tag { color: var(--accent); }
.rl-bad .rl-tag { color: #8a8a8a; }
.rl-row p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.rl-row p.rl-none { color: rgba(15, 15, 16, .38); font-style: italic; }
@media (max-width: 760px) {
  .rl-row { grid-template-columns: 36px minmax(0, 1fr); gap: 8px 14px; padding: 18px; }
  .rl-row h4 { margin-top: 7px; }
  .rl-good, .rl-bad { grid-column: 2; }
}

.persona-groups { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line); }
.persona-details .persona-groups .chips { display: flex; padding: 0; gap: 8px; }
.persona-groups .chips li { font-size: 13px; padding: 5px 12px; color: var(--accent); }

/* Expandable "more detail" panels */
.more { margin-top: 32px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.more > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 20px 64px 20px 24px; position: relative; cursor: pointer; list-style: none; border-radius: var(--radius); transition: background .2s; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary:hover { background: #F6F4FF; }
.more > summary:focus-visible { outline: none; box-shadow: var(--focus); }
.more > summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B3DF5' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") no-repeat center / 14px; transition: transform .3s var(--ease); }
.more[open] > summary::after { transform: rotate(45deg); }
.more-title { font-size: 17px; font-weight: 700; color: var(--accent); }
.more-meta { font-size: 14px; color: var(--muted); }
.more-body { padding: 4px 24px 28px; }
.more-body > .scan:first-child, .more-body > .ranklist:first-child { margin-top: 0; }
.more .ranklist { box-shadow: none; border: 1px solid var(--line); }
.chips--white { margin-top: 14px; }
.chips--white li { background: #fff; color: var(--ink); }

@media (max-width: 960px) {
  .persona { grid-template-columns: 1fr; }
  .questions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .cs-subhead { margin-top: 56px; font-size: 24px; }
  .persona-profile, .persona-details { padding: 24px; }
  .persona-details { grid-template-columns: 1fr; gap: 20px; }
  .questions { grid-template-columns: 1fr; }
  .scan > li { grid-template-columns: 1fr; gap: 10px; padding: 16px 18px; }
}
@media (max-width: 700px) {
  .more > summary { padding: 18px 56px 18px 18px; }
  .more > summary::after { right: 16px; }
  .more-body { padding: 0 12px 16px; }
}
.scan-name { display: flex; align-items: center; gap: 14px; min-width: 0; }
.scan-logo { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 84px; height: 44px; padding: 6px 8px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.scan-logo img { display: block; width: auto; height: auto; max-width: 68px; max-height: 32px; }

/* US News case study: journey + labels */
.journey { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: start; margin-top: 36px; }
.journey .figure { margin: 0; }
.journey-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: jstep; }
.journey-steps li { counter-increment: jstep; position: relative; padding: 18px 20px 18px 64px; border-radius: var(--radius-sm); background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 15px; line-height: 1.55; color: var(--muted); }
.journey-steps li::before { content: counter(jstep); position: absolute; left: 18px; top: 16px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--tint); color: var(--accent); font-size: 13px; font-weight: 700; }
.journey-steps strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
.note { max-width: var(--text); margin: 28px 0 0; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 16px; }
.num-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--accent); }
.info-card ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
@media (max-width: 860px) { .journey { grid-template-columns: 1fr; } .journey .figure { max-width: 420px; } }

/* Compact study summary (pricing page) */
.study { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); margin-top: 32px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.study-stats { display: grid; gap: 18px; margin: 0; padding: 28px 32px; background: var(--tint); align-content: center; }
.study-stats dt { white-space: nowrap; font-size: 40px; font-weight: 700; color: var(--accent); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.study-stats dd { margin: 4px 0 0; font-size: 15px; color: var(--ink); }
.study-details { display: grid; gap: 18px; margin: 0; padding: 28px 32px; align-content: center; }
.study-details dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.study-details dd { margin: 4px 0 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.tested { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line); counter-reset: tested; }
.tested li { counter-increment: tested; display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.6fr); gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.tested li::before { content: "0" counter(tested); font-size: 14px; font-weight: 700; color: var(--accent); }
.tested h4 { margin: 0; font-size: 18px; font-weight: 700; }
.tested p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
@media (max-width: 760px) {
  .study { grid-template-columns: 1fr; }
  .study-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 22px; }
  .study-stats dt { font-size: 24px; }
  .study-stats dd { font-size: 13px; }
  .study-details { padding: 22px; }
  .tested li { grid-template-columns: 36px minmax(0, 1fr); gap: 4px 12px; }
  .tested p { grid-column: 2; }
}

/* Engineering section icons (pricing page) */
.eng-badge { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 6px 14px 6px 6px; border-radius: 100px; background: var(--tint); color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.eng-badge span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #8A74FF, #5B3DF5); }
.eng-badge svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tested--icons li { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.6fr); align-items: center; }
.tested--icons li::before { content: none; }
.tested-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #8A74FF, #5B3DF5); box-shadow: 0 6px 14px rgba(91, 61, 245, .22); }
.tested-icon svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
  .tested--icons li { grid-template-columns: 40px minmax(0, 1fr); align-items: start; }
  .tested-icon { width: 34px; height: 34px; border-radius: 10px; grid-row: span 2; }
  .tested-icon svg { width: 17px; height: 17px; }
}
