/* ==========================================================
   Antonio Mignolli — personal site
   Pure CSS. Dark-first, with a light theme via prefers-color-scheme.
   Fonts are self-hosted: no requests to third parties.
   ========================================================== */

/* Space Grotesk — SIL Open Font License 1.1, see ../fonts/space-grotesk/OFL.txt */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk/SpaceGrotesk-Variable.woff") format("woff");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0d0c;
  --bg-2: #111412;
  --surface: #151917;
  --surface-2: #1b201d;
  --line: #262c28;
  --line-2: #323a35;
  --text: #ecefe9;
  --muted: #9aa39c;
  --faint: #66706a;
  --accent: #c6ff3d;
  --accent-ink: #0b0d0c;
  --accent-soft: rgba(198, 255, 61, .12);
  --warm: #ff7a45;

  --display: "Space Grotesk", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, "DejaVu Sans Mono", monospace;

  --radius: 18px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1180px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f3ee;
    --bg-2: #ecebe4;
    --surface: #ffffff;
    --surface-2: #f7f6f1;
    --line: #e1dfd6;
    --line-2: #cfccc0;
    --text: #141614;
    --muted: #5d625e;
    --faint: #8c908a;
    --accent: #4d7c00;
    --accent-ink: #ffffff;
    --accent-soft: rgba(77, 124, 0, .10);
    --warm: #d4501c;
    color-scheme: light;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1200px 600px at 85% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(800px 500px at -10% 30%, rgba(255, 122, 69, .06), transparent 60%);
  background-repeat: no-repeat;
}
/* subtle dotted grid */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
  opacity: .55;
  z-index: -1;
}
a { color: inherit; text-decoration: none; }
a.inline-link { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .18em; }
a.inline-link:hover { color: var(--accent); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
em { font-style: normal; }
code { font-family: var(--mono); font-size: .88em; }
.mono { font-family: var(--mono); font-size: .85rem; letter-spacing: .02em; }
.dim { color: var(--faint); }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .9rem; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: .8rem; letter-spacing: .02em;
}
.nav nav { display: flex; align-items: center; gap: 4px; }
.nav nav a {
  padding: 7px 12px; border-radius: 999px;
  font-size: .9rem; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav nav a:hover { color: var(--text); background: var(--surface-2); }
.nav nav .nav-cta { color: var(--accent-ink); background: var(--accent); font-weight: 600; }
.nav nav .nav-cta:hover { color: var(--accent-ink); background: var(--accent); filter: brightness(1.08); }

/* ---------- layout ---------- */
main > section { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(56px, 10vw, 120px);
  padding-bottom: 48px;
  position: relative;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 22px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--mono); font-size: .78rem; color: var(--muted);
  background: var(--surface);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3.4rem, 10vw, 7.4rem);
  line-height: .92;
  letter-spacing: -.05em;
}
.hero h1 em {
  font-weight: 400;
  letter-spacing: -.055em;
  color: var(--accent);
}
.lede {
  max-width: 34em;
  margin: 28px 0 0;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--muted);
}
.lede strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  transition: transform .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border: 1px solid var(--line-2); font-family: var(--mono); font-weight: 500; font-size: .85rem; }
.btn-ghost:hover { border-color: var(--text); }

/* terminal */
.term {
  margin: 0;
  border-radius: var(--radius);
  background: #0e110f;
  border: 1px solid #262c28;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(198,255,61,.04);
  overflow: hidden;
  transform: rotate(1.2deg);
  transition: transform .4s ease;
  color: #ecefe9;
}
.term:hover { transform: rotate(0deg) translateY(-4px); }
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid #262c28;
  background: #141815;
}
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: #3a413c; }
.term-bar span:nth-child(1) { background: #ff5f57; }
.term-bar span:nth-child(2) { background: #febc2e; }
.term-bar span:nth-child(3) { background: #28c840; }
.term-bar p { margin: 0 0 0 auto; font-family: var(--mono); font-size: .72rem; color: #66706a; }
.term-body {
  margin: 0; padding: 20px 22px 24px;
  font-family: var(--mono); font-size: clamp(.74rem, 1.1vw, .86rem); line-height: 1.75;
  white-space: pre; overflow-x: auto;
}
.term-body .p { color: #c6ff3d; }
.term-body .o { color: #9aa39c; }
.term-body .k { color: #ff9a6c; }
.cursor {
  display: inline-block; width: .6em; height: 1.1em;
  vertical-align: text-bottom;
  background: #c6ff3d;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* marquee */
.marquee {
  grid-column: 1 / -1;
  list-style: none; margin: 40px 0 0; padding: 18px 0;
  display: flex; gap: 0; width: max-content;
  border-block: 1px solid var(--line);
  animation: slide 40s linear infinite;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.hero { overflow: hidden; }
.marquee li {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--faint);
  padding-inline: 22px;
  white-space: nowrap;
}
.marquee li::after { content: "✦"; font-style: normal; font-size: .5em; color: var(--accent); margin-left: 44px; vertical-align: middle; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding-top: clamp(72px, 11vw, 140px); }
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 20px;
  align-items: baseline;
  margin-bottom: 44px;
}
.idx {
  margin: 0;
  font-family: var(--mono); font-size: .8rem; color: var(--accent);
  padding: 4px 9px; border: 1px solid var(--accent); border-radius: 6px;
  align-self: center;
}
.section-head h2, .contact h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5.4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 700;
}
.section-head h2, .contact h2 { font-family: var(--display); }
.section-head h2 em, .contact h2 em { color: var(--accent); font-weight: 400; }
.card h3, .tl-body h3, .about-card h3, .cert-text h3, .stack-col h3, .big-link { font-family: var(--display); }
.section-sub { grid-column: 2; margin: 12px 0 0; color: var(--muted); max-width: 40em; }

/* ---------- bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.card {
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--surface-2); }
.card::after {
  content: ""; position: absolute; inset: auto -40% -60% auto;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.card:hover::after { opacity: 1; }
.card-xl { grid-column: span 2; grid-row: span 2; justify-content: flex-end; min-height: 340px;
  background:
    linear-gradient(160deg, var(--accent-soft), transparent 55%),
    var(--surface);
}
.card-xl::before {
  content: attr(data-deco);
  position: absolute; left: 26px; top: 50%; transform: translateY(-30%);
  font-family: var(--mono); font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 700;
  color: transparent; -webkit-text-stroke: 1px var(--line-2);
  letter-spacing: -.04em; line-height: 1;
}
.card-xl h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.card-wide { grid-column: span 2; }
.card-accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; grid-column: span 2; }
.card-accent:hover { background: var(--accent); filter: brightness(1.04); }
.card.card-accent p, .card.card-accent .tag { color: color-mix(in srgb, var(--accent-ink) 75%, transparent); }
.card-accent .chips li { border-color: color-mix(in srgb, var(--accent-ink) 30%, transparent); color: var(--accent-ink); background: transparent; }

.tag {
  margin: 0 0 10px;
  font-family: var(--mono); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--faint);
}
.card h3 { margin: 0 0 10px; font-size: 1.25rem; line-height: 1.2; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card > ul.chips { margin-top: auto; padding-top: 18px; }

.chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  font-family: var(--mono); font-size: .72rem;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted);
  background: var(--bg-2);
}

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 118px; top: 8px; bottom: 8px;
  width: 1px; background: linear-gradient(var(--accent), var(--line) 30%, var(--line));
}
.tl-item {
  display: grid; grid-template-columns: 118px 1fr; gap: 40px;
  padding: 0 0 46px;
  position: relative;
}
.tl-item::before {
  content: ""; position: absolute; left: 112px; top: 8px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-2);
}
.tl-current::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.tl-meta { padding-top: 2px; }
.badge {
  display: inline-block;
  font-family: var(--mono); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  padding: 4px 10px; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink);
}
.badge-line { background: transparent; color: var(--muted); border: 1px solid var(--line-2); font-weight: 500; }
.tl-body {
  padding: 24px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.tl-current .tl-body { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.tl-body h3 { margin: 0 0 8px; font-size: 1.3rem; letter-spacing: -.02em; }
.tl-body p { margin: 0; color: var(--muted); }

/* ---------- stack ---------- */
.stack {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.stack-col { padding: 28px 26px; border-right: 1px solid var(--line); }
.stack-col:last-child { border-right: 0; }
.stack-col h3 {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 18px; font-size: 1rem; letter-spacing: -.01em;
}
.dot { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.stack-col ul { list-style: none; margin: 0; padding: 0; }
.stack-col li {
  padding: 9px 0; border-bottom: 1px dashed var(--line);
  color: var(--faint); font-size: .95rem;
}
.stack-col li:last-child { border-bottom: 0; }
.stack-col li.hot { color: var(--text); font-weight: 500; }
.stack-col li.hot::after { content: " ●"; color: var(--accent); font-size: .6em; vertical-align: middle; }

.cert {
  margin-top: 18px;
  display: flex; align-items: center; gap: 24px;
  padding: 22px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(-45deg, transparent 0 12px, color-mix(in srgb, var(--line) 40%, transparent) 12px 13px),
    var(--surface);
}
.cert-badge {
  flex: none;
  width: 150px; height: 150px;
  object-fit: contain;
}
.cert-text h3 { margin: 0 0 4px; font-size: 1.2rem; letter-spacing: -.01em; }
.cert-text .tag { margin-bottom: 4px; }
.cert-text .mono { margin: 0; color: var(--muted); }

/* ---------- repos ---------- */
.repos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.repo {
  display: block; padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .2s, transform .2s;
}
.repo:hover { border-color: var(--accent); transform: translateY(-3px); }
.repo h3 { margin: 10px 0 6px; font-family: var(--mono); font-size: 1rem; font-weight: 500; }
.repo p { margin: 0; color: var(--muted); font-size: .93rem; }
.repo-lang { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--faint); font-family: var(--mono); }
.repo-lang::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.repo-more { background: transparent; border-style: dashed; display: flex; flex-direction: column; justify-content: center; }
.repo-more h3 { font-family: var(--sans); font-weight: 600; color: var(--accent); margin-top: 0; }

/* ---------- contact ---------- */
.contact {
  margin-top: clamp(80px, 12vw, 160px);
  padding-block: clamp(56px, 8vw, 96px);
  text-align: left;
  border-top: 1px solid var(--line);
}
.contact .idx { display: inline-block; margin-bottom: 22px; }
.contact h2 { font-size: clamp(2.4rem, 7vw, 5.2rem); }
.contact-links { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 560px); gap: 14px; }
.big-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 600; letter-spacing: -.02em;
  transition: background .25s, color .25s, border-color .25s;
}
.big-link .arrow { transition: transform .25s; }
.big-link:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.big-link:hover .arrow { transform: translate(4px, -4px); }

/* ---------- footer ---------- */
.footer {
  max-width: var(--maxw); margin: 0 auto;
  padding: 28px var(--gutter) 40px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: .9rem;
}
.footer p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-xl { grid-column: span 2; grid-row: auto; min-height: 280px; }
  .stack { grid-template-columns: repeat(2, 1fr); }
  .stack-col:nth-child(2) { border-right: 0; }
  .stack-col:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .repos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0,1fr); }
  .term { transform: none; }
  .nav nav a:not(.nav-cta) { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .card-xl::before { display: none; }
  .brand-name { display: none; }
  .bento, .repos, .contact-links { grid-template-columns: 1fr; }
  .card-xl, .card-wide, .card-accent { grid-column: auto; }
  .stack { grid-template-columns: 1fr; }
  .stack-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .stack-col:last-child { border-bottom: 0; }
  .section-head { grid-template-columns: 1fr; row-gap: 14px; }
  .section-head .idx { justify-self: start; }
  .section-sub { grid-column: 1; }
  .timeline::before { left: 6px; }
  .tl-item { grid-template-columns: 1fr; gap: 12px; padding-left: 30px; }
  .tl-item::before { left: 0; }
  .tl-body { padding: 20px; }
  .cert { flex-direction: column; align-items: flex-start; }
}

/* ---------- v2 additions ---------- */
.card p strong { color: var(--text); font-weight: 600; }

.stats {
  grid-column: 1 / -1;
  margin: 8px 0 0; display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
}
.stats div { padding: 22px 24px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats dt {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem); line-height: 1; color: var(--accent);
}
.stats dd { margin: 8px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.4; }

.tl-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.tl-date { font-family: var(--mono); font-size: .78rem; color: var(--muted); line-height: 1.5; }
.tl-co {
  margin: 0 0 4px !important; font-family: var(--mono); font-size: .76rem !important;
  color: var(--accent) !important; letter-spacing: .02em;
}

.earlier {
  margin-left: 158px;
  border: 1px dashed var(--line-2); border-radius: var(--radius);
  background: transparent;
}
.earlier summary {
  cursor: pointer; list-style: none;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  padding: 20px 26px; font-weight: 600;
}
.earlier summary::-webkit-details-marker { display: none; }
.earlier summary::before { content: "+"; font-family: var(--mono); color: var(--accent); width: 1ch; }
.earlier[open] summary::before { content: "−"; }
.earlier-hint { font-weight: 400; color: var(--faint); font-size: .9rem; }
.earlier ul { list-style: none; margin: 0; padding: 0 26px 14px; }
.earlier li {
  display: grid; grid-template-columns: 110px 1fr; gap: 18px;
  padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem;
}
.earlier li strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }

.chips-row { margin-top: 14px; }

.about { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.about-card {
  padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.about-card h3 { margin: 0 0 6px; font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.2; }
.about-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.about-card p strong { color: var(--text); }
.about-card .tag { margin-bottom: 10px; }
.about-card .dim-p { margin-top: 12px; font-size: .85rem; color: var(--faint); }
.about-stage {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(255,122,69,.14), transparent 60%), var(--surface);
}
.langs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.langs li { display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px; align-items: center; font-size: .92rem; }
.langs em { grid-column: 2; font-family: var(--mono); font-style: normal; font-size: .72rem; color: var(--faint); }
.meter { height: 6px; border-radius: 99px; background: var(--line); position: relative; overflow: hidden; }
.meter::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--accent); border-radius: inherit; }


@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .about { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .earlier { margin-left: 0; }
  .earlier summary, .earlier ul { padding-inline: 18px; }
  .earlier li { grid-template-columns: 1fr; gap: 4px; }
  .tl-meta { flex-direction: row; align-items: center; gap: 12px; }
  .tl-date br { display: none; }
  .tl-date { white-space: nowrap; }
  .about { grid-template-columns: 1fr; }
  .about-stage { grid-column: auto; }
  .stats div { padding: 18px; }
}

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