@charset "UTF-8";
/* =========================================================
   Alex Adecer — Neon Vegas Tech
   ========================================================= */

:root {
  /* Color */
  --bg: #07060d;
  --bg-2: #0d0b18;
  --surface: #13101f;
  --surface-2: #1b1730;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f1ff;
  --muted: #a8a2c4;
  --accent: #7c5cff;
  --accent-soft: rgba(124, 92, 255, 0.14);
  --accent-glow: 0 0 12px rgba(124, 92, 255, 0.6), 0 0 40px rgba(124, 92, 255, 0.25);
  --cyan: #22e4ff;
  --gold: #ffc94a;

  /* Type */
  --font-display: "Cinzel", Georgia, "Times New Roman", serif;
  --font-deco: "Cinzel Decorative", "Cinzel", Georgia, serif;
  --font-script: "Yellowtail", "Brush Script MT", cursive;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: clamp(1.125rem, 1rem + 0.4vw, 1.25rem);
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --fs-hero: clamp(2.6rem, 1.2rem + 6.4vw, 6.25rem);

  /* Space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --s-9: 7rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1240px;

  --radius: 14px;
  --radius-lg: 22px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #000; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--accent); color: #000; padding: var(--s-2) var(--s-4); border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: var(--s-4); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Background grid ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 100%);
  opacity: 0.6;
}
.neon-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg-glow {
  position: fixed; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(90px);
}
.bg-glow--a { width: 520px; height: 520px; top: -160px; right: -120px; background: rgba(124, 92, 255, 0.22); }
.bg-glow--b { width: 420px; height: 420px; bottom: -200px; left: -160px; background: rgba(43, 255, 136, 0.12); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--s-9); position: relative; }

.eyebrow {
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: var(--s-2);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; box-shadow: var(--accent-glow); }

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-7); }
.section-title { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; letter-spacing: 0.03em; margin-top: var(--s-3); text-transform: uppercase; }
.section-lede { color: var(--muted); max-width: 44ch; font-size: var(--fs-lg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 0.85rem 1.4rem; border-radius: 999px;
  font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #12001a; box-shadow: var(--accent-glow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 18px rgba(124, 92, 255, 0.8), 0 0 60px rgba(124, 92, 255, 0.35); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn .arrow { transition: transform 0.25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(7, 6, 13, 0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: var(--s-3); font-family: var(--font-display); font-weight: 700; letter-spacing: 0.12em; font-size: 1.05rem; }
.logo-mark {
  width: 36px; height: 36px; color: #0e8a55; flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(124, 92, 255, 0.55));
  transition: transform 0.6s var(--ease-out);
}
.logo:hover .logo-mark { transform: rotate(180deg); }
.nav-links { display: none; gap: var(--s-6); align-items: center; }
.nav-links a:not(.btn) {
  font-family: var(--font-mono); font-size: var(--fs-sm); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  position: relative; padding-block: var(--s-2); transition: color 0.2s;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out);
}
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links .btn { padding: 0.6rem 1.1rem; }

.nav-toggle { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-strong); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--text); position: relative; transition: transform 0.3s, background 0.3s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 72px 0 auto 0; z-index: 49;
  background: rgba(7, 6, 13, 0.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: var(--s-5) var(--gutter) var(--s-6);
  display: grid; gap: var(--s-2);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font-family: var(--font-display); font-size: 1.4rem; text-transform: uppercase; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: 0; color: var(--accent); }

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; display: flex; align-items: center;
  padding-top: calc(72px + var(--s-7)); padding-bottom: var(--s-8);
  position: relative; overflow: hidden;
}
.hero-grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--s-6); } }

.status {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.4rem 0.9rem;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #3dff9a; box-shadow: 0 0 10px #3dff9a; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* Name as a white neon sign in the script face */
.hero-title {
  font-family: var(--font-script); font-weight: 400; font-size: calc(var(--fs-hero) * 1.3);
  letter-spacing: 0; line-height: 0.95; margin-top: var(--s-5);
  color: #fff;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.95),
    0 0 14px rgba(255, 255, 255, 0.7),
    0 0 34px rgba(255, 255, 255, 0.4),
    0 0 70px rgba(124, 92, 255, 0.45);
}
.hero-title { white-space: nowrap; } /* name on a single line */
.hero-grid > * { min-width: 0; } /* let the columns shrink on narrow phones */
@media (max-width: 360px) { .word-reel { font-size: 1.15em; } }
.hero-title .line { display: inline; }
.hero-role { font-family: var(--font-mono); color: var(--muted); margin-top: var(--s-5); font-size: var(--fs-sm); letter-spacing: 0.1em; text-transform: uppercase; }
.hero-role strong { color: var(--text); font-weight: 600; white-space: nowrap; } /* wrap between titles, never inside one */

.word-reel-line { margin-top: var(--s-4); font-size: var(--fs-xl); font-weight: 300; display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.4em; }
.word-reel {
  display: inline-block; position: relative; height: 1.7em; overflow: hidden; vertical-align: bottom;  min-width: 10ch; font-size: 1.4em; line-height: 1;
}
.word-reel__list { display: block; will-change: transform; }
.word-reel__item {
  display: block; height: 1.7em; line-height: 1.55em; white-space: nowrap; padding: 0 0.35em 0 0.25em;
  font-family: var(--font-script); font-weight: 400; color: #5dffa8;
  text-shadow: 0 0 6px rgba(43, 255, 136, 0.9), 0 0 22px rgba(43, 255, 136, 0.55);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

/* ---------- Slot machine (cabinet) ---------- */
.slot { --chrome: linear-gradient(180deg, #fbfbfe 0%, #a3a1ae 28%, #45434f 55%, #8e8c99 78%, #e2e1e8 100%);
  position: relative; width: 100%; max-width: 430px; margin-inline: auto; }

/* Topper: marquee sign with chasing bulbs */
.slot-topper {
  position: relative; margin: 0 16px; padding: 10px 14px 9px; display: grid; gap: 6px; text-align: center;
  border: 4px solid transparent; border-radius: 30px 30px 6px 6px;
  background: radial-gradient(ellipse at 50% 120%, #0f4a33 0%, #06180f 70%) padding-box, var(--chrome) border-box;
  box-shadow: 0 0 34px rgba(124, 92, 255, 0.35), inset 0 0 22px rgba(124, 92, 255, 0.3);
}
.slot-brand {
  font-family: var(--font-script); font-size: 2.1rem; line-height: 1.1; color: #fff;
  text-shadow: 0 0 4px #fff, 0 0 12px rgba(255, 255, 255, 0.7), 0 0 30px rgba(124, 92, 255, 0.6);
}
.slot-brand span { color: #5dffa8; text-shadow: 0 0 6px rgba(43, 255, 136, 0.9), 0 0 22px rgba(43, 255, 136, 0.6); }
.slot-lights { display: flex; justify-content: space-between; padding-inline: 6px; }
.slot-lights i {
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff8dc, #ffc94a 45%, #9a5c14);
  animation: chase 1.4s steps(1) infinite;
}
.slot-lights i:nth-child(even) { animation-delay: -0.7s; }
.slot.is-spinning .slot-lights i { animation-duration: 0.36s; }
.slot.is-spinning .slot-lights i:nth-child(even) { animation-delay: -0.18s; }
.slot.is-win .slot-lights i { animation: winflash 0.25s 8 alternate, chase 1.4s steps(1) 2s infinite; }
@keyframes chase {
  0% { opacity: 1; box-shadow: 0 0 6px #ffc94a, 0 0 14px rgba(255, 201, 74, 0.6); }
  50% { opacity: 0.3; box-shadow: none; }
}
@keyframes winflash {
  from { opacity: 1; box-shadow: 0 0 8px #ffc94a, 0 0 18px rgba(255, 201, 74, 0.8); }
  to { opacity: 0.25; box-shadow: none; }
}

/* Lacquered cabinet body with chrome trim */
.slot-cabinet {
  position: relative; padding: 16px 16px 14px; margin-top: -3px;
  border: 4px solid transparent; border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14), transparent 9%, transparent 91%, rgba(255, 255, 255, 0.1)) padding-box,
    linear-gradient(180deg, #0f5c3e 0%, #093523 38%, #041a10 100%) padding-box,
    var(--chrome) border-box;
  box-shadow: 0 34px 60px -24px rgba(0, 0, 0, 0.85), 0 0 50px -12px rgba(124, 92, 255, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.25), inset 0 0 36px rgba(0, 0, 0, 0.45);
}

/* LED display */
.slot-display { display: flex; gap: 8px; margin-top: 14px; }
.slot-readout, .slot-credits {
  border-radius: 8px; padding: 7px 11px; min-width: 0;
  background: radial-gradient(rgba(255, 255, 255, 0.05) 0.7px, transparent 1px) 0 0 / 3px 3px, #0b0707;
  border: 2px solid #1c1a21; box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.95), 0 1px 0 rgba(255, 255, 255, 0.15);
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; line-height: 1.45;
}
.slot-readout { flex: 1; font-size: 0.66rem; color: #ff9d2e; text-shadow: 0 0 6px rgba(255, 140, 30, 0.8); }
.slot-readout strong {
  display: block; font-size: 0.82rem; color: #ffd36b; text-shadow: 0 0 6px rgba(255, 190, 60, 0.9);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.slot-readout a { color: #5dffa8; text-shadow: 0 0 6px rgba(43, 255, 136, 0.8); }
.slot-readout a:hover { text-decoration: underline; }
.slot.is-win .slot-readout strong { animation: winflash-text 0.25s 6 alternate; }
@keyframes winflash-text { to { opacity: 0.35; } }
.slot-credits { width: 74px; flex-shrink: 0; text-align: center; font-size: 0.6rem; color: #ff9d2e; text-shadow: 0 0 6px rgba(255, 140, 30, 0.7); }
.slot-credits span { display: block; }
.slot-credits b { display: block; font-size: 1.25rem; font-weight: 600; letter-spacing: 0.08em; color: #ff3355; text-shadow: 0 0 6px rgba(255, 51, 85, 0.9), 0 0 14px rgba(255, 51, 85, 0.5); }

/* Button deck */
.slot-deck {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 12px; padding: 10px 12px 10px 16px; border-radius: 12px;
  background: linear-gradient(180deg, #2e2a37 0%, #15131b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -4px 10px rgba(0, 0, 0, 0.6), 0 4px 10px rgba(0, 0, 0, 0.45);
}
.deck-label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.slot-pull {
  flex-shrink: 0; width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center;
  /* polished gold button */
  background: radial-gradient(circle at 50% 30%, #fff7d6 0%, #ffd56a 30%, #e0a42a 62%, #a8700f 86%, #6e4806 100%);
  box-shadow:
    0 0 0 4px #d3d1db, 0 0 0 6px #4a4856, 0 0 0 7px #a9a7b4,  /* chrome bezel */
    0 6px 0 6px #1a1820, 0 0 28px 8px rgba(255, 201, 74, 0.38),
    inset 0 -6px 10px rgba(90, 50, 0, 0.45), inset 0 4px 6px rgba(255, 255, 255, 0.6);
  font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: #3a2400;
  text-shadow: 0 1px 0 rgba(255, 240, 200, 0.7);
  transition: transform 0.1s, filter 0.2s;
}
.slot-pull:hover { filter: brightness(1.12); }
.slot-pull:active { transform: translateY(3px) scale(0.97); }
.slot-pull[disabled] { filter: saturate(0.6) brightness(0.85); cursor: wait; }

/* Coin tray */
.slot-tray {
  height: 20px; margin: -4px 30px 0; border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, #121016 0%, #34323d 35%, #9b99a6 80%, #dedde4 100%);
  box-shadow: inset 0 6px 10px rgba(0, 0, 0, 0.75), 0 8px 18px rgba(0, 0, 0, 0.5);
}

/* Side lever */
.slot-lever { position: absolute; right: -26px; top: 120px; width: 24px; height: 180px; display: none; cursor: pointer; }
.lever-hub {
  position: absolute; left: -6px; bottom: 0; width: 26px; height: 44px; border-radius: 6px 12px 12px 6px;
  background: linear-gradient(90deg, #3d3b48, #e7e6ee 45%, #6d6b78); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.lever-arm {
  position: absolute; left: 5px; bottom: 30px; width: 8px; height: 132px; border-radius: 4px;
  background: linear-gradient(90deg, #5a5866, #f6f5fa 45%, #6d6b78);
  transform-origin: bottom; transition: transform 0.25s var(--ease-out);
}
.lever-knob {
  position: absolute; left: -5px; top: 4px; width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c9ffe2, #2bd47f 45%, #05532d);
  box-shadow: 0 0 14px rgba(43, 255, 136, 0.6), 0 4px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s var(--ease-out);
}
.slot.is-pulled .lever-arm { transform: scaleY(0.3); }
.slot.is-pulled .lever-knob { transform: translateY(92px); }
@media (min-width: 560px) { .slot-lever { display: block; } }

/* Reel window: chrome bezel, three drums */
.reels {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px;
  padding: 9px; border-radius: 14px; position: relative;
  background: var(--chrome);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 24px -8px rgba(0, 0, 0, 0.9);
}
.reel {
  position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 3 / 5.4;
  background: #ece5d6; /* the printed reel band */
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.25);
}
/* curved-drum shading: symbols darken as they roll over the top and bottom */
.reel::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(8, 6, 14, 0.95) 0%, rgba(8, 6, 14, 0.6) 13%, rgba(8, 6, 14, 0) 30%,
    rgba(255, 255, 255, 0.12) 46%, rgba(255, 255, 255, 0) 56%,
    rgba(8, 6, 14, 0) 70%, rgba(8, 6, 14, 0.6) 87%, rgba(8, 6, 14, 0.95) 100%);
}
/* glass reflection */
.reel::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0.16) 0 14%, rgba(255, 255, 255, 0) 26%);
}
.reel-strip { position: absolute; inset: 0 0 auto 0; will-change: transform; }
.reel-strip.is-blur { filter: url(#reel-blur) brightness(1.05); }
.reel-cell { aspect-ratio: 3 / 4; width: 100%; padding: 5px 6px; border-bottom: 1px solid rgba(0, 0, 0, 0.12); }
.reel-cell img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; border-radius: 3px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45); }
.slot.is-win .reel { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.55), 0 0 0 2px #ffc94a, 0 0 16px rgba(255, 201, 74, 0.55); }

/* Floating chips & cards */
.floaters { position: absolute; inset: 0; pointer-events: none; z-index: -1; opacity: 0.35; }
@media (min-width: 980px) { .floaters { opacity: 1; } }
@media (max-width: 979px) { .floaters { display: none; } } /* stacked layouts have no free space around the text */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.floater {
  position: absolute;
  transform: translate3d(calc(var(--mx, 0) * var(--depth, 10px)), calc(var(--my, 0) * var(--depth, 10px)), 0);
  transition: transform 0.6s var(--ease-out);
}
.floater .art {
  display: block; width: var(--w, 64px); height: auto; overflow: visible;
  filter: drop-shadow(0 16px 14px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 18px rgba(124, 92, 255, 0.22));
  animation: drift 10s ease-in-out infinite; animation-delay: var(--delay, 0s);
}
.floater .art--card { filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 16px rgba(124, 92, 255, 0.18)); }
@keyframes drift {
  0%, 100% { transform: perspective(500px) translateY(0) rotate(var(--rot, 0deg)) rotateX(0deg) rotateY(0deg); }
  50% { transform: perspective(500px) translateY(-18px) rotate(calc(var(--rot, 0deg) + 8deg)) rotateX(14deg) rotateY(-22deg); }
}

.scroll-cue {
  position: absolute; left: 50%; bottom: var(--s-5); transform: translateX(-50%);
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase;
  display: none; flex-direction: column; align-items: center; gap: var(--s-2);
}
.scroll-cue::after { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--accent), transparent); animation: cue 2s infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (min-width: 980px) and (min-height: 760px) { .scroll-cue { display: flex; } }

/* ---------- LED ticker ---------- */
.ticker { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding-block: var(--s-4); }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker-track span {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  font-size: clamp(1rem, 0.8rem + 1vw, 1.5rem); padding-inline: var(--s-5); white-space: nowrap; color: var(--muted);
  display: inline-flex; align-items: center; gap: var(--s-5);
}
.ticker-track span::after { content: "\25C6"; color: var(--accent); font-size: 0.6em; text-shadow: var(--accent-glow); }
.ticker-track span:nth-child(3n + 1) { color: var(--text); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Work grid: a dealt hand of playing cards ---------- */
/* columns are card-width and pushed to the edges, so the outer cards line up with the section heading */
.work-grid {
  display: grid; gap: var(--s-7) var(--s-5); justify-content: space-between;
  grid-template-columns: repeat(2, minmax(0, 270px));
}
@media (min-width: 900px) { .work-grid { grid-template-columns: repeat(3, minmax(0, 270px)); row-gap: var(--s-8); } }
@media (max-width: 420px) { .work-grid { gap: var(--s-6) var(--s-4); } }

.work-card { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 270px; isolation: isolate; }

/* glow behind the card that follows the cursor */
.work-card::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 0; width: 120%; max-width: 380px; aspect-ratio: 1;
  transform: translate(-50%, -6%);
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 40%), var(--glow, rgba(124, 92, 255, 0.55)) 0%, transparent 55%);
  filter: blur(18px); opacity: 0; transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}
.work-card:hover::before, .work-card:focus-within::before { opacity: 1; }

/* the card itself: dark lacquer face, neon ink */
.play-card {
  --ink: #5dffa8; --ink-glow: rgba(43, 255, 136, 0.55);
  container-type: inline-size;
  position: relative; width: 100%; max-width: 270px; aspect-ratio: 5 / 7;
  padding: 15% 15%;
  border-radius: 6% / 4.3%;
  background:
    radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.07), transparent 45%),
    linear-gradient(150deg, #1f1a33 0%, #141022 55%, #0b0913 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 5px rgba(255, 255, 255, 0.02),
    0 18px 34px -12px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.5);
  /* straight at rest; tilts only on hover (see below) */
  transform: perspective(900px) rotate(0deg) rotateX(0deg) rotateY(0deg);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.45s;
}
.play-card--red { --ink: #a993ff; --ink-glow: rgba(124, 92, 255, 0.6); }
.work-card:has(.play-card--black) { --glow: rgba(43, 255, 136, 0.4); }
.work-card:has(.play-card--red) { --glow: rgba(124, 92, 255, 0.55); }
.work-card:hover .play-card, .work-card:focus-within .play-card {
  transform: perspective(900px) translateY(-10px) rotate(var(--deal, 0deg)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  border-color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 30px 50px -16px rgba(0, 0, 0, 0.85), 0 0 34px -4px var(--ink-glow);
}

/* framed artwork, like the picture on a face card */
.pc-art {
  position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 3px;
  outline: 1.5px solid var(--ink); outline-offset: 4px;
  box-shadow: 0 0 14px -2px var(--ink-glow);
  background: #0b0913;
}
.pc-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform 0.8s var(--ease-out); }
.work-card:hover .pc-art img { transform: scale(1.05); }
.pc-art::after { /* gloss */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 32%);
}

/* corner index: rank over suit, sized to the card */
.pc-index {
  position: absolute; display: flex; flex-direction: column; align-items: center; line-height: 1;
  width: 10%; color: var(--ink);
  text-shadow: 0 0 6px var(--ink-glow);
}
.pc-index b { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 11cqw; letter-spacing: -0.04em; }
.pc-index svg { width: 8.5cqw; fill: currentColor; margin-top: 1.2cqw; filter: drop-shadow(0 0 3px var(--ink-glow)); }
.pc-index--tl { top: 3.5%; left: 3%; }
.pc-index--br { bottom: 3.5%; right: 3%; transform: rotate(180deg); }

/* caption under the card */
.work-body { text-align: center; margin-top: var(--s-5); max-width: 300px; }
.work-meta { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.work-title { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 700; text-transform: uppercase; margin-top: var(--s-2); letter-spacing: 0.02em; }
.work-client { color: var(--muted); font-size: var(--fs-sm); margin-top: var(--s-1); }
.work-link::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card is clickable */
.work-link:focus-visible { outline: none; }
.work-card:has(.work-link:focus-visible) .play-card { outline: 2px solid var(--cyan); outline-offset: 6px; }

@media (max-width: 600px) {
  .work-title { font-size: var(--fs-md); }
  .work-body { margin-top: var(--s-4); }
}

.center-cta { display: flex; justify-content: center; margin-top: var(--s-7); }

/* ---------- Testimonials ---------- */
.testimonials { background: linear-gradient(180deg, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent); }
.quote-stage { position: relative; display: grid; }
.quote {
  grid-area: 1 / 1; max-width: 920px; margin: 0; /* reset the browser's default <figure> indent */
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), visibility 0.6s;
}
.quote.is-active { opacity: 1; visibility: visible; transform: none; }
.quote blockquote { margin: 0; font-size: clamp(1.35rem, 1rem + 1.6vw, 2.2rem); line-height: 1.35; font-weight: 300; letter-spacing: -0.01em; }
.quote blockquote::before {
  content: "\201C"; display: block; font-family: var(--font-display); font-size: 4rem; line-height: 0.6; color: var(--accent); text-shadow: var(--accent-glow); margin-bottom: var(--s-4);
}
.quote figcaption { margin-top: var(--s-5); display: flex; align-items: center; gap: var(--s-3); }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  background: linear-gradient(135deg, var(--accent), #0e8a55); color: #fff;
}
.quote-name { font-weight: 600; }
.quote-role { color: var(--muted); font-size: var(--fs-sm); }
.quote-controls { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-7); }
.quote-dots { display: flex; gap: var(--s-2); }
.quote-dot { width: 32px; height: 4px; border-radius: 2px; background: var(--line-strong); transition: background 0.3s, box-shadow 0.3s; position: relative; }
.quote-dot::before { content: ""; position: absolute; inset: -10px 0; }
.quote-dot[aria-current="true"] { background: var(--accent); box-shadow: var(--accent-glow); }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); transition: border-color 0.2s, color 0.2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Contact ---------- */
.contact { text-align: center; overflow: hidden; }
.contact .eyebrow { display: flex; } /* label stays left like the other sections */
/* White neon script, matching the hero name; the <em> word glows pink */
.contact-title {
  font-family: var(--font-script); font-weight: 400;
  font-size: clamp(3rem, 1.4rem + 7vw, 7rem); line-height: 1.05; margin-top: var(--s-4);
  color: #fff;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.95),
    0 0 14px rgba(255, 255, 255, 0.7),
    0 0 34px rgba(255, 255, 255, 0.4),
    0 0 70px rgba(124, 92, 255, 0.45);
}
h2.contact-title em { font-size: 1em; }
.contact-title em, .page-title span.script {
  font-family: var(--font-script); font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0;
  color: #5dffa8; -webkit-text-stroke: 0; font-size: 1.15em; padding-inline: 0.05em;
  text-shadow: 0 0 6px rgba(43, 255, 136, 0.9), 0 0 26px rgba(43, 255, 136, 0.6), 0 0 60px rgba(43, 255, 136, 0.3);
}
.contact-lede { color: var(--muted); max-width: 52ch; margin: var(--s-5) auto 0; font-size: var(--fs-lg); }
.email-box {
  display: inline-flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; justify-content: center;
  margin-top: var(--s-7); padding: var(--s-2); border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface);
  max-width: 100%;
}
.email-link {
  font-family: var(--font-mono); font-size: clamp(0.8rem, 0.6rem + 1.2vw, 1.25rem); padding: 0.6rem 1rem; overflow-wrap: anywhere;
  transition: color 0.2s, text-shadow 0.2s;
}
.email-link:hover { color: var(--accent); text-shadow: var(--accent-glow); }
.copy-btn { padding: 0.6rem 1.1rem; }
.contact-links { display: flex; justify-content: center; gap: var(--s-3); margin-top: var(--s-6); flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--s-6); }
.footer-inner { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; justify-content: space-between; }
.footer-inner p, .footer-nav a { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.footer-nav { display: flex; gap: var(--s-5); flex-wrap: wrap; }
.footer-nav a:hover { color: var(--accent); }
.footer-nav a { padding-block: 0.75rem; } /* comfortable tap target on phones */

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: var(--s-6); z-index: 90;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--surface-2); border: 1px solid var(--accent); box-shadow: var(--accent-glow);
  padding: 0.7rem 1.2rem; border-radius: 999px; font-family: var(--font-mono); font-size: var(--fs-sm);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   Projects page
   ========================================================= */
.page-hero { padding-top: calc(72px + var(--s-8)); padding-bottom: var(--s-7); }
/* Same white neon script as the homepage headline */
.page-title {
  font-family: var(--font-script); font-weight: 400;
  font-size: clamp(3rem, 1.4rem + 7vw, 7rem); line-height: 1.05; margin-top: var(--s-4);
  color: #fff;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.95),
    0 0 14px rgba(255, 255, 255, 0.7),
    0 0 34px rgba(255, 255, 255, 0.4),
    0 0 70px rgba(124, 92, 255, 0.45);
}
h1.page-title span.script { font-size: 1em; }
.page-lede { color: var(--muted); max-width: 58ch; margin-top: var(--s-5); font-size: var(--fs-lg); }

.filters {
  position: sticky; top: 72px; z-index: 40;
  background: rgba(7, 6, 13, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-block: 1px solid var(--line);
}
.filter-list { display: flex; gap: var(--s-2); overflow-x: auto; padding-block: var(--s-3); scrollbar-width: none; }
.filter-list::-webkit-scrollbar { display: none; }
.filter-btn {
  flex-shrink: 0; padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--text); }
.filter-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #12001a; box-shadow: var(--accent-glow); }
.filter-count { opacity: 0.6; margin-left: 0.3em; }

.case { padding-block: var(--s-8); border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
.case[hidden] { display: none; }
.case-head { display: grid; gap: var(--s-6); margin-bottom: var(--s-6); }
@media (min-width: 900px) { .case-head { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }
.case-index { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--accent); letter-spacing: 0.14em; text-transform: uppercase; }
.case-title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: var(--fs-2xl); margin-top: var(--s-3); letter-spacing: 0.01em; }
.case-summary { color: var(--muted); font-size: var(--fs-lg); margin-top: var(--s-4); max-width: 52ch; }
.case-details { display: grid; gap: var(--s-4); align-content: start; }
.detail { display: grid; gap: var(--s-1); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.detail:last-child { border-bottom: 0; }
.detail dt { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.detail dd { margin: 0; }
.dd-note { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-left: 0.35em; white-space: nowrap; }
@media (min-width: 600px) { .detail { grid-template-columns: 140px 1fr; gap: var(--s-4); } }

/* ---------- Project slideshow: one large image at a time, crossfading every 6s ---------- */
.gallery {
  position: relative; overflow: hidden; isolation: isolate;
  height: clamp(380px, 72vh, 780px);
  border-radius: var(--radius-lg); border: 1px solid var(--line-strong);
  background: #0b0913;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
}
@media (max-width: 600px) { .gallery { height: auto; aspect-ratio: 4 / 5; } }
.gallery-item {
  position: absolute; inset: 0; margin: 0; padding: 0; border: 0; background: none; overflow: hidden;
  opacity: 0; visibility: hidden; cursor: zoom-in;
  transition: opacity 1.2s ease, visibility 1.2s;
}
.gallery-item.is-active { opacity: 1; visibility: visible; z-index: 1; }
/* blurred copy of the image fills the spare space, so posters of any shape look framed, never cropped */
.gallery-item::before {
  content: ""; position: absolute; inset: -40px;
  background: var(--src) center / cover no-repeat;
  filter: blur(40px) brightness(0.45) saturate(1.2);
}
.gallery-item img {
  position: relative; width: 100%; height: 100%; object-fit: contain;
  padding: var(--s-4);
  transition: transform 6s ease-out;
}
.gallery-item.is-active img { transform: scale(1.03); } /* slow, subtle push-in while on screen */
@media (prefers-reduced-motion: reduce) { .gallery-item.is-active img { transform: none; } }

/* progress bar: fills over the 6 seconds before the next image */
.slide-progress {
  position: absolute; left: 0; bottom: 0; z-index: 3; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--accent), #2bff88);
  transform-origin: left; transform: scaleX(0);
}
.slide-progress.is-running { animation: slide-progress 6s linear forwards; }
.gallery.is-paused .slide-progress { animation-play-state: paused; }
@keyframes slide-progress { to { transform: scaleX(1); } }

.slide-controls { display: flex; align-items: center; justify-content: center; gap: var(--s-4); margin-top: var(--s-4); }
.slide-dots { display: flex; gap: var(--s-2); flex-wrap: wrap; justify-content: center; }
.slide-dot { width: 26px; height: 4px; border-radius: 2px; background: var(--line-strong); position: relative; transition: background 0.3s, box-shadow 0.3s; }
.slide-dot::before { content: ""; position: absolute; inset: -12px -2px; } /* bigger tap target */
.slide-dot[aria-current="true"] { background: var(--accent); box-shadow: var(--accent-glow); }
.slide-count { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.12em; color: var(--muted); min-width: 6ch; text-align: center; white-space: nowrap; }
@media (max-width: 520px) { .slide-dots { display: none; } } /* phones: arrows + counter only */

/* ---------- What I Do (homepage) ---------- */
#services { padding-top: 0; }
.services-grid { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  padding: var(--s-6); border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at top left, rgba(43, 255, 136, 0.07), transparent 60%), var(--surface);
  border: 1px solid var(--line-strong);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out);
}
.service-card:hover { border-color: rgba(43, 255, 136, 0.45); box-shadow: 0 20px 50px -24px rgba(43, 255, 136, 0.35); transform: translateY(-4px); }
.service-icon {
  width: 44px; height: 44px; fill: none; stroke: #5dffa8; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(43, 255, 136, 0.6));
}
.service-card h3 { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; margin-top: var(--s-4); }
.service-card p { color: var(--muted); margin-top: var(--s-3); }

/* ---------- About card (homepage) ---------- */
#about { padding-top: 0; }
.about-card {
  padding: var(--s-7) var(--s-6); border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at top right, var(--accent-soft), transparent 60%), var(--surface);
  border: 1px solid var(--line-strong);
  display: grid; gap: var(--s-5);
}
@media (min-width: 900px) { .about-card { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-8); align-items: start; } }
.about-card h2 { font-family: var(--font-display); text-transform: uppercase; font-size: var(--fs-xl); margin-top: var(--s-3); line-height: 1.15; }
.about-card h2 em {
  font-family: var(--font-script); font-style: normal; font-weight: 400; text-transform: none; font-size: 1.35em;
  color: #5dffa8; text-shadow: 0 0 6px rgba(43, 255, 136, 0.9), 0 0 22px rgba(43, 255, 136, 0.5);
}
.about-card p { color: var(--muted); }
.about-card .eyebrow { color: var(--accent); }
.about-card p + p { margin-top: var(--s-4); }
.about-tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.about-tags li {
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.4rem 0.8rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(4, 3, 8, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: var(--s-7) var(--s-4);
  opacity: 0; transition: opacity 0.3s;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox img { max-width: min(1200px, 100%); max-height: 82vh; width: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(124, 92, 255, 0.2); }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; background: rgba(7, 6, 13, 0.7); }
.lightbox-close { top: var(--s-4); right: var(--s-4); }
.lightbox-prev { left: var(--s-3); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--s-3); top: 50%; transform: translateY(-50%); }
.lightbox figure { margin: 0; display: grid; justify-items: center; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
  .work-card { transform: none !important; }
}
