:root {
  --ink: #121212;
  --muted: #666;
  --faint: #999;
  --line: #e6e6e6;
  --bg: #fff;
  --media: #f4f4f4;
  --mono: "Geist Mono", ui-monospace, monospace;
  --sans: "SF Pro Display", -apple-system, system-ui, "Helvetica Neue", Arial, sans-serif;
  --side: 208px;
  --gutter: 16px;
  --on-ink: #fff;
  --header-bg: rgba(255,255,255,.9);
  --chip: #f0f0f0;
  --chip-hover: #e4e4e4;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ink: #ededed;
  --muted: #9a9a9a;
  --faint: #6b6b6b;
  --line: #262626;
  --bg: #0e0e0e;
  --media: #1a1a1a;
  --on-ink: #0e0e0e;
  --header-bg: rgba(14,14,14,.9);
  --chip: #1f1f1f;
  --chip-hover: #2a2a2a;
  color-scheme: dark;
}
body, .meta .row, .meta dl, .rec { transition: background-color .25s, color .25s, border-color .25s; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 14px; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.mono { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .01em; text-transform: uppercase; }

/* ---------- Sidebar ---------- */
aside {
  position: fixed; inset: 0 auto 0 0; width: calc(var(--side) + var(--gutter) * 2);
  padding: 14px var(--gutter) 16px; display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: none;
}
.brand { display: flex; align-items: center; height: 14px; margin-bottom: 18px; text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.avatar { position: relative; width: 100%; height: 200px; margin: -8px 0 14px; }
.avatar canvas { display: block; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity .6s ease; }
.avatar.ready canvas { opacity: 1; }
.bio p { line-height: 1.43; letter-spacing: .02em; }
.bio p + p { margin-top: 18px; }
.bio a { text-underline-offset: 2px; text-decoration-thickness: 1px; }
.hero { line-height: 2.05 !important; letter-spacing: .01em !important; }
.chip {
  display: inline-block; vertical-align: middle; line-height: 1.5; margin-top: -2px; padding: 1px 8px; margin: 0 1px;
  border-radius: 7px; background: var(--chip); color: var(--ink); white-space: nowrap; text-decoration: none;
  transition: background-color .2s;
}
a.chip:hover { background: var(--chip-hover); }
.chip.cycle { overflow: hidden; transition: width .45s cubic-bezier(.2,.8,.2,1), background-color .2s; }
.chip.cycle span { display: inline-block; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s; }
.chip.cycle span.out { transform: translateY(-70%); opacity: 0; }
.chip.cycle span.in { transform: translateY(70%); opacity: 0; transition: none; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { display: grid; place-items: center; width: 18px; height: 18px; opacity: .9; }
.social a:hover { opacity: .55; }
.social svg { width: 16px; height: 16px; }

.meta { margin-top: auto; }
.status { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 0 0; border-top: .5px solid var(--line); }
.status-t { font-size: 12.5px; font-weight: 600; letter-spacing: -.005em; }
.status-s { font-size: 11px; color: var(--faint); margin-top: 1px; }
.status-dot { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 500; color: var(--faint); font-variant-numeric: tabular-nums; }
.status-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #34c759; }
.meta small { display: block; margin-top: 14px; font-size: 9px; color: var(--faint); }

/* ---------- Top bar ---------- */
header {
  position: fixed; top: 0; left: calc(var(--side) + var(--gutter) * 2); right: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 0 var(--gutter) 0 0;
  background: var(--bg); transition: background-color .25s;
}
.topnav { display: flex; align-items: center; gap: 16px; }
.seg { position: relative; display: flex; padding: 2px; border-radius: 9px; background: var(--chip); }
.seg .thumb { position: absolute; top: 2px; bottom: 2px; left: 0; width: 0; border-radius: 7px; background: var(--bg);
  box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04); transition: transform .35s cubic-bezier(.3,.9,.3,1), width .35s cubic-bezier(.3,.9,.3,1); opacity: 0; }
:root[data-theme="dark"] .seg .thumb { background: #3a3a3c; }
.seg .thumb.on { opacity: 1; }
.seg button, .seg a { position: relative; z-index: 1; padding: 4px 12px; font-size: 12.5px; font-weight: 500; color: var(--muted); text-decoration: none; border-radius: 7px; transition: color .2s; }
.seg button[aria-pressed="true"], .seg a[aria-current="page"] { color: var(--ink); }
.seg button:hover, .seg a:hover { color: var(--ink); }
.topnav > a { font-size: 12.5px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .15s; }
.topnav > a:hover, .topnav > a[aria-current="page"] { color: var(--ink); }
.theme-btn { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--ink); transition: background-color .15s; }
.theme-btn:hover { background: var(--line); }
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }

/* ---------- Works ---------- */
main { margin-left: calc(var(--side) + var(--gutter) * 2); padding: 52px var(--gutter) 80px 0; }
.work { scroll-margin-top: 52px; }
.work { display: block; text-decoration: none; margin-bottom: 44px; }
.work[hidden] { display: none; }
/* ---------- Playground bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px 12px; margin-bottom: 44px; }
.bento[hidden] { display: none; }
.bento .work { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.bento .work[hidden] { display: none; }
.bento .c2 { grid-column: span 2; } .bento .c3 { grid-column: span 3; } .bento .c4 { grid-column: span 4; }
.bento .media { aspect-ratio: auto; flex: 1 1 auto; min-height: 0; max-height: none; }
.bento .anchor .media { aspect-ratio: 16 / 9; flex: 0 0 auto; }
.bento .media img { object-position: top center; }
.work.play .media { cursor: default; }
a.work.play .media { cursor: none; }
@media (max-width: 760px) { a.work.play .media { cursor: pointer; } }
.work.play:hover .media video { transform: none; }
.media {
  position: relative; overflow: hidden; background: var(--media); border-radius: 12px; isolation: isolate;
  aspect-ratio: 653 / 608; max-height: 84vh; width: 100%; cursor: none;
}
.media video, .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .4s; }
.work:hover .media video { transform: scale(1.015); }
.media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; z-index: 1; }
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 14px; margin-bottom: 48px; }
.cases[hidden] { display: none; }
.cases .work { margin: 0; }
.cases .media { aspect-ratio: 1 / 1; max-height: none; }
.metric { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.metric span { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.cap .row2 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.cap .s-inline { font-weight: 500; color: var(--muted); }
.cap .yr { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.badge {
  position: absolute; left: 14px; top: 14px; z-index: 2; padding: 6px 11px; border-radius: 99px;
  font-size: 12px; font-weight: 600; letter-spacing: .01em; color: #111;
  background: rgba(255,255,255,.6); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,.7); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 4px 14px rgba(0,0,0,.08);
}
.badge b { font-weight: 700; }
.media .logo {
  position: absolute; left: 16px; top: 16px; width: 26px; height: 26px; border-radius: 6px; background: #fff; object-fit: contain;
}
.cap { padding-top: 10px; }
.cap .t { font-weight: 600; letter-spacing: .01em; }
.cap .s { font-weight: 500; color: var(--muted); letter-spacing: .005em; margin-top: 2px; }
.cap .d { color: var(--muted); max-width: 60ch; line-height: 1.45; margin-top: 8px; font-size: 13px; }

.cursor {
  position: fixed; left: 0; top: 0; z-index: 20; pointer-events: none;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); color: var(--on-ink); box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transform: translate(-50%, -50%) scale(.3); opacity: 0; transition: opacity .18s, transform .3s cubic-bezier(.2,.9,.3,1.3);
}
.cursor svg { width: 20px; height: 20px; transform: rotate(-45deg); transition: transform .35s cubic-bezier(.2,.9,.3,1.2); }
.cursor.on svg { transform: rotate(0); }
.cursor.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor.on.off { opacity: 0; transform: translate(-50%, -50%) scale(.3); }

.empty { color: var(--muted); padding: 40vh 0 0; text-align: center; }
.empty[hidden], .rec[hidden] { display: none; }

/* ---------- Recommendations: liquid-glass player ---------- */
.rec { margin-top: 12px; }
.rec .label { color: var(--faint); font-size: 11px; margin-bottom: 12px; }
.player {
  position: relative; overflow: hidden; border-radius: 24px; isolation: isolate;
  padding: 22px; color: #fff; background: #1b1b1f;
}
.player .bg { position: absolute; inset: -30%; z-index: -2; background-size: cover; background-position: center;
  filter: blur(60px) saturate(1.8) brightness(.75); transform: scale(1.1); transition: background-image .6s; }
.player::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.35)); }
.glass {
  background: rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.18);
}
.np { display: grid; grid-template-columns: 148px 1fr; gap: 22px; align-items: start; }
.np .art { width: 148px; aspect-ratio: 1; border-radius: 14px; object-fit: cover; box-shadow: 0 14px 34px rgba(0,0,0,.35); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.player.paused .np .art { transform: scale(.92); }
.np .meta-t { font-size: 15px; font-weight: 600; letter-spacing: .005em; }
.np .meta-a { font-size: 13px; color: rgba(255,255,255,.65); margin-top: 2px; }
.np .lyric { margin-top: 14px; font-size: 19px; line-height: 1.38; font-weight: 600; letter-spacing: -.01em; max-width: 46ch; min-height: 5.6em; }
.np .lyric span { color: rgba(255,255,255,.35); transition: color .5s; }
.np .lyric span.on { color: #fff; }
.np .fade { transition: opacity .35s, transform .35s cubic-bezier(.2,.8,.2,1); }
.np .fade.swap { opacity: 0; transform: translateY(6px); }
.scrub { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.scrub .bar { flex: 1; height: 5px; border-radius: 99px; background: rgba(255,255,255,.2); overflow: hidden; }
.scrub .fill { height: 100%; width: 0; border-radius: inherit; background: rgba(255,255,255,.9); }
.controls { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 14px; }
.controls button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; transition: transform .15s, background-color .15s; }
.controls button:hover { background: rgba(255,255,255,.2); }
.controls button:active { transform: scale(.92); }
.controls .pp { width: 50px; height: 50px; }
.controls svg { width: 18px; height: 18px; } .controls .pp svg { width: 22px; height: 22px; }
.player .ic-play { display: none; } .player.paused .ic-play { display: block; } .player.paused .ic-pause { display: none; }
.queue { display: flex; gap: 8px; margin-top: 16px; padding: 6px; border-radius: 16px; overflow-x: auto; scrollbar-width: none; }
.queue button { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 11px; color: rgba(255,255,255,.75); font-size: 12px; white-space: nowrap; transition: background-color .2s, color .2s; }
.queue button img { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; }
.queue button[aria-current="true"] { background: rgba(255,255,255,.2); color: #fff; }
.queue button:hover { color: #fff; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  aside { position: static; width: auto; padding-bottom: 0; }
  .meta { margin-top: 28px; }
  header { position: sticky; left: 0; height: 48px; padding: 0 var(--gutter); background: var(--header-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  main { margin-left: 0; padding: 16px var(--gutter) 60px; }
  .media { cursor: pointer; }
  .np { grid-template-columns: 1fr; gap: 14px; }
  .np .art { width: 112px; }
  .player { padding: 18px; }
  .bento { grid-template-columns: 1fr; gap: 28px; }
  .bento .work { grid-column: auto !important; }
  .bento .media { aspect-ratio: 16 / 9; flex: none; }
  .bento .square .media { aspect-ratio: 1 / 1; }
  .np .lyric { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Page nav (All / Work / Playground / About / Resume) ---------- */

/* ---------- About / Resume pages ---------- */
.page { max-width: none; }
.page h1 { font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.page .sub { color: var(--muted); font-size: 15px; margin-top: 4px; }
.page .lede p { font-size: 16px; line-height: 1.6; letter-spacing: .005em; max-width: 60ch; }
.page .lede p + p { margin-top: 14px; }
.page section { margin-top: 48px; }
.page .label { color: var(--faint); font-size: 11px; margin-bottom: 12px; }

.list { border-top: 1px solid var(--line); }
.list .item { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.list .item .co { font-weight: 600; }
.list .item .role { color: var(--muted); }
.list .item .yr { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.list a.item:hover .co { text-decoration: underline; text-underline-offset: 3px; }


.ugc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.ugc .reels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ugc .reels .media { aspect-ratio: 9 / 16; max-height: none; cursor: default; }
.views { position: absolute; left: 8px; bottom: 8px; z-index: 2; padding: 4px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; color: #fff;
  background: rgba(0,0,0,.35); -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%); border: 1px solid rgba(255,255,255,.25); }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 500; text-decoration: none; transition: opacity .15s; }
.btn:hover { opacity: .85; }
.btn.ghost { background: var(--chip); color: var(--ink); }

.contact a { text-decoration: none; }
.contact a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Resume */
.resume-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.resume .summary { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 64ch; margin-top: 14px; }
.job { padding: 16px 0; border-bottom: 1px solid var(--line); }
.job:first-of-type { border-top: 1px solid var(--line); }
.job header, .job .head { position: static; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; height: auto; padding: 0; background: none; }
.job .co { font-weight: 600; }
.job .role { color: var(--muted); font-size: 13px; margin-top: 2px; }
.job .yr { font-family: var(--mono); font-size: 11px; color: var(--faint); white-space: nowrap; }
.job ul { margin: 10px 0 0 18px; }
.job li { line-height: 1.55; margin-top: 4px; font-size: 14px; max-width: 84ch; }
.skills dt { font-weight: 600; margin-top: 12px; }
.skills dd { color: var(--muted); line-height: 1.55; max-width: 84ch; }

@media (max-width: 760px) {
  .list .item { grid-template-columns: 1fr auto; }
  .list .item .role { grid-column: 1; grid-row: 2; }
  .page h1 { font-size: 26px; }
  .cases { grid-template-columns: 1fr; }
  .ugc .reels { grid-template-columns: 1fr 1fr; }
  .topnav { gap: 12px; }
  .seg button, .seg a { padding: 4px 9px; }
}

@media print {
  :root, :root[data-theme="dark"] { --ink: #111; --muted: #444; --faint: #777; --line: #ddd; --bg: #fff; color-scheme: light; }
  html, body { background: #fff !important; color: #111 !important; }
  aside, body > header, .resume-actions, .cursor { display: none !important; }
  main { margin: 0 !important; padding: 0 !important; }
  body { font-size: 10.5px; }
  .page { max-width: none; }
  .page h1 { font-size: 20px; }
  .page .sub { font-size: 10.5px; margin-top: 2px; }
  .page section { margin-top: 10px; }
  .page .label { margin-bottom: 4px; font-size: 9px; }
  .resume .summary { color: #333; font-size: 10.5px; line-height: 1.45; margin-top: 6px; max-width: none; }
  .job { padding: 5px 0; break-inside: avoid; }
  .job .role { font-size: 10px; margin-top: 0; }
  .job ul { margin: 3px 0 0 14px; }
  .job li { font-size: 10px; line-height: 1.35; margin-top: 1px; }
  .skills dt { margin-top: 4px; font-size: 10.5px; }
  .skills dd { font-size: 10px; line-height: 1.4; }
  a { color: inherit; text-decoration: none; }
  @page { size: letter; margin: 11mm 13mm; }
}
.lede-s { font-size: 15px; line-height: 1.6; max-width: 46ch; }

/* ---------- Floating nav: once the case studies reach the top, the nav glides to center as a glass pill ---------- */
header { transition: background-color .3s, box-shadow .3s; }
.topnav { transition: transform .55s cubic-bezier(.3,.9,.25,1); will-change: transform; }
.seg { transition: background-color .3s, box-shadow .3s, padding .3s; }
header.floating { background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; pointer-events: none; }
header.floating > * { pointer-events: auto; }
header.floating .seg, header.floating .theme-btn {
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.12);
}
header.floating .seg { padding: 3px; border-radius: 11px; }
header.floating .seg .thumb { top: 3px; bottom: 3px; border-radius: 8px; }
header.floating .theme-btn { width: 34px; height: 34px; border-radius: 50%; }
:root[data-theme="dark"] header.floating .seg, :root[data-theme="dark"] header.floating .theme-btn {
  background: rgba(36,36,38,.72); box-shadow: 0 0 0 .5px rgba(255,255,255,.1), 0 8px 24px rgba(0,0,0,.4);
}
@media (max-width: 760px) {
  .theme-btn { transition: opacity .25s, background-color .15s; }
  header.floating .theme-btn { opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) { .topnav { transition: none; } }

/* ---------- Case study pages ---------- */
.cs { max-width: 880px; }
.cs .eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.cs h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; margin-top: 10px; max-width: 20ch; }
.cs .dek { font-size: 17px; line-height: 1.55; color: var(--muted); margin-top: 14px; max-width: 58ch; }
.cs .facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.cs .facts dt { font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.cs .facts dd { font-size: 13.5px; line-height: 1.45; margin-top: 4px; }
.cs .hero-media { margin-top: 28px; }
.cs .hero-media .media { aspect-ratio: 16 / 10; max-height: none; }

.impact { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 1px; margin-top: 36px; border-radius: 18px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.impact div { background: var(--bg); padding: 18px 16px; }
.impact b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.impact span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.4; }

.tldr { margin-top: 36px; border-radius: 18px; padding: 20px 22px; background: #f5f5f7; }
:root[data-theme="dark"] .tldr { background: #1c1c1e; }
.tldr .eyebrow { margin-bottom: 12px; }
.tldr dl { display: grid; grid-template-columns: 110px 1fr; gap: 10px 18px; }
.tldr dt { font-weight: 600; font-size: 14px; }
.tldr dd { font-size: 14px; line-height: 1.55; color: var(--muted); }

.cs section { margin-top: 72px; }
.cs h2 { font-size: 26px; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; margin-top: 8px; max-width: 26ch; }
.cs .prose { margin-top: 14px; max-width: 64ch; }
.cs .prose p { font-size: 16px; line-height: 1.65; }
.cs .prose p + p { margin-top: 12px; }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.quotes figure { border-radius: 16px; padding: 16px; background: #f5f5f7; }
:root[data-theme="dark"] .quotes figure { background: #1c1c1e; }
.quotes blockquote { font-size: 14.5px; line-height: 1.5; font-weight: 500; }
.quotes figcaption { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); margin-top: 10px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.stats div { border-top: 1px solid var(--line); padding-top: 10px; }
.stats b { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.stats span { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.45; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.steps li { list-style: none; border-radius: 16px; padding: 16px; border: 1px solid var(--line); }
.steps li::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--faint); }
.steps b { display: block; font-size: 15px; margin-top: 6px; }
.steps span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-top: 4px; }

.decisions { margin-top: 24px; border-top: 1px solid var(--line); }
.decisions div { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.decisions b { font-size: 15px; font-weight: 600; line-height: 1.45; }
.decisions span { font-size: 14px; color: var(--muted); line-height: 1.55; }

.feature { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: center; margin-top: 40px; }
.feature.flip { grid-template-columns: 1fr 1.35fr; }
.feature.flip .fig { order: 2; }
.feature .tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.feature h3 { font-size: 20px; font-weight: 600; letter-spacing: -.015em; margin-top: 6px; }
.feature p { font-size: 15px; line-height: 1.6; color: var(--muted); margin-top: 8px; }
.feature .why { margin-top: 12px; padding-left: 12px; border-left: 2px solid var(--ink); font-size: 14px; color: var(--ink); line-height: 1.55; }
.fig .media { max-height: none; }
.fig.wide .media { aspect-ratio: 1036 / 720; }
.fig.phone .media { aspect-ratio: 9 / 19.5; max-width: 300px; margin: 0 auto; border-radius: 28px; }
.fig img.still { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.fig figcaption, .cap-s { font-size: 12.5px; color: var(--faint); margin-top: 8px; }

.gallery { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 12px; margin-top: 24px; align-items: start; }
.gallery img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.gallery .phone { border-radius: 22px; }

.scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.scores > div { border-radius: 16px; padding: 16px; border: 1px solid var(--line); }
.scores b { font-size: 30px; font-weight: 600; letter-spacing: -.03em; }
.scores b small { font-size: 15px; color: var(--faint); font-weight: 500; }
.scores .bar { height: 4px; border-radius: 99px; background: var(--chip); margin: 10px 0; overflow: hidden; }
.scores .bar i { display: block; height: 100%; background: var(--ink); border-radius: inherit; }
.scores p { font-size: 13.5px; line-height: 1.45; }
.scores p + p { color: var(--muted); margin-top: 4px; font-size: 13px; }

.photo { margin-top: 24px; }
.photo img { display: block; width: 100%; height: auto; border-radius: 16px; }

.next { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 88px; padding: 22px; border-radius: 18px; background: #f5f5f7; text-decoration: none; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
:root[data-theme="dark"] .next { background: #1c1c1e; }
.next:hover { transform: translateY(-2px); }
.next .eyebrow { display: block; }
.next b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-top: 4px; }
.next .arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--bg); flex: none; }

@media (max-width: 760px) {
  .cs .facts { grid-template-columns: 1fr 1fr; }
  .impact { grid-template-columns: 1fr 1fr; }
  .tldr dl { grid-template-columns: 1fr; gap: 2px 0; }
  .tldr dd { margin-bottom: 10px; }
  .quotes, .steps, .scores { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .decisions div { grid-template-columns: 1fr; gap: 4px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 14px; }
  .feature.flip .fig { order: 0; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
.fig.phone-still img { display: block; max-width: 300px; width: 100%; margin: 0 auto; border-radius: 30px; border: 1px solid var(--line); }
.gallery img.phone { border-radius: 22px; }

/* ---------- Case study layout: no sidebar, article centered under the nav ---------- */
body.case header { left: 0; justify-content: center; padding: 0 var(--gutter); }
body.case .theme-btn { position: absolute; right: var(--gutter); }
body.case main { margin-left: 0; padding: 72px var(--gutter) 96px; }
body.case .cs { margin: 0 auto; }
@media (max-width: 760px) {
  body.case main { padding-top: 24px; }
}
.back-btn {
  position: absolute; left: var(--gutter); display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px 0 9px; border-radius: 99px; background: var(--chip); color: var(--ink);
  font-size: 12.5px; font-weight: 500; text-decoration: none; transition: background-color .15s, transform .15s;
}
.back-btn:hover { background: var(--chip-hover); }
.back-btn:active { transform: scale(.96); }
.back-btn svg { width: 15px; height: 15px; transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.back-btn:hover svg { transform: translateX(-2px); }
@media (max-width: 760px) { body.case .seg a { padding: 4px 7px; font-size: 12px; } .back-btn { padding: 0 9px; } .back-btn span { display: none; } }

/* ---------- Case study table of contents ---------- */
.cs, .cs section { scroll-margin-top: 84px; }
.toc-label { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 0 0 8px 10px; }
.toc ol { list-style: none; }
.toc a { display: flex; align-items: baseline; gap: 10px; padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .15s, background-color .2s; }
.toc a span { font-family: var(--mono); font-size: 10px; color: var(--faint); transition: color .15s; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--ink); background: var(--chip); }
.toc a[aria-current="true"] span { color: var(--ink); }
.toc-progress { height: 3px; margin: 12px 10px 0; border-radius: 99px; background: var(--chip); overflow: hidden; }
.toc-progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ink); }

/* wide: fixed column on the left, article shifted right */
@media (min-width: 1100px) {
  body.case main { padding-left: calc(var(--gutter) + 210px); padding-right: calc(var(--gutter) + 40px); }
  .toc { position: fixed; top: 76px; left: var(--gutter); width: 190px; }
}
/* narrower: a sticky row of chips under the nav */
@media (max-width: 1099px) {
  .toc {
    position: sticky; top: 44px; z-index: 4; display: flex; align-items: center; gap: 4px;
    margin: -8px calc(var(--gutter) * -1) 24px; padding: 8px var(--gutter);
    background: var(--header-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: .5px solid var(--line); overflow-x: auto; scrollbar-width: none;
  }
  .toc::-webkit-scrollbar { display: none; }
  .toc-label, .toc-progress { display: none; }
  .toc ol { display: flex; gap: 4px; }
  .toc a { white-space: nowrap; padding: 5px 10px; font-size: 12.5px; }
  .toc a span { display: none; }
}
@media (max-width: 760px) { .toc { top: 48px; } }
img[width][height] { height: auto; }
@media (max-width: 1099px) { .cs, .cs section { scroll-margin-top: 104px; } }

/* ---------- iPhone 17 Pro Max mockup (pure CSS; screen ratio 1320:2868) ---------- */
.iphone {
  position: relative; width: 100%; max-width: 280px; margin: 0 auto; padding: 0;
  border-radius: 15.5% / 7.2%;
  box-shadow:
    0 0 0 1.5px #d4d5d8, 0 0 0 3.5px #a9abaf, 0 0 0 4px #7c7e82,
    0 34px 60px -24px rgba(0,0,0,.38), 0 16px 30px -18px rgba(0,0,0,.28);
}
:root[data-theme="dark"] .iphone { box-shadow: 0 0 0 1.5px #8d8f93, 0 0 0 3.5px #5e6064, 0 0 0 4px #3b3c3f, 0 34px 60px -24px rgba(0,0,0,.7); }
.iphone .side { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #8e9094, #cfd0d3 60%, #9a9ca0); }
:root[data-theme="dark"] .iphone .side { background: linear-gradient(90deg, #4a4b4e, #85878b 60%, #55575a); }
.iphone .side.action { left: -6px; top: 15.5%; height: 4.2%; }
.iphone .side.vol-up { left: -6px; top: 22.5%; height: 7.4%; }
.iphone .side.vol-down { left: -6px; top: 31%; height: 7.4%; }
.iphone .side.power { right: -6px; top: 25%; height: 11%; }
.iphone .screen { position: relative; aspect-ratio: 1320 / 2868; border-radius: inherit; overflow: hidden; background: #fff; isolation: isolate; }
.iphone .screen > img, .iphone .screen .media, .iphone .screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.iphone .screen .media { aspect-ratio: auto; max-height: none; border-radius: 0; background: #fff; cursor: default; }
.iphone .screen .media::after { display: none; }
/* scale content a hair past the screen edge so recorded edge lines and corners stay hidden */
.iphone .screen > img, .iphone .screen video { transform: scale(1.03); transform-origin: 50% 50%; }
/* recordings that include their own Dynamic Island: draw ours large enough to cover it */
.iphone.island-lg .island { top: 1.1%; width: 33%; height: 4.6%; }
.iphone .island { position: absolute; z-index: 3; top: 1.25%; left: 50%; width: 29%; height: 3.8%; transform: translateX(-50%); border-radius: 99px; background: #000; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.04); }
.iphone .island::after { content: ""; position: absolute; right: 13%; top: 50%; width: 22%; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2b3a55, #0b0e15 60%); }

.stage { display: flex; justify-content: center; align-items: center; gap: clamp(20px, 5vw, 56px); padding: clamp(28px, 5vw, 56px) 20px; border-radius: 24px; background: #f5f5f7; }
:root[data-theme="dark"] .stage { background: #1c1c1e; }
.stage .iphone { max-width: 250px; }
.fig .iphone { max-width: 270px; }
.gallery .iphone { max-width: none; }
.gallery.phones { gap: clamp(14px, 3vw, 28px); padding: 8px 6px 0; }
@media (max-width: 760px) { .stage .iphone { max-width: 42vw; } .gallery.phones { grid-template-columns: 1fr 1fr; } }

/* ================= Case study interactions ================= */
/* reveal */
.cs-js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.cs-js .rv.in { opacity: 1; transform: none; }
/* score bars fill when revealed */
.cs-js .scores > div .bar i { transition: width 1.1s cubic-bezier(.2,.8,.2,1) .2s; }
.cs-js .scores > div:not(.in) .bar i { width: 0 !important; }
/* reading progress */
.read-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 30; height: 2px; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
/* phone tilt + glare */
.iphone { transition: transform .5s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.iphone.tilting { transition: transform .12s ease-out; }
.iphone .glare { position: absolute; inset: 0; z-index: 4; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255,255,255,.28), rgba(255,255,255,0) 45%); mix-blend-mode: soft-light; }
.iphone.tilting .glare { opacity: 1; }

/* demo shell */
.demo { margin-top: 32px; border-radius: 24px; border: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.demo-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.demo-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.demo-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 0 rgba(52,199,89,.5); animation: pulse 2.4s infinite; }
.demo-title { font-size: 17px; font-weight: 600; letter-spacing: -.015em; margin-top: 6px; }
.demo-note { font-size: 12.5px; color: var(--faint); }
.demo-body { padding: 22px 20px; background: #f5f5f7; }
:root[data-theme="dark"] .demo-body { background: #151517; }
.pills { display: inline-flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--chip); }
.pills button { padding: 6px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 500; color: var(--muted); transition: background-color .2s, color .2s, box-shadow .2s; }
.pills button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
:root[data-theme="dark"] .pills button[aria-pressed="true"] { background: #3a3a3c; }
.demo input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--ink) var(--p, 50%), rgba(120,120,128,.25) var(--p, 50%)); }
.demo input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3), 0 0 0 .5px rgba(0,0,0,.1); transition: transform .15s; }
.demo input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12); }
.demo input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.demo input[type=range]:focus-visible { box-shadow: 0 0 0 3px rgba(10,132,255,.4); }
.btn-s { padding: 9px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; background: var(--chip); color: var(--ink); transition: transform .12s, background-color .2s; }
.btn-s:active { transform: scale(.97); }
.btn-s.primary { background: #0a84ff; color: #fff; }
.btn-s.done { background: #34c759; color: #fff; }

/* WellFit: repay score */
.rp-card { max-width: 520px; margin: 0 auto; border-radius: 18px; background: var(--bg); padding: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.06); --band: #ff453a; }
.rp-card[data-band="med"] { --band: #ff9f0a; } .rp-card[data-band="high"] { --band: #30d158; }
.rp-top { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.rp-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--band); align-self: center; transition: background-color .3s; box-shadow: 0 0 0 5px color-mix(in srgb, var(--band) 20%, transparent); }
.rp-num { font-size: 56px; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.rp-of { font-size: 18px; color: var(--faint); }
.rp-band { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--band); background: color-mix(in srgb, var(--band) 14%, transparent); padding: 3px 9px; border-radius: 99px; transition: color .3s, background-color .3s; }
.rp-scale { display: grid; grid-template-columns: 4fr 3fr 3fr; gap: 3px; margin: 16px 0 12px; }
.rp-seg { padding: 7px 4px; text-align: center; font-size: 11px; font-weight: 600; color: #fff; opacity: .35; transition: opacity .3s, transform .3s; }
.rp-seg:nth-child(1) { background: #ff453a; border-radius: 8px 0 0 8px; } .rp-seg:nth-child(2) { background: #ff9f0a; } .rp-seg:nth-child(3) { background: #30d158; border-radius: 0 8px 8px 0; }
.rp-seg.on { opacity: 1; transform: translateY(-2px); }
.rp-msg { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 14px; min-height: 2.6em; }
.rp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }

/* WellFit: plan builder */
.pl { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.pl-controls p { font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 0 6px; }
.pl-controls .pills { margin-bottom: 16px; }
.pl-out { border-radius: 18px; background: var(--bg); padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.pl-amount { font-size: 44px; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.pl-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.pl-dots { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 14px; }
.pl-dots i { width: 10px; height: 10px; border-radius: 3px; background: #0a84ff; animation: pop .35s cubic-bezier(.2,.9,.3,1.4) both; }
.pl-before { font-size: 12.5px; color: var(--faint); margin-top: 12px; }
.pl-before s { color: #ff453a; }
@keyframes pop { from { transform: scale(0); opacity: 0; } }

/* Biscuit Beacon: bars */
.bars-list { display: grid; gap: 12px; }
.bars-row { display: grid; grid-template-columns: minmax(150px, 1.2fr) 2fr 44px; gap: 12px; align-items: center; }
.bl { font-size: 13.5px; }
.bt { height: 10px; border-radius: 99px; background: rgba(120,120,128,.18); overflow: hidden; }
.bt i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #8b5a2b, #c8893e); transition: width 1s cubic-bezier(.2,.8,.2,1); }
.bars-list.go .bt i { width: var(--w); }
.bars-list .bars-row:nth-child(2) i { transition-delay: .08s; } .bars-list .bars-row:nth-child(3) i { transition-delay: .16s; } .bars-list .bars-row:nth-child(4) i { transition-delay: .24s; }
.bars-row b { font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; }

/* Biscuit Beacon: walk */
.wk { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: stretch; --bb: #7a4f24; --bb2: #f3e6d1; --bb3: #f5c542; }
.wk-map { position: relative; border-radius: 18px; overflow: hidden; background: #eceae6; min-height: 240px; }
:root[data-theme="dark"] .wk-map { background: #2a2826; }
.wk-map svg { display: block; width: 100%; height: 100%; }
.wk-streets line { stroke: #fff; stroke-width: 10; stroke-linecap: round; }
:root[data-theme="dark"] .wk-streets line { stroke: #3a3734; }
.wk-route { fill: none; stroke: rgba(122,79,36,.25); stroke-width: 6; stroke-dasharray: 2 9; stroke-linecap: round; stroke-linejoin: round; }
.wk-trail { fill: none; stroke: var(--bb); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.wk-dog circle:first-child { fill: rgba(245,197,66,.35); } .wk-dog circle:nth-child(2) { fill: var(--bb); } .wk-dog circle:nth-child(3) { fill: #fff; }
.wk-pin { fill: #e5484d; }
.wk-toast { position: absolute; left: 50%; top: 14px; transform: translate(-50%, -140%); padding: 8px 14px; border-radius: 99px; background: var(--bb2); color: var(--bb); font-size: 13px; font-weight: 600; box-shadow: 0 6px 18px rgba(0,0,0,.12); white-space: nowrap; transition: transform .45s cubic-bezier(.2,.9,.3,1.3); }
.wk-toast.show { animation: toast 2.6s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes toast { 0% { transform: translate(-50%, -140%); } 12%, 82% { transform: translate(-50%, 0); } 100% { transform: translate(-50%, -140%); } }
.wk-panel { border-radius: 18px; background: var(--bb2); color: #3b2610; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.wk-panel .pills { background: rgba(122,79,36,.12); }
.wk-panel .pills button { color: #7a4f24; } .wk-panel .pills button[aria-pressed="true"] { background: #fff; color: #3b2610; }
.wk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wk-stats div { border-radius: 12px; background: rgba(255,255,255,.7); padding: 10px; text-align: center; }
.wk-stats span { display: block; font-size: 11px; color: #7a4f24; }
.wk-stats b { font-size: 20px; font-variant-numeric: tabular-nums; }
.wk-ring { height: 8px; border-radius: 99px; background: rgba(122,79,36,.15); overflow: hidden; }
.wk-ring i { display: block; height: 100%; width: var(--p, 0%); background: var(--bb3); border-radius: inherit; }
.wk-btns { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; margin-top: auto; }
.wk-btns .wk-start { background: var(--bb); color: #fff; } .wk-btns .wk-reset { background: rgba(255,255,255,.7); color: #3b2610; }
.wk.done .wk-start { background: #2f9e44; }

/* Thrive: iterations */
.it-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.it-tabs button { flex: none; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); min-width: 150px; transition: border-color .2s, box-shadow .2s; }
.it-tabs button span { display: block; font-family: var(--mono); font-size: 10px; color: var(--faint); }
.it-tabs button b { font-size: 13px; font-weight: 600; }
.it-tabs button[aria-selected="true"] { border-color: #3d6aa3; box-shadow: 0 0 0 1px #3d6aa3; }
.it-panel[hidden] { display: none; }
.it-panel { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 24px; align-items: center; }
.it-phone { border-radius: 26px; overflow: hidden; background: #fff; color: #111; box-shadow: 0 0 0 1.5px #d4d5d8, 0 0 0 3.5px #a9abaf, 0 20px 40px -16px rgba(0,0,0,.3); }
.it-q { background: #3d6aa3; color: #fff; padding: 22px 18px 18px; text-align: center; font-size: 15px; font-weight: 600; line-height: 1.35; }
.it-a { padding: 20px 18px 24px; text-align: center; }
.it-a p { font-size: 13.5px; font-weight: 600; margin-bottom: 14px; }
.it-yn { display: inline-grid; grid-template-columns: 1fr 1fr; border: 1.5px solid #111; border-radius: 8px; overflow: hidden; }
.it-yn button { padding: 8px 22px; font-weight: 600; color: #111; } .it-yn button + button { border-left: 1.5px solid #111; }
.it-yn button[aria-pressed="true"], .it-faces button[aria-pressed="true"] { background: #3d6aa3; color: #fff; }
.it-faces { display: flex; justify-content: center; gap: 6px; }
.it-faces button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; transition: transform .15s, background-color .2s; }
.it-faces button:hover { transform: scale(1.1); }
.it-faces svg { width: 30px; height: 30px; }
.it-out { font-size: 12.5px; color: #555; margin-top: 12px; min-height: 1.4em; }
.it-verdict b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.it-verdict p { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin-top: 6px; }
.it-verdict .win { display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: #34c759; padding: 3px 9px; border-radius: 99px; }
.it-phone input[type=range] { --ink: #3d6aa3; }
.cf-fig { display: block; margin: 0 auto 6px; width: 92px; height: 92px; }
.cf-fig .ray { stroke: #f5c542; stroke-width: 4; stroke-linecap: round; opacity: var(--rays, .5); transition: opacity .3s; }
.cf-fig .head { fill: #f28b82; transition: fill .3s; } .cf-fig .body { fill: #7dd3c0; }
.cf-fig[data-level="mid"] .head { fill: #f6ad55; } .cf-fig[data-level="high"] .head { fill: #f5c542; }
.cf-slider { position: relative; padding-top: 30px; }
.cf-bubble { position: absolute; top: 0; transform: translateX(-50%); padding: 2px 8px; border-radius: 8px; background: #3d6aa3; color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cf-labels { display: flex; justify-content: space-between; font-size: 11px; color: #666; margin-top: 8px; }
.cf-msg { font-size: 13px; color: #333; margin-top: 12px; min-height: 3.9em; line-height: 1.45; }
.cf-go { margin-top: 6px; padding: 8px 18px; border-radius: 99px; background: #3d6aa3; color: #fff; font-size: 13px; font-weight: 600; }

/* Done Desk: tracker */
.tr { border-radius: 18px; background: var(--bg); box-shadow: 0 10px 30px rgba(0,0,0,.06); overflow: hidden; }
.tr-bar-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tr-title { font-weight: 600; font-size: 14px; } .tr-title span { display: block; font-weight: 400; font-size: 12px; color: var(--faint); }
.tr-body { padding: 16px; }
.tr-h { font-size: 11px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.tr-check { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; cursor: pointer; }
.tr-check input { width: 16px; height: 16px; accent-color: #1f6feb; }
.tr-check small { display: block; font-size: 11.5px; color: var(--faint); }
.tr-check em { font-style: normal; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.tr-check:has(input:checked) span { color: var(--faint); text-decoration: line-through; }
.tr-top { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; margin-bottom: 14px; }
.tr-ring { width: 120px; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, var(--bg) 78%, transparent 79%), conic-gradient(#1f6feb var(--p), rgba(120,120,128,.18) 0); transition: background .6s; }
.tr-ring b { font-size: 28px; font-weight: 700; letter-spacing: -.03em; } .tr-ring span { font-size: 11px; color: var(--faint); }
.tr-next { border-radius: 14px; background: #f0f6ff; padding: 14px; }
:root[data-theme="dark"] .tr-next { background: #13233a; }
.tr-next-c { font-weight: 600; font-size: 15px; } .tr-next-r { font-size: 12.5px; color: var(--muted); margin: 2px 0 10px; }
.tr-do { padding: 7px 12px; border-radius: 8px; background: #1f6feb; color: #fff; font-size: 12.5px; font-weight: 600; }
.tr-req { padding: 12px 0; border-top: 1px solid var(--line); }
.tr-req-h { display: flex; justify-content: space-between; align-items: center; }
.tr-req-h b { font-size: 14px; }
.tr-chip { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.tr-chip.ns { background: rgba(120,120,128,.15); color: var(--muted); } .tr-chip.ip { background: #fff4d6; color: #9a6700; } .tr-chip.ok { background: #dafbe1; color: #1a7f37; }
.tr-bar { height: 6px; border-radius: 99px; background: rgba(120,120,128,.18); margin: 8px 0 4px; overflow: hidden; }
.tr-bar i { display: block; height: 100%; width: var(--w); background: #1f6feb; border-radius: inherit; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.tr-req-n { font-size: 11.5px; color: var(--faint); margin-bottom: 4px; }
.tr-foot { font-size: 13px; color: var(--muted); padding: 12px 16px; border-top: 1px solid var(--line); }
.tr-foot b { color: var(--ink); }

@media (max-width: 760px) {
  .pl, .wk, .it-panel { grid-template-columns: 1fr; }
  .bars-row { grid-template-columns: 1fr 44px; } .bars-row .bt { grid-column: 1 / -1; grid-row: 2; }
  .tr-top { grid-template-columns: 96px 1fr; } .tr-ring { width: 96px; }
}
@media (prefers-reduced-motion: reduce) { .cs-js .rv { opacity: 1; transform: none; } .iphone { transition: none; } }

/* Biscuit Beacon: competitive analysis switcher */
.ca-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ca-tabs button { text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); transition: border-color .2s, box-shadow .2s, transform .15s; }
.ca-tabs button:hover { transform: translateY(-1px); }
.ca-tabs button b { display: block; font-size: 14px; font-weight: 600; }
.ca-tabs button span { display: block; font-size: 12px; color: var(--faint); margin-top: 2px; }
.ca-tabs button[aria-selected="true"] { border-color: #7a4f24; box-shadow: 0 0 0 1px #7a4f24; }
.ca-panel { display: grid; grid-template-columns: minmax(0, 250px) 1fr; gap: 32px; align-items: center; margin-top: 22px; animation: caIn .45s cubic-bezier(.2,.8,.2,1); }
.ca-panel[hidden] { display: none; }
@keyframes caIn { from { opacity: 0; transform: translateY(10px); } }
.ca-phone .iphone { max-width: 230px; }
.ca-name { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.ca-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 18px; }
.ca-stats div { border-radius: 14px; background: var(--bg); padding: 12px 14px; }
.ca-stats b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.ca-stats span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.ca-h { font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.ca-t { font-size: 14.5px; line-height: 1.55; }
.ca-borrow { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #f3e6d1; color: #3b2610; }
:root[data-theme="dark"] .ca-borrow { background: #3a2c1c; color: #f3e6d1; }
.ca-borrow .ca-h { color: #7a4f24; } :root[data-theme="dark"] .ca-borrow .ca-h { color: #d9b98c; }
.ca-sum { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }
.ca-sum span { padding: 5px 10px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); }
.ca-sum i { font-style: normal; color: var(--faint); }
.ca-sum b { padding: 5px 12px; border-radius: 99px; background: #7a4f24; color: #fff; font-weight: 600; }
/* original exploration illustration */
.ex-screen { position: absolute; inset: 0; }
.ex-screen svg { width: 100%; height: 100%; display: block; }
.ex-route { animation: exDash 1.2s linear infinite; }
@keyframes exDash { to { stroke-dashoffset: -24; } }
.ex-stop { animation: exBob 2.2s ease-in-out infinite; } .ex-stop:nth-of-type(2) { animation-delay: -.7s; } .ex-stop:nth-of-type(3) { animation-delay: -1.4s; }
@keyframes exBob { 50% { transform: translate(var(--x, 0), -4px); } }
.ex-chip { position: absolute; top: 11%; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.92); font-size: 10.5px; font-weight: 600; color: #111; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.ex-hud { position: absolute; left: 6%; right: 6%; bottom: 5%; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #111; }
.ex-hud b { display: block; font-size: 11.5px; } .ex-hud span { display: block; font-size: 10px; color: #555; }
.ex-ring { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(closest-side, #fff 76%, transparent 77%), conic-gradient(#f59e0b 70%, #e5e7eb 0); }
.ex-ring b { font-size: 13px; line-height: 1; } .ex-ring span { font-size: 8px; }
@media (max-width: 760px) {
  .ca-tabs { grid-template-columns: 1fr 1fr 1fr; } .ca-tabs button { padding: 10px; } .ca-tabs button span { display: none; }
  .ca-panel { grid-template-columns: 1fr; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) { .ex-route, .ex-stop, .ca-panel { animation: none; } }

/* Biscuit Beacon walk: beacons, coins, header HUD */
.gallery.phones { margin-top: 72px; }
.wk-map { min-height: 300px; background: #f1f0ec; }
.wk-map svg { position: absolute; inset: 0; }
.wk-names text { font-size: 8px; fill: #9a968f; font-family: var(--sans); }
:root[data-theme="dark"] .wk-names text { fill: #77736d; }
.wk-hud { position: absolute; z-index: 2; left: 10px; right: 10px; top: 10px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.wk-near, .wk-coins { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.08); font-size: 12px; font-weight: 600; color: #6b4520; }
.wk-coins b { font-variant-numeric: tabular-nums; min-width: 2.2em; transition: transform .15s; }
.wk-coins.bump b { transform: scale(1.18); }
.coin { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe28a, #f5c542 55%, #d99a14); box-shadow: inset 0 0 0 1.5px #e0a800; }
.wk-toast { top: auto; bottom: 12px; z-index: 3; }
.wk-toast.show { animation-name: toastUp; }
@keyframes toastUp { 0% { transform: translate(-50%, 160%); } 12%, 82% { transform: translate(-50%, 0); } 100% { transform: translate(-50%, 160%); } }
.wk-beacon .pin { transform-box: fill-box; transform-origin: 50% 100%; animation: pinIdle 2.6s ease-in-out infinite; }
.wk-beacon:nth-child(2) .pin { animation-delay: -.6s; } .wk-beacon:nth-child(3) .pin { animation-delay: -1.2s; } .wk-beacon:nth-child(4) .pin { animation-delay: -1.8s; }
@keyframes pinIdle { 50% { transform: translateY(-3px); } }
.pin-body { fill: #8a5a2b; stroke: #6b4520; stroke-width: 1; }
.pin-bone rect, .pin-bone circle { fill: #8a5a2b; }
.wk-beacon.got .pin { animation: pinHit .6s cubic-bezier(.2,.9,.3,1.5) both; }
.wk-beacon.got .pin-body { fill: #6b4520; }
@keyframes pinHit { 0% { transform: scale(1); } 40% { transform: scale(1.35) translateY(-4px); } 100% { transform: scale(1.1); } }
.pin-label { opacity: 0; }
.pin-label rect { fill: #f3e6d1; stroke: #b08457; stroke-width: 1; }
.pin-label text { font-size: 7px; font-weight: 700; letter-spacing: .06em; fill: #6b4520; text-anchor: middle; font-family: var(--sans); }
.wk-beacon.got .pin-label { animation: labelPop 2.2s ease both; }
@keyframes labelPop { 0% { opacity: 0; } 12%, 70% { opacity: 1; } 100% { opacity: 0; } }
.pin-plus { opacity: 0; }
.pin-plus circle { fill: #f5c542; stroke: #d99a14; stroke-width: 1; }
.pin-plus text { font-size: 5.5px; font-weight: 800; fill: #6b4520; text-anchor: middle; font-family: var(--sans); }
.wk-beacon.got .pin-plus { animation: coinUp 1.2s ease-out both; }
@keyframes coinUp { 0% { opacity: 0; transform: translate(0, -44px) scale(.6); } 25% { opacity: 1; transform: translate(0, -54px) scale(1.15); } 100% { opacity: 0; transform: translate(0, -78px) scale(1); } }
.wk-dog circle:first-child { fill: rgba(245,197,66,.35); } .wk-dog circle:nth-child(2) { fill: #f3e6d1; stroke: #8a5a2b; stroke-width: 2; }
.wk-dog path { fill: none; stroke: #6b4520; stroke-width: 1.4; stroke-linecap: round; }
.wk-stats b { font-size: 18px; }
@media (prefers-reduced-motion: reduce) { .wk-beacon .pin, .wk-beacon.got .pin, .wk-beacon.got .pin-plus { animation: none; } }

/* Thrive: confidence flow matching the prototype */
.cf2 { position: relative; aspect-ratio: 564 / 1100; max-width: 300px; width: 100%; }
.cf2-q, .cf2-r { position: absolute; inset: 0; display: flex; flex-direction: column; transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
.cf2[data-screen="q"] .cf2-r, .cf2[data-screen="r"] .cf2-q { opacity: 0; pointer-events: none; }
.cf2[data-screen="q"] .cf2-r { transform: translateX(8%); }
.cf2[data-screen="r"] .cf2-q { transform: translateX(-4%); }
.cf2-head { background: #3b6294; color: #fff; text-align: center; padding: 11% 10% 0; flex: 0 0 47%; display: flex; flex-direction: column; align-items: center; }
.cf2-head p { font-size: 15px; font-weight: 600; line-height: 1.28; }
.cf2-head img { width: 44%; height: auto; margin-top: auto; }
.cf2-body { flex: 1; background: #fcfcfc; color: #111; text-align: center; padding: 9% 9% 0; }
.cf2-body > p:first-child { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.cf2-range { margin-top: 22%; --ink: #3b6294; }
.cf2 input[type=range]::-webkit-slider-thumb { width: 22px; height: 22px; background: #3b6294; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.cf2 input[type=range]::-moz-range-thumb { width: 22px; height: 22px; background: #3b6294; }
.cf2 input[type=range] { background: linear-gradient(90deg, #3b6294 var(--p, 0%), #d9d9d9 var(--p, 0%)); height: 7px; }
.cf2-hint { font-size: 11.5px; color: #8a8a8a; margin-top: 14px; }
.cf2-r { background: #fcfcfc; color: #111; align-items: center; text-align: center; padding: 16% 8% 0; }
.cf2-back { position: absolute; left: 7%; top: 5%; width: 32px; height: 32px; display: grid; place-items: center; color: #333; border-radius: 50%; }
.cf2-back svg { width: 20px; height: 20px; }
.cf2-back:hover { background: #eee; }
.cf2-img { width: 92%; height: auto; }
.cf2-msg { font-size: 14.5px; font-weight: 600; line-height: 1.35; margin-top: 8%; min-height: 4em; }
.cf2-next { display: inline-flex; align-items: center; gap: 8px; margin-top: 6%; padding: 8px 18px; border-radius: 99px; background: #3b6294; color: #fff; font-size: 12.5px; font-weight: 600; transition: transform .12s; }
.cf2-next:active { transform: scale(.96); }
.cf2-next svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .cf2-q, .cf2-r { transition: none; transform: none !important; } }

/* Thrive: target audience */
.ta { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; margin-top: 24px; }
.ta-stat { border-radius: 18px; padding: 20px; background: #3b6294; color: #fff; }
.ta-stat b { display: block; font-size: 48px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.ta-stat > span { display: block; font-size: 14px; line-height: 1.45; margin-top: 8px; opacity: .9; }
.ta-people { display: flex; gap: 10px; margin-top: 16px; }
.ta-people i { display: block; width: 30px; height: 40px; }
.ta-people svg { width: 100%; height: 100%; fill: rgba(255,255,255,.22); }
.ta-people i.on svg { fill: #f5c542; }
.ta-needs { border-radius: 18px; padding: 18px 20px; background: #f5f5f7; }
:root[data-theme="dark"] .ta-needs { background: #1c1c1e; }
.ta-needs ul { list-style: none; margin-top: 6px; }
.ta-needs li { padding: 9px 0; border-top: 1px solid var(--line); }
.ta-needs li:first-child { border-top: 0; }
.ta-needs li b { display: block; font-size: 14.5px; }
.ta-needs li span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.personas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.persona { display: flex; gap: 14px; border-radius: 18px; padding: 16px; border: 1px solid var(--line); }
.persona .avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #e8eef7; color: #3b6294; font-weight: 700; font-size: 14px; }
:root[data-theme="dark"] .persona .avatar { background: #1f2a3b; color: #9db8e0; }
.persona b { font-size: 15px; } .persona .meta { font-family: var(--mono); font-size: 10.5px; letter-spacing: .02em; color: var(--faint); margin: 2px 0 6px; }
.persona p:last-child { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 760px) { .ta, .personas { grid-template-columns: 1fr; } }
img.avatar { object-fit: cover; }
.persona .avatar { width: 56px; height: 56px; }

.ta { grid-template-columns: 1fr; } .ta-stat { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; }
.ta-stat > span { margin-top: 0; } .ta-people { margin-top: 0; }
@media (max-width: 760px) { .ta-stat { grid-template-columns: 1fr; } }

/* AI-generated opening films + paired phones */
.hero-film .media { aspect-ratio: 16 / 9; border-radius: 24px; max-height: none; }
.hero-film .media::after { display: none; }
.fig-pair { display: flex; gap: 20px; justify-content: center; }
.fig-pair .iphone { max-width: 220px; }
.design-stage { margin-top: 24px; }
@media (max-width: 760px) { .fig-pair .iphone { max-width: 46%; } }

/* Case cards: outcome headline + evidence chips (replaces bare metrics) */
.outcome { font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.proof { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.proof li { font-size: 12.5px; color: var(--muted); padding: 4px 10px; border-radius: 99px; background: var(--chip); }
.proof b { color: var(--ink); font-weight: 600; }
.cases .cap .row2 .t { font-size: 13px; font-weight: 500; color: var(--muted); }

/* ---------- Portfolio assistant ---------- */

.case-title { font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); margin-bottom: 4px; }
.case-title + .outcome { font-weight: 500; color: var(--muted); font-size: 18px; }
.cases .cap .row2 { margin-top: 10px; }



.impact { background: none; gap: 0; }
.impact div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Stat rows: never a 2x2 grid with an empty slot. One row on tablet, one column on phones. */
@media (max-width: 1099px) {
  .impact, .stats { grid-template-columns: repeat(var(--n, 3), 1fr); }
}
@media (max-width: 760px) {
  .impact, .stats { grid-template-columns: 1fr; }
  .impact div { border-right: 0; }
  .impact b { font-size: 26px; }
}

/* Hero line: every word and pill on one shared centre line */
.bio .hero { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; row-gap: 8px; line-height: 1.3 !important; }
.bio .hero .chip { margin: 0; vertical-align: baseline; line-height: 1.4; padding: 3px 9px; display: inline-flex; align-items: center; }
.bio .hero .chip.cycle { display: inline-block; }

/* AI-generated label on the opening films */
.hero-film { position: relative; }
.ai-note { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 4px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 500; color: #fff;
  background: rgba(0,0,0,.4); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: .5px solid rgba(255,255,255,.25); pointer-events: none; }

/* "How it was measured" popovers on impact numbers */
.impact .metric-cell { position: relative; cursor: help; outline: none; }
.how-hint { position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: 11px; font-weight: 700; color: var(--faint); border: 1px solid var(--line); transition: color .2s, border-color .2s; }
.metric-cell:hover .how-hint, .metric-cell:focus .how-hint { color: var(--ink); border-color: var(--ink); }
.how { position: absolute; z-index: 10; left: 10px; right: 10px; top: calc(100% - 8px); padding: 12px 14px; border-radius: 14px; font-style: normal;
  font-size: 13px; line-height: 1.5; color: var(--ink); background: var(--bg); box-shadow: 0 0 0 .5px rgba(0,0,0,.1), 0 14px 34px rgba(0,0,0,.14);
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .18s, transform .22s cubic-bezier(.2,.9,.3,1.2); }
.how strong { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); font-weight: 500; margin-bottom: 4px; }
.metric-cell:hover .how, .metric-cell:focus .how, .metric-cell.open .how { opacity: 1; transform: none; pointer-events: auto; }
:root[data-theme="dark"] .how { background: #2c2c2e; box-shadow: 0 0 0 .5px rgba(255,255,255,.1), 0 14px 34px rgba(0,0,0,.5); }
.impact { overflow: visible; }

/* ---------- Scroll story: phone stays pinned, steps swap the screen ---------- */
.story { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 48px; margin-top: 40px; align-items: start; }
.story-phone { position: sticky; top: 110px; }
.story-phone .iphone { max-width: 270px; }
.story-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transform: scale(1.03); transition: opacity .45s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.story-shot.on { opacity: 1; transform: scale(1.03); }
.story-steps { list-style: none; }
.story-step { min-height: 46vh; display: flex; flex-direction: column; justify-content: center; padding: 0 0 0 20px; border-left: 2px solid var(--line); opacity: .35; transition: opacity .35s, border-color .35s; }
.story-step:first-child { min-height: 30vh; justify-content: flex-start; padding-top: 40px; }
.story-step.on { opacity: 1; border-color: var(--ink); }
.story-step span { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.story-step b { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin-top: 4px; }
.story-step p { font-size: 15.5px; color: var(--muted); margin-top: 6px; max-width: 34ch; line-height: 1.5; }
@media (max-width: 760px) {
  .story { grid-template-columns: 116px 1fr; gap: 18px; }
  .story-phone { top: 100px; }
  .story-step { min-height: 38vh; padding-left: 14px; }
  .story-step b { font-size: 18px; } .story-step p { font-size: 14px; }
}

/* ---------- Before / after slider ---------- */
.ba-fig { margin-top: 48px; }
.ba-phone { max-width: 280px; }
.ba { position: relative; width: 100%; height: 100%; overflow: hidden; touch-action: pan-y; user-select: none; }
.ba-wide { max-width: 520px; margin: 0 auto; aspect-ratio: 4 / 5; height: auto; border-radius: 20px; border: 1px solid var(--line); background: #fff; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.ba-wide .ba-img { object-fit: contain; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); pointer-events: none; }
.ba-handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px; font-weight: 700; letter-spacing: 2px; color: #111; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-tag { position: absolute; top: 12%; padding: 4px 9px; border-radius: 99px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none; }
.ba-wide .ba-tag { top: 14px; }
.ba-tag.l { left: 10px; } .ba-tag.r { right: 10px; }
.ba-fig .cap-s { text-align: center; }

/* Homepage hover preview: section shortcuts slide up over the card */
.peek { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 8px; border-radius: 16px; background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.12); opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .3s cubic-bezier(.2,.9,.3,1.1); cursor: default; }
:root[data-theme="dark"] .peek { background: rgba(36,36,38,.72); }
:root[data-theme="dark"] .peek-label { color: #fff; }
.cases a.work:hover .peek { opacity: 1; transform: none; }
.peek-label { font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); padding: 0 4px; }
.peek-link { font-size: 12.5px; font-weight: 500; padding: 5px 10px; border-radius: 99px; color: var(--ink); cursor: pointer; transition: background-color .15s; }
.peek-link:hover { background: var(--chip); }

/* Playground: live app window */
.try-live { position: absolute; top: 12px; right: 12px; z-index: 3; padding: 6px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600; color: #fff;
  background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); cursor: pointer; transition: transform .15s, background-color .2s; }
.try-live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #34c759; margin-right: 6px; vertical-align: 1px; }
.try-live:hover { background: rgba(0,0,0,.75); transform: translateY(-1px); }
.live-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.live-modal[hidden] { display: none; }
.live-modal.open { opacity: 1; }
.live-win { width: min(1100px, 100%); height: min(760px, 100%); display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--bg);
  box-shadow: 0 30px 80px rgba(0,0,0,.35); transform: scale(.97); transition: transform .25s cubic-bezier(.2,.9,.3,1.1); }
.live-modal.open .live-win { transform: none; }
.live-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: .5px solid var(--line); background: #f5f5f7; }
:root[data-theme="dark"] .live-bar { background: #1c1c1e; }
.live-dots { display: flex; gap: 6px; } .live-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .live-dots i:nth-child(2) { background: #febc2e; } .live-dots i:nth-child(3) { background: #28c840; }
.live-title { font-size: 13px; font-weight: 600; }
.live-open { margin-left: auto; font-size: 12.5px; color: var(--muted); text-decoration: none; } .live-open:hover { color: var(--ink); }
.live-x { width: 28px; height: 28px; border-radius: 50%; color: var(--muted); } .live-x:hover { background: var(--chip); }
.live-frame { flex: 1; width: 100%; border: 0; background: #fff; }

/* Tablet: bigger pinned phone in the scroll story */
@media (min-width: 761px) and (max-width: 1099px) {
  .story { grid-template-columns: minmax(0, 360px) 1fr; gap: 32px; }
  .story-phone .iphone { max-width: 340px; }
  .story-phone { top: 120px; }
}

/* Biscuit Beacon design-system coin + markers in the walk demo */
.coin-img { width: 18px; height: 18px; display: block; }
.pin-plus text { text-anchor: start; font-size: 7px; font-weight: 800; fill: #6b4520; paint-order: stroke; stroke: #fff; stroke-width: 2px; }
.wk-beacon .pin image { filter: drop-shadow(0 2px 2px rgba(0,0,0,.2)); }
.wk-beacon.got .pin image { filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)) brightness(.92); }
.media iframe.motion { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; pointer-events: none; background: #213920; }

/* cmux concept case */
.cases .work.wide { grid-column: 1 / -1; }
.cases .work.wide .media { aspect-ratio: 2 / 1; }
.ba-web { aspect-ratio: 1440 / 900; height: auto; border-radius: 14px; border: 1px solid var(--line); background: #000; }
.ba-web .ba-tag { top: 14px; }
.concept-note { margin-top: 12px; font-size: 12.5px; color: var(--faint); }
.facts dd a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.browser-frame { margin-top: 28px; border-radius: 14px; overflow: hidden; background: #0b0b0d; box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0,0,0,.18); }
.bf-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; background: #19191c; border-bottom: 1px solid rgba(255,255,255,.08); }
.bf-url { flex: 1; text-align: center; font: 500 12px var(--mono); color: #9a9aa2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-open { font-size: 12.5px; font-weight: 600; color: #fff; padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.1); }
.bf-open:hover { background: rgba(255,255,255,.18); }
.browser-frame iframe { display: block; width: 100%; height: min(720px, 75vh); border: 0; background: #000; }
@media (max-width: 760px) { .browser-frame iframe { height: 70vh; } .cases .work.wide .media { aspect-ratio: 16 / 10; } }

/* cmux: three moves, rebuilt from the live redesign */
.move { margin-top: 52px; }
.move .tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.move h3 { font-size: 20px; font-weight: 600; letter-spacing: -.015em; margin-top: 6px; }
.move > p:not(.tag) { font-size: 15px; line-height: 1.6; color: var(--muted); margin-top: 8px; max-width: 62ch; }
.cm-panel { margin-top: 20px; border-radius: 16px; overflow: hidden; background: #0a0a0a; color: #f2f2f4; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 24px 60px rgba(0,0,0,.16); }
:root[data-theme="dark"] .cm-panel { box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.cm-hero video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

  color: #fff; background: rgba(20,20,22,.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 8px 20px rgba(0,0,0,.35);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), background .2s; }

.cm-proof { padding: 30px 24px 24px; }
.cm-agents-h { text-align: center; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #8b8e96; margin: 26px 0 14px; }
.agents-frame { position: relative; height: 300px; border-radius: 14px; overflow: hidden; background: #121315; border: 1px solid #26272b; }
.agent-pop { position: absolute; width: 78px; height: 78px; border-radius: 16px; overflow: hidden; background: #1b1c1f; border: 1px solid #2c2d31;
  opacity: 0; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; }
.agent-pop.wide { width: 132px; }
.agent-pop.dark-chip { background: #111; border-color: #2a2a2a; }
.agent-pop.light-chip { background: #fff; border-color: #e4e4e4; }
.agent-pop img { width: 100%; height: 100%; object-fit: contain; display: block; }
.agent-pop.show { animation: agentPop .7s cubic-bezier(.22,1,.36,1) forwards; }
.agent-pop.floating { opacity: 1; animation: agentFloat var(--float-dur, 3.2s) ease-in-out infinite; animation-delay: var(--float-delay, 0s); }
@keyframes agentFloat { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(var(--float-x, 6px), var(--float-y, -10px)) rotate(var(--float-r, 3deg)); } }
@keyframes agentPop { 0% { opacity: 0; transform: translate(var(--fx), var(--fy)) scale(.4) rotate(var(--fr)); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .agent-pop, .agent-pop.show, .agent-pop.floating { animation: none; opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .cm-proof { padding: 24px 14px 16px; }
}
.cm-embed { margin-top: 20px; border-radius: 18px; overflow: hidden; background: #0a0a0a; padding: 14px; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 24px 60px rgba(0,0,0,.16); }
:root[data-theme="dark"] .cm-embed { box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.cm-features { display: block; width: 100%; height: 560px; border: 0; background: #0a0a0a; }
.cm-proof { background: #0a0a0a; }
.cm-proof .agents-frame { background: #101010; border-color: #232323; }
.cm-proof .agent-pop { background: #161616; border-color: #232323; }
.cm-proof .agent-pop.dark-chip { background: #111; border-color: #2a2a2a; }
.cm-proof .agent-pop.light-chip { background: #fff; border-color: #e4e4e4; }
.cm-proof .cm-agents-h { margin-top: 0; color: #6e6e6e; font-size: 13px; }


/* Case study story in 30 seconds: problem → insight → what I did → result */
.story-tldr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 28px; border-radius: 16px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.story-tldr > div { background: var(--bg); padding: 16px 16px 18px; }
.story-tldr span { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.story-tldr p { font-size: 14px; line-height: 1.5; color: var(--ink); margin-top: 8px; }
.story-tldr .key { background: var(--chip); }
.story-tldr .key span { color: #0a84ff; }
@media (max-width: 1100px) { .story-tldr { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .story-tldr { grid-template-columns: 1fr; } }

/* 1 / 3 stat: plays when scrolled into view */
.ta-stat b .n1, .ta-stat b .n3, .ta-stat b .sl { display: inline-block; }
.ta-stat.anim b .n1, .ta-stat.anim b .sl, .ta-stat.anim b .n3, .ta-stat.anim > span { opacity: 0; transform: translateY(14px); }
.ta-stat.anim .ta-people i { opacity: 0; transform: translateY(18px) scale(.6); }
.ta-stat.anim .ta-people i.on svg { fill: rgba(255,255,255,.22); }
.ta-stat.play b .n1 { animation: taUp .55s cubic-bezier(.2,.9,.3,1.2) .9s forwards; }
.ta-stat.play b .sl { animation: taUp .45s ease 1.05s forwards; }
.ta-stat.play b .n3 { animation: taUp .55s cubic-bezier(.2,.9,.3,1.2) .15s forwards; }
.ta-stat.play > span { animation: taUp .6s ease 1.3s forwards; }
.ta-stat.play .ta-people i { animation: taPop .5s cubic-bezier(.2,.9,.3,1.4) forwards; }
.ta-stat.play .ta-people i:nth-child(1) { animation-delay: .15s; } .ta-stat.play .ta-people i:nth-child(2) { animation-delay: .3s; } .ta-stat.play .ta-people i:nth-child(3) { animation-delay: .45s; }
.ta-stat.play .ta-people i.on svg { animation: taFill .4s ease .9s forwards; }
.ta-people i.on { position: relative; }
.ta-stat.play .ta-people i.on::after { content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  border: 2px solid #f5c542; opacity: 0; animation: taRing 1.8s ease-out 1s infinite; }
@keyframes taUp { to { opacity: 1; transform: none; } }
@keyframes taPop { to { opacity: 1; transform: none; } }
@keyframes taFill { 0% { fill: rgba(255,255,255,.22); transform: scale(1); } 50% { transform: scale(1.18); } 100% { fill: #f5c542; transform: scale(1); } }
.ta-people svg { transform-origin: 50% 100%; }
@keyframes taRing { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.6); } }
@media (prefers-reduced-motion: reduce) { .ta-stat.anim * { animation: none !important; opacity: 1 !important; transform: none !important; } .ta-stat.anim .ta-people i.on svg { fill: #f5c542 !important; } }

/* Thrive: process sketches, presented as paper on a light surface */
.paper { margin: 32px 0 0; padding: 20px; border-radius: 18px; background: #f4f2ee; }
:root[data-theme="dark"] .paper { background: #1b1b1d; }
.paper-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: #8a8580; margin-bottom: 14px; }
.paper-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.paper img { display: block; width: 100%; height: auto; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 10px 26px rgba(0,0,0,.08); }
.paper-row img:first-child { transform: rotate(-1.2deg); } .paper-row img:last-child { transform: rotate(1deg); }
.paper-wide { margin-top: 14px; }
.paper .cap-s { margin-top: 14px; }
@media (max-width: 560px) { .paper-row { grid-template-columns: 1fr; } .paper-row img { transform: none !important; } }

.concept-flag { display: inline-block; margin: 10px 0 2px; padding: 7px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.45; color: var(--ink);
  background: rgba(255,159,10,.12); box-shadow: inset 0 0 0 1px rgba(255,159,10,.35); }

/* Card → case study: the thumbnail morphs into the case hero (cross-document view transitions) */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
/* theme switch is instant: no element gets to animate its colors on its own */
html.theme-instant, html.theme-instant *, html.theme-instant *::before, html.theme-instant *::after { transition: none !important; }

/* Avatar speech bubble */
.hi-bubble { position: absolute; left: 0; top: 14px; z-index: 2; padding: 7px 12px; border-radius: 14px 14px 14px 4px;
  background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; pointer-events: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.14); transform-origin: 0% 100%; opacity: 0; transform: scale(.6) translateY(6px);
  transition: opacity .2s ease, transform .35s cubic-bezier(.2,.9,.3,1.4); }
.hi-bubble.on { opacity: 1; transform: none; }

/* case cards: pin role + year to the bottom so side-by-side cards line up */
.cases .work { display: flex; flex-direction: column; }
.cases .work .cap { flex: 1; display: flex; flex-direction: column; }
.cases .cap .row2 { margin-top: auto; }
.cases .cap .outcome { margin-bottom: 10px; }


/* Tablet + phone: one pinned bar — name, menu, theme toggle, with equal gaps between them */
.brand-m { display: none; }
@media (max-width: 1024px) {
  body:not(.case) { display: flex; flex-direction: column; }
  body:not(.case) > aside { position: static; width: auto; padding: 12px var(--gutter) 0; }
  body:not(.case) > aside .brand { display: none; }
  body:not(.case) .meta { margin-top: 28px; }
  body:not(.case) > main { margin-left: 0; padding: 16px var(--gutter) 60px; }
  body:not(.case) > header { order: -1; position: sticky; top: 0; left: 0; right: auto; z-index: 30;
    display: flex; justify-content: space-between; align-items: center; gap: 10px; height: 52px; padding: 0 var(--gutter);
    background: var(--header-bg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  body:not(.case) > header .brand-m { display: block; flex: none; white-space: nowrap; font-size: 14px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; color: var(--ink); }
  body:not(.case) > header .topnav, body:not(.case) > header .theme-btn { flex: none; }
  .brand-m .bm-short { display: none; }
}
@media (max-width: 480px) {
  body:not(.case) > header { gap: 6px; }
  body:not(.case) > header .topnav { margin: 0; }
  .brand-m .bm-full { display: none; } .brand-m .bm-short { display: inline; }
  body:not(.case) > header .seg a, body:not(.case) > header .seg button { font-size: 12px; padding-left: 7px; padding-right: 7px; }
}
@media (max-width: 374px) {
  body:not(.case) > header .seg a, body:not(.case) > header .seg button { padding-left: 5px; padding-right: 5px; }
}

/* WellFit: gap → feature prioritization */
.prio { margin-top: 28px; padding: 20px; border-radius: 16px; background: var(--chip); }
.prio-h { font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.prio-p { font-size: 15px; line-height: 1.55; margin-top: 8px; max-width: 62ch; }
.prio-map { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.prio-map li { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: var(--bg); font-size: 14px; }
.prio-map span { color: var(--muted); }
.prio-map i { font-style: normal; color: var(--faint); }
.prio-map b { font-weight: 600; }
@media (max-width: 560px) { .prio-map li { grid-template-columns: 1fr; gap: 2px; } .prio-map i { display: none; } }
.tr-reset { font-size: 12.5px; font-weight: 500; padding: 5px 12px; border-radius: 99px; background: var(--chip); color: var(--muted); }
.tr-reset:hover { color: var(--ink); }

/* Done Desk demo, "before": a legal pad tracked by hand */
.ba-toggle { margin-bottom: 16px; }
.dd-paper { position: relative; min-height: 470px; display: grid; place-items: center; padding: 20px; border-radius: 12px; background: #e9e4da; }
.dd-paper[hidden], .dd[hidden] { display: none; }
.pp-pad { position: relative; width: min(460px, 100%); padding: 26px 26px 26px 54px; background: #fdf6b5; color: #2b3a67; transform: rotate(-1deg);
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 14px 30px rgba(0,0,0,.14);
  background-image: linear-gradient(90deg, transparent 40px, #e58f8f 40px, #e58f8f 42px, transparent 42px), repeating-linear-gradient(#fdf6b5 0 31px, #b9cbe0 31px 32px);
  font-family: Caveat, "Bradley Hand", cursive; }
.pp-title { font-size: 26px; font-weight: 700; line-height: 32px; margin-bottom: 6px; }
.pp-list { list-style: none; margin: 0; padding: 0; }
.pp-item { display: flex; align-items: baseline; gap: 10px; height: 32px; font-size: 22px; line-height: 32px; cursor: pointer; white-space: nowrap; }
.pp-box { position: relative; flex: none; width: 17px; height: 17px; border: 2px solid #2b3a67; border-radius: 3px; transform: rotate(-4deg) translateY(2px); }
.pp-item.on .pp-box::after { content: "✓"; position: absolute; left: -2px; top: -16px; font-size: 30px; color: #1f4e9e; }
.pp-item.on .pp-c { text-decoration: line-through; text-decoration-thickness: 2px; }
.pp-item em { font-style: normal; font-size: 18px; color: #b3412f; }
.pp-total { margin-top: 10px; font-size: 22px; line-height: 32px; font-family: Caveat, cursive; }
.pp-total s { color: #b3412f; }
.pp-sticky { position: absolute; right: 5%; top: 8%; width: 150px; padding: 14px; background: #ffd1dc; color: #3a2a3f; font-family: Caveat, cursive; font-size: 20px; line-height: 1.15;
  transform: rotate(4deg); box-shadow: 0 8px 18px rgba(0,0,0,.14); }
@media (max-width: 640px) { .pp-sticky { position: static; margin-top: 16px; transform: rotate(2deg); } .dd-paper { display: block; } .pp-pad { padding-left: 50px; } }

/* Done Desk demo, "after": matches the real Done Desk "My Continuing Education" screen (always light, like the product) */
.dd { display: grid; grid-template-columns: 170px 1fr; min-height: 520px; border-radius: 12px; overflow: hidden; background: #efefef; color: #1d1d1f;
  font-family: Inter, -apple-system, "Helvetica Neue", Arial, sans-serif; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.dd-side { background: #4b5c68; color: #fff; font-size: 12.5px; }
.dd-logo { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; background: #4aa7dc; color: #fff; font-weight: 700; font-size: 16px; white-space: nowrap; }
.dd-logo svg { width: 20px; height: 20px; flex: none; }
.dd-side p { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.dd-side p svg { width: 15px; height: 15px; flex: none; }
.dd-side p.on { background: #3f4f5a; color: #cbd3d8; }
.dd-app { display: flex; flex-direction: column; min-width: 0; }
.dd-top { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 14px; background: #fff; }
.dd-burger { display: grid; gap: 3px; } .dd-burger i { display: block; width: 16px; height: 2px; background: #555; border-radius: 1px; }
.dd-user { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #333; }
.dd-user em { font-style: normal; font-size: 9px; font-weight: 600; color: #fff; background: #6b6b6b; padding: 2px 5px; border-radius: 2px; }
.dd-av { width: 14px; height: 14px; border-radius: 50%; background: #c9c9c9; }
.dd-user b { font-weight: 400; color: #666; }
.dd-main { padding: 16px; }
.dd-card-wrap[hidden], .dd-form[hidden], .dd-done[hidden] { display: none; }
.dd-card, .dd-form { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.1); padding: 16px 18px; }
.dd-card + .dd-card { margin-top: 12px; }
.dd-headcard { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.dd-headcard > b { font-size: 15px; }
.dd-headcard > div { display: flex; gap: 8px; }
.dd-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 6px 11px; border-radius: 4px; background: #4aa7dc; color: #fff; border: 1px solid #4aa7dc; cursor: pointer; font-family: inherit; }
.dd-btn span { font-size: 15px; line-height: 1; }
.dd-btn.ghost { background: #fff; color: #333; border-color: #555; }
.dd-btn:disabled { opacity: .45; cursor: default; }
.dd-lic { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.dd-lic b { display: block; font-size: 15px; } .dd-lic > div > span { font-size: 12px; color: #333; }
.dd-lic-r { display: flex; align-items: flex-end; gap: 10px; }
.dd-period small { display: block; font-size: 8px; color: #333; margin-bottom: 2px; }
.dd-period span { display: block; padding: 4px 8px; border: 1px solid #bbb; border-radius: 4px; font-size: 12px; }
.dd-period b, .dd-sel::after { color: #333; }
.dd-dl { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1px solid #4aa7dc; border-radius: 4px; color: #4aa7dc; font-size: 12px; }
.dd-dl svg { width: 13px; height: 13px; }
.dd-lbl { margin-top: 14px; font-size: 12px; font-weight: 700; }
.dd-prog { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.dd-bar { position: relative; flex: 1; height: 26px; background: #d6d6d6; border-radius: 3px; overflow: hidden; }
.dd-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: #4aa7dc; transition: width .7s cubic-bezier(.2,.8,.2,1); }
.dd-bar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #4aa7dc; z-index: 1; }
.dd-count { position: relative; z-index: 1; display: block; line-height: 26px; padding-left: 12px; font-size: 13px; color: #444; }
.dd-pct { font-size: 14px; min-width: 38px; text-align: right; font-weight: 500; }
.dd-table { margin-top: 16px; font-size: 12px; }
.dd-tr { display: grid; grid-template-columns: 1.8fr 1fr 80px 16px; align-items: center; gap: 10px; padding: 10px 12px; }
.dd-rows .dd-tr:nth-child(odd) { background: #f0f0f0; }
.dd-th { background: #333; color: #fff; font-weight: 600; font-size: 12.5px; }
.dd-tr small { display: block; font-size: 10.5px; color: #555; margin-top: 2px; line-height: 1.3; }
.dd-tr > span > b { font-weight: 500; font-size: 13px; }
.dd-pill { display: inline-block; font-style: normal; font-size: 10.5px; padding: 3px 12px; border-radius: 99px; color: #fff; }
.dd-pill.req { background: #f25257; } .dd-pill.opt { background: #d6d6d6; } .dd-pill.ok { background: #2e9d63; }
.dd-kebab { font-size: 16px; font-weight: 700; text-align: center; }
.dd-done { margin-top: 12px; font-size: 13px; font-weight: 600; color: #2e9d63; }
.dd-form-h { display: block; font-size: 15px; padding-bottom: 12px; border-bottom: 1px solid #ddd; }
.dd-fbody { max-width: 360px; margin: 14px auto 0; }
.dd-drop { display: grid; place-items: center; gap: 4px; padding: 14px; border: 2px dashed #7fb9dc; background: #e3f2fb; border-radius: 6px; font-size: 11.5px; color: #1976d2; font-weight: 500; }
.dd-drop svg { width: 28px; height: 28px; }
.dd-filerow { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 11.5px; }
.dd-fbar { flex: 1; display: block; height: 5px; background: #ddd; border-radius: 3px; overflow: hidden; } .dd-fbar i { display: block; height: 100%; width: 0; background: #4aa7dc; transition: width 1.1s ease; }
.dd-x { font-size: 10px; color: #777; }
.dd-form label { display: block; margin-top: 10px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: #333; }
.dd-form label em { font-style: normal; color: #e5484d; }
.dd-form label small { font-weight: 400; font-style: italic; text-transform: none; font-size: 8.5px; color: #555; }
.dd-in { position: relative; display: block; margin-top: 4px; padding: 7px 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 12px; font-weight: 400; text-transform: none; min-height: 31px; box-sizing: border-box; color: #222; }
.dd-sel::after { content: "⌄"; position: absolute; right: 10px; top: 4px; font-size: 13px; }
.dd-step::after { content: "⇕"; position: absolute; right: 8px; top: 7px; font-size: 11px; color: #555; }
.dd-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dd-actions { display: flex; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #ddd; }
@media (max-width: 640px) { .dd { grid-template-columns: 1fr; } .dd-side { display: none; } .dd-tr { grid-template-columns: 1.5fr .9fr 70px 10px; gap: 6px; } .dd-lic-r { width: 100%; } }
.chip.emo { padding-left: 7px; padding-right: 7px; font-size: 16px; line-height: 1; }
.tw { display: inline-block; text-align: left; }
.tw.typing::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 1px; vertical-align: -2px; background: currentColor; animation: twBlink .8s steps(1) infinite; }
@keyframes twBlink { 50% { opacity: 0; } }
#emo > span { display: inline-block; transition: transform .28s cubic-bezier(.2,.9,.3,1.3), opacity .18s; }
#emo > span.out { transform: translateY(-8px) scale(.6); opacity: 0; }

/* About: 3D hobbies world */
.hobbies { position: relative; margin-top: 24px; height: 440px; border-radius: 20px; overflow: hidden; background: var(--media); box-shadow: inset 0 0 0 1px var(--line); user-select: none; -webkit-user-select: none; }
.hb-stage { position: absolute; inset: 0; }
.hb-stage canvas { display: block; width: 100% !important; height: 100% !important; }
.hobbies.hb-ball .hb-stage canvas { cursor: grab; }
.hobbies.hb-ball .hb-stage canvas:active { cursor: grabbing; }
.hb-top { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; pointer-events: none; }
.hb-pills { display: flex; flex-wrap: wrap; gap: 6px; pointer-events: auto; }
.hb-pill { position: relative; overflow: hidden; padding: 7px 12px 8px; border-radius: 99px; font-size: 12.5px; font-weight: 600; color: var(--ink);
  background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line); transition: background-color .2s, color .2s; }
.hb-pill[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.hb-prog { position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; overflow: hidden; }
.hb-prog i { display: block; height: 100%; background: currentColor; opacity: .5; transform-origin: 0 50%; transform: scaleX(0); }
.hb-score { padding: 7px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600; color: var(--ink); background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line); opacity: 0; transition: opacity .3s; }
.hb-score b { font-family: var(--mono); font-weight: 600; margin-left: 4px; }
.hb-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 7px 14px; border-radius: 99px; font-size: 12.5px; font-weight: 500; color: var(--ink); white-space: nowrap;
  background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line); opacity: 0; transition: opacity .3s; pointer-events: none; }
.hobbies.hb-ball .hb-hint, .hobbies.hb-ball .hb-score { opacity: 1; }
.hb-power { position: absolute; left: 50%; bottom: 50px; width: 180px; height: 8px; margin-left: -90px; border-radius: 99px; overflow: hidden; opacity: 0; transition: opacity .2s;
  background: linear-gradient(90deg, transparent 42%, rgba(52,199,89,.35) 42%, rgba(52,199,89,.35) 67%, transparent 67%), color-mix(in srgb, var(--ink) 14%, transparent); }
.hb-power.on { opacity: 1; }
.hb-power i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #f59e0b, #e3702b); }
.hb-toast { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%) scale(.6); font-size: 34px; font-weight: 800; letter-spacing: -.03em; color: #e3702b; text-shadow: 0 2px 0 rgba(0,0,0,.15); opacity: 0; pointer-events: none; }
.hb-toast.show { animation: hbToast 1.1s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes hbToast { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 70% { opacity: 1; transform: translate(-50%, -58%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -70%) scale(.96); } }
.hb-loading { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: var(--faint); pointer-events: none; transition: opacity .4s; }
.hobbies.hb-ready .hb-loading { opacity: 0; }
.hb-grab { position: absolute; left: 0; top: 0; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; touch-action: none; cursor: grab; display: none; }
.hobbies.hb-ball .hb-grab { display: block; }
@media (pointer: coarse) {
  .hb-grab::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.75); opacity: 0; transition: opacity .3s; animation: hbGrab 1.6s ease-in-out infinite; }
  .hb-grab.on::after { opacity: 1; }
}
@keyframes hbGrab { 50% { transform: scale(1.18); } }
.hb-songs { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .35s, transform .35s; }
.hobbies[data-station="1"] .hb-songs { opacity: 1; transform: none; pointer-events: auto; }
.hb-songs p { margin: 0; font-size: 11.5px; font-weight: 600; color: var(--ink); padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--bg) 70%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hb-songs p span { color: var(--faint); font-weight: 500; }
.hb-song-list { display: flex; gap: 6px; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.hb-song-list::-webkit-scrollbar { display: none; }
.hb-song { position: relative; overflow: hidden; flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 12px 8px 30px; border: 0; border-radius: 12px; font: inherit; text-align: left; color: var(--ink); cursor: pointer;
  background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line); transition: transform .15s; }
.hb-song:hover { transform: translateY(-1px); }
.hb-song::before { content: ""; position: absolute; left: 12px; top: 50%; margin-top: -5px; border-left: 9px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.hb-song.on::before { width: 9px; height: 9px; margin-top: -4.5px; border: 0; border-radius: 2px; background: currentColor; }
.hb-song b { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.hb-song small { font-size: 10.5px; color: var(--faint); }
.hb-song.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.hb-song.on small { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.hb-song i { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: currentColor; opacity: .5; transform-origin: 0 50%; transform: scaleX(0); }
.hb-song.on i { transform: scaleX(var(--p, 0)); }
@media (max-width: 760px) { .hb-songs { left: 8px; right: 8px; bottom: 8px; } .hb-song-list { justify-content: flex-start; } .hb-song { padding: 6px 10px 7px 26px; } .hb-song::before { left: 10px; } }
@media (max-width: 760px) { .hobbies { height: 360px; border-radius: 16px; } .hb-top { left: 10px; right: 10px; top: 10px; } .hb-pills { gap: 4px; } .hb-pill { padding: 6px 9px 7px; font-size: 12px; } .hb-score { padding: 6px 9px; font-size: 12px; } .hb-score span { display: none; } .hb-score b { margin-left: 0; } .hb-toast { font-size: 28px; } }
