/* ---------- Theme ---------- */
:root {
  --bg: #05060d;
  --cyan: #3ef0ff;
  --magenta: #ff3ec8;
  --text: #eafcff;
  --body: #c3cde0;
  --muted: #7f8fb0;
  --panel: rgba(10, 12, 26, 0.62);
  --panel-border: rgba(62, 240, 255, 0.16);
  --radius: 14px;
  --max-width: 800px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ---------- Background layers (fixed behind everything) ---------- */
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.7) 100%);
}

/* ---------- Shared bits ---------- */
.prompt { color: var(--magenta); }
.cursor { animation: blink 1s steps(1) infinite; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px 18vh; /* lifts the name above the grid's horizon */
}

.kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(0.75rem, 2.2vw, 0.95rem);
  letter-spacing: 0.2em;
  color: var(--cyan);
  opacity: 0;
  animation: fade-up 0.8s ease-out 0.2s forwards;
}

.name {
  position: relative;
  margin: 0.15em 0 0.35em;
  font-size: clamp(2.75rem, 12vw, 8.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: pre;
  color: var(--text);
  text-shadow:
    0 0 18px rgba(62, 240, 255, 0.55),
    0 0 60px rgba(62, 240, 255, 0.25);
}

/* Occasional chromatic "glitch" using two offset copies of the name */
.name::before,
.name::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  text-shadow: none;
}
.name::before { color: var(--magenta); animation: glitch-a 7s infinite 2.5s; }
.name::after  { color: var(--cyan);    animation: glitch-b 7s infinite 2.5s; }

/* Hero navigation: About · Experience · Links */
.hero-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  opacity: 0;
  animation: fade-up 0.8s ease-out 1.5s forwards;
}

.hero-nav a {
  position: relative;
  padding: 8px 18px;
  font-family: var(--mono);
  font-size: clamp(0.8rem, 2.4vw, 0.95rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(10, 12, 26, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.hero-nav a:hover,
.hero-nav a:focus-visible {
  color: var(--cyan);
  border-color: rgba(62, 240, 255, 0.6);
  box-shadow: 0 0 18px rgba(62, 240, 255, 0.3), inset 0 0 12px rgba(62, 240, 255, 0.12);
  outline: none;
}

/* "scroll" hint at the bottom of the hero */
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: fade-in 1s ease-out 2.4s forwards;
}
.chevron {
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--cyan);
  border-bottom: 1.5px solid var(--cyan);
  transform: rotate(45deg);
  animation: bob 1.6s ease-in-out infinite;
}

/* ---------- Top bar (appears after scrolling past the hero) ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 max(16px, calc((100% - var(--max-width)) / 2));
  background: rgba(5, 6, 13, 0.72);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--panel-border);
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}
.topbar.visible { transform: none; }

.topbar-brand {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text);
}

.topbar-nav { display: flex; gap: 22px; }
.topbar-nav a {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s, text-shadow 0.2s;
}
.topbar-nav a:hover,
.topbar-nav a.active {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(62, 240, 255, 0.6);
}

/* ---------- Content sections ---------- */
main { position: relative; z-index: 1; }

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 16px 32px;
  scroll-margin-top: 40px;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 24px;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: pre;
}
.section-title .index {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--magenta);
}
.section-title::after {
  content: "";
  flex: 1;
  align-self: center;
  height: 1px;
  margin-left: 8px;
  background: linear-gradient(to right, rgba(62, 240, 255, 0.45), transparent);
}

/* Frosted "glass" panel used by every content block */
.panel {
  position: relative;
  padding: 24px 26px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Experience */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.timeline .panel { padding-left: 30px; }
.timeline .panel::before { /* neon accent bar on the left edge */
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--cyan), var(--magenta));
  box-shadow: 0 0 10px rgba(62, 240, 255, 0.6);
}
.when {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
}
.timeline h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  color: var(--text);
}
.org { font-weight: 400; color: var(--muted); }

/* Contact */
.contact-panel { text-align: center; padding: 36px 26px; }
.contact-panel p { max-width: 34em; margin: 0 auto; }

.contact-email {
  display: inline-block;
  margin: 22px 0 24px;
  font-family: var(--mono);
  font-size: clamp(1.05rem, 4.2vw, 1.6rem);
  letter-spacing: 0.02em;
  color: var(--text);
  text-shadow: 0 0 14px rgba(62, 240, 255, 0.45);
  overflow-wrap: anywhere;
  transition: color 0.2s, text-shadow 0.2s;
}
.contact-email:hover {
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(62, 240, 255, 0.8);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  padding: 10px 22px;
  font: inherit;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(10, 12, 26, 0.45);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s, background 0.2s;
}
.btn:hover,
.btn:focus-visible {
  color: var(--cyan);
  border-color: rgba(62, 240, 255, 0.6);
  box-shadow: 0 0 18px rgba(62, 240, 255, 0.3), inset 0 0 12px rgba(62, 240, 255, 0.12);
  outline: none;
}
.btn-primary {
  color: var(--bg);
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(62, 240, 255, 0.35);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  color: var(--bg);
  background: #7ff6ff;
  box-shadow: 0 0 26px rgba(62, 240, 255, 0.6);
}

.socials {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px dashed var(--panel-border);
}
.socials-label {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}
.social-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
}
.social-links a {
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--text);
  transition: color 0.2s, text-shadow 0.2s;
}
.social-links a span {
  display: inline-block;
  color: var(--cyan);
  transition: transform 0.2s;
}
.social-links a:hover,
.social-links a:focus-visible {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(62, 240, 255, 0.6);
  outline: none;
}
.social-links a:hover span { transform: translate(2px, -2px); }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  padding: 72px 16px 40px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ---------- Scroll reveal (script.js adds .in when visible) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease, border-color 0.2s, box-shadow 0.2s;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-in { to { opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes bob {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50%      { transform: rotate(45deg) translate(3px, 3px); }
}

@keyframes glitch-a {
  0%, 90%, 97%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
  91% { opacity: 0.85; transform: translate(-5px, 1px);  clip-path: inset(12% 0 62% 0); }
  93% { opacity: 0.85; transform: translate(4px, -1px);  clip-path: inset(58% 0 18% 0); }
  95% { opacity: 0.85; transform: translate(-2px, 0);    clip-path: inset(34% 0 44% 0); }
}
@keyframes glitch-b {
  0%, 90.5%, 97%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
  91.5% { opacity: 0.7; transform: translate(5px, -1px); clip-path: inset(66% 0 8% 0); }
  94%   { opacity: 0.7; transform: translate(-4px, 1px); clip-path: inset(20% 0 56% 0); }
  96%   { opacity: 0.7; transform: translate(2px, 0);    clip-path: inset(44% 0 30% 0); }
}

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .panel { padding: 20px; }
  .timeline .panel { padding-left: 24px; }
  .topbar-nav { gap: 14px; }
  .topbar-nav a { font-size: 0.72rem; letter-spacing: 0.08em; }
  .hero-nav { gap: 8px; }
  .hero-nav a { padding: 7px 12px; letter-spacing: 0.12em; }
}

/* =====================================================================
   EASTER EGG: retro mode (circa 1999)
   script.js toggles body.retro when you click the name.
   ===================================================================== */

/* Which elements show in which mode */
body:not(.retro) .retro-only { display: none !important; }
body.retro .modern-only,
body.retro #bg,
body.retro .overlay,
body.retro .topbar { display: none !important; }

body.retro {
  color: #ffffff;
  font-family: "Comic Sans MS", "Comic Neue", "Chalkboard SE", cursive;
  font-size: 16px;
  background-color: #000014;
  /* Two star tiles of different sizes, layered so the repeat is less obvious */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='97' height='97'%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='15' cy='40' r='0.6'/%3E%3Ccircle cx='70' cy='12' r='0.7'/%3E%3Ccircle cx='52' cy='83' r='0.5'/%3E%3C/g%3E%3Ccircle cx='88' cy='60' r='1' fill='%23ff99ff'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Crect width='140' height='140' fill='%23000014'/%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='10' cy='14' r='1'/%3E%3Ccircle cx='47' cy='60' r='0.8'/%3E%3Ccircle cx='88' cy='22' r='1.2'/%3E%3Ccircle cx='120' cy='95' r='0.9'/%3E%3Ccircle cx='30' cy='110' r='1'/%3E%3Ccircle cx='70' cy='128' r='0.7'/%3E%3Ccircle cx='130' cy='40' r='0.8'/%3E%3Ccircle cx='100' cy='70' r='0.6'/%3E%3Ccircle cx='60' cy='90' r='1'/%3E%3C/g%3E%3Cg fill='%23ffff66'%3E%3Ccircle cx='20' cy='75' r='1.3'/%3E%3Ccircle cx='112' cy='126' r='1.1'/%3E%3C/g%3E%3Cpath d='M80 100 l2 6 6 2 -6 2 -2 6 -2 -6 -6 -2 6 -2z' fill='%23ffffff'/%3E%3Cpath d='M34 30 l1.5 4.5 4.5 1.5 -4.5 1.5 -1.5 4.5 -1.5 -4.5 -4.5 -1.5 4.5 -1.5z' fill='%2399ccff'/%3E%3C/svg%3E");
  background-size: 97px 97px, 140px 140px;
}

body.retro a { color: #66ccff; text-decoration: underline; }
body.retro a:visited { color: #cc99ff; }
body.retro a:hover { color: #ffff00; }

/* ----- Hero ----- */
body.retro .hero {
  display: block;
  min-height: 0;
  padding: 0 16px 40px;
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  margin: 0 -16px 18px;
  padding: 6px 0;
  background: #000080;
  border-bottom: 3px ridge #c0c0c0;
  font-family: "Times New Roman", Times, serif;
  font-size: 1.1rem;
  font-weight: bold;
  color: #ffff00;
}
.marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 18s linear infinite;
}

.retro-url {
  margin: 0 0 24px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  color: #00ff00;
  overflow-wrap: anywhere;
}

/* Rainbow WordArt name */
body.retro .name {
  display: inline-block;
  margin: 0.1em 0 0.15em;
  padding: 0 0.1em;
  font-family: Impact, "Arial Black", "Haettenschweiler", sans-serif;
  font-size: clamp(3rem, 13vw, 7rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-shadow: none;
  color: transparent;
  background: linear-gradient(90deg, #ff0000, #ff9900, #ffff00, #00ff00, #00ffff, #3366ff, #cc00ff, #ff0000);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(4px 4px 0 #1a1aff);
  transform: skewX(-8deg);
  animation: rainbow 3s linear infinite;
  cursor: pointer;
}
body.retro .name::before,
body.retro .name::after { display: none; }

.retro-hint {
  margin: 0 0 22px;
  font-size: 0.8rem;
  color: #ff99ff;
  font-style: italic;
}

/* Windows 98-style buttons */
body.retro .hero-nav { opacity: 1; animation: none; }
body.retro .hero-nav a,
body.retro .btn {
  padding: 6px 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  color: #000000;
  background: #c0c0c0;
  border: 3px outset #ffffff;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.retro .hero-nav a:hover,
body.retro .hero-nav a:focus-visible,
body.retro .btn:hover,
body.retro .btn:focus-visible {
  color: #000080;
  background: #d4d0c8;
  box-shadow: none;
}
body.retro .hero-nav a:active,
body.retro .btn:active { border-style: inset; }

.construction {
  margin: 30px auto 8px;
  max-width: 520px;
  padding: 10px;
  background: repeating-linear-gradient(45deg, #ffcc00 0 18px, #000000 18px 36px);
  border: 2px solid #ffcc00;
}
.construction span {
  display: inline-block;
  padding: 4px 14px;
  background: #000000;
  color: #ffcc00;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  letter-spacing: 0.08em;
  animation: retro-blink 1s steps(1) infinite;
}

.retro-updated {
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  font-size: 0.85rem;
  color: #cccccc;
}
.blink { color: #ff3333; font-weight: bold; animation: retro-blink 0.8s steps(1) infinite; }

/* ----- Sections ----- */
body.retro .section { padding-top: 40px; }

/* Rainbow divider above every section */
body.retro .section::before {
  content: "";
  display: block;
  height: 6px;
  margin-bottom: 36px;
  background: linear-gradient(90deg, #ff0000, #ff9900, #ffff00, #00ff00, #00ffff, #3366ff, #cc00ff);
  border: 1px solid #ffffff;
}

body.retro .section-title {
  justify-content: center;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-style: italic;
  color: #ffff00;
  text-shadow: 3px 3px 0 #ff00ff;
}
body.retro .section-title .index,
body.retro .section-title::after { display: none; }
body.retro .title-text::before { content: "~*~ "; color: #00ffff; }
body.retro .title-text::after  { content: " ~*~"; color: #00ffff; }

/* "Table" look for panels */
body.retro .panel {
  background: rgba(0, 0, 80, 0.75);
  border: 4px ridge #c0c0c0;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.retro .timeline .panel::before { display: none; }
body.retro .timeline .panel { padding-left: 26px; }
body.retro .when {
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 0;
  color: #00ff00;
}
body.retro .timeline h3 {
  font-family: "Times New Roman", Times, serif;
  font-size: 1.3rem;
  color: #ffff66;
}
body.retro .org { color: #00ffff; }

.new-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 0 6px;
  background: #ff0000;
  color: #ffff00;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  font-weight: bold;
  transform: rotate(-6deg);
  animation: retro-blink 0.9s steps(1) infinite;
}

/* ----- Contact ----- */
body.retro .contact-email {
  font-family: "Times New Roman", Times, serif;
  color: #66ccff;
  text-shadow: none;
  text-decoration: underline;
}
body.retro .btn-primary { color: #000000; }

body.retro .socials { border-top: 2px groove #c0c0c0; }
body.retro .socials-label {
  font-family: "Times New Roman", Times, serif;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 0;
  text-transform: none;
  color: #ff99ff;
}
body.retro .social-links a {
  font-family: "Comic Sans MS", "Comic Neue", cursive;
  color: #66ccff;
  text-shadow: none;
  text-decoration: underline;
}
body.retro .social-links a::before { content: "🌐 "; }
body.retro .social-links a span { display: none; }

.guestbook {
  margin: 24px 0 0;
  font-family: "Times New Roman", Times, serif;
  font-size: 1.2rem;
  font-weight: bold;
}

/* ----- Footer ----- */
body.retro .footer {
  font-family: "Times New Roman", Times, serif;
  letter-spacing: 0;
  color: #cccccc;
}

.retro-footer { margin-bottom: 28px; }

.retro-copyright {
  margin: 0 0 18px;
  font-family: "Times New Roman", Times, serif;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #c0c0c0;
}
.counter-line { margin: 0 0 20px; font-size: 1rem; }
.hit-counter {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  vertical-align: middle;
  background: #000000;
  border: 2px inset #808080;
}
.hit-counter span {
  display: inline-block;
  width: 1.1em;
  padding: 1px 0;
  background: #1a1a1a;
  color: #33ff33;
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  text-align: center;
}

.webring {
  display: inline-block;
  margin-bottom: 22px;
  padding: 10px 18px;
  background: #800000;
  border: 4px ridge #c0c0c0;
  color: #ffffff;
}
.webring p { margin: 0; }
.webring p + p { margin-top: 4px; }

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  width: 88px;
  height: 31px;
  border: 1px solid #ffffff;
  font-family: Verdana, Arial, sans-serif;
  font-size: 8px;
  line-height: 1.2;
  text-align: center;
}
.badge b { display: block; font-size: 9px; }
.badge-a { background: #003366; color: #ffffff; }
.badge-b { background: #c0c0c0; color: #000000; }
.badge-c { background: #ffffff; color: #000080; }
.badge-d { background: #006600; color: #ffff00; }

/* Sparkle cursor trail (spawned by script.js) */
.sparkle {
  position: fixed;
  z-index: 100;
  pointer-events: none;
  font-size: 14px;
  line-height: 1;
  transform: translate(-50%, -50%);
  animation: sparkle-fall 0.9s ease-out forwards;
}

@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes rainbow { to { background-position: 200% 0; } }
@keyframes retro-blink { 50% { visibility: hidden; } }
@keyframes sparkle-fall {
  to {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx, 0px)), 28px) scale(0.3) rotate(180deg);
  }
}

@media (max-width: 600px) {
  .marquee { font-size: 0.95rem; }
  body.retro .hero-nav a { padding: 6px 12px; }
}

/* ---------- Respect "reduce motion" accessibility setting ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kicker, .hero-nav, .scroll-hint { animation: none; opacity: 1; }
  .cursor, .chevron, .name::before, .name::after { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .topbar { transition: none; }
  .marquee span { animation: none; padding-left: 0; white-space: normal; }
  body.retro .name, .construction span, .blink, .new-badge { animation: none; }
}
