/* Dark Dream — static HTML5 one-page */

@font-face {
  font-family: "Cinzel";
  src:
    url("../fonts/Cinzel-Bold.woff2") format("woff2"),
    url("../fonts/Cinzel-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #070711;
  --text: rgba(244, 244, 245, 0.92);
  --muted: rgba(212, 212, 216, 0.72);
  --cyan: #78d3ff;
  --purple: #a855f7;
  --orange: #fb923c;
  --font-display: "Cinzel", Georgia, "Times New Roman", serif;
  --font-serif: var(--font-display);
  --font-sans: "Inter", system-ui, sans-serif;
  --scrollp: 0;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.75rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* Cinematic sticky navigation */
.dream-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 1rem 0;
  background: rgba(7, 7, 17, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
  transition:
    background 0.9s ease,
    border-color 0.9s ease,
    backdrop-filter 0.9s ease,
    box-shadow 0.9s ease,
    padding 0.9s ease;
}

.dream-nav.is-scrolled {
  padding: 0.75rem 0;
  background: rgba(4, 4, 10, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.45);
}

.dream-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  width: min(1180px, 94vw);
  margin: 0 auto;
}

.dream-nav__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.55s ease,
    visibility 0.55s ease,
    max-width 0.55s ease;
}

.dream-nav.is-scrolled .dream-nav__brand {
  max-width: 12rem;
  opacity: 0.92;
  visibility: visible;
  pointer-events: auto;
}

.dream-nav__logo {
  width: auto;
  height: clamp(1.55rem, 3.2vw, 2rem);
  opacity: 0.85;
  filter: brightness(0.92) contrast(0.95);
  transition: opacity 0.9s ease, filter 0.9s ease;
}

.dream-nav.is-scrolled .dream-nav__logo {
  opacity: 1;
  filter: brightness(1) contrast(1);
}

.dream-nav__wordmark {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dream-nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: clamp(0.65rem, 2vw, 1.75rem);
  min-width: 0;
}

.dream-nav__link {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 244, 245, 0.42);
  white-space: nowrap;
  transition: color 0.8s ease, text-shadow 0.8s ease;
}

.dream-nav__link:hover,
.dream-nav__link:focus-visible {
  color: rgba(255, 248, 235, 0.72);
  text-shadow: 0 0 24px rgba(255, 220, 180, 0.12);
}

.dream-nav__cta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.dream-nav__cta-btn {
  padding: 0.55rem 0.85rem;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 244, 245, 0.42);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    color 0.8s ease,
    background 0.8s ease,
    border-color 0.8s ease,
    box-shadow 0.8s ease;
}

.dream-nav__cta-btn:hover,
.dream-nav__cta-btn:focus-visible {
  color: rgba(255, 248, 235, 0.75);
  background: rgba(0, 0, 0, 0.38);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 28px rgba(120, 211, 255, 0.08);
}

.dream-nav__lang {
  flex-shrink: 0;
}

.dream-nav__lang-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.45rem 1.75rem 0.45rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: none;
  color: rgba(244, 244, 245, 0.72);
  background:
    rgba(0, 0, 0, 0.28)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E")
    right 0.45rem center / 0.75rem no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}

.dream-nav__lang-select:hover,
.dream-nav__lang-select:focus-visible {
  color: rgba(255, 248, 235, 0.88);
  border-color: rgba(168, 85, 247, 0.4);
  outline: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .dream-nav__links {
    justify-content: flex-start;
    overflow-x: auto;
    flex: 1;
    padding: 0.15rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  }

  .dream-nav__links::-webkit-scrollbar {
    display: none;
  }

  .dream-nav__inner {
    flex-wrap: nowrap;
  }

  .dream-nav__cta-btn {
    padding: 0.48rem 0.65rem;
    font-size: 0.62rem;
  }

  .dream-nav__lang-select {
    padding: 0.4rem 1.55rem 0.4rem 0.55rem;
    font-size: 0.62rem;
    max-width: 6.5rem;
  }
}

@media (max-width: 560px) {
  .dream-nav__logo {
    height: 1.45rem;
  }

  .dream-nav__link {
    font-size: 0.64rem;
    letter-spacing: 0.15em;
  }
}

.wrap {
  position: relative;
  z-index: 2;
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 7rem) 0;
}

/* Grain overlay */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255,255,255,0.05) 0,
    rgba(255,255,255,0.03) 1px,
    transparent 3px
  );
}

/* Sections */
.section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
}

.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #070711;
  background-image: var(--section-bg, url('../images/placeholder.svg'));
  background-size: cover;
  background-position: center;
  filter: saturate(0.82) contrast(1.05) brightness(calc(0.88 - var(--scrollp) * 0.12));
  transform: scale(1.02);
  will-change: transform, filter;
}

.section-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0, 0, 0, calc(0.65 + var(--scrollp) * 0.2)),
    rgba(0, 0, 0, calc(0.85 + var(--scrollp) * 0.1))
  );
  pointer-events: none;
}

.section-bg__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.section-bg--photo {
  background-image: none;
  filter: none;
  transform: none;
}

/* Photo backgrounds — visible under atmosphere (all sections) */
.section-bg--photo::before {
  background: linear-gradient(
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.6)
  );
}

.section-bg--photo .section-bg__media {
  filter: saturate(0.9) contrast(1.05) brightness(1);
}

.vignette {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 55% 30%, rgba(120, 211, 255, 0.10), transparent 55%),
    radial-gradient(900px 500px at 30% 70%, rgba(168, 85, 247, 0.10), transparent 55%),
    radial-gradient(900px 600px at 70% 80%, rgba(251, 146, 60, 0.06), transparent 55%),
    radial-gradient(900px 700px at 50% 50%, transparent 55%, rgba(0,0,0,0.78) 100%);
}

.fog {
  pointer-events: none;
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(800px 500px at 30% 40%, rgba(167, 139, 250, 0.18), transparent 60%),
    radial-gradient(900px 600px at 70% 55%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(700px 500px at 50% 80%, rgba(251, 146, 60, 0.08), transparent 62%);
  filter: blur(18px);
  animation: fog-drift 16s ease-in-out infinite;
  opacity: calc(0.32 + var(--scrollp) * 0.25);
}

.fog-slow { animation-duration: 22s; }

@keyframes fog-drift {
  0%, 100% { transform: translate3d(-2%, 0, 0) scale(1.02); }
  50% { transform: translate3d(2%, -1%, 0) scale(1.04); }
}

.portal-pulse {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(160px 220px at 52% 38%, rgba(167, 139, 250, 0.5), transparent 60%),
    radial-gradient(220px 280px at 52% 38%, rgba(34, 211, 238, 0.28), transparent 65%);
  mix-blend-mode: screen;
  animation: portal 3.8s ease-in-out infinite;
  opacity: calc(0.45 - var(--scrollp) * 0.35);
}

@keyframes portal {
  0%, 100% { opacity: 0.35; transform: scale(0.98); }
  50% { opacity: 0.62; transform: scale(1.02); }
}

/* HERO — cinematic dream */
.section-hero {
  min-height: 100vh;
  min-height: 100svh;
  isolation: isolate;
}

.section-hero .hero-bg-parallax {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
}

.section-hero .section-bg {
  filter: none;
}

.section-hero .section-bg::before {
  background: linear-gradient(
    rgba(0, 0, 0, calc(0.28 + var(--scrollp) * 0.12)),
    rgba(0, 0, 0, calc(0.42 + var(--scrollp) * 0.1))
  );
}

.section-hero .section-bg__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 42%;
  filter: none;
  transform: scale(1.04);
  animation: hero-forest-breathe 28s ease-in-out infinite;
}

@keyframes hero-forest-breathe {
  0%, 100% { transform: scale(1.04) translate3d(0, 0, 0); }
  50% { transform: scale(1.07) translate3d(-0.35%, 0.15%, 0); }
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-atmosphere [data-hero-depth] {
  will-change: transform;
}

/* Ambiguous portal — beautiful and wrong */
.hero-portal {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-portal__bloom {
  position: absolute;
  width: min(38vw, 460px);
  height: min(48vh, 500px);
  left: 50%;
  top: 32%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255, 248, 235, 0.28), transparent 44%),
    radial-gradient(ellipse at 48% 50%, rgba(167, 139, 250, 0.22), transparent 60%),
    radial-gradient(ellipse at 52% 55%, rgba(168, 85, 247, 0.16), transparent 68%);
  filter: blur(32px);
  mix-blend-mode: screen;
  animation: portal-bloom 7s ease-in-out infinite;
}

.hero-portal__core {
  position: absolute;
  width: min(16vw, 180px);
  height: min(24vh, 220px);
  left: 50%;
  top: 34%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, 0.38), rgba(167, 139, 250, 0.12) 48%, transparent 72%);
  filter: blur(8px);
  mix-blend-mode: screen;
  animation: portal-core 4.2s ease-in-out infinite;
}

.hero-portal__distort {
  position: absolute;
  width: min(28vw, 320px);
  height: min(36vh, 380px);
  left: 50%;
  top: 35%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.14), transparent 68%);
  filter: blur(14px);
  mix-blend-mode: overlay;
  animation: portal-distort 5.5s ease-in-out infinite;
}

.hero-portal__particles {
  position: absolute;
  left: 50%;
  top: 30%;
  width: 240px;
  height: 280px;
  transform: translate(-50%, -50%);
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 70% 20%, rgba(196, 132, 252, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 40% 60%, rgba(167, 139, 250, 0.4), transparent);
  background-size: 100% 100%;
  opacity: 0.35;
  animation: portal-particles 12s linear infinite;
}

@keyframes portal-bloom {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(0.96); }
  35% { opacity: 0.62; transform: translate(-49%, -51%) scale(1.03); }
  68% { opacity: 0.48; transform: translate(-51%, -49%) scale(1); }
}

@keyframes portal-core {
  0%, 100% { opacity: 0.38; filter: blur(8px); }
  50% { opacity: 0.68; filter: blur(12px); }
}

@keyframes portal-distort {
  0%, 100% { transform: translate(-50%, -50%) scaleX(1) scaleY(1); opacity: 0.35; }
  33% { transform: translate(-49%, -51%) scaleX(1.06) scaleY(0.94); opacity: 0.55; }
  66% { transform: translate(-51%, -50%) scaleX(0.96) scaleY(1.05); opacity: 0.42; }
}

@keyframes portal-particles {
  0% { transform: translate(-50%, -50%) rotate(0deg); opacity: 0.4; }
  50% { opacity: 0.7; }
  100% { transform: translate(-50%, -52%) rotate(8deg); opacity: 0.45; }
}

.hero-fog-back { animation-duration: 26s; opacity: 0.26; z-index: 2; }
.hero-fog-mid {
  animation: fog-drift 19s ease-in-out infinite reverse;
  opacity: 0.18;
  z-index: 3;
  filter: blur(24px);
}

.hero-vignette-cine {
  position: absolute;
  inset: 0;
  z-index: 5;
  background:
    radial-gradient(ellipse 55% 45% at 18% 78%, rgba(0, 0, 0, 0.55), transparent 70%),
    radial-gradient(ellipse 50% 40% at 88% 92%, rgba(0, 0, 0, 0.65), transparent 65%),
    radial-gradient(900px 500px at 52% 32%, rgba(255, 230, 180, 0.04), transparent 52%),
    radial-gradient(ellipse 115% 90% at 50% 48%, transparent 42%, rgba(0, 0, 0, 0.4) 80%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 28%, transparent 68%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-breath {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse 80% 50% at 50% 80%, rgba(0, 0, 0, 0.28), transparent 70%);
  animation: hero-breath 9s ease-in-out infinite;
}

@keyframes hero-breath {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.65; }
}

.hero-dust {
  position: absolute;
  inset: -10%;
  z-index: 4;
  opacity: 0.2;
  background-image:
    radial-gradient(1px 1px at 12% 42%, rgba(216, 180, 254, 0.35), transparent),
    radial-gradient(1px 1px at 78% 38%, rgba(196, 132, 252, 0.3), transparent),
    radial-gradient(1px 1px at 34% 72%, rgba(167, 139, 250, 0.32), transparent),
    radial-gradient(1.5px 1.5px at 62% 18%, rgba(168, 85, 247, 0.28), transparent);
  animation: dust-drift 24s ease-in-out infinite;
}

@keyframes dust-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(1.5%, -2%, 0); }
}

/* Foreground frame */
.hero-frame {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.hero-frame--left {
  background:
    linear-gradient(108deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.42) 24%, transparent 50%),
    radial-gradient(ellipse 120px 380px at 0% 58%, rgba(0, 0, 0, 0.7), transparent 75%);
  filter: blur(1px);
  opacity: 0.88;
}

.hero-frame--right {
  background:
    linear-gradient(252deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 20%, transparent 42%),
    radial-gradient(ellipse 100px 340px at 100% 62%, rgba(0, 0, 0, 0.88), transparent 68%);
}

.hero-frame--top {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, transparent 28%);
  z-index: 6;
}

/* Dark breathing room behind title block (left) */
.hero-left-veil {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 65% at 18% 58%, rgba(0, 0, 0, 0.72), transparent 68%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.22) 38%, transparent 58%);
}

/* Teddy — right dark zone, discovered in shadow */
.hero-teddy {
  position: absolute;
  right: -5%;
  bottom: -2%;
  width: min(340px, 38vw);
  z-index: 5;
  pointer-events: none;
}

.hero-teddy .teddy {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.3;
}

.hero-teddy-fog {
  position: absolute;
  inset: -20% -30% 0 -15%;
  z-index: 3;
  background:
    radial-gradient(ellipse 75% 60% at 45% 55%, rgba(167, 139, 250, 0.12), transparent 58%),
    radial-gradient(ellipse 95% 55% at 60% 40%, rgba(0, 0, 0, 0.55), transparent 65%),
    linear-gradient(270deg, transparent 20%, rgba(0, 0, 0, 0.45) 70%);
  filter: blur(22px);
  animation: fog-drift 20s ease-in-out infinite;
}

.hero-teddy-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(160deg, rgba(0, 0, 0, 0.65) 0%, transparent 50%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, transparent 45%);
}

.hero-wrap {
  position: relative;
  z-index: 8;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100svh;
}

.hero-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  box-sizing: border-box;
}

/* Logo — left; narrative Y minus actual logo height (960×320 ≈ 3:1, not full width) */
.hero-brand {
  position: absolute;
  left: clamp(3.5rem, 14vw, 10rem);
  top: calc(54% - clamp(56px, 8vw, 107px));
  transform: none;
  z-index: 3;
  max-width: min(32vw, 300px);
}

.hero-brand::before {
  content: "";
  position: absolute;
  inset: -15% -25% -18% -18%;
  z-index: -1;
  background: radial-gradient(ellipse 85% 75% at 32% 48%, rgba(0, 0, 0, 0.62), transparent 70%);
  pointer-events: none;
}

.hero-logo-heading {
  margin: 0;
  font-size: 0;
  line-height: 0;
}

.hero-logo-scene {
  position: relative;
  display: block;
  width: clamp(168px, 24vw, 320px);
  max-width: 100%;
  aspect-ratio: 3 / 1;
}

.hero-logo-fog {
  position: absolute;
  inset: -10% -6%;
  z-index: 0;
  background: radial-gradient(ellipse at 42% 50%, rgba(167, 139, 250, 0.04), transparent 68%);
  filter: blur(14px);
  pointer-events: none;
}

.hero-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.64;
}

/* Narrative — slightly left of center for long translations */
.hero-narrative {
  position: absolute;
  left: 46%;
  top: 54%;
  transform: translate(-50%, -50%);
  z-index: 4;
  text-align: center;
  width: max-content;
  max-width: min(54rem, 94vw);
  padding: 0 1.5rem;
  box-sizing: border-box;
  pointer-events: none;
}

.hero-narrative-fog {
  position: absolute;
  inset: -55% -45%;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(0, 0, 0, 0.45), transparent 68%),
    radial-gradient(ellipse 90% 40% at 50% 80%, rgba(167, 139, 250, 0.06), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}

@media (max-width: 767px) {
  .hero-brand {
    left: clamp(2.5rem, 11vw, 4rem);
    top: calc(50% - clamp(49px, 14vw, 80px));
    transform: none;
    max-width: min(56vw, 230px);
  }

  html[data-lang="es"] .hero-brand,
  html[data-lang="pt"] .hero-brand,
  html[data-lang="de"] .hero-brand {
    left: clamp(3rem, 13vw, 4.75rem);
  }

  .hero-logo-scene {
    width: clamp(148px, 42vw, 240px);
  }

  .hero-narrative {
    left: 44%;
    top: 50%;
    max-width: 94vw;
    padding: 0 0.75rem;
  }

  html[data-lang="es"] .hero-narrative,
  html[data-lang="pt"] .hero-narrative,
  html[data-lang="de"] .hero-narrative {
    left: 42%;
  }

  .hero-teddy {
    width: min(240px, 56vw);
    right: -12%;
    bottom: -4%;
  }

  .hero-left-veil {
    background:
      radial-gradient(ellipse 80% 50% at 20% 72%, rgba(0, 0, 0, 0.75), transparent 70%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 45%);
  }
}

.hero-narrative .hero-line,
.hero-narrative .hero-subline {
  white-space: nowrap;
}

/* Spanish / Portuguese — longer copy: wrap + slightly smaller type */
html[data-lang="es"] .hero-brand,
html[data-lang="pt"] .hero-brand,
html[data-lang="de"] .hero-brand {
  left: clamp(4rem, 16vw, 11rem);
}

html[data-lang="es"] .hero-narrative,
html[data-lang="pt"] .hero-narrative,
html[data-lang="de"] .hero-narrative {
  left: 43%;
  max-width: min(48rem, 92vw);
}

html[data-lang="es"] .hero-narrative .hero-line,
html[data-lang="es"] .hero-narrative .hero-subline,
html[data-lang="pt"] .hero-narrative .hero-line,
html[data-lang="pt"] .hero-narrative .hero-subline,
html[data-lang="de"] .hero-narrative .hero-line,
html[data-lang="de"] .hero-narrative .hero-subline,
html[data-lang="fr"] .hero-narrative .hero-line,
html[data-lang="fr"] .hero-narrative .hero-subline,
html[data-lang="it"] .hero-narrative .hero-line,
html[data-lang="it"] .hero-narrative .hero-subline {
  white-space: nowrap;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

html[data-lang="es"] .hero-narrative .hero-line,
html[data-lang="pt"] .hero-narrative .hero-line,
html[data-lang="de"] .hero-narrative .hero-line,
html[data-lang="fr"] .hero-narrative .hero-line,
html[data-lang="it"] .hero-narrative .hero-line {
  font-size: clamp(0.88rem, 1.75vw, 1.32rem);
  letter-spacing: 0.03em;
}

html[data-lang="es"] .hero-narrative .hero-subline,
html[data-lang="pt"] .hero-narrative .hero-subline,
html[data-lang="de"] .hero-narrative .hero-subline,
html[data-lang="fr"] .hero-narrative .hero-subline,
html[data-lang="it"] .hero-narrative .hero-subline {
  font-size: clamp(0.8rem, 1.55vw, 1.12rem);
  letter-spacing: 0.03em;
}

.hero-narrative .hero-line {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 2.15rem);
  font-weight: 700;
  font-style: normal;
  color: #ffffff;
  opacity: 1;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: none;
  text-shadow:
    0 2px 24px rgba(0, 0, 0, 0.95),
    0 0 2px rgba(0, 0, 0, 0.85);
}

@media (max-width: 520px) {
  .hero-narrative .hero-line,
  .hero-narrative .hero-subline {
    white-space: normal;
  }

  .hero-narrative .hero-line {
    font-size: clamp(1.15rem, 4.8vw, 1.45rem);
    letter-spacing: 0.04em;
  }

  .hero-narrative .hero-subline {
    font-size: clamp(0.95rem, 3.8vw, 1.15rem);
    letter-spacing: 0.05em;
  }

  html[data-lang="es"] .hero-narrative .hero-line,
  html[data-lang="pt"] .hero-narrative .hero-line,
  html[data-lang="de"] .hero-narrative .hero-line,
  html[data-lang="fr"] .hero-narrative .hero-line,
  html[data-lang="it"] .hero-narrative .hero-line {
    white-space: normal;
    font-size: clamp(0.78rem, 3.35vw, 1rem);
    letter-spacing: 0.025em;
    max-width: 19em;
    text-wrap: balance;
  }

  html[data-lang="es"] .hero-narrative .hero-subline,
  html[data-lang="pt"] .hero-narrative .hero-subline,
  html[data-lang="de"] .hero-narrative .hero-subline,
  html[data-lang="fr"] .hero-narrative .hero-subline,
  html[data-lang="it"] .hero-narrative .hero-subline {
    font-size: clamp(0.72rem, 3vw, 0.92rem);
    letter-spacing: 0.025em;
    max-width: 19em;
    text-wrap: balance;
  }
}

.hero-narrative .hero-subline {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.05em;
  color: #ffffff;
  opacity: 1;
  line-height: 1.4;
  text-shadow:
    0 2px 20px rgba(0, 0, 0, 0.92),
    0 0 2px rgba(0, 0, 0, 0.8);
}

.title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
  margin: 0;
  letter-spacing: 0.05em;
}

.tagline {
  margin: 1rem 0 0;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: rgba(244,244,245,0.88);
}

.subtext {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 28rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.btn-row--dream {
  flex-wrap: nowrap;
  gap: 0.75rem 1rem;
  margin-top: clamp(1.25rem, 3vh, 1.75rem);
}

@media (max-width: 520px) {
  .btn-row--dream {
    flex-wrap: wrap;
  }
}

.btn-row-center { justify-content: center; }

.btn {
  display: inline-block;
  padding: 0.85rem 1.35rem;
  font-size: 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  transition: background 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.btn:hover {
  background: rgba(255,255,255,0.14);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.2);
  transform: translateY(-1px);
}

/* Ghostly dream buttons (hero only) */
.btn--dream {
  padding: 0.48rem 0.8rem;
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(244, 244, 245, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(244, 244, 245, 0.42);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  transition: color 1.4s ease, border-color 1.4s ease, background 1.4s ease;
}

.btn--dream:hover {
  transform: none;
  color: rgba(244, 244, 245, 0.68);
  background: rgba(0, 0, 0, 0.38);
  border-color: rgba(244, 244, 245, 0.2);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.45);
}

.section-hero .scroll-hint {
  position: absolute;
  left: 50%;
  bottom: clamp(5.5rem, 14vh, 7.5rem);
  z-index: 12;
  transform: translateX(-50%);
  display: block;
  margin: 0;
  padding: 0.35rem;
  text-decoration: none;
  opacity: 1;
  transition: opacity 0.4s ease;
  animation: scroll-hint-intro 1s ease forwards;
}

.section-hero .scroll-hint.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-hint__mouse {
  display: block;
  width: 22px;
  height: 42px;
  margin: 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 15px;
}

.scroll-hint__wheel {
  display: block;
  width: 3px;
  height: 3px;
  margin: 7px auto 0;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.9);
  animation: scroll-hint-wheel 1.6s ease infinite;
}

@keyframes scroll-hint-intro {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(24px);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes scroll-hint-wheel {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(14px);
  }
}

.hero-store-badges {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: clamp(1.25rem, 4vh, 2.5rem);
  z-index: 12;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
  width: max-content;
  max-width: min(96vw, 520px);
  margin: 0;
  padding: 0;
  transform: translateX(-50%);
}

.hero-store-badge {
  display: block;
  line-height: 0;
  opacity: 0.9;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.55));
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hero-store-badge:hover,
.hero-store-badge:focus-visible {
  opacity: 1;
  transform: translateY(-2px);
}

.hero-store-badge img {
  display: block;
  height: clamp(34px, 4.2vh, 44px);
  width: auto;
  max-width: min(40vw, 168px);
}

@media (max-width: 900px) {
  .hero-store-badges {
    left: 50%;
    right: auto;
    bottom: clamp(1.25rem, 4.5vh, 2rem);
    gap: 0.5rem 0.75rem;
    transform: translateX(-50%);
  }

  .hero-store-badge img {
    height: clamp(32px, 5vw, 40px);
    max-width: min(42vw, 150px);
  }

  .section-hero .scroll-hint {
    bottom: clamp(4.75rem, 12vh, 6.25rem);
  }
}

.hero-shadows {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero-shadows .silhouette {
  position: absolute;
  bottom: 18%;
  width: 120px;
  height: 200px;
  background: radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.95), transparent 70%);
  opacity: 0.38;
  filter: blur(3px);
  animation: silhouette-sway 16s ease-in-out infinite;
}

@keyframes silhouette-sway {
  0%, 100% { transform: skewX(6deg) translateX(0); }
  50% { transform: skewX(4deg) translateX(4px); }
}

.silhouette-left { left: 4%; }

.section-hero .silhouette-left {
  left: 8%;
  opacity: 0.22;
}
.silhouette-right {
  right: 4%;
  bottom: 14%;
  animation-delay: -4s;
  animation-name: silhouette-sway-right;
}

.section-hero .silhouette-right {
  right: 2%;
  bottom: 12%;
  opacity: 0.45;
}

@keyframes silhouette-sway-right {
  0%, 100% { transform: skewX(-6deg) translateX(0); }
  50% { transform: skewX(-4deg) translateX(-4px); }
}

.silhouette-far {
  left: 38%;
  bottom: 24%;
  width: 48px;
  height: 88px;
  opacity: 0.35;
  filter: blur(4px);
}

.section-hero .eye-1,
.section-hero .eye-2 { opacity: 0.45; }

.section-hero .eye-7 { top: 18%; left: 28%; opacity: 0.18; animation-delay: 0.8s; }
.section-hero .eye-8 { top: 42%; right: 8%; opacity: 0.15; width: 5px; height: 5px; animation-delay: 2.4s; }
.section-hero .eye-9 { bottom: 42%; left: 6%; opacity: 0.12; width: 4px; height: 4px; animation-delay: 3.6s; }

.eye {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(196, 132, 252, 0.95);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.75);
  animation: blink 4s ease-in-out infinite;
}

.eye-1 { top: 22%; left: 12%; }
.eye-2 { top: 30%; right: 14%; animation-delay: 1.2s; }
.eye-3 { bottom: 35%; left: 18%; opacity: 0.4; }
.eye-4 { bottom: 28%; right: 22%; opacity: 0.35; animation-delay: 2s; }
.eye-5 { bottom: 22%; left: 30%; opacity: 0.25; width: 4px; height: 4px; }
.eye-6 { bottom: 18%; right: 28%; opacity: 0.22; width: 4px; height: 4px; }

@keyframes blink {
  0%, 45%, 55%, 100% { opacity: 0.85; transform: scaleY(1); }
  50% { opacity: 0.2; transform: scaleY(0.2); }
}

/* Section typography */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  margin: 0 0 1.5rem;
  letter-spacing: 0.08em;
}

.section-lead {
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
}

.section-sub {
  color: rgba(212,212,216,0.58);
  font-size: 0.9rem;
  margin: 0;
}

/* Dream section — about copy + phrase sequence */
.section-dream {
  position: relative;
}

.dream-layout {
  display: flex;
  flex-direction: column;
  padding-top: clamp(5rem, 12vh, 7rem);
  padding-bottom: clamp(2rem, 5vh, 3rem);
}

.dream-about__title {
  margin-bottom: 1.25rem;
}

.dream-about__body {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  line-height: 1.75;
}

.dream-about__body p {
  margin: 0 0 1.15rem;
}

.dream-about__body p:last-child {
  margin-bottom: 0;
}

.dream-about__beat {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  letter-spacing: 0.04em;
  color: rgba(245, 240, 232, 0.88);
  margin-top: 1.5rem;
}

.dream-copy {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  max-width: min(44rem, 92vw);
  margin: clamp(3rem, 8vh, 5rem) auto 0;
  min-height: clamp(9rem, 22vh, 14rem);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.dream-phrase {
  position: absolute;
  margin: 0;
  width: 100%;
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.8vw, 2.15rem);
  line-height: 1.55;
  letter-spacing: 0.1em;
  color: rgba(220, 214, 204, 0.35);
  text-shadow:
    0 0 24px rgba(251, 191, 136, 0.08),
    0 0 48px rgba(0, 0, 0, 0.6);
  opacity: 0;
  filter: blur(12px);
  transition:
    opacity 1.6s ease,
    filter 1.6s ease,
    color 1.6s ease,
    text-shadow 1.6s ease;
}

.dream-phrase.is-active {
  opacity: 1;
  filter: blur(0);
  color: rgba(245, 240, 232, 0.92);
  text-shadow:
    0 0 28px rgba(251, 191, 136, 0.16),
    0 0 56px rgba(0, 0, 0, 0.78);
}

.dream-ambient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.dream-ambient__curtain {
  position: absolute;
  top: 0;
  width: 14%;
  height: 68%;
  background: linear-gradient(
    180deg,
    rgba(10, 8, 14, 0.5) 0%,
    rgba(18, 14, 22, 0.28) 60%,
    transparent 100%
  );
  opacity: 0.45;
}

.dream-ambient__curtain--left {
  left: 0;
  animation: dream-curtain-left 14s ease-in-out infinite;
}

.dream-ambient__curtain--right {
  right: 0;
  animation: dream-curtain-right 16s ease-in-out infinite;
}

.dream-ambient__dust {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 18% 32%, rgba(244, 244, 245, 0.22), transparent),
    radial-gradient(1px 1px at 72% 24%, rgba(244, 244, 245, 0.16), transparent),
    radial-gradient(1px 1px at 54% 68%, rgba(244, 244, 245, 0.14), transparent);
  opacity: 0.28;
  animation: dream-dust-drift 28s linear infinite;
}

@keyframes dream-curtain-left {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(1%); }
}

@keyframes dream-curtain-right {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-1%); }
}

@keyframes dream-dust-drift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-1%, -2%, 0); }
}

.flicker {
  position: absolute;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.flicker img {
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  border-radius: 0.5rem;
  filter: contrast(1.2) saturate(0.7);
}

.flicker-blocks { top: 25%; left: 8%; }
.flicker-doll { bottom: 20%; right: 10%; }

.flicker.show {
  animation: flicker-pop 0.12s ease forwards;
}

@keyframes flicker-pop {
  0% { opacity: 0; transform: scale(0.9) rotate(-2deg); }
  30% { opacity: 0.85; }
  100% { opacity: 0; transform: scale(1.05) rotate(2deg); }
}

/* Cards */
#rules {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#rules .wrap {
  padding-top: clamp(2rem, 4vh, 3rem);
  padding-bottom: clamp(2rem, 4vh, 3rem);
}

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  padding: 2rem 1.5rem 1.75rem;
  border-radius: 1rem;
  background: rgba(12, 12, 20, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-align: center;
  transition: transform 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease, background 0.5s ease;
}

.card:hover {
  transform: translateY(-3px) scale(1.01);
  background: rgba(12, 12, 20, 0.26);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 32px rgba(168, 85, 247, 0.12);
}

.card-icon {
  display: block;
  width: clamp(64px, 18vw, 80px);
  height: clamp(64px, 18vw, 80px);
  max-width: none;
  margin: 0 auto 1.25rem;
  object-fit: contain;
  filter:
    drop-shadow(0 10px 28px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 20px rgba(251, 191, 136, 0.1));
  transition: transform 0.55s ease, filter 0.55s ease;
}

@media (min-width: 768px) {
  .card-icon {
    width: clamp(96px, 10vw, 128px);
    height: clamp(96px, 10vw, 128px);
    margin-bottom: 1.5rem;
  }
}

.card:hover .card-icon {
  transform: translateY(-5px) scale(1.05);
  filter:
    drop-shadow(0 14px 36px rgba(0, 0, 0, 0.65))
    drop-shadow(0 0 32px rgba(251, 191, 136, 0.2))
    drop-shadow(0 0 48px rgba(120, 211, 255, 0.08);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Gallery — square thumbnail grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.75rem, 2vw, 1.15rem);
  width: 100%;
  max-width: 42rem;
  margin: 1.5rem auto 0;
  overflow: visible;
  padding-bottom: 0;
}

@media (min-width: 540px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  #nightmare-gallery {
    grid-template-columns: repeat(4, 1fr);
    max-width: 52rem;
  }

  #gameplay-gallery {
    grid-template-columns: repeat(3, 1fr);
    max-width: 40rem;
  }
}

.gallery-item {
  aspect-ratio: 1;
  width: 100%;
  min-width: 0;
  scroll-snap-align: unset;
  position: relative;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 2px solid rgba(168, 85, 247, 0.5);
  background: rgba(168, 85, 247, 0.12);
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease, background 0.35s ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  border-color: rgba(168, 85, 247, 0.85);
  background: rgba(168, 85, 247, 0.2);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.28);
  transform: translateY(-2px);
  outline: none;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: auto 0.5rem 0.5rem auto;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background:
    rgba(7, 7, 17, 0.72)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E")
    center / 0.75rem no-repeat;
  opacity: 0.85;
  pointer-events: none;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  max-width: none;
  object-fit: cover;
  opacity: 0.92;
  border-radius: 0.65rem;
  transition: transform 0.5s ease, filter 0.5s ease;
  background: rgba(168, 85, 247, 0.08);
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: contrast(1.08) saturate(0.95);
}

/* Gallery lightbox — framed modal (prettyPhoto-style) */
.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
  box-sizing: border-box;
}

.gallery-modal.is-open {
  display: flex !important;
}

body.gallery-modal-open {
  overflow: hidden !important;
}

.gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(4, 4, 12, 0.72);
  cursor: pointer;
}

.gallery-modal__frame {
  position: relative;
  z-index: 2;
  width: min(720px, 94vw);
  max-height: 90vh;
  padding: 1.25rem 1.25rem 1rem;
  background: linear-gradient(180deg, #14141f 0%, #080810 100%);
  border: 2px solid rgba(168, 85, 247, 0.38);
  border-radius: 0.5rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 28px 72px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.gallery-modal__content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

.gallery-modal__figure {
  margin: 0;
  min-width: 0;
}

.gallery-modal__img {
  display: block;
  width: 100%;
  max-height: min(58vh, 520px);
  margin: 0 auto;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.gallery-modal__caption {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: rgba(244, 244, 245, 0.88);
}

.gallery-modal__close {
  position: absolute;
  top: -0.7rem;
  right: -0.7rem;
  z-index: 3;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid rgba(168, 85, 247, 0.45);
  border-radius: 999px;
  background: #12121c;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.gallery-modal__close:hover,
.gallery-modal__close:focus-visible {
  background: #1c1c28;
  border-color: rgba(168, 85, 247, 0.7);
  outline: none;
}

.gallery-modal__nav {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(12, 12, 20, 0.92);
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.gallery-modal__nav:hover:not(:disabled),
.gallery-modal__nav:focus-visible:not(:disabled) {
  background: rgba(28, 28, 40, 0.95);
  border-color: rgba(168, 85, 247, 0.45);
  outline: none;
}

.gallery-modal__nav:disabled {
  opacity: 0.25;
  cursor: default;
}

@media (max-width: 520px) {
  .gallery-modal__content {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 0.65rem;
  }

  .gallery-modal__nav {
    justify-self: center;
  }

  .gallery-modal__nav--prev {
    order: 2;
  }

  .gallery-modal__figure {
    order: 1;
  }

  .gallery-modal__nav--next {
    order: 3;
  }
}

/* Toys — hidden */
.section-toys,
#toys {
  display: none !important;
}

.toys-wrap {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .toys-wrap { grid-template-columns: 1fr 1fr; }
}

.werewolf-teddy {
  width: min(560px, 95%);
  margin: 0 auto;
  filter: drop-shadow(0 28px 60px rgba(0,0,0,0.65));
  transition: transform 0.15s ease-out;
}

/* Gameplay — world panels grid */
.worlds {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.world-panel {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.world-panel-wide {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .world-panel-wide { grid-column: span 2; }
}

.world-panel img {
  display: block;
  width: 100%;
  height: 14rem;
  min-height: 14rem;
  object-fit: cover;
  opacity: 0.85;
  background: rgba(7, 7, 17, 0.9);
  transition: transform 0.8s ease;
}

.world-panel:hover img { transform: scale(1.03); }

.world-panel p {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 1.25rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

/* Trailer */
#trailer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#trailer .section-title,
#trailer .trailer-quote {
  align-self: flex-start;
  width: 100%;
}

.trailer-quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 28rem;
}

.video-wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.video-embed-box {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.video-embed-box iframe,
.video-wrap iframe,
.video-wrap .video-embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.portal-flicker {
  opacity: 0.2;
}

.section-trailer:hover .portal-flicker {
  animation: portal 1.2s ease-in-out infinite;
}

/* Community */
.community-wrap { text-align: center; }

.community-eyes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Final */
.section-final {
  position: relative;
  min-height: 90vh;
  min-height: 90svh;
}

#final .final-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

.final-line {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8.5vw, 5.25rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0;
  line-height: 1.12;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.9);
}

.final-sub {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.8vw, 2.15rem);
  font-weight: 700;
  font-style: italic;
  color: #ffffff;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-align: center;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.85);
}

.section-final .final-store-badges,
#final .final-store-badges {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
  margin: clamp(2rem, 5vh, 3rem) auto 0;
  padding: 0;
  width: max-content;
  max-width: min(96vw, 640px);
  z-index: 2;
}

#final .final-store-badges .hero-store-badge img,
.section-final .final-store-badges .hero-store-badge img {
  max-width: min(30vw, 156px);
  height: clamp(32px, 4vh, 42px);
}

.store-badges,
.hero-store-badges {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
  margin: 0;
  padding: 0;
}

.hero-store-badges {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: clamp(1.25rem, 4vh, 2.5rem);
  z-index: 12;
  width: max-content;
  max-width: min(96vw, 520px);
  transform: translateX(-50%);
}

.fade-black {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30vh;
  background: linear-gradient(transparent, #000);
  pointer-events: none;
}

/* Footer — compact (overrides .section 100vh) */
footer#footer.section.section-footer {
  position: relative;
  min-height: clamp(220px, 32vh, 360px) !important;
  height: clamp(220px, 32vh, 360px) !important;
  max-height: clamp(220px, 32vh, 360px) !important;
  overflow: hidden;
}

footer#footer .fog,
footer#footer .vignette {
  opacity: 0.75;
}

footer#footer .section-bg--photo {
  overflow: hidden;
  background-image: url("../images/teddy_bear_broken.webp");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: auto 100%;
}

footer#footer .section-bg--photo .section-bg__media {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
}

footer#footer .footer-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  gap: 0.45rem;
  min-height: 100% !important;
  padding: 0 0 1.25rem;
  box-sizing: border-box;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    0deg,
    rgba(7, 7, 17, 0.92) 0%,
    rgba(7, 7, 17, 0.35) 35%,
    transparent 55%
  );
}

footer#footer .footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85);
}

footer#footer .footer-line {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}

/* Environmental edge toys — after hero only, behind content */
#dream-edges,
.dream-edges {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

figure.dream-edge,
.dream-edge {
  position: absolute;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
}

.dream-edge[data-side="right"] {
  left: auto !important;
  right: 0 !important;
}

.dream-edge[data-side="left"] {
  right: auto !important;
  left: 0 !important;
}

#dream-edges .dream-edge--teddy {
  top: 20%;
  width: min(19vw, 210px);
  max-width: 210px;
  right: 0 !important;
  left: auto !important;
}

#dream-edges .dream-edge--horse {
  top: 42%;
  width: min(17vw, 200px);
  max-width: 200px;
  left: 0 !important;
  right: auto !important;
}

#dream-edges .dream-edge--doll {
  bottom: 8%;
  top: auto;
  width: min(16vw, 180px);
  max-width: 180px;
  right: 0 !important;
  left: auto !important;
}

#dream-edges .dream-edge img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.dream-edge[data-side="right"] img {
  object-fit: contain;
  object-position: right center;
}

.dream-edge[data-side="left"] img {
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 900px) {
  #dream-edges .dream-edge--teddy {
    top: 22%;
    width: min(22vw, 130px);
    max-width: 130px;
  }

  #dream-edges .dream-edge--horse {
    top: 44%;
    width: min(20vw, 120px);
    max-width: 120px;
  }

  #dream-edges .dream-edge--doll {
    bottom: 10%;
    width: min(19vw, 110px);
    max-width: 110px;
  }
}

/* Reveal on scroll — content visible by default; JS adds polish only */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fog,
  .portal-pulse,
  .eye,
  .hero-portal__bloom,
  .hero-portal__core,
  .hero-portal__distort,
  .hero-portal__particles,
  .hero-breath,
  .hero-dust,
  .hero-shadows .silhouette,
  .hero-teddy-fog,
  .section-hero .section-bg__media {
    animation: none !important;
  }
  .hero-atmosphere [data-hero-depth],
  [data-hero-depth] {
    transform: none !important;
  }
  .dream-edge {
    transition: none;
  }
  .reveal { opacity: 1; transform: none; }
  .dream-phrase {
    opacity: 1 !important;
    filter: none !important;
    transition: none;
  }
  .dream-phrase:not([data-phrase="0"]) {
    display: none;
  }
  .dream-ambient__curtain,
  .dream-ambient__dust {
    animation: none !important;
  }
}
