/* ==========================================================================
   ORYX GP STUDIO — VERSIONE DEFINITIVA (3 SEZIONI PULITE E SEPARATE)
   - Sezione 1: Hero (Copia esatta v4 — 3D Obsidian Skull con scatto calibrato
     210ms power2.in verso le coordinate del cursore + IntersectionObserver)
   - Sezione 2: Teaser (Flashlight Zone — Layout largo 90% / 1560px, font Cinzel da v5
     sui titoli, Luce Gialla / UV Blu, CTA UV in fondo, L'Osservatore Nascosto in
     position: absolute dentro il container principale, Hover Jumpscare da v2)
   - Sezione 3: Il Dev (Minimal, Flashlight disattivata, Solo Dev Italiano in UE5 +
     Instagram, TikTok, Itch.io)
   ========================================================================== */

:root {
  --canvas-ground: #0a0a0a;
  --pitch-black: #020202;
  --surface-panel: #111111;
  --primary-ink: #ffffff;
  --accent-tone: #1a1a1a;
  --muted-tint: #888888;
  --surface-border: #222222;
  --ghost-border: rgba(255, 255, 255, 0.35);

  /* Fonts */
  --font-display: 'Syne', sans-serif;           /* Hero v4 monumental font */
  --font-v5-title: 'Cinzel', serif;             /* v5 font-family ONLY for Section 2 titles */
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Section 2 Flashlight Coordinates (relative to #section-teaser) */
  --flash-x: 50%;
  --flash-y: 35%;
  --flash-radius: 380px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--canvas-ground);
  color: var(--primary-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Lenis Smooth Scroll Core Styles (prevents conflict with native scroll-behavior) */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  background-color: var(--canvas-ground);
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
  cursor: none;
}

@media (pointer: fine) {
  html,
  body,
  body *,
  a,
  button,
  [role="button"],
  input,
  select,
  textarea,
  label,
  video,
  .teaser-giant-card,
  .cctv-video-cell,
  .brutalist-showcase-frame {
    cursor: none !important;
  }
}

@media (pointer: coarse) {
  body {
    cursor: auto;
  }
  .custom-latin-cursor {
    display: none !important;
  }
}

/* ==========================================================================
   0. PRELOADER SCREEN & AUDIO CONTEXT UNLOCK (id="loader-screen")
   ========================================================================== */
body.is-loading {
  overflow: hidden !important;
  height: 100vh !important;
}

body.is-loading #section-hero,
body.is-loading .obscura-nav,
body.is-loading .floating-lang-switcher {
  opacity: 0 !important;
  pointer-events: none !important;
}

.loader-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99990;
  background-color: #030303;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.8rem;
  width: 90%;
  max-width: 840px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.loader-brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

.loader-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.8vw, 4.4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 0 35px rgba(255, 255, 255, 0.14);
}

.loader-immersive-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  max-width: 720px;
}

.loader-notice-line {
  font-family: var(--font-mono);
  font-size: clamp(0.74rem, 1.1vw, 0.88rem);
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.55;
  margin: 0;
  text-align: center;
}

.loader-center-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.loader-progress {
  font-family: var(--font-cinzel, 'Cinzel', serif);
  font-size: clamp(2.8rem, 6.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #e5e5e5;
  line-height: 1;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
  font-variant-numeric: tabular-nums;
  transition: opacity 0.2s ease;
}

.loader-enter-btn {
  display: none;
  opacity: 0;
  align-items: center;
  gap: 14px;
  padding: 14px 34px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.loader-enter-btn:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #030303;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.loader-enter-btn:active {
  transform: translateY(0);
}

.loader-enter-btn .btn-arrow {
  transition: transform 0.2s ease;
}

.loader-enter-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   CUSTOM LATIN CROSS CURSOR (†) — ZERO-LAG TRACKER, HOVER & UV INVERSION
   -------------------------------------------------------------------------- */
.custom-latin-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 100000;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.custom-latin-cursor.is-visible {
  opacity: 1;
}

/* Anchor (click point) at exact intersection of the two cross arms:
   In viewBox="-10 -9 20 30", (0,0) is at pixel (10px, 9px). */
.cursor-cross-rotator {
  position: absolute;
  left: -10px;
  top: -9px;
  width: 20px;
  height: 30px;
  transform-origin: 10px 9px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.custom-latin-cursor.is-uv-inverted .cursor-cross-rotator {
  transform: rotate(180deg);
}

.cursor-cross-scaler {
  width: 20px;
  height: 30px;
  transform-origin: 10px 9px;
  transition: transform 0.16s cubic-bezier(0.2, 0, 0, 1);
  will-change: transform;
}

.custom-latin-cursor.is-hovering .cursor-cross-scaler {
  transform: scale(1.4);
}

.cursor-cross-jitter {
  width: 20px;
  height: 30px;
  transform-origin: 10px 9px;
  will-change: transform, filter;
}

.cursor-cross-svg {
  display: block;
  width: 20px;
  height: 30px;
  overflow: visible;
}

/* Hover state: subtle micro-tremor + high-contrast inversion/glow */
.custom-latin-cursor.is-hovering .cursor-cross-jitter {
  animation: cursorHoverGlitch 0.16s steps(2, end) infinite;
}

.custom-latin-cursor.is-hovering .cross-stroke-main {
  stroke: #ffffff;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.95));
}

.custom-latin-cursor.is-hovering .cross-anchor-dot {
  fill: #050505;
}

/* UV Active State: inverted cross + continuous lens blur & spectral micro-tremor */
.custom-latin-cursor.is-uv-inverted .cursor-cross-jitter {
  filter: blur(0.45px) drop-shadow(-1.25px 0 0 rgba(139, 92, 246, 0.9)) drop-shadow(1.25px 0 0 rgba(56, 189, 248, 0.85));
  backdrop-filter: blur(0.5px);
  animation: uvCursorDistortion 0.13s steps(2, end) infinite;
}

.custom-latin-cursor.is-uv-inverted .cross-stroke-main {
  stroke: #ede9fe;
}

.custom-latin-cursor.is-uv-inverted .cross-anchor-dot {
  fill: #a855f7;
}

.custom-latin-cursor.is-uv-inverted.is-hovering .cursor-cross-jitter {
  filter: blur(0.55px) drop-shadow(-2px 0 0 rgba(168, 85, 247, 1)) drop-shadow(2px 0 0 rgba(56, 189, 248, 1));
  animation: uvCursorHoverGlitch 0.09s steps(2, end) infinite;
}

@keyframes cursorHoverGlitch {
  0%   { transform: translate3d(0, 0, 0); opacity: 1; }
  25%  { transform: translate3d(-1px, 0.8px, 0); opacity: 0.86; }
  50%  { transform: translate3d(1px, -0.8px, 0); opacity: 1; }
  75%  { transform: translate3d(-0.8px, -1px, 0); opacity: 0.9; }
  100% { transform: translate3d(0.8px, 0.8px, 0); opacity: 1; }
}

@keyframes uvCursorDistortion {
  0%   { transform: translate3d(0, 0, 0) skewX(0deg); }
  20%  { transform: translate3d(-0.9px, 0.6px, 0) skewX(-1.5deg); }
  40%  { transform: translate3d(0.9px, -0.7px, 0) skewX(1.5deg); }
  60%  { transform: translate3d(-0.6px, -0.9px, 0) skewX(-1deg); }
  80%  { transform: translate3d(0.8px, 0.8px, 0) skewX(1.2deg); }
  100% { transform: translate3d(0, 0, 0) skewX(0deg); }
}

@keyframes uvCursorHoverGlitch {
  0%   { transform: translate3d(-1.4px, 1px, 0) skewX(-2.5deg); }
  33%  { transform: translate3d(1.4px, -1.2px, 0) skewX(2.5deg); }
  66%  { transform: translate3d(-1.1px, -1.1px, 0) skewX(-1.8deg); }
  100% { transform: translate3d(1.2px, 1.1px, 0) skewX(2deg); }
}

/* --------------------------------------------------------------------------
   UV IGNITION EARTHQUAKE (SHAKE) & SPECTRAL MICRO-FLASH ON SECTION 2
   -------------------------------------------------------------------------- */
.uv-ignition-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 38;
  opacity: 0;
  background:
    radial-gradient(
      circle at var(--flash-x, 50%) var(--flash-y, 50%),
      rgba(196, 181, 253, 0.62) 0%,
      rgba(124, 58, 237, 0.42) 38%,
      rgba(30, 27, 75, 0.28) 75%,
      rgba(9, 5, 20, 0.1) 100%
    );
  mix-blend-mode: screen;
}

.teaser-flashlight-section.is-uv-quaking .uv-ignition-flash {
  animation: uvMicroFlash 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.teaser-flashlight-section.is-uv-quaking .teaser-imposing-container,
.teaser-flashlight-section.is-uv-quaking .flashlight-controls-hud,
.teaser-flashlight-section.is-uv-quaking .uv-secret-layer {
  animation: uvSectionQuake 0.72s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes uvMicroFlash {
  0%   { opacity: 0; }
  8%   { opacity: 0.95; }
  18%  { opacity: 0.2; }
  28%  { opacity: 0.7; }
  45%  { opacity: 0.15; }
  100% { opacity: 0; }
}

@keyframes uvSectionQuake {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  8%   { transform: translate3d(-9px, 6px, 0) rotate(-0.45deg); }
  16%  { transform: translate3d(8px, -7px, 0) rotate(0.45deg); }
  24%  { transform: translate3d(-10px, -5px, 0) rotate(-0.35deg); }
  32%  { transform: translate3d(9px, 7px, 0) rotate(0.4deg); }
  40%  { transform: translate3d(-7px, 5px, 0) rotate(-0.3deg); }
  48%  { transform: translate3d(6px, -6px, 0) rotate(0.25deg); }
  56%  { transform: translate3d(-5px, 4px, 0) rotate(-0.2deg); }
  64%  { transform: translate3d(4px, -3px, 0) rotate(0.15deg); }
  72%  { transform: translate3d(-3px, 2px, 0) rotate(-0.1deg); }
  82%  { transform: translate3d(2px, -2px, 0) rotate(0.05deg); }
  92%  { transform: translate3d(-1px, 1px, 0) rotate(0deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

/* --------------------------------------------------------------------------
   MALFUNZIONAMENTO ELETTROMAGNETICO VIOLENTO (AGGRESSIVE RANDOM FLICKER)
   Only active when Section 2 has data-light-mode="uv".
   Flickers 3-5 times irregularly in 200-400ms:
   - Opacity of UV beam crashes to 0 / 0.1 (total darkness)
   - Light beam radius shrinks and violently crumbles/glitches
   - UV secret markings flicker in sync
   - Upside-down cross cursor experiences electromagnetic glitch
   -------------------------------------------------------------------------- */
.uv-blackout-flicker {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 37;
  opacity: 0;
  background: #010101;
}

.teaser-flashlight-section.is-uv-flickering .uv-blackout-flicker {
  animation: uvBlackoutSpikes var(--flicker-burst-duration, 0.32s) steps(1, end) forwards;
}

.teaser-flashlight-section.is-uv-flickering .section-flashlight-beam {
  transform-origin: var(--flash-x) var(--flash-y);
  transition: none !important;
  animation: uvBeamViolentGlitch var(--flicker-burst-duration, 0.32s) cubic-bezier(0.2, 0, 0, 1) forwards;
}

.teaser-flashlight-section.is-uv-flickering .uv-secret-layer,
.teaser-flashlight-section.is-uv-flickering .giant-card-uv-note {
  transition: none !important;
  animation: uvMarkingsFlicker var(--flicker-burst-duration, 0.32s) steps(1, end) forwards;
}

.custom-latin-cursor.is-uv-flickering .cursor-cross-jitter {
  animation: uvCursorEmGlitch 0.06s steps(2, end) infinite;
  filter: blur(0.75px) contrast(3.5) drop-shadow(-2.5px 0 0 rgba(239, 68, 68, 0.95)) drop-shadow(2.5px 0 0 rgba(56, 189, 248, 0.95)) !important;
}

@keyframes uvBlackoutSpikes {
  0%   { opacity: 0; }
  9%   { opacity: 0.98; }   /* Collapse to black */
  20%  { opacity: 0.15; }
  32%  { opacity: 1; }      /* Total darkness blackout */
  46%  { opacity: 0.25; }
  60%  { opacity: 0.95; }   /* Third harsh drop */
  74%  { opacity: 0; }      /* Electric spark surge */
  87%  { opacity: 0.9; }    /* Final sputtering dip */
  100% { opacity: 0; }
}

@keyframes uvBeamViolentGlitch {
  0%   { opacity: 1; transform: scale(1); filter: none; }
  9%   { opacity: 0.05; transform: scale(0.22); filter: contrast(4) brightness(0.1) blur(2.5px); }
  20%  { opacity: 0.8; transform: scale(0.9); filter: contrast(1.6) brightness(1.2); }
  32%  { opacity: 0; transform: scale(0.12); filter: contrast(5) brightness(0) blur(4px); }
  46%  { opacity: 0.65; transform: scale(0.75); filter: contrast(2.2) brightness(0.85); }
  60%  { opacity: 0.08; transform: scale(0.28); filter: contrast(4) brightness(0.1) blur(2px); }
  74%  { opacity: 1.35; transform: scale(1.18); filter: contrast(1.8) brightness(1.5) drop-shadow(0 0 35px #8b5cf6); }
  87%  { opacity: 0.1; transform: scale(0.35); filter: contrast(3) brightness(0.2); }
  100% { opacity: 1; transform: scale(1); filter: none; }
}

@keyframes uvMarkingsFlicker {
  0%   { opacity: 1; }
  9%   { opacity: 0.05; }
  20%  { opacity: 0.8; }
  32%  { opacity: 0; }
  46%  { opacity: 0.65; }
  60%  { opacity: 0.08; }
  74%  { opacity: 1.35; filter: drop-shadow(0 0 24px #38bdf8); }
  87%  { opacity: 0.1; }
  100% { opacity: 1; filter: none; }
}

@keyframes uvCursorEmGlitch {
  0%   { transform: translate3d(-2px, 1.5px, 0) skewX(-3deg); }
  25%  { transform: translate3d(2px, -1.8px, 0) skewX(3deg); }
  50%  { transform: translate3d(-1.8px, -1.5px, 0) skewX(-2deg); }
  75%  { transform: translate3d(1.8px, 1.5px, 0) skewX(2.5deg); }
  100% { transform: translate3d(0, 0, 0) skewX(0deg); }
}

/* --------------------------------------------------------------------------
   GLOBAL TEXTURES & OVERLAYS (FROM v4 & v2)
   -------------------------------------------------------------------------- */
.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.65;
}

.volumetric-fog {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 65%
  );
  animation: fogBreath 25s ease-in-out infinite alternate;
}

@keyframes fogBreath {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.12); opacity: 0.9; }
}

/* --------------------------------------------------------------------------
   PHOTOGRAPHIC HARD-CUT JUMPSCARE OVERLAYS (Section 2 buttons)
   - Image Overlay (z-index: 9998): full screen black ground, object-fit: contain
   - White Flash Overlay (z-index: 9999): full screen white flash
   - Default: opacity: 0, pointer-events: none, NO transitions (pure hard cuts)
   -------------------------------------------------------------------------- */
.jumpscare-image-overlay {
  position: fixed;
  inset: 0;
  background-color: #000000;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  will-change: opacity;
}

.jumpscare-display-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.jumpscare-white-overlay {
  position: fixed;
  inset: 0;
  background-color: #ffffff;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

/* --------------------------------------------------------------------------
   HEADER NAVIGATION MARGINALIA (COPIA ESATTA DI v4)
   -------------------------------------------------------------------------- */
.obscura-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 48px;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--muted-tint);
  z-index: 110;
  text-transform: uppercase;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand-mono {
  color: var(--primary-ink);
  font-weight: 700;
}

.telemetry-pill {
  color: var(--primary-ink);
  transition: color 0.2s ease;
}

.telemetry-pill.is-lunging {
  color: #ef4444;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

.fps-pill {
  color: #4ade80;
}

/* Brutalist Floating Language Switcher [ IT / EN ] (Independent from Header) */
.floating-lang-switcher {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  z-index: 999;
  pointer-events: auto;
}

/* When .obscura-nav is present in DOM, sit just below the 48px bar so the header remains 100% untouched */
.obscura-nav ~ .floating-lang-switcher {
  top: 4rem;
}

.brutalist-lang-btn {
  position: relative;
  z-index: 999;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: #050505;
  border: 1px solid #404040;
  border-radius: 0 !important;
  padding: 0.38rem 0.78rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #a3a3a3;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.75);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.brutalist-lang-btn .lang-opt {
  color: #737373;
  transition: color 0.15s ease;
}

.brutalist-lang-btn .lang-opt.is-active {
  color: #ffffff;
  font-weight: 700;
}

.brutalist-lang-btn .lang-sep {
  color: #525252;
}

.brutalist-lang-btn:hover,
.brutalist-lang-btn:focus-visible {
  background-color: #ffffff;
  color: #000000;
  border-color: #ffffff;
  outline: none;
  animation: brutalistTextGlitch 0.24s steps(2, end) infinite;
}

.brutalist-lang-btn:hover .lang-opt,
.brutalist-lang-btn:hover .lang-opt.is-active,
.brutalist-lang-btn:hover .lang-sep,
.brutalist-lang-btn:focus-visible .lang-opt,
.brutalist-lang-btn:focus-visible .lang-opt.is-active,
.brutalist-lang-btn:focus-visible .lang-sep {
  color: #000000;
}

@media (max-width: 640px) {
  .floating-lang-switcher {
    right: 1rem;
  }
}

/* Main Stage — Cleanly separated sections for future scroll transitions */
.main-experience {
  position: relative;
  z-index: 20;
  width: 100%;
}

/* ==========================================================================
   SEZIONE 1: LA HERO (THE FACE — COPIA ESATTA DI v4)
   Flashlight TOTALMENTE DISATTIVATO.
   Scritta monumentale "ORYX" sopra e "GP STUDIO" sotto (stesso font e grandezza)
   centrata dietro al teschio 3D che trasla nello spazio (X, Y) verso il cursore.
   ========================================================================== */
.hero-obscura-stage {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 68px 2rem 2rem 2rem;
}

/* Layer 1: Monumental Typography BEHIND the 3D skull (z-index: 5) */
.monumental-headline-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  z-index: 5;
  pointer-events: none;
  user-select: none;
}

.monumental-text {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 12.2rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

/* Layer 2: Center Interactive 3D Canvas (z-index: 10 - Occludes middle letters, translates in X/Y) */
.hero-3d-center-container {
  width: 100%;
  max-width: 520px;
  height: 520px;
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  will-change: transform;
}

.skull-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.hero-3d-asset-meta {
  position: absolute;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  text-align: center;
}

/* Layer 3: Minimalist Ghost Button Centered Below (z-index: 15) */
.hero-obscura-cta-wrap {
  position: relative;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.obscura-ghost-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  border: 1px solid var(--ghost-border);
  color: var(--primary-ink);
  padding: 1.1rem 2.8rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.obscura-ghost-cta:hover, .obscura-ghost-cta:focus-visible {
  border-color: #ffffff;
  background: #ffffff;
  color: #000000;
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  outline: none;
}

.btn-arrow {
  transition: transform 0.25s ease;
}

.obscura-ghost-cta:hover .btn-arrow {
  transform: translateX(4px);
}

.cta-micro-caption {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: var(--muted-tint);
}


/* ==========================================================================
   BRUTAL STACKED CONTAINER (SEZIONE 1.5 -> SEZIONE 2 -> SEZIONE 3)
   - Ogni sezione successiva scivola sopra la precedente come un sipario pesante.
   - Design Brutalista: border-radius: 0 assoluto, bordi taglienti e dritti.
   ========================================================================== */
.brutal-stack-article {
  position: relative;
  width: 100%;
  overflow: visible;
}

/* ==========================================================================
   SEZIONE 1.5: LA TRANSIZIONE "STRAPPO" (HORROR TEAR REVEAL)
   - Sfondo nero assoluto (#000000).
   - Pinned a tutto schermo con GSAP ScrollTrigger (pin: true).
   - Gerarchia a due righe:
     * Riga 1 (Tagline in alto, fuori dallo strappo): "TI SENTI AL"
     * Riga 2 (Parola monumentale squarciata a metà su CY=318): "SICURO?"
   - Dietro lo squarcio emerge l'aberrazione demoniaca che segue il cursore.
   ========================================================================== */
.tear-transition-section {
  position: relative;
  z-index: 20;
  width: 100%;
  height: 100vh;
  height: 100svh;
  background-color: #000000;
  overflow: hidden;
  border-radius: 0 !important;
  border-top: 1px solid #141414;
}

.tear-pinned-stage {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #000000;
  overflow: hidden;
  border-radius: 0 !important;
  cursor: crosshair;
}

.tear-reveal-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  overflow: visible;
  user-select: none;
}

.tear-tagline-svg-text {
  font-family: var(--font-mono), "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  user-select: none;
}

.tear-monumental-svg-text {
  font-family: "Anton", Impact, var(--font-display), "Arial Black", sans-serif;
  font-size: 250px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  user-select: none;
}

.tear-scroll-hint {
  display: none !important;
}


/* ==========================================================================
   SEZIONE 2: IL TEASER DEL GIOCO (THE FLASHLIGHT ZONE — BRUTAL STACKED CURTAIN)
   - Scivola sopra la Sezione 1.5 (margin-top: -100vh, z-index: 30) come un muro
     di oscurità assoluta tagliente e dritto (border-radius: 0 !important).
   - Rimane bloccata in fondo (position: sticky; top: var(--teaser-sticky-top))
     mentre la Sezione 3 le scivola sopra.
   - RITARDO ATTIVAZIONE TORCIA: Finchè data-flashlight-active="false", il muro è
     nero assoluto e l'interruttore UV e la maschera sono disattivati. Si attivano
     SOLO quando la Sezione 2 atterra al 100% del viewport.
   ========================================================================== */
.teaser-flashlight-section {
  position: sticky;
  top: var(--teaser-sticky-top, 0px);
  z-index: 30;
  margin-top: -100vh;
  margin-top: -100svh;
  width: 100%;
  min-height: 155vh;
  background-color: var(--pitch-black);
  border-radius: 0 !important;
  border-top: 2px solid #262626;
  border-bottom: 1px solid var(--surface-border);
  box-shadow: 0 -48px 110px rgba(0, 0, 0, 0.98);
  padding: 20vh 0 10rem 0;
  overflow: hidden;
}

/* Darkness Shroud Confined ONLY to Section 2 */
.section-flashlight-shroud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  background: radial-gradient(
    circle var(--flash-radius) at var(--flash-x) var(--flash-y),
    rgba(2, 2, 2, 0.0) 0%,
    rgba(2, 2, 2, 0.35) 38%,
    rgba(2, 2, 2, 0.92) 70%,
    #010101 100%
  );
  transition: opacity 0.35s ease;
}

/* Colored Light Beam Overlay (Yellow vs UV Blue) */
.section-flashlight-beam {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 31;
  background: radial-gradient(
    circle calc(var(--flash-radius) * 0.95) at var(--flash-x) var(--flash-y),
    rgba(255, 224, 130, 0.16) 0%,
    rgba(255, 195, 80, 0.06) 45%,
    transparent 80%
  );
  transition: opacity 0.35s ease;
}

/* UV Mode: Switch beam tint to Ultraviolet Blue / Violet */
.teaser-flashlight-section[data-light-mode="uv"] .section-flashlight-beam {
  background: radial-gradient(
    circle calc(var(--flash-radius) * 1.05) at var(--flash-x) var(--flash-y),
    rgba(56, 189, 248, 0.28) 0%,
    rgba(99, 102, 241, 0.18) 45%,
    rgba(139, 92, 246, 0.06) 70%,
    transparent 88%
  );
}

/* Darkness OFF Mode: Disable shroud and beam (only when section is 100% landed/active) */
.teaser-flashlight-section[data-flashlight-active="true"][data-light-mode="off"] .section-flashlight-shroud,
.teaser-flashlight-section[data-flashlight-active="true"][data-light-mode="off"] .section-flashlight-beam {
  opacity: 0;
}

/* --------------------------------------------------------------------------
   DELAYED FLASHLIGHT STATE (data-flashlight-active="false")
   While Section 2 is sliding up over Section 1.5 (or being covered by Section 3),
   it acts as a solid wall of absolute darkness and locks all flashlight/UV UI.
   -------------------------------------------------------------------------- */
.teaser-flashlight-section[data-flashlight-active="false"] .section-flashlight-shroud {
  background: #010101 !important;
  opacity: 1 !important;
}

.teaser-flashlight-section[data-flashlight-active="false"] .section-flashlight-beam,
.teaser-flashlight-section[data-flashlight-active="false"] .uv-secret-layer {
  opacity: 0 !important;
}

.teaser-flashlight-section[data-flashlight-active="false"] .flashlight-controls-hud {
  opacity: 0.22;
  pointer-events: none !important;
  filter: grayscale(1);
}

.teaser-flashlight-section[data-flashlight-active="false"] .teaser-imposing-container {
  pointer-events: none !important;
}

/* --------------------------------------------------------------------------
   UV SECRET CREEPY LAYER (INVISIBLE IN YELLOW LIGHT, REVEALED IN UV LIGHT)
   -------------------------------------------------------------------------- */
.uv-secret-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 35;
  opacity: 0;
  transition: opacity 0.3s ease;
  -webkit-mask-image: radial-gradient(
    circle calc(var(--flash-radius) * 0.9) at var(--flash-x) var(--flash-y),
    #000000 0%,
    rgba(0, 0, 0, 0.85) 55%,
    transparent 95%
  );
  mask-image: radial-gradient(
    circle calc(var(--flash-radius) * 0.9) at var(--flash-x) var(--flash-y),
    #000000 0%,
    rgba(0, 0, 0, 0.85) 55%,
    transparent 95%
  );
}

.teaser-flashlight-section[data-flashlight-active="true"][data-light-mode="uv"] .uv-secret-layer {
  opacity: 1;
}

.uv-scribble {
  position: absolute;
  font-family: var(--font-v5-title);
  font-weight: 900;
  color: #38bdf8;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.95), 0 0 32px rgba(99, 102, 241, 0.85);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  user-select: none;
}

.uv-msg-1 { top: 14%; left: 5%; font-size: clamp(1.5rem, 3vw, 2.8rem); transform: rotate(-4deg); }
.uv-msg-2 { top: 24%; right: 5%; font-size: clamp(1.3rem, 2.5vw, 2.2rem); transform: rotate(3deg); }
.uv-msg-3 { top: 44%; left: 6%; font-size: clamp(1.8rem, 3.6vw, 3.4rem); transform: rotate(-2deg); }
.uv-msg-4 { top: 53%; right: 8%; font-size: clamp(1.4rem, 2.6vw, 2.4rem); transform: rotate(5deg); }
.uv-msg-5 { top: 68%; left: 5%; font-size: clamp(1.6rem, 3.2vw, 3rem); transform: rotate(-3deg); }
.uv-msg-6 { top: 76%; right: 6%; font-size: clamp(1.8rem, 3.5vw, 3.2rem); transform: rotate(2deg); }
.uv-msg-7 { bottom: 16%; left: 10%; font-size: clamp(1.2rem, 2.2vw, 2rem); transform: rotate(-1.5deg); }
.uv-msg-8 { bottom: 9%; right: 18%; font-size: clamp(1.6rem, 3vw, 2.8rem); transform: rotate(3.5deg); }

/* Graffi UV (Stesso trattamento luminescente dei testi .uv-scribble) */
.uv-entity-trace {
  position: absolute;
  color: #38bdf8;
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.95)) drop-shadow(0 0 32px rgba(99, 102, 241, 0.85));
  pointer-events: none;
  user-select: none;
  opacity: 0.92;
}

.uv-entity-trace svg {
  width: 100%;
  height: auto;
  display: block;
}

.uv-trace-claw-scratches-1 {
  top: 5.5%;
  left: 11%;
  width: clamp(150px, 14vw, 220px);
  transform: rotate(12deg);
}

.uv-trace-claw-scratches-2 {
  bottom: 5.2%;
  right: 7.5%;
  width: clamp(175px, 16vw, 250px);
  transform: rotate(-16deg);
}

/* Chaotic UV scribble on central card (spills across card borders) */
.giant-card-uv-note {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg) scale(1.25);
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--font-v5-title);
  font-size: clamp(1.15rem, 1.75vw, 1.7rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #38bdf8;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.95), 0 0 32px rgba(99, 102, 241, 0.85);
  z-index: 50;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
  .giant-card-uv-note {
    transform: translate(-50%, -50%) rotate(-12deg) scale(1.5);
  }
}

.teaser-flashlight-section[data-flashlight-active="true"][data-light-mode="uv"] .giant-card-uv-note {
  opacity: 1;
}

/* Floating UV scribble relocated between the 16:9 camera showcase and final CTA block */
.uv-between-showcase-cta {
  position: relative;
  width: 100%;
  height: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 40;
}

.uv-between-showcase-cta .uv-msg-4 {
  position: absolute;
  top: -6rem;
  left: 24%;
  right: auto;
  margin-top: 0.75rem;
  margin-left: 1.5rem;
  transform: rotate(-6deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
  .uv-between-showcase-cta .uv-msg-4 {
    left: 6%;
  }
}

.teaser-flashlight-section[data-flashlight-active="true"][data-light-mode="uv"] .uv-between-showcase-cta .uv-msg-4 {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   FLASHLIGHT CONTROLS HUD (Expanded Width: 90% / max-width 1560px)
   -------------------------------------------------------------------------- */
.flashlight-controls-hud {
  position: relative;
  z-index: 50;
  width: 90%;
  max-width: 1560px;
  margin: 0 auto 5.5rem auto;
  background: rgba(14, 14, 14, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid #2e2e2e;
  border-radius: 0 !important;
  padding: 1.15rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.hud-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--primary-ink);
}

.hud-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 0 10px #facc15;
}

.teaser-flashlight-section[data-light-mode="uv"] .hud-dot {
  background: #38bdf8;
  box-shadow: 0 0 12px #38bdf8;
}

.teaser-flashlight-section[data-light-mode="off"] .hud-dot {
  background: #ffffff;
  box-shadow: none;
}

.hud-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hud-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #090909;
  border: 1px solid #333333;
  color: #aaaaaa;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-switch-btn:hover {
  border-color: #888888;
  color: #ffffff;
}

.hud-switch-btn.is-active {
  border-color: #ffffff;
  background: #ffffff;
  color: #000000;
  font-weight: 700;
}

.swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.swatch-yellow {
  background: #facc15;
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.8);
}

.swatch-uv {
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.9);
}

/* --------------------------------------------------------------------------
   SECTION 2 WIDE IMPOSING CONTAINER (position: relative; width: 90%; max-width: 1560px)
   -------------------------------------------------------------------------- */
.teaser-imposing-container {
  position: relative;
  z-index: 20;
  width: 90%;
  max-width: 1560px;
  margin: 0 auto;
  padding-bottom: 28vh;
}

.teaser-header-block {
  margin-bottom: 6.5rem;
  width: 100%;
}

.teaser-kicker {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.25em;
  color: var(--muted-tint);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

/* Title uses ONLY font-family from v5 ('Cinzel'), with HUGE imposing scale across wide container */
.teaser-monumental-title {
  font-family: var(--font-v5-title);
  font-size: clamp(3.2rem, 7.2vw, 6.8rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 2.75rem;
}

.teaser-giant-lead {
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.2vw, 2.05rem);
  font-weight: 300;
  line-height: 1.62;
  color: #e5e5e5;
  max-width: 82ch;
}

/* Wide Giant Impact Grid */
.teaser-impact-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 3rem;
  width: 100%;
  margin-bottom: 9.5rem;
  overflow: visible;
}

.teaser-giant-card {
  position: relative;
  overflow: visible;
  background: #080808;
  border: 1px solid #242424;
  padding: 4.75rem 3rem;
  height: 100%;
  min-height: 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.teaser-giant-card:nth-child(2) {
  z-index: 2;
}

.giant-card-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  color: var(--muted-tint);
  margin-bottom: 1.75rem;
  display: block;
}

/* Card Title uses font-family from v5 ('Cinzel'), calibrated so all 3 titles align cleanly */
.giant-card-title {
  font-family: var(--font-v5-title);
  font-size: clamp(1.55rem, 2.1vw, 2.15rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0.04em;
  color: #ffffff;
  margin-bottom: 1.75rem;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.giant-card-text {
  font-family: var(--font-body);
  font-size: 1.18rem;
  line-height: 1.8;
  color: #bbbbbb;
  flex-grow: 1;
}

/* --------------------------------------------------------------------------
   VETRINA BRUTALISTA (16:9 SHOWCASE SOTTO LE TRE CARD)
   - w-full centrato con margine superiore abbondante (mt-32).
   - Immagine orizzontale grande (max-w-5xl / 64rem, aspect-ratio 16/9, object-fit: cover)
     con bordo brutalista sottile (border-white/10, border-radius: 0).
   - Toggle Stato UV: Visibile con Luce Gialla o "Spegni Oscurità"; scompare
     completamente in modalità UV rivelando il testo macabro centrato.
   -------------------------------------------------------------------------- */
.brutalist-showcase-block {
  width: 100%;
  margin-top: 8rem;
  margin-bottom: 9.5rem;
  display: flex;
  justify-content: center;
}

.brutalist-showcase-frame {
  position: relative;
  width: 100%;
  max-width: 64rem; /* 1024px (max-w-5xl) */
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background-color: #030303;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 !important;
  overflow: hidden;
}

.brutalist-showcase-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.brutalist-showcase-uv-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 3.5rem;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.brutalist-showcase-uv-text {
  position: static;
  max-width: 34ch;
  font-size: clamp(1.35rem, 2.4vw, 2.15rem);
  line-height: 1.45;
  letter-spacing: 0.15em;
  text-align: center;
}

/* Stato Luce UV attiva: l'immagine scompare completamente e rivela il testo UV centrato */
.teaser-flashlight-section[data-light-mode="uv"] .brutalist-showcase-img {
  opacity: 0 !important;
  visibility: hidden !important;
}

.teaser-flashlight-section[data-light-mode="uv"] .brutalist-showcase-uv-overlay {
  opacity: 1;
  visibility: visible;
}

/* Section 2 CTA Monolith (Buttons have .shock-trigger for HOVER jumpscare) */
.teaser-cta-monolith {
  position: relative;
  z-index: 45;
  border: 1px solid #2a2a2a;
  background: rgba(10, 10, 10, 0.85);
  padding: 4.75rem 3.5rem;
  text-align: center;
  margin-bottom: 5.5rem;
}

.teaser-cta-heading {
  font-family: var(--font-v5-title);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.teaser-cta-sub {
  font-size: 1.2rem;
  color: var(--muted-tint);
  margin-bottom: 3rem;
}

.teaser-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
}

/* --------------------------------------------------------------------------
   CALL-TO-ACTION PER LA LUCE UV (IN FONDO ALLA SEZIONE 2)
   "C'è altro nel buio. Attiva lo spettro UV."
   -------------------------------------------------------------------------- */
.uv-invitation-banner {
  position: relative;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 3rem 2rem;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(15, 23, 42, 0.55) 50%,
    transparent 100%
  );
  border-top: 1px solid rgba(56, 189, 248, 0.22);
  border-bottom: 1px solid rgba(56, 189, 248, 0.22);
}

.uv-invitation-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.45), transparent);
}

.uv-invitation-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.uv-invitation-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: #38bdf8;
  opacity: 0.85;
}

.uv-invitation-phrase {
  font-family: var(--font-v5-title);
  font-size: clamp(1.6rem, 3.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #e0f2fe;
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.55), 0 0 36px rgba(99, 102, 241, 0.35);
  animation: creepyFlicker 4.5s infinite ease-in-out;
}

@keyframes creepyFlicker {
  0%, 100% { opacity: 0.92; }
  48% { opacity: 0.95; }
  50% { opacity: 0.45; transform: skewX(-1deg); }
  52% { opacity: 1; transform: skewX(0deg); }
  78% { opacity: 0.88; }
  80% { opacity: 0.55; }
  82% { opacity: 0.94; }
}

.uv-invitation-trigger {
  margin-top: 0.35rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.uv-invitation-trigger:hover,
.uv-invitation-trigger:focus-visible {
  background: #38bdf8;
  color: #020202;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.75);
  outline: none;
}

/* Spazio fisico di buio totale sotto l'invito UV prima della salita della Sezione 3 */
.teaser-bottom-void-spacer {
  width: 100%;
  height: 4vh;
  pointer-events: none;
}


/* ==========================================================================
   SEZIONE 2.5: ARCHIVIO VISIVO — EARLY FOOTAGE (BRUTAL STACKED CURTAIN)
   - Scivola sopra la fine della Sezione 2 (z-index: 40) come un muro nero e dritto (border-radius: 0 !important).
   - Rimane bloccata in fondo (position: sticky; top: var(--footage-sticky-top, 0px))
     mentre la Sezione 3 (z-index: 50) le scivola sopra con la stessa identica meccanica.
   ========================================================================== */
.footage-brutalist-section {
  position: sticky;
  top: var(--footage-sticky-top, 0px);
  z-index: 40;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--canvas-ground);
  padding: 8.5rem 2rem 8.5rem 2rem;
  border-radius: 0 !important;
  border-top: 2px solid #2a2a2a;
  border-bottom: 1px solid var(--surface-border);
  box-shadow: 0 -48px 110px rgba(0, 0, 0, 0.98);
}

/* ==========================================================================
   SEZIONE 3: DOSSIER ORYX GP STUDIO (BRUTAL STACKED CURTAIN)
   - Scivola sopra la fine della Sezione 2.5 (z-index: 50) con lo stesso identico
     motore e stile di transizione (muro nero dritto, border-top: 2px solid #2a2a2a,
     box-shadow: 0 -48px 110px rgba(0, 0, 0, 0.98), border-radius: 0 !important).
   ========================================================================== */
.studio-minimal-section {
  position: relative;
  z-index: 50;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--canvas-ground);
  padding: 8.5rem 2rem 6rem 2rem;
  border-radius: 0 !important;
  border-top: 2px solid #2a2a2a;
  box-shadow: 0 -48px 110px rgba(0, 0, 0, 0.98);
}

.studio-minimal-container {
  width: 90%;
  max-width: 1560px;
  margin: 0 auto;
}

/* Spazio di respiro in fondo al contenitore principale della Sezione 2.5 (sotto il bottone Wishlist)
   per ritardare la salita della Sezione 3 */
.footage-brutalist-section .studio-minimal-container {
  padding-bottom: max(8.5rem, 18vh);
}

/* 1. CCTV EARLY FOOTAGE HEADER & ASYMMETRIC 2-COLUMN VIDEO GRID */
.cctv-footage-block {
  width: 100%;
  margin-bottom: 0;
}

.cctv-header {
  border-top: 1px solid #262626;
  padding-top: 1.5rem;
  margin-bottom: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.dossier-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: #8a8a8a;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.dossier-kicker.invisible {
  visibility: hidden;
  opacity: 0;
  user-select: none;
  pointer-events: none;
}

.cctv-raw-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 0.98;
  color: #ffffff;
  text-transform: uppercase;
}

.cctv-raw-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  color: #737373;
  text-transform: uppercase;
}

.cctv-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.cctv-video-cell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000000;
  border: 1px solid #404040; /* border-neutral-700 */
  border-radius: 0 !important;
  overflow: hidden;
}

.cctv-video-cell.col-span-2 {
  grid-column: span 2 / span 2;
}

.cctv-video-el {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 0 !important;
}

/* 1B. BLOCCO MECCANICA MICROFONO & CTA WISHLIST (FINE SEZIONE 2.5 — NO JUMPSCARE) */
.mic-mechanic-cta-block {
  width: 100%;
  max-width: 48rem; /* max-w-3xl (768px) */
  margin: 6.5rem auto 1rem auto;
  text-align: center;
}

.mic-mechanic-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  color: #8a8a8a;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.mic-mechanic-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.05;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.mic-mechanic-text {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.85;
  color: #e5e5e5;
  margin-bottom: 3rem;
}

.mic-mechanic-cta-wrap {
  display: flex;
  justify-content: center;
}

.brutalist-wishlist-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 0 !important;
  padding: 1.35rem 2.75rem;
  font-family: var(--font-mono);
  font-size: clamp(0.88rem, 1.15vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  /* Inversione cromatica istantanea (0ms) su hover */
  transition: none;
}

.brutalist-wishlist-cta:hover,
.brutalist-wishlist-cta:focus-visible {
  background-color: #ffffff;
  color: #000000;
  border-color: #ffffff;
  outline: none;
}

.brutalist-cta-glitch-label {
  display: inline-block;
  position: relative;
}

.brutalist-wishlist-cta:hover .brutalist-cta-glitch-label,
.brutalist-wishlist-cta:focus-visible .brutalist-cta-glitch-label {
  font-weight: 900;
  animation: brutalistTextGlitch 0.26s steps(2, end) infinite;
}

@keyframes brutalistTextGlitch {
  0% {
    transform: translate(0, 0);
    text-shadow: -1.5px 0 rgba(0, 0, 0, 0.45), 1.5px 0 rgba(0, 0, 0, 0.25);
  }
  25% {
    transform: translate(-1.5px, 0.5px) skewX(-2deg);
    text-shadow: 2px 0 rgba(0, 0, 0, 0.55), -1px 0 rgba(0, 0, 0, 0.25);
  }
  50% {
    transform: translate(1.5px, -0.5px);
    text-shadow: -2px 0 rgba(0, 0, 0, 0.5), 1px 0 rgba(0, 0, 0, 0.3);
  }
  75% {
    transform: translate(-1px, -0.5px) skewX(1.5deg);
    text-shadow: 1.5px 0 rgba(0, 0, 0, 0.45), -1.5px 0 rgba(0, 0, 0, 0.25);
  }
  100% {
    transform: translate(0, 0);
    text-shadow: none;
  }
}

/* 2. PRESENTAZIONE STUDIO — LAYOUT TIPOGRAFICO ORIGINALE (SOLO TESTI A SINISTRA, NO BOX DESTRO) */
.studio-original-presentation {
  width: 100%;
  margin-top: 0;
  margin-bottom: 5.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #262626;
}

.studio-header {
  margin-bottom: 4rem;
}

.section-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--muted-tint);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.section-kicker.invisible {
  visibility: hidden;
  opacity: 0;
  user-select: none;
  pointer-events: none;
}

.studio-minimal-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--primary-ink);
  line-height: 1.02;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.studio-minimal-subtitle {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 300;
  color: #cccccc;
  max-width: 55ch;
  line-height: 1.45;
}

.studio-story-main,
.max-w-prose {
  max-width: 65ch;
}

.studio-lead-paragraph {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.65;
  color: #ffffff;
  margin-bottom: 1.75rem;
}

.studio-body-paragraph {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #aaaaaa;
  margin-bottom: 1.5rem;
}

.studio-body-paragraph:last-child {
  margin-bottom: 0;
}

.studio-body-paragraph strong,
.studio-lead-paragraph strong {
  color: #ffffff;
  font-weight: 600;
}

/* Follow Development Progress Block (Instagram, TikTok, Itch.io) */
.studio-follow-block {
  border-top: 1px solid #262626;
  padding-top: 4rem;
  margin-top: 5rem;
  margin-bottom: 5rem;
}

.follow-header {
  margin-bottom: 3rem;
}

.follow-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.follow-desc {
  font-size: 1.1rem;
  color: var(--muted-tint);
  max-width: 60ch;
}

.social-channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 4rem;
}

.social-channel-btn {
  background: var(--surface-panel);
  border: 1px solid #262626;
  border-radius: 0 !important;
  padding: 2.25rem 2rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  transition: all 0.25s ease;
}

.social-channel-btn:hover, .social-channel-btn:focus-visible {
  border-color: #ffffff;
  background: #ffffff;
  outline: none;
}

.channel-platform {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ffffff;
  transition: color 0.2s ease;
}

.channel-action {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--muted-tint);
  transition: color 0.2s ease;
}

.social-channel-btn:hover .channel-platform,
.social-channel-btn:hover .channel-action {
  color: #000000;
}

.final-cta-repeat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #262626;
}

.back-to-top-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--muted-tint);
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-to-top-link:hover {
  color: #ffffff;
}

.obscura-footer {
  margin-top: 5rem;
  border-top: 1px solid #262626;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--muted-tint);
}

/* --------------------------------------------------------------------------
   RESPONSIVENESS
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .teaser-impact-grid {
    grid-template-columns: 1fr;
  }

  .social-channels-grid {
    grid-template-columns: 1fr;
  }

  .hero-3d-center-container {
    max-width: 420px;
    height: 420px;
  }

  .uv-invitation-banner {
    flex-direction: column;
    gap: 1.25rem;
  }

  .uv-invitation-line {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .cctv-video-grid {
    grid-template-columns: 1fr;
  }

  .cctv-video-cell.col-span-2 {
    grid-column: span 1 / span 1;
  }
}

@media (max-width: 640px) {
  .obscura-nav {
    padding: 0 1rem;
  }

  .nav-center {
    display: none;
  }

  .teaser-flashlight-section {
    padding: 6rem 0 7rem 0;
  }

  .flashlight-controls-hud,
  .teaser-imposing-container,
  .studio-minimal-container {
    width: 92%;
  }

  .teaser-giant-card {
    padding: 2.25rem 1.75rem;
  }

  .teaser-cta-monolith {
    padding: 3rem 1.5rem;
  }

  .obscura-footer {
    flex-direction: column;
    gap: 0.75rem;
  }
}
