/* whitelabel.dev — minimalist, lowercase, faceless */

:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --ink-soft: #2b2b2b;
  --muted: #6b6b6b;
  --line: #1a1a1a;
  --line-soft: #e6e6e6;
  --accent: #0a0a0a;
  --radius: 0px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --max: 1200px;
  --pad-x: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  text-transform: lowercase;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--ink); color: var(--bg); }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }

h1, h2, h3 {
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
  text-transform: lowercase;
}

p { margin: 0; color: var(--ink-soft); }

ul { list-style: none; padding: 0; margin: 0; }

img { max-width: 100%; display: block; }

.skip {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.75rem;
  z-index: 100;
}

/* logo — square black-outline mark */
.logo {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--ink);
  position: relative;
  flex-shrink: 0;
}
.logo .logo-mark {
  position: absolute;
  inset: 4px;
  border: 1.5px solid var(--ink);
}
.logo.small {
  width: 16px;
  height: 16px;
  border-width: 1px;
}
.logo.small .logo-mark {
  inset: 2.5px;
  border-width: 1px;
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--pad-x);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}
.brand-name { letter-spacing: -0.01em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--muted);
}
.nav-links a {
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

/* nav dropdown */
.has-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.menu-trigger {
  appearance: none;
  background: transparent;
  border: 0;
  margin: 0;
  padding: 0.25rem 0;
  font: inherit;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: lowercase;
  position: relative;
  transition: color 0.15s ease;
}
.menu-trigger:hover,
.menu-trigger[aria-expanded="true"] { color: var(--ink); }

/* icon-only trigger (used by language picker — globe icon) */
.menu-trigger-icon {
  padding: 0.25rem;
  width: 1.875rem;
  height: 1.875rem;
  justify-content: center;
}
.menu-trigger-icon::after { display: none; }
.menu-trigger-mobile-label { display: none; } /* shown only inside the mobile drawer */
.menu-language { min-width: 11rem; }
.menu-language .m-pill {
  font-size: 0.8125rem;
  letter-spacing: -0.005em;
}
.lang-search {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  padding: 0.5rem 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink);
  width: 100%;
  letter-spacing: -0.005em;
  margin-bottom: 0.375rem;
}
.lang-search::placeholder { color: var(--muted); }
.lang-search:focus { outline: none; border-bottom-color: var(--ink); }
.lang-list { max-height: 18rem; overflow-y: auto; }
.lang-empty {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
  padding: 0.5rem 0.625rem;
  letter-spacing: 0.04em;
}
.lang-reset {
  appearance: none;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin-top: 0.375rem;
  padding: 0.5rem 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: color 0.15s ease;
}
.lang-reset:hover { color: var(--ink); }

/* shared mute button used by pacbrand / irl / trailer overlays.
   per-context modifier classes position it left of the exit X. */
.audio-mute {
  position: absolute;
  top: 1.25rem;
  right: 4.5rem;
  z-index: 51;
  appearance: none;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.audio-mute:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.audio-mute .icon-off { display: none; }
.audio-mute.is-muted .icon-on  { display: none; }
.audio-mute.is-muted .icon-off { display: block; }
.audio-mute.is-muted {
  color: rgba(255, 80, 110, 0.85);
  border-color: rgba(255, 80, 110, 0.5);
}

/* secret-mode easter egg — blurs main content. nav stays clear so the
   user can find the language picker and switch back. */
body[data-lang="secret"] main,
body[data-lang="secret"] footer {
  filter: blur(4px);
  transition: filter 0.4s ease;
}
body[data-lang="secret"] main:hover,
body[data-lang="secret"] footer:hover { filter: blur(2px); }

/* pacbrand easter egg — pac-man overlay eating brand favicons */
.pacbrand-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: radial-gradient(ellipse at center, #0a0a0a 0%, #000 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
}
.pacbrand-stage {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 80px;
}
.pacbrand-pac {
  position: absolute;
  top: 50%;
  left: 0;
  width: 56px;
  height: 56px;
  transform: translate(-60px, -50%);
  background: #ffeb3b;
  border-radius: 50%;
  filter: drop-shadow(0 0 12px rgba(255, 235, 59, 0.45));
  z-index: 2;
}
.pacbrand-pac::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  clip-path: polygon(50% 50%, 100% 18%, 100% 82%);
  animation: pacbrand-chomp 0.32s ease-in-out infinite;
}
@keyframes pacbrand-chomp {
  0%, 100% { clip-path: polygon(50% 50%, 100% 18%, 100% 82%); }
  50%      { clip-path: polygon(50% 50%, 100% 50%, 100% 50%); }
}
.pacbrand-pellet {
  position: absolute;
  top: 50%;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 8px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 8px 24px rgba(0,0,0,0.5);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.pacbrand-pellet img { width: 100%; height: 100%; object-fit: contain; }
.pacbrand-pellet.eaten {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
}
.pacbrand-brand {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  color: #ffeb3b;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  margin: 0;
  text-shadow: 0 0 18px rgba(255, 235, 59, 0.35);
}
.pacbrand-exit {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 50; /* must outrank cutscene + leaderboard layers below */
  appearance: none;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.pacbrand-exit:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255,255,255,0.06);
}
/* hide the page behind the overlay */
body[data-lang="pacbrand"] main,
body[data-lang="pacbrand"] footer { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .pacbrand-pac::before { animation: none; }
}

/* intro fade out → game fade in */
.pacbrand-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: opacity 0.6s ease;
}
.pacbrand-intro.is-done { opacity: 0; pointer-events: none; }
.pacbrand-hint {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
}

/* maze game */
.pacbrand-game {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  animation: pacbrand-fadein 0.5s ease both;
}
@keyframes pacbrand-fadein {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}
.pacbrand-hud {
  display: flex;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.12em;
}
.pacbrand-hud strong {
  color: #ffeb3b;
  font-weight: 500;
  margin-left: 0.5rem;
}
.pacbrand-canvas {
  display: block;
  background: #000;
  border: 1px solid rgba(58, 85, 197, 0.45);
  box-shadow: 0 0 60px rgba(58, 85, 197, 0.25);
  image-rendering: crisp-edges;
}
.pacbrand-status {
  font-family: var(--font-mono);
  color: #ffeb3b;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  min-height: 1.25rem;
  text-shadow: 0 0 16px rgba(255, 235, 59, 0.4);
  margin: 0;
}
.pacbrand-brand-game {
  position: absolute;
  bottom: 1.25rem;
}

/* level-clear cutscene — featuring brand sponsors */
.pacbrand-cutscene {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #181c4b 0%, #000 80%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  animation: pacbrand-cut-in 0.5s ease both;
  z-index: 5;
}
.pacbrand-cutscene.is-out { animation: pacbrand-cut-out 0.4s ease both; }
@keyframes pacbrand-cut-in {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pacbrand-cut-out {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(1.05); }
}
.pacbrand-cut-eyebrow {
  font-family: var(--font-mono);
  color: #ffeb3b;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  margin: 0;
  text-shadow: 0 0 18px rgba(255, 235, 59, 0.4);
}
.pacbrand-cut-logo {
  width: 96px;
  height: 96px;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.05), 0 30px 80px rgba(255, 235, 59, 0.18);
}
.pacbrand-cut-logo img { width: 100%; height: 100%; object-fit: contain; }
.pacbrand-cut-name {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.01em;
  color: #fff;
  font-weight: 500;
}
.pacbrand-cut-tagline {
  margin: 0;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.7);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}
.pacbrand-cut-meta {
  margin-top: 1rem;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.45);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
}

/* leaderboard / game-over modal */
.pacbrand-board {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #0a0a0a 0%, #000 80%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 1.5rem;
  animation: pacbrand-cut-in 0.4s ease both;
  z-index: 6;
}
.pacbrand-board-title {
  margin: 0;
  font-size: 1.75rem;
  color: #ff4d6d;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.pacbrand-board-score {
  margin: 0;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.65);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
}
.pacbrand-board-score strong {
  color: #ffeb3b;
  margin-left: 0.5rem;
  font-weight: 500;
}
.pacbrand-board-form {
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0;
}
.pacbrand-board-form input {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.5rem 0.75rem;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  width: 12rem;
  border-radius: 2px;
}
.pacbrand-board-form input:focus {
  outline: none;
  border-color: #ffeb3b;
}
.pacbrand-board-form button {
  appearance: none;
  background: #ffeb3b;
  color: #000;
  border: 0;
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  cursor: pointer;
  border-radius: 2px;
  letter-spacing: 0.02em;
}
.pacbrand-board-note {
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  margin: 0.5rem 0;
}
.pacbrand-board-list {
  list-style: none;
  margin: 0.75rem 0 1rem;
  padding: 0;
  width: min(100%, 28rem);
  max-height: 16rem;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
.pacbrand-board-list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 0.75rem;
  padding: 0.4rem 0.5rem;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pb-rank { color: rgba(255,255,255,0.4); }
.pb-score { color: #ffeb3b; font-weight: 500; }
.pb-empty {
  display: block !important;
  color: rgba(255,255,255,0.4);
  text-align: center;
  font-style: italic;
}
.pacbrand-board-actions button {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 0.5rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  cursor: pointer;
  border-radius: 2px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}
.pacbrand-board-actions button:hover {
  background: #fff;
  color: #000;
}

/* irl easter egg — three.js voxel sandbox */
body[data-lang="irl"] main,
body[data-lang="irl"] footer { visibility: hidden; }
.irl-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: #000;
  overflow: hidden;
  font-family: var(--font-mono);
}
.irl-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}
.irl-overlay.is-locked .irl-canvas { cursor: none; }
.irl-crosshair {
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 14px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background:
    linear-gradient(#fff, #fff) center/2px 14px no-repeat,
    linear-gradient(#fff, #fff) center/14px 2px no-repeat;
  mix-blend-mode: difference;
  opacity: 0.85;
}
.irl-hud {
  position: absolute;
  top: 1rem; left: 1.25rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.45);
  padding: 0.45rem 0.7rem;
  border-radius: 2px;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.irl-help {
  position: absolute;
  top: 3rem; left: 50%;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
  pointer-events: none;
  text-align: center;
  width: max-content;
  max-width: 92vw;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}
.irl-overlay.is-locked .irl-help { opacity: 0.35; }
.irl-loading {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
}
.irl-hotbar {
  position: absolute;
  bottom: 1rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.35rem;
  padding: 0.4rem;
  background: rgba(0,0,0,0.55);
  border-radius: 6px;
}
.irl-slot {
  position: relative;
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.irl-slot.is-active {
  border-color: #ffeb3b;
  box-shadow: 0 0 0 1px rgba(255, 235, 59, 0.4) inset;
}
.irl-slot-block {
  width: 32px; height: 32px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  overflow: hidden;
}
.irl-slot-block img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}
.irl-slot-num {
  position: absolute;
  bottom: 2px; right: 4px;
  font-size: 0.5625rem;
  color: rgba(255,255,255,0.5);
}
/* in irl mode the brand label moves to the top so it doesn't sit
   on top of the hotbar at the bottom */
.irl-overlay .pacbrand-brand {
  top: 1.25rem;
  bottom: auto;
  z-index: 1;
}
.irl-overlay .irl-exit { z-index: 51; }
.irl-death-fx {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(204, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 5;
}

/* inventory modal */
.irl-inventory[hidden] { display: none !important; }
.irl-inventory {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 640px);
  max-height: 80vh;
  background: rgba(10, 10, 10, 0.94);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  padding: 1rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  z-index: 40;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.irl-overlay.is-inv-open::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 30;
}
.irl-inv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
}
.irl-inv-head h3 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.9);
}
.irl-inv-close {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.7);
  padding: 0.25rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  cursor: pointer;
  border-radius: 2px;
}
.irl-inv-close:hover { color: #fff; border-color: #fff; }
.irl-inv-search {
  appearance: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  border-radius: 3px;
}
.irl-inv-search::placeholder { color: rgba(255,255,255,0.4); }
.irl-inv-search:focus { outline: none; border-color: #ffeb3b; }
.irl-inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 0.5rem;
  overflow-y: auto;
  max-height: 50vh;
  padding: 0.25rem;
}
.irl-inv-item {
  appearance: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 0.5rem 0.4rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255,255,255,0.85);
}
.irl-inv-item:hover {
  border-color: #ffeb3b;
  background: rgba(255, 235, 59, 0.08);
}
.irl-inv-icon {
  width: 36px; height: 36px;
  background: #fff;
  border-radius: 3px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.irl-inv-icon img { width: 100%; height: 100%; object-fit: contain; }
.irl-inv-name {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.irl-inv-empty {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  padding: 1rem;
}
.irl-inv-hint {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
  text-align: center;
}

/* irl trailer easter egg — cinematic title cards + glitched-white text */
body[data-lang="irltrailer"] main,
body[data-lang="irltrailer"] footer { visibility: hidden; }
.trailer-overlay {
  position: fixed; inset: 0;
  z-index: 9998;
  background: #000;
  font-family: var(--font-mono);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* scanline + chromatic-vignette layers behind the text for that crt-glitch feel */
.trailer-overlay::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0) 0,
    rgba(0,0,0,0) 2px,
    rgba(255,255,255,0.045) 2px,
    rgba(255,255,255,0.045) 3px
  );
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 3;
  animation: trailer-scan 0.14s steps(2) infinite;
}
.trailer-overlay::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 25%, rgba(255, 0, 120, 0.10), transparent 55%),
    radial-gradient(ellipse at 70% 75%, rgba(0, 200, 255, 0.10), transparent 55%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
}
@keyframes trailer-scan {
  0%, 100% { opacity: 0.92; transform: translateY(0); }
  50%      { opacity: 1;    transform: translateY(1px); }
}
.trailer-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 28%, rgba(0,0,0,0.92) 100%);
  pointer-events: none;
}
.trailer-stage {
  position: relative;
  text-align: center;
  padding: 0 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 4;
}
.trailer-stage.is-in  { opacity: 1; transform: translateY(0); }
.trailer-stage.is-out { opacity: 0; transform: translateY(-20px); }
.trailer-eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.85);
  text-transform: lowercase;
  margin: 0;
  text-shadow:
    -1px 0 rgba(255, 50, 130, 0.9),
    1px 0 rgba(50, 200, 255, 0.9);
  animation: trailer-glitch-shift 0.22s steps(2, end) infinite;
}
.trailer-line {
  font-size: clamp(2rem, 6.5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 0;
  font-family: var(--font-sans, inherit);
  line-height: 1.05;
  /* glitched white — base color stark white, layered chromatic aberration,
     periodic transform/filter bursts. mix-blend-mode keeps shadows additive
     against the dark background. */
  color: #fff;
  text-shadow:
    -2px 0 rgba(255, 40, 130, 0.95),
    2px 0 rgba(40, 200, 255, 0.95),
    0 0 20px rgba(255, 255, 255, 0.35);
  animation:
    trailer-glitch-shift 0.18s steps(2, end) infinite,
    trailer-glitch-burst 5s ease-in-out infinite;
  will-change: transform, filter, clip-path;
}
.trailer-line em {
  color: #fff;
  font-style: normal;
  text-shadow:
    -3px 0 rgba(255, 0, 220, 0.95),
    3px 0 rgba(0, 230, 255, 0.95),
    0 0 28px rgba(255, 255, 255, 0.55);
}
/* continuous chromatic-aberration jitter */
@keyframes trailer-glitch-shift {
  0% {
    text-shadow:
      -2px 0 rgba(255, 40, 130, 0.95),
      2px 0 rgba(40, 200, 255, 0.95),
      0 0 18px rgba(255, 255, 255, 0.35);
  }
  100% {
    text-shadow:
      -3px 1px rgba(255, 40, 130, 0.95),
      3px -1px rgba(40, 200, 255, 0.95),
      0 0 24px rgba(255, 255, 255, 0.45);
  }
}
/* periodic harder glitch bursts — translate, skew, hue-rotate, clip slice */
@keyframes trailer-glitch-burst {
  0%, 88%, 100% {
    transform: translate(0, 0) skewX(0);
    filter: none;
    clip-path: inset(0 0 0 0);
  }
  90% {
    transform: translate(-5px, 1px) skewX(3deg);
    filter: hue-rotate(110deg) contrast(1.4);
    clip-path: inset(15% 0 55% 0);
  }
  91% {
    transform: translate(4px, -2px) skewX(-2deg);
    filter: hue-rotate(-80deg) blur(0.5px);
    clip-path: inset(45% 0 25% 0);
  }
  93% {
    transform: translate(-3px, 2px) skewX(1deg);
    filter: contrast(1.6) brightness(1.2);
    clip-path: inset(0 0 35% 40%);
  }
  95% {
    transform: translate(2px, -1px);
    filter: none;
    clip-path: inset(0 0 0 0);
  }
}
.trailer-flash {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 720px;
}
.trailer-flash img {
  width: 56px; height: 56px;
  background: #fff;
  padding: 7px;
  border-radius: 8px;
  opacity: 0;
  animation: trailer-flash 0.6s ease forwards;
}
@keyframes trailer-flash {
  from { opacity: 0; transform: scale(0.4) rotate(-8deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}
.trailer-final {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}
.trailer-final h1 {
  font-size: clamp(3.25rem, 11vw, 7rem);
  margin: 0;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: #fff;
  font-family: var(--font-sans, inherit);
  text-shadow:
    -3px 0 rgba(255, 30, 140, 0.95),
    3px 0 rgba(30, 220, 255, 0.95),
    0 0 70px rgba(255, 255, 255, 0.55);
  animation:
    trailer-glitch-shift 0.16s steps(2, end) infinite,
    trailer-glitch-burst 4s ease-in-out infinite;
  will-change: transform, filter, clip-path;
}
.trailer-final-sub {
  font-size: 0.8125rem;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.65);
  margin: 0 0 1rem;
}
.trailer-play {
  appearance: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 0.85rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
  text-shadow:
    -2px 0 rgba(255, 30, 140, 0.95),
    2px 0 rgba(30, 220, 255, 0.95),
    0 0 18px rgba(255, 255, 255, 0.4);
  animation:
    trailer-glitch-shift 0.18s steps(2, end) infinite,
    trailer-glitch-burst 5s ease-in-out infinite;
  will-change: transform, filter, clip-path;
}
.trailer-play:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
  transform: translateY(-1px);
}
.trailer-final-meta {
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.35);
  margin: 0.5rem 0 0;
}
.trailer-skip {
  position: absolute;
  top: 1.25rem;
  right: 7.75rem; /* clears the audio-mute button (right:4.5rem) and exit X (right:1.5rem) */
  z-index: 50;
  appearance: none;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  padding: 0.4rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: 2px;
}
.trailer-skip:hover { color: #fff; border-color: #fff; }
.trailer-overlay .pacbrand-exit { z-index: 51; }

/* 00000001 / binary easter egg — hacker overlay */
body[data-lang="binary"] main,
body[data-lang="binary"] footer { visibility: hidden; }
.binary-overlay {
  position: fixed; inset: 0;
  z-index: 9998;
  background: #000;
  overflow: hidden;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  color: #00ff66;
}
.binary-rain {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  display: block;
}
.binary-scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0) 0,
    rgba(0,0,0,0) 2px,
    rgba(0, 255, 102, 0.05) 2px,
    rgba(0, 255, 102, 0.05) 3px
  );
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 2;
  animation: binary-scan-flicker 0.12s steps(2) infinite;
}
@keyframes binary-scan-flicker {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}
.binary-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.95) 100%),
    radial-gradient(ellipse at 20% 30%, rgba(0, 255, 102, 0.05), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(255, 0, 100, 0.04), transparent 50%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 3;
}
.binary-grid {
  position: absolute; inset: 0;
  z-index: 4;
  pointer-events: none;
}
.binary-term {
  position: absolute;
  width: min(360px, 36vw);
  background: rgba(0, 18, 5, 0.78);
  border: 1px solid rgba(0, 255, 102, 0.35);
  font-size: 0.6875rem;
  color: #00ff66;
  text-shadow: 0 0 6px rgba(0, 255, 102, 0.6);
  padding: 0.5rem 0.65rem 0.6rem;
  line-height: 1.45;
  box-shadow:
    0 0 24px rgba(0, 255, 102, 0.18),
    inset 0 0 12px rgba(0, 255, 102, 0.05);
  backdrop-filter: blur(2px);
}
.binary-term::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(0,255,102,0.04) 2px, rgba(0,255,102,0.04) 3px);
  pointer-events: none;
}
.binary-term-tl { top: 5vh;    left: 4vw; }
.binary-term-tr { top: 7vh;    right: 4vw; }
.binary-term-br { bottom: 7vh; right: 5vw; }
.binary-term-bl {
  bottom: 5vh; left: 4vw;
  width: min(420px, 42vw);
}
.binary-term-live {
  pointer-events: auto;
  background: rgba(0, 22, 6, 0.85);
}
.binary-term-live .bt-body {
  min-height: 9rem;
  max-height: 13rem;
  overflow-y: auto;
}
.bt-prompt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid rgba(0, 255, 102, 0.18);
  padding-top: 0.45rem;
  margin-top: 0.4rem;
}
.bt-prompt-text {
  flex-shrink: 0;
  color: rgba(0, 255, 102, 0.85);
  font-size: 0.6875rem;
  text-shadow: 0 0 6px rgba(0, 255, 102, 0.6);
}
.bt-input {
  flex: 1;
  appearance: none;
  background: transparent;
  border: 0;
  outline: none;
  color: #00ff66;
  font-family: inherit;
  font-size: 0.6875rem;
  caret-color: #00ff66;
  text-shadow: 0 0 6px rgba(0, 255, 102, 0.6);
}
.bt-input::placeholder { color: rgba(0, 255, 102, 0.35); }
.bt-head {
  font-size: 0.625rem;
  color: rgba(0, 255, 102, 0.65);
  border-bottom: 1px solid rgba(0, 255, 102, 0.2);
  padding-bottom: 0.3rem;
  margin-bottom: 0.4rem;
  letter-spacing: 0.12em;
}
.bt-body {
  margin: 0;
  white-space: pre-wrap;
  min-height: 11rem;
  word-break: break-word;
  font-family: inherit;
  font-size: 0.6875rem;
}
.binary-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  text-align: center;
  pointer-events: none;
}
.binary-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  color: rgba(0, 255, 102, 0.75);
  text-shadow: 0 0 8px rgba(0, 255, 102, 0.6);
}
.binary-title {
  font-size: clamp(2rem, 7vw, 5rem);
  letter-spacing: 0.12em;
  margin: 0;
  color: #00ff66;
  text-shadow:
    -3px 0 rgba(255, 0, 100, 0.85),
    3px 0 rgba(0, 200, 255, 0.85),
    0 0 24px rgba(0, 255, 102, 0.7),
    0 0 60px rgba(0, 255, 102, 0.4);
  animation:
    binary-glitch 0.16s steps(2, end) infinite,
    binary-burst 4.5s ease-in-out infinite,
    binary-pulse 2.4s ease-in-out infinite;
  will-change: transform, filter, clip-path;
}
@keyframes binary-glitch {
  0%   { text-shadow: -3px 0 rgba(255,0,100,0.85), 3px 0 rgba(0,200,255,0.85), 0 0 24px rgba(0,255,102,0.7), 0 0 60px rgba(0,255,102,0.4); }
  100% { text-shadow: -4px 1px rgba(255,0,100,0.85), 4px -1px rgba(0,200,255,0.85), 0 0 28px rgba(0,255,102,0.8), 0 0 70px rgba(0,255,102,0.5); }
}
@keyframes binary-burst {
  0%, 88%, 100% { transform: translate(0,0) skewX(0); filter: none; clip-path: inset(0 0 0 0); }
  90%  { transform: translate(-6px, 1px) skewX(3deg); filter: hue-rotate(120deg) contrast(1.5); clip-path: inset(20% 0 55% 0); }
  92%  { transform: translate(5px, -2px) skewX(-2deg); filter: hue-rotate(-100deg) blur(0.5px); clip-path: inset(40% 0 30% 0); }
  94%  { transform: translate(-3px, 2px); filter: contrast(1.7) brightness(1.2); clip-path: inset(0 0 35% 45%); }
  96%  { transform: translate(2px, -1px); filter: none; clip-path: inset(0 0 0 0); }
}
@keyframes binary-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.85; }
}
.binary-sub {
  margin: 0.6rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: rgba(0, 255, 102, 0.6);
  text-shadow: 0 0 8px rgba(0, 255, 102, 0.5);
}
.binary-status {
  margin: 0.5rem 0 0;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: rgba(0, 255, 102, 0.45);
}
/* 'no stars in the city' easter egg — dreamy night cityscape */
body[data-lang="nostars"] main,
body[data-lang="nostars"] footer { visibility: hidden; }
.nostars-overlay {
  position: fixed; inset: 0;
  z-index: 9998;
  overflow: hidden;
  font-family: var(--font-sans, system-ui, sans-serif);
  color: #fff;
  background: #02030a;
}
.nostars-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 110%, rgba(180, 60, 140, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse 100% 70% at 80% 90%,  rgba(60, 80, 200, 0.20) 0%, transparent 60%),
    linear-gradient(180deg, #050816 0%, #0a0d28 35%, #1a1740 60%, #2a1538 85%, #361029 100%);
  z-index: 1;
}
.nostars-glow {
  position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 110%; height: 50%;
  background: radial-gradient(ellipse at center bottom, rgba(255, 200, 130, 0.18) 0%, rgba(255,150,200,0.08) 30%, transparent 70%);
  pointer-events: none;
  z-index: 2;
  /* the city's own glow washes the sky — that's why no stars */
}
.nostars-stars {
  position: absolute; inset: 0;
  z-index: 3;
  pointer-events: none;
}
.nostars-star {
  position: absolute;
  width: 2px; height: 2px;
  background: #fff;
  border-radius: 50%;
  animation: nostars-twinkle ease-in-out infinite;
  box-shadow: 0 0 4px rgba(255,255,255,0.5);
}
@keyframes nostars-twinkle {
  0%, 100% { opacity: 0.05; transform: scale(0.6); }
  50%      { opacity: 0.4;  transform: scale(1); }
}
.nostars-haze {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 4px,
      rgba(255,255,255,0.005) 4px,
      rgba(255,255,255,0.005) 5px
    );
  pointer-events: none;
  z-index: 4;
  mix-blend-mode: overlay;
}
.nostars-skyline {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 28vh;
  z-index: 5;
  filter: drop-shadow(0 -10px 20px rgba(0,0,0,0.6));
}
.nostars-stage {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  padding: 8vh 1.5rem 38vh;
  gap: 1rem;
}
.nostars-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.4em;
  color: rgba(255, 220, 240, 0.55);
  margin: 0;
  text-transform: lowercase;
}
.nostars-title {
  font-family: var(--font-sans, system-ui, serif);
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  font-weight: 200;
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.05;
  max-width: calc(100vw - 24rem);
  color: #fff;
  text-shadow: 0 0 30px rgba(255, 200, 230, 0.45), 0 2px 12px rgba(0, 0, 0, 0.5);
}
.nostars-title span { display: inline-block; }
.nostars-title span:first-child {
  animation: nostars-fade-in 1.4s 0.2s ease both;
}
.nostars-title span:last-child {
  animation: nostars-fade-in 1.4s 0.7s ease both;
}
@keyframes nostars-fade-in {
  from { opacity: 0; transform: translateY(10px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
.nostars-track {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  color: rgba(255, 235, 245, 0.78);
  margin: 0.4rem 0 1.5rem;
  transition: opacity 0.5s ease;
  min-height: 1.5rem;
}
.nostars-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.nostars-btn {
  appearance: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.nostars-btn:hover { background: rgba(255,255,255,0.15); border-color: #fff; color: #fff; transform: translateY(-1px); }
.nostars-btn-spotify { box-shadow: 0 0 30px rgba(30, 215, 96, 0.18); }
.nostars-btn-spotify:hover { border-color: #1ed760; }
.nostars-btn-youtube  { box-shadow: 0 0 30px rgba(255, 80, 80, 0.18); }
.nostars-btn-youtube:hover  { border-color: #ff5050; }
.nostars-quote {
  position: absolute;
  bottom: calc(28vh + 1.25rem);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif, Georgia, serif);
  font-style: italic;
  font-size: 0.9375rem;
  color: rgba(255, 220, 240, 0.55);
  margin: 0;
  width: max-content;
  max-width: 90vw;
  text-align: center;
  z-index: 6;
}
.nostars-overlay .nostars-exit { z-index: 51; }

/* spotify player pinned right-side, glassy panel */
.nostars-player {
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  z-index: 7;
  width: 320px;
  max-width: calc(100vw - 4rem);
  padding: 0.6rem 0.6rem 0.5rem;
  background: rgba(10, 10, 28, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  animation: nostars-player-in 1s 0.6s ease both;
}
@keyframes nostars-player-in {
  from { opacity: 0; transform: translate(20px, -50%); }
  to   { opacity: 1; transform: translate(0,    -50%); }
}
.nostars-player-label {
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.28em;
  color: rgba(255, 220, 240, 0.65);
  text-transform: lowercase;
  padding-left: 0.25rem;
}
.nostars-player-frame {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
}

@media (max-width: 760px) {
  .nostars-player {
    position: absolute;
    top: auto;
    bottom: calc(28vh + 4rem);
    right: 50%;
    transform: translateX(50%);
    width: min(320px, calc(100vw - 2rem));
    animation: nostars-player-in-mobile 0.8s 0.5s ease both;
  }
  @keyframes nostars-player-in-mobile {
    from { opacity: 0; transform: translate(50%, 20px); }
    to   { opacity: 1; transform: translate(50%, 0); }
  }
  .nostars-stage { padding-bottom: calc(28vh + 28rem); }
  .nostars-title { max-width: 100%; }
  .nostars-quote { display: none; }
}
@media (max-width: 640px) {
  .nostars-actions { flex-direction: column; }
}

/* small subtle moon centered at top */
.nostars-moon {
  position: absolute;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  appearance: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: radial-gradient(circle at 32% 30%, #ffffff 0%, #ececec 50%, #b8b8b8 100%);
  cursor: pointer;
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.55),
    0 0 30px rgba(220, 230, 255, 0.22);
  opacity: 0.75;
  animation: nostars-moon-pulse 3.5s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}
.nostars-moon:hover {
  transform: translateX(-50%) scale(1.12);
  opacity: 1;
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.85),
    0 0 50px rgba(220, 230, 255, 0.4);
  filter: brightness(1.1);
}
.nostars-moon-craters {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 65% 38%, rgba(0,0,0,0.12) 0 6%, transparent 7%),
    radial-gradient(circle at 30% 70%, rgba(0,0,0,0.10) 0 4%, transparent 5%),
    radial-gradient(circle at 72% 76%, rgba(0,0,0,0.08) 0 3%, transparent 4%);
  pointer-events: none;
}
@keyframes nostars-moon-pulse {
  0%, 100% { opacity: 0.7; box-shadow:
      0 0 12px rgba(255, 255, 255, 0.45),
      0 0 30px rgba(220, 230, 255, 0.20); }
  50%      { opacity: 0.95; box-shadow:
      0 0 18px rgba(255, 255, 255, 0.7),
      0 0 50px rgba(220, 230, 255, 0.32); }
}

/* warp state — city peels away, moon flares + fades */
.nostars-overlay.is-warping .nostars-stage,
.nostars-overlay.is-warping .nostars-skyline,
.nostars-overlay.is-warping .nostars-haze,
.nostars-overlay.is-warping .nostars-glow,
.nostars-overlay.is-warping .nostars-player {
  animation: nostars-warp-down 1.2s ease-in forwards;
}
.nostars-overlay.is-warping .nostars-moon {
  animation: nostars-moon-warp 1.2s ease-in forwards;
}
.nostars-overlay.is-warping .nostars-stars {
  animation: nostars-stars-stretch 1.2s ease-in forwards;
}
@keyframes nostars-warp-down {
  to { opacity: 0; transform: translateY(50px) scale(0.96); }
}
@keyframes nostars-moon-warp {
  0%   { transform: translateX(-50%) scale(1);   filter: brightness(1);   opacity: 1; }
  50%  { transform: translateX(-50%) scale(2.6); filter: brightness(2.2); opacity: 1; }
  100% { transform: translateX(-50%) scale(6);   filter: brightness(3.5); opacity: 0; }
}
@keyframes nostars-stars-stretch {
  to { transform: scaleY(8) translateY(-30%); opacity: 0; }
}

/* return-from-space — smooth reverse animations into the city */
.nostars-overlay.is-returning .nostars-stage,
.nostars-overlay.is-returning .nostars-skyline,
.nostars-overlay.is-returning .nostars-haze,
.nostars-overlay.is-returning .nostars-glow,
.nostars-overlay.is-returning .nostars-player {
  animation: nostars-warp-up 1s ease-out both;
}
.nostars-overlay.is-returning .nostars-moon {
  animation: nostars-moon-return 1s ease-out both;
}
.nostars-overlay.is-returning .nostars-stars {
  animation: nostars-stars-restore 1s ease-out both;
}
@keyframes nostars-warp-up {
  from { opacity: 0; transform: translateY(50px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes nostars-moon-return {
  from { transform: translateX(-50%) scale(6); opacity: 0; filter: brightness(3.5); }
  to   { transform: translateX(-50%) scale(1); opacity: 0.75; filter: brightness(1); }
}
@keyframes nostars-stars-restore {
  from { transform: scaleY(8) translateY(-30%); opacity: 0; }
  to   { transform: scaleY(1) translateY(0); opacity: 1; }
}

/* fade-out the space scene before unhiding it */
.nostars-space.is-fading-out {
  animation: nostars-space-out 0.6s ease-in forwards;
}
@keyframes nostars-space-out {
  to { opacity: 0; }
}

/* ---------- vaporwave easter egg — retro sunset, perspective grid, scanlines ---------- */
body[data-lang="vaporwave"] main,
body[data-lang="vaporwave"] footer { visibility: hidden; }
.vapor-overlay {
  position: fixed; inset: 0;
  z-index: 9998;
  overflow: hidden;
  font-family: var(--font-sans, system-ui, sans-serif);
  color: #fff;
  background: #0d0428;
}
.vapor-sky {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    #0d0428 0%,
    #2b1055 25%,
    #6f1875 45%,
    #c92d7e 60%,
    #ff4f97 72%,
    #ff8e72 82%,
    #fffb96 92%,
    #ffd86c 100%
  );
  z-index: 1;
}
.vapor-stars {
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
}
.vapor-stars span {
  position: absolute;
  width: 2px; height: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255,255,255,0.7);
  animation: vapor-twinkle ease-in-out infinite;
}
@keyframes vapor-twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.5); }
  50%      { opacity: 0.85; transform: scale(1); }
}

/* sliced sun rising from the grid horizon */
.vapor-sun {
  position: absolute;
  bottom: 38vh;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(14rem, 28vmin, 22rem);
  height: clamp(14rem, 28vmin, 22rem);
  border-radius: 50%;
  background: linear-gradient(180deg, #fffb96 0%, #ffd86c 30%, #ff71ce 65%, #b967ff 100%);
  box-shadow:
    0 0 80px rgba(255, 113, 206, 0.65),
    0 0 200px rgba(185, 103, 255, 0.35),
    0 0 320px rgba(255, 142, 114, 0.25);
  z-index: 3;
  animation: vapor-sun-pulse 4.5s ease-in-out infinite;
}
@keyframes vapor-sun-pulse {
  0%, 100% { box-shadow:
      0 0 80px rgba(255,113,206,0.65),
      0 0 200px rgba(185,103,255,0.35),
      0 0 320px rgba(255,142,114,0.25); }
  50%      { box-shadow:
      0 0 100px rgba(255,113,206,0.85),
      0 0 240px rgba(185,103,255,0.45),
      0 0 380px rgba(255,142,114,0.30); }
}
.vapor-sun-stripes {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 18px,
    rgba(13,4,40,0.55) 18px,
    rgba(13,4,40,0.55) 22px
  );
  -webkit-mask: linear-gradient(180deg, transparent 50%, #000 55%);
          mask: linear-gradient(180deg, transparent 50%, #000 55%);
}

/* distant pixel mountain silhouette behind the grid */
.vapor-mountains {
  position: absolute;
  bottom: 38vh;
  left: 0; right: 0;
  height: 8vh;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.4));
}
.vapor-mountains svg { width: 100%; height: 100%; display: block; }

/* the iconic perspective grid floor */
.vapor-grid-wrap {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 38vh;
  z-index: 5;
  perspective: 380px;
  perspective-origin: 50% -10%;
  overflow: hidden;
}
.vapor-grid {
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 200%;
  transform: rotateX(60deg);
  transform-origin: 50% 0%;
  background-image:
    linear-gradient(to right,  rgba(255, 113, 206, 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 113, 206, 0.55) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: vapor-grid-scroll 1.5s linear infinite;
}
@keyframes vapor-grid-scroll {
  from { background-position: 0 0; }
  to   { background-position: 0 60px; }
}
.vapor-grid-fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,4,40,0.55) 0%, transparent 18%, transparent 100%);
  pointer-events: none;
}

/* center title block */
.vapor-content {
  position: relative;
  z-index: 6;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2vh 1.5rem 42vh;
  gap: 0.9rem;
  pointer-events: none;
}
.vapor-eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  color: rgba(255, 240, 250, 0.85);
  text-shadow: 0 0 14px rgba(255, 113, 206, 0.7);
  text-transform: lowercase;
}
.vapor-title {
  margin: 0;
  font-family: 'Times New Roman', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #fffb96 0%, #ff71ce 50%, #01cdfe 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 40px rgba(255, 113, 206, 0.6),
    0 0 80px rgba(1, 205, 254, 0.35);
  animation: vapor-flicker 6s ease-in-out infinite;
}
@keyframes vapor-flicker {
  0%, 100% { filter: brightness(1) hue-rotate(0deg); }
  47%      { filter: brightness(1) hue-rotate(0deg); }
  48%      { filter: brightness(1.4) hue-rotate(20deg); }
  49%      { filter: brightness(1) hue-rotate(0deg); }
  72%      { filter: brightness(1) hue-rotate(0deg); }
  73%      { filter: brightness(0.85) hue-rotate(-15deg); }
  74%      { filter: brightness(1) hue-rotate(0deg); }
}
.vapor-sub {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: rgba(1, 205, 254, 0.95);
  text-shadow: 0 0 18px rgba(1, 205, 254, 0.55);
}
.vapor-quote {
  margin: 0.4rem 0 0;
  font-family: 'Times New Roman', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: rgba(255, 240, 250, 0.7);
}

/* CRT scanlines + vignette */
.vapor-scanlines {
  position: absolute; inset: 0;
  z-index: 9;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(0,0,0,0.18) 0,
    rgba(0,0,0,0.18) 2px,
    transparent 2px,
    transparent 4px
  );
  mix-blend-mode: multiply;
  animation: vapor-scan-shift 8s linear infinite;
}
@keyframes vapor-scan-shift {
  from { background-position: 0 0; }
  to   { background-position: 0 8px; }
}
.vapor-vignette {
  position: absolute; inset: 0;
  z-index: 10;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 50%, rgba(0,0,0,0.5) 100%);
}

/* VHS HUD */
.vapor-vhs {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 11;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: #fff;
  text-shadow: 0 0 8px rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.vapor-vhs-rec {
  color: #ff3b3b;
  font-size: 0.85rem;
  animation: vapor-rec-blink 1.2s steps(2, end) infinite;
}
@keyframes vapor-rec-blink {
  50% { opacity: 0; }
}
.vapor-vhs-time { font-variant-numeric: tabular-nums; }

/* exit + mute buttons sit above scanlines */
.vapor-overlay .vapor-exit { z-index: 51; }
.vapor-overlay .vapor-mute {
  position: absolute;
  top: 1.25rem;
  right: 4.5rem;
  z-index: 51;
  border-color: rgba(255, 113, 206, 0.6);
  color: rgba(255, 200, 230, 0.95);
  background: rgba(43, 16, 85, 0.55);
}
.vapor-overlay .vapor-mute:hover {
  color: #fff;
  border-color: #ff71ce;
  background: rgba(255, 113, 206, 0.18);
}

@media (max-width: 760px) {
  .vapor-vhs { font-size: 0.65rem; top: 1rem; left: 1rem; }
  .vapor-content { padding-bottom: 44vh; }
}

/* ---------- xp easter egg — full-screen win32.run windows xp simulator ---------- */
body[data-lang="xp"] main,
body[data-lang="xp"] footer { visibility: hidden; }
.xp-overlay {
  position: fixed; inset: 0;
  z-index: 9998;
  overflow: hidden;
  background: #008080;
}
.xp-frame {
  position: absolute; inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.xp-overlay .xp-exit {
  z-index: 51;
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.xp-overlay .xp-exit:hover {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}

/* fullscreen toggle — same look as the exit X, just to the left */
.xp-overlay .xp-fullscreen {
  position: absolute;
  top: 1.25rem;
  right: 4.5rem;
  z-index: 51;
  appearance: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.xp-overlay .xp-fullscreen:hover {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}
.xp-overlay .xp-fullscreen .icon-in { display: none; }
.xp-overlay.is-fullscreen .xp-fullscreen .icon-out { display: none; }
.xp-overlay.is-fullscreen .xp-fullscreen .icon-in { display: block; }

/* ---------- record player easter egg — black turntable on white, spotify side ---------- */
body[data-lang="recordplayer"] main,
body[data-lang="recordplayer"] footer { visibility: hidden; }
.rec-overlay {
  position: fixed; inset: 0;
  z-index: 9998;
  overflow: hidden;
  background: #fafafa;
  font-family: var(--font-sans, system-ui, sans-serif);
  color: #0a0a0a;
}
.rec-overlay .rec-exit {
  z-index: 51;
  border-color: #0a0a0a;
  color: #0a0a0a;
  background: #fff;
}
.rec-overlay .rec-exit:hover {
  background: #0a0a0a;
  color: #fff;
}
.rec-stage {
  position: absolute; inset: 0;
}

/* flat top-down turntable, centered in the viewport */
.rec-player {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26rem;
  height: 26rem;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.18));
}
.rec-base {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #1c1c1c 0%, #050505 100%);
  border-radius: 1rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.6);
}
.rec-platter {
  position: absolute;
  top: 50%; left: 50%;
  width: 22rem; height: 22rem;
  border-radius: 50%;
  background:
    radial-gradient(circle, #d8d8d8 70%, #888 88%, #444 100%);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}
.rec-vinyl {
  position: absolute;
  top: 50%; left: 50%;
  width: 21rem; height: 21rem;
  border-radius: 50%;
  background:
    repeating-radial-gradient(
      circle,
      #050505 0,
      #050505 3px,
      #1a1a1a 4px,
      #050505 5px
    );
  transform: translate(-50%, -50%) rotate(0deg);
  animation: rec-spin 3.5s linear infinite;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}
@keyframes rec-spin {
  from { transform: translate(-50%, -50%) rotate(0deg);   }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
.rec-grooves {
  position: absolute; inset: 0;
  border-radius: 50%;
  background:
    repeating-radial-gradient(
      circle,
      transparent 0,
      transparent 6px,
      rgba(255, 255, 255, 0.04) 7px,
      transparent 8px
    );
  pointer-events: none;
}

/* circular vinyl label with the album cover inscribed as a square — the
   corners of the square just kiss the perimeter so nothing gets clipped */
.rec-label {
  position: absolute;
  top: 50%; left: 50%;
  width: 7.5rem; height: 7.5rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  background: radial-gradient(circle, #1a0710 0%, #050304 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.15);
}
.rec-label-art {
  width: 70%;
  height: 70%;
  object-fit: cover;
  display: block;
  border-radius: 2px;
  transition: opacity 0.25s ease;
}
.rec-spindle {
  position: absolute;
  top: 50%; left: 50%;
  width: 0.45rem; height: 0.45rem;
  border-radius: 50%;
  background: radial-gradient(circle, #ddd, #555);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}

/* tonearm rig — pivot at back-right corner, arm reaches across to the record */
.rec-arm-rig {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 1.6rem;
  height: 1.6rem;
}
.rec-arm-pivot {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f0f0f0 0%, #999 60%, #555 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.rec-arm-shaft {
  position: absolute;
  top: 0.6rem;
  left: 0.65rem;
  width: 0.32rem;
  height: 11rem;
  background: linear-gradient(180deg, #e8e8e8 0%, #888 100%);
  border-radius: 4px;
  transform-origin: top center;
  transform: rotate(45deg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
/* the cartridge sits at the bottom of the shaft so it rotates with it,
   bent slightly inward like a real tonearm headshell */
.rec-arm-head {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 1.4rem;
  height: 0.7rem;
  background: linear-gradient(180deg, #2a2a2a 0%, #0a0a0a 100%);
  border-radius: 0.15rem;
  transform-origin: top center;
  transform: translateX(-50%) rotate(-20deg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* spotify panel pinned just outside the player on the right */
.rec-side {
  position: absolute;
  top: 50%;
  left: calc(50% + 14rem);
  transform: translateY(-50%);
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.rec-side-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: lowercase;
  color: #555;
  padding-left: 0.25rem;
}

/* left panel: switch record picker, mirrored close to the player */
.rec-left {
  position: absolute;
  top: 50%;
  right: calc(50% + 14rem);
  transform: translateY(-50%);
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* "switch record" button + dropdown */
.rec-switch-btn {
  appearance: none;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: #0a0a0a;
  background: #fff;
  border: 1px solid #0a0a0a;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.rec-switch-btn:hover {
  background: #0a0a0a;
  color: #fff;
}
.rec-switcher {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #0a0a0a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.rec-switcher[hidden] { display: none; }
.rec-record {
  appearance: none;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: #0a0a0a;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #ececec;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.rec-record:last-child { border-bottom: 0; }
.rec-record:hover { background: #f4f4f4; }
.rec-record.is-active {
  background: #0a0a0a;
  color: #fff;
}
.rec-spotify {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

/* on narrower viewports the side-by-side close layout doesn't fit — stack
   the switcher above and the spotify embed below the player */
@media (max-width: 1100px) {
  .rec-left {
    top: 1.5rem;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: min(240px, calc(100vw - 2rem));
    align-items: center;
  }
  .rec-side {
    top: auto;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(320px, calc(100vw - 2rem));
  }
}

/* shrink the deck on phones */
@media (max-width: 880px) {
  .rec-player {
    width: 18rem;
    height: 18rem;
    top: 50%;
  }
  .rec-platter { width: 15rem; height: 15rem; }
  .rec-vinyl { width: 14rem; height: 14rem; }
  .rec-label { width: 5rem; height: 5rem; }
  .rec-arm-shaft { height: 8rem; }
}

/* space scene reveal — full-screen black void with floating spaceman */
.nostars-space {
  position: absolute;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 55%, #1a1438 0%, #06081a 55%, #000 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: nostars-space-in 1.2s ease-out both;
}
.nostars-space[hidden] { display: none; }
@keyframes nostars-space-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.nostars-space-stars {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
}
.nostars-space-stars span {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(255,255,255,0.6);
  animation: nostars-twinkle ease-in-out infinite;
}
.nostars-spaceman {
  position: relative;
  z-index: 2;
  width: min(46vmin, 22rem);
  filter:
    drop-shadow(0 0 60px rgba(245, 213, 87, 0.45))
    drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
  animation:
    nostars-float 6s ease-in-out infinite,
    nostars-spaceman-in 1.4s 0.4s ease-out both;
}
.nostars-spaceman img { width: 100%; height: auto; display: block; border-radius: 4px; }
@keyframes nostars-float {
  0%, 100% { transform: translateY(-10px) rotate(-1.5deg); }
  50%      { transform: translateY(10px)  rotate(1.5deg);  }
}
@keyframes nostars-spaceman-in {
  from { opacity: 0; transform: translateY(40px) scale(0.92); }
  to   { opacity: 1; transform: translateY(-10px) scale(1); }
}
.nostars-space-quote {
  position: relative;
  z-index: 2;
  margin: 2rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: rgba(255, 240, 200, 0.85);
  text-transform: lowercase;
  text-align: center;
  animation: nostars-fade-in 1.4s 1s ease both;
}
.nostars-back {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  appearance: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  animation: nostars-fade-in 1.4s 1.4s ease both;
}
.nostars-back:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 760px) {
  .nostars-moon { width: 1.75rem; height: 1.75rem; top: 1rem; }
}

.binary-overlay .binary-exit {
  z-index: 51;
  border-color: rgba(0, 255, 102, 0.5);
  color: rgba(0, 255, 102, 0.85);
  background: rgba(0, 18, 5, 0.7);
}
.binary-overlay .binary-exit:hover {
  color: #fff;
  border-color: #00ff66;
  background: rgba(0, 255, 102, 0.1);
}
.binary-mute {
  position: absolute;
  top: 1.25rem;
  right: 4.5rem;
  z-index: 51;
  appearance: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 102, 0.5);
  background: rgba(0, 18, 5, 0.7);
  color: rgba(0, 255, 102, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.binary-mute:hover {
  color: #fff;
  border-color: #00ff66;
  background: rgba(0, 255, 102, 0.1);
}
.binary-mute .icon-off { display: none; }
.binary-mute.is-muted .icon-on  { display: none; }
.binary-mute.is-muted .icon-off { display: block; }
.binary-mute.is-muted { color: rgba(255, 80, 110, 0.85); border-color: rgba(255, 80, 110, 0.5); }

/* sudden glitch burst (triggered by `glitch` command) */
.binary-overlay.is-glitching {
  animation: binary-shake 0.55s steps(8) 1;
}
.binary-overlay.is-glitching .binary-title {
  animation:
    binary-glitch 0.05s steps(2, end) infinite,
    binary-burst 0.5s ease-in-out 1;
}
@keyframes binary-shake {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-3px, 1px); }
  25% { transform: translate(2px, -2px); }
  40% { transform: translate(-2px, 2px); }
  60% { transform: translate(3px, 1px); }
  80% { transform: translate(-1px, -1px); }
}
/* `boom` red flash */
.binary-boom {
  position: absolute;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 60, 60, 0.85) 0%, rgba(255, 0, 0, 0) 70%);
  animation: binary-boom-fx 0.7s ease-out forwards;
}
@keyframes binary-boom-fx {
  0%   { opacity: 1; transform: scale(0.6); }
  40%  { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.2); }
}
@media (max-width: 720px) {
  .binary-term { width: 88vw; left: 6vw; right: auto; }
  .binary-term-tl { top: 4vh; }
  .binary-term-tr { top: 32vh; }
  .binary-term-br { top: 60vh; bottom: auto; }
}

/* google translate artifact suppression — we drive it via cookie + reload,
   so every visible piece of google's UI gets nuked. uses both class and
   element-attribute selectors because google adds them at different stages
   and we want to win the race against their stylesheet. */
#google_translate_element,
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-te-menu-frame,
.goog-te-spinner-pos,
.goog-te-gadget,
.goog-te-gadget *,
.goog-te-combo,
.goog-tooltip,
.goog-tooltip:hover,
.goog-tooltip-popup,
[id^="goog-gt-"],
body > .skiptranslate { display: none !important; }
/* google sets body { top: 40px } to make room for the banner — undo it */
body { top: 0 !important; position: static !important; }
html { margin-top: 0 !important; }
/* kill the yellow text highlights they apply to translated nodes */
.goog-text-highlight { background: transparent !important; box-shadow: none !important; }
/* google wraps translated text in <font> tags with weird vertical-align */
font[style] { vertical-align: inherit !important; background: inherit !important; }
.menu-trigger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.9rem;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.menu-trigger:hover::after,
.menu-trigger[aria-expanded="true"]::after { transform: scaleX(1); }

.caret {
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.2s ease;
}
.menu-trigger[aria-expanded="true"] .caret {
  transform: rotate(-135deg) translate(-1px, -1px);
}

.menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 22rem;
  background: var(--bg);
  border: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  padding: 0.375rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 60;
}
.menu--dept { min-width: 26rem; }
.menu::before {
  content: "";
  position: absolute;
  top: -0.75rem;
  left: 0;
  right: 0;
  height: 0.75rem;
}
.has-menu:hover .menu,
.has-menu:focus-within .menu,
.menu-trigger[aria-expanded="true"] + .menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.menu a {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  row-gap: 0.125rem;
  align-items: baseline;
  padding: 0.625rem 0.75rem;
  font-family: var(--font-mono);
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.menu a:hover,
.menu a:focus-visible {
  background: #fafafa;
  border-color: var(--line-soft);
  outline: none;
}
.m-num {
  grid-row: 1 / span 2;
  font-size: 0.6875rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  align-self: center;
}
.m-title {
  font-size: 0.875rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.m-desc {
  font-size: 0.6875rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.menu a.m-all {
  border-top: 1px solid var(--line-soft);
  margin-top: 0.25rem;
  padding-top: 0.875rem;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
}
.menu a.m-all .m-title {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: var(--muted);
}
.menu a.m-all:hover .m-title { color: var(--ink); }

/* menu sections — by department / by craft */
.m-section {
  display: flex;
  flex-direction: column;
  padding: 0.625rem 0.25rem 0.5rem;
}
.m-section + .m-section {
  border-top: 1px solid var(--line-soft);
  margin-top: 0.125rem;
  padding-top: 0.875rem;
}
.m-section-title {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: lowercase;
  padding: 0 0.625rem 0.625rem;
}

/* department pills — flat 3-column grid (used inside .menu--dept) */
.menu .m-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.menu .m-pill[hidden] { display: none !important; }
.menu .m-pill {
  display: flex;
  align-items: center;
  padding: 0.625rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: var(--bg);
  border: 0;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: normal;
  overflow: visible;
  word-break: break-word;
}
.menu .m-pill:hover,
.menu .m-pill:focus-visible {
  background: var(--ink);
  color: var(--bg);
  outline: none;
}
.menu .m-pill-wide { grid-column: 1 / -1; }

/* 2-column variant for shorter pill clusters (e.g. value > building blocks) */
.menu .m-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* 1-column variant for short vertical lists (e.g. markets) */
.menu .m-grid-1 { grid-template-columns: 1fr; }
/* when two grids stack, drop the inner border so they share a single 1px line */
.menu .m-grid + .m-grid { border-top: 0; }

/* login button at the right end of nav */
.nav-links a.nav-login {
  border: 1px solid var(--ink);
  padding: 0.4rem 0.875rem;
  letter-spacing: 0.02em;
  margin-left: 0.5rem;
  color: var(--ink);
  background: var(--bg);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.nav-links a.nav-login:hover,
.nav-links a.nav-login:focus-visible {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  outline: none;
}
.nav-links a.nav-login::after { display: none; }

@media (max-width: 880px) {
  .nav-links { gap: 1rem; }
  .nav-links > a[href*="brands"],
  .nav-links > a[href*="enterprise"] { display: none; }
}

/* ===== mobile nav (hamburger + slide-down drawer) ===== */
.nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0.6rem;
  margin: -0.6rem;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.18s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }

  .nav { padding: 0.875rem var(--pad-x); }

  /* the inline nav becomes a slide-down full-width drawer */
  .nav-links {
    position: fixed;
    top: var(--nav-h, 56px);
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--nav-h, 56px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line-soft);
    padding: 0.5rem var(--pad-x) 1.25rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.28s ease, opacity 0.2s ease, visibility 0s linear 0.28s;
    z-index: 49;
    font-size: 1rem;
    -webkit-overflow-scrolling: touch;
  }
  .nav.is-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.28s ease, opacity 0.2s ease, visibility 0s linear 0s;
  }

  /* show every nav-link including the ones that were hidden at 880/640 */
  .nav-links > a,
  .nav-links > .has-menu { display: block; }

  .nav-links > a {
    padding: 1rem 0.25rem;
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink);
  }
  .nav-links > a::after { display: none; }

  .nav-links > .has-menu {
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-links .menu-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 1rem 0.25rem;
    font-size: 1rem;
    color: var(--ink);
  }
  .nav-links .menu-trigger::after { display: none; } /* drop desktop hover underline */

  /* icon trigger (language) gets normal padding so it lines up like the rest */
  .nav-links .menu-trigger-icon {
    width: 100%;
    height: auto;
    justify-content: flex-start;
    gap: 0.625rem;
  }
  .nav-links .menu-trigger-mobile-label {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--ink);
    margin-right: auto;
    text-transform: lowercase;
  }

  /* dropdown menus become inline panels under their trigger.
     using display: none/flex (instead of opacity/max-height transition)
     so the desktop `pointer-events: none + transform translate(-50%)`
     base rules can't leave the menu invisible-but-laid-out. */
  .nav-links .menu {
    position: static;
    transform: none !important;
    box-shadow: none;
    border: 0;
    background: var(--bg-soft, #f5f5f4);
    padding: 0.5rem;
    margin: 0 0 0.5rem;
    width: 100%;
    min-width: 0 !important;
    max-height: 60vh;
    overflow-y: auto;
    border-radius: 4px;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    display: none;
  }
  .nav-links .menu-trigger[aria-expanded="true"] + .menu,
  .nav-links .menu.mobile-open {
    display: flex !important;
    flex-direction: column;
  }
  /* belt-and-suspenders for the language list — keep it visible when its
     parent menu is open, even if a stale [hidden] sneaked through */
  .nav-links .menu.mobile-open .lang-list { display: grid !important; }
  .nav-links .menu.mobile-open .lang-list[hidden] { display: grid !important; }
  .nav-links .menu .m-grid {
    grid-template-columns: 1fr !important;
    gap: 1px;
  }
  .nav-links .menu .m-pill { padding: 0.75rem 0.875rem; }

  /* login pinned bottom of drawer for thumb access */
  .nav-links a.nav-login {
    margin-top: 0.75rem;
    padding: 0.875rem 1rem;
    text-align: center;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--bg);
    border-radius: 999px;
  }

  body.nav-open { overflow: hidden; }
}

/* layout */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section {
  padding: clamp(4rem, 10vw, 7rem) 0;
  border-top: 1px solid var(--line-soft);
}

.section-head {
  display: grid;
  grid-template-columns: 3rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.5rem;
  row-gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 3rem;
}
.section-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  grid-row: 1;
}
.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  grid-column: 2;
  grid-row: 1;
}
.section-note {
  grid-column: 2;
  grid-row: 2;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  max-width: 38rem;
}

@media (max-width: 640px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head h2,
  .section-note { grid-column: 1; }
}

/* hero */
.hero {
  padding: clamp(4rem, 11vw, 7rem) 0 clamp(4rem, 10vw, 7rem);
}
.hero-inner { max-width: 56rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  border: 1px solid var(--line-soft);
  padding: 0.375rem 0.75rem;
  margin-bottom: 2rem;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1ea672;
  box-shadow: 0 0 0 3px rgba(30, 166, 114, 0.15);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.tagline {
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.sub {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.6;
  max-width: 38rem;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:hover {
  background: var(--bg);
  color: var(--ink);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-soft);
}
.btn.ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 2rem;
  margin: 0;
  max-width: 38rem;
}
.meta > div { display: flex; flex-direction: column; gap: 0.375rem; }
.meta dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: lowercase;
}
.meta dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink);
}

@media (max-width: 540px) {
  .meta { grid-template-columns: 1fr; gap: 1rem; }
}

/* grids */
.grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}
.work { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .work, .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .work, .brands { grid-template-columns: 1fr; }
}

.card,
.brand-card {
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 2rem 1.75rem;
  background: var(--bg);
  transition: background 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 220px;
}
.card:hover,
.brand-card:hover {
  background: #fafafa;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.card h3 {
  font-size: 1.125rem;
  letter-spacing: -0.015em;
}
.card p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.card-foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

/* license */
.license-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 900px) {
  .license-grid { grid-template-columns: 1fr; }
}

.license-card {
  border: 1px solid var(--line-soft);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color 0.2s ease;
}
.license-card:hover { border-color: var(--ink); }
.license-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.license-card h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
}
.pill {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  padding: 0.25rem 0.5rem;
}
.license-card p {
  font-size: 0.9375rem;
  line-height: 1.55;
}

.check {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink);
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}
.check li {
  position: relative;
  padding-left: 1.25rem;
}
.check li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--muted);
}

.license-cta {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem;
  border: 1px solid var(--ink);
  flex-wrap: wrap;
}
.license-cta p {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--ink);
}

/* brands */
.brand-card {
  position: relative;
  cursor: default;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}
.brand-card h3 {
  font-size: 1.125rem;
}
.brand-card p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.brand-link {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.brands-foot {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

/* enterprise */
.enterprise-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 720px) {
  .enterprise-grid { grid-template-columns: 1fr; }
}
.ent-card {
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg);
  transition: background 0.2s ease;
  min-height: 240px;
}
.ent-card:hover { background: #fafafa; }
.ent-num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.ent-card h3 {
  font-size: 1.125rem;
  letter-spacing: -0.015em;
}
.ent-card p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.ent-tags {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.ent-tags li {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  padding: 0.25rem 0.5rem;
}

/* contact */
.contact-card {
  border: 1px solid var(--line-soft);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
.contact-mail {
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.25rem;
  transition: opacity 0.15s ease;
}
.contact-mail:hover { opacity: 0.6; }
.contact-note {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--muted);
}

/* footer */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 2rem var(--pad-x);
  margin-top: 2rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.footer-meta a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-bottom-color 0.15s ease;
}
.footer-meta a:hover { color: var(--ink); border-bottom-color: var(--ink); }

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