/* ---------- Tokens ---------- */
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #6b6862;
  --line: #e4e1da;
  --accent: #556534; /* moss green, from the trees in the profile photo */
  --accent-soft: #e8ecdf;
  /* Muted companions to the moss accent, for the info icon chips */
  --chip-purple: #5a4790; --chip-purple-soft: #e8e4f2; /* nods to UW purple */
  --chip-blue: #3f6083; --chip-blue-soft: #e1e8f0;
  --chip-yellow: #85661a; --chip-yellow-soft: #f3ebd5;
  --thumb-l: 86%;
  --thumb-s: 38%;
  --thumb-text: 30%;

  --sidebar-w: 340px;
  --radius: 14px;
  --display: "Montserrat Alternates", system-ui, sans-serif; /* headings and big numbers */
  --sans: "Quicksand", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141413;
    --surface: #1d1c1a;
    --text: #ecebe6;
    --muted: #9c9890;
    --line: #2e2c29;
    --accent: #bacc8e;
    --accent-soft: #2e3324;
    --chip-purple: #bcace6; --chip-purple-soft: #2b2639;
    --chip-blue: #a3bfdc; --chip-blue-soft: #232c37;
    --chip-yellow: #dcc07a; --chip-yellow-soft: #34301f;
    --thumb-l: 22%;
    --thumb-s: 22%;
    --thumb-text: 78%;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141413;
  --surface: #1d1c1a;
  --text: #ecebe6;
  --muted: #9c9890;
  --line: #2e2c29;
  --accent: #bacc8e;
  --accent-soft: #2e3324;
  --chip-purple: #bcace6; --chip-purple-soft: #2b2639;
  --chip-blue: #a3bfdc; --chip-blue-soft: #232c37;
  --chip-yellow: #dcc07a; --chip-yellow-soft: #34301f;
  --thumb-l: 22%;
  --thumb-s: 22%;
  --thumb-text: 78%;
  color-scheme: dark;
}

/* ---------- Base ---------- */
/* Password gate (js/gate.js): covers the whole page until the site is unlocked */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: var(--bg); }
.gate-card {
  display: grid; justify-items: start; gap: 12px; width: min(380px, 100%); padding: 32px 28px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text);
}
.gate-lock { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.gate-card h1 { margin: 4px 0 0; font-size: 24px; }
.gate-card > p { margin: 0; color: var(--muted); }
.gate-field { display: grid; gap: 6px; width: 100%; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.gate-field input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text);
  font: 500 16px var(--sans);
}
.gate-field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.gate-card .btn { width: 100%; justify-content: center; }
.gate-card .btn:disabled { opacity: .6; }
.gate-card .gate-error { color: #b3261e; font-size: 14px; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h3 { font-weight: 600; } /* h3 uses the body font; h1 and h2 use the display font */
h1, h2 { font-family: var(--display); letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}
.content {
  max-width: 820px;
  width: 100%;
  padding: 72px 64px 40px;
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 48px 40px;
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font: 600 40px var(--display);
}
img.avatar, img.portrait { object-fit: cover; display: block; }
.brand-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.brand-text strong { font: 600 24px/1.2 var(--display); letter-spacing: -0.01em; }
.brand-text small { color: var(--muted); font-size: 14px; }
.sidebar-bio { color: var(--muted); font-size: 15px; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  position: relative;
  padding: 8px 0 8px 18px;
  color: var(--muted);
  font-weight: 600;
  transition: color .2s;
}
.nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 1px;
  background: currentColor;
  transition: width .2s;
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active::before { width: 12px; background: var(--accent); }

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 16px; }
.resume-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.resume-link:hover { color: var(--accent); }
.social { display: flex; gap: 8px; }
#theme-toggle { background: none; padding: 0; cursor: pointer; font: inherit; }
.social a, #theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  transition: color .2s, border-color .2s, background .2s;
}
.social a:hover, #theme-toggle:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Shared bits ---------- */
.accent-text { color: var(--accent); font-weight: 700; }
.eyebrow { color: var(--accent); font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.lede { color: var(--muted); font-size: 18px; max-width: 60ch; }
.section { padding-top: 88px; }
.section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 28px;
  margin-bottom: 28px;
}
.count { font: 600 14px var(--sans); color: var(--muted); }
.sub-title { font-size: 14px; font-weight: 600; color: var(--muted); margin: 28px 0 12px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tags li {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}
.tags li.series-chip { border-color: transparent; background: var(--accent-soft); color: var(--accent); font-weight: 700; }

.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: border-color .2s, background .2s, transform .2s;
}
.btn:hover { border-color: var(--text); }
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.primary:hover { transform: translateY(-1px); }

/* ---------- Home ---------- */
.hero { padding-top: 40px; }
.hero h1 { font-size: clamp(32px, 4.5vw, 50px); line-height: 1.1; margin-bottom: 24px; max-width: 24ch; text-wrap: balance; }

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.info-list li { display: flex; align-items: center; gap: 16px; font-weight: 600; font-size: 17px; line-height: 1.35; }
.info-list small { display: block; margin-bottom: 3px; font-size: 13px; font-weight: 500; color: var(--muted); }
.info-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.info-list li:nth-child(2) .info-icon { background: var(--chip-purple-soft); color: var(--chip-purple); } /* UW */
.info-list li:nth-child(1) .info-icon { background: var(--chip-blue-soft); color: var(--chip-blue); } /* Seattle */
/* li 3 (Experience at NAVER) keeps the default moss green, since NAVER is green */
.info-list li:nth-child(4) .info-icon { background: var(--chip-yellow-soft); color: var(--chip-yellow); }

.under-construction {
  display: grid; gap: 6px; place-items: center; padding: 72px 24px; border: 1.5px dashed var(--line); border-radius: var(--radius);
  text-align: center; color: var(--muted);
}
.under-construction strong { font: 600 22px/1.2 var(--display); color: var(--text); }
.projects-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.projects-head .section-title { margin-bottom: 0; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: 600 14px var(--sans);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.tabs button .count { font-size: 12px; color: inherit; opacity: .7; }
.project-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.project-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s, transform .25s;
}
.project-row:hover { border-color: color-mix(in srgb, var(--text) 30%, transparent); transform: translateY(-2px); }
.project-row .thumb { aspect-ratio: 4 / 3; }
.project-row h3 { font-size: 19px; margin-bottom: 4px; }
.project-body > p:not(.meta) { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.series-label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.meta { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.go {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-right: 6px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all .25s;
}
.project-row:hover .go { background: var(--text); color: var(--bg); border-color: var(--text); }

.thumb {
  display: flex;
  align-items: flex-end;
  padding: 14px;
  border-radius: 10px;
  background-color: hsl(var(--h, 200) var(--thumb-s) var(--thumb-l));
  background-size: cover;
  background-position: center;
  color: hsl(var(--h, 200) 40% var(--thumb-text));
  font: 600 18px/1.15 var(--display);
  overflow: hidden;
}
.thumb span { max-width: 18ch; }
.project-row .thumb { font-size: 34px; }

/* Growth chart cover: one highlighted series (brand color) against gray competitors.
   Text uses text colors; only the marks carry the series color. */
.thumb.growth-chart {
  --gc-bg: var(--accent-soft); --gc-key: var(--accent); --gc-other: var(--muted);
  --gc-text: var(--text); --gc-muted: var(--muted); --gc-grid: color-mix(in srgb, var(--text) 12%, transparent);
  display: block; padding: 0; background: var(--gc-bg);
}
/* CHZZK brand theme: black with CHZZK green, the same in light and dark mode */
.thumb.growth-chart.theme-chzzk {
  --gc-bg: #0b0b0c; --gc-key: #00ffa3; --gc-other: #8e8e93;
  --gc-text: #f4f4f5; --gc-muted: #a1a1a6; --gc-grid: #2c2c2e;
}
.growth-chart svg { display: block; width: 100%; height: 100%; }
.growth-chart.cover .gc-compact { display: none; }
@media (max-width: 520px) {
  .growth-chart.cover .gc-full { display: none; }
  .growth-chart.cover .gc-compact { display: block; }
}
.gc-logo { fill: var(--gc-key); }
.gc-title { fill: var(--gc-muted); font: 600 17px var(--sans); }
.gc-hero { fill: var(--gc-text); font: 600 52px var(--display); letter-spacing: -0.01em; }
.gc-hero-sub { fill: var(--gc-muted); font: 600 16px var(--sans); letter-spacing: 0; }
.gc-grid { stroke: var(--gc-grid); stroke-width: 1; }
.gc-base { stroke: var(--gc-muted); stroke-opacity: .5; stroke-width: 1; }
.gc-tick { fill: var(--gc-muted); font: 600 13px var(--sans); }
.gc-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.gc-dashed { stroke-dasharray: 2 8; }
.is-key .gc-line { stroke: var(--gc-key); }
.is-other .gc-line { stroke: var(--gc-other); stroke-width: 2.5; }
.gc-area { fill: var(--gc-key); opacity: .12; }
.gc-pt { fill: var(--gc-bg); stroke-width: 2; }
.is-key .gc-pt { stroke: var(--gc-key); }
.is-other .gc-pt { stroke: var(--gc-other); }
.gc-end { stroke: var(--gc-bg); stroke-width: 3; }
.is-key .gc-end { fill: var(--gc-key); }
.is-other .gc-end { fill: var(--gc-other); }
.gc-series-label { fill: var(--gc-text); font: 700 16px var(--sans); }
.gc-date { fill: var(--gc-muted); font: 600 14px var(--sans); }
.gc-leader { stroke: var(--gc-muted); stroke-opacity: .7; stroke-width: 1; stroke-dasharray: 3 3; }
.gc-note-label { fill: var(--gc-text); font: 700 14px var(--sans); }
.gc-source { fill: var(--gc-muted); font: 500 12px var(--sans); }
.body-chart { margin: 24px 0 8px; }
.thumb.bar-chart.in-body { aspect-ratio: 16 / 9; border-radius: var(--radius); }
.bc-value { fill: var(--gc-text); font: 700 13px var(--sans); }
.bc-legend { fill: var(--gc-text); font: 600 13px var(--sans); }
.bc-hit { fill: transparent; }
.bc-group:hover .bc-hit { fill: rgba(255, 255, 255, .05); }
.project-row .thumb.growth-chart .gc-title { font-size: 20px; }
.project-row .thumb.growth-chart .gc-hero { font-size: 64px; }

.body-mockup { margin: 0 0 32px; }
.prose h3.built-title { margin: 32px 0 8px; font-size: 18px; }
.prose h2 + h3.built-title { margin-top: 4px; }
.body-mockup .thumb.mockup { aspect-ratio: 16 / 9; border-radius: var(--radius); background: #1c1c1f; }
/* On the dark backdrop, a thin light edge keeps the dark devices from blending in */
.body-mockup .mock-browser { box-shadow: 0 2cqw 6cqw rgba(0, 0, 0, .5), 0 0 0 1px #34343a; }
.body-mockup .mock-phone { box-shadow: 0 2.4cqw 6cqw rgba(0, 0, 0, .55), inset 0 0 0 .25cqw #3a3a40; }
.body-mockup figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* Prioritization quadrant */
.quadrant {
  --q-bg: var(--surface); --q-box: var(--bg); --q-line: var(--line); --q-text: var(--text); --q-muted: var(--muted);
  --q-hi: var(--accent); --q-hi-bg: var(--accent-soft);
  margin: 32px 0 0;
  padding: 24px 24px 20px;
  border-radius: var(--radius);
  background: var(--q-bg);
  border: 1px solid var(--q-line);
}
.quadrant.theme-chzzk {
  --q-bg: #0b0b0c; --q-box: #161618; --q-line: #2c2c2e; --q-text: #f4f4f5; --q-muted: #a1a1a6;
  --q-hi: #00ffa3; --q-hi-bg: rgba(0, 255, 163, .08);
}
.q-title { margin-bottom: 16px; color: var(--q-text); font: 600 18px var(--display); }
.q-layout { display: grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-rows: auto auto; gap: 8px 10px; }
.q-yaxis {
  grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  color: var(--q-muted); font-size: 12px; font-weight: 600;
}
.q-yaxis strong { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.q-yaxis strong, .q-xaxis strong { color: var(--q-text); font-weight: 700; }
.q-xaxis { grid-column: 2; display: flex; justify-content: space-between; color: var(--q-muted); font-size: 12px; font-weight: 600; }
.q-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.q-box { padding: 16px 18px; border-radius: 12px; background: var(--q-box); border: 1px solid var(--q-line); }
.q-box h3 { color: var(--q-text); font: 600 17px var(--display); }
.q-note { margin: 2px 0 10px; color: var(--q-muted); font-size: 12px; font-weight: 600; }
.q-box ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; color: var(--q-text); font-size: 14px; line-height: 1.4; }
.q-box li::marker { color: var(--q-muted); }
.quadrant .q-box a { color: var(--q-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--q-muted); }
.quadrant .q-box a:hover { text-decoration-color: var(--q-hi); }
.q-opportunities { background: var(--q-hi-bg); border-color: color-mix(in srgb, var(--q-hi) 45%, transparent); }
.q-opportunities h3 { color: var(--q-hi); }
.q-opportunities li::marker { color: var(--q-hi); }
.quadrant figcaption { margin-top: 14px; color: var(--q-muted); font-size: 13px; }
@media (max-width: 640px) {
  .quadrant { padding: 18px 16px 16px; }
  .q-layout { grid-template-columns: minmax(0, 1fr); }
  .q-yaxis, .q-xaxis { display: none; }
  .q-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Badge demo: CHZZK-style chat + profile card (dark, brand colors in both themes) */
.badge-demo { margin: 32px 0 0; }
.bd-stage {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start;
  padding: 24px; border-radius: var(--radius); background: #0b0b0c;
  color: #f4f4f5; font-family: var(--sans);
}
.bd-chat { background: #1c1d1f; border-radius: 12px; overflow: hidden; }
.bd-chat-head { padding: 12px 16px; border-bottom: 1px solid #2c2c2e; font-weight: 700; font-size: 14px; text-align: center; }
.bd-chat ul { margin: 0; padding: 12px 16px 16px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.bd-chat li { font-size: 14px; line-height: 1.5; }
.bd-badge { display: inline-block; vertical-align: -4px; margin-right: 3px; border-radius: 4px; }
.bd-name { font-weight: 700; margin-left: 2px; }
.bd-msg { color: #e4e4e7; font-weight: 500; }
.bd-card { position: relative; background: #1c1d1f; border-radius: 16px; padding: 20px; }
.bd-card-top { display: flex; gap: 14px; align-items: center; }
.bd-avatar { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #3a3b40; }
.bd-avatar svg { width: 38px; height: 38px; fill: #8e8e93; }
.bd-card-name { margin: 0; font-weight: 700; font-size: 18px; }
.bd-card-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 16px; }
.bd-card-badges .bd-badge { margin: 0; vertical-align: 0; }
.bd-tip-wrap { position: relative; display: inline-flex; }
.bd-tip-wrap > .bd-badge { outline: 2px solid #00ffa3; outline-offset: 2px; }
.bd-tip {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  width: max-content; max-width: 210px; padding: 9px 14px; border-radius: 10px;
  background: #ececef; color: #1c1d1f; font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.35;
}
.bd-tip::before { content: ""; position: absolute; top: -6px; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top: 0; border-bottom-color: #ececef; }
.bd-tip strong { font-size: 13.5px; font-weight: 700; }
.bd-card-rows { margin: 84px 0 0; padding: 14px 0 0; border-top: 1px solid #2c2c2e; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: #e4e4e7; font-weight: 600; }
.bd-card-rows li { display: flex; align-items: center; gap: 10px; }
.bd-card-rows .bd-badge { margin: 0; vertical-align: 0; }
.bd-heart { width: 20px; text-align: center; color: #a1a1a6; font-size: 16px; }
.badge-demo figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
@media (max-width: 720px) {
  .bd-stage { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  /* Keep the tooltip inside the panel: align it to the badge's left side */
  .bd-tip { left: -16px; transform: none; }
  .bd-tip::before { left: 21px; }
}

/* Device mockup (browser window + phone). Everything is sized in cqw so it scales with the box. */
.thumb.mockup { position: relative; display: block; padding: 0; container-type: inline-size; overflow: hidden; }
.mock-browser {
  position: absolute;
  left: 6%;
  top: 10%;
  width: 70%;
  aspect-ratio: 16 / 10.4;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.4cqw;
  background: #141517;
  box-shadow: 0 2cqw 6cqw rgba(0, 0, 0, .22), 0 .3cqw .8cqw rgba(0, 0, 0, .12);
}
.mock-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: .8cqw;
  height: 4cqw;
  padding: 0 1.4cqw;
  background: #2a2b2e;
}
.mock-bar i { width: 1cqw; height: 1cqw; border-radius: 50%; background: #ff5f57; }
.mock-bar i:nth-child(2) { background: #febc2e; }
.mock-bar i:nth-child(3) { background: #28c840; }
.mock-bar span {
  display: flex;
  align-items: center;
  width: 40%;
  height: 2.4cqw;
  margin-left: 2cqw;
  padding: 0 1.2cqw;
  border-radius: 1.2cqw;
  background: #3b3c40;
  color: #c9c9cc;
  font: 600 1.35cqw/1 var(--sans);
  white-space: nowrap;
  overflow: hidden;
}
.mock-screen { flex: 1; overflow: hidden; }
.mock-screen img, .mock-phone-screen img { display: block; width: 100%; height: auto; }
/* Fill the browser window even if the screenshot's shape differs slightly */
.mock-screen img { height: 100%; object-fit: cover; object-position: top left; }
.mock-phone {
  position: absolute;
  right: 6%;
  top: 16%;
  width: 21%;
  padding: .8cqw;
  border-radius: 3.6cqw;
  background: #0d0d0e;
  box-shadow: 0 2.4cqw 6cqw rgba(0, 0, 0, .28), inset 0 0 0 .25cqw #2c2c2f;
}
.mock-phone-screen { aspect-ratio: 920 / 2000; overflow: hidden; border-radius: 2.9cqw; background: #141517; }
/* In the taller 4:3 home card, move the devices down so they sit centered */
.project-row .thumb.mockup .mock-browser { top: 20%; }
.project-row .thumb.mockup .mock-phone { top: 23%; }


/* Demo video cover: phone recording on CHZZK black, steps highlight as the video plays.
   Sized in cqw so it scales with the box; the same in light and dark mode. */
.thumb.demo {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 6%;
  padding: 0 10% 0 8%;
  container-type: inline-size;
  background: radial-gradient(circle at 72% 55%, rgba(0, 255, 163, .16), transparent 42%), #0b0b0c;
  color: #f4f4f5;
}
.demo-title { margin: 0 0 2.4cqw; font: 600 4cqw/1.15 var(--display); color: #f4f4f5; }
.demo-steps ol { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1.5cqw; }
.demo-steps li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  font: 600 2.3cqw/1.3 var(--sans);
  color: #8e8e93;
  transition: color .25s;
}
.demo-steps li::before {
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 3.8cqw;
  height: 3.8cqw;
  border-radius: 50%;
  border: .2cqw solid #3a3a3e;
  font: 700 1.9cqw/1 var(--sans);
  transition: all .25s;
}
.demo-steps li.on { color: #f4f4f5; }
.demo-steps li.on::before { background: #00ffa3; border-color: #00ffa3; color: #0b0b0c; }
.demo-phone {
  height: calc(100cqw * 9 / 16 - 7cqw);
  aspect-ratio: 884 / 1922;
  padding: .7cqw;
  border-radius: 4cqw;
  background: #1a1a1c;
  box-shadow: 0 2cqw 6cqw rgba(0, 0, 0, .6), inset 0 0 0 .25cqw #3a3a40;
}
.demo-phone video { display: block; width: 100%; height: 100%; border-radius: 3.4cqw; object-fit: cover; background: #000; }
.body-demo { margin: 32px 0; }
.thumb.demo.in-body { aspect-ratio: 16 / 9; border-radius: var(--radius); }

/* Streak cover: donation cards stacking on the right; on the left, the viewer's profile card (project page) or a big
   flame with the streak count (home card). Sized in cqw of the cover;
   the same in light and dark mode. Card text sits on a blank copy of the real card (assets/streak/card-blank.png). */
.thumb.streak-cover {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 4%;
  padding: 0; container-type: inline-size; overflow: hidden;
  background: radial-gradient(circle at 68% 45%, rgba(133, 116, 240, .18), transparent 50%), #0b0b0c;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.thumb.streak-cover.cover { padding: 0; }
.sk-profile {
  position: relative; flex: none; width: 37cqw; padding: 2.6cqw 2.6cqw 2.2cqw; border-radius: 2cqw;
  background: #1c1d1f; color: #e8e8ea; box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, .5);
}
.sk-close { position: absolute; top: 1.6cqw; right: 2cqw; color: #9a9aa0; font-size: 2.6cqw; line-height: 1; }
.sk-id { display: flex; align-items: center; gap: 1.8cqw; padding-bottom: 2cqw; border-bottom: 1px solid #333438; }
.sk-avatar {
  position: relative; flex: none; width: 7.4cqw; height: 7.4cqw; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 36%, #8f9096 0 19%, transparent 20%), radial-gradient(ellipse at 50% 100%, #8f9096 0 42%, transparent 43%), #3a3b3f;
}
.sk-user { margin: 0 0 .6cqw; font-size: 2.6cqw; font-weight: 700; color: #f4f4f5; }
.sk-badges { display: flex; gap: .5cqw; margin: 0; }
.sk-badges img { width: 2.8cqw; height: 2.8cqw; }
.sk-rows { margin: 1.8cqw 0 0; padding: 0; list-style: none; display: grid; gap: 1.4cqw; font-size: 1.75cqw; }
.sk-rows li { display: flex; align-items: center; gap: 1.2cqw; }
.sk-rows img { width: 2.4cqw; height: 2.4cqw; object-fit: contain; }
.sk-rows .sk-count, .sk-red { color: #ff5a4f; font-weight: 700; }
.sk-hero { flex: none; width: 38cqw; display: flex; flex-direction: column; align-items: center; color: #f4f4f5; }
.sk-flame { width: 17cqw; height: auto; overflow: visible; filter: drop-shadow(0 0 3cqw rgba(255, 90, 40, .45)); }
.sk-flame-outer { transform-origin: 50% 100%; animation: sk-flicker 1.6s ease-in-out infinite alternate; }
.sk-flame-inner { transform-origin: 50% 100%; animation: sk-flicker 1.1s ease-in-out infinite alternate-reverse; }
@keyframes sk-flicker { 0% { transform: scale(1, 1) skewX(0); } 50% { transform: scale(1.03, .97) skewX(-2deg); } 100% { transform: scale(.98, 1.04) skewX(2deg); } }
.sk-big { display: flex; align-items: baseline; margin: 1.6cqw 0 0; font-family: var(--display); font-weight: 700; white-space: nowrap; }
.sk-big .sk-count { font-size: 8.4cqw; line-height: 1; color: #ff6a3d; }
.sk-big span { font-size: 3.6cqw; margin-left: .4cqw; }
.sk-count { display: inline-block; transform-origin: 50% 70%; }
.sk-count.bump { animation: sk-bump .45s ease-out; }
@keyframes sk-bump { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 100% { transform: scale(1); } }
.sk-feed { position: relative; flex: none; width: 46cqw; height: calc(46cqw * 366 / 1268 * 3.36); transition: opacity .6s; }
.sk-feed.fade { opacity: 0; }
.sk-card {
  position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1268 / 366; container-type: inline-size;
  border-radius: 2.4% / 8.3%; overflow: hidden; color: #fff;
  transform: translateY(calc(var(--slot, 0) * 112%)); transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .5s;
  box-shadow: 0 1.2cqw 3cqw rgba(0, 0, 0, .45);
}
.sk-card.enter { transform: translateY(-70%); opacity: 0; }
.sk-card.gone { opacity: 0; }
.sk-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sk-card p, .sk-card span { position: absolute; margin: 0; white-space: nowrap; }
.sk-name { left: 3.5%; top: 21.6%; transform: translateY(-50%); display: flex; align-items: center; gap: 1.2cqw; font-size: 4.3cqw; font-weight: 700; }
.sk-name img { width: 5.6cqw; height: 5.6cqw; }
.sk-name span { position: static; margin-left: .8cqw; }
.sk-msg { left: 3.9%; top: 46.4%; transform: translateY(-50%); font-size: 3.95cqw; font-weight: 700; }
.sk-amt { left: 12.4%; top: 77%; transform: translateY(-50%); font-size: 4.2cqw; font-weight: 800; }
.sk-days { right: 3.6%; top: 76.5%; transform: translateY(-50%); font-size: 3.6cqw; font-weight: 500; color: #ccc7eb; }
/* Small home card: flame and feed sit close together in the middle, with a bigger flame and count */
.project-row .thumb.streak-cover { gap: 5%; }
.project-row .sk-hero { width: auto; }
.project-row .sk-flame { width: 19cqw; }
.project-row .sk-big .sk-count { font-size: 10cqw; }
.project-row .sk-big span { font-size: 4.4cqw; }
.project-row .sk-feed { width: 48cqw; height: calc(48cqw * 366 / 1268 * 3.36); }
@media (prefers-reduced-motion: reduce) {
  .sk-card, .sk-feed { transition: none; }
  .sk-count.bump, .sk-flame-outer, .sk-flame-inner { animation: none; }
}

/* Mission cover: donation popup (Mission tab) on the left, the on-stream mission card on the right, step labels below.
   data-step on the cover drives every state: type → tap → live → chip → success → reset. Sized in cqw of the cover. */
.thumb.mission-cover {
  position: relative; display: flex; flex-direction: column; justify-content: center; align-items: stretch; padding: 0;
  container-type: inline-size; overflow: hidden;
  background: radial-gradient(circle at 70% 42%, rgba(0, 255, 163, .12), transparent 48%), #0b0b0c;
  color: #f4f4f5; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.thumb.mission-cover.cover { padding: 0; }
.mission-cover p { margin: 0; }
.mc-stage { display: flex; align-items: center; justify-content: center; gap: 7%; }
.mc-popup {
  flex: none; width: 27cqw; padding: 1.6cqw; border-radius: 1.6cqw; background: #1b1c1f;
  box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, .5); font-size: 1.25cqw; transition: opacity .5s, transform .5s, filter .5s;
}
.mc-pop-head { display: flex; justify-content: space-between; font-size: 1.6cqw; margin-bottom: 1cqw !important; }
.mc-pop-head span { color: #8e8e93; }
.mc-tabs { display: flex; gap: 1.6cqw; padding-bottom: 1cqw; margin-bottom: 1.2cqw !important; border-bottom: 1px solid #2c2d31; color: #8e8e93; font-weight: 700; }
.mc-tabs .on { display: inline-flex; align-items: center; gap: .4cqw; color: #00ffa3; }
.mc-tabs svg, .mc-tag svg { width: 1.3em; height: 1.3em; }
.mc-box { display: grid; gap: .7cqw; padding: 1.1cqw; margin-bottom: 1cqw; border-radius: 1cqw; background: #26282b; }
.mc-who { display: flex; align-items: center; gap: .6cqw; }
.mc-who img { width: 1.8cqw; height: 1.8cqw; }
.mc-anon { margin-left: auto; display: inline-flex; align-items: center; gap: .5cqw; color: #8e8e93; font-size: 1.05cqw; }
.mc-anon i { position: relative; width: 2.4cqw; height: 1.3cqw; border-radius: 1cqw; background: #44464b; }
.mc-anon i::after { content: ""; position: absolute; left: .15cqw; top: .15cqw; width: 1cqw; height: 1cqw; border-radius: 50%; background: #f4f4f5; }
.mc-input, .mc-field { display: flex; align-items: center; min-height: 2.8cqw; padding: 0 1cqw; border-radius: .8cqw; background: #151618; }
.mc-input { border: 1.5px solid #00ffa3; font-weight: 600; font-size: 1.15cqw; white-space: nowrap; overflow: hidden; }
.mc-caret { width: 1px; height: 1.3cqw; margin-left: 1px; background: #f4f4f5; animation: mc-blink 1s steps(1) infinite; }
@keyframes mc-blink { 50% { opacity: 0; } }
.mc-label { color: #b5b5bb; font-size: 1.1cqw; }
.mc-label.strong { color: #f4f4f5; font-weight: 700; }
.mc-field { color: #c9c9ce; font-weight: 600; letter-spacing: .05em; }
.mc-field.big { font-size: 1.6cqw; color: #f4f4f5; font-weight: 800; letter-spacing: 0; }
.mc-presets { display: flex; gap: .5cqw; }
.mc-presets span { padding: .35cqw .8cqw; border-radius: 1cqw; background: #3a3c40; font-size: 1cqw; font-weight: 700; }
.mc-send {
  position: relative; display: flex; align-items: center; justify-content: center; gap: .6cqw; height: 3cqw;
  border-radius: .8cqw; background: #00ffa3; color: #0b0b0c; font-weight: 800; font-size: 1.35cqw; transition: transform .15s, filter .15s;
}
.mc-send svg { width: 1.6cqw; height: 1.6cqw; }
.mc-tap { position: absolute; left: 60%; top: 50%; width: 3.4cqw; height: 3.4cqw; margin: -1.7cqw; border-radius: 50%;
  background: rgba(255, 255, 255, .45); box-shadow: 0 0 0 .25cqw rgba(255, 255, 255, .9); opacity: 0; transform: scale(.4); }
.mission-cover[data-step="tap"] .mc-send { transform: scale(.97); filter: brightness(.9); }
.mission-cover[data-step="tap"] .mc-tap { animation: mc-tap .5s ease-out; }
@keyframes mc-tap { 0% { opacity: 0; transform: scale(.4); } 35% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }
/* After sending, the popup steps back */
.mission-cover:is([data-step="live"], [data-step="chip"], [data-step="success"]) .mc-popup { opacity: .35; transform: scale(.96); filter: saturate(.6); }
.mc-right { position: relative; flex: none; width: 40cqw; display: grid; gap: 1.2cqw; }
.mc-card {
  position: relative; overflow: hidden; padding: 1.8cqw 2cqw; border-radius: 1.6cqw; background: #19191b; box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, .55);
  opacity: 0; transform: translateX(6cqw); transition: opacity .5s, transform .6s cubic-bezier(.2, .8, .2, 1), background .45s;
}
.mission-cover:is([data-step="live"], [data-step="chip"], [data-step="success"]) .mc-card { opacity: 1; transform: none; }
.mc-card-top { position: relative; display: flex; align-items: center; gap: .8cqw; font-size: 1.7cqw; }
.mc-card-top img { width: 2.4cqw; height: 2.4cqw; }
.mc-tag { display: inline-flex; align-items: center; gap: .3cqw; padding: .2cqw .6cqw; border-radius: .5cqw; background: #00ffa3; color: #0b0b0c; font-size: 1.15cqw; font-weight: 800; }
.mc-card-text { position: relative; margin: 1cqw 0 1.4cqw !important; font-size: 2.6cqw; font-weight: 800; }
.mc-card-foot { position: relative; display: flex; align-items: center; gap: 1cqw; font-size: 2.3cqw; }
.mc-prize { display: inline-flex; align-items: center; gap: .5cqw; color: #d9d9de; }
.mc-prize svg { width: 2.4cqw; height: 2.4cqw; }
.mc-amount { display: inline-block; font-weight: 800; transition: transform .2s; }
.mission-cover[data-step="chip"] .mc-amount { color: #00ffa3; }
.mc-timer, .mc-done { margin-left: auto; display: inline-flex; align-items: center; gap: .5cqw; padding: .5cqw 1.2cqw; border-radius: 2cqw; font-weight: 800; font-size: 1.8cqw; }
.mc-timer { background: #000; }
.mc-timer svg { width: 1.8cqw; height: 1.8cqw; }
.mc-done { display: none; background: #fff; color: #111; }
.mc-toast {
  justify-self: start; padding: .6cqw 1.4cqw; border-radius: 2cqw; background: #2a2b2f; color: #e5e5ea; font-size: 1.5cqw;
  box-shadow: 0 1cqw 2cqw rgba(0, 0, 0, .4); opacity: 0; transform: translateY(1.5cqw) scale(.9); transition: opacity .35s, transform .45s cubic-bezier(.2, 1.4, .4, 1);
}
.mc-toast b { color: #00ffa3; }
.mission-cover[data-step="chip"] .mc-toast { opacity: 1; transform: none; }
.mc-paid { justify-self: end; color: #a1a1a6; font-size: 1.5cqw; opacity: 0; transition: opacity .4s .3s; }
.mc-paid b { color: #f4f4f5; }
/* Success: green card, white badge, confetti */
.mission-cover[data-step="success"] .mc-card { background: #13985a; }
.mission-cover[data-step="success"] .mc-timer { display: none; }
.mission-cover[data-step="success"] .mc-done { display: inline-flex; }
.mission-cover[data-step="success"] .mc-paid { opacity: 1; }
.mission-cover[data-step="success"] .mc-prize { color: #fff; }
.mc-confetti { position: absolute; inset: 0; pointer-events: none; }
.mc-confetti i {
  position: absolute; left: calc(var(--x) * 1%); top: -3cqw; width: 1cqw; height: .6cqw; opacity: 0;
  background: hsl(calc(var(--k) * 47) 95% 65%); border-radius: 1px;
}
.mc-confetti i:nth-child(4n) { width: 2cqw; height: 2cqw; border-radius: 50%; background: #7b5cff; }
.mc-confetti i:nth-child(4n)::after { content: ""; position: absolute; left: 25%; top: 30%; width: 50%; height: 22%;
  background: radial-gradient(circle, #fff 0 45%, transparent 50%) 0 0 / 50% 100% repeat-x; } /* eyes on the purple blobs */
.mission-cover[data-step="success"] .mc-confetti i { animation: mc-fall 1.6s linear calc(var(--d) * 1ms) infinite; }
@keyframes mc-fall {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 1; transform: translate(calc((var(--k) - 14) * .25cqw), 22cqw) rotate(calc(var(--k) * 90deg)); }
}
/* Slightly larger composition on the big cover */
.thumb.mission-cover.cover .mc-stage, .thumb.mission-cover.cover .mc-steps { zoom: 1.12; }
/* Reset: fade everything out before the loop restarts */
.mission-cover[data-step="reset"] .mc-stage { opacity: 0; transition: opacity .6s; }
.mc-stage { transition: opacity .4s; }
/* Step labels */
.mc-steps { display: flex; justify-content: center; gap: 3cqw; margin: 2.6cqw 0 0; padding: 0; list-style: none; counter-reset: mc; font-size: 1.5cqw; font-weight: 700; color: #6e6e74; }
.mc-steps li { counter-increment: mc; display: flex; align-items: center; gap: .7cqw; transition: color .3s; }
.mc-steps li::before {
  content: counter(mc); display: grid; place-items: center; width: 2.2cqw; height: 2.2cqw; border-radius: 50%;
  border: .15cqw solid #3a3a3e; font-size: 1.2cqw; transition: all .3s;
}
.mission-cover:is([data-step="type"], [data-step="tap"], [data-step="live"]) .mc-steps li[data-k="0"],
.mission-cover[data-step="chip"] .mc-steps li[data-k="1"],
.mission-cover[data-step="success"] .mc-steps li[data-k="2"] { color: #f4f4f5; }
.mission-cover:is([data-step="type"], [data-step="tap"], [data-step="live"]) .mc-steps li[data-k="0"]::before,
.mission-cover[data-step="chip"] .mc-steps li[data-k="1"]::before,
.mission-cover[data-step="success"] .mc-steps li[data-k="2"]::before { background: #00ffa3; border-color: #00ffa3; color: #0b0b0c; }
/* Small home card: just the mission card, larger and centered */
.project-row .mc-card { opacity: 1; }
.project-row .mc-popup, .project-row .mc-steps { display: none; }
.project-row .mc-right { width: 74cqw; gap: 2cqw; }
.project-row .mc-card { padding: 3.4cqw 3.8cqw; border-radius: 3cqw; transform: none; }
.project-row .mc-card-top { font-size: 3.4cqw; gap: 1.4cqw; }
.project-row .mc-card-top img { width: 4.6cqw; height: 4.6cqw; }
.project-row .mc-tag { font-size: 2.3cqw; padding: .4cqw 1.1cqw; border-radius: 1cqw; }
.project-row .mc-card-text { font-size: 4.5cqw; margin: 2cqw 0 2.6cqw !important; white-space: nowrap; }
.project-row .mc-card-foot { font-size: 4.4cqw; }
.project-row .mc-prize svg { width: 4.6cqw; height: 4.6cqw; }
.project-row :is(.mc-timer, .mc-done) { font-size: 3.4cqw; padding: 1cqw 2.2cqw; border-radius: 4cqw; }
.project-row .mc-timer svg { width: 3.4cqw; height: 3.4cqw; }
.project-row .mc-toast { font-size: 3cqw; padding: 1.1cqw 2.6cqw; border-radius: 4cqw; }
.project-row .mc-paid { display: none; }
.project-row .mc-confetti i { width: 2cqw; height: 1.2cqw; }
.project-row .mc-confetti i:nth-child(3n) { width: 4cqw; height: 4cqw; }
@media (prefers-reduced-motion: reduce) {
  .mc-card, .mc-popup, .mc-toast, .mc-stage { transition: none; }
  .mc-confetti i, .mc-caret { animation: none; }
}

/* Donut cover: CHZZK black with CHZZK green for the highlighted share; text stays in text colors.
   Sized in cqw so it scales with the box; the same in light and dark mode. */
.thumb.donut-cover {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5%;
  padding: 0 6% 0 8%;
  container-type: inline-size;
  background: radial-gradient(circle at 70% 50%, rgba(0, 255, 163, .12), transparent 45%), #0b0b0c;
  color: #f4f4f5;
}
.thumb.donut-cover.cover { padding: 0 6% 0 8%; }
.dc-chart { flex: none; width: 30cqw; }
.dc-title { margin: 0 0 2.4cqw; font: 600 2cqw/1.2 var(--sans); color: #a1a1a6; }
.dc-ring { position: relative; }
.dc-ring svg { display: block; width: 100%; transform: rotate(-90deg); }
.dc-ring circle { fill: none; stroke-width: 26; }
.dc-key { stroke: #00ffa3; }
.dc-rest { stroke: #3a3a3e; }
.dc-value { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dc-value strong { font: 600 7.6cqw/1 var(--display); color: #f4f4f5; letter-spacing: -0.01em; }
.dc-value span { margin-top: .6cqw; font: 600 1.8cqw/1.2 var(--sans); color: #a1a1a6; }
.dc-art { position: relative; flex: 1; aspect-ratio: 1268 / 366; }
.dc-card {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  border-radius: 3.6% / 12.5%;
  transform: rotate(-3deg);
  box-shadow: 0 2.4cqw 6cqw rgba(0, 0, 0, .55);
}
.dc-cheeze { position: absolute; z-index: 2; height: auto; filter: drop-shadow(0 1cqw 1.6cqw rgba(0, 0, 0, .45)); }
.dc-cheeze.c1 { width: 18%; left: -6%; bottom: -46%; transform: rotate(-8deg); }
.dc-cheeze.c2 { width: 30%; right: -4%; top: -78%; z-index: 0; transform: rotate(10deg); }
.dc-cheeze.c3 { width: 22%; right: 14%; bottom: -70%; transform: rotate(-4deg); }
.project-row .thumb.donut-cover { padding: 0 6%; gap: 6%; }
.project-row .dc-chart { width: 40cqw; }
.project-row .dc-title { display: none; }
.project-row .dc-value strong { font-size: 11cqw; }
.project-row .dc-value span { font-size: 3cqw; }



/* ---------- Project detail ---------- */
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 40px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.back:hover { color: var(--text); }
.detail-head h1 { font-size: clamp(34px, 4.5vw, 48px); line-height: 1.12; margin-bottom: 16px; }
.detail-head .lede { margin-bottom: 20px; }
.thumb.cover { aspect-ratio: 16 / 9; margin: 40px 0 0; padding: 28px; font-size: 32px; border-radius: var(--radius); }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  margin: 32px 0 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; }

.phases {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.phases li { position: relative; display: flex; flex-direction: column; gap: 2px; padding-top: 26px; }
.phases li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  right: -16px;
  height: 2px;
  background: var(--line);
}
.phases li:last-child::before { right: 0; }
.phases li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.phases li.milestone::after { background: var(--accent); }
.phases .when { font-size: 13px; color: var(--accent); font-weight: 700; }
.phases strong { font-weight: 700; font-size: 16px; }
.phases .detail { font-size: 14px; color: var(--muted); line-height: 1.45; }
.facts .facts-team { grid-column: 1 / -1; }
.facts-team dd { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.team { display: flex; flex-wrap: wrap; gap: 16px 28px; margin: 4px 0 0; padding: 0; list-style: none; }
.role { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 64px; text-align: center; }
.role-count {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  font: 600 18px var(--display);
}
.role.me .role-count {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.role.me .role-count::after {
  content: "Me";
  position: absolute;
  top: -6px;
  right: -12px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font: 700 10px/16px var(--sans);
}
.role-name { display: flex; flex-direction: column; font-size: 14px; font-weight: 600; line-height: 1.3; }
.role-name small { font-size: 12px; font-weight: 500; color: var(--accent); }
.team-note { font-size: 14px; font-weight: 500; color: var(--muted); }
.prose { max-width: 64ch; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.project-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; }
.project-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 15px; }
.project-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.project-links svg { width: 16px; height: 16px; }
.prose h2 { font-size: 24px; margin: 48px 0 12px; }
.prose p + p { margin-top: 16px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 10px 0 10px 44px; border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 11px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}
.prose h3 { font-size: 17px; font-weight: 700; line-height: 1.35; }
.questions { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.questions li {
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  font: 600 18px/1.5 var(--sans);
}
.responsibilities { margin: 0; padding: 0; list-style: none; }
.responsibilities li {
  position: relative;
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 0 0 18px 30px;
}
.responsibilities li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: -6px;
  width: 2px;
  background: var(--line);
}
.responsibilities li:last-child { padding-bottom: 0; }
.responsibilities li:last-child::before { display: none; }
.responsibilities li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.responsibilities li.milestone::after { background: var(--accent); }
.responsibilities h3 { font-size: 16px; }
.responsibilities p { margin: 0; color: var(--muted); font-size: 15px; }
.methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.methods div { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.methods p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.insights { margin: 0; padding: 0; list-style: none; counter-reset: i; display: flex; flex-direction: column; gap: 14px; }
.insights li {
  counter-increment: i;
  position: relative;
  padding: 22px 22px 22px 64px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.insights.single li { padding-left: 22px; }
.insights.single li::before { display: none; }
.insights li::before {
  content: counter(i);
  position: absolute;
  left: 20px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
}
.insights p { margin-top: 6px; color: var(--muted); }
.insights blockquote {
  margin: 14px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--line);
  font: italic 600 16px/1.55 var(--sans);
  color: var(--text);
}
.insight-actions { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.insight-actions > strong { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--accent); }
.insight-actions li strong { font-weight: 700; }
.insight-actions ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.insight-actions li { color: var(--text); font-size: 15px; line-height: 1.55; }
.insight-actions li::marker { color: var(--accent); }
.insights .insight-actions li { padding: 0; border: 0; background: none; counter-increment: none; }
.insights .insight-actions li::before { content: none; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 28px; }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.gallery figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.gallery .placeholder div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 180px;
  padding: 20px;
  border: 2px dashed color-mix(in srgb, #c99a06 60%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, #f2c94c 12%, transparent);
  text-align: center;
}
.gallery .placeholder strong { font-size: 14px; }
.gallery .placeholder span { font-size: 14px; color: var(--muted); }
/* Benchmark comparison: two sides with notes. Gaps get a muted ×, the better fit gets an accent ✓ and a highlight box. */
.compare { margin: 28px 0 8px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.cmp-title { margin: 0 0 16px; font-size: 14px; font-weight: 700; }
/* Each side grows in proportion to its image's aspect ratio; the 16px basis covers the frame padding,
   so both images end up exactly the same height */
.cmp-grid { display: flex; gap: 20px; align-items: flex-start; }
.cmp-side { flex: var(--r) 1 16px; min-width: 0; }
.cmp-head { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; font-size: 15px; }
.cmp-head span { padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.cmp-shot { padding: 8px; border-radius: 10px; background: color-mix(in srgb, var(--text) 6%, transparent); }
.cmp-frame { position: relative; width: 100%; overflow: hidden; border-radius: 6px; background: #fff; }
.cmp-frame img, .cmp-frame video { display: block; width: 100%; height: 100%; object-fit: contain; }
.cmp-highlight { position: absolute; border: 2.5px solid var(--accent); border-radius: 8px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.cmp-highlight em {
  position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); padding: 2px 8px; border-radius: 999px; white-space: nowrap;
  background: var(--accent); color: var(--bg); font: 700 11px/1.4 var(--sans); font-style: normal;
}
.cmp-credit { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.cmp-notes { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; line-height: 1.45; }
.cmp-notes li { position: relative; padding-left: 28px; }
.cmp-notes li::before {
  position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 19px; height: 19px;
  border-radius: 50%; font-size: 11px; font-weight: 700;
}
.cmp-side.gap .cmp-notes li::before { content: "×"; font-size: 14px; background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--muted); }
.cmp-side.fit .cmp-notes li::before { content: "✓"; background: var(--accent-soft); color: var(--accent); }
.compare figcaption { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.compare figcaption small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
@media (max-width: 640px) {
  .cmp-grid { flex-direction: column; }
  .cmp-side { flex: none; width: 100%; }
  .compare { padding: 14px; }
}

/* Ordinary vs. streak comparison (streaks page): a row label, then the ordinary and streak versions side by side */
.sd-grid { display: grid; grid-template-columns: 96px 1fr 1fr; gap: 12px 16px; align-items: center; }
.sd-col { margin: 0; }
.sd-col.is-streak strong { color: #ff6a3d; }
.sd-row-label { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.sd-panel { display: grid; place-items: center; min-height: 64px; padding: 14px; border-radius: 10px; background: #141517; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.sd-cell.is-streak .sd-panel { box-shadow: inset 0 0 0 1.5px rgba(255, 106, 61, .55); }
/* Card row: no dark panel, so the cards show at full cell width */
.sd-panel.bare { min-height: 0; padding: 0; background: none; box-shadow: none !important; }
.sd-caption { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.sd-cell.is-streak .sd-caption { color: var(--text); font-weight: 600; }
.sk-card.static { position: relative; transform: none; transition: none; box-shadow: none; }
.prose .sk-card p, .prose .sd-panel p, .prose .sd-grid p { margin: 0; line-height: 1.3; }
.sk-card.plain { background: #564fa3; }
.sk-pill { left: 3.8%; top: 62%; width: 25%; height: 27%; border-radius: 999px; background: #49438b; }
.sk-pill img { position: absolute; left: 11%; top: 50%; width: 18%; transform: translateY(-50%); }
.sd-chat { display: flex; align-items: center; gap: 6px; }
.sd-badges { display: flex; gap: 5px; }
.sd-badges img { width: 30px; height: 30px; }
.sd-user { margin-left: 6px; color: #e8916a; font-size: 17px; font-weight: 700; }
@media (max-width: 640px) {
  .sd-grid { grid-template-columns: 1fr 1fr; }
  .sd-grid > span:first-child { display: none; }
  .sd-row-label { grid-column: 1 / -1; margin-top: 6px; }
}

/* Streamer console mockup (streaks page): light UI like the real console, in both site themes */
.console-mock { margin: 28px 0 8px; }
.cm-window { overflow: hidden; border-radius: 12px; background: #fff; color: #1c1d21; box-shadow: 0 10px 30px rgba(0, 0, 0, .14), 0 0 0 1px rgba(0, 0, 0, .08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.cm-bar { position: relative; display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #f2f2f4; border-bottom: 1px solid #e3e3e8; }
.cm-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.cm-bar i:nth-child(2) { background: #febc2e; }
.cm-bar i:nth-child(3) { background: #28c840; }
.cm-bar span { position: absolute; left: 50%; transform: translateX(-50%); color: #555; font-size: 12px; }
.cm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #ececf0; }
.cm-head strong { font-size: 16px; }
.cm-head nav { display: flex; gap: 16px; font-size: 13px; font-weight: 700; color: #8b8d98; }
.cm-head nav .on { color: #4b3fd8; box-shadow: 0 2px 0 #4b3fd8; padding-bottom: 3px; }
.cm-list { display: grid; gap: 10px; margin: 0; padding: 14px; list-style: none; }
.prose .cm-list p { margin: 0; }
.cm-item { position: relative; display: grid; gap: 6px; padding: 14px 16px 16px; border-radius: 10px; background: #f4f5f8; font-size: 14px; line-height: 1.45; }
.cm-item.is-streak { background: #fff4ef; box-shadow: inset 0 0 0 1.5px #ffc7b3; }
.cm-line { display: flex; align-items: center; gap: 8px; }
.cm-line > span:nth-child(2) { flex: 1; }
.cm-line time { color: #9a9ca6; font-size: 12px; }
.cm-coin { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #1fbf6a; color: #fff; font-size: 12px; font-weight: 800; }
.cm-amt { color: #4b3fd8; }
.cm-streak { display: flex; align-items: center; gap: 4px; padding-left: 28px; color: #333; }
.cm-streak img { width: 16px; height: 16px; }
.cm-streak b { color: #f0442f; }
.cm-msg { padding-left: 28px; color: #6b6e78; }
.cm-play { position: relative; width: 30px; height: 30px; margin-left: 28px; border-radius: 50%; background: #4b3fd8; }
.cm-play::after { content: ""; position: absolute; left: 11px; top: 9px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff; }
.console-mock figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .cm-head nav span:nth-child(n + 3) { display: none; } }

/* Annotated screenshot (missions page) */
.shot-figure { margin: 28px 0 8px; }
.sf-frame { position: relative; overflow: hidden; border-radius: 10px; background: #000; box-shadow: 0 0 0 1px var(--line); container-type: inline-size; }
/* Enlarged overlay card for mark 2, joined to its box by a short line */
.sf-link { position: absolute; width: 0; border-left: 2px solid #00ffa3; }
.sf-inset {
  position: absolute; display: grid; gap: .6cqw; width: max-content; padding: 1.2cqw 1.4cqw; border-radius: 1.2cqw; background: #19191b; color: #f4f4f5;
  box-shadow: 0 0 0 2px #00ffa3, 0 1.4cqw 3cqw rgba(0, 0, 0, .55); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.prose .sf-inset p { margin: 0; color: inherit; }
.sf-inset-top { display: flex; align-items: center; gap: .6cqw; font-size: 1.15cqw; color: #c9c9cf !important; }
.sf-inset .mc-tag { font-size: .95cqw; padding: .1cqw .5cqw; border-radius: .4cqw; }
.sf-inset-text { font-size: 1.55cqw; font-weight: 800; white-space: nowrap; }
.sf-inset-foot { display: flex; align-items: center; justify-content: space-between; gap: 1.6cqw; font-size: 1.35cqw; font-weight: 800; }
.sf-inset-foot span { display: inline-flex; align-items: center; gap: .4cqw; }
.sf-inset-foot svg { width: 1.4cqw; height: 1.4cqw; }
.sf-inset-timer { padding: .25cqw .8cqw; border-radius: 1cqw; background: #000; }
.sf-frame img { display: block; width: 100%; height: 100%; }
.sf-box { position: absolute; border: 2.5px solid #00ffa3; border-radius: 8px; box-shadow: 0 0 0 3px rgba(0, 255, 163, .25); }
.sf-box b {
  position: absolute; left: -11px; top: -11px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: #00ffa3; color: #0b0b0c; font-size: 12px; font-weight: 800; font-family: var(--sans);
}
.sf-notes { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: sf; display: grid; gap: 8px; font-size: 14px; line-height: 1.45; }
.sf-notes li { counter-increment: sf; position: relative; padding-left: 30px; }
.sf-notes li::before {
  content: counter(sf); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: #00ffa3; color: #0b0b0c; font-size: 11px; font-weight: 800;
}
.shot-figure figcaption { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* Chip-in flow (missions page): three CHZZK screens side by side, stacked on narrow screens */
.chip-flow { margin: 18px 0 4px; padding-top: 16px; border-top: 1px solid var(--line); container-type: inline-size; }
.cf-steps { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 4px; align-items: start; }
.cf-arrow { align-self: center; margin-top: 40px; color: var(--muted); font-size: 14px; }
.cf-label { display: flex; gap: 5px; min-height: 44px; margin: 0 0 6px !important; font-size: 11.5px; font-weight: 700; line-height: 1.35; color: var(--text); }
.cf-label span { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 11px; }
.cf-screen { padding: 6px; border-radius: 10px; background: #141517; color: #f4f4f5; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 10px; }
.prose .cf-screen p { margin: 0; color: inherit; line-height: 1.35; }
.cf-step, .cf-screen, .cf-screen * { min-width: 0; }
.cf-screen { overflow: hidden; }
.cf-pin-head { display: flex; align-items: center; gap: 4px; padding: 4px 4px 8px; color: #00ffa3 !important; font-weight: 800; }
.cf-pin-head svg, .cf-screen .mlist-timer svg { width: 11px; height: 11px; }
.cf-card { display: grid; gap: 4px; padding: 7px 8px; border-radius: 9px; background: #26282b; }
.cf-top { display: flex; align-items: center; gap: 4px; color: #a1a1a6 !important; white-space: nowrap; }
.cf-by { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cf-top .mlist-timer { flex: none; }
.cf-screen .mlist-timer { padding: 1px 5px; font-size: 9px; }
.cf-screen .mlist-people { flex: none; padding: 0 4px; font-size: 9px; }
.cf-text { font-size: 11px; font-weight: 800; }
.cf-amt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 11px; white-space: nowrap; }
.cf-amt svg { width: 13px; height: 13px; color: #d9d9de; }
.cf-add { position: relative; margin-left: 2px; color: #00ffa3; font-weight: 800; font-size: 10px; }
.cf-add.tap { padding: 1px 6px; margin-left: 2px; border-radius: 6px; box-shadow: 0 0 0 1.5px #00ffa3; }
.cf-sheet { display: grid; gap: 7px; }
.cf-sheet-head { font-size: 12px; color: #c9c9ce !important; }
.cf-sheet-head b { color: #f4f4f5; }
.cf-sum { display: grid; gap: 5px; padding: 8px 9px; border-radius: 9px; border: 1px solid #34363a; }
.cf-sum-row { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; justify-content: space-between; font-weight: 800; white-space: nowrap; }
.cf-row { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 7px 8px; border-radius: 9px; background: #26282b; font-weight: 700; }
/* Off switch: gray track with a white knob on the left */
.cf-toggle { position: relative; flex: none; width: 24px; height: 13px; border-radius: 8px; background: #44464b; }
.cf-toggle::after { content: ""; position: absolute; left: 1.5px; top: 1.5px; width: 10px; height: 10px; border-radius: 50%; background: #f4f4f5; }
.cf-box { display: grid; gap: 6px; padding: 8px 9px; border-radius: 9px; background: #26282b; }
.cf-box-head { display: flex; flex-wrap: wrap; gap: 4px; justify-content: space-between; align-items: center; }
.cf-box-head span { padding: 1px 6px; border-radius: 8px; border: 1px solid #3a3c40; font-size: 10px; color: #c9c9ce; }
.cf-box-head em { font-style: normal; color: #ffd54a; font-weight: 800; }
.cf-input { display: flex; align-items: center; height: 26px; padding: 0 8px; border-radius: 7px; border: 1.5px solid #00ffa3; background: #151618; font-size: 13px; font-weight: 800; }
.cf-input .mc-caret { height: 13px; }
.cf-screen .mc-presets { flex-wrap: wrap; gap: 3px; }
.cf-screen .mc-presets span { padding: 2px 5px; font-size: 9px; border-radius: 7px; }
.cf-btn { display: flex; align-items: center; justify-content: center; gap: 5px; height: 26px; border-radius: 7px; background: #00ffa3; color: #0b0b0c !important; font-weight: 800; }
.cf-btn svg { width: 13px; height: 13px; }
.cf-result { display: grid; gap: 8px; }
.cf-result .cf-amt b { color: #00ffa3; }
.cf-chat { padding: 7px 9px; border-radius: 9px; background: #1e1f22; color: #c9c9ce !important; }
.cf-chat b { color: #f4f4f5; }
.cf-chat span { color: #00ffa3; font-weight: 800; }
/* Stack the screens when the card itself is narrow */
@container (max-width: 460px) {
  .cf-steps { grid-template-columns: minmax(0, 1fr); max-width: 300px; }
  .cf-label { min-height: 0; }
  .cf-arrow { margin: 0; justify-self: center; transform: rotate(90deg); }
}

/* Use cases inside an insight card */
.insights > li, .insights > li > div, .use-cases, .use-case { min-width: 0; }
.use-cases { display: grid; gap: 22px; margin: 18px 0 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.use-cases-label { margin: 0 !important; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.use-case > h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 15px; }
.use-case > h4 > span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 11px; }
.use-case > p { margin: 0 0 12px !important; }
/* Recreated mission list (CHZZK dark UI, the same in both site themes) */
.mlist { max-width: 340px; padding: 10px; border-radius: 12px; background: #141517; color: #f4f4f5; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.prose .mlist p { margin: 0; color: #f4f4f5; }
.prose .mlist .mlist-top { color: #a1a1a6; }
.mlist-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; font-size: 14px; color: #8e8e93; }
.mlist-head strong { flex: 1; color: #f4f4f5; }
.mlist-head b { color: #00ffa3; }
.mlist-item { display: grid; gap: 4px; padding: 10px 12px; margin-top: 8px; border-radius: 10px; background: #26282b; }
.mlist-top { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #a1a1a6; }
.mlist-people { padding: 1px 6px; border-radius: 5px; background: #1b1c1f; font-size: 11px; }
.mlist-timer { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #000; color: #f4f4f5; font-weight: 700; }
.mlist-timer svg { width: 12px; height: 12px; }
.mlist-text { font-size: 14px; font-weight: 700; }
.mlist-amt { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.mlist-amt svg { width: 16px; height: 16px; color: #d9d9de; }
.mlist-add { margin-left: 6px; color: #00ffa3; font-size: 12px; font-weight: 700; }
.mlist-note { margin: 6px 0 0 !important; font-size: 12px; color: var(--muted); }
.post-shot.inline { display: block; width: fit-content; margin: 8px 0 0; }
.use-case .posts { margin-top: 14px; }
/* Clip link card */
.case-clip { display: flex; align-items: center; gap: 14px; max-width: 420px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; }
.case-clip:hover { border-color: var(--text); }
.prose a.case-clip, .prose a.case-clip * { text-decoration: none; border-bottom: 0; }
.case-clip-media { position: relative; flex: none; display: grid; place-items: center; width: 160px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #000; }
.case-clip-media img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.case-clip-media .play-icon { width: 40px; height: 40px; }
.case-clip-media .play-icon::after { left: 16px; top: 12px; border-width: 8px 0 8px 13px; }
.case-clip:hover .play-icon { background: #00b37a; }
.case-clip-text { display: grid; gap: 2px; }
.case-clip-text strong { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.case-clip-text svg { width: 14px; height: 14px; }
.case-clip-text small { color: var(--muted); font-size: 12px; }

/* Community posts: a compact row of cards that scrolls sideways, with an EN / Korean switch */
.posts { margin: 16px 0 6px; }
.posts-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.posts-label { flex: 1; margin: 0; font-size: 14px; font-weight: 700; }
.posts-label small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.lang-toggle { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang-toggle button {
  padding: 4px 10px; border: 0; border-radius: 999px; background: none; color: var(--muted);
  font: 600 12px/1.2 var(--sans); cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.posts-nav { display: flex; gap: 6px; }
.posts-nav .carousel-btn { width: 32px; height: 32px; }
.posts-track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 4px;
}
.posts-track::-webkit-scrollbar { display: none; }
.post {
  flex: 0 0 260px; scroll-snap-align: start; display: flex; flex-direction: column;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
}
.post-meta { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.post-meta span { font-weight: 700; }
.post h4 { margin: 0 0 6px; font: 700 15px/1.35 var(--sans); }
.post-body { margin: 0; font-size: 14px; line-height: 1.5; }
.post-note { margin: 6px 0 0; font-size: 12px; color: var(--muted); font-style: italic; }
.post-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: auto 0 0; padding-top: 12px; font-size: 12px; color: var(--muted); }
.post-shot {
  padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; background: none;
  color: var(--text); font: 600 12px/1.2 var(--sans); cursor: pointer;
}
.post-shot:hover { border-color: var(--text); }
.posts[data-lang="en"] .lang-ko, .posts[data-lang="ko"] .lang-en { display: none; }
.posts .lang-ko { font-family: -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; }
.shot-dialog { max-width: min(920px, 94vw); padding: 0; border: 0; border-radius: 12px; background: #fff; overflow: visible; }
.shot-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.shot-dialog img { display: block; width: 100%; height: auto; border-radius: 12px; }
.shot-close {
  position: absolute; top: -14px; right: -14px; width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: var(--text); color: var(--bg); font-size: 20px; line-height: 1; cursor: pointer;
}

.carousel { position: relative; }
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--radius);
}
.carousel-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.slide-media {
  display: grid;
  place-items: center;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #111;
}
.slide-media { position: relative; }
.slide-media > img, .slide-media > video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
/* Several animations in one slide: a large one on the left, two stacked on the right */
.video-grid { position: absolute; inset: 0; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; background: #2a2a2d; }
.video-grid video { width: 100%; height: 100%; min-height: 0; object-fit: cover; background: #111; }
.video-grid video:first-child { grid-row: span 2; object-fit: contain; }
/* Outside clip: poster with a play button that opens the clip in a new tab */
.clip-link { position: absolute; inset: 0; display: grid; place-items: center; background: #000; color: #fff; text-decoration: none; }
.clip-link img { width: 100%; height: 100%; object-fit: contain; opacity: .8; transition: opacity .2s; }
.play-icon { position: absolute; width: 64px; height: 64px; border-radius: 50%; background: rgba(0, 0, 0, .6); box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); transition: background .2s; }
.play-icon::after { content: ""; position: absolute; left: 26px; top: 20px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; }
.slide-media .clip-link, .slide-media .clip-label { color: #fff; text-decoration: none; }
.clip-label { position: absolute; right: 14px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .7); font-size: 13px; font-weight: 600; }
.clip-label svg { width: 14px; height: 14px; }
.clip-link:hover img { opacity: 1; }
.clip-link:hover .play-icon { background: #00b37a; }
.step-media { margin: 22px 0 6px; }
.step-media .posts-label { margin-bottom: 10px; }
.step-media .slide-media { aspect-ratio: 16 / 10; }
.slide figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; padding: 0 2px; font-size: 14px; line-height: 1.45; }
.slide figcaption a { font-size: 12px; color: var(--muted); text-decoration: none; }
.slide-credit { font-size: 12px; color: var(--muted); }
.slide figcaption a:hover { color: var(--accent); text-decoration: underline; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.carousel-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.carousel-btn:hover { border-color: var(--text); }
.carousel-btn svg { width: 16px; height: 16px; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; transition: width .2s, background .2s; }
.carousel-dots button[aria-current="true"] { width: 22px; background: var(--accent); }
.pull-quote { margin: 28px 0 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); }
.pull-quote blockquote { margin: 0; font: 600 20px/1.5 var(--sans); color: var(--text); }
.pull-quote figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.pull-quote figcaption a { color: var(--muted); }
/* Photo tiles: rows of photos at their own proportions and a shared height, centered,
   so row edges don't line up. --r is the photo's width / height; --s (optional) scales a photo up or down.
   Captions show on hover, or under the photo on touch screens. */
.photo-tiles { --tile-h: 230px; display: flex; flex-direction: column; gap: 12px; }
.tile-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.tile {
  position: relative;
  flex: 0 0 calc(var(--r) * var(--tile-h) * var(--s, 1));
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}
.tile img { display: block; width: 100%; height: auto; aspect-ratio: var(--r); object-fit: cover; transition: transform .4s ease; }
.tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 14px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, .65), transparent);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.tile:hover figcaption, .tile:focus-within figcaption { opacity: 1; transform: none; }
.tile:hover img { transform: scale(1.03); }
.tile.placeholder div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  aspect-ratio: 1;
  padding: 20px;
  border: 2px dashed color-mix(in srgb, #c99a06 60%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, #f2c94c 12%, transparent);
  text-align: center;
  font-size: 14px;
}
@media (hover: none) {
  .tile { overflow: visible; background: none; }
  .tile img { border-radius: var(--radius); }
  .tile figcaption { position: static; padding: 8px 2px 0; background: none; color: var(--muted); opacity: 1; transform: none; font-size: 13px; }
}
mark.todo {
  background: color-mix(in srgb, #f2c94c 35%, transparent);
  color: inherit;
  border-radius: 4px;
  padding: 1px 4px;
  outline: 1px dashed color-mix(in srgb, #c99a06 70%, transparent);
}
mark.todo::before { content: "To fill in: "; font-weight: 700; font-style: normal; font-family: var(--sans); font-size: 0.85em; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 24px; }
.metrics.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metrics div { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.metrics strong { display: block; font: 600 30px/1.1 var(--display); color: var(--accent); margin-bottom: 4px; }
.metrics span { display: block; font-size: 14px; color: var(--muted); }
.metrics small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); opacity: .8; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 72px; }
.pager a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 600;
  transition: border-color .2s;
}
.pager a:hover { border-color: var(--text); }
.pager small { color: var(--muted); font-size: 13px; font-weight: 500; }
.pager .next { text-align: right; }

/* ---------- About ---------- */
.about-head { display: flex; align-items: center; gap: 28px; padding-top: 40px; margin-bottom: 40px; }
.about-head h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.1; margin-bottom: 6px; }
.portrait {
  flex: none;
  display: grid;
  place-items: center;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font: 600 40px var(--display);
}
.about-head + .prose p { font-size: 17px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.period { color: var(--muted); font-size: 14px; padding-top: 2px; white-space: nowrap; }
.timeline h3 { font-size: 17px; }
.timeline .has-logo { display: flex; gap: 16px; align-items: flex-start; }
.org-logo {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  object-fit: contain;
  padding: 3px;
}
img.org-logo { border: 0; border-radius: 0; background: none; padding: 0; }
/* Logos are dark, so show them as light single-color marks in dark mode */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) img.org-logo { filter: brightness(0) invert(0.88); }
}
:root[data-theme="dark"] img.org-logo { filter: brightness(0) invert(0.88); }
.org-logo.placeholder {
  display: grid;
  place-items: center;
  padding: 0;
  border-style: dashed;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.timeline .org { color: var(--accent); font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.timeline p:not(.org) { color: var(--muted); font-size: 15px; }
.contact .lede { margin-top: -12px; }

.footer { margin-top: 96px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --sidebar-w: 290px; }
  .content { padding: 64px 40px 32px; }
  .sidebar { padding: 40px 28px; }
  .project-row { grid-template-columns: 150px minmax(0, 1fr) auto; gap: 18px; }
}

@media (max-width: 820px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: sticky;
    z-index: 10;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .brand { flex-direction: row; align-items: center; gap: 12px; }
  .avatar { width: 36px; height: 36px; border-radius: 50%; font-size: 14px; }
  .brand-text small, .sidebar-bio, .resume-link { display: none; }
  .brand-text strong { font: 700 15px var(--sans); }
  .nav { flex-direction: row; margin-left: auto; gap: 14px; }
  .nav a { padding: 6px 0; font-size: 14px; white-space: nowrap; }
  .nav a::before { display: none; }
  .nav a.active { color: var(--accent); }
  .sidebar-foot { margin: 0; }
  .social { gap: 4px; }
  .social a, #theme-toggle { width: 34px; height: 34px; border: 0; }

  html { scroll-padding-top: 76px; }
  .content { padding: 32px 16px 24px; }
  .section { padding-top: 64px; }
  .project-row { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 12px; }
  .project-row .thumb { aspect-ratio: 16 / 9; }
  .project-row .thumb.mockup .mock-browser { top: 10%; }
  .project-row .thumb.mockup .mock-phone { top: 16%; }
  .go { display: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phases { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .phases li { padding: 0 0 22px 28px; }
  .phases li::before { top: 6px; bottom: -6px; left: 5px; right: auto; width: 2px; height: auto; }
  .phases li:last-child::before { display: none; }
  .about-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .portrait { width: 120px; height: 120px; font-size: 32px; }
}

@media (max-width: 520px) {
  .brand-text { display: none; }
  .info-list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .photo-tiles { display: block; columns: 2; column-gap: 10px; }
  .tile-row { display: contents; }
  .tile { break-inside: avoid; margin-bottom: 10px; }
  .responsibilities li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .metrics.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pager .next { text-align: left; }
  .thumb.cover { padding: 18px; font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Phones: the demo cover is too small for the step list, so show only the recording */
@media (max-width: 520px) {
  .thumb.demo.in-body { grid-template-columns: 1fr; grid-template-rows: 100%; justify-items: center; padding: 0; }
  .thumb.demo.in-body .demo-steps { display: none; }
  .thumb.demo.in-body .demo-phone { height: 90%; }
}
