:root {
  --bg: #07080c;
  --bg-elev: #10131c;
  --ink: #e8edf5;
  --muted: #9aa3b8;
  --cyan: #3dfaff;
  --violet: #8b6cff;
  --line: rgba(232, 237, 245, 0.1);
  --danger: #ff6b8a;
  --ok: #5dffc6;
  --radius: 16px;
  --tap: 44px;
  --font: "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font: 16px/1.55 var(--font);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
body.nav-open { overflow: hidden; }
body.cookie-open { padding-bottom: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--cyan);
  color: #041014;
  padding: 12px 16px;
  min-height: var(--tap);
  z-index: 100;
  font-weight: 700;
}
.skip:focus { left: 8px; }

.aurora {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: #050a12;
}
.aurora-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.aurora-wave {
  transform-box: fill-box;
  transform-origin: 50% 70%;
}
.aurora-wave.w1 { animation: aurora-drift-a 14s ease-in-out infinite; opacity: 0.9; }
.aurora-wave.w2 { animation: aurora-drift-b 18s ease-in-out infinite; opacity: 0.75; }
.aurora-wave.w3 { animation: aurora-drift-c 11s ease-in-out infinite; opacity: 0.85; }
@keyframes aurora-drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scaleX(1); }
  33% { transform: translate3d(2.5%, -2.5%, 0) scaleX(1.03); }
  66% { transform: translate3d(-2%, 1.5%, 0) scaleX(0.98); }
}
@keyframes aurora-drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scaleX(1.02); }
  50% { transform: translate3d(-3%, -3%, 0) scaleX(0.97); }
}
@keyframes aurora-drift-c {
  0%, 100% { transform: translate3d(0, 0, 0); }
  40% { transform: translate3d(3%, 2%, 0); }
  70% { transform: translate3d(-1.5%, -2%, 0); }
}
.aurora-dots .dot {
  animation: aurora-dot 7s ease-in-out infinite;
}
.aurora-dots .dot:nth-child(2) { animation-duration: 9s; animation-delay: -1.2s; }
.aurora-dots .dot:nth-child(3) { animation-duration: 6s; animation-delay: -2.4s; }
.aurora-dots .dot:nth-child(4) { animation-duration: 8s; animation-delay: -0.6s; }
.aurora-dots .dot:nth-child(5) { animation-duration: 10s; animation-delay: -3s; }
.aurora-dots .dot:nth-child(6) { animation-duration: 7.5s; animation-delay: -1.8s; }
.aurora-dots .dot:nth-child(7) { animation-duration: 8.5s; animation-delay: -4s; }
.aurora-dots .dot:nth-child(8) { animation-duration: 6.5s; animation-delay: -2s; }
@keyframes aurora-dot {
  0%, 100% { transform: translate(0, 0); opacity: 0.35; }
  25% { transform: translate(8px, -10px); opacity: 0.95; }
  50% { transform: translate(-6px, 6px); opacity: 0.55; }
  75% { transform: translate(10px, 4px); opacity: 0.85; }
}


/* Non-PROD environment banner (fixed top; offsets sticky nav) */
:root { --env-banner-h: 0px; }
.env-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  padding: 8px 16px;
  padding-top: max(8px, env(safe-area-inset-top));
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #041014;
  background: linear-gradient(90deg, var(--cyan) 0%, #6ee7ff 35%, var(--violet) 100%);
  border-bottom: 2px solid #041014;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.env-banner__label {
  font-weight: 800;
  letter-spacing: 0.12em;
}
.env-banner__meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-weight: 650;
}
.env-banner__sep { opacity: 0.55; }
body.has-env-banner {
  padding-top: var(--env-banner-h);
}
body.has-env-banner .site-header {
  top: var(--env-banner-h);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 12, 0.78);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  min-height: var(--tap);
}
.brand img { width: 40px; height: 40px; }
.brand strong { display: block; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.92rem; }
.brand small { display: none; color: var(--muted); font-size: 0.72rem; }
.nav-toggle {
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  margin-left: auto;
}
.site-nav { width: 100%; display: none; }
.site-nav.is-open { display: block; }
.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 15;
}
body.nav-open .nav-scrim { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 8px 0 4px; }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 4px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.site-nav a[aria-current="page"] { color: var(--cyan); }

main { padding: 28px 16px 80px; max-width: 920px; margin: 0 auto; }

.hero { position: relative; padding: 12px 0 40px; }
.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(61, 250, 255, 0.6);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(61, 250, 255, 0.55); }
  100% { box-shadow: 0 0 0 12px rgba(61, 250, 255, 0); }
}
h1 {
  font-size: clamp(2rem, 11vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 10px 0 18px;
  font-weight: 750;
}
h1 .line { display: block; }
h1 .accent {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.08em; /* room for descenders (e.g. “g” in “ages”) in Chrome */
}
.lede { font-size: 1.12rem; color: var(--muted); max-width: 36rem; margin-top: 0.15em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(90deg, var(--cyan), #6ee7ff 40%, var(--violet));
  color: #041014;
  font: 650 1rem var(--font);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.08); color: #041014; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--cyan); }

.byte-field { position: relative; margin-top: 28px; min-height: 180px; }
.hero-mark {
  margin: 0 auto;
  width: min(180px, 55vw);
  height: auto;
  filter: drop-shadow(0 0 24px rgba(61, 250, 255, 0.25));
  animation: floaty 8s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.band { margin: 48px 0; }
.band.nested { margin: 32px 0 0; }
h2 { font-size: 1.35rem; letter-spacing: -0.03em; margin: 0 0 10px; }
.band .cta-row { margin-top: 18px; margin-bottom: 0; }
.card-grid {
  display: grid;
  gap: 12px;
}
.card {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 19, 28, 0.7);
  color: inherit;
  text-decoration: none;
  min-height: 120px;
}
.card:hover { border-color: rgba(61, 250, 255, 0.45); color: inherit; }
.card.static:hover { border-color: var(--line); }
.card .mono { font-family: var(--mono); color: var(--violet); font-size: 0.8rem; }
.card strong, .card h2 { display: block; margin: 6px 0; }
.card p { margin: 0; color: var(--muted); }

.work-list { list-style: none; padding: 0; margin: 0; }
.work-list li {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.work-list h2 { font-size: 1.5rem; }

.contact-form { display: grid; gap: 14px; max-width: 32rem; }
.teams-panel { margin-top: 2rem; }
.teams-panel h2 { margin-bottom: 0.5rem; }
.teams-form {
  display: grid;
  gap: 14px;
  max-width: 32rem;
  margin-top: 4px;
}
.turnstile-slot {
  min-height: 65px;
  margin: 2px 0 4px;
}
.turnstile-slot .cf-turnstile {
  display: inline-block;
}
.field label { display: block; font-weight: 650; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: inherit;
  font: inherit;
}
.field textarea { min-height: 140px; resize: vertical; }
.field-error { color: var(--danger); margin: 6px 0 0; font-size: 0.92rem; }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.notice {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.notice.success { border-color: var(--ok); }
.notice.error { border-color: var(--danger); }

.legal h2 { margin-top: 28px; }

.site-footer {
  padding: 28px 16px calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(232, 237, 245, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 920px;
  margin: 40px auto 0;
  border-radius: 20px 20px 0 0;
}
body.cookie-pending .site-footer {
  padding-bottom: 160px;
}
.footer-mark { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-links a, .linkish {
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}
.linkish {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tiny { font-family: var(--mono); font-size: 0.78rem; }

.cookie-banner {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 40;
  max-height: 42dvh;
  overflow: auto;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(10, 12, 18, 0.96);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.cookie-banner p { margin: 0 0 10px; font-size: 0.95rem; }
.cookie-prefs { display: none; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 8px; }
.cookie-banner.is-customizing .cookie-prefs { display: flex; }
.cookie-banner.is-customizing [data-cookie="customize"] { display: none; }
.cookie-banner:not(.is-customizing) [data-cookie="save"] { display: none; }
.cookie-prefs label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap);
}
.cookie-prefs input { width: 20px; height: 20px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .btn { flex: 1 1 auto; }

@media (min-width: 760px) {
  .nav-toggle, .nav-scrim { display: none !important; }
  .site-nav { display: block; width: auto; }
  .site-nav ul { display: flex; gap: 6px; padding: 0; }
  .site-nav a { padding: 0 12px; }
  .brand small { display: block; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .site-header, main { padding-left: 28px; padding-right: 28px; }
  .hero-mark { width: 220px; }
  .cookie-banner { left: 50%; right: auto; transform: translateX(-50%); width: min(640px, calc(100% - 24px)); }
  body.nav-open { overflow: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora-wave, .aurora-dots .dot, .hero-mark, .pulse { animation: none; }
}

.card[target="_blank"]::after {
  content: "↗";
  position: absolute;
  top: 14px;
  right: 14px;
  color: var(--muted);
  font-size: 0.85em;
  pointer-events: none;
}
.card-grid.tiles { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .card-grid.tiles { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 380px) {
  .cta-row .btn { flex: 1 1 100%; }
}

.read-veil {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(100% 70% at 50% 0%, rgba(7, 8, 12, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(7, 8, 12, 0.18), rgba(7, 8, 12, 0.32) 45%, rgba(7, 8, 12, 0.48) 78%, rgba(7, 8, 12, 0.28));
}
.site-header {
  background: rgba(7, 8, 12, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-footer {
  background: rgba(7, 8, 12, 0.42);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
}
main .page, main .hero, main .band {
  position: relative;
}
.work-list li {
  display: grid;
  gap: 16px;
}
.work-shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0c1018;
}
.work-shot img { width: 100%; height: auto; display: block; }
@media (min-width: 760px) {
  .work-list li {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .aurora-wave, .aurora-dots .dot { animation: none; }
}

.version {
  font-family: var(--mono);
  color: var(--cyan);
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.version:hover { color: #fff; }
.history-list { list-style: none; padding: 0; margin: 24px 0 0; }
.history-list li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.history-list .mono {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--violet);
  margin: 0 0 6px;
}
.history-list p { margin: 0; color: var(--muted); }

.card-fx {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 220px;
  background: #07080c;
}
.card-fx .card-fx-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  display: block;
}
.card-fx .card-fx-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 8, 12, 0.82) 0%, rgba(7, 8, 12, 0.58) 48%, rgba(7, 8, 12, 0.9) 100%);
}
.card-fx .mono, .card-fx strong, .card-fx p { position: relative; z-index: 1; }
.card-fx .mono { color: var(--cyan); text-shadow: 0 1px 8px #07080c; }
.card-fx strong { color: #fff; }
.card-fx p { color: rgba(232, 237, 245, 0.94); text-shadow: 0 1px 12px #07080c, 0 0 18px #07080c; }
.card-fx .scan {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 7px,
    rgba(61, 250, 255, 0.04) 8px
  );
  mix-blend-mode: screen;
  animation: scan 9s linear infinite;
}
@keyframes scan {
  from { background-position: 0 0; }
  to { background-position: 0 80px; }
}

/* Purofolio: cellar slots */
.card-fx-purofolio .slot-glow {
  transform-box: fill-box;
  transform-origin: center;
  animation: slot-breathe 3.6s ease-in-out infinite;
}
.card-fx-purofolio .slot-glow:nth-child(3n) { animation-delay: -0.8s; }
.card-fx-purofolio .slot-glow:nth-child(3n+1) { animation-delay: -1.9s; }
.card-fx-purofolio .slot-glow:nth-child(3n+2) { animation-delay: -2.7s; }
.card-fx-purofolio .hex-drift {
  animation: hex-pan 22s linear infinite;
  transform-origin: 200px 120px;
}
@keyframes slot-breathe {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
@keyframes hex-pan {
  from { transform: translate(-12px, 0); }
  to { transform: translate(12px, 8px); }
}

/* VapCal: rings + waveform */
.card-fx-vapcal .ring-a {
  transform-origin: 200px 118px;
  animation: spin-slow 18s linear infinite;
}
.card-fx-vapcal .ring-b {
  transform-origin: 200px 118px;
  animation: spin-slow 12s linear infinite reverse;
}
.card-fx-vapcal .wave {
  stroke-dasharray: 180 420;
  animation: dash-flow 4.5s ease-in-out infinite;
}
.card-fx-vapcal .tick {
  animation: tick-fade 2.8s ease-in-out infinite;
}
.card-fx-vapcal .tick:nth-child(even) { animation-delay: -1.4s; }
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes dash-flow {
  0% { stroke-dashoffset: 0; opacity: 0.55; }
  50% { stroke-dashoffset: -120; opacity: 1; }
  100% { stroke-dashoffset: -240; opacity: 0.55; }
}
@keyframes tick-fade {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.9; }
}

/* RideShare: routes */
.card-fx-rideshare .route {
  stroke-dasharray: 8 14;
  animation: route-run 3.2s linear infinite;
}
.card-fx-rideshare .route.alt { animation-duration: 4.6s; animation-direction: reverse; }
.card-fx-rideshare .node {
  transform-box: fill-box;
  transform-origin: center;
  animation: node-pulse 2.4s ease-in-out infinite;
}
.card-fx-rideshare .node:nth-child(odd) { animation-delay: -1.1s; }
.card-fx-rideshare .rider {
  offset-path: path("M 40 190 C 90 40, 160 210, 230 80 S 340 40, 370 130");
  offset-rotate: 0deg;
  animation: rider-go 6.5s cubic-bezier(.4,.05,.3,1) infinite;
}
@keyframes route-run {
  to { stroke-dashoffset: -88; }
}
@keyframes node-pulse {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.45); opacity: 1; }
}
@keyframes rider-go {
  0% { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}

/* Spielemuster / Snake 2: maze runner */
.card-fx-spiele .maze-glow {
  stroke-dasharray: 12 18;
  animation: maze-dash 4s linear infinite;
}
.card-fx-spiele .runner,
.card-fx-spiele .runner-trail {
  offset-path: path("M48 48 H120 V88 H180 V48 H250 V130 H310 V88 H352");
  offset-rotate: 0deg;
  animation: spiele-run 7.5s cubic-bezier(.45,.05,.3,1) infinite;
}
.card-fx-spiele .runner-trail {
  animation-name: spiele-run, spiele-ring;
  animation-duration: 7.5s, 1.6s;
  animation-timing-function: cubic-bezier(.45,.05,.3,1), ease-out;
  animation-iteration-count: infinite, infinite;
}
.card-fx-spiele .coin {
  transform-box: fill-box;
  transform-origin: center;
  animation: coin-spin 2.4s ease-in-out infinite;
}
.card-fx-spiele .coin:nth-child(2) { animation-delay: -0.6s; }
.card-fx-spiele .coin:nth-child(3) { animation-delay: -1.2s; }
.card-fx-spiele .coin:nth-child(4) { animation-delay: -1.8s; }
.card-fx-spiele .tick {
  animation: hud-bounce 1.8s ease-in-out infinite;
}
.card-fx-spiele .tick:nth-child(odd) { animation-delay: -0.4s; }
.card-fx-spiele .tick:nth-child(3n) { animation-delay: -0.9s; }
@keyframes maze-dash {
  to { stroke-dashoffset: -60; }
}
@keyframes spiele-run {
  0% { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}
@keyframes spiele-ring {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.55; }
}
@keyframes coin-spin {
  0%, 100% { opacity: 0.4; transform: rotate(45deg) scale(0.85); }
  50% { opacity: 1; transform: rotate(45deg) scale(1.25); }
}
@keyframes hud-bounce {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}


@media (prefers-reduced-motion: reduce) {
  .card-fx .scan,
  .card-fx-purofolio .slot-glow,
  .card-fx-purofolio .hex-drift,
  .card-fx-vapcal .ring-a,
  .card-fx-vapcal .ring-b,
  .card-fx-vapcal .wave,
  .card-fx-vapcal .tick,
  .card-fx-rideshare .route,
  .card-fx-rideshare .node,
  .card-fx-spiele .maze-glow,
  .card-fx-spiele .runner,
  .card-fx-spiele .runner-trail,
  .card-fx-spiele .coin,
  .card-fx-spiele .tick,
  .card-fx-rideshare .rider {
    animation: none;
  }
}

.contact-form button[disabled],
.teams-form button[disabled] { opacity: 0.65; cursor: wait; }
.notice:focus { outline: 2px solid var(--cyan); outline-offset: 4px; }
.site-nav a:focus-visible, .btn:focus-visible, .linkish:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}


/* Swatch Beat */
.swatchbeat-hero {
  display: grid;
  gap: 18px;
  margin: 24px 0 32px;
  padding: 22px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 140, 40, 0.28);
  background: rgba(16, 12, 10, 0.55);
  backdrop-filter: blur(12px);
}
.swatchbeat-hero .beat {
  font-family: var(--mono);
  font-size: clamp(2.4rem, 8vw, 4rem);
  color: #ff8c28;
  letter-spacing: 0.06em;
  margin: 0;
  line-height: 1.1;
}
.swatchbeat-hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.92rem;
}
.swatchbeat-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) {
  .swatchbeat-grid { grid-template-columns: 1fr 1fr; }
}
.swatchbeat-panel {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(16, 19, 28, 0.55);
}
.swatchbeat-panel h2 { margin: 0 0 10px; font-size: 1.1rem; }
.swatchbeat-panel label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 0.9rem; }
.swatchbeat-panel input {
  width: 100%;
  min-height: var(--tap);
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(7, 8, 12, 0.7);
  color: var(--ink);
  padding: 10px 12px;
  font: 600 1rem var(--mono);
}
.swatchbeat-panel .out {
  margin-top: 12px;
  font-family: var(--mono);
  color: var(--cyan);
  min-height: 1.4em;
}
.card-fx-swatchbeat .sb-ring {
  transform-origin: 200px 100px;
  animation: spin-slow 20s linear infinite;
}
.card-fx-swatchbeat .sb-hand {
  transform-origin: 200px 100px;
  animation: spin-slow 8.64s linear infinite;
}
.card-fx-swatchbeat .sb-core {
  animation: slot-breathe 2.4s ease-in-out infinite;
}
.card-fx-swatchbeat .live-beat {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.95rem;
  color: #ff8c28;
  text-shadow: 0 0 12px rgba(0,0,0,0.8);
}


/* Work screenshot carousel — hits overlay image via .carousel-stage */
.work-carousel {
  cursor: default;
  user-select: none;
  outline: none;
}
.work-carousel:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.work-carousel .carousel-stage {
  position: relative;
  display: block;
  width: 100%;
}
.work-carousel .carousel-stage img,
.work-carousel img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  position: relative;
  z-index: 0;
}
.work-carousel .carousel-hit {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100%;
  width: 40%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.work-carousel .carousel-prev { left: 0; }
.work-carousel .carousel-next { right: 0; }
.work-carousel .carousel-hit:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -4px;
}
.work-carousel .carousel-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: rgba(7, 8, 12, 0.72);
  border: 1px solid rgba(232, 237, 245, 0.55);
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.work-carousel .carousel-hit:hover .carousel-arrow,
.work-carousel .carousel-hit:focus-visible .carousel-arrow {
  background: rgba(7, 8, 12, 0.88);
  transform: scale(1.06);
}
.work-carousel .carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 4;
  pointer-events: none;
}
.work-carousel .carousel-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(232, 237, 245, 0.35);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.35);
}
.work-carousel .carousel-dots span.is-on {
  background: #ff8c28;
}


/* Swatch Beat page: dial as full-viewport background, UI on top */
body[data-page="swatchbeat"] .aurora {
  display: none;
}
body[data-page="swatchbeat"] .swatchbeat-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: #000;
}
body[data-page="swatchbeat"] .swatchbeat-bg img,
body[data-page="swatchbeat"] .swatchbeat-bg svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body[data-page="swatchbeat"] .read-veil {
  background:
    radial-gradient(70% 55% at 50% 38%, rgba(7, 8, 12, 0.25), rgba(7, 8, 12, 0.62) 70%),
    linear-gradient(180deg, rgba(7, 8, 12, 0.45), rgba(7, 8, 12, 0.55) 40%, rgba(7, 8, 12, 0.72));
}
body[data-page="swatchbeat"] main .page {
  max-width: 720px;
}
body[data-page="swatchbeat"] .page > .kicker,
body[data-page="swatchbeat"] .page > h1,
body[data-page="swatchbeat"] .page > .lede {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85);
}
body[data-page="swatchbeat"] .swatchbeat-hero {
  margin-top: 12px;
  background: rgba(10, 8, 8, 0.72);
  border-color: rgba(255, 140, 40, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
body[data-page="swatchbeat"] .swatchbeat-panel {
  background: rgba(10, 12, 18, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
}
body[data-page="swatchbeat"] .page > .tiny {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(7, 8, 12, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
}
.card-fx-planetdoom .pd-glow {
  animation: slot-breathe 3.2s ease-in-out infinite;
}
