/* ============================================================
   ALTRO STUDIO — STYLESHEET
   ------------------------------------------------------------
   1. Design tokens (colours, type, spacing)
   2. Reset & base
   3. Intro animation
   4. Background canvas
   5. Header / nav
   6. Buttons & shared bits
   7. Hero
   8. Marquee
   9. Section scaffolding + reveal
   10. Studio + stats
   11. Games
   12. Roadmap
   13. Team / values
   14. CTA band
   15. Footer
   16. Back-to-top
   17. Responsive
   18. Reduced motion
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand colours, sampled from the logo */
  --lime: #b4f33c;
  --lime-soft: #c9ff66;
  --violet: #7c5cff;
  --violet-soft: #9a82ff;

  /* Surfaces */
  --bg: #0a0b10;
  --bg-2: #0d0f17;
  --surface: #13151f;
  --surface-2: #191c28;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #f4f5f7;
  --muted: #9aa0ab;
  --faint: #6b7280;

  /* Type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --container: 1180px;
  --radius: 14px;
  --radius-lg: 22px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* lock scroll while the intro is on screen */
body.intro-active { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

::selection { background: var(--lime); color: #0a0b10; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 4vw, 2.5rem);
}

/* small reusable label, mirrors the "ALTRO://" mono style */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
}

/* ---------- 3. Intro animation (cinematic boot sequence) ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: #07080c;
  overflow: hidden;
}

/* faint grid that fades in */
.intro__grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(180, 243, 60, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 243, 60, 0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 48%, #000 0%, transparent 70%);
  opacity: 0;
  animation: introGrid 2.4s ease forwards;
}
@keyframes introGrid { to { opacity: 1; } }

/* scanline sweeping down */
.intro__scan {
  position: absolute;
  left: 0; right: 0;
  height: 26%;
  top: -30%;
  background: linear-gradient(180deg, transparent, rgba(180, 243, 60, 0.08), transparent);
  animation: introScan 2.4s linear 0.4s infinite;
}
@keyframes introScan { to { top: 115%; } }

.intro__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }

.intro__inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: 1.5rem; }
.intro__inner.zoom { animation: introZoom 0.7s var(--ease) forwards; }
@keyframes introZoom { to { transform: scale(1.4); opacity: 0; filter: blur(7px); } }

.intro__mark { width: clamp(78px, 13vw, 124px); height: auto; overflow: visible; }
.intro__stroke {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  filter: drop-shadow(0 0 22px rgba(180, 243, 60, 0.6));
  animation: draw 0.95s var(--ease) 0.25s forwards;
}
.intro__dot {
  transform-box: fill-box;
  transform-origin: center;
  scale: 0;
  filter: drop-shadow(0 0 16px rgba(124, 92, 255, 0.8));
  animation: pop 0.55s var(--ease) 1.05s forwards;
}
.intro__ring {
  transform-box: fill-box;
  transform-origin: center;
  fill: none;
  stroke: #7c5cff;
  stroke-width: 2;
  opacity: 0;
  animation: ring 0.75s ease-out 1.1s forwards;
}
@keyframes ring { 0% { opacity: 0.9; scale: 0.2; } 100% { opacity: 0; scale: 3.6; } }

.intro__word {
  position: relative;
  display: flex;
  gap: 0.06em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8.5vw, 4.8rem);
  letter-spacing: 0.16em;
  padding-left: 0.16em;
  color: var(--text);
}
.intro__word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em) rotateX(-70deg);
  animation: letterIn 0.5s var(--ease) forwards;
}
.intro__word span:nth-child(1) { animation-delay: 0.9s; }
.intro__word span:nth-child(2) { animation-delay: 0.98s; }
.intro__word span:nth-child(3) { animation-delay: 1.06s; }
.intro__word span:nth-child(4) { animation-delay: 1.14s; }
.intro__word span:nth-child(5) { animation-delay: 1.22s; }

/* RGB-split glitch burst (JS toggles .glitch briefly) */
.intro__word.glitch::before,
.intro__word.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0.16em; top: 0;
  padding-left: 0;
  letter-spacing: 0.16em;
}
.intro__word.glitch::before { color: #ff3b6b; animation: glitchA 0.4s steps(2) 1; }
.intro__word.glitch::after { color: #36e0ff; animation: glitchB 0.4s steps(2) 1; }
@keyframes glitchA { 0%,100% { transform: translate(0,0); } 25% { transform: translate(-3px,1px); } 50% { transform: translate(2px,-2px); } 75% { transform: translate(-2px,0); } }
@keyframes glitchB { 0%,100% { transform: translate(0,0); } 25% { transform: translate(3px,-1px); } 50% { transform: translate(-2px,2px); } 75% { transform: translate(2px,0); } }

.intro__tag {
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 2.5vw, 0.95rem);
  letter-spacing: 0.3em;
  color: var(--violet-soft);
  opacity: 0;
  animation: fade 0.5s ease 1.35s forwards;
}
.intro__status::before { content: "ALTRO:// "; color: var(--faint); }
.intro__caret { animation: blink 0.7s steps(1) infinite; }

/* HUD: counter + progress bar */
.intro__counter {
  position: absolute;
  right: clamp(1.3rem, 5vw, 3rem);
  bottom: clamp(1.6rem, 5vw, 3rem);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.4rem);
  color: var(--text);
  opacity: 0;
  animation: fade 0.4s ease 0.3s forwards;
}
.intro__counter span:last-child { color: var(--lime); font-size: 0.5em; vertical-align: super; margin-left: 0.1em; }
.intro__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.06); }
.intro__bar i { display: block; height: 100%; width: 0; background: var(--lime); box-shadow: 0 0 16px var(--lime); }

.intro__flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 4; }
.intro__flash.go { animation: flash 0.5s ease forwards; }
@keyframes flash { 0% { opacity: 0; } 14% { opacity: 0.5; } 100% { opacity: 0; } }

/* lime wipe that sweeps up to reveal the page (JS adds .go) */
.intro__wipe {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--lime);
  transform: translateY(100%);
}
.intro__wipe.go { animation: wipe 1s var(--ease) forwards; }

/* JS adds this to fade the whole overlay out after the wipe */
.intro.is-done { animation: introOut 0.45s ease forwards; pointer-events: none; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { scale: 0; } 70% { scale: 1.3; } 100% { scale: 1; } }
@keyframes letterIn { to { opacity: 1; transform: translateY(0) rotateX(0); } }
@keyframes fade { to { opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes wipe {
  0%   { transform: translateY(100%); }
  42%  { transform: translateY(0); }
  58%  { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}
@keyframes introOut { to { opacity: 0; visibility: hidden; } }

/* ---------- 4. Background canvas ---------- */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}
/* radial spotlight vignette (kept transparent so the aurora shows through) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(124, 92, 255, 0.12), transparent 60%),
    radial-gradient(90% 60% at 80% 10%, rgba(180, 243, 60, 0.06), transparent 55%);
}

/* ---------- 5. Header / nav ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(10, 11, 16, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}
.brand svg { width: 30px; height: 30px; }
.brand .brand__dot { color: var(--violet); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__links { display: flex; gap: 1.8rem; }
.nav__links a {
  position: relative;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }

/* mobile menu toggle (hidden on desktop) */
.nav__toggle { display: none; width: 26px; height: 20px; position: relative; }
.nav__toggle span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--text); border-radius: 2px; transition: 0.3s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 0; }
.nav__toggle span:nth-child(2) { top: 9px; }
.nav__toggle span:nth-child(3) { top: 18px; }
.nav.open .nav__toggle span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ---------- 6. Buttons & shared bits ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: var(--lime);
  color: #0a0b10;
  box-shadow: 0 0 0 rgba(180, 243, 60, 0);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px -10px rgba(180, 243, 60, 0.6);
}
.btn--ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-2px); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.02rem; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 74px;
}
.hero__inner { max-width: 880px; }
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}
.hero__kicker .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(180, 243, 60, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(180, 243, 60, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(180, 243, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(180, 243, 60, 0); }
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7.5vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
}
.hero__title .accent {
  color: var(--lime);
  position: relative;
}
.hero__subtitle {
  font-size: clamp(1.02rem, 2.2vw, 1.22rem);
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 2.4rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 2rem;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--faint);
}
.hero__scroll .mouse {
  width: 22px; height: 36px;
  border: 2px solid var(--border-strong);
  border-radius: 12px;
  position: relative;
}
.hero__scroll .mouse::after {
  content: "";
  position: absolute; left: 50%; top: 7px;
  width: 3px; height: 7px; border-radius: 2px;
  background: var(--lime);
  transform: translateX(-50%);
  animation: scrollDot 1.6s var(--ease) infinite;
}
@keyframes scrollDot { 0% { opacity: 0; top: 7px; } 40% { opacity: 1; } 80% { opacity: 0; top: 18px; } }

/* ---------- 8. Marquee ---------- */
.marquee {
  border-block: 1px solid var(--border);
  background: rgba(124, 92, 255, 0.05);
  overflow: hidden;
  white-space: nowrap;
  padding-block: 1rem;
}
.marquee__track {
  display: inline-flex;
  gap: 3rem;
  padding-right: 3rem;
  animation: scrollX 28s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.marquee__track span { display: inline-flex; align-items: center; gap: 3rem; }
.marquee__track span::before { content: "◆"; color: var(--lime); font-size: 0.7rem; }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* ---------- 9. Section scaffolding + reveal ---------- */
.section { padding-block: clamp(5rem, 11vw, 9rem); position: relative; }
.section__head { max-width: 680px; margin-bottom: 3.2rem; }
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-top: 0.9rem;
}
.section__subtitle { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }

/* scroll-reveal: JS adds .in when element enters the viewport */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- 10. Studio + stats ---------- */
.studio__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.studio__body p { color: var(--muted); margin-top: 1.1rem; font-size: 1.06rem; }
.studio__body p:first-child { color: var(--text); }
.stats { display: grid; gap: 1rem; }
.stat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.stat:hover { border-color: var(--border-strong); transform: translateX(6px); }
.stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--lime);
  line-height: 1;
}
.stat__label { color: var(--muted); font-size: 0.95rem; margin-top: 0.4rem; }

/* ---------- 11. Games ---------- */
.games__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.4rem;
}
.game-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  padding: 1.6rem;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
  min-height: 340px;
  display: flex;
  flex-direction: column;
}
.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% -20%, var(--card-glow, rgba(180,243,60,0.16)), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.game-card:hover { border-color: var(--border-strong); box-shadow: 0 30px 70px -40px rgba(0,0,0,0.9); }
.game-card:hover::before { opacity: 1; }
.game-card__art {
  height: 130px;
  border-radius: 12px;
  margin-bottom: 1.3rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}
.game-card__top {
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 1; margin-bottom: 0.4rem;
}
.game-card__genre { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
.badge {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--lime);
  white-space: nowrap;
}
.game-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  position: relative; z-index: 1;
}
.game-card__blurb { color: var(--muted); font-size: 0.96rem; margin-top: 0.6rem; position: relative; z-index: 1; flex: 1; }
.game-card__tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.2rem; position: relative; z-index: 1; }
.tag {
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.22rem 0.66rem;
}
.game-card__year {
  position: absolute; bottom: 1.4rem; right: 1.6rem;
  font-family: var(--font-mono); font-size: 0.74rem; color: var(--faint);
  z-index: 1;
}
/* clickable card (a released game with a store link) */
.game-card--link { cursor: pointer; }
.game-card__ext {
  position: absolute;
  top: 0.7rem; right: 0.7rem;
  z-index: 2;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(10, 11, 16, 0.6);
  border: 1px solid var(--border-strong);
  color: var(--lime);
  font-size: 0.9rem;
  transition: background 0.25s ease, transform 0.25s ease;
}
.game-card--link:hover .game-card__ext { background: var(--lime); color: #0a0b10; transform: translateY(-2px); }

/* ---------- 12. Roadmap ---------- */
.roadmap__line { position: relative; padding-left: 2.2rem; }
.roadmap__line::before {
  content: "";
  position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--lime), var(--violet), var(--border));
}
.rm-item { position: relative; padding-bottom: 2.4rem; }
.rm-item:last-child { padding-bottom: 0; }
.rm-item::before {
  content: "";
  position: absolute; left: -2.2rem; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border-strong);
  transform: translateX(0);
}
.rm-item.done::before { background: var(--lime); border-color: var(--lime); }
.rm-item.active::before {
  background: var(--violet); border-color: var(--violet);
  box-shadow: 0 0 0 0 rgba(124, 92, 255, 0.5);
  animation: pulse-violet 2s infinite;
}
@keyframes pulse-violet {
  0% { box-shadow: 0 0 0 0 rgba(124, 92, 255, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(124, 92, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 92, 255, 0); }
}
.rm-item__phase { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.16em; color: var(--violet-soft); text-transform: uppercase; }
.rm-item__title { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin-top: 0.3rem; }
.rm-item.active .rm-item__title { color: var(--lime); }
.rm-item__desc { color: var(--muted); margin-top: 0.35rem; max-width: 560px; }

/* ---------- 13. Team / values ---------- */
.values__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.value {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.value:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.value__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(180, 243, 60, 0.1);
  border: 1px solid rgba(180, 243, 60, 0.25);
  color: var(--lime);
  margin-bottom: 1.3rem;
}
.value__icon svg { width: 26px; height: 26px; }
.value__title { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.value__desc { color: var(--muted); margin-top: 0.6rem; }

/* ---------- 14. CTA band ---------- */
.cta-band { padding-block: clamp(4rem, 9vw, 7rem); }
.cta-card {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 5rem);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(80% 140% at 50% 0%, rgba(124, 92, 255, 0.2), transparent 60%),
    radial-gradient(70% 120% at 50% 100%, rgba(180, 243, 60, 0.14), transparent 60%),
    var(--surface);
}
.cta-card__mark { width: 60px; margin: 0 auto 1.4rem; }
.cta-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.cta-card__subtitle { color: var(--muted); max-width: 520px; margin: 1rem auto 2rem; font-size: 1.08rem; }

/* ---------- 15. Footer ---------- */
.footer { border-top: 1px solid var(--border); padding-block: 3.5rem 2.5rem; margin-top: 2rem; }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.footer__blurb { color: var(--muted); max-width: 360px; margin-top: 1rem; }
.footer__socials { display: flex; gap: 0.7rem; flex-wrap: wrap; justify-content: flex-end; }
.social {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  transition: 0.25s var(--ease);
}
.social svg { width: 20px; height: 20px; }
.social:hover { color: var(--lime); border-color: var(--lime); transform: translateY(-3px); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  padding-top: 2rem;
  font-size: 0.86rem; color: var(--faint);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ---------- 16. Back-to-top ---------- */
.to-top {
  position: fixed;
  right: 1.6rem; bottom: 1.6rem;
  z-index: 90;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: #0a0b10;
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: 0.3s var(--ease);
  box-shadow: 0 10px 30px -10px rgba(180, 243, 60, 0.6);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- 17. Responsive ---------- */
@media (max-width: 860px) {
  .studio__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__socials { justify-content: flex-start; }

  .nav__toggle { display: block; z-index: 110; }
  .nav__links {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 11, 16, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease);
  }
  .nav.open .nav__links { transform: translateY(0); }
  .nav__links a { padding: 1rem clamp(1.2rem, 4vw, 2.5rem); font-size: 1.05rem; }
  .nav__links a::after { display: none; }
  .nav .btn { display: none; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 18. Reduced motion ----------
   Motion is intentionally always-on for this site (the studio wants the full
   animated experience). The accessibility suppression below is kept here,
   commented out, so it pairs with RESPECT_REDUCED_MOTION in main.js — flip
   that flag to true AND un-comment this block to honour the OS setting. */
/*
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
*/

/* ============================================================
   19. DYNAMIC AMBIENT LAYERS
   ============================================================ */

/* drifting aurora blobs behind everything */
.aurora { position: fixed; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute;
  width: 46vw; height: 46vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  will-change: transform;
}
.aurora span:nth-child(1) {
  background: radial-gradient(circle, rgba(180, 243, 60, 0.5), transparent 65%);
  top: -10%; left: -8%;
  animation: drift1 18s ease-in-out infinite;
}
.aurora span:nth-child(2) {
  background: radial-gradient(circle, rgba(124, 92, 255, 0.55), transparent 65%);
  bottom: -14%; right: -6%;
  animation: drift2 22s ease-in-out infinite;
}
@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18vw, 12vh) scale(1.25); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1.1); }
  50% { transform: translate(-16vw, -10vh) scale(0.85); }
}

/* soft glow that trails the cursor (mix-blend for a premium feel) */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 420px; height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 243, 60, 0.16), rgba(124, 92, 255, 0.08) 40%, transparent 70%);
  pointer-events: none;
  z-index: 80;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}
.cursor-glow.on { opacity: 1; }

/* thin scroll-progress bar pinned to the very top */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}
.scroll-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--lime), var(--violet));
  box-shadow: 0 0 12px rgba(180, 243, 60, 0.6);
}

/* ============================================================
   20. HERO MOTION (floating shapes, parallax, gradient text)
   ============================================================ */

.hero__decor { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.hero__shape { position: absolute; will-change: transform; opacity: 0.5; }
.hero__shape svg { display: block; }
.hero__shape--ghost { top: 50%; right: 4%; transform: translateY(-50%); opacity: 0.08; }
.hero__shape--ghost svg { width: clamp(260px, 38vw, 560px); height: auto; }
.hero__shape--t1 { top: 18%; right: 26%; animation: float 9s ease-in-out infinite; }
.hero__shape--t2 { bottom: 20%; right: 12%; animation: float 11s ease-in-out infinite reverse; }
.hero__shape--t3 { top: 30%; left: 6%; animation: float 13s ease-in-out infinite; }
.hero__shape--dot1 { top: 24%; left: 40%; animation: float 7s ease-in-out infinite; }
.hero__shape--dot2 { bottom: 30%; left: 18%; animation: float 8s ease-in-out infinite reverse; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(8deg); }
}

/* animated gradient sweep on the hero accent word */
.hero__title .accent {
  background: linear-gradient(100deg, var(--lime), var(--lime-soft) 30%, var(--violet-soft) 55%, var(--lime) 80%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: sheen 6s linear infinite;
}
@keyframes sheen { to { background-position: 220% 0; } }

/* caret used by the typing effect on the kicker / status */
.type-caret::after {
  content: "";
  display: inline-block;
  width: 2px; height: 1em;
  margin-left: 2px;
  background: var(--lime);
  vertical-align: -0.15em;
  animation: blink 0.8s steps(1) infinite;
}

/* Under reduced motion these layers still render — they just hold still
   (their looping animations are neutralised by the global rule above). */

/* ============================================================
   21. LANGUAGE SWITCHER
   ============================================================ */
.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}
.lang__btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.lang__btn:hover { color: var(--text); }
.lang__btn.is-active { background: var(--lime); color: #0a0b10; }

@media (max-width: 860px) {
  /* keep the switcher visible in the top bar on mobile, beside the menu button */
  .nav { gap: 0.9rem; }
  .lang__btn { padding: 0.28rem 0.5rem; font-size: 0.68rem; }
}
@media (max-width: 380px) {
  /* on very narrow screens, tighten the switcher */
  .nav { gap: 0.6rem; }
  .lang { gap: 0; padding: 2px; }
  .lang__btn { padding: 0.26rem 0.4rem; font-size: 0.64rem; }
}
