/* ==========================================================================
   avishkarseth.github.io
   One stylesheet, no framework. Sections:
   1 Fonts  2 Tokens  3 Base  4 Header  5 Footer  6 Shared layout
   7 Home  8 Research  9 Entries (teaching, volunteering, education)
   10 About  11 Tiles (blogs, tutorials)  12 Posts (new_pages)  13 Utilities
   ========================================================================== */

/* 1 Fonts: Archivo variable (weight and width axes), self-hosted, SIL OFL 1.1 */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/assets/fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/assets/fonts/archivo-latin-wdth-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono, self-hosted, SIL OFL 1.1: only for live readouts in the flight HUD */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("/assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
}

/* 2 Tokens. Night in the forest (dark) and misty dawn (light).
   Mint is the bioluminescent signal colour; orange is energy (batteries, the swap). */
:root {
  --bg: #eef3f1;
  --surface: #ffffff;
  --ink: #0c2129;
  --muted: #4a5e66;
  --rule: #c3d0cd;
  --accent: #0a9e7c;
  --accent-ink: #067256;
  --energy: #e2620d;
  --go: #0a7d62;
  --matte: #ffffff;
  --glow: rgba(10, 158, 124, 0.28);
  --header-bg: rgba(238, 243, 241, 0.82);
  --shadow: 0 1px 2px rgba(12, 33, 41, 0.08), 0 8px 24px rgba(12, 33, 41, 0.06);
  color-scheme: light;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --wide: 125%;
  --narrow: 88%;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}
:root[data-theme="dark"] {
  --bg: #061419;
  --surface: #0b2027;
  --ink: #e4f3ef;
  --muted: #94b0ab;
  --rule: #1d3a40;
  --accent: #5cf2c8;
  --accent-ink: #7ff7d6;
  --energy: #ff8a2a;
  --go: #5cf2c8;
  --matte: #f2f6f5;
  --glow: rgba(92, 242, 200, 0.35);
  --header-bg: rgba(6, 20, 25, 0.72);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

/* 3 Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
}
main { flex: 1 0 auto; }
img, video, svg, iframe { max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 0.5em; line-height: 1.15; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
a { color: inherit; text-decoration-line: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
strong, b { font-weight: 700; }
::selection { background: var(--accent); color: var(--bg); }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--radius);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--bg); }

.wrap, .container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container .container, .wrap .container { padding-inline: 0; }

/* 4 Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand {
  font-stretch: var(--wide); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em;
  text-decoration: none; margin-right: auto; white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.site-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 22px 11px 19px; text-decoration: none;
  font-weight: 500; font-size: 0.97rem; color: var(--muted);
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none;
  border: 1px solid var(--rule); border-radius: 50%; background: transparent; color: var(--ink);
  cursor: pointer; padding: 0;
}
.icon-btn:hover { border-color: var(--ink); }
.theme-toggle .icon-moon, :root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.nav-toggle { display: none; }
.nav-toggle .icon-close, .nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 1140px) {
  .nav-toggle { display: inline-grid; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--rule);
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .site-nav a {
    padding: 14px 0 14px 14px; font-size: 1.15rem; color: var(--ink);
    border-bottom: 1px solid var(--rule); border-left: 3px solid transparent;
  }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--rule); border-left-color: var(--accent); }
}

/* 5 Footer */
.site-footer { border-top: 1px solid var(--rule); margin-top: clamp(32px, 5vw, 64px); padding: clamp(32px, 5vw, 56px) 0 40px; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 48px; align-items: start; }
.footer-contact p { margin: 0 0 6px; color: var(--muted); }
.footer-mail {
  font-stretch: var(--wide); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1;
  font-size: clamp(1.25rem, 2.6vw, 2rem); text-decoration-thickness: 3px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.footer-links a { text-decoration: none; font-weight: 500; }
.footer-links a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.colophon { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9rem; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr); } }

/* 6 Shared layout: a heading column beside a content column */
.page-head { padding: clamp(36px, 6vw, 72px) 0 clamp(20px, 3vw, 36px); }
.page-head h1 {
  font-stretch: var(--wide); font-weight: 800; letter-spacing: -0.025em; line-height: 1.02;
  font-size: clamp(2.1rem, 5vw, 3.6rem); margin: 0 0 0.35em;
}
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 62ch; margin: 0; }
.lead a { color: var(--ink); }

.band { border-top: 1px solid var(--rule); padding: clamp(28px, 4.5vw, 56px) 0; }
.split { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 20px 48px; align-items: start; }
.split-head h2 { font-stretch: var(--wide); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.015em; margin: 0 0 8px; }
.split-head p { color: var(--muted); font-size: 0.95rem; margin: 0 0 8px; }
@media (min-width: 861px) { .split-head.sticky { position: sticky; top: 92px; } }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius); border: 1.5px solid var(--ink);
  font-weight: 600; text-decoration: none; line-height: 1.2; cursor: pointer; font: inherit; font-weight: 600;
}
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: transparent; color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.meta { font-stretch: var(--narrow); font-weight: 500; color: var(--muted); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.status-now { color: var(--go); font-weight: 600; white-space: nowrap; }
.status-now::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--go); margin-right: 6px; vertical-align: 1px; }
.figure-matte { background: var(--matte); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }

/* 7 Home: the forest flight, then "Inside my head" */
.btn-glow { background: var(--accent); color: var(--bg); border-color: var(--accent); box-shadow: 0 0 0 0 var(--glow); transition: box-shadow 0.25s, transform 0.25s; }
.btn-glow:hover { color: var(--bg); box-shadow: 0 0 28px 4px var(--glow); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 45%, transparent); }
.btn-ghost:hover { border-color: var(--accent); color: var(--ink); }

/* The flight scene always reads as night-on-screen text in dark, and dawn text in light */
.xp {
  --xp-ink: var(--ink); --xp-accent: var(--accent);
  position: relative; height: calc(100svh - 68px); min-height: 560px; max-height: 1100px;
  overflow: hidden; outline: none; isolation: isolate;
  background: radial-gradient(120% 90% at 70% 10%, color-mix(in srgb, var(--accent) 12%, var(--bg)) 0%, var(--bg) 60%);
}
#xp-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.xp-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 82%, transparent) 0%, color-mix(in srgb, var(--bg) 35%, transparent) 42%, transparent 65%),
    linear-gradient(0deg, color-mix(in srgb, var(--bg) 70%, transparent) 0%, transparent 28%);
  transition: opacity 0.6s;
}
.xp-intro {
  position: relative; z-index: 3; height: 100%;
  max-width: var(--wrap); margin-inline: auto; padding: 0 var(--gutter) clamp(72px, 10vh, 120px);
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: opacity 0.5s, transform 0.5s;
}
.xp-name {
  font-stretch: var(--wide); font-weight: 800; letter-spacing: -0.035em; line-height: 0.9;
  font-size: clamp(3.2rem, 10.5vw, 9.5rem); margin: 0 0 0.18em; max-width: 9ch;
  text-shadow: 0 0 40px color-mix(in srgb, var(--bg) 70%, transparent);
}
.xp-roles { font-size: clamp(1.25rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -0.01em; margin: 0 0 0.5em; color: var(--accent-ink); }
.xp-lede { font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 34em; color: var(--muted); margin: 0 0 1.4em; }
.xp-lede a { color: var(--ink); }
.xp-down {
  position: absolute; z-index: 3; left: 50%; bottom: 18px; translate: -50% 0;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); color: var(--ink); text-decoration: none;
}
.xp-down:hover { border-color: var(--accent); color: var(--accent-ink); }

/* Kinetic type: each letter widens near the pointer (set by site.js) */
.kinetic .ch { display: inline-block; font-stretch: var(--w, 125%); transition: font-stretch 0.35s cubic-bezier(.2,.7,.2,1), color 0.35s; }
.kinetic .ch.is-hot { color: var(--accent-ink); }
.kinetic .word { display: inline-block; white-space: nowrap; }

/* HUD: hidden until the visitor takes the controls or picks a signal */
.xp-hud { position: absolute; inset: 0; z-index: 4; pointer-events: none; font-family: var(--mono); }
.xp-hud > * { pointer-events: auto; }
.xp-telemetry, .xp-radar, .xp-exit, .xp-markers, .xp-touch { opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
.xp[data-mode="pilot"] .xp-telemetry, .xp[data-mode="seek"] .xp-telemetry,
.xp[data-mode="pilot"] .xp-radar, .xp[data-mode="seek"] .xp-radar,
.xp[data-mode="pilot"] .xp-exit, .xp[data-mode="seek"] .xp-exit,
.xp[data-mode="pilot"] .xp-markers, .xp[data-mode="seek"] .xp-markers { opacity: 1; visibility: visible; }
.xp[data-mode="pilot"] .xp-intro, .xp[data-mode="seek"] .xp-intro { opacity: 0; transform: translateY(20px); pointer-events: none; visibility: hidden; }
.xp[data-mode="pilot"] .xp-shade, .xp[data-mode="seek"] .xp-shade { opacity: 0.35; }
.xp[data-mode="pilot"] .xp-signals, .xp[data-mode="seek"] .xp-signals { top: 84px; translate: none; }
.xp[data-mode="pilot"] .xp-down, .xp[data-mode="seek"] .xp-down { display: none; }

.xp-telemetry {
  position: absolute; top: 18px; left: var(--gutter);
  padding: 12px 14px; min-width: 200px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 62%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); font-size: 0.8rem; color: var(--ink);
}
.xp-mode { display: block; color: var(--accent-ink); font-weight: 600; margin-bottom: 6px; }
.xp-telemetry dl { margin: 0; display: grid; grid-template-columns: repeat(4, auto); gap: 4px 16px; }
.xp-telemetry dt { color: var(--muted); font-size: 0.72rem; }
.xp-telemetry dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.xp-bat { display: block; height: 4px; margin-top: 10px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 15%, transparent); overflow: hidden; }
.xp-bat span { display: block; height: 100%; background: var(--accent); transform-origin: left center; transition: background 0.3s; }
.xp-bat span.is-low { background: var(--energy); }

.xp-signals {
  position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%;
  max-height: calc(100% - 200px);
  font-family: var(--font); text-align: right;
}
.xp-signals-head { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); margin: 0 0 8px; }
.xp-signals ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.xp-signal {
  font: inherit; font-weight: 600; font-size: 0.98rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 12px; border-radius: 999px; color: var(--ink);
  background: color-mix(in srgb, var(--bg) 55%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.xp-signal::after { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--accent); box-shadow: 0 0 10px var(--glow); }
.xp-signal:hover { border-color: var(--accent); }
.xp-signal.is-found { border-color: var(--accent); }
.xp-signal.is-found::after { background: var(--accent); }
.xp-complete .xp-signals-head { color: var(--accent-ink); }

.xp-radar { position: absolute; right: var(--gutter); bottom: 18px; width: 144px; height: 144px; border-radius: 50%; background: color-mix(in srgb, var(--bg) 55%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.xp-top-right { position: absolute; top: 18px; right: var(--gutter); display: flex; gap: 10px; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
.xp[data-mode="pilot"] .xp-top-right, .xp[data-mode="seek"] .xp-top-right { opacity: 1; visibility: visible; }
.xp-exit { font-family: var(--font); padding: 9px 16px; background: color-mix(in srgb, var(--bg) 55%, transparent); }
.xp-sound { background: color-mix(in srgb, var(--bg) 55%, transparent); width: 44px; height: 44px; }
.xp-sound .icon-note, .xp-sound.is-on .icon-mute { display: none; }
.xp-sound.is-on .icon-note { display: block; }
.xp-sound.is-on { border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 16px var(--glow); }
.xp-intro .xp-sound { align-self: center; }
.xp-hint { margin: 14px 0 0; font-size: 0.92rem; color: var(--muted); }

/* Mission complete */
.xp-win {
  position: absolute; z-index: 8; left: 50%; top: 50%; translate: -50% -50%;
  width: min(640px, calc(100% - 32px)); padding: clamp(24px, 4vw, 44px); text-align: center;
  background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid #ffc65c; border-radius: 12px; box-shadow: 0 0 80px rgba(255, 198, 92, 0.35), var(--shadow);
  animation: win-in 0.8s cubic-bezier(.2,.9,.2,1.2);
}
.xp-win .btn-row { justify-content: center; }
@keyframes win-in { from { opacity: 0; transform: scale(0.85); } }
.xp-win-badge { display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px; font-weight: 700; color: #3a2600; background: #ffc65c; box-shadow: 0 0 24px rgba(255, 198, 92, 0.6); }
.xp-win h2 { font-stretch: var(--wide); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-size: clamp(1.8rem, 4.4vw, 3rem); margin: 0 0 0.4em; }
.xp-win-time { font-family: var(--mono); font-size: 1rem; color: var(--accent-ink); margin: 0 0 0.8em; }
.xp-win-text { color: var(--muted); margin: 0 auto 1.4em; max-width: 44ch; }
.xp-win-close { position: absolute; top: 12px; right: 12px; }
.xp-won .xp-signals-head { color: #ffc65c; }
#hud-found.is-pop { display: inline-block; animation: pop 0.6s cubic-bezier(.2,.9,.2,1.4); color: var(--accent-ink); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.6); } 100% { transform: scale(1); } }
.xp-toast {
  position: absolute; left: 50%; top: 18px; translate: -50% -12px; margin: 0; max-width: min(560px, calc(100% - 32px));
  padding: 10px 16px; border-radius: var(--radius); font-size: 0.85rem; text-align: center;
  background: color-mix(in srgb, var(--bg) 80%, transparent); color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  opacity: 0; transition: opacity 0.3s, translate 0.3s; pointer-events: none;
}
.xp-toast.is-on { opacity: 1; translate: -50% 0; }
.xp-markers { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.xp-marker { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; translate: -50% -100%; font-family: var(--mono); font-size: 0.72rem; color: var(--ink); transition: opacity 0.3s; will-change: transform; }
.xp-marker-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); box-shadow: 0 0 12px var(--glow); }
.xp-marker.is-found .xp-marker-dot { background: var(--accent); }
.xp-marker-text { padding: 1px 6px; border-radius: 3px; background: color-mix(in srgb, var(--bg) 60%, transparent); }

/* Touch controls appear only on touch screens while flying */
.xp-touch { position: absolute; inset: auto 0 0 0; z-index: 5; display: none; justify-content: space-between; align-items: flex-end; padding: 0 18px 22px; pointer-events: none; }
@media (pointer: coarse) { .xp-touch { display: flex; } }
.xp-touch > * { pointer-events: auto; }
.xp:not([data-mode="pilot"]) .xp-touch { pointer-events: none; }
.xp:not([data-mode="pilot"]) .xp-touch > * { pointer-events: none; }
.xp[data-mode="pilot"] .xp-touch { opacity: 1; visibility: visible; }
.xp-stick { position: relative; width: 120px; height: 120px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--bg) 40%, transparent); touch-action: none; display: grid; place-items: center; }
.xp-knob { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); opacity: 0.85; box-shadow: 0 0 20px var(--glow); }
.xp-climb { display: flex; flex-direction: column; gap: 10px; }
.xp-climb button { width: 64px; height: 52px; border-radius: 12px; font: 600 0.9rem var(--font); color: var(--ink); background: color-mix(in srgb, var(--bg) 55%, transparent); border: 1.5px solid color-mix(in srgb, var(--accent) 60%, transparent); touch-action: none; }
@media (pointer: coarse) {
  .xp[data-mode="pilot"] .xp-radar { bottom: auto; top: 96px; width: 104px; height: 104px; }
  .xp[data-mode="pilot"] .xp-signals { display: none; }
}

/* Without WebGL, or with reduced motion: the scene stays still and signals open directly */
.xp-static #xp-canvas { display: none; }
.xp-static .xp-shade { opacity: 1; }

@media (max-width: 760px) {
  .xp { height: calc(100svh - 68px); min-height: 600px; }
  .xp-shade { background: linear-gradient(0deg, color-mix(in srgb, var(--bg) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 45%, transparent 75%); }
  .xp-signals { top: 16px; right: 12px; translate: none; }
  .xp-signals ul { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; max-width: 300px; gap: 5px; }
  .xp-signal { font-size: 0.8rem; padding: 5px 9px; gap: 6px; }
  .xp-signals-head { font-size: 0.72rem; }
  .xp-intro { padding-bottom: 84px; }
  .xp-telemetry { min-width: 0; font-size: 0.72rem; top: 12px; left: 12px; padding: 9px 10px; }
  .xp-top-right { top: auto; bottom: 150px; right: 12px; }
  .xp-toast { top: auto; bottom: 230px; }
}

/* Side panel when a signal is found: compact, never blocks the flight */
.xp-side {
  position: absolute; z-index: 6; left: var(--gutter); top: 120px; width: min(320px, calc(100% - 32px));
  padding: 16px 18px 14px; border-radius: 10px; font-family: var(--font); color: var(--ink);
  background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: 0 0 40px var(--glow);
}
.xp-side.is-in { animation: side-in 0.45s cubic-bezier(.2,.9,.2,1.1); }
@keyframes side-in { from { opacity: 0; transform: translateX(-24px); } }
.xp-side-close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; }
.xp-side-count { font-family: var(--mono); font-size: 0.74rem; color: var(--accent-ink); margin: 0 30px 6px 0; }
.xp-side-name { font-stretch: var(--wide); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; margin: 0 0 4px; }
.xp-side-headline { font-weight: 600; margin: 0 0 6px; line-height: 1.3; }
.xp-side-summary { font-size: 0.92rem; color: var(--muted); margin: 0 0 8px; line-height: 1.45; }
.xp-side-more { font-weight: 600; font-size: 0.92rem; }

@media (max-width: 760px) {
  .xp-side { top: auto; bottom: 222px; left: 12px; right: 12px; width: auto; padding: 12px 14px 10px; }
  .xp-side-summary { display: none; }
  .xp-side-name { font-size: 1.05rem; }
}

/* Controls legend: always on screen while flying */
.xp-keys {
  position: absolute; z-index: 5; left: var(--gutter); bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
  font-family: var(--mono); font-size: 0.76rem; color: var(--ink);
  padding: 8px 12px; border-radius: 8px; background: color-mix(in srgb, var(--bg) 60%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; pointer-events: none;
}
.xp[data-mode="pilot"] .xp-keys, .xp[data-mode="seek"] .xp-keys { opacity: 1; visibility: visible; }
kbd { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; display: inline-block; min-width: 1.7em; text-align: center; padding: 1px 5px; margin-right: 3px; border-radius: 4px; border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); border-bottom-width: 2px; background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--ink); }
.xp-keys-touch { display: none; }
@media (pointer: coarse) {
  .xp-keys-desk { display: none; }
  .xp-keys-touch { display: inline; }
  .xp-keys { left: 18px; bottom: 150px; max-width: calc(100% - 215px); font-size: 0.7rem; }
  .xp-hint kbd { display: none; }
}

/* The work: six chapters below the forest */
.mind { position: relative; padding-top: clamp(56px, 9vw, 120px); }
.mind-intro h2, .call h2 { font-stretch: var(--wide); font-weight: 800; letter-spacing: -0.035em; line-height: 0.95; font-size: clamp(2.6rem, 7.5vw, 6.2rem); margin: 0 0 0.3em; }
.mind-chapter { position: relative; padding: clamp(48px, 8vw, 110px) 0; border-top: 1px solid var(--rule); overflow: hidden; }
.mind-word {
  position: absolute; left: 0; top: 50%; translate: 0 -50%; z-index: -1; white-space: nowrap; pointer-events: none;
  font-stretch: var(--wide); font-weight: 900; letter-spacing: -0.04em; line-height: 1;
  font-size: clamp(6rem, 22vw, 21rem);
  color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--accent) 22%, transparent);
}
.mind-chapter:nth-child(odd) .mind-word { left: auto; right: 0; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .mind-word { animation: drift linear both; animation-timeline: view(); }
    .mind-chapter:nth-child(odd) .mind-word { animation-name: drift-back; }
  }
}
@keyframes drift { from { transform: translateX(-18%); } to { transform: translateX(8%); } }
@keyframes drift-back { from { transform: translateX(18%); } to { transform: translateX(-8%); } }
.mind-name { font-size: 1.05rem; font-weight: 700; color: var(--accent-ink); margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.mind-name::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--glow); }
.mind-headline { font-stretch: var(--wide); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-size: clamp(2rem, 5.2vw, 4.2rem); margin: 0 0 0.6em; max-width: 16ch; text-wrap: balance; }
.mind-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 56px; align-items: start; }
.mind-grid.no-media { grid-template-columns: minmax(0, 1fr); }
.mind-text { max-width: 60ch; font-size: 1.08rem; }
.mind-facts { list-style: none; padding: 0; margin: 0 0 1.2em; }
.mind-facts li { padding: 10px 0 10px 22px; border-top: 1px solid var(--rule); position: relative; }
.mind-facts li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 9px; height: 2px; background: var(--accent); }
.mind-link a { font-weight: 600; text-decoration-thickness: 2px; }
.mind-media { display: grid; gap: 12px; }
.mind-media-2 { grid-template-columns: 1fr 1fr; }
.mind-media img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; border-radius: 8px; border: 1px solid var(--rule); display: block; }
.mind-likes-h { font-size: 1rem; margin: 1.2em 0 0.4em; }
.mind-likes { margin: 0 0 1em; }
.mind-handoff { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 10px; align-self: center; }
.mind-handoff svg { width: 100%; height: auto; display: block; }
.mind-handoff .ink { stroke: var(--ink); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mind-handoff .ink-fill { fill: var(--ink); }
.mind-handoff .hull { fill: var(--surface); stroke: var(--ink); stroke-width: 3; }
.mind-handoff .prop { fill: var(--ink); opacity: 0.28; }
.mind-handoff .hf-line { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.mind-handoff .hf-cell { fill: var(--energy); }
@media (prefers-reduced-motion: no-preference) {
  .mind-handoff .hf-cell { animation: hf-move 3.2s ease-in-out infinite; }
  .mind-handoff .hf-service { animation: hf-hover 3.2s ease-in-out infinite; }
}
@keyframes hf-move { 0%, 15% { transform: translate(-80px, -55px); opacity: 0; } 25% { opacity: 1; } 75% { transform: translate(80px, 50px); opacity: 1; } 85%, 100% { transform: translate(80px, 50px); opacity: 0; } }
@keyframes hf-hover { 0%, 100% { transform: translate(250px, 150px); } 50% { transform: translate(250px, 146px); } }

/* Reveal: the headline rises in once, when the chapter scrolls into view */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] .mind-headline .word { opacity: 0; transform: translateY(0.5em); transition: opacity 0.6s, transform 0.7s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 60ms); }
  .js [data-reveal].is-in .mind-headline .word { opacity: 1; transform: none; }
}
@media (max-width: 860px) { .mind-grid { grid-template-columns: minmax(0, 1fr); } }

.call { padding-block: clamp(56px, 9vw, 120px); }
.call .lead { margin-bottom: 1.4em; }

/* Interactive background on inner pages */
.bg-field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: block; }

.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; border-top: 1px solid var(--rule); }
.news-list li:first-child { border-top: 0; padding-top: 0; }
.news-list a { text-decoration-thickness: 1.5px; }
@media (max-width: 520px) { .news-list li { grid-template-columns: minmax(0, 1fr); } }

.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.work a { display: block; text-decoration: none; }
.work .figure-matte { aspect-ratio: 16 / 10; display: grid; place-items: center; margin-bottom: 12px; }
.work img { width: 100%; height: 100%; object-fit: contain; display: block; }
.work h3 { font-size: 1.15rem; line-height: 1.25; margin: 0 0 4px; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.work a:hover h3 { text-decoration-color: var(--accent); }
.work a:hover { color: inherit; }
.work p { margin: 0; }
@media (max-width: 620px) { .work-grid { grid-template-columns: minmax(0, 1fr); } }

.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 12px 0; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; }
.plain-list li:first-child { border-top: 0; padding-top: 0; }
.prose { max-width: 66ch; }
.prose-lg { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.5; }

/* 8 Research */
.pub-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.pub-search {
  flex: 1 1 280px; max-width: 460px; font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--rule); border-radius: var(--radius); padding: 11px 14px;
}
.pub-search:focus-visible { outline-offset: 0; border-color: var(--ink); }
.pub-search::placeholder { color: var(--muted); opacity: 1; }
.year-jump { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; }
.year-jump a { text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.year-jump a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.pub-year h2 { font-stretch: var(--wide); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; line-height: 1; margin: 0 0 4px; font-variant-numeric: tabular-nums; }
.pub { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-top: 1px solid var(--rule); }
.pub:first-child { border-top: 0; padding-top: 0; }
.pub-thumb { aspect-ratio: 4 / 3; display: grid; place-items: center; align-self: start; }
.pub-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pub-thumb.is-empty { background: transparent; border-style: dashed; }
.pub h3 { font-size: 1.2rem; line-height: 1.25; margin: 0 0 6px; font-weight: 700; }
.pub h3 a { text-decoration-color: transparent; }
.pub h3 a:hover { text-decoration-color: var(--accent); color: inherit; }
.pub p { margin: 0 0 2px; }
.pub .authors { font-size: 0.98rem; }
.pub .authors b { font-weight: 700; }
.pub-empty { padding: 24px 0; color: var(--muted); }
[hidden] { display: none !important; }
@media (max-width: 520px) { .pub { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; } .pub h3 { font-size: 1.05rem; } }

/* 9 Entries: dated records (teaching, volunteering, education) */
.entry { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 8px 48px; padding: clamp(22px, 3vw, 36px) 0; border-top: 1px solid var(--rule); }
.entry-when { display: flex; flex-direction: column; gap: 4px; }
.entry-body { max-width: 780px; }
.entry-body > p { max-width: 66ch; }
.entry h3 { font-size: 1.35rem; margin: 0 0 4px; }
.entry h3 a { text-decoration-color: transparent; }
.entry h3 a:hover { text-decoration-color: var(--accent); color: inherit; }
.entry .role { font-weight: 600; margin: 0 0 8px; color: var(--muted); }
.entry-gallery { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.entry-gallery img { height: 148px; width: auto; max-width: 100%; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--matte); display: block; }
.columns-2 { columns: 2 280px; column-gap: 40px; padding-left: 1.1em; }
.columns-2 li { break-inside: avoid; margin-bottom: 6px; }
@media (max-width: 860px) { .entry { grid-template-columns: minmax(0, 1fr); } .entry-gallery img { height: 112px; } }

/* 10 About */
.about-top { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px 56px; align-items: start; }
.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--rule); display: block; }
.about-top h1 { margin-bottom: 0.15em; }
.about-role { font-size: 1.2rem; font-weight: 600; margin: 0 0 4px; }
.skill-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 36px; }
.skill-grid h3 { font-size: 1.05rem; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.skill-grid ul { list-style: none; margin: 0; padding: 0; font-size: 0.98rem; }
.skill-grid li { padding: 3px 0; }
@media (max-width: 860px) { .about-top { grid-template-columns: minmax(0, 1fr); } .portrait { max-width: 300px; } .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .skill-grid { grid-template-columns: minmax(0, 1fr); } }

/* 11 Tiles: blog posts and tutorials */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 28px; }
.tile a { display: block; text-decoration: none; }
.tile a:hover { color: inherit; }
.tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--rule); display: block; margin-bottom: 12px; background: var(--matte); }
.tile h3 { font-size: 1.12rem; line-height: 1.25; margin: 0 0 4px; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.tile a:hover h3 { text-decoration-color: var(--accent); }
.tile p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* 12 Posts: the long-form pages in /new_pages keep their original markup */
.post { padding-bottom: 24px; }
.post .page-head { padding-bottom: 8px; }
.back-link { display: inline-block; margin-bottom: 18px; font-weight: 500; text-decoration-thickness: 1.5px; }
.post-body { max-width: 860px; }
.post-body h2, .post-body h4 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 600; color: var(--muted); margin: 0 0 1em; line-height: 1.35; }
.post-body h3, .post-body h5 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 700; margin: 0 0 0.5em; padding-top: 1.4em; border-top: 1px solid var(--rule); }
.post-body h6 { font-size: 1rem; font-weight: 600; color: var(--muted); margin: 0 0 0.4em; }
.post-body h1 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-stretch: var(--wide); font-weight: 800; letter-spacing: -0.02em; margin: 1.4em 0 0.6em; }
.post-body p, .post-body li { max-width: 70ch; }
.post-body img { border-radius: var(--radius); }
.post-body hr { display: none; }
.post-body iframe { border: 0; border-radius: var(--radius); width: 100%; }
.post-body center { text-align: left; }
.post-body .research-item, .post-body .resume-item { padding: 20px 0; border-top: 1px solid var(--rule); }
.post-body .resume-title { font-size: 1.1rem; color: var(--muted); border: 0; padding: 0; margin: 0 0 4px; }

/* 13 Utilities kept for the original markup inside posts */
.row { display: flex; flex-wrap: wrap; gap: 20px 28px; }
.row > [class*="col-"] { flex: 1 1 300px; min-width: 0; }
.row > .col-lg-12 { flex-basis: 100%; }
.img-fluid { max-width: 100%; height: auto; }
.d-flex { display: flex; }
.mt-4 { margin-top: 1.5rem; }
.pb-0 { padding-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.notfound { padding: clamp(60px, 12vw, 140px) 0; }
.notfound h1 { font-stretch: var(--wide); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.03em; line-height: 1; }

@media print {
  .site-header, .site-footer, .pub-tools, .skip-link, .xp, .bg-field { display: none; }
  body { background: #fff; color: #000; }
}

/* Section heading used without the two-column split */
.section-h { font-stretch: var(--wide); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.015em; margin: 0; }
.band-title { padding-bottom: 0; }
.entry-first { border-top: 0; }
.footer-sign { font-stretch: var(--wide); font-weight: 800; font-size: clamp(1.1rem, 2.2vw, 1.6rem); letter-spacing: -0.02em; color: var(--ink) !important; }
.post-body .media-pair { display: grid; grid-template-columns: 2.2fr 1fr; gap: 10px; margin-bottom: 20px; height: clamp(260px, 32vw, 440px); }
.post-body .media-pair img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); display: block; min-width: 0; }
@media (max-width: 620px) { .post-body .media-pair { grid-template-columns: 1fr; height: auto; } .post-body .media-pair img.is-tall { max-height: 520px; object-position: center 30%; } }

/* Off the clock */
.oc-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; }
.oc-tags li { padding: 6px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); font-weight: 500; font-size: 0.95rem; }
.oc-player { width: 100%; height: 352px; border: 0; border-radius: 12px; margin-bottom: 20px; display: block; }
.oc-list { list-style: none; margin: 0; padding: 0; }
.oc-list li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 0; border-top: 1px solid var(--rule); }
.oc-list li:first-child { border-top: 0; padding-top: 0; }
.oc-title { font-weight: 600; font-size: 1.08rem; }
.oc-why { color: var(--muted); }
.oc-dislikes li { display: block; }
.oc-dislikes li::before { content: "No: "; color: var(--energy); font-weight: 700; }
.oc-gallery { columns: 2 260px; column-gap: 14px; }
.oc-gallery figure { margin: 0 0 14px; break-inside: avoid; }
.oc-gallery img { width: 100%; height: auto; display: block; border-radius: 8px; border: 1px solid var(--rule); }
.oc-gallery figcaption { margin-top: 6px; }
.oc-video { position: relative; aspect-ratio: 16 / 9; margin-bottom: 20px; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--rule); }
.oc-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.oc-tracks { counter-reset: track; }
.oc-tracks li { counter-increment: track; grid-template-columns: 2.2em minmax(0, 1fr) auto; align-items: baseline; }
.oc-tracks li::before { content: counter(track); font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.oc-tracks .oc-why { grid-column: 2 / -1; }
.oc-sub { font-size: 1.05rem; margin: 28px 0 0; }
.oc-artists { margin-top: 12px; }
.oc-stats-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 40px; align-items: center; }
.oc-clock { margin: 0; }
.listening-clock { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto 8px; }
.lc-bar { fill: color-mix(in srgb, var(--accent) 70%, transparent); transition: fill 0.2s; }
.lc-bar:hover { fill: var(--accent-ink); }
.lc-bar.is-peak { fill: var(--energy); }
.lc-ring { fill: none; stroke: var(--rule); stroke-width: 1.5; }
.lc-ring.faint { stroke-dasharray: 3 5; }
.lc-label { fill: var(--muted); font: 600 12px var(--font); }
.lc-centre { fill: var(--ink); font: 800 24px var(--font); font-stretch: 125%; }
.lc-centre-sub { fill: var(--muted); font: 500 11px var(--font); }
.oc-clock figcaption { text-align: center; }
.oc-stats { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.oc-stats div { border-top: 2px solid var(--accent); padding-top: 10px; }
.oc-stats dt { color: var(--muted); font-size: 0.92rem; }
.oc-stats dd { margin: 0; order: -1; font-stretch: 112%; font-weight: 800; font-size: clamp(1.4rem, 2.2vw, 1.8rem); letter-spacing: -0.02em; line-height: 1.1; overflow-wrap: normal; word-break: keep-all; }
.oc-stats div { display: flex; flex-direction: column; }
@media (max-width: 1040px) { .oc-stats-grid { grid-template-columns: minmax(0, 1fr); } }
