:root {
  --bg-deep: #07060d;
  --bg-mid: #0e0c18;
  --bg-card: #14101f;
  --gold: #e8c547;
  --gold-soft: #f5d76e;
  --gold-bright: #ffe9a0;
  --gold-dim: #a8892d;
  --rose: #e8a0bf;
  --magenta: #e850a0;
  --violet: #9b7ed9;
  --cyan: #7eb8e8;
  --cream: #f7f0e6;
  --muted: #b8aec8;
  --glow: rgba(232, 197, 71, 0.45);
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-serif: "Playfair Display", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(232, 197, 71, 0.28);
  --space-1: clamp(0.5rem, 1.2vw, 0.75rem);
  --space-2: clamp(0.85rem, 2vw, 1.25rem);
  --space-3: clamp(1.25rem, 3vw, 2rem);
  --space-4: clamp(2rem, 5vw, 3.25rem);
  --space-5: clamp(3.25rem, 8vw, 5.5rem);
  --space-6: clamp(4.5rem, 11vw, 7.5rem);
  --col-narrow: min(38rem, 100%);
  --col-read: min(42rem, 100%);
  --col-wide: min(68rem, 100%);
  --col-full: min(76rem, 100%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  cursor: auto;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.gate-locked,
body.intro-active {
  overflow: hidden;
  overscroll-behavior: none;
  height: 100%;
  height: 100dvh;
}

body.has-custom-cursor { cursor: none; }
body.has-custom-cursor a,
body.has-custom-cursor button { cursor: none; }

/* At the opening gate the custom cursor is easy to lose — keep the normal mouse */
body.gate-locked.has-custom-cursor,
body.gate-locked.has-custom-cursor a,
body.gate-locked.has-custom-cursor button {
  cursor: auto !important;
}
body.gate-locked .cursor { display: none !important; }
body.gate-locked .gate,
body.gate-locked .gate * {
  cursor: auto !important;
}
body.gate-locked .gate button,
body.gate-locked .gate .gate__open,
body.gate-locked #gate-open {
  cursor: pointer !important;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--gold-soft); text-decoration: none; }

/* ---- Custom cursor ---- */
.cursor {
  display: none;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10000;
}
body.has-custom-cursor .cursor { display: block; }

.cursor__dot {
  position: fixed;
  width: 10px;
  height: 10px;
  background: #ffe9a8;
  border: 2px solid rgba(0,0,0,.55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px rgba(255,233,168,.35), 0 0 16px rgba(232,197,71,.8);
  transition: width 0.2s, height 0.2s, background 0.2s;
}
.cursor__ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255, 233, 168, 0.85);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(232,197,71,.45);
  transition: width 0.2s, height 0.2s, border-color 0.2s;
}
body.cursor-hover .cursor__dot { width: 10px; height: 10px; background: var(--gold); }
body.cursor-hover .cursor__ring {
  width: 52px; height: 52px;
  border-color: rgba(232, 197, 71, 0.85);
  background: rgba(232, 197, 71, 0.08);
}

/* ---- Scroll progress ---- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 9000;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-bright));
  box-shadow: 0 0 12px var(--glow);
  transition: width 0.05s linear;
}

/* ---- Sound toggle ---- */
.sound-toggle {
  position: fixed;
  top: max(1.1rem, env(safe-area-inset-top, 0px));
  right: max(1.1rem, env(safe-area-inset-right, 0px));
  z-index: 9600;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(232, 197, 71, 0.35);
  background: rgba(10, 8, 18, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--gold-soft);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.sound-toggle:hover {
  border-color: var(--gold);
  background: rgba(232, 197, 71, 0.12);
  transform: scale(1.05);
}
.sound-toggle[hidden] { display: none; }
.sound-toggle .sound-toggle__off { display: none; }
.sound-toggle.is-muted .sound-toggle__on { display: none; }
.sound-toggle.is-muted .sound-toggle__off { display: inline; }

/* ---- Opening gate ---- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: max(1.5rem, env(safe-area-inset-top, 0px))
           max(1.5rem, env(safe-area-inset-right, 0px))
           max(1.5rem, env(safe-area-inset-bottom, 0px))
           max(1.5rem, env(safe-area-inset-left, 0px));
  transition: opacity 0.85s var(--ease-out), visibility 0.85s, transform 0.85s var(--ease-out);
}
.gate.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.04);
}
.gate__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.gate__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  filter: saturate(1.15) brightness(0.85);
  animation: gate-ken 18s ease-in-out infinite alternate;
}
@keyframes gate-ken {
  from { transform: scale(1.08) translate(0, 0); }
  to { transform: scale(1.16) translate(-1.5%, -1%); }
}
.gate__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(20, 10, 40, 0.35), rgba(7, 6, 13, 0.88) 70%),
    linear-gradient(180deg, rgba(7,6,13,0.4), rgba(7,6,13,0.92));
}
.gate__sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.gate__sparkles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 8px var(--glow);
  animation: gate-twinkle 2.8s ease-in-out infinite;
  opacity: 0;
}
@keyframes gate-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  50% { opacity: 0.95; transform: scale(1.2); }
}

.gate__card {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 28rem;
  width: 100%;
  padding: clamp(1.85rem, 4.5vw, 2.85rem) clamp(1.2rem, 3.5vw, 2.1rem) clamp(1.6rem, 4vw, 2.25rem);
  border-radius: 1.75rem;
  background:
    linear-gradient(155deg, rgba(255,255,255,0.09), rgba(232,197,71,0.06) 45%, rgba(232,80,160,0.05)),
    rgba(12, 10, 22, 0.72);
  border: 1px solid rgba(232, 197, 71, 0.32);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.55),
    0 0 60px rgba(232, 197, 71, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.12);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  animation: gate-card-in 1s var(--ease-out) both;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
@keyframes gate-card-in {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.gate__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.65rem, 2vw, 1rem);
  margin-bottom: clamp(1.1rem, 3vw, 1.55rem);
  width: 100%;
}
.gate__wordmark {
  width: min(100%, 17.5rem);
  height: auto;
  filter: drop-shadow(0 0 22px rgba(232, 197, 71, 0.35));
}
.gate__emblem {
  width: clamp(4.5rem, 16vw, 5.75rem);
  height: auto;
  margin: 0;
  filter: drop-shadow(0 0 28px var(--glow));
  animation: float-badge 4.5s ease-in-out infinite;
}

.gate__eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 500;
  margin-bottom: clamp(0.55rem, 1.5vw, 0.85rem);
}

.gate__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 5vw, 2.55rem);
  line-height: 1.22;
  color: var(--cream);
  margin-bottom: clamp(0.45rem, 1.2vw, 0.7rem);
  letter-spacing: -0.01em;
  max-width: 18em;
}
.gate__title em {
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(100deg, var(--gold-bright), var(--gold), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gate__sub {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(1.35rem, 3.5vw, 1.95rem);
}

.gate__btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 1.15rem 2.4rem 1.05rem;
  min-height: 48px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: #1a1208;
  font-family: var(--font-display);
  background: linear-gradient(135deg, #fff3c4 0%, var(--gold-bright) 25%, var(--gold) 55%, #c9a030 100%);
  box-shadow:
    0 12px 40px rgba(232, 197, 71, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.25) inset,
    0 -2px 0 rgba(0,0,0,0.15) inset;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.gate__btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 18px 48px rgba(232, 197, 71, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}
.gate__btn:active { transform: translateY(0) scale(0.98); }
.gate__btn-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(255,255,255,0.45), transparent 55%);
  animation: gate-btn-shine 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes gate-btn-shine {
  0%, 100% { transform: translateX(-30%) rotate(0deg); opacity: 0.4; }
  50% { transform: translateX(30%) rotate(8deg); opacity: 0.8; }
}
.gate__btn-label {
  position: relative;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.gate__btn-hint {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}
.gate__note {
  margin-top: 1.15rem;
  font-size: 0.78rem;
  color: rgba(184, 174, 200, 0.65);
  font-weight: 300;
}

/* ---- Intro splash (fireworks show) ---- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, #1a1230 0%, var(--bg-deep) 70%);
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}
.intro[hidden] { display: none; }
.intro:not([hidden]) { display: flex; }
.intro.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.intro__content {
  position: relative;
  z-index: 2;
  text-align: center;
  pointer-events: none;
}
.intro__emblem {
  margin: 0 auto 1.15rem;
  width: clamp(5.5rem, 18vw, 7rem);
  height: auto;
  opacity: 0;
  transform: scale(0.6) translateY(20px);
  animation: intro-pop 0.8s var(--ease-out) 0.2s forwards;
  filter: drop-shadow(0 0 32px var(--glow));
}
.intro__emblem img { width: 100%; height: auto; }
.intro__number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(6rem, 28vw, 14rem);
  line-height: 0.85;
  letter-spacing: -0.06em;
  background: linear-gradient(145deg, #fff8e0 0%, var(--gold) 35%, var(--gold-dim) 65%, var(--gold-bright) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 50px rgba(232, 197, 71, 0.55));
  opacity: 0;
  transform: scale(1.4);
  animation:
    intro-number 1.1s var(--ease-out) 0.4s forwards,
    gold-shimmer 3s ease-in-out 1.3s infinite;
}
.intro__tag {
  margin-top: 1rem;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0;
  animation: intro-fade 0.7s ease 0.95s forwards;
}
.intro__wish {
  margin-top: 0.65rem;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  font-style: italic;
  color: var(--gold-soft);
  opacity: 0;
  animation: intro-fade 0.7s ease 1.15s forwards;
}
.intro__skip {
  position: absolute;
  bottom: 2rem;
  right: 1.5rem;
  z-index: 3;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.intro__skip:hover {
  color: var(--cream);
  border-color: var(--gold-dim);
  background: rgba(232, 197, 71, 0.08);
}

@keyframes intro-pop {
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes intro-number {
  to { opacity: 1; transform: scale(1); }
}
@keyframes intro-fade {
  to { opacity: 1; }
}
@keyframes gold-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: clamp(3rem, 8vh, 5rem) clamp(1.15rem, 4vw, 2.75rem) clamp(4rem, 10vh, 6rem);
  overflow: hidden;
  background: var(--bg-deep);
}

.hero__sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__sky img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(1.1) brightness(0.75);
  transform: scale(1.05);
}
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 65% at 50% 40%, transparent 20%, rgba(7,6,13,0.55) 70%, rgba(7,6,13,0.92) 100%),
    linear-gradient(180deg, rgba(7,6,13,0.35), transparent 30%, rgba(7,6,13,0.85) 100%);
}

#fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.hero__aurora {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.7;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: orb-drift 14s ease-in-out infinite;
}
.orb--1 {
  width: min(55vw, 420px); height: min(55vw, 420px);
  background: rgba(155, 126, 217, 0.55);
  top: 10%; left: 5%;
  animation-duration: 16s;
}
.orb--2 {
  width: min(45vw, 340px); height: min(45vw, 340px);
  background: rgba(232, 197, 71, 0.35);
  bottom: 15%; right: 8%;
  animation-duration: 12s;
  animation-delay: -3s;
}
.orb--3 {
  width: min(40vw, 280px); height: min(40vw, 280px);
  background: rgba(232, 160, 191, 0.4);
  top: 40%; right: 25%;
  animation-duration: 18s;
  animation-delay: -6s;
}
.orb--4 {
  width: min(35vw, 240px); height: min(35vw, 240px);
  background: rgba(126, 184, 232, 0.3);
  bottom: 30%; left: 20%;
  animation-duration: 15s;
  animation-delay: -2s;
}
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.08); }
  66% { transform: translate(-25px, 20px) scale(0.94); }
}

.hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(232, 197, 71, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 197, 71, 0.15) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black, transparent);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: min(52rem, 100%);
  width: 100%;
  perspective: 800px;
  margin-left: clamp(0rem, 4vw, 3.5rem);
}

.hero__brand-row {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2.5vw, 1.5rem);
  margin-bottom: clamp(0.85rem, 2.5vw, 1.35rem);
  opacity: 0;
  transform: translateY(20px);
}
.hero.is-ready .hero__brand-row {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease 0.08s, transform 0.8s var(--ease-out) 0.08s;
}
.hero__badge {
  width: clamp(4.25rem, 12vw, 6rem);
  height: auto;
  flex: 0 0 auto;
  margin: 0;
  animation: float-badge 4.5s ease-in-out infinite;
  filter: drop-shadow(0 0 28px var(--glow));
}
.hero__brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}
.hero__name-mark {
  width: min(100%, 22rem);
  height: auto;
  filter: drop-shadow(0 0 20px rgba(232, 197, 71, 0.35));
}
@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero__kicker {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0;
  opacity: 1;
}
.hero.is-ready .hero__kicker {
  animation: none;
}

.hero__number-wrap {
  display: inline-block;
  transform-style: preserve-3d;
  will-change: transform;
  margin-bottom: 0.2rem;
  margin-left: -0.08em;
}

.hero__number {
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 24vw, 11rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #fff8e0 0%, var(--gold) 38%, var(--gold-dim) 68%, var(--gold-bright) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 48px rgba(232, 197, 71, 0.45));
  opacity: 0;
  transform: scale(0.55);
  transition: opacity 1s ease, transform 1.25s var(--ease-out);
  animation: gold-shimmer 4s ease-in-out infinite;
}
.hero__number.is-visible {
  opacity: 1;
  transform: scale(1);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4.8vw, 2.85rem);
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.75rem;
  line-height: 1.22;
  max-width: 14em;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease 0.25s, transform 0.9s var(--ease-out) 0.25s;
}
.hero__title.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.hero__name {
  font-family: var(--font-display);
  font-weight: 700;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: clamp(1.6rem, 4vw, 2.4rem);
  opacity: 0;
  transition: opacity 0.9s ease 0.5s;
}
.hero__subtitle.is-visible { opacity: 1; }

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.85rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--gold-soft);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, rgba(232, 197, 71, 0.12), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  position: relative;
  overflow: hidden;
}
.hero.is-ready .hero__cta {
  animation: fade-in-up 0.8s var(--ease-out) 0.75s forwards;
}
.hero__cta:hover {
  background: linear-gradient(135deg, rgba(232, 197, 71, 0.22), rgba(255, 255, 255, 0.08));
  transform: translateY(-3px);
  box-shadow:
    0 14px 40px rgba(232, 197, 71, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.hero__cta .arrow {
  display: inline-block;
  animation: bounce-y 1.8s ease-in-out infinite;
}

/* Ripple */
.btn-ripple .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(232, 197, 71, 0.35);
  transform: scale(0);
  animation: ripple-anim 0.6s ease-out;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

.hero__scroll-hint {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  opacity: 0;
}
.hero.is-ready .hero__scroll-hint {
  animation: fade-in-up 0.8s ease 1.2s forwards;
}
.hero__scroll-hint span {
  display: block;
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(232, 197, 71, 0.4);
  border-radius: 12px;
  position: relative;
}
.hero__scroll-hint span::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--gold);
  border-radius: 2px;
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

@keyframes bounce-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Sections ---- */
.section {
  position: relative;
  padding: var(--space-5) clamp(1.1rem, 4vw, 2rem);
  max-width: var(--col-wide);
  margin: 0 auto;
}

.section__label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--cream);
  letter-spacing: -0.02em;
}

.greeting {
  text-align: left;
  max-width: var(--col-read);
  padding-top: var(--space-6);
}

.greeting__card {
  max-width: none;
  margin: 0;
  padding: clamp(1.75rem, 4vw, 2.6rem) clamp(1.35rem, 3.5vw, 2.35rem);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.05), rgba(232,197,71,0.06)),
    var(--bg-card);
  border: 1px solid rgba(232, 197, 71, 0.2);
  border-radius: 1.5rem;
  border-left: 3px solid rgba(232, 197, 71, 0.55);
  box-shadow:
    0 24px 64px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
}

.greeting__card p {
  font-size: clamp(1.05rem, 2.4vw, 1.18rem);
  color: var(--muted);
  margin-bottom: 1.15rem;
  font-weight: 300;
}
.greeting__card p:last-child { margin-bottom: 0; }

.greeting__card .highlight {
  color: var(--gold-soft);
  font-family: var(--font-serif);
  font-size: 1.12em;
  font-weight: 600;
  font-style: italic;
}

/* Reveal + blur-to-sharp */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.blur-in {
  filter: blur(12px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ---- Marquee ---- */
.marquee-section {
  padding: var(--space-3) 0 var(--space-4);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee { width: 100%; }
.marquee__track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee-scroll 45s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  flex: 0 0 auto;
  width: min(220px, 42vw);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--bg-card);
  position: relative;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.4s;
}
.marquee__item:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 16px 40px rgba(232, 197, 71, 0.2);
  border-color: rgba(232, 197, 71, 0.4);
}
.marquee__item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.marquee__item figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- Gallery masonry ---- */
.gallery {
  max-width: var(--col-full);
  padding-left: clamp(1rem, 3.5vw, 1.75rem);
  padding-right: clamp(1rem, 3.5vw, 1.75rem);
}
.gallery__head {
  text-align: left;
  max-width: 28rem;
  margin-bottom: var(--space-2);
}
.gallery__head .section__title { margin-bottom: 0; }

.gallery__intro {
  text-align: left;
  max-width: 34rem;
  margin: 0 0 var(--space-4);
  color: var(--muted);
  font-weight: 300;
  line-height: 1.65;
}

.masonry {
  columns: 1;
  column-gap: clamp(1rem, 2.5vw, 1.6rem);
}
@media (min-width: 520px) {
  .masonry { columns: 2; }
}
@media (min-width: 900px) {
  .masonry { columns: 3; column-gap: 1.6rem; }
}

.masonry__item {
  break-inside: avoid;
  margin-bottom: clamp(1rem, 2.4vw, 1.5rem);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  opacity: 0;
  transform: translateY(32px) scale(0.96);
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.75s var(--ease-out),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}
.masonry__item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.masonry__item:nth-child(3n+1).is-visible { transition-delay: 0.04s; }
.masonry__item:nth-child(3n+2).is-visible { transition-delay: 0.12s; }
.masonry__item:nth-child(3n).is-visible { transition-delay: 0.2s; }

.masonry__item:hover {
  box-shadow:
    0 20px 48px rgba(232, 197, 71, 0.18),
    0 0 0 1px rgba(232, 197, 71, 0.25);
  border-color: rgba(232, 197, 71, 0.4);
}

.masonry__item a {
  display: block;
  position: relative;
  overflow: hidden;
}
.masonry__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(232,197,71,0.25), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
  mix-blend-mode: soft-light;
}
.masonry__item:hover .masonry__glow { opacity: 1; }

.masonry__item img {
  width: 100%;
  transition: transform 0.7s var(--ease-out);
}
.masonry__item:hover img { transform: scale(1.06); }

.masonry__item figcaption {
  padding: 0.7rem 0.9rem 0.95rem;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  font-weight: 300;
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(5, 4, 10, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(1.25rem, env(safe-area-inset-top, 0px))
           max(1.25rem, env(safe-area-inset-right, 0px))
           max(1.25rem, env(safe-area-inset-bottom, 0px))
           max(1.25rem, env(safe-area-inset-left, 0px));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.lightbox:not([hidden]) {
  opacity: 1;
  visibility: visible;
}
.lightbox[hidden] { display: none; }
.lightbox:not([hidden]) { display: flex; }

.lightbox__stage {
  position: relative;
  max-width: min(94vw, 960px);
  max-height: min(78vh, 78dvh);
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.lightbox__img {
  max-width: min(94vw, 960px);
  max-height: min(78vh, 78dvh);
  object-fit: contain;
  border-radius: 0.75rem;
  transform: scale(1);
  animation: kenburns 8s ease-out forwards;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.lightbox__close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top, 0px));
  right: max(1rem, env(safe-area-inset-right, 0px));
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: var(--cream);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
  transition: background 0.2s, border-color 0.2s;
}
.lightbox__close:hover {
  background: rgba(232, 197, 71, 0.2);
  border-color: var(--gold-dim);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  color: var(--cream);
  font-size: 1.75rem;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.lightbox__nav:hover {
  background: rgba(232, 197, 71, 0.2);
  border-color: var(--gold-dim);
}
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

.lightbox__caption {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
  max-width: 520px;
  font-weight: 300;
}
.lightbox__counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: rgba(184, 174, 200, 0.6);
}

/* ---- Closing ---- */
.closing {
  text-align: left;
  max-width: var(--col-narrow);
  padding-bottom: var(--space-6);
  overflow: hidden;
}
.closing .section__label { text-align: left; }
.closing__wish {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  font-weight: 700;
  max-width: 640px;
  margin: 0 auto 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--cream), var(--gold-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.closing__text {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  font-weight: 300;
}

.balloons {
  position: relative;
  height: 200px;
  pointer-events: none;
}
.balloon {
  position: absolute;
  bottom: 0;
  width: 38px;
  height: 50px;
  border-radius: 50% 50% 50% 50% / 45% 45% 55% 55%;
  animation: rise 7s ease-in-out infinite;
  opacity: 0.9;
  will-change: transform;
  transition: transform 0.15s ease-out;
}
.balloon::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 50%;
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,0.25);
}
.balloon:nth-child(1) { left: 8%; background: #e8a0bf; animation-delay: 0s; }
.balloon:nth-child(2) { left: 24%; background: var(--gold); animation-delay: 1s; width: 30px; height: 40px; }
.balloon:nth-child(3) { left: 40%; background: #7eb8e8; animation-delay: 0.5s; }
.balloon:nth-child(4) { left: 56%; background: #c9a0e8; animation-delay: 1.8s; width: 34px; height: 44px; }
.balloon:nth-child(5) { left: 72%; background: var(--gold-soft); animation-delay: 1.3s; }
.balloon:nth-child(6) { left: 86%; background: #f0a0a0; animation-delay: 2.2s; width: 28px; height: 38px; }

@keyframes rise {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-48px) rotate(5deg); }
}

.sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold-soft);
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
  opacity: 0;
  box-shadow: 0 0 6px var(--glow);
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 0.95; transform: scale(1.3); }
}

.footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: rgba(184, 174, 200, 0.45);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.04em;
}


/* ---- Unlock finale (fireworks + certificate) ---- */
.finale {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top, 0px))
           max(0.75rem, env(safe-area-inset-right, 0px))
           max(0.75rem, env(safe-area-inset-bottom, 0px))
           max(0.75rem, env(safe-area-inset-left, 0px));
  background: radial-gradient(ellipse 75% 65% at 50% 40%, #1c1432 0%, #0a0814 55%, var(--bg-deep) 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s var(--ease-out), visibility 0.55s;
}
.finale.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.finale[hidden] { display: none !important; }
.finale:not([hidden]) { display: flex; }
#finale-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.finale__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 55% 50% at 50% 45%, rgba(10, 8, 20, 0.15) 0%, rgba(7, 6, 13, 0.55) 70%),
    linear-gradient(180deg, rgba(7,6,13,0.35) 0%, transparent 30%, transparent 70%, rgba(7,6,13,0.5) 100%);
  pointer-events: none;
}
.finale__stage {
  position: relative;
  z-index: 3;
  width: min(34rem, 100%);
  max-height: min(94dvh, 94vh);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
body.finale-active {
  overflow: hidden;
  overscroll-behavior: none;
  height: 100%;
  height: 100dvh;
}

.cert {
  position: relative;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.35rem) clamp(1.15rem, 3.5vw, 2.1rem) clamp(1.35rem, 3.5vw, 1.85rem);
  border-radius: 18px;
  background:
    linear-gradient(165deg, rgba(28, 22, 42, 0.96) 0%, rgba(16, 12, 28, 0.98) 55%, rgba(12, 10, 20, 0.99) 100%);
  border: 1px solid rgba(232, 197, 71, 0.42);
  box-shadow:
    0 0 0 1px rgba(232, 197, 71, 0.12) inset,
    0 0 48px rgba(232, 197, 71, 0.18),
    0 28px 64px rgba(0, 0, 0, 0.55);
  text-align: center;
  color: var(--cream);
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  transition: opacity 0.7s var(--ease-out) 0.35s, transform 0.7s var(--ease-out) 0.35s;
}
.finale.is-open .cert {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.finale.is-lite .cert {
  transition-delay: 0.05s;
}
.cert__ornament {
  position: absolute;
  width: 1.65rem;
  height: 1.65rem;
  border-color: rgba(232, 197, 71, 0.55);
  border-style: solid;
  pointer-events: none;
}
.cert__ornament--tl { top: 0.85rem; left: 0.85rem; border-width: 2px 0 0 2px; }
.cert__ornament--tr { top: 0.85rem; right: 0.85rem; border-width: 2px 2px 0 0; }
.cert__ornament--bl { bottom: 0.85rem; left: 0.85rem; border-width: 0 0 2px 2px; }
.cert__ornament--br { bottom: 0.85rem; right: 0.85rem; border-width: 0 2px 2px 0; }
.cert__seal {
  width: clamp(4.25rem, 16vw, 5.5rem);
  margin: 0 auto 0.85rem;
  filter: drop-shadow(0 0 22px var(--glow));
}
.cert__seal img { width: 100%; height: auto; }
.cert__eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.45rem;
}
.cert__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 5.5vw, 2.15rem);
  letter-spacing: 0.04em;
  background: linear-gradient(145deg, #fff8e0 0%, var(--gold) 40%, var(--gold-dim) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
  line-height: 1.15;
}
.cert__subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 3.2vw, 1.3rem);
  color: var(--gold-soft);
  margin: 0.35rem 0 0.9rem;
}
.cert__rule {
  width: min(12rem, 55%);
  height: 1px;
  margin: 0 auto 1.1rem;
  background: linear-gradient(90deg, transparent, rgba(232,197,71,0.65), transparent);
}
.cert__body {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2.8vw, 1.08rem);
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 0.85rem;
}
.cert__name {
  display: inline-block;
  margin: 0.35rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-bright);
  text-shadow: 0 0 24px rgba(232, 197, 71, 0.35);
}
.cert__body em {
  font-style: normal;
  color: var(--gold-soft);
  font-weight: 600;
}
.cert__date {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(184, 174, 200, 0.75);
  margin: 0 0 1rem;
}
.cert__closing {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.95rem, 2.6vw, 1.08rem);
  color: var(--rose);
  line-height: 1.55;
  margin: 0 0 1.35rem;
}
.cert__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}
.cert__btn {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.25rem;
  min-height: 46px;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s, background 0.2s;
}
.cert__btn--primary {
  color: #1a1408;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold), var(--gold-dim));
  box-shadow: 0 0 24px rgba(232,197,71,.3);
}
.cert__btn--primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 0 32px rgba(232,197,71,.42);
}
.cert__btn--ghost {
  color: var(--cream);
  background: transparent;
  border: 1px solid rgba(232,197,71,.38);
}
.cert__btn--ghost:hover {
  background: rgba(232,197,71,.1);
  transform: translateY(-1px);
}

.quiz-section__after {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
}
.quiz-section__after[hidden] { display: none !important; }
.quiz-cert-link {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.25rem;
  min-height: 44px;
  border-radius: 999px;
  color: var(--gold-soft);
  background: transparent;
  border: 1px solid rgba(232,197,71,.35);
  transition: transform .2s, background .2s, color .2s;
}
.quiz-cert-link:hover {
  background: rgba(232,197,71,.1);
  transform: translateY(-1px);
  color: var(--gold-bright);
}
.quiz-replay { margin-top: 0; }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .masonry__item, .hero__number, .hero__title, .hero__subtitle, .hero__cta, .hero__badge, .hero__brand-row, .hero__scroll-hint, .hero__kicker {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .intro { display: none !important; }
  #fx-canvas, #intro-canvas, #finale-canvas { display: none; }
  .finale .cert { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none; }
  .lightbox__img { animation: none; }
  .gate__bg img { animation: none; }
  .cursor { display: none !important; }
  body.has-custom-cursor { cursor: auto; }
}

@media (max-width: 640px) {
  .lightbox__nav {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }
  .lightbox__nav--prev { left: max(0.35rem, env(safe-area-inset-left, 0px)); }
  .lightbox__nav--next { right: max(0.35rem, env(safe-area-inset-right, 0px)); }
  .lightbox__stage,
  .lightbox__img {
    max-height: min(70vh, 70dvh);
  }
  .lightbox__caption {
    font-size: 0.88rem;
    padding: 0 0.5rem;
  }
  .intro__skip {
    bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
    right: max(1rem, env(safe-area-inset-right, 0px));
    font-size: 0.75rem;
    min-height: 44px;
    padding: 0.65rem 1rem;
  }
  .sound-toggle {
    top: max(0.75rem, env(safe-area-inset-top, 0px));
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    width: 44px;
    height: 44px;
  }
  .gate__card {
    padding: 1.35rem 1.05rem 1.25rem;
    border-radius: 1.35rem;
  }
}


/* =========================================================
   Quiz + teaser + video — cinematic dark gold (not linocut)
   ========================================================= */

.quiz-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(3.5rem, 9vh, 5.5rem) clamp(1.1rem, 4vw, 1.75rem) clamp(2.75rem, 6vh, 4rem);
  padding-top: max(clamp(3.5rem, 9vh, 5.5rem), calc(env(safe-area-inset-top, 0px) + 2.5rem));
  padding-bottom: max(clamp(2.75rem, 6vh, 4rem), calc(env(safe-area-inset-bottom, 0px) + 1.5rem));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 40;
}
.quiz-section[hidden] { display: none !important; }
.quiz-section__bg { position: absolute; inset: 0; }
.quiz-section__bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .35; filter: saturate(1.1) brightness(.55);
}
.quiz-section__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(232,197,71,.18), transparent 55%),
    linear-gradient(180deg, rgba(7,6,13,.72), rgba(7,6,13,.92) 55%, #07060d);
}
.quiz-section__inner {
  position: relative;
  z-index: 2;
  width: min(36rem, 100%);
  text-align: center;
}
.quiz-section__header { margin-bottom: clamp(1.35rem, 3.5vw, 1.9rem); }
.quiz-section__seal {
  display: block;
  width: clamp(3.6rem, 12vw, 4.75rem);
  margin: 0 auto clamp(0.85rem, 2vw, 1.15rem);
  filter: drop-shadow(0 0 22px rgba(232,197,71,.4));
}
.quiz-section__seal img { width: 100%; height: auto; }
.quiz-section__eyebrow {
  font-family: var(--font-display);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .65rem;
}
.quiz-section__heading {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--cream);
  margin-bottom: .75rem;
}
.quiz-section__lead {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 34em;
  margin: 0 auto;
}
.quiz-section__lead[hidden] { display: none !important; }

.quiz {
  text-align: left;
}
.quiz__card {
  position: relative;
  background: linear-gradient(160deg, rgba(20,16,31,.92), rgba(14,12,24,.96));
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: clamp(1.25rem, 3vw, 1.65rem) clamp(1.1rem, 2.8vw, 1.45rem) clamp(1.15rem, 2.5vw, 1.4rem);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.03) inset,
    0 24px 60px rgba(0,0,0,.45),
    0 0 40px rgba(232,197,71,.08);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.quiz__card::before {
  content: "";
  position: absolute;
  top: -1.25rem;
  right: -1.1rem;
  width: 7.5rem;
  height: 7.5rem;
  background: url("../assets/brand/logo-emblem25.webp") center / contain no-repeat;
  opacity: 0.12;
  pointer-events: none;
  filter: drop-shadow(0 0 12px rgba(232,197,71,.25));
}
.quiz__card--pass {
  border-color: rgba(232,197,71,.55);
  box-shadow: 0 0 50px rgba(232,197,71,.22), 0 24px 60px rgba(0,0,0,.45);
}
.quiz__card--fail {
  border-color: rgba(232,80,160,.4);
}
.quiz__card--bounce { animation: quiz-bounce .45s var(--ease-out); }
@keyframes quiz-bounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.quiz__progress { margin-bottom: 1.35rem; }
.quiz__progress-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  margin-bottom: .85rem;
}
.quiz__progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-soft), var(--gold-bright));
  box-shadow: 0 0 12px var(--glow);
  transition: width .45s var(--ease-out);
}
.quiz__progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}
.quiz__progress-label {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--muted);
  font-size: .9rem;
}
.quiz__digit {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(232,197,71,.35);
  background: rgba(232,197,71,.08);
}
.quiz__dots { display: flex; gap: 5px; flex-wrap: wrap; }
.quiz__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  transition: background .25s, outline .25s;
}
.quiz__dot.is-done { background: var(--gold); box-shadow: 0 0 8px var(--glow); }
.quiz__dot.is-current {
  background: var(--gold-bright);
  outline: 2px solid rgba(232,197,71,.45);
  outline-offset: 2px;
}

.quiz__meta {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.quiz__icon-wrap {
  flex: 0 0 64px;
  width: 64px; height: 64px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(232,197,71,.3);
  background: rgba(232,197,71,.08);
  box-shadow: 0 0 20px rgba(232,197,71,.12);
}
.quiz__icon { width: 100%; height: 100%; object-fit: cover; }
.quiz__icon.is-swap { animation: icon-pop .45s var(--ease-out); }
@keyframes icon-pop {
  0% { transform: scale(.85); opacity: .4; }
  100% { transform: scale(1); opacity: 1; }
}
.quiz__mark {
  font-family: var(--font-display);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .35rem;
}
.quiz__title {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  font-weight: 600;
  color: var(--cream);
  line-height: 1.35;
  margin: 0;
}
.quiz__hint {
  color: var(--muted);
  font-size: .9rem;
  margin: .55rem 0 0;
}
.quiz__hint:empty { display: none; }

.quiz__options { display: grid; gap: .7rem; }
.quiz__option {
  display: flex;
  align-items: center;
  gap: .85rem;
  width: 100%;
  text-align: left;
  padding: .95rem 1.05rem;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(232,197,71,.22);
  background: rgba(255,255,255,.04);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: .98rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
}
.quiz__option:hover:not(:disabled) {
  border-color: rgba(232,197,71,.55);
  background: rgba(232,197,71,.1);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.quiz__option:disabled { cursor: default; opacity: .9; }
.quiz__option.is-correct {
  border-color: rgba(126,184,232,.65);
  background: rgba(126,184,232,.14);
}
.quiz__option.is-wrong {
  border-color: rgba(232,80,160,.5);
  background: rgba(232,80,160,.1);
}
.quiz__option-key {
  flex: 0 0 2rem;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  background: rgba(232,197,71,.18);
  color: var(--gold-soft);
  border: 1px solid rgba(232,197,71,.35);
}
.quiz__option.is-correct .quiz__option-key {
  background: rgba(126,184,232,.35);
  color: #dff0ff;
  border-color: rgba(126,184,232,.55);
}
.quiz__option.is-wrong .quiz__option-key {
  background: rgba(232,80,160,.3);
  color: #ffd5ea;
  border-color: rgba(232,80,160,.5);
}
.quiz__option-label { flex: 1; }

.quiz__feedback {
  min-height: 1.4em;
  margin: .9rem 0 .35rem;
  font-size: .95rem;
  color: var(--muted);
}
.quiz__feedback.is-ok { color: var(--gold-soft); }
.quiz__feedback.is-bad { color: var(--rose); }

.quiz__actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: .65rem;
}
.quiz__next,
.quiz__retry,
.quiz-replay,
.quiz__unlock-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .85rem 1.35rem;
  min-height: 44px;
  border-radius: 999px;
  color: #1a1408;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold), var(--gold-dim));
  box-shadow: 0 0 24px rgba(232,197,71,.28);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.quiz__next:hover,
.quiz__retry:hover,
.quiz-replay:hover,
.quiz__unlock-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 0 32px rgba(232,197,71,.4);
}
.quiz__retry,
.quiz-replay {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(232,197,71,.35);
  box-shadow: none;
}
.quiz__retry:hover,
.quiz-replay:hover {
  background: rgba(232,197,71,.1);
  box-shadow: none;
}
.quiz-replay {
  margin-top: 1.25rem;
}
.quiz-replay[hidden] { display: none !important; }

.quiz__sparkles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.quiz__sparkles span {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 8px var(--glow);
  animation: quiz-spark 1.6s ease-out forwards;
}
@keyframes quiz-spark {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-60px) scale(0); opacity: 0; }
}

.quiz__result { text-align: center; padding: .5rem 0 0; }
.quiz__result-score {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 0 30px var(--glow);
  margin-bottom: .35rem;
}
.quiz__result h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--cream);
  margin-bottom: .5rem;
}
.quiz__result p {
  color: var(--muted);
  max-width: 28em;
  margin: 0 auto 1.25rem;
}

.quiz-section--compact {
  min-height: 0;
  padding: 1.25rem 1.25rem 0;
}
.quiz-section--compact .quiz-section__lead { display: none; }
.quiz-section--compact .quiz-section__heading {
  font-size: 1.2rem;
  margin-bottom: 0;
}

/* Teaser lock */
.teaser {
  position: relative;
  z-index: 30;
  padding: 2rem 1.25rem 3rem;
  display: flex;
  justify-content: center;
}
.teaser[hidden] { display: none !important; }
.teaser__card {
  width: min(560px, 100%);
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(20,16,31,.9), rgba(10,8,18,.95));
  border: 1px solid rgba(232,197,71,.25);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.teaser__emblem {
  width: clamp(4rem, 14vw, 5rem);
  height: auto;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 0 16px rgba(232,197,71,.35));
}
.teaser__label {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.teaser__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--cream);
  margin-bottom: .65rem;
}
.teaser__text { color: var(--muted); margin: 0 0 1.35rem; }
.teaser__previews {
  display: flex;
  justify-content: center;
  gap: .65rem;
  margin-bottom: 1.35rem;
}
.teaser__thumb {
  width: 72px; height: 90px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(232,197,71,.28);
  opacity: .55;
  filter: blur(1px) brightness(.7);
}
.teaser__thumb img { width: 100%; height: 100%; object-fit: cover; }
.teaser__cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #1a1408;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
}

.living--ken img {
  animation: ken 18s ease-in-out infinite alternate;
}
.living--ken-alt img {
  animation: ken 20s ease-in-out infinite alternate-reverse;
  animation-delay: -8s;
}
@keyframes ken {
  from { transform: scale(1.05) translate(0,0); }
  to { transform: scale(1.18) translate(-4%, -3%); }
}
.living--pulse { animation: none; }

/* Main content lock */
.main-content.is-locked {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
body.content-unlocked #main-content {
  max-height: none;
  overflow: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .6s var(--ease-out);
}


/* ---- Gift reel (after-quiz organic embed) ---- */
.gift-reel {
  position: relative;
  padding: clamp(2rem, 6vw, 3.5rem) 1.25rem clamp(1.5rem, 4vw, 2.5rem);
  max-width: min(28rem, 100%);
  margin: 0 auto;
  text-align: center;
  z-index: 2;
}
.gift-reel__inner {
  position: relative;
}
.gift-reel__eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 0.5rem;
  opacity: 0.9;
}
.gift-reel__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.55rem, 5vw, 2.1rem);
  color: var(--gold-bright, #f5d76e);
  margin: 0 0 0.65rem;
  text-shadow: 0 0 28px rgba(232,197,71,.28);
}
.gift-reel__lead {
  color: var(--muted);
  font-weight: 300;
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0 auto 1.35rem;
  max-width: 22em;
}
.gift-reel__stage {
  position: relative;
}
.gift-reel__frame {
  position: relative;
  width: min(360px, 86vw);
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  background: #0a0806;
  aspect-ratio: 9 / 16;
  border: 1px solid rgba(232,197,71,.42);
  box-shadow:
    0 0 0 1px rgba(232,197,71,.12),
    0 0 48px rgba(232,197,71,.22),
    0 28px 64px rgba(0,0,0,.55);
}
.gift-reel__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 40px rgba(232,197,71,.08);
  z-index: 2;
}
.gift-reel__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
  vertical-align: middle;
}
.gift-reel__play,
.gift-reel__unmute {
  position: absolute;
  z-index: 3;
  appearance: none;
  cursor: pointer;
  border: none;
  font-family: var(--font-display);
  color: #1a1408;
  background: linear-gradient(135deg, #f5d76e, #e8c547 55%, #c9a030);
  box-shadow: 0 8px 28px rgba(232,197,71,.35), 0 0 0 1px rgba(255,255,255,.12) inset;
  transition: transform .2s ease, box-shadow .2s ease, opacity .25s;
}
.gift-reel__play {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 1.1rem 1.35rem 1rem;
  border-radius: 18px;
  min-width: 9.5rem;
}
.gift-reel__play:hover {
  transform: translate(-50%, -52%) scale(1.03);
  box-shadow: 0 12px 36px rgba(232,197,71,.45);
}
.gift-reel__play[hidden] { display: none !important; }
.gift-reel__play-icon {
  font-size: 1.35rem;
  line-height: 1;
}
.gift-reel__play-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gift-reel__unmute {
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.gift-reel__unmute:hover {
  transform: translateX(-50%) translateY(-2px);
}
.gift-reel__unmute[hidden] { display: none !important; }
.gift-reel__frame.is-playing .gift-reel__play { opacity: 0; pointer-events: none; }
.gift-reel__caption {
  margin: 0.95rem 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232,197,71,.72);
}
body.content-locked .gift-reel { display: none; }
@media (max-width: 720px) {
  .gift-reel { padding-top: 1.5rem; }
  .gift-reel__frame { width: min(320px, 88vw); }
}
@media (prefers-reduced-motion: reduce) {
  .gift-reel__play:hover,
  .gift-reel__unmute:hover { transform: translate(-50%, -50%); }
  .gift-reel__unmute:hover { transform: translateX(-50%); }
}

/* Video */
.video-section {
  padding-top: 1rem;
}
.video-section__intro {
  text-align: center;
  color: var(--muted);
  max-width: 36em;
  margin: 0 auto 1.75rem;
}
.video-player {
  width: min(920px, 100%);
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(232,197,71,.28);
  box-shadow:
    0 0 40px rgba(232,197,71,.12),
    0 30px 70px rgba(0,0,0,.5);
  background: #000;
}
.video-player video {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  background: #000;
}

/* ---- Brand / layout polish (mobile + section variety) ---- */
.video-section {
  max-width: min(48rem, 100%);
  text-align: left;
}
.video-section__head { margin-bottom: var(--space-2); }
.video-section__head .section__title { margin-bottom: 0; }
.video-section__intro {
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 var(--space-3);
  font-weight: 300;
}

.footer {
  text-align: center;
  padding: var(--space-4) 1.25rem var(--space-5);
  color: var(--muted);
  font-size: 0.82rem;
}
.footer__mark {
  width: min(11rem, 55vw);
  height: auto;
  margin: 0 auto 0.85rem;
  opacity: 0.85;
  filter: drop-shadow(0 0 14px rgba(232,197,71,0.25));
}


/* ---- Share block ---- */
.share {
  padding: var(--space-4) 1.25rem var(--space-3);
  text-align: center;
}
.share__inner {
  max-width: 36rem;
  margin: 0 auto;
  padding: clamp(1.35rem, 3.5vw, 1.85rem) clamp(1.1rem, 3vw, 1.6rem);
  background: linear-gradient(165deg, rgba(20,16,31,0.92), rgba(10,8,18,0.88));
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  box-shadow:
    0 0 0 1px rgba(232,197,71,0.06),
    0 18px 48px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
.share__eyebrow {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}
.share__heading {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 3.5vw, 1.55rem);
  color: var(--cream);
  margin-bottom: 0.45rem;
  line-height: 1.3;
}
.share__lead {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 300;
  margin: 0 auto 1.25rem;
  max-width: 28rem;
}
.share__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}
.share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(232,197,71,0.32);
  background: rgba(232,197,71,0.08);
  color: var(--gold-soft);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease-out), border-color 0.25s, color 0.25s, transform 0.2s, box-shadow 0.25s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.share__btn:hover,
.share__btn:focus-visible {
  background: rgba(232,197,71,0.18);
  border-color: rgba(232,197,71,0.55);
  color: var(--gold-bright);
  box-shadow: 0 0 24px rgba(232,197,71,0.22);
  outline: none;
}
.share__btn:active { transform: scale(0.98); }
.share__btn--tg {
  border-color: rgba(42,171,238,0.35);
  background: rgba(42,171,238,0.1);
  color: #8fd6ff;
}
.share__btn--tg:hover,
.share__btn--tg:focus-visible {
  background: rgba(42,171,238,0.2);
  border-color: rgba(42,171,238,0.55);
  color: #c8ebff;
  box-shadow: 0 0 24px rgba(42,171,238,0.25);
}
.share__btn--wa {
  border-color: rgba(37,211,102,0.35);
  background: rgba(37,211,102,0.1);
  color: #8ef0b4;
}
.share__btn--wa:hover,
.share__btn--wa:focus-visible {
  background: rgba(37,211,102,0.2);
  border-color: rgba(37,211,102,0.55);
  color: #c6ffd9;
  box-shadow: 0 0 24px rgba(37,211,102,0.22);
}
.share__btn--copy.is-copied {
  border-color: rgba(232,197,71,0.7);
  background: rgba(232,197,71,0.22);
  color: var(--gold-bright);
}
.share__icon {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
}
@media (max-width: 640px) {
  .share { padding-left: 1rem; padding-right: 1rem; }
  .share__actions { flex-direction: column; align-items: stretch; }
  .share__btn { width: 100%; }
}

/* ---- Mobile polish (phones 320–640) ---- */
@media (max-width: 640px) {
  .hero {
    text-align: center;
    justify-content: flex-end;
    padding:
      max(clamp(2.5rem, 7vh, 4rem), calc(env(safe-area-inset-top, 0px) + 2.75rem))
      clamp(1rem, 4vw, 1.35rem)
      max(clamp(4rem, 11vh, 5.5rem), calc(env(safe-area-inset-bottom, 0px) + 2rem));
  }
  .hero__content {
    margin-left: 0;
    text-align: center;
    width: 100%;
    max-width: 100%;
  }
  .hero__brand-row {
    flex-direction: column;
    justify-content: center;
    gap: 0.65rem;
  }
  .hero__brand-copy { align-items: center; }
  .hero__badge { width: clamp(3.5rem, 18vw, 4.75rem); }
  .hero__name-mark { width: min(100%, 15.5rem); }
  .hero__number {
    font-size: clamp(4.25rem, 28vw, 7.5rem);
  }
  .hero__number-wrap { margin-left: 0; }
  .hero__title {
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.45rem, 6.2vw, 2.1rem);
    max-width: 12em;
  }
  .hero__subtitle {
    font-size: clamp(0.7rem, 3.2vw, 0.85rem);
  }
  .hero__cta {
    margin-left: auto;
    margin-right: auto;
    min-height: 48px;
    padding: 0.95rem 1.35rem;
  }
  #fx-canvas {
    max-width: 100%;
  }

  .greeting, .closing { text-align: center; }
  .greeting__card {
    border-left-width: 1px;
    border-top: 3px solid rgba(232, 197, 71, 0.55);
    padding: clamp(1.35rem, 4vw, 1.85rem) clamp(1.1rem, 3.5vw, 1.5rem);
  }
  .gallery__head, .gallery__intro, .video-section, .video-section__intro {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .closing .section__label { text-align: center; }
  .closing__wish { font-size: clamp(1.45rem, 6vw, 2rem); }

  /* Gate */
  .gate__card {
    max-width: min(22.5rem, 100%);
    width: 100%;
  }
  .gate__brand { gap: 0.55rem; margin-bottom: 0.95rem; }
  .gate__wordmark { width: min(100%, 14.5rem); }
  .gate__emblem { width: clamp(3.75rem, 22vw, 4.75rem); }
  .gate__title {
    font-size: clamp(1.45rem, 6.5vw, 2rem);
    max-width: 14em;
  }
  .gate__eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.24em;
  }
  .gate__sub {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
  }
  .gate__btn {
    width: 100%;
    max-width: 100%;
    min-height: 52px;
    padding: 1.05rem 1.25rem 0.95rem;
  }
  .gate__note { font-size: 0.78rem; }

  /* Quiz */
  .quiz-section {
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .quiz-section__inner { width: 100%; }
  .quiz-section__heading {
    font-size: clamp(1.45rem, 6vw, 2rem);
  }
  .quiz-section__lead {
    font-size: clamp(0.92rem, 3.6vw, 1.02rem);
    padding: 0 0.15rem;
  }
  .quiz__card {
    padding: 1.1rem 0.95rem 1.05rem;
    border-radius: 18px;
  }
  .quiz__card::before {
    width: 5.5rem;
    height: 5.5rem;
    top: -0.85rem;
    right: -0.75rem;
  }
  .quiz__meta { gap: 0.75rem; }
  .quiz__icon-wrap {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }
  .quiz__title { font-size: clamp(1.05rem, 4.5vw, 1.25rem); }
  .quiz__options { gap: 0.6rem; }
  .quiz__option {
    min-height: 52px;
    padding: 0.95rem 0.95rem;
    border-radius: 16px;
    font-size: clamp(0.92rem, 3.6vw, 1rem);
  }
  .quiz__option-key {
    flex: 0 0 1.85rem;
    width: 1.85rem;
    height: 1.85rem;
  }
  .quiz__digit {
    width: 36px;
    height: 36px;
  }
  .quiz__progress-label { font-size: 0.85rem; }
  .quiz__actions {
    flex-direction: column;
  }
  .quiz__next,
  .quiz__retry,
  .quiz-replay,
  .quiz__unlock-btn,
  .quiz-cert-link,
  .cert__btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    text-align: center;
  }
  .cert { padding: 1.35rem 1rem 1.25rem; }
  .cert__ornament { width: 1.25rem; height: 1.25rem; }
  .cert__ornament--tl { top: 0.65rem; left: 0.65rem; }
  .cert__ornament--tr { top: 0.65rem; right: 0.65rem; }
  .cert__ornament--bl { bottom: 0.65rem; left: 0.65rem; }
  .cert__ornament--br { bottom: 0.65rem; right: 0.65rem; }
  .quiz-section__after { flex-direction: column; width: 100%; }
  .quiz__result-score { font-size: clamp(1.85rem, 8vw, 2.4rem); }

  /* Gallery / video / teaser */
  .masonry { columns: 1; }
  .masonry__item figcaption {
    font-size: 0.82rem;
    padding: 0.65rem 0.75rem 0.85rem;
  }
  .video-player {
    border-radius: 14px;
    width: 100%;
  }
  .video-player video {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: none;
  }
  .teaser__card { padding: 1.5rem 1.15rem; }
  .teaser__previews { gap: 0.45rem; }
  .teaser__thumb { width: 64px; height: 80px; }
  .teaser__cta { min-height: 44px; }

  .footer {
    padding-bottom: max(2.5rem, calc(env(safe-area-inset-bottom, 0px) + 1.5rem));
  }
  .marquee__item { width: 9.5rem; }
}

/* Very small phones */
@media (max-width: 380px) {
  .gate__wordmark { width: min(100%, 12.5rem); }
  .gate__title { font-size: 1.35rem; }
  .hero__name-mark { width: min(100%, 13rem); }
  .hero__number { font-size: clamp(3.75rem, 30vw, 5.5rem); }
  .sound-toggle {
    width: 44px;
    height: 44px;
    top: max(0.65rem, env(safe-area-inset-top, 0px));
    right: max(0.65rem, env(safe-area-inset-right, 0px));
  }
}

/* Tablets / large phones landscape-ish */
@media (min-width: 641px) and (max-width: 768px) {
  .hero {
    text-align: center;
    justify-content: center;
  }
  .hero__content {
    margin-left: 0;
    text-align: center;
  }
  .hero__brand-row { justify-content: center; }
  .hero__brand-copy { align-items: center; }
  .hero__name-mark { width: min(100%, 20rem); }
  .hero__number-wrap { margin-left: 0; }
  .hero__title, .hero__cta { margin-left: auto; margin-right: auto; }
  .gate__btn {
    min-width: min(100%, 18rem);
    min-height: 48px;
  }
  .masonry { columns: 2; }
  .quiz__option { min-height: 48px; }
  .greeting, .closing, .gallery__head, .gallery__intro, .video-section {
    text-align: center;
  }
  .greeting__card {
    border-left-width: 1px;
    border-top: 3px solid rgba(232, 197, 71, 0.55);
  }
}

/* Touch devices: no custom cursor; keep sound clear of CTAs */
@media (hover: none), (pointer: coarse) {
  .cursor { display: none !important; }
  body.has-custom-cursor { cursor: auto; }
  body.has-custom-cursor a,
  body.has-custom-cursor button { cursor: auto; }

  .sound-toggle {
    top: max(0.85rem, env(safe-area-inset-top, 0px));
    right: max(0.85rem, env(safe-area-inset-right, 0px));
  }

  /* Gate open: push sound slightly so it never sits on the CTA column center */
  body.gate-locked .sound-toggle {
    top: max(0.75rem, env(safe-area-inset-top, 0px));
    right: max(0.75rem, env(safe-area-inset-right, 0px));
  }

  .quiz__option:hover:not(:disabled) {
    transform: none;
  }
  .gate__btn:hover {
    transform: none;
  }
  .masonry__item:hover {
    box-shadow: none;
  }
}

@media (min-width: 900px) {
  .greeting { margin-left: clamp(2rem, 8vw, 6rem); margin-right: auto; }
  .closing { margin-left: auto; margin-right: clamp(2rem, 10vw, 8rem); }
  .video-section { margin-left: auto; margin-right: clamp(1rem, 6vw, 4rem); }
}

