/* ============================================================
   ROBOARM ENTERTAINMENT — roboarmjo.com
   Design system: "Arcade Noir"
   Ink canvas · one neon accent per section · Space Grotesk / Manrope
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* brand */
  --ink: #0E0E0F;
  --ink-2: #16161A;
  --ink-3: #1E1E24;
  --paper: #F7F5F2;
  --stone: #E4E1DC;
  --neon: #BA3173;      /* magenta — the loud one */
  --neon-soft: rgba(186, 49, 115, 0.14);
  --gold: #E9AF3A;
  --blue: #1F4891;
  --blue-lift: #4A6FBF; /* blue lifted for dark bg contrast */

  /* semantic */
  --bg: var(--ink);
  --bg-card: var(--ink-2);
  --text: rgba(247, 245, 242, 0.92);
  --text-2: rgba(247, 245, 242, 0.64);
  --text-3: rgba(247, 245, 242, 0.40);
  --border: rgba(247, 245, 242, 0.10);
  --border-2: rgba(247, 245, 242, 0.18);

  /* type */
  --f-display: "Space Grotesk", sans-serif;
  --f-body: "Manrope", sans-serif;
  --fs-hero: clamp(2.6rem, 8.5vw, 7rem);
  --fs-h1: clamp(2.2rem, 6vw, 4.5rem);
  --fs-h2: clamp(1.7rem, 4vw, 3rem);
  --fs-h3: clamp(1.15rem, 2vw, 1.5rem);
  --fs-body: clamp(1rem, 1.1vw, 1.125rem);
  --fs-small: 0.875rem;
  --fs-label: 0.72rem;

  /* space (4px base) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px; --s11: 176px;

  /* layout */
  --max: 1240px;
  --max-text: 720px;
  --r-sm: 4px; --r-md: 10px; --r-lg: 18px;

  /* motion */
  --t-fast: 150ms; --t-med: 300ms; --t-slow: 600ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-arcade: steps(4, end);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--neon); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--paper);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
p { max-width: 65ch; }
strong { color: var(--paper); }

/* film grain — static data-URI, near-zero cost */
body::after {
  content: "";
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Utilities ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--s5); }
.section { padding: var(--s10) 0; position: relative; }
.section--tight { padding: var(--s8) 0; }

/* HUD label — the arcade system's small-caps tag */
.hud {
  font-family: var(--f-display);
  font-size: var(--fs-label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s5);
}
.hud::before {
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
}
.hud--neon { color: var(--neon); }
.hud--gold { color: var(--gold); }
.hud--blue { color: var(--blue-lift); }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--text-2); line-height: 1.6; }

/* ---------- Buttons — arcade cabinet press states ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  position: relative;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast);
}
.btn--start {
  background: var(--neon);
  color: #fff;
  box-shadow: 0 6px 0 #7d1f4d, 0 12px 32px rgba(186, 49, 115, 0.35);
}
.btn--start:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #7d1f4d, 0 16px 40px rgba(186, 49, 115, 0.45); }
.btn--start:active { transform: translateY(4px); box-shadow: 0 2px 0 #7d1f4d, 0 6px 16px rgba(186, 49, 115, 0.3); }
.btn--ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--border-2);
}
.btn--ghost:hover { border-color: var(--paper); transform: translateY(-2px); }
.btn--gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 6px 0 #9c7422, 0 12px 32px rgba(233, 175, 58, 0.3);
}
.btn--gold:hover { transform: translateY(-2px); }
.btn--gold:active { transform: translateY(4px); box-shadow: 0 2px 0 #9c7422; }
.btn .blink { animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Preloader — score counter ---------- */
#loader {
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  transition: transform 700ms var(--ease);
}
#loader.done { transform: translateY(-100%); }
#loader .score {
  font-family: var(--f-display);
  font-variant-numeric: tabular-nums;
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  color: var(--paper);
}
#loader .tag {
  font-family: var(--f-display);
  font-size: var(--fs-label);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--neon);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 900;
  padding: var(--s4) 0;
  transition: background var(--t-med), backdrop-filter var(--t-med), padding var(--t-med);
}
.nav.scrolled {
  background: rgba(14, 14, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: var(--s3) 0;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: none; align-items: center; gap: var(--s6); list-style: none; }
.nav__links a {
  font-family: var(--f-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color var(--t-fast);
  position: relative;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--paper); }
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--neon);
}
.nav__cta { display: none; }
.nav__burger {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav__burger span { width: 26px; height: 2px; background: var(--paper); transition: transform var(--t-med) var(--ease), opacity var(--t-med); }
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; padding: 11px 22px; font-size: 0.78rem; }
  .nav__burger { display: none; }
}

/* mobile menu */
.mobmenu {
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 890;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--s6);
  transform: translateY(-100%);
  transition: transform 500ms var(--ease);
}
.mobmenu.open { transform: translateY(0); }
.mobmenu a {
  font-family: var(--f-display);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 600;
  color: var(--paper);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--border);
}
.mobmenu a span { color: var(--text-3); font-size: 0.9rem; margin-right: var(--s4); font-variant-numeric: tabular-nums; }
.mobmenu .btn { margin-top: var(--s6); justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero__bg {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 78% 18%, rgba(186, 49, 115, 0.16), transparent 60%),
    radial-gradient(ellipse 45% 40% at 15% 85%, rgba(31, 72, 145, 0.20), transparent 65%),
    radial-gradient(ellipse 30% 25% at 60% 70%, rgba(233, 175, 58, 0.07), transparent 60%);
}
.hero__grid {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(247,245,242,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,245,242,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}
.hero__title {
  font-size: var(--fs-hero);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-wrap: balance;
}
.hero__title .accent { color: var(--neon); }
.hero__sub { margin-top: var(--s6); }
.hero__cta { margin-top: var(--s7); display: flex; gap: var(--s4); flex-wrap: wrap; }
.hero__foot {
  position: absolute; bottom: var(--s5); left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: flex-end;
  font-family: var(--f-display);
  font-size: var(--fs-label);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-3);
}
.scrollcue { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; }
.scrollcue::after {
  content: ""; width: 1px; height: 36px;
  background: linear-gradient(var(--text-3), transparent);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* page hero (subpages) */
.phero { padding: calc(var(--s11)) 0 var(--s9); position: relative; overflow: hidden; }
.phero h1 { font-size: var(--fs-h1); max-width: 16ch; text-wrap: balance; }
.phero .lead { margin-top: var(--s5); }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: var(--s4) 0;
  display: flex;
}
.marquee__track {
  display: flex;
  gap: var(--s7);
  white-space: nowrap;
  flex-shrink: 0;
  padding-right: var(--s7);
  animation: marquee 28s linear infinite;
  font-family: var(--f-display);
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
}
.marquee__track .dot { color: var(--neon); }
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- Bento grid (services) ---------- */
.bento {
  display: grid;
  gap: var(--s4);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(12, 1fr); }
  .bento__card:nth-child(1) { grid-column: span 7; }
  .bento__card:nth-child(2) { grid-column: span 5; }
  .bento__card:nth-child(3) { grid-column: span 5; }
  .bento__card:nth-child(4) { grid-column: span 7; }
}
.bento__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  padding: var(--s6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med);
}
.bento__card:hover { transform: translateY(-6px); border-color: var(--border-2); }
.bento__num {
  position: absolute; top: var(--s5); right: var(--s5);
  font-family: var(--f-display);
  font-size: var(--fs-label);
  letter-spacing: 0.2em;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.bento__card h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: var(--s3); }
.bento__card p { color: var(--text-2); font-size: 0.98rem; max-width: 42ch; }
.bento__go {
  margin-top: var(--s5);
  font-family: var(--f-display);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap var(--t-fast) var(--ease);
}
.bento__card:hover .bento__go { gap: 14px; }
.bento__card--film { background: linear-gradient(160deg, var(--ink-2) 55%, rgba(186,49,115,0.12)); }
.bento__card--film .bento__go { color: var(--neon); }
.bento__card--ai { background: linear-gradient(160deg, var(--ink-2) 55%, rgba(31,72,145,0.22)); }
.bento__card--ai .bento__go { color: var(--blue-lift); }
.bento__card--events { background: linear-gradient(160deg, var(--ink-2) 55%, rgba(233,175,58,0.10)); }
.bento__card--events .bento__go { color: var(--gold); }
/* the RoboCandy portal card — deliberately breaks the dark system */
.bento__card--candy {
  background: linear-gradient(150deg, #2A2450 0%, #4A3A7A 45%, #8E5FA8 100%);
  border-color: rgba(255, 255, 255, 0.18);
}
.bento__card--candy::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 35% at 80% 20%, rgba(255, 182, 220, 0.35), transparent 65%),
    radial-gradient(ellipse 40% 30% at 20% 90%, rgba(140, 220, 255, 0.22), transparent 60%);
}
.bento__card--candy h3, .bento__card--candy p { position: relative; }
.bento__card--candy p { color: rgba(255, 255, 255, 0.82); }
.bento__card--candy .bento__go { color: #FFD9EC; position: relative; }

/* ---------- Levels (scroll story) ---------- */
.levels { display: grid; gap: var(--s2); counter-reset: lvl; }
.level {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s5);
  align-items: baseline;
  padding: var(--s6) var(--s5);
  border-top: 1px solid var(--border);
}
.level:last-child { border-bottom: 1px solid var(--border); }
.level__tag {
  font-family: var(--f-display);
  font-size: var(--fs-label);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.level h3 { font-size: clamp(1.5rem, 3.4vw, 2.6rem); font-weight: 600; }
.level p { color: var(--text-2); margin-top: var(--s3); }

/* ---------- Split section ---------- */
.split { display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--rev > *:first-child { order: 2; } }
.split__media { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); }
.split__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.split__media:hover img { transform: scale(1.04); }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s4);
  text-align: center;
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: var(--s6) var(--s4); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-card); }
.stat__num {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: var(--fs-small); color: var(--text-2); margin-top: var(--s2); }

/* ---------- Cards / grids ---------- */
.grid3 { display: grid; gap: var(--s4); }
@media (min-width: 700px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.grid2 { display: grid; gap: var(--s4); }
@media (min-width: 700px) { .grid2 { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s6);
  transition: transform var(--t-med) var(--ease), border-color var(--t-med);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); }
.card h3 { margin-bottom: var(--s3); }
.card p { color: var(--text-2); font-size: 0.98rem; }
.card .k {
  font-family: var(--f-display);
  font-size: var(--fs-label);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-3);
  display: block; margin-bottom: var(--s4);
}

/* media placeholder slot — styled, swappable */
.slot {
  position: relative;
  border: 1px dashed var(--border-2);
  border-radius: var(--r-md);
  min-height: 260px;
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(247,245,242,0.02) 14px 28px);
}
.slot span {
  font-family: var(--f-display);
  font-size: var(--fs-label);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-3);
  text-align: center; padding: var(--s4);
}

/* gallery */
.gallery { display: grid; gap: var(--s4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery img { border-radius: var(--r-md); width: 100%; height: 260px; object-fit: cover; border: 1px solid var(--border); }

/* ---------- CTA band ---------- */
.ctaband { text-align: center; position: relative; overflow: hidden; }
.ctaband h2 { font-size: clamp(2rem, 6vw, 4rem); }
.ctaband p { margin: var(--s5) auto 0; }
.ctaband .btn { margin-top: var(--s7); }
.ctaband__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 55% at 50% 100%, var(--neon-soft), transparent 70%);
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: var(--s9) 0 var(--s6); background: #0B0B0C; }
.footer__grid { display: grid; gap: var(--s7); }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; } }
.footer__logo img { height: 34px; }
.footer__tag { margin-top: var(--s4); color: var(--text-2); font-size: var(--fs-small); }
.footer h4 {
  font-size: var(--fs-label);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s4);
  font-weight: 500;
}
.footer ul { list-style: none; display: grid; gap: var(--s3); }
.footer a { color: var(--text-2); font-size: var(--fs-small); transition: color var(--t-fast); }
.footer a:hover { color: var(--paper); }
.footer address { font-style: normal; color: var(--text-2); font-size: var(--fs-small); line-height: 1.8; }
.footer__bottom {
  margin-top: var(--s8);
  padding-top: var(--s5);
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3);
  font-size: 0.78rem; color: var(--text-3);
  font-family: var(--f-display);
  letter-spacing: 0.08em;
}

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s4); }
.form label {
  font-family: var(--f-display);
  font-size: var(--fs-label);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-2);
  display: block; margin-bottom: var(--s2);
}
.form input, .form textarea, .form select {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1rem;
  transition: border-color var(--t-fast);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
  border-color: var(--neon);
}
.form__row { display: grid; gap: var(--s4); }
@media (min-width: 700px) { .form__row { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   ROBOCANDY THEME — the pastel dream world
   ============================================================ */
body.candy {
  --bg: #1B1740;
  --bg-card: #262054;
  --text: rgba(255, 252, 255, 0.94);
  --text-2: rgba(255, 252, 255, 0.72);
  --text-3: rgba(255, 252, 255, 0.48);
  --border: rgba(255, 252, 255, 0.14);
  --border-2: rgba(255, 252, 255, 0.26);
  --neon: #FF8FC6;
  --neon-soft: rgba(255, 143, 198, 0.16);
  background:
    radial-gradient(ellipse 70% 45% at 50% -5%, #3A2E75 0%, transparent 60%),
    radial-gradient(ellipse 55% 40% at 85% 30%, rgba(255, 143, 198, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 35% at 10% 65%, rgba(120, 200, 255, 0.12), transparent 60%),
    #1B1740;
  background-attachment: fixed;
}
body.candy h1, body.candy h2, body.candy h3 { color: #FFFDFF; }
body.candy .btn--start {
  background: #FF8FC6; color: #3A1030;
  box-shadow: 0 6px 0 #C25A92, 0 12px 32px rgba(255, 143, 198, 0.35);
}
body.candy .btn--start:active { box-shadow: 0 2px 0 #C25A92; }
body.candy .nav.scrolled { background: rgba(27, 23, 64, 0.82); }
body.candy ::selection { background: #FF8FC6; color: #3A1030; }
body.candy .hud--neon { color: #FF8FC6; }

/* candy stars */
.candy-stars {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 8%, rgba(255,255,255,0.5) 50%, transparent 51%),
    radial-gradient(2px 2px at 58% 30%, rgba(255,217,236,0.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 76% 12%, rgba(255,255,255,0.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 90% 40%, rgba(180,220,255,0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 55%, rgba(255,255,255,0.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 45% 72%, rgba(255,217,236,0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 68% 85%, rgba(255,255,255,0.45) 50%, transparent 51%),
    radial-gradient(2px 2px at 84% 68%, rgba(180,220,255,0.55) 50%, transparent 51%);
}
.candy-cloud {
  border-radius: 50%;
  position: absolute;
  filter: blur(38px);
  opacity: 0.5;
  pointer-events: none;
}

/* steps (how it works) */
.steps { display: grid; gap: var(--s4); counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  counter-increment: step;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s6) var(--s5);
  position: relative;
  transition: transform var(--t-med) var(--ease);
}
.step:hover { transform: translateY(-5px); }
.step::before {
  content: "0" counter(step);
  font-family: var(--f-display);
  font-size: 2rem; font-weight: 700;
  color: var(--neon);
  display: block;
  margin-bottom: var(--s4);
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 1.15rem; margin-bottom: var(--s2); }
.step p { font-size: 0.92rem; color: var(--text-2); }

/* ---------- Reveal defaults (JS adds .in) ---------- */
.rv { opacity: 0; transform: translateY(34px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 90ms; } .rv-d2 { transition-delay: 180ms; } .rv-d3 { transition-delay: 270ms; }

/* ============================================================
   LEVEL-UP LAYER — signature moments
   ============================================================ */

/* ---------- Hero spotlight — the photo answers the mouse ---------- */
.hero2__spot {
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms var(--ease);
  background: radial-gradient(circle 340px at var(--mx, 50%) var(--my, 50%),
    rgba(247, 245, 242, 0.20), rgba(186, 49, 115, 0.10) 45%, transparent 70%);
  mix-blend-mode: screen;
}
.hero2:hover .hero2__spot { opacity: 1; }

/* ---------- Poster hero v2 ---------- */
.hero2 {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}
.hero2__canvas { position: absolute; inset: 0; pointer-events: none; z-index: 3; }

/* full-bleed moving image behind the hero */
.hero2__media {
  position: absolute;
  inset: -6%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero2__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: kenburns 26s ease-in-out infinite alternate;
}
.hero2__media video {
  width: 100%; height: 100%;
  object-fit: cover;
}
@keyframes kenburns {
  0%   { transform: scale(1.08) translate(0, 0); }
  100% { transform: scale(1.22) translate(-2.5%, -2%); }
}
.hero2__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14,14,15,0.92) 0%, rgba(14,14,15,0.78) 38%, rgba(14,14,15,0.38) 68%, rgba(14,14,15,0.55) 100%),
    linear-gradient(180deg, rgba(14,14,15,0.72) 0%, transparent 30%, transparent 62%, rgba(14,14,15,0.90) 100%);
}
.hero2 > .wrap, .hero2 .hero__foot, .hero2__ghost, .hero2 .hud-frame { position: relative; z-index: 4; }
.hero2__ghost { z-index: 1; }
.hero2__ghost {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(6rem, 22vw, 20rem);
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(247, 245, 242, 0.07);
  pointer-events: none;
  user-select: none;
}
.hero2__inner {
  position: relative;
  display: grid;
  gap: var(--s7);
  align-items: center;
  width: 100%;
}
@media (min-width: 980px) {
  .hero2__inner { grid-template-columns: 7fr 5fr; }
}
.hero2__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(3.2rem, 9.5vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--paper);
  text-transform: uppercase;
}
.hero2__title .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--neon);
  transition: color 400ms var(--ease);
}
.hero2__title .outline:hover { color: var(--neon); }
.hero2__title .row { display: block; overflow: hidden; }
.hero2__title .row > span { display: block; }
.hero2__panel {
  position: relative;
  border-radius: 200px 200px var(--r-lg) var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4.2;
  max-height: 68vh;
  justify-self: center;
  width: min(100%, 420px);
  border: 1px solid var(--border-2);
}
.hero2__panel img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}
.hero2__panel::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(186,49,115,0.24), transparent 45%, rgba(14,14,15,0.45));
  mix-blend-mode: multiply;
}
.hero2__panel .tag {
  position: absolute; bottom: var(--s4); left: 50%; transform: translateX(-50%);
  font-family: var(--f-display);
  font-size: var(--fs-label);
  letter-spacing: 0.24em; text-transform: uppercase;
  color: #fff;
  background: rgba(14,14,15,0.55);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
/* HUD corner brackets */
.hud-frame { position: absolute; inset: var(--s5); pointer-events: none; }
.hud-frame i {
  position: absolute; width: 22px; height: 22px;
  border: 1px solid rgba(247,245,242,0.22);
}
.hud-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hud-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hud-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hud-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* ---------- Ghost section words ---------- */
.ghostword {
  position: absolute;
  right: -2%;
  top: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(5rem, 16vw, 14rem);
  line-height: 1;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(247, 245, 242, 0.06);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}
body.candy .ghostword { -webkit-text-stroke-color: rgba(255, 252, 255, 0.08); }

/* ---------- Image treatment — full color, gentle zoom on hover ---------- */
.tone {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}
.tone img {
  transition: transform 1.2s var(--ease);
  width: 100%; height: 100%; object-fit: cover;
}
.tone:hover img { transform: scale(1.03); }

/* ---------- Bento v2 — images live inside cards ---------- */
.bento__card { isolation: isolate; }
.bento__bg {
  position: absolute; inset: 0; z-index: -1;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 600ms var(--ease), transform 900ms var(--ease);
}
.bento__bg img { width: 100%; height: 100%; object-fit: cover; }
.bento__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,14,15,0.25), rgba(14,14,15,0.88));
}
.bento__card:hover .bento__bg { opacity: 1; transform: scale(1.02); }
.bento__1up {
  position: absolute; top: var(--s5); left: var(--s5);
  font-family: var(--f-display);
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.22em;
  padding: 6px 12px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  color: var(--text-2);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
.bento__card:hover .bento__1up { opacity: 1; transform: none; }

/* ---------- Pinned levels (horizontal on desktop) ---------- */
.levels2 { position: relative; }
.levels2__track { display: grid; gap: var(--s4); }
@media (min-width: 980px) {
  .levels2__viewport { overflow: hidden; }
  .levels2__track {
    display: flex;
    gap: var(--s5);
    width: max-content;
    padding-right: 20vw;
  }
  .lcard { width: 44vw; max-width: 640px; flex-shrink: 0; }
}
.lcard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s7) var(--s6);
  position: relative;
  overflow: hidden;
}
.lcard__num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(233, 175, 58, 0.4);
  position: absolute;
  right: var(--s5); top: var(--s4);
  user-select: none;
}
.lcard h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); max-width: 12ch; }
.lcard p { color: var(--text-2); margin-top: var(--s4); max-width: 40ch; }
.lcard .level__tag { display: block; margin-bottom: var(--s5); }
.levels2__progress {
  height: 2px;
  background: var(--border);
  margin-top: var(--s6);
  border-radius: 2px;
  overflow: hidden;
  display: none;
}
@media (min-width: 980px) { .levels2__progress { display: block; } }
.levels2__bar { height: 100%; width: 0; background: var(--gold); }

/* ---------- Coin CTA ---------- */
.coin {
  display: inline-block;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #F7D588, var(--gold) 60%, #A97F26);
  border: 2px solid #F7D588;
  box-shadow: 0 4px 18px rgba(233, 175, 58, 0.4);
  position: relative;
  font-family: var(--f-display);
  font-weight: 700;
  color: #5c430f;
  display: inline-flex; align-items: center; justify-content: center;
  animation: coinspin 4s linear infinite;
}
@keyframes coinspin {
  0%, 100% { transform: rotateY(0); }
  50% { transform: rotateY(180deg); }
}

/* ---------- Marquee v2: two rows opposite directions ---------- */
.marquee--rev .marquee__track { animation-direction: reverse; }
.marquee--big .marquee__track {
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(247,245,242,0.25);
}
.marquee--big .marquee__track .dot { -webkit-text-stroke: 0; color: var(--neon); }

/* ---------- Cinematic scroll journey (pinned product sequence) ---------- */
.cine { position: relative; }
.cine__stage {
  height: 100svh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0A0A0B;
}
.cine__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  will-change: opacity, transform;
}
.cine__img.on { opacity: 1; }
.cine__cv {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.cine__grade {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, transparent 40%, rgba(10,10,11,0.75) 100%),
    linear-gradient(180deg, rgba(10,10,11,0.65) 0%, transparent 25%, transparent 70%, rgba(10,10,11,0.85) 100%);
}
.cine__text {
  position: absolute;
  z-index: 5;
  max-width: 480px;
  opacity: 0;
  will-change: opacity, transform;
}
.cine__text h3 {
  font-family: var(--f-display);
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.cine__text h3 .a { color: var(--neon); }
.cine__text p { margin-top: var(--s4); color: var(--text-2); font-size: 1.05rem; }
.cine__text--l { left: max(5vw, 32px); top: 50%; transform: translateY(-50%); }
.cine__text--r { right: max(5vw, 32px); top: 50%; transform: translateY(-50%); text-align: right; }
.cine__text--c { left: 50%; top: 12%; transform: translateX(-50%); text-align: center; max-width: 640px; }
.cine__hud {
  position: absolute;
  bottom: var(--s5); left: 50%; transform: translateX(-50%);
  z-index: 6;
  font-family: var(--f-display);
  font-size: var(--fs-label);
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--text-2);
  display: flex; align-items: center; gap: var(--s4);
}
.cine__bar { width: 120px; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.cine__bar i { display: block; height: 100%; width: 0; background: var(--neon); }
.cine__call {
  position: absolute;
  z-index: 5;
  opacity: 0;
  transform: translateY(14px);
  will-change: opacity, transform;
}
.cine__call .callout__card { max-width: 240px; }
/* mobile fallback: simple stacked presentation */
@media (max-width: 979px) {
  .cine__stage { height: 72svh; }
  .cine__text { position: static; opacity: 1; transform: none; max-width: none; text-align: left; display: none; }
  .cine__text--c { display: block; position: absolute; top: 8%; }
}

/* ---------- 360° spin viewer (drag to rotate) ---------- */
.spin {
  position: relative;
  user-select: none;
  touch-action: pan-y;
  cursor: grab;
  max-width: 760px;
  margin: 0 auto;
}
.spin:active { cursor: grabbing; }
.spin__stage {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--ink-2);
}
.spin__stage img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 260ms var(--ease);
  pointer-events: none;
}
.spin__stage img.on { opacity: 1; }
.spin__hint {
  position: absolute; bottom: var(--s4); left: 50%; transform: translateX(-50%);
  font-family: var(--f-display);
  font-size: var(--fs-label);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: #fff;
  background: rgba(14,14,15,0.6);
  backdrop-filter: blur(8px);
  padding: 9px 18px;
  border-radius: 999px;
  pointer-events: none;
  white-space: nowrap;
  animation: hintpulse 2.4s ease-in-out infinite;
}
@keyframes hintpulse { 50% { opacity: 0.55; } }
.spin__dots {
  display: flex; justify-content: center; gap: 10px;
  margin-top: var(--s5);
}
.spin__dots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-2);
  transition: background var(--t-fast), transform var(--t-fast);
}
.spin__dots i.on { background: var(--gold); transform: scale(1.35); }
.spin__labels {
  text-align: center;
  margin-top: var(--s3);
  font-family: var(--f-display);
  font-size: var(--fs-label);
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--text-3);
  min-height: 1.2em;
}

/* ---------- Anatomy breakdown (callouts + connector lines) ---------- */
.anatomy {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}
.anatomy__stage {
  position: relative;
  display: flex;
  justify-content: center;
}
.anatomy__stage > img {
  max-height: 78vh;
  width: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}
.callout {
  position: absolute;
  width: 250px;
  opacity: 0;
}
.callout.in { opacity: 1; }
.callout__card {
  background: rgba(14,14,15,0.78);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: var(--s4) var(--s5);
}
body.candy .callout__card { background: rgba(27,23,64,0.82); }
.callout__card h4 {
  font-family: var(--f-display);
  font-size: 0.95rem; font-weight: 600;
  color: var(--paper);
  margin-bottom: 4px;
}
.callout__card p { font-size: 0.8rem; color: var(--text-2); line-height: 1.5; }
.callout__k {
  font-family: var(--f-display);
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  display: block; margin-bottom: 6px;
}
.callout__line {
  position: absolute;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  width: 90px;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 600ms var(--ease) 150ms;
}
.callout.in .callout__line { transform: scaleX(1); }
.callout--left .callout__line { left: 100%; }
.callout--right .callout__line { right: 100%; background: linear-gradient(270deg, var(--gold), transparent); transform-origin: right center; }
.callout__dot {
  position: absolute; top: 50%;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(233,175,58,0.25);
}
.callout--left .callout__dot { left: calc(100% + 84px); }
.callout--right .callout__dot { right: calc(100% + 84px); }
/* mobile: stack callouts under the image */
@media (max-width: 899px) {
  .callout { position: static; width: auto; margin-top: var(--s3); }
  .callout__line, .callout__dot { display: none; }
  .anatomy__stage { flex-direction: column; align-items: center; }
}

/* ---------- Accessibility ---------- */
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 2px; }
.skip {
  position: absolute; left: -9999px; top: 12px; z-index: 10000;
  background: var(--neon); color: #fff; padding: 10px 18px; border-radius: var(--r-sm);
  font-family: var(--f-display);
}
.skip:focus { left: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  #loader { display: none; }
}

/* View transitions (progressive enhancement) */
@view-transition { navigation: auto; }

/* ============================================================
   MOBILE FIXES — titles, hero video layer, 360 rotation
   ============================================================ */

/* 360 tour: rotation video on mobile, full machine visible */
.cine__vid { display: none; }
@media (max-width: 979px) {
  .cine__stage { height: 62svh; }
  .cine__img { display: none; }
  .cine__vid {
    display: block;
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
  }
  .cine__text--c { top: 4%; padding: 0 var(--s5); width: 100%; }
  .cine__text--c h3 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
}

@media (max-width: 759px) {
  /* titles: sized to fit the viewport, never clipped */
  .hero2__title { font-size: clamp(1.9rem, 9.4vw, 3.2rem); line-height: 1.02; }
  .hero__title  { font-size: clamp(1.9rem, 9.4vw, 3.2rem); line-height: 1.05; }
  .phero h1     { font-size: clamp(1.8rem, 8.4vw, 2.6rem); }
  .phero        { padding: 128px 0 var(--s8); }
  .ghostword    { font-size: clamp(3.2rem, 14vw, 5rem); }
  .hero2__ghost { font-size: clamp(3.2rem, 15vw, 6rem); top: 4%; }

  /* hero film: full-bleed layer behind the title, letterboxed (no giant crop) */
  .hero2 { padding: 104px 0 72px; }
  .hero2__media { inset: 0; }
  .hero2__media video { object-fit: contain; }
  .hero2__media img { object-fit: cover; }
  .hero2__media::after {
    background:
      linear-gradient(180deg, rgba(14,14,15,0.82) 0%, rgba(14,14,15,0.28) 34%, rgba(14,14,15,0.28) 66%, rgba(14,14,15,0.88) 100%);
  }
  .hud-frame { display: none; }
  .candy-cloud { display: none; }
}
