/* Abheek Bajaj portfolio, rebuilt 2026. One stylesheet for the home page and every case study. */

:root {
  --bg: #f5f3ee;
  --surface: #ffffff;
  --surface-2: #ebe8e1;
  --ink: #14161a;
  --ink-2: #434851;
  --ink-3: #646a74;
  --line: #dcd8cf;
  --line-strong: #bfbab0;
  --accent: #c2410c;
  --accent-strong: #f2611d;
  --on-accent: #14161a;
  --shadow: 0 1px 2px rgba(20, 22, 26, 0.05), 0 10px 30px rgba(20, 22, 26, 0.07);
  --font-display: "Archivo", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1013;
    --surface: #16191e;
    --surface-2: #1e2229;
    --ink: #f2efe9;
    --ink-2: #c3c7ce;
    --ink-3: #9299a3;
    --line: #272c34;
    --line-strong: #3b414b;
    --accent: #ff8a52;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1013;
  --surface: #16191e;
  --surface-2: #1e2229;
  --ink: #f2efe9;
  --ink-2: #c3c7ce;
  --ink-3: #9299a3;
  --line: #272c34;
  --line-strong: #3b414b;
  --accent: #ff8a52;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.display {
  font: 800 clamp(2.5rem, 6.4vw, 4.9rem)/0.98 var(--font-display);
  font-stretch: 112%;
  letter-spacing: -0.025em;
}
h2, .h2 { font: 800 clamp(1.7rem, 3.2vw, 2.5rem)/1.08 var(--font-display); font-stretch: 108%; letter-spacing: -0.02em; }
h3, .h3 { font: 700 clamp(1.25rem, 2vw, 1.55rem)/1.2 var(--font-display); letter-spacing: -0.01em; }
h4 { font: 700 1.0625rem/1.3 var(--font-body); }
.eyebrow {
  font: 600 0.8125rem/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 46em; }
.muted { color: var(--ink-3); }
.small { font-size: 0.9375rem; }
.link { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.link:hover { text-decoration-thickness: 2.5px; }
.prose p + p { margin-top: 0.9em; }
.prose { max-width: 44em; }
.prose a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
strong, b { font-weight: 700; }

/* ---------- buttons, chips, tags ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.72em 1.2em;
  border: 1.5px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font: 600 0.9375rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--small { padding: 0.5em 0.95em; font-size: 0.875rem; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.chip {
  display: inline-flex; align-items: center; gap: 0.45em;
  padding: 0.28em 0.75em;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink-2);
  font: 600 0.8125rem/1.3 var(--font-body);
  white-space: nowrap;
}
.chip::before { content: ""; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--ink-3); }
.chip--ship::before { background: #1fa463; }
.chip--live::before { background: #2d7ff9; }
.chip--wip::before { background: #e0a100; }
.chip--tool::before { background: #8b5cf6; }
.chip--plain::before { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 0.2em 0.65em; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); font: 500 0.8125rem/1.4 var(--font-body); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top__in { display: flex; align-items: center; gap: 12px 22px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.0625rem/1 var(--font-display); letter-spacing: -0.01em; }
.cube { width: 30px; height: 34px; flex: none; }
.cube polygon, .cube path { stroke: var(--ink); stroke-width: 44; }
.cube .top-face { fill: var(--accent-strong); }
.cube .left { fill: var(--surface); }
.cube .right { fill: var(--surface-2); }
.cube .glyph { fill: var(--ink); stroke: none; }
.cube .edge { fill: none; }
.top__nav { display: flex; gap: 4px; margin-left: auto; }
.top__nav a { padding: 6px 12px; border-radius: 999px; text-decoration: none; font: 500 0.9375rem/1.2 var(--font-body); color: var(--ink-2); }
.top__nav a:hover { background: var(--surface-2); color: var(--ink); }
.top__act { display: flex; align-items: center; gap: 8px; }
.theme { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: transparent; cursor: pointer; display: grid; place-items: center; }
.theme:hover { border-color: var(--ink); }
.theme svg { width: 18px; height: 18px; }
@media (max-width: 880px) {
  .top__nav a { padding: 6px 8px; }
  .top__act .btn--ghost { display: none; }
}
@media (max-width: 600px) {
  .top__nav { display: none; }
  .top__act { margin-left: auto; }
  .top__in { flex-wrap: nowrap; min-height: 58px; }
  html { scroll-padding-top: 76px; }
}

/* ---------- home: hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 76px) clamp(28px, 4vw, 48px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero__name { display: block; font: 700 clamp(1.15rem, 2vw, 1.45rem)/1.2 var(--font-display); letter-spacing: 0; margin-bottom: 0.5em; color: var(--ink-2); font-stretch: 100%; }
.hero__pitch { margin-top: 22px; }
.hero .btns { margin-top: 26px; }
.hero__status { margin-top: 22px; display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.dot { width: 9px; height: 9px; margin-top: 0.45em; border-radius: 50%; background: #1fa463; box-shadow: 0 0 0 4px color-mix(in srgb, #1fa463 22%, transparent); flex: none; }
.media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #0b0c0e; box-shadow: var(--shadow); }
.media video, .media img { width: 100%; display: block; }
.hero__media video { aspect-ratio: 960 / 584; object-fit: cover; }
.cap { margin-top: 10px; font-size: 0.9rem; color: var(--ink-3); }
.cap a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

/* ---------- home: proof strip ---------- */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.proof > div { padding: 20px 22px; border-left: 1px solid var(--line); }
.proof > div:first-child { border-left: 0; }
.proof dt { font: 800 clamp(1.25rem, 2.2vw, 1.7rem)/1.1 var(--font-display); letter-spacing: -0.01em; }
.proof dd { margin-top: 6px; font-size: 0.9375rem; line-height: 1.4; color: var(--ink-2); }
.proof .arrow { color: var(--accent-strong); }
@media (max-width: 900px) {
  .proof { grid-template-columns: 1fr 1fr; }
  .proof > div:nth-child(3) { border-left: 0; }
  .proof > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .proof { grid-template-columns: 1fr; }
  .proof > div { border-left: 0; }
  .proof > div + div { border-top: 1px solid var(--line); }
}

/* ---------- sections ---------- */
.band { padding-block: clamp(48px, 7vw, 92px); }
.band--tint { background: var(--surface-2); }
.band--tight { padding-block: clamp(26px, 3.5vw, 44px) 0; }
.edge h2 { margin-bottom: 14px; }
.edge .panel h3 { font-size: 1.2rem; line-height: 1.2; }
.edge .panel p:last-child { margin-top: 10px; }
.band__head { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: end; justify-content: space-between; margin-bottom: clamp(24px, 3.5vw, 40px); }
.band__head p { color: var(--ink-2); max-width: 34em; }

/* ---------- home: case rows ---------- */
.cases { display: grid; gap: clamp(28px, 4vw, 52px); }
.case { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3.5vw, 48px); align-items: center; }
.case:nth-child(even) .case__media { order: 2; }
.case__media { display: block; position: relative; text-decoration: none; }
.case__media video, .case__media img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform 0.4s ease; }
.case__media:hover video, .case__media:hover img { transform: scale(1.02); }
.case__kicker { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.num { font: 600 0.875rem/1 var(--font-mono); color: var(--ink-3); letter-spacing: 0.06em; }
.case h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; font-stretch: 108%; letter-spacing: -0.02em; line-height: 1.05; }
.case h3 a { text-decoration: none; }
.case h3 a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; text-decoration-color: var(--accent-strong); }
.case__role { margin-top: 8px; font: 500 0.9rem/1.45 var(--font-mono); color: var(--ink-3); }
.case__line { margin-top: 14px; color: var(--ink-2); max-width: 34em; }
.result { margin-top: 16px; display: flex; gap: 14px; align-items: baseline; padding: 12px 16px; border-left: 4px solid var(--accent-strong); background: var(--surface); border-radius: 0 10px 10px 0; }
.band--tint .result { background: var(--bg); }
.result dt { font: 800 1.35rem/1.1 var(--font-display); white-space: nowrap; }
.result dd { font-size: 0.9375rem; line-height: 1.4; color: var(--ink-2); }
.case .tags { margin-top: 16px; }
.case .btns { margin-top: 20px; gap: 10px 18px; }
@media (max-width: 860px) {
  .case { grid-template-columns: 1fr; }
  .case:nth-child(even) .case__media { order: 0; }
}

/* ---------- home: in development strip ---------- */
.wip { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 40px); align-items: center; padding: clamp(18px, 3vw, 30px); border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.wip__media video { aspect-ratio: 16 / 9; object-fit: cover; }
.wip h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; margin-top: 10px; }
.wip p { margin-top: 10px; color: var(--ink-2); }
.wip .btns { margin-top: 18px; gap: 10px 18px; }
@media (max-width: 760px) { .wip { grid-template-columns: 1fr; } }

/* ---------- home: more work ---------- */
.more { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card__img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: #0b0c0e; }
.card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 1.2rem; font-weight: 800; }
.card p { font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }
.card .case__role { margin-top: auto; padding-top: 8px; font-size: 0.8125rem; }
.code-tile { aspect-ratio: 16 / 9; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; color: #f2efe9;
  background: radial-gradient(120% 90% at 20% 10%, #2a3350 0%, #14161a 60%), #14161a; }
.code-tile small { font: 600 0.75rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: #a9b2c6; }
.code-tile b { font: 800 clamp(1.1rem, 1.6vw, 1.4rem)/1 var(--font-mono); letter-spacing: 0.04em; }
.earlier { margin-top: 22px; font-size: 0.9375rem; color: var(--ink-2); max-width: 60em; }
@media (max-width: 1000px) { .more { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .more { grid-template-columns: 1fr; } }

/* ---------- home: skills ---------- */
.skills { border-top: 1px solid var(--line-strong); }
.skills > div { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 6px 28px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.skills dt { font: 700 1.0625rem/1.3 var(--font-display); }
.skills dd { color: var(--ink-2); }
.skills dd a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.kit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.kit > div { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.kit dt { font: 600 0.8125rem/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.kit .tags li { font-size: 0.875rem; }
@media (max-width: 900px) { .kit { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .skills > div { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .kit { grid-template-columns: 1fr; } .result { flex-direction: column; gap: 4px; } }

/* ---------- home: about, timeline, contact ---------- */
.about { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.about__photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.about__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.quote { margin-top: 20px; padding-left: 18px; border-left: 4px solid var(--accent-strong); font: 700 clamp(1.15rem, 2vw, 1.4rem)/1.35 var(--font-display); max-width: 30em; }
@media (max-width: 720px) { .about { grid-template-columns: 1fr; } .about__photo { max-width: 220px; } }

.cv { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); margin-top: clamp(36px, 5vw, 60px); }
.cv h3 { margin-bottom: 8px; }
.cv li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.cv li:first-of-type { border-top: 1px solid var(--line-strong); }
.cv__when { font: 600 0.8125rem/1.3 var(--font-mono); color: var(--ink-3); letter-spacing: 0.04em; }
.cv__what { margin-top: 4px; font-weight: 700; }
.cv__more { margin-top: 4px; font-size: 0.9375rem; color: var(--ink-2); }
.cv__more a { color: var(--accent); font-weight: 600; }
@media (max-width: 820px) { .cv { grid-template-columns: 1fr; } }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact__email { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.contact__email a.big { font: 800 clamp(1.25rem, 2.6vw, 1.9rem)/1.2 var(--font-display); text-decoration-color: var(--accent-strong); text-underline-offset: 6px; text-decoration-thickness: 3px; }
.facts { border-top: 1px solid var(--line-strong); }
.facts > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 600 0.8125rem/1.5 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { font-size: 0.975rem; }
.facts a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

.foot { border-top: 1px solid var(--line); padding-block: 26px; font-size: 0.9rem; color: var(--ink-3); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot a { color: var(--ink-2); }

/* ---------- case study: head ---------- */
.cs-head { padding-block: clamp(26px, 4vw, 48px) clamp(22px, 3vw, 36px); }
.crumb { margin-bottom: 18px; font-size: 0.9375rem; }
.crumb a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.crumb a:hover { color: var(--accent); }
.cs-head__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(24px, 4vw, 56px); align-items: end; }
.cs-head h1 { margin-top: 14px; }
.cs-pitch { margin-top: 18px; }
.cs-head .btns { margin-top: 22px; }
.spec { border-top: 1px solid var(--line-strong); }
.spec > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 2px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec dt { font: 600 0.78rem/1.6 var(--font-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.spec dd { font-size: 0.9375rem; line-height: 1.45; }
.spec a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 860px) { .cs-head__grid { grid-template-columns: 1fr; align-items: start; } }

.cs-hero video, .cs-hero > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.note { margin-top: 12px; font-size: 0.9rem; color: var(--ink-3); }

/* problem, action, result */
.short + .cs-hero, .short + .yt, .short + .cols-2, .short + .code-box { margin-top: clamp(18px, 3vw, 30px); }
.short { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.short > div { padding: 20px 22px; border-left: 1px solid var(--line); }
.short > div:first-child { border-left: 0; }
.short h2 { font: 600 0.8125rem/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-stretch: 100%; margin-bottom: 8px; }
.short p { font-size: 1rem; line-height: 1.5; }
@media (max-width: 760px) { .short { grid-template-columns: 1fr; } .short > div { border-left: 0; } .short > div + div { border-top: 1px solid var(--line); } }

/* ---------- case study: body with contents list ---------- */
.cs-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: clamp(36px, 5vw, 64px); align-items: start; }
.toc { position: sticky; top: 92px; font-size: 0.9rem; }
.toc p { margin-bottom: 10px; }
.toc a { display: block; padding: 6px 0 6px 14px; border-left: 2px solid var(--line); color: var(--ink-3); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.is-on { color: var(--ink); border-left-color: var(--accent-strong); font-weight: 600; }
@media (max-width: 960px) { .cs-layout { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
/* Grid children may shrink below their content, so wide tables scroll inside their own box. */
.cs-layout > *, .cols-2 > *, .cols-3 > *, .cols-4 > *, .steps > *, .short > *, .case > *, .wip > *,
.hero__grid > *, .about > *, .contact > *, .cv > *, .cs-head__grid > *, .more > * { min-width: 0; }

.cs-solo { margin-top: clamp(36px, 5vw, 64px); }
.cs-body > section { padding-bottom: clamp(40px, 6vw, 76px); }
.cs-body > section + section { padding-top: clamp(40px, 6vw, 76px); border-top: 1px solid var(--line); }
.sec-num { font: 600 0.8125rem/1 var(--font-mono); letter-spacing: 0.1em; color: var(--accent); margin-bottom: 10px; }
.cs-body h2 + .prose, .cs-body h2 + .lede, .cs-body h2 + p { margin-top: 16px; }
.cs-body h3 { margin-top: 28px; }
.cs-body h3 + p { margin-top: 8px; }
.block { margin-top: 26px; }

.list li { position: relative; padding-left: 1.3em; max-width: 46em; }
.list li + li { margin-top: 0.55em; }
.list li::before { content: ""; position: absolute; left: 0.15em; top: 0.62em; width: 0.45em; height: 0.45em; background: var(--accent-strong); border-radius: 2px; }
.list--plain li::before { background: var(--line-strong); }

.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 36px); }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 760px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } .cols-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .cols-4 { grid-template-columns: 1fr; } }

.panel { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.panel h3, .panel h4 { margin: 0 0 8px; font-size: 1.0625rem; }
.panel p { font-size: 0.9688rem; line-height: 1.5; color: var(--ink-2); }
.panel p + p { margin-top: 8px; }
.panel .eyebrow { margin-bottom: 8px; }
.panel .list li { font-size: 0.9688rem; }
.panel--accent { border-color: var(--accent-strong); border-width: 1.5px; }
.panel a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }

/* figures */
.fig a[data-zoom], .fig .frame { display: block; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); cursor: zoom-in; position: relative; }
.fig img { width: 100%; }
.fig--frame a[data-zoom] { aspect-ratio: 4 / 3; background: var(--surface-2); }
.fig--frame img { width: 100%; height: 100%; object-fit: contain; }
.fig--tall a[data-zoom] { aspect-ratio: 3 / 4; background: var(--surface-2); }
.fig--tall img { width: 100%; height: 100%; object-fit: contain; }
figcaption { margin-top: 9px; font-size: 0.9rem; line-height: 1.45; color: var(--ink-2); }
figcaption b { color: var(--ink); }
.badge { position: absolute; left: 10px; top: 10px; z-index: 1; padding: 0.25em 0.7em; border-radius: 6px; background: #14161a; color: #f2efe9; font: 700 0.75rem/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.badge--after { background: var(--accent-strong); color: #14161a; }

/* video links */
.yt { display: block; position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #0b0c0e; text-decoration: none; }
.yt img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: 0.88; transition: opacity 0.2s ease, transform 0.4s ease; }
.yt:hover img { opacity: 1; transform: scale(1.02); }
.yt iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.yt__play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: var(--accent-strong); display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4); }
.yt__play::after { content: ""; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #14161a; margin-left: 4px; }
.yt__label { position: absolute; left: 12px; bottom: 12px; padding: 0.3em 0.75em; border-radius: 6px; background: rgba(11, 12, 14, 0.82); color: #f2efe9; font: 600 0.8125rem/1.4 var(--font-body); }
.yt--small .yt__play { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
.yt--small .yt__play::after { border-width: 8px 0 8px 13px; }

/* numbers */
.stat { font: 800 clamp(3rem, 9vw, 6rem)/0.95 var(--font-display); font-stretch: 112%; letter-spacing: -0.03em; }
.stat .arrow { color: var(--accent-strong); }
.stat-label { margin-top: 10px; font: 500 0.875rem/1.45 var(--font-mono); color: var(--ink-3); max-width: 36em; }
.meter { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.meter span { display: block; height: 100%; width: var(--v); background: var(--c, var(--accent-strong)); border-radius: 999px; }
.meter-row { margin-top: 14px; font: 500 0.875rem/1.4 var(--font-mono); color: var(--ink-2); }

/* tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.45; }
.tbl th { text-align: left; font: 600 0.75rem/1.4 var(--font-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-2); white-space: nowrap; }
.tbl th, .tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .n { font-family: var(--font-mono); font-size: 0.875rem; white-space: nowrap; }
.tbl .is-key td { background: color-mix(in srgb, var(--accent-strong) 10%, transparent); }
.pill { display: inline-block; padding: 0.05em 0.5em; border-radius: 5px; background: #d92d20; color: #fff; font: 700 0.72rem/1.5 var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; vertical-align: 1px; }

/* phases */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.steps > li { padding: 18px 18px 20px; border-left: 1px solid var(--line); }
.steps > li:first-child { border-left: 0; }
.steps h3 { margin: 0; font-size: 1.0625rem; }
.steps .eyebrow { margin: 4px 0 10px; text-transform: none; letter-spacing: 0; font-size: 0.8125rem; }
.steps .list li { font-size: 0.9375rem; line-height: 1.45; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .steps, .steps--3 { grid-template-columns: 1fr 1fr; } .steps > li:nth-child(odd) { border-left: 0; } .steps > li:nth-child(n + 3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .steps, .steps--3 { grid-template-columns: 1fr; } .steps > li { border-left: 0; } .steps > li + li { border-top: 1px solid var(--line); } }

/* annotated map */
.mapover { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.mapover img { width: 100%; }
.mapover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mapover .lane { fill: none; stroke-width: 7; stroke-dasharray: 3 15; stroke-linecap: round; }
.mapover .lane--n { stroke: #5cb8ff; }
.mapover .lane--m { stroke: #ff8a4c; }
.mapover .lane--s { stroke: #b48cff; }
.mapover .cone { fill: rgba(242, 97, 29, 0.38); }
.mapover .wallrun { stroke: #ffd400; stroke-width: 10; stroke-linecap: round; }
.mapover .ring { fill: none; stroke: #ff5a5a; stroke-width: 5; }
.mapover .spawn circle { fill: #14161a; stroke: #ffffff; stroke-width: 4; }
.mapover .spawn text { fill: #ffffff; font: 800 30px var(--font-display); text-anchor: middle; dominant-baseline: central; }
.mapover .pin circle { fill: #ffffff; stroke: #14161a; stroke-width: 3; }
.mapover .pin text { fill: #14161a; font: 800 24px var(--font-mono); text-anchor: middle; dominant-baseline: central; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 0.875rem; color: var(--ink-2); }
.legend i { display: inline-block; width: 18px; height: 6px; border-radius: 3px; background: var(--c); margin-right: 6px; vertical-align: middle; }
.mapnotes { counter-reset: note; margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.mapnotes li { counter-increment: note; position: relative; padding-left: 40px; font-size: 0.9688rem; line-height: 1.5; color: var(--ink-2); }
.mapnotes li::before { content: counter(note); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font: 800 0.8125rem/1 var(--font-mono); color: var(--ink); }
.mapnotes b { color: var(--ink); }
@media (max-width: 700px) { .mapnotes { grid-template-columns: 1fr; } }

/* quote */
.pull { padding: 22px 24px; border-left: 4px solid var(--accent-strong); background: var(--surface); border-radius: 0 12px 12px 0; }
.pull p { font: 700 clamp(1.1rem, 2vw, 1.35rem)/1.4 var(--font-display); }
.pull footer { margin-top: 8px; font-size: 0.875rem; color: var(--ink-3); }

/* status banner on the in-development page */
.banner { background: #e0a100; color: #14161a; font: 700 0.875rem/1.4 var(--font-mono); letter-spacing: 0.04em; padding: 9px 0; text-align: center; }

/* progress list */
.progress li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.progress li::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--line-strong); flex: none; translate: 0 2px; }
.progress li.is-done::before { background: #1fa463; border-color: #1fa463; }
.progress small { display: block; color: var(--ink-3); font-size: 0.875rem; }

/* island code */
.code-box { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; padding: 20px 22px; border-radius: 12px; color: #f2efe9; background: radial-gradient(120% 90% at 20% 10%, #2a3350 0%, #14161a 60%), #14161a; }
.code-box small { display: block; font: 600 0.75rem/1.4 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: #a9b2c6; }
.code-box b { font: 800 clamp(1.4rem, 3.4vw, 2.1rem)/1.1 var(--font-mono); letter-spacing: 0.04em; }
.code-box .btn { border-color: #f2efe9; background: #f2efe9; color: #14161a; }
.code-box .btn--ghost { background: transparent; color: #f2efe9; }
.code-box .btn--ghost:hover { background: #f2efe9; color: #14161a; }

/* next project */
.next { margin-block: clamp(20px, 4vw, 48px) clamp(48px, 7vw, 90px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.next a { display: block; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: border-color 0.2s ease, transform 0.2s ease; }
.next a:hover { border-color: var(--ink); transform: translateY(-2px); }
.next small { display: block; font: 600 0.8125rem/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.next b { font: 800 1.3rem/1.2 var(--font-display); }
.next a:last-child { text-align: right; }
@media (max-width: 560px) { .next { grid-template-columns: 1fr; } .next a:last-child { text-align: left; } }

/* dialogs: image zoom and video */
.lb { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1500px); max-height: 94vh; }
.lb::backdrop { background: rgba(8, 9, 11, 0.86); }
.lb img { max-width: min(96vw, 1500px); max-height: 86vh; width: auto; height: auto; border-radius: 8px; background: #fff; }
.lb iframe { display: block; width: min(92vw, 1200px); aspect-ratio: 16 / 9; border: 0; border-radius: 8px; background: #000; }
.lb p { margin-top: 10px; color: #f2efe9; font-size: 0.9375rem; text-align: center; }
.lb form { text-align: center; margin-top: 12px; }
.lb .btn { background: #f2efe9; color: #14161a; border-color: #f2efe9; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .top, .toc, .foot, .next { display: none; }
  body { background: #fff; }
}
