/* hacker look: hackmud terminal + Watch Dogs DedSec glitch + Tron grid + Blade Runner city */
@font-face {
  font-family: "Share Tech Mono";
  src: url("/fonts/share-tech-mono.woff2?v=1.0.8") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Orbitron";
  src: url("/fonts/orbitron.woff2?v=1.0.8") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #05070b;
  --bg-2: #080c12;
  --panel: rgba(10, 18, 28, 0.78);
  --line: #1a2836;
  --line-hi: #2c4156;
  --text: #d3e1ec;
  --muted: #7d91a2;
  --cyan: #00e5ff;
  --magenta: #ff2bd6;
  --pink: #ff3864;
  --orange: #ff9e2c;
  --green: #39ff14;
  --yellow: #f6f930;
  --mono: "Share Tech Mono", "DejaVu Sans Mono", Consolas, monospace;
  --display: "Orbitron", "Share Tech Mono", sans-serif;
  --glow-c: 0 0 6px rgba(0, 229, 255, 0.7), 0 0 22px rgba(0, 229, 255, 0.35);
  --glow-m: 0 0 6px rgba(255, 43, 214, 0.7), 0 0 22px rgba(255, 43, 214, 0.35);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4rem; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 229, 255, 0.08), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 60%, rgba(255, 43, 214, 0.05), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--mono);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* CRT scanlines + vignette */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
}
body::before {
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px);
}
body::after {
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.55));
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--magenta); text-shadow: var(--glow-m); }

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

/* ---------- splash ---------- */
.splash {
  position: relative;
  overflow: hidden;
  padding: 1rem 16px clamp(6rem, 12vw, 9rem);
  text-align: center;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}



/* night sky: stars + full moon behind the smog */
.sky {
  /* colors come from sky.js (real sun position over Vienna), night by default */
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 35% at 50% 82%, rgba(255, 140, 40, var(--haze, 0.22)), transparent 70%),
    radial-gradient(ellipse 50% 30% at 15% 70%, rgba(255, 43, 214, 0.10), transparent 70%),
    linear-gradient(to bottom, var(--sky-top, #020306) 0%, var(--sky-mid, #071019) 55%, var(--sky-bottom, #120c10) 85%, var(--bg) 100%);
  pointer-events: none;
}
.stars {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 60%;
  opacity: var(--stars, 1);
  transition: opacity 3s;
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
  pointer-events: none;
}
.stars::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/stars.svg?v=1.0.8") center top / 1600px auto repeat-x;
  animation: twinkle 7s ease-in-out infinite;
}
@keyframes twinkle { 50% { opacity: 0.6; } }
.moon {
  position: absolute;
  left: var(--moon-x, 82%);
  top: var(--moon-y, 13%);
  transform: translate(-50%, -50%);
  width: clamp(44px, 4.6vw, 60px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 38%, rgba(160, 140, 110, 0.35) 0 9%, transparent 10%),
    radial-gradient(circle at 62% 58%, rgba(160, 140, 110, 0.3) 0 13%, transparent 14%),
    radial-gradient(circle at 55% 28%, rgba(160, 140, 110, 0.25) 0 6%, transparent 7%),
    radial-gradient(circle at 40% 40%, #fff6e0, #f1d9a8 55%, #d9a86a);
  box-shadow: 0 0 30px 8px rgba(255, 190, 110, 0.35), 0 0 120px 40px rgba(255, 140, 40, 0.18);
  opacity: calc(0.85 * var(--moon, 1));
  transition: opacity 3s;
  pointer-events: none;
}
.sun {
  position: absolute;
  left: var(--sun-x, 50%);
  top: var(--sun-y, 120%);
  width: clamp(48px, 5vw, 64px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: var(--sun, 0);
  transition: opacity 3s;
  background: radial-gradient(circle, #fff8e1 0 38%, #ffd27a 58%, #ff9e2c 72%, rgba(255, 120, 40, 0) 73%);
  box-shadow: 0 0 40px 12px rgba(255, 200, 120, 0.5), 0 0 160px 70px rgba(255, 140, 40, 0.28);
  pointer-events: none;
}
.sun::after {
  /* redder and duller close to the horizon */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #ff9a4d 0 45%, #e2452a 70%, rgba(200, 40, 30, 0) 73%);
  opacity: var(--sun-low, 0);
}
.smog {
  /* drifting haze bands over moon, stars and skyline */
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 8%, rgba(120, 70, 40, 0.18) 16%, transparent 26%),
    linear-gradient(to bottom, transparent 30%, rgba(255, 140, 40, 0.10) 45%, rgba(40, 20, 30, 0.25) 60%, transparent 75%),
    radial-gradient(ellipse 40% 12% at 30% 22%, rgba(150, 110, 90, 0.18), transparent 70%),
    radial-gradient(ellipse 45% 10% at 80% 18%, rgba(170, 120, 90, 0.22), transparent 70%);
  background-size: 100% 100%, 100% 100%, 200% 100%, 200% 100%;
  animation: smog 40s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes smog {
  from { background-position: 0 0, 0 0, 0% 0, 100% 0; }
  to   { background-position: 0 0, 0 0, 100% 0, 0% 0; }
}
@media (max-width: 640px) { .brand { margin-top: 1.2rem; } }

/* Blade Runner: skyline, smog, rain */
.skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10%;
  height: 58%;
  background: url("/skyline.svg?v=1.0.8") center bottom / auto 100% repeat-x;
  opacity: 0.95;
  mask-image: linear-gradient(to bottom, transparent, #000 35%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%);
  pointer-events: none;
}
.rain {
  position: absolute;
  inset: 0;
  background: url("/rain.svg?v=1.0.8") 0 0 / 320px 320px, url("/rain.svg?v=1.0.8") 160px 80px / 220px 220px;
  opacity: 0.55;
  transition: opacity 8s ease-in-out;
  animation: rain 0.6s linear infinite;
  pointer-events: none;
}
.splash.dry .rain { opacity: 0; }
.splash.instant .rain { transition: none; }

/* winter (Dec/Jan): snow instead of rain */
.snow {
  position: absolute;
  inset: 0;
  display: none;
  background: url("/snow.svg?v=1.0.8") 0 0 / 320px 320px, url("/snow.svg?v=1.0.8") 140px 60px / 200px 200px;
  opacity: 0.8;
  transition: opacity 8s ease-in-out;
  animation: snow 14s linear infinite;
  pointer-events: none;
}
@keyframes snow {
  from { background-position: 0 0, 140px 60px; }
  to   { background-position: 60px 320px, 100px 460px; }
}
.splash.winter .rain { display: none; }
.splash.winter .snow { display: block; }
.splash.winter.dry .snow { opacity: 0; }
.splash.instant .snow { transition: none; }

/* Halloween (Oct 28 - Nov 3): blood moon and bats, bats only at night */
.splash.halloween .moon {
  background:
    radial-gradient(circle at 34% 38%, rgba(60, 0, 0, 0.35) 0 9%, transparent 10%),
    radial-gradient(circle at 62% 58%, rgba(60, 0, 0, 0.3) 0 13%, transparent 14%),
    radial-gradient(circle at 40% 40%, #ff8a6a, #c4231b 55%, #6e0b0b);
  box-shadow: 0 0 30px 8px rgba(220, 30, 20, 0.45), 0 0 120px 40px rgba(180, 0, 0, 0.25);
}
.bats { position: absolute; inset: 0; display: none; pointer-events: none; overflow: hidden; }
.splash.halloween.night .bats { display: block; }
.bats i {
  position: absolute;
  left: -60px;
  width: 64px;
  height: 32px;
  background: url("/bat.svg?v=1.0.8") center / contain no-repeat;
  filter: drop-shadow(0 0 2px rgba(255, 80, 50, 0.95)) drop-shadow(0 0 8px rgba(255, 40, 20, 0.6));
  animation: bat-fly 22s linear infinite, bat-flap 0.28s steps(2) infinite;
}
.bats i:nth-child(1) { top: 14%; animation-delay: 0s, 0s; }
.bats i:nth-child(2) { top: 26%; width: 46px; height: 23px; animation-duration: 28s, 0.24s; animation-delay: -9s, 0s; }
.bats i:nth-child(3) { top: 9%;  width: 38px; height: 19px; animation-duration: 34s, 0.22s; animation-delay: -17s, 0s; }
.bats i:nth-child(4) { top: 34%; width: 54px; height: 27px; animation-duration: 25s, 0.3s; animation-delay: -4s, 0s; }
.bats i:nth-child(5) { top: 20%; width: 32px; height: 16px; animation-duration: 40s, 0.2s; animation-delay: -26s, 0s; }
@keyframes bat-fly {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(28vw, -30px); }
  50%  { transform: translate(55vw, 25px); }
  75%  { transform: translate(82vw, -20px); }
  100% { transform: translate(calc(100vw + 120px), 10px); }
}
@keyframes bat-flap { 50% { scale: 1 0.45; } }

/* lightning: sky flash + bolt behind the skyline */
.lightning {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at var(--lx, 50%) 0%, rgba(215, 230, 255, 0.55), rgba(150, 180, 255, 0.18) 55%, transparent 80%);
  opacity: 0;
  pointer-events: none;
}
.bolt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  fill: none;
  stroke: #eef4ff;
  stroke-width: 2.5;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px #b8d4ff) drop-shadow(0 0 14px rgba(140, 180, 255, 0.8));
  pointer-events: none;
}
.splash.flash .lightning { animation: flash 1.1s ease-out; }
.splash.flash .bolt { animation: flash-bolt 1.1s ease-out; }
@keyframes flash {
  0% { opacity: 0; }
  4% { opacity: 0.9; }
  12% { opacity: 0.15; }
  20% { opacity: 1; }
  45% { opacity: 0.25; }
  100% { opacity: 0; }
}
@keyframes flash-bolt {
  0%, 3% { opacity: 0; }
  5%, 11% { opacity: 1; }
  13% { opacity: 0; }
  19%, 30% { opacity: 1; }
  40%, 100% { opacity: 0; }
}

@keyframes rain {
  from { background-position: 0 0, 160px 80px; }
  to   { background-position: -58px 320px, 120px 300px; }
}

@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.25; }
}

.windows {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10%;
  height: 58%;
  background: url("/windows.svg?v=1.0.8") center bottom / auto 100% repeat-x;
  opacity: var(--windows, 1);
  transition: opacity 3s;
  mask-image: linear-gradient(to bottom, transparent, #000 35%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%);
  pointer-events: none;
}

/* Tron perspective grid */
.tron-floor {
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: -2px;
  height: 70%;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.45) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(320px) rotateX(62deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  animation: floor 20s linear infinite;
  pointer-events: none;
}
@keyframes floor {
  from { background-position: 0 0; }
  to   { background-position: 0 60px; }
}

/* three columns, the outer two always equally wide: the language switcher
   stays centered however long the rotating phrase on the left is */
.hud {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}
.hud i { font-style: normal; }
.hud-task { justify-self: start; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hud-live { justify-self: end; white-space: nowrap; }
.lang { display: flex; align-items: center; gap: 0.15em; white-space: nowrap; }
.lang span { opacity: 0.5; }
/* small text, but a finger-sized target */
.lang a {
  padding: 0.5em 0.45em;
  margin: -0.5em 0;
  color: var(--green);
  opacity: 0.6;
  text-decoration: none;
}
.lang a:hover, .lang a:focus-visible { opacity: 1; color: var(--cyan); text-shadow: var(--glow-c); }
.lang a[aria-current] { opacity: 1; color: var(--cyan); text-shadow: var(--glow-c); }
.hud .phrase { transition: opacity 0.2s ease-out; }
.hud .phrase.out { opacity: 0; }
.hud-live::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.5em;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 1.6s steps(1) infinite;
}

/* brand: neon turtle + wordmark */
.brand {
  position: relative;
  margin-top: 4.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}
.turtle {
  width: clamp(72px, 9vw, 130px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.8)) drop-shadow(0 0 16px rgba(255, 158, 44, 0.45));
  animation: hover 6s ease-in-out infinite;
}
.turtle polygon {
  stroke-width: 7;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  animation: trace 1.8s ease-out 0.2s both;
}
.turtle .t-shell { stroke: var(--orange); fill: rgba(255, 158, 44, 0.14); }
.turtle .t-body  { stroke: var(--cyan);   fill: rgba(0, 229, 255, 0.12); }
.turtle .t-speed {
  stroke: var(--magenta);
  fill: var(--magenta);
  animation: trace 1.8s ease-out 0.2s both, whoosh 1.2s ease-in-out 2s infinite;
}
@keyframes trace { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes whoosh { 50% { opacity: 0.25; transform: translate(-6px, 8px); } }
@keyframes hover { 50% { transform: translateY(-6px) rotate(-2deg); } }
/* lightning bolts the turtle sprays now and then (static/turtle.js) */
.zap {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 32px;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}
.zap polyline { fill: none; stroke-linejoin: miter; stroke-linecap: round; }
.zap .glow { stroke: var(--yellow); stroke-width: 4; filter: drop-shadow(0 0 4px var(--yellow)); }
.zap .core { stroke: #fff; stroke-width: 1.5; }

/* glitch logo: base + two RGB-split ghosts */
.glitch {
  position: relative;
  display: inline-block;
}
/* drawn as SVG (built from templates/logo.txt), so it looks the same on every device */
.logo {
  display: block;
  width: min(945px, calc(100vw - 32px));
  height: auto;
  overflow: visible;
  color: var(--cyan);
  filter: drop-shadow(0 0 3px rgba(0, 229, 255, 0.7)) drop-shadow(0 0 12px rgba(0, 229, 255, 0.35));
}
.logo.ghost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: none;
  opacity: 0;
  pointer-events: none;
}
.logo.g1 { color: var(--magenta); animation: glitch-a 5s infinite steps(1); }
.logo.g2 { color: var(--yellow); animation: glitch-b 5s infinite steps(1); }

@keyframes glitch-a {
  0%, 89%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 0 0); }
  90% { opacity: 0.85; transform: translate(-6px, 1px); clip-path: inset(10% 0 62% 0); }
  92% { opacity: 0.85; transform: translate(5px, -1px); clip-path: inset(55% 0 20% 0); }
  94% { opacity: 0.85; transform: translate(-3px, 0); clip-path: inset(30% 0 45% 0); }
  96% { opacity: 0; }
}
@keyframes glitch-b {
  0%, 90%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 0 0); }
  91% { opacity: 0.6; transform: translate(4px, 0); clip-path: inset(70% 0 5% 0); }
  93% { opacity: 0.6; transform: translate(-5px, 1px); clip-path: inset(0 0 80% 0); }
  95% { opacity: 0; }
}

.tagline {
  position: relative;
  margin: 1.4rem 0 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--magenta);
  text-shadow: var(--glow-m);
  animation: flicker 9s 1s infinite;
}


/* ---------- nav ---------- */
.menu {
  position: sticky;
  top: 0;
  z-index: 500;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
  padding: 0.55rem 16px;
  background: rgba(3, 5, 9, 0.88);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 229, 255, 0.15), 0 8px 24px rgba(0, 0, 0, 0.5);
}
.button {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
}
.button::before { content: "["; color: var(--line-hi); margin-right: 0.45em; }
.button::after  { content: "]"; color: var(--line-hi); margin-left: 0.45em; }
.button:hover { color: var(--cyan); text-shadow: var(--glow-c); }
.button:hover::before,
.button:hover::after { color: var(--magenta); }

/* ---------- content ---------- */
main {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
  counter-reset: sec;
}

section { padding: 4rem 0 1rem; }

h1, h2, h3 { font-weight: normal; margin: 0 0 1rem; }

section > h1 {
  position: relative;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.3rem, 3.6vw, 1.9rem);
  letter-spacing: 0.12em;
  color: #fff;
  text-shadow: 2px 0 var(--magenta), -2px 0 var(--cyan);
  padding-bottom: 0.6rem;
  margin-bottom: 1.4rem;
}
section > h1::before {
  content: attr(data-id) " // ";
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: normal;
  letter-spacing: 0.3em;
  color: var(--magenta);
  text-shadow: none;
  margin-bottom: 0.2rem;
}
section > h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta) 40%, transparent);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  color: var(--cyan);
  text-shadow: var(--glow-c);
  margin-top: 2.6rem;
}
h2::before { content: "> "; color: var(--magenta); text-shadow: none; }

h3 { color: var(--yellow); font-size: 1.05rem; }

/* hero */
.hero { padding-top: 3.5rem; }

.headline {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.45rem, 4.4vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.35);
}
.headline::before { content: none; }
.headline .prompt { color: var(--magenta); text-shadow: var(--glow-m); }

.cursor {
  color: var(--green);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.intro {
  max-width: 46rem;
  font-size: 1.08rem;
  color: var(--text);
  border-left: 2px solid var(--magenta);
  padding-left: 1rem;
}

.benefits {
  list-style: none;
  padding: 0;
  margin: 2.2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}
.benefits li {
  position: relative;
  padding: 0.2rem 0 0 0.9rem;
  border-left: 1px solid var(--line-hi);
}
.benefits li::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  width: 1px;
  height: 1.6rem;
  background: var(--cyan);
  box-shadow: var(--glow-c);
}
.benefits .key {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.benefits p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.93rem; }

.cta {
  display: inline-block;
  margin-top: 1.8rem;
  padding: 0.7rem 1.6rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--cyan);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  box-shadow: var(--glow-c);
  transition: background 0.15s, color 0.15s;
}
.cta:hover { background: var(--magenta); color: #fff; text-shadow: none; }

/* PING: the button turns into a shell that pings the server (static/ping.js) */
.ping { margin-top: 1.8rem; }
.ping [hidden] { display: none; }
.ping .cta { margin-top: 0; min-width: 9rem; text-align: center; }
.term {
  width: min(100%, 680px);
  padding: 0.9rem 1.2rem;
  font: 0.85rem/1.6 var(--mono);
  color: var(--muted);
  background: rgba(2, 6, 10, 0.85);
  border: 1px solid var(--line-hi);
  border-left: 2px solid var(--cyan);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.12);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.term div { min-height: 1.6em; }
.term .cmd { color: var(--text); }
.term b { color: var(--magenta); font-weight: normal; }
.term u { text-decoration: none; color: var(--green); animation: blink 1s steps(1) infinite; }
.term .ok { color: var(--green); }
.term .bad { color: var(--pink); }
.term .go { color: var(--cyan); }

.checks { list-style: none; padding: 0; }
.checks li { margin: 0 0 0.8rem; padding-left: 2.6rem; text-indent: -2.6rem; }
.checks li::before { content: "[!!] "; color: var(--pink); }

/* cards: angular, Tron-style edges */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  --accent: var(--cyan);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.2rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line-hi);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card::before {
  /* accent bar along the top edge */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.card:hover {
  border-color: var(--accent);
  box-shadow: inset 0 0 30px rgba(0, 229, 255, 0.06);
  transform: translateY(-2px);
}
.card h3 { color: var(--accent); }
.card p { margin: 0; color: var(--muted); }
.card .more { margin-top: auto; padding-top: 1rem; }
.card .idx {
  position: absolute;
  top: 0.5rem;
  right: 1.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--line-hi);
}
.card.c0 { --accent: var(--cyan); }
.card.c1 { --accent: var(--magenta); }
.card.c2 { --accent: var(--orange); }
.card.c3 { --accent: var(--green); }
.card.partner { --accent: var(--yellow); }
.card .focus {
  align-self: flex-start;
  margin-top: 0.9rem;
  padding: 0.15rem 0.6rem;
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.member { --accent: var(--cyan); }
.member h3 { margin-bottom: 0.2rem; }
.member .role {
  margin-bottom: 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--magenta);
}

/* tech arsenal as tags */
.stack {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.stack li {
  padding: 0.2rem 0.7rem;
  font-size: 0.9rem;
  border: 1px solid var(--line-hi);
  background: rgba(0, 229, 255, 0.04);
  color: var(--text);
}
.stack li:nth-child(-n+8) {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: inset 0 0 10px rgba(0, 229, 255, 0.15);
}
.stack li:nth-child(9),
.stack li:nth-child(10) {
  border-color: var(--magenta);
  color: var(--magenta);
  box-shadow: inset 0 0 10px rgba(255, 43, 214, 0.15);
}

blockquote {
  position: relative;
  margin: 0 0 1.6rem;
  padding: 1rem 1.2rem;
  background: var(--panel);
  border-left: 2px solid var(--magenta);
}
blockquote::before {
  content: "> decrypted transmission";
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--magenta);
}
blockquote p { margin: 0 0 0.6rem; }
blockquote footer { color: var(--cyan); }
blockquote footer span { color: var(--muted); }

pre.contact {
  margin: 1.4rem 0 0;
  padding: 1.2rem 1.4rem;
  overflow-x: auto;
  font: inherit;
  color: var(--text);
  background: rgba(2, 6, 10, 0.85);
  border: 1px solid var(--cyan);
  box-shadow: var(--glow-c), inset 0 0 24px rgba(0, 229, 255, 0.08);
}
pre.contact a { color: var(--green); }
a.obf:not(.live) { color: var(--line-hi); cursor: default; text-shadow: none; }
.obf-status { color: var(--pink); }
.obf-status.live { color: var(--green); }
.nojs { color: var(--pink); }
pre.contact a:hover { color: var(--magenta); }

/* legal stays calm */
.legal { font-size: 0.9rem; color: var(--muted); }
.legal > h1 {
  font-size: 1rem;
  color: var(--muted);
  text-shadow: none;
}
.legal > h1::before { content: none; }
.legal > h1::after { background: var(--line-hi); box-shadow: none; }
.legal h3 { color: var(--text); font-size: 0.95rem; margin: 1.2rem 0 0.3rem; }
.legal p { margin: 0 0 0.8rem; }

.site-footer {
  margin-top: 4rem;
  padding: 1.6rem 16px;
  border-top: 1px solid var(--line);
  background: #020306;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer p { margin: 0.2rem 0; }
.version { font-size: 0.72rem; letter-spacing: 0.15em; color: var(--line-hi); }
.motto {
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--magenta);
  text-shadow: var(--glow-m);
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 3.2rem; }
  /* menu below the header like on desktop (sticky), one compact line */
  .menu {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0;
    padding: 0.7rem 12px;
  }
  .button { padding: 0.1rem 0.15rem; font-size: 0.62rem; letter-spacing: 0.1em; }
  .button::before, .button::after { content: none; }
  /* status line: one row, short labels */
  .hud { gap: 0.5rem; margin-bottom: 1rem; font-size: 0.6rem; letter-spacing: 0.05em; }
  .hud .lg { display: none; }
  .term { font-size: 0.74rem; padding: 0.8rem 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tron-floor, .rain, .stars::before, .smog, .tagline, .turtle, .turtle polygon, .logo.ghost, .cursor, .hud-live::before, .term u { animation: none; }
  .stars, .sun, .moon, .windows { transition: none; }
  .lightning, .bolt { display: none; }
  .bats { display: none !important; }
  .snow { animation: none; }
  html { scroll-behavior: auto; }
}
