/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  background: #0a0a0b;
  color: #ededed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01" on, "ss02" on, "cv01" on;
  min-height: 100vh;
  overflow-x: hidden;
}
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-feature-settings: "ss01" on; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

::selection { background: oklch(0.7 0.18 var(--accent-hue, 195) / 0.4); color: #fff; }

:root {
  --accent-hue: 195;
  --bg: #0a0a0b;
  --bg-elev-1: #111113;
  --bg-elev-2: #17171a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ededed;
  --text-dim: #a1a1a6;
  --text-dimmer: #6b6b72;
  --accent: oklch(0.85 0.18 var(--accent-hue));
  --accent-soft: oklch(0.6 0.18 var(--accent-hue));
  --maxw: 1200px;
  --pad-x: clamp(20px, 5vw, 64px);
}

/* ===== Background grid ===== */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  overflow: hidden;
}
.bg-grid__dots {
  position: absolute; inset: -20px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 30%, #000 30%, transparent 80%);
  animation: gridDrift 60s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to { background-position: 60px 60px; }
}
.bg-grid__glow-wrap {
  position: absolute; inset: 0;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.bg-grid__glow {
  position: absolute; inset: 0;
  pointer-events: none;
}
.bg-grid__glow--bottom { opacity: 0.7; }
.bg-grid__noise {
  position: absolute; inset: 0; opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' /><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0' /></filter><rect width='100%25' height='100%25' filter='url(%23n)' /></svg>");
  mix-blend-mode: overlay;
}

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: backdrop-filter .2s, background .2s, border-color .2s;
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--border);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex; align-items: center; gap: 32px;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
}
.nav__logo-pfp {
  position: relative; width: 28px; height: 28px;
  display: inline-flex; flex-shrink: 0;
}
.nav__logo-pfp img {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; position: relative; z-index: 2;
  border: 1.5px solid rgba(255,255,255,0.15);
}
.nav__logo-pfp-ring {
  position: absolute; inset: -4px;
  border: 1px solid var(--accent);
  opacity: 0.4; border-radius: 50%;
  animation: nav-ring-pulse 3s ease-out infinite;
}
@keyframes nav-ring-pulse {
  0% { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1.25); opacity: 0; }
}
.nav__logo-mark { color: var(--accent); display: flex; }
.nav__logo-accent { color: var(--text-dim); font-weight: 400; }
.nav__links {
  display: flex; gap: 24px; margin-left: auto;
  font-size: 14px; color: var(--text-dim);
}
.nav__links a { transition: color .15s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { display: flex; gap: 10px; align-items: center; }
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__cta .btn--ghost { display: none; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; letter-spacing: -0.005em;
  border: 1px solid var(--border); transition: all .18s ease;
  white-space: nowrap;
}
.btn--sm { padding: 7px 12px; font-size: 12.5px; border-radius: 7px; }
.btn--solid {
  background: #fafafa; color: #0a0a0b; border-color: #fafafa;
}
.btn--solid:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(255,255,255,0.2); }
.btn--ghost { background: rgba(255,255,255,0.02); color: var(--text); }
.btn--ghost:hover { background: rgba(255,255,255,0.06); border-color: var(--border-strong); }

/* ===== Status / pills ===== */
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  display: inline-block; background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.status-dot--green { color: oklch(0.78 0.18 145); }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  letter-spacing: 0.02em;
}
.status-pill--green { color: oklch(0.85 0.18 145); }
.status-pill--amber { color: oklch(0.85 0.16 75); }
.status-pill--blue { color: oklch(0.82 0.15 235); }
.status-pill--purple { color: oklch(0.82 0.16 295); }
.status-pill--pink { color: oklch(0.82 0.18 340); }

/* ===== Hero ===== */
.hero {
  padding: 140px var(--pad-x) 80px;
  max-width: var(--maxw); margin: 0 auto;
  position: relative;
}
.hero__inner { max-width: 860px; }
.hero__top {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 28px; flex-wrap: wrap;
}
.hero__avatar {
  position: relative; width: 64px; height: 64px;
  flex-shrink: 0;
}
.hero__avatar img {
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; position: relative; z-index: 2;
  border: 1.5px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.6);
  animation: avatar-float 5s ease-in-out infinite;
}
@keyframes avatar-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.hero__avatar-ring {
  position: absolute; inset: -8px;
  border: 1px solid;
  border-radius: 50%;
  animation: ring-pulse 3s ease-out infinite;
  z-index: 1;
}
.hero__avatar-ring--2 {
  inset: -16px;
  animation-delay: 1.5s;
}
@keyframes ring-pulse {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.3); opacity: 0; }
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--border); border-radius: 999px;
  background: rgba(255,255,255,0.02);
  font-size: 12px; color: var(--text-dim);
  margin-bottom: 28px;
}
.hero__badge strong { color: var(--text); font-weight: 500; }
.hero__title {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.02; letter-spacing: -0.03em;
  font-weight: 500; margin: 0 0 24px;
  text-wrap: balance;
}
.hero__title-accent { font-style: italic; font-weight: 400; }
.hero__sub {
  font-size: clamp(16px, 1.4vw, 18px); color: var(--text-dim);
  max-width: 620px; margin: 0 0 28px; line-height: 1.55;
  text-wrap: pretty;
}
.hero__sub strong { color: var(--text); font-weight: 500; }
.hero__type {
  font-size: 13px; color: var(--text-dimmer);
  margin-bottom: 32px; min-height: 1.4em;
}
.caret {
  display: inline-block; width: 7px; height: 14px;
  background: var(--accent); margin-left: 3px;
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero__ctas { display: flex; gap: 10px; margin-bottom: 56px; flex-wrap: wrap; align-items: center; }
.hero__icon-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  color: var(--text-dim); border: 1px solid var(--border);
  background: rgba(255,255,255,0.02); transition: all .15s;
}
.hero__icon-link:hover { color: var(--text); border-color: var(--border-strong); background: rgba(255,255,255,0.06); transform: translateY(-1px); }
.hero__rail {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; padding-top: 28px;
  border-top: 1px solid var(--border);
}
@media (max-width: 640px) {
  .hero__rail { grid-template-columns: repeat(2, 1fr); }
}
.rail-item__value {
  font-size: clamp(24px, 3vw, 32px); font-weight: 500;
  letter-spacing: -0.02em; line-height: 1;
}
.rail-item__label {
  font-size: 11px; color: var(--text-dimmer);
  margin-top: 6px; text-transform: lowercase;
  letter-spacing: 0.04em;
}

/* ===== Section ===== */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: 80px var(--pad-x);
}
.section__header { margin-bottom: 40px; max-width: 720px; }
.section__tag {
  font-size: 11px; color: var(--text-dimmer);
  letter-spacing: 0.06em; text-transform: lowercase;
  margin-bottom: 14px;
  position: relative; display: inline-block;
  padding-right: 14px;
}
.section__tag::after {
  content: "";
  position: absolute; right: 0; top: 50%;
  width: 8px; height: 1px;
  background: var(--accent);
  animation: tag-blink 2s ease-in-out infinite;
}
@keyframes tag-blink {
  0%, 100% { opacity: 0.3; transform: scaleX(1); }
  50% { opacity: 1; transform: scaleX(2.5); }
}
.section__title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 500; letter-spacing: -0.025em;
  margin: 0 0 14px; line-height: 1.1;
  text-wrap: balance;
}
.section__sub {
  font-size: 16px; color: var(--text-dim); margin: 0;
  max-width: 560px;
}

/* ===== Filters ===== */
.filters {
  display: flex; gap: 6px; margin-bottom: 28px;
  flex-wrap: wrap;
}
.filter {
  font-size: 12px; padding: 6px 12px;
  border-radius: 7px; border: 1px solid var(--border);
  color: var(--text-dim); transition: all .15s;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.015);
  text-transform: lowercase;
}
.filter:hover { color: var(--text); border-color: var(--border-strong); }
.filter--active { color: var(--text); background: rgba(255,255,255,0.06); border-color: var(--border-strong); }
.filter__count {
  font-size: 10px; color: var(--text-dimmer);
  padding: 1px 5px; background: rgba(255,255,255,0.05);
  border-radius: 4px;
}

/* ===== Card grid ===== */
.card-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 800px) {
  .card-grid { grid-template-columns: 1fr; }
}
.card {
  position: relative;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  cursor: pointer; outline: none;
  transition: transform .25s ease, border-color .2s, box-shadow .25s;
  display: flex; flex-direction: column;
  --mx: 50%; --my: 50%;
}
.card:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px oklch(0.7 0.15 var(--card-hue, 195) / 0.25); }
.card--hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow:
    0 20px 50px -20px rgba(0,0,0,0.6),
    0 0 0 1px oklch(0.7 0.15 var(--card-hue, 195) / 0.2),
    0 0 60px -20px oklch(0.7 0.18 var(--card-hue, 195) / 0.4);
}
.card__spotlight {
  position: absolute; inset: 0; pointer-events: none;
  z-index: 3; opacity: 0;
  transition: opacity .3s;
  background: radial-gradient(220px circle at var(--mx) var(--my),
    oklch(0.85 0.18 var(--card-hue, 195) / 0.18),
    transparent 60%);
  mix-blend-mode: plus-lighter;
}
.card--hover .card__spotlight { opacity: 1; }
.card__border-shine {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  border-radius: inherit; padding: 1px;
  background: radial-gradient(220px circle at var(--mx) var(--my),
    oklch(0.85 0.18 var(--card-hue, 195) / 0.7),
    transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s;
}
.card--hover .card__border-shine { opacity: 1; }
.card__scan {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, oklch(0.95 0.05 var(--card-hue, 195) / 0.12) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.card--hover .card__scan { transform: translateX(100%); }
.card__cover {
  position: relative; aspect-ratio: 16 / 10;
  overflow: hidden; background: #050505;
}
.card__cover-fade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(17,17,19,0.9));
  pointer-events: none;
}
.card__status {
  position: absolute; top: 12px; left: 12px;
}
.card__year {
  position: absolute; top: 12px; right: 12px;
  font-size: 11px; color: var(--text-dim);
  padding: 4px 9px; border-radius: 999px;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
}
.card__body { padding: 18px 20px 20px; }
.card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.card__title {
  font-size: 20px; font-weight: 500;
  letter-spacing: -0.015em; margin: 0;
}
.card__arrow {
  color: var(--text-dimmer);
  transition: transform .25s, color .2s;
  flex-shrink: 0;
}
.card--hover .card__arrow { color: oklch(0.85 0.18 var(--card-hue, 195)); transform: translate(2px, -2px); }
.card__tag {
  color: var(--text-dim); font-size: 14px;
  margin: 0 0 12px; line-height: 1.45;
}
.card__meta {
  font-size: 11.5px; color: var(--text-dimmer);
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.card__meta-dot { opacity: 0.5; }

/* ===== Modal ===== */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  animation: modal-in .25s ease;
}
@keyframes modal-in { from { opacity: 0; } to { opacity: 1; } }
.modal__panel {
  background: var(--bg-elev-1);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  width: 100%; max-width: 940px;
  overflow: hidden; position: relative;
  animation: panel-in .35s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7),
    0 0 80px -30px oklch(0.7 0.18 var(--card-hue, 195) / 0.4);
}
@keyframes panel-in { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal__close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 36px; height: 36px; border-radius: 999px;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.modal__close:hover { background: rgba(0,0,0,0.8); }
.modal__hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal__hero > svg {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 7;
  display: block;
  flex-shrink: 0;
}
.modal__hero-fade {
  /* no longer used — content is on solid bg below the image */
  display: none;
}
.modal__hero-content {
  position: static;
  padding: 28px 32px 24px;
  background: var(--bg-elev-1);
  border-top: 1px solid var(--border);
}
.modal__crumb {
  font-size: 11px; color: var(--text-dimmer);
  display: flex; gap: 6px; margin-bottom: 12px;
}
.modal__crumb a { color: var(--text-dim); }
.modal__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500; letter-spacing: -0.025em;
  margin: 0 0 6px;
}
.modal__tag {
  color: var(--text-dim); font-size: 15px; margin: 0 0 14px;
  max-width: 600px;
}
.modal__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-size: 11px; padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(0,0,0,0.4); color: var(--text-dim);
}

.modal__tabs {
  display: flex; gap: 0; padding: 0 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev-1);
  position: sticky; top: 0; z-index: 2;
}
.modal__tab {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; padding: 14px 16px;
  color: var(--text-dimmer); position: relative;
  transition: color .15s;
  text-transform: lowercase;
}
.modal__tab:hover { color: var(--text-dim); }
.modal__tab--active { color: var(--text); }
.modal__tab--active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px;
  height: 1px; background: var(--text);
}

.modal__body { padding: 32px; }
.modal__lede {
  font-size: 16px; line-height: 1.6; color: var(--text-dim);
  margin: 0 0 28px; max-width: 680px;
  text-wrap: pretty;
}
.modal__stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; margin-bottom: 32px;
}
@media (max-width: 600px) { .modal__stats { grid-template-columns: repeat(2, 1fr); } }
.modal__stat { padding: 18px 16px; background: var(--bg-elev-2); }
.modal__stat-value {
  font-size: 22px; font-weight: 500; letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.modal__stat-label {
  font-size: 10.5px; color: var(--text-dimmer);
  letter-spacing: 0.04em;
}

.modal__gallery {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 600px) { .modal__gallery { grid-template-columns: 1fr; } }
.gallery-slot {
  aspect-ratio: 16 / 10; position: relative;
  border: 1px dashed var(--border-strong); border-radius: 8px;
  overflow: hidden; background: var(--bg-elev-2);
  display: flex; align-items: center; justify-content: center;
  padding: 12px; text-align: center;
}
.gallery-slot__stripes {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg,
    rgba(255,255,255,0.02) 0 10px,
    transparent 10px 20px);
}
.gallery-slot__label {
  position: relative; font-size: 10px; color: var(--text-dimmer);
}

.modal__highlights { list-style: none; padding: 0; margin: 0; }
.modal__highlights li {
  display: flex; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px; line-height: 1.55;
  color: var(--text);
}
.modal__highlights li:last-child { border-bottom: 0; }
.modal__highlight-num {
  font-size: 11px; color: oklch(0.85 0.18 var(--card-hue, 195));
  flex-shrink: 0; padding-top: 4px;
  width: 24px;
}

.modal__stack-grid {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px;
}
.tech-tag {
  font-size: 12px; padding: 6px 12px;
  border-radius: 7px; border: 1px solid var(--border-strong);
  background: var(--bg-elev-2); color: var(--text);
}
.modal__links { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.modal__link {
  padding: 14px 18px; background: var(--bg-elev-2);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; transition: background .15s;
}
.modal__link:hover { background: rgba(255,255,255,0.04); }
.modal__link svg { color: var(--text-dimmer); }

.modal__timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.modal__timeline::before {
  content: ""; position: absolute;
  left: 80px; top: 8px; bottom: 8px;
  width: 1px; background: var(--border);
}
.modal__timeline-item {
  display: grid; grid-template-columns: 72px 24px 1fr;
  gap: 8px; align-items: center;
  padding: 10px 0;
}
.modal__timeline-date {
  font-size: 11.5px; color: var(--text-dimmer);
}
.modal__timeline-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: oklch(0.85 0.18 var(--card-hue, 195));
  box-shadow: 0 0 12px oklch(0.85 0.18 var(--card-hue, 195) / 0.5);
  justify-self: center;
}
.modal__timeline-note { font-size: 14px; }

/* ===== About ===== */
.about__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px;
}
@media (max-width: 800px) { .about__grid { grid-template-columns: 1fr; gap: 40px; } }
.about__copy p {
  font-size: 16px; line-height: 1.7;
  color: var(--text-dim); margin: 0 0 18px;
  text-wrap: pretty;
}
.about__copy em { color: var(--text); font-style: italic; }
.link {
  color: var(--accent); border-bottom: 1px solid oklch(0.85 0.18 var(--accent-hue) / 0.3);
  transition: border-color .15s;
}
.link:hover { border-color: var(--accent); }

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute;
  left: 88px; top: 14px; bottom: 14px;
  width: 1px; background: var(--border);
}
.timeline__item {
  display: grid; grid-template-columns: 80px 1fr; gap: 24px;
  padding: 14px 0; position: relative;
}
.timeline__item::after {
  content: ""; position: absolute;
  left: 84px; top: 22px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px oklch(0.85 0.18 var(--accent-hue) / 0.5);
}
.timeline__year {
  font-size: 11.5px; color: var(--text-dimmer);
  padding-top: 4px;
}
.timeline__body { padding-left: 20px; }
.timeline__role {
  font-size: 16px; font-weight: 500; margin-bottom: 2px;
}
.timeline__where {
  font-size: 11.5px; color: var(--text-dimmer);
  margin-bottom: 6px;
}
.timeline__note { font-size: 14px; color: var(--text-dim); }

/* ===== Stack — periodic table tiles ===== */
.stack-table {
  display: flex; flex-direction: column; gap: 36px;
}
.stack-row__head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
}
.stack-row__title {
  font-size: 12px; color: var(--text-dim);
  letter-spacing: 0.06em; text-transform: lowercase;
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.stack-row__num {
  font-size: 11px;
  padding: 2px 7px;
  border: 1px solid currentColor;
  border-radius: 4px;
  opacity: 0.9;
}
.stack-row__rule {
  flex: 1; height: 1px;
  position: relative;
}
.stack-row__rule::after {
  content: "";
  position: absolute; left: 0; top: -1px;
  width: 30%; height: 3px;
  background: linear-gradient(to right, currentColor, transparent);
  filter: blur(2px); opacity: 0.6;
  animation: rule-pulse 6s ease-in-out infinite;
}
@keyframes rule-pulse {
  0%, 100% { transform: translateX(0); opacity: 0.3; }
  50% { transform: translateX(60%); opacity: 0.8; }
}
.stack-row__count {
  font-size: 11px; color: var(--text-dimmer);
  flex-shrink: 0;
}
.stack-row__tiles {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.tile {
  position: relative;
  background: linear-gradient(165deg, var(--bg-elev-1), var(--bg-elev-2));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 18px 18px;
  overflow: hidden;
  transform: perspective(800px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0));
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .25s, box-shadow .25s;
  --mx: 50%; --my: 50%;
  opacity: 0; transform-origin: center;
  animation: tile-in .6s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes tile-in {
  to { opacity: 1; transform: perspective(800px) rotateX(0) rotateY(0); }
}
.tile:hover {
  border-color: oklch(0.7 0.16 var(--tile-hue, 195) / 0.5);
  box-shadow:
    0 10px 30px -10px rgba(0,0,0,0.5),
    0 0 40px -15px oklch(0.7 0.18 var(--tile-hue, 195) / 0.5);
}
.tile__spotlight {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(180px circle at var(--mx) var(--my),
    oklch(0.85 0.2 var(--tile-hue, 195) / 0.18),
    transparent 60%);
  opacity: 0; transition: opacity .3s;
  border-radius: inherit;
}
.tile:hover .tile__spotlight { opacity: 1; }
.tile__num {
  position: absolute; top: 12px; right: 14px;
  font-size: 10px; color: var(--text-dimmer);
  letter-spacing: 0.04em;
}
.tile__abbr {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 38px; line-height: 1;
  letter-spacing: -0.02em;
  color: oklch(0.92 0.16 var(--tile-hue, 195));
  margin-bottom: 18px;
  text-shadow: 0 0 30px oklch(0.85 0.18 var(--tile-hue, 195) / 0.3);
}
.tile__name {
  font-size: 13px; color: var(--text);
  font-weight: 500;
}

/* ===== Contact ===== */
.section--contact { padding-bottom: 24px; }
.contact__panel {
  position: relative; overflow: hidden;
  background: var(--bg-elev-1);
  border-radius: 20px;
  padding: 60px clamp(28px, 6vw, 72px);
  margin-bottom: 60px;
}
.contact__panel::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; padding: 1px;
  background: conic-gradient(from 0deg,
    transparent, oklch(0.85 0.18 var(--card-hue, 195) / 0.7),
    transparent 30%, transparent 70%,
    oklch(0.85 0.18 var(--card-hue, 195) / 0.5), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: contact-rotate 8s linear infinite;
  pointer-events: none;
}
@keyframes contact-rotate {
  to { transform: rotate(360deg); }
}
.contact__panel::after {
  content: ""; position: absolute; inset: 1px;
  border-radius: inherit;
  border: 1px solid var(--border);
  pointer-events: none;
}
.contact__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 80% at 90% 10%, oklch(0.65 0.18 var(--card-hue, 195) / 0.2), transparent 70%),
    radial-gradient(40% 70% at 0% 100%, oklch(0.65 0.18 var(--card-hue, 195) / 0.15), transparent 70%);
  pointer-events: none;
}
.contact__inner { position: relative; max-width: 720px; }
.contact__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500; letter-spacing: -0.025em;
  margin: 14px 0 14px; line-height: 1.1;
  text-wrap: balance;
}
.contact__sub {
  font-size: 17px; color: var(--text-dim);
  margin: 0 0 28px; max-width: 540px;
}
.contact__ctas {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center;
}
.contact__socials {
  display: flex; gap: 18px; font-size: 13px; color: var(--text-dim);
}
.contact__social { transition: color .15s; border-bottom: 1px solid transparent; padding-bottom: 1px; }
.contact__social:hover { color: var(--text); border-bottom-color: var(--text); }
.contact__social--btn {
  background: none; border: 0; padding: 0 0 1px;
  font: inherit; cursor: pointer;
  color: oklch(0.85 0.18 var(--accent-hue, 195));
}
.contact__social--btn:hover {
  color: oklch(0.95 0.18 var(--accent-hue, 195));
  border-bottom-color: currentColor;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 24px var(--pad-x);
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between;
  font-size: 11.5px; color: var(--text-dimmer);
  flex-wrap: wrap; gap: 12px;
}


/* ===== Boot / loading screen ===== */
.boot {
  position: fixed; inset: 0; z-index: 1000;
  background: #050507;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px 20px;
  overflow: hidden;
  animation: boot-in .4s ease;
}
@keyframes boot-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.boot--fading {
  pointer-events: none;
}
.boot--fading .boot__grid,
.boot--fading .boot__scan {
  opacity: 0;
  transition: opacity .5s ease;
}
.boot--fading .boot__term {
  /* CRT-style shutdown: brightness flash, collapse vertically to a line, then a dot */
  animation: boot-term-shutdown .85s cubic-bezier(.6,.05,.2,1) forwards;
  transform-origin: center;
  pointer-events: none;
}
@keyframes boot-term-shutdown {
  0%   { transform: scale(1, 1);          opacity: 1; filter: brightness(1); }
  30%  { transform: scale(1.015, 0.06);   opacity: 1; filter: brightness(2.4); }
  60%  { transform: scale(0.55, 0.012);   opacity: 1; filter: brightness(3); }
  85%  { transform: scale(0.04, 0.012);   opacity: 0.9; filter: brightness(3); }
  100% { transform: scale(0, 0);          opacity: 0; filter: brightness(3); }
}
.boot--fading .boot__progress {
  animation: boot-progress-out .65s cubic-bezier(.6,.05,.2,1) forwards;
  pointer-events: none;
}
@keyframes boot-progress-out {
  0%   { opacity: 1; transform: scaleX(1) translateY(0); }
  40%  { opacity: 1; transform: scaleX(0.3) translateY(8px); }
  100% { opacity: 0; transform: scaleX(0) translateY(28px); }
}
.boot--fading .boot__brand-text {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .35s ease, transform .5s cubic-bezier(.6,.05,.2,1);
}
.boot--fading {
  background: transparent;
  transition: background .9s ease;
}
.boot--fading::before {
  /* keep a fading dark veil so the page reveal feels gentle */
  content: ""; position: absolute; inset: 0;
  background: #050507;
  animation: boot-veil .9s cubic-bezier(.6,.05,.2,1) forwards;
  pointer-events: none;
}
@keyframes boot-veil {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}
.boot--fading .boot__brand {
  /* let the mark morph; text fades inside */
  transition: none;
}
.boot--fading .boot__brand-mark {
  transform: translate(var(--morph-x, 0), var(--morph-y, 0)) scale(var(--morph-scale, 1));
  transition: transform .85s cubic-bezier(.6,.05,.2,1),
              opacity .35s cubic-bezier(.6,.05,.2,1) .5s;
  opacity: 0;
}
.boot--fading .boot__brand-ring,
.boot--fading .boot__brand-ring--2 {
  /* freeze ring pulse so it doesn't stutter during morph */
  animation: none;
  opacity: 0;
  transition: opacity .3s ease;
}

.boot__grid {
  position: absolute; inset: -40px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 45%, #000 30%, transparent 75%);
  animation: boot-grid-drift 16s linear infinite;
}
@keyframes boot-grid-drift {
  to { transform: translate(40px, 40px); }
}
.boot__scan {
  position: absolute; left: 0; right: 0; height: 240px;
  background: linear-gradient(to bottom,
    transparent,
    oklch(0.85 0.18 var(--accent-hue, 195) / 0.08) 50%,
    transparent);
  top: -240px;
  animation: boot-scan 3.2s cubic-bezier(.5,.05,.2,1) infinite;
  pointer-events: none;
}
@keyframes boot-scan {
  0%   { transform: translateY(0); }
  100% { transform: translateY(140vh); }
}

.boot__brand {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 32px;
  position: relative; z-index: 2;
  animation: boot-fade-up .6s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes boot-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.boot__brand-mark {
  position: relative; width: 56px; height: 56px;
  flex-shrink: 0;
}
.boot__brand-mark img {
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; position: relative; z-index: 2;
  border: 1.5px solid rgba(255,255,255,0.18);
}
.boot__brand-ring,
.boot__brand-ring--2 {
  position: absolute; inset: -8px;
  border: 1px solid oklch(0.7 0.18 var(--accent-hue, 195) / 0.5);
  border-radius: 50%;
  animation: boot-ring 2.2s ease-out infinite;
}
.boot__brand-ring--2 {
  inset: -18px;
  animation-delay: 1.1s;
}
@keyframes boot-ring {
  0%   { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}
.boot__brand-name {
  font-size: 18px; font-weight: 500;
  color: #ededed;
  letter-spacing: 0.06em;
}
.boot__brand-sub {
  font-size: 11px; color: var(--text-dimmer);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.boot__term {
  width: min(640px, 92vw);
  background: rgba(10, 10, 11, 0.85);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7),
    0 0 60px -20px oklch(0.55 0.2 var(--accent-hue, 195) / 0.4);
  position: relative; z-index: 2;
  animation: boot-fade-up .6s cubic-bezier(.2,.7,.2,1) .1s both;
  backdrop-filter: blur(8px);
}
.boot__term-head {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 11px; color: var(--text-dimmer);
  background: rgba(255,255,255,0.02);
}
.boot__term-lights { display: flex; gap: 6px; }
.boot__term-lights span {
  width: 9px; height: 9px; border-radius: 50%;
}
.boot__term-lights span:nth-child(1) { background: oklch(0.7 0.18 25); }
.boot__term-lights span:nth-child(2) { background: oklch(0.8 0.18 80); }
.boot__term-lights span:nth-child(3) { background: oklch(0.78 0.18 145); }

.boot__term-body {
  padding: 18px 20px;
  min-height: 240px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text);
  position: relative;
}
.boot__line {
  display: flex; gap: 12px; align-items: baseline;
  animation: boot-line-in .42s cubic-bezier(.2,.7,.2,1);
  position: relative;
}
.boot__line::before {
  /* subtle highlight sweep when a line lands */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right,
    oklch(0.85 0.18 var(--accent-hue, 195) / 0.12),
    transparent 50%);
  opacity: 0;
  animation: boot-line-flash .9s ease-out;
  pointer-events: none;
}
@keyframes boot-line-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes boot-line-flash {
  0%   { opacity: 1; transform: translateX(-6px); }
  100% { opacity: 0; transform: translateX(0); }
}
.boot__tag {
  flex-shrink: 0;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-shadow: 0 0 12px currentColor;
}
.boot__line--active .boot__tag {
  animation: boot-tag-pop .3s cubic-bezier(.2,.7,.2,1);
}
.boot__line--active::before { display: none; }
@keyframes boot-tag-pop {
  0%   { transform: scale(0.7); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.boot__line-text { color: var(--text); }
.boot__caret {
  display: inline-block;
  color: oklch(0.95 0.18 var(--accent-hue, 195));
  text-shadow: 0 0 10px oklch(0.85 0.18 var(--accent-hue, 195));
  margin-left: 2px;
  animation: boot-caret-blink 1s steps(1) infinite;
}
@keyframes boot-caret-blink {
  0%, 49%  { opacity: 1; }
  50%, 100%{ opacity: 0; }
}

.boot__progress {
  width: min(640px, 92vw);
  margin-top: 22px;
  position: relative; z-index: 2;
  animation: boot-fade-up .6s cubic-bezier(.2,.7,.2,1) .2s both;
}
.boot__progress-track {
  height: 2px; background: rgba(255,255,255,0.08);
  border-radius: 1px; overflow: visible;
  position: relative;
}
.boot__progress-fill {
  height: 100%;
  background: linear-gradient(to right,
    oklch(0.7 0.2 var(--accent-hue, 195)),
    oklch(0.9 0.2 var(--accent-hue, 195)));
  box-shadow: 0 0 12px oklch(0.85 0.2 var(--accent-hue, 195) / 0.6);
  border-radius: 1px;
}
.boot__progress-glow {
  position: absolute; top: 50%;
  transform: translate(-50%, -50%);
  width: 18px; height: 18px;
  background: radial-gradient(circle,
    oklch(0.95 0.18 var(--accent-hue, 195) / 0.55),
    transparent 70%);
  pointer-events: none;
  animation: boot-progress-pulse 1.4s ease-in-out infinite;
}
@keyframes boot-progress-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.5; }
  50%      { transform: translate(-50%, -50%) scale(1.2);  opacity: 1; }
}
.boot__progress-pct {
  font-variant-numeric: tabular-nums;
}
.boot__progress-meta {
  display: flex; justify-content: space-between;
  margin-top: 8px;
  font-size: 11px; color: var(--text-dimmer);
}
.boot__progress-hint { opacity: 0.7; }

/* ===== Boot-aware page entrance ===== */
/* Every reveal element gets its own transition + a "booting" hidden state.
   The body[data-boot] flag controls when they release. Per-child stagger
   uses nth-child delays. */

/* --- Nav: slides down from top --- */
.nav {
  transition: transform .75s cubic-bezier(.2,.9,.2,1),
              opacity .5s ease;
}
body[data-boot="booting"] .nav {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
body[data-boot="settling"] .nav,
body[data-boot="ready"] .nav {
  transform: translateY(0);
  opacity: 1;
}

/* --- Hero top (avatar + badge): pure opacity. Keep no transform so the
   boot brand's morph target measurement stays accurate. --- */
.hero__top {
  transition: opacity .8s cubic-bezier(.2,.9,.2,1) .18s;
}
body[data-boot="booting"] .hero__top { opacity: 0; }

/* --- Hero title: focus-in (blur + translateY) --- */
.hero__title {
  transition: opacity .95s cubic-bezier(.2,.9,.2,1) .32s,
              transform .95s cubic-bezier(.2,.9,.2,1) .32s,
              filter .95s ease .32s;
}
body[data-boot="booting"] .hero__title {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(8px);
}

/* --- Hero subtitle: same effect, slightly later --- */
.hero__sub {
  transition: opacity .85s cubic-bezier(.2,.9,.2,1) .48s,
              transform .85s cubic-bezier(.2,.9,.2,1) .48s,
              filter .85s ease .48s;
}
body[data-boot="booting"] .hero__sub {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
}

/* --- Typewriter line --- */
.hero__type {
  transition: opacity .6s cubic-bezier(.2,.9,.2,1) .6s,
              transform .6s cubic-bezier(.2,.9,.2,1) .6s;
}
body[data-boot="booting"] .hero__type {
  opacity: 0;
  transform: translateY(14px);
}

/* --- CTA children individually staggered --- */
.hero__ctas > * {
  transition: opacity .55s cubic-bezier(.2,.9,.2,1),
              transform .55s cubic-bezier(.2,.9,.2,1);
}
body[data-boot="booting"] .hero__ctas > * {
  opacity: 0;
  transform: translateY(16px) scale(0.95);
}
body[data-boot="settling"] .hero__ctas > *:nth-child(1),
body[data-boot="ready"]    .hero__ctas > *:nth-child(1) { transition-delay: .72s; }
body[data-boot="settling"] .hero__ctas > *:nth-child(2),
body[data-boot="ready"]    .hero__ctas > *:nth-child(2) { transition-delay: .78s; }
body[data-boot="settling"] .hero__ctas > *:nth-child(3),
body[data-boot="ready"]    .hero__ctas > *:nth-child(3) { transition-delay: .84s; }
body[data-boot="settling"] .hero__ctas > *:nth-child(4),
body[data-boot="ready"]    .hero__ctas > *:nth-child(4) { transition-delay: .90s; }
body[data-boot="settling"] .hero__ctas > *:nth-child(5),
body[data-boot="ready"]    .hero__ctas > *:nth-child(5) { transition-delay: .96s; }

/* --- Rail items individually staggered (count-up already animates) --- */
.hero__rail > * {
  transition: opacity .6s cubic-bezier(.2,.9,.2,1),
              transform .6s cubic-bezier(.2,.9,.2,1);
}
body[data-boot="booting"] .hero__rail > * {
  opacity: 0;
  transform: translateY(22px);
}
body[data-boot="settling"] .hero__rail > *:nth-child(1),
body[data-boot="ready"]    .hero__rail > *:nth-child(1) { transition-delay: .85s; }
body[data-boot="settling"] .hero__rail > *:nth-child(2),
body[data-boot="ready"]    .hero__rail > *:nth-child(2) { transition-delay: .92s; }
body[data-boot="settling"] .hero__rail > *:nth-child(3),
body[data-boot="ready"]    .hero__rail > *:nth-child(3) { transition-delay: .99s; }
body[data-boot="settling"] .hero__rail > *:nth-child(4),
body[data-boot="ready"]    .hero__rail > *:nth-child(4) { transition-delay: 1.06s; }

/* --- Marquee: opens horizontally from a thin line --- */
.marquee {
  transition: opacity .6s ease 1.1s,
              transform .9s cubic-bezier(.2,.9,.2,1) 1.1s;
  transform-origin: center;
}
body[data-boot="booting"] .marquee {
  opacity: 0;
  transform: scaleX(0.02);
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal--in { opacity: 1; transform: translateY(0); }

/* ===== Tech marquee ===== */
.marquee {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden; padding: 14px 0;
  margin: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.015), transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; gap: 36px;
  width: max-content;
  animation: marquee 50s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee__item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-dim);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.marquee__dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
}

/* ===== Card extras ===== */
.card {
  opacity: 0; transform: translateY(12px);
  animation: card-in .6s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes card-in {
  to { opacity: 1; transform: translateY(0); }
}
.card__media-badge {
  position: absolute; bottom: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55); color: oklch(0.85 0.18 var(--card-hue, 195));
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  z-index: 2;
}

/* ===== Modal video / itch embeds ===== */
.modal__note {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  border: 1px solid oklch(0.55 0.16 75 / 0.4);
  background: oklch(0.4 0.12 75 / 0.1);
  color: oklch(0.88 0.14 75);
  border-radius: 10px; margin-bottom: 20px;
  font-size: 12px; line-height: 1.5;
}
.modal__video, .modal__embed { margin-top: 28px; }
.modal__video-label {
  font-size: 11px; color: var(--text-dimmer);
  margin-bottom: 10px; letter-spacing: 0.04em;
}
.modal__video-frame {
  aspect-ratio: 16 / 9; width: 100%;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #000;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.7),
    0 0 60px -30px oklch(0.7 0.18 var(--card-hue, 195) / 0.4);
}
.modal__video-frame iframe { width: 100%; height: 100%; display: block; border: 0; }
.modal__itch {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: 12px;
  background: var(--bg-elev-2); border: 1px solid var(--border-strong);
  transition: all .15s;
}
.modal__itch:hover { transform: translateY(-2px); border-color: oklch(0.7 0.15 var(--card-hue, 195) / 0.5); }
.modal__itch-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: oklch(0.5 0.18 var(--card-hue, 195));
  display: flex; align-items: center; justify-content: center;
  color: #0a0a0b; flex-shrink: 0;
}
.modal__itch-title { font-size: 15px; font-weight: 500; margin-bottom: 2px; }
.modal__itch-url { font-size: 11.5px; color: var(--text-dimmer); }

/* ===== Modal download tiles ===== */
.modal__downloads { display: flex; flex-direction: column; gap: 8px; }
.modal__download {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; border-radius: 12px;
  background: var(--bg-elev-2); border: 1px solid var(--border-strong);
  transition: all .18s;
  position: relative; overflow: hidden;
}
.modal__download::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%,
    oklch(0.95 0.05 var(--card-hue, 195) / 0.08) 50%, transparent 60%);
  transform: translateX(-100%); transition: transform .8s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.modal__download:hover {
  transform: translateY(-2px);
  border-color: oklch(0.7 0.15 var(--card-hue, 195) / 0.5);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5),
    0 0 40px -15px oklch(0.7 0.18 var(--card-hue, 195) / 0.5);
}
.modal__download:hover::before { transform: translateX(100%); }
.modal__download-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: oklch(0.5 0.18 var(--card-hue, 195));
  display: flex; align-items: center; justify-content: center;
  color: #0a0a0b; flex-shrink: 0;
}
.modal__download-body { flex: 1; min-width: 0; }
.modal__download-label { font-size: 14.5px; font-weight: 500; margin-bottom: 2px; }
.modal__download-meta {
  font-size: 11.5px; color: var(--text-dimmer);
  display: flex; gap: 6px; flex-wrap: wrap;
}
.modal__download-size { opacity: 0.8; }
.modal__download-arrow {
  font-size: 11px; color: oklch(0.85 0.18 var(--card-hue, 195));
  border: 1px solid currentColor;
  padding: 4px 10px; border-radius: 6px;
  flex-shrink: 0;
}

/* ===== About certs ===== */
.about__certs {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.about__certs-title {
  font-size: 11px; color: var(--text-dimmer);
  letter-spacing: 0.06em; margin-bottom: 14px;
  text-transform: lowercase;
}
.about__certs-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.about__certs-list li {
  display: grid; grid-template-columns: 56px 70px 1fr;
  gap: 12px; align-items: baseline;
  padding: 6px 0;
  font-size: 13.5px;
  border-bottom: 1px dashed rgba(255,255,255,0.04);
}
.about__certs-year { color: var(--text-dimmer); font-size: 11.5px; }
.about__certs-issuer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  padding: 2px 7px;
  border: 1px solid oklch(0.85 0.18 var(--accent-hue) / 0.3);
  border-radius: 4px;
  justify-self: start;
}
.about__certs-name { color: var(--text-dim); }
@media (max-width: 500px) {
  .about__certs-list li { grid-template-columns: 1fr; gap: 4px; }
}


/* ============================================================================
   MOBILE — additive overrides only. Desktop styles above are untouched.
   ============================================================================ */
@media (max-width: 720px) {
  :root { --pad-x: 18px; }

  /* --- Nav: keep logo + 2 buttons only --- */
  .nav__inner { gap: 10px; padding: 11px 16px; }
  .nav__logo-text { font-size: 14.5px; }
  .nav__logo-pfp { width: 26px; height: 26px; }
  .nav__logo-pfp img { width: 26px; height: 26px; }
  .nav__cta { gap: 6px; margin-left: auto; }
  .nav__cta .btn--sm { padding: 6px 10px; font-size: 11.5px; gap: 5px; }
  /* hide the "Open to work" ghost button — keep just "Get in touch" */
  .nav__cta .btn--ghost { display: none; }

  /* --- Hero --- */
  .hero { padding: 100px 18px 52px; }
  .hero__inner { max-width: 100%; }
  .hero__top { gap: 12px; margin-bottom: 22px; }
  .hero__avatar { width: 52px; height: 52px; }
  .hero__avatar-ring { inset: -6px; }
  .hero__avatar-ring--2 { inset: -12px; }
  .hero__badge { font-size: 11px; padding: 5px 10px 5px 8px; line-height: 1.4; }
  .hero__title { font-size: clamp(30px, 8.5vw, 44px); line-height: 1.08; margin-bottom: 18px; }
  .hero__title br { display: none; }
  .hero__sub { font-size: 14.5px; line-height: 1.55; margin-bottom: 22px; }
  .hero__type { font-size: 11.5px; margin-bottom: 24px; }
  .hero__ctas { gap: 8px; margin-bottom: 36px; }
  .hero__ctas .btn { padding: 9px 13px; font-size: 13px; }
  .hero__icon-link { width: 38px; height: 38px; }
  .hero__rail { gap: 18px; padding-top: 22px; }
  .rail-item__value { font-size: 22px; }
  .rail-item__label { font-size: 10px; }

  /* --- Sections --- */
  .section { padding: 56px 18px; }
  .section__header { margin-bottom: 28px; }
  .section__title { font-size: clamp(22px, 6vw, 30px); line-height: 1.15; }
  .section__sub { font-size: 14px; }
  .section__tag { font-size: 10.5px; margin-bottom: 12px; }

  /* --- Tech marquee --- */
  .marquee { padding: 12px 0; }
  .marquee__item { font-size: 11.5px; gap: 7px; }
  .marquee__track { gap: 28px; }

  /* --- Filters: scrollable on mobile --- */
  .filters {
    flex-wrap: nowrap; overflow-x: auto;
    padding-bottom: 6px; gap: 6px;
    margin: 0 -18px 22px; padding-left: 18px; padding-right: 18px;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex-shrink: 0; }

  /* --- Project cards --- */
  .card__body { padding: 16px 16px 18px; }
  .card__title { font-size: 18px; }
  .card__tag { font-size: 13.5px; margin-bottom: 10px; }
  .card__meta { font-size: 11px; }
  .card__status, .card__year { font-size: 10.5px; padding: 3px 8px; }
  .card__media-badge { font-size: 9.5px; padding: 3px 8px; }

  /* --- Modal --- */
  .modal { padding: 14px; align-items: flex-start; }
  .modal__panel { border-radius: 14px; }
  .modal__hero { aspect-ratio: 16 / 9; }
  .modal__hero-content { padding: 18px 16px; }
  .modal__crumb { font-size: 10px; margin-bottom: 10px; }
  .modal__title { font-size: clamp(20px, 6.5vw, 28px); }
  .modal__tag { font-size: 13.5px; margin-bottom: 10px; }
  .chip { font-size: 10px; padding: 3px 8px; }
  .modal__close { width: 34px; height: 34px; top: 12px; right: 12px; }

  .modal__tabs {
    padding: 0 14px;
    overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .modal__tabs::-webkit-scrollbar { display: none; }
  .modal__tab { padding: 12px 12px; font-size: 11px; flex-shrink: 0; }

  .modal__body { padding: 22px 18px; }
  .modal__lede { font-size: 14.5px; line-height: 1.55; margin-bottom: 22px; }
  .modal__note { font-size: 11.5px; padding: 10px 12px; }
  .modal__stats { grid-template-columns: repeat(2, 1fr); }
  .modal__stat { padding: 14px 12px; }
  .modal__stat-value { font-size: 18px; }
  .modal__stat-label { font-size: 9.5px; }
  .modal__gallery { grid-template-columns: 1fr; }
  .modal__video-frame, .gallery-slot { border-radius: 10px; }

  .modal__itch, .modal__download {
    padding: 12px 14px; gap: 12px;
  }
  .modal__itch-icon, .modal__download-icon { width: 36px; height: 36px; border-radius: 9px; }
  .modal__itch-title { font-size: 13.5px; }
  .modal__itch-url { font-size: 10.5px; }
  .modal__download-label { font-size: 13.5px; }
  .modal__download-meta { font-size: 10.5px; }
  .modal__download-arrow { font-size: 10px; padding: 3px 8px; }

  .modal__highlights li { font-size: 14px; gap: 12px; padding: 14px 0; line-height: 1.5; }
  .modal__highlight-num { width: 20px; font-size: 10.5px; }

  .modal__stack-grid { gap: 5px; }
  .tech-tag { font-size: 11.5px; padding: 5px 10px; }
  .modal__link { padding: 12px 14px; font-size: 13.5px; }

  .modal__timeline-item { grid-template-columns: 60px 20px 1fr; gap: 6px; }
  .modal__timeline-date { font-size: 10.5px; }
  .modal__timeline-note { font-size: 13px; }
  .modal__timeline::before { left: 68px; }

  /* --- About --- */
  .about__grid { gap: 32px; }
  .about__copy p { font-size: 14.5px; line-height: 1.65; }
  .timeline__item { grid-template-columns: 70px 1fr; gap: 14px; padding: 12px 0; }
  .timeline__year { font-size: 10.5px; }
  .timeline__role { font-size: 14.5px; }
  .timeline__where { font-size: 10.5px; }
  .timeline__note { font-size: 13px; }
  .timeline::before { left: 78px; }
  .timeline__item::after { left: 74px; top: 18px; width: 8px; height: 8px; }
  .timeline__body { padding-left: 12px; }
  .about__certs-list li {
    grid-template-columns: 1fr;
    gap: 4px; padding: 8px 0;
  }
  .about__certs-issuer { justify-self: start; }
  .about__certs-year { font-size: 10.5px; }

  /* --- Stack tiles --- */
  .stack-table { gap: 28px; }
  .stack-row__head { gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
  .stack-row__title { font-size: 11px; }
  .stack-row__count { font-size: 10.5px; }
  .stack-row__tiles { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
  .tile { padding: 16px 14px 14px; }
  .tile__abbr { font-size: 30px; margin-bottom: 14px; }
  .tile__name { font-size: 12.5px; }
  .tile__num { font-size: 9.5px; top: 10px; right: 12px; }

  /* --- Contact --- */
  .contact__panel { padding: 40px 22px; border-radius: 16px; margin-bottom: 40px; }
  .contact__title { font-size: clamp(22px, 6vw, 30px); }
  .contact__sub { font-size: 14.5px; }
  .contact__ctas { gap: 12px; flex-direction: column; align-items: flex-start; }
  .contact__socials { gap: 14px; flex-wrap: wrap; font-size: 12px; }
  .footer {
    flex-direction: column; align-items: flex-start;
    padding: 18px; font-size: 10.5px; gap: 6px;
  }

  /* --- Boot / loading screen --- */
  .boot { padding: 24px 16px; }
  .boot__brand { gap: 12px; margin-bottom: 22px; }
  .boot__brand-mark { width: 44px; height: 44px; }
  .boot__brand-ring { inset: -5px; }
  .boot__brand-ring--2 { inset: -12px; }
  .boot__brand-name { font-size: 14.5px; }
  .boot__brand-sub { font-size: 10px; }
  .boot__term { width: 100%; }
  .boot__term-head { padding: 9px 12px; font-size: 10.5px; gap: 10px; }
  .boot__term-lights span { width: 8px; height: 8px; }
  .boot__term-body { padding: 14px 14px; min-height: 200px; font-size: 11px; line-height: 1.6; }
  .boot__line { gap: 8px; }
  .boot__progress { width: 100%; margin-top: 18px; }
  .boot__progress-meta { font-size: 10.5px; }
}

/* --- Very small phones (~iPhone SE) --- */
@media (max-width: 380px) {
  .hero__rail { grid-template-columns: repeat(2, 1fr); }
  .hero__title { font-size: 28px; }
  .hero__ctas .btn { padding: 8px 12px; font-size: 12.5px; }
  .modal__hero-content { padding: 14px 14px; }
  .tile__abbr { font-size: 26px; margin-bottom: 12px; }
  .stack-row__tiles { grid-template-columns: repeat(2, 1fr); }
}

/* --- Touch tap-target sizing & no double-tap zoom on buttons --- */
@media (hover: none) and (pointer: coarse) {
  .btn, .filter, .modal__tab, .contact__social,
  .tile, .card, .hero__icon-link {
    touch-action: manipulation;
  }
  /* Card hover effects only on real hover devices */
  .card:hover { transform: none; }
}


/* ============================================================================
   MOBILE NAV — hamburger + slide-in drawer
   ============================================================================ */
.nav__hamburger {
  display: none;
  width: 38px; height: 38px;
  margin-left: 4px;
  align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.nav__hamburger:hover { background: rgba(255,255,255,0.06); }
.nav__hamburger span {
  position: absolute;
  left: 9px; right: 9px; height: 1.6px;
  background: var(--text);
  border-radius: 1px;
  transition: transform .3s cubic-bezier(.2,.7,.2,1),
              opacity .2s ease,
              top .3s cubic-bezier(.2,.7,.2,1);
}
.nav__hamburger span:nth-child(1) { top: 12px; }
.nav__hamburger span:nth-child(2) { top: 18px; }
.nav__hamburger span:nth-child(3) { top: 24px; }
.nav__hamburger--open span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.nav__hamburger--open span:nth-child(2) { opacity: 0; }
.nav__hamburger--open span:nth-child(3) { top: 18px; transform: rotate(-45deg); }

.nav__drawer {
  position: fixed; inset: 0;
  z-index: 80;
  visibility: hidden;
  pointer-events: none;
  /* delay hiding until the panel slide finishes — otherwise the close
     animation isn't visible at all (visibility flips to hidden instantly). */
  transition: visibility 0s linear .42s;
}
.nav__drawer--open {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s linear 0s;
}
.nav__drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 5, 7, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .35s cubic-bezier(.2,.7,.2,1);
}
.nav__drawer--open .nav__drawer-backdrop { opacity: 1; }
.nav__drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(340px, 86vw);
  background: var(--bg-elev-1);
  border-left: 1px solid var(--border-strong);
  display: flex; flex-direction: column;
  padding: 86px 22px 24px;
  transform: translateX(100%);
  transition: transform .42s cubic-bezier(.2,.85,.2,1);
  box-shadow: -30px 0 80px -20px rgba(0,0,0,0.7);
  overflow-y: auto;
}
.nav__drawer--open .nav__drawer-panel { transform: translateX(0); }

.nav__drawer-head {
  position: absolute; top: 24px; left: 24px; right: 24px;
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.nav__drawer-label {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--text-dimmer);
  text-transform: uppercase;
}

.nav__drawer-links {
  display: flex; flex-direction: column;
  gap: 2px;
  margin-top: 14px;
  flex: 1;
}
.nav__drawer-link {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 6px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: color .15s, padding-left .25s cubic-bezier(.2,.7,.2,1);
  /* staggered slide-in when drawer opens */
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .4s cubic-bezier(.2,.7,.2,1),
              transform .4s cubic-bezier(.2,.7,.2,1),
              color .15s, padding-left .25s;
}
.nav__drawer--open .nav__drawer-link {
  opacity: 1;
  transform: translateX(0);
}
.nav__drawer--open .nav__drawer-link:nth-child(1) { transition-delay: .12s, .12s, 0s, 0s; }
.nav__drawer--open .nav__drawer-link:nth-child(2) { transition-delay: .18s, .18s, 0s, 0s; }
.nav__drawer--open .nav__drawer-link:nth-child(3) { transition-delay: .24s, .24s, 0s, 0s; }
.nav__drawer--open .nav__drawer-link:nth-child(4) { transition-delay: .30s, .30s, 0s, 0s; }
.nav__drawer-link:hover,
.nav__drawer-link:active { color: var(--accent); padding-left: 12px; }
.nav__drawer-link-num {
  font-size: 11px;
  color: var(--text-dimmer);
  letter-spacing: 0.05em;
}
.nav__drawer-link-label { flex: 1; }
.nav__drawer-link-arrow {
  color: var(--text-dimmer);
  transition: transform .2s, color .15s;
}
.nav__drawer-link:hover .nav__drawer-link-arrow,
.nav__drawer-link:active .nav__drawer-link-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.nav__drawer-foot {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 16px;
}
.nav__drawer-cta {
  width: 100%; justify-content: center;
  padding: 12px 16px;
  font-size: 13px;
}
.nav__drawer-socials {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-dim);
}
.nav__drawer-socials a {
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
  padding-bottom: 1px;
}
.nav__drawer-socials a:hover { color: var(--text); border-bottom-color: var(--text); }

/* Show hamburger / hide desktop nav-links + CTA-pair on mobile.
   On mobile the .nav__cta children render but hamburger replaces them visually. */
@media (max-width: 720px) {
  .nav__hamburger { display: inline-flex; }
  .nav__cta { display: none; }
  /* nav__links is already display:none from the desktop @720 rule */
}

/* ============================================================================
   MOBILE FIXES — round 2
   ============================================================================ */
@media (max-width: 720px) {
  /* --- Modal tabs: bigger tap targets, visible scroll affordance --- */
  .modal__tabs {
    padding: 0;
    position: relative;
  }
  .modal__tabs::after {
    /* right-edge fade so user knows there's more to scroll */
    content: "";
    position: absolute; right: 0; top: 0; bottom: 0;
    width: 28px;
    background: linear-gradient(to right, transparent, var(--bg-elev-1));
    pointer-events: none;
  }
  .modal__tab {
    padding: 16px 16px;
    font-size: 12px;
    min-height: 48px;
  }
  .modal__tab:first-child { padding-left: 18px; }
  .modal__tab:last-child { padding-right: 28px; }

  /* --- Certs: tighter, denser. year + issuer on one row, name below. --- */
  .about__certs-list { gap: 4px; }
  .about__certs-list li {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "meta"
      "name";
    gap: 3px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
  }
  .about__certs-list li::before {
    content: "";
    grid-area: meta;
    display: flex;
  }
  .about__certs-year,
  .about__certs-issuer {
    grid-area: meta;
    align-self: center;
  }
  /* Use flex container trick: stack year + issuer inline via grid hack */
  .about__certs-list li {
    grid-template-columns: auto auto 1fr;
    grid-template-areas:
      "year issuer ."
      "name name name";
    column-gap: 10px;
  }
  .about__certs-year { grid-area: year; font-size: 10.5px; }
  .about__certs-issuer { grid-area: issuer; justify-self: start; font-size: 10px; padding: 1px 6px; }
  .about__certs-name { grid-area: name; font-size: 13px; line-height: 1.35; }
}


/* ============================================================================
   MOBILE NAV — round 3 fixes
   ============================================================================ */
@media (max-width: 720px) {
  /* Hamburger: push to far right + entrance pulse so it's noticed */
  .nav__hamburger {
    display: inline-flex;
    margin-left: auto;
  }
  .nav__hamburger::before {
    /* attention-getter ring that pulses twice on initial mount */
    content: ""; position: absolute; inset: 0;
    border-radius: inherit;
    border: 1px solid oklch(0.85 0.18 var(--accent-hue, 195));
    opacity: 0;
    pointer-events: none;
    animation: nav-burger-attn 1.4s ease-out 1.4s 2;
  }
  .nav__hamburger--open::before { animation: none; }
  /* Subtle idle "breathing" so the bars feel alive even at rest */
  .nav__hamburger:not(.nav__hamburger--open) span:nth-child(1) {
    animation: nav-burger-breathe 4.2s ease-in-out infinite;
  }
  .nav__hamburger:not(.nav__hamburger--open) span:nth-child(3) {
    animation: nav-burger-breathe 4.2s ease-in-out 2.1s infinite;
  }
}
@keyframes nav-burger-attn {
  0%   { opacity: 0; transform: scale(1); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1.55); }
}
@keyframes nav-burger-breathe {
  0%, 100% { left: 9px; right: 9px; }
  50%      { left: 11px; right: 7px; }
}

/* ============================================================================
   MODAL TABS — remove the fade-shadow over text + bump padding so the last
   tab never sits flush against the modal edge.
   ============================================================================ */
@media (max-width: 720px) {
  .modal__tabs::after { display: none; } /* kill the shadow over text */
  .modal__tab:last-child { padding-right: 24px; margin-right: 8px; }
  /* tiny chevron at the right edge as a scroll affordance instead */
  .modal__tabs {
    background-image: linear-gradient(to right, transparent calc(100% - 1px), var(--border) 100%);
  }
}

/* ============================================================================
   MODAL HERO — taller on mobile so the project title has breathing room and
   the cover art is actually visible.
   ============================================================================ */
@media (max-width: 720px) {
  .modal { padding: 22px 14px; }
  .modal__hero { aspect-ratio: 4 / 3; }
  .modal__hero-content {
    padding: 18px 18px 22px;
  }
  .modal__hero-content .modal__crumb { margin-bottom: 14px; }
  .modal__title { margin-bottom: 8px; }
  .modal__tag { margin-bottom: 14px; }
  /* trim the chip list so it doesn't crowd the title */
  .modal__chips { gap: 5px; }
  .modal__chips .chip { font-size: 10px; padding: 3px 7px; }
}


/* ============================================================================
   MOBILE — round 4: bulletproof hamburger + restructured modal hero
   ============================================================================ */

/* --- Hamburger: flip the cascade. Shown by default, hidden on desktop only.
       This is more robust against any cascade conflicts. --- */
@media (min-width: 721px) {
  .nav__hamburger { display: none !important; }
}
@media (max-width: 720px) {
  .nav__hamburger {
    display: inline-flex !important;
    margin-left: auto !important;
  }
  /* hide the desktop CTA pair entirely on mobile */
  .nav__cta { display: none !important; }
  /* and the desktop links */
  .nav__links { display: none !important; }
}

/* --- Modal hero on mobile: cover art on top, title BLOCK on solid bg below.
       Stops titles from "floating" over the image with poor contrast. --- */
@media (max-width: 720px) {
  .modal__panel {
    /* let panel grow with stacked content */
  }
  .modal__hero {
    /* turn the hero into a flex column so the title block can sit below the SVG */
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
    height: auto;
    overflow: visible;
  }
  /* force the SVG cover to render at a fixed wide aspect — its inline
     style="height:100%" otherwise collapses to 0 when parent has auto height. */
  .modal__hero > svg {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10;
    display: block;
    flex-shrink: 0;
  }
  /* drop the dark fade overlay since the title is no longer over the image */
  .modal__hero-fade { display: none; }

  /* Title block: in normal flow, solid bg, clear separation from cover */
  .modal__hero-content {
    position: static;
    padding: 20px 18px 22px;
    background: var(--bg-elev-1);
    border-top: 1px solid var(--border);
  }
  .modal__crumb { margin-bottom: 12px; }
  .modal__title {
    font-size: clamp(22px, 6.5vw, 28px);
    line-height: 1.15;
    margin-bottom: 10px;
  }
  .modal__tag {
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 14px;
    color: var(--text-dim);
  }
  .modal__chips { gap: 5px; }
  .modal__chips .chip,
  .modal__chips .status-pill {
    font-size: 10px;
    padding: 3px 8px;
  }
}
