:root {
  --cream: #f7f3eb;
  --cream-deep: #efe6d6;
  --ink: #1a2e22;
  --forest: #243d30;
  --forest-deep: #1e3228;
  --leaf: #3f6a4d;
  --leaf-bright: #5a8a64;
  --sun: #f08a2e;
  --sun-soft: #ffb347;
  --lagoon: #5a9aaf;
  --lagoon-soft: #8ec4d4;
  --flame: #ff6a1f;
  --flame-soft: #ffb347;
  --sand: #e8dcc4;
  --ring: #0d0d0d;

  --font-display: "Anton", sans-serif;
  --font-impact: "Bebas Neue", sans-serif;
  --font-script: "Sacramento", cursive;
  --font-body: "Outfit", system-ui, sans-serif;

  --panel-pad: clamp(1.5rem, 5vw, 2.5rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  background: var(--forest-deep);
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 50% -10%, #3a5c45 0%, transparent 55%),
    linear-gradient(180deg, var(--forest-deep) 0%, #15241c 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-gated {
  overflow: hidden;
  height: 100dvh;
}

body.is-gated .story,
body.is-gated .story-nav,
body.is-gated .story-progress,
body.is-gated .ambient {
  visibility: hidden;
}

/* Enter gate — unlocks content + theme audio */
.enter-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: max(1.5rem, env(safe-area-inset-top)) 1.5rem max(1.5rem, env(safe-area-inset-bottom));
  background:
    radial-gradient(90% 70% at 50% 18%, rgba(240, 138, 46, 0.22), transparent 55%),
    radial-gradient(80% 50% at 50% 100%, rgba(90, 154, 175, 0.18), transparent 50%),
    linear-gradient(180deg, #1f3429 0%, #101c16 100%);
}

.enter-gate[hidden] {
  display: none;
}

.enter-gate__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  width: min(100%, 22rem);
  animation: hero-enter 0.9s var(--ease-out) both;
}

.enter-gate__eyebrow {
  margin: 0;
  font-family: var(--font-impact);
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 70%, transparent);
}

.enter-gate__title {
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 12vw, 3.6rem);
  font-weight: 400;
  line-height: 1;
  color: var(--cream);
}

.enter-gate__copy {
  margin: 0 0 0.4rem;
  max-width: 18rem;
  font-size: 1rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--cream) 78%, transparent);
}

.enter-gate__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  margin-top: 0.35rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-impact);
  font-size: 1.2rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--forest-deep);
  background: linear-gradient(180deg, var(--sun-soft), var(--sun));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s var(--ease-out), filter 0.2s var(--ease-out);
}

.enter-gate__btn:hover,
.enter-gate__btn:focus-visible {
  filter: brightness(1.05);
}

.enter-gate__btn:active {
  transform: scale(0.98);
}

.theme-player {
  position: absolute;
  width: 1px;
  height: 1px;
  left: -9999px;
  overflow: hidden;
  pointer-events: none;
}

.audio-toggle {
  position: fixed;
  top: max(0.85rem, env(safe-area-inset-top));
  right: max(0.85rem, env(safe-area-inset-right));
  z-index: 60;
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 0.55rem 0.85rem;
  font-family: var(--font-impact);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  background: color-mix(in srgb, var(--forest-deep) 72%, transparent);
  backdrop-filter: blur(8px);
}

.audio-toggle[hidden] {
  display: none;
}

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

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

/* Ambient atmosphere */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}

.ambient__glow--sun {
  width: min(70vw, 420px);
  height: min(70vw, 420px);
  top: -8%;
  left: 50%;
  translate: -50% 0;
  background: radial-gradient(circle, var(--sun-soft), transparent 70%);
  animation: glow-pulse 7s var(--ease-soft) infinite alternate;
}

.ambient__glow--lagoon {
  width: min(80vw, 480px);
  height: min(50vw, 280px);
  bottom: -10%;
  left: 50%;
  translate: -50% 0;
  background: radial-gradient(circle, var(--lagoon-soft), transparent 70%);
  opacity: 0.22;
}

.ambient__grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

@keyframes glow-pulse {
  from {
    opacity: 0.28;
    scale: 1;
  }
  to {
    opacity: 0.42;
    scale: 1.08;
  }
}

/* Progress bar */
.story-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 3px;
  background: color-mix(in srgb, var(--cream) 12%, transparent);
  pointer-events: none;
}

.story-progress__fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--sun), var(--sun-soft));
  transition: width 0.45s var(--ease-out);
}

/* Keep scrolling cue removed — side dots are enough */

/* Progress dots — bottom center, out of the reading path */
.story-nav {
  position: fixed;
  left: 50%;
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  translate: -50% 0;
  z-index: 40;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--forest-deep) 55%, transparent);
  backdrop-filter: blur(8px);
}

.story-nav__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: color-mix(in srgb, var(--cream) 38%, transparent);
  transition:
    background 0.35s var(--ease-out),
    transform 0.35s var(--ease-out),
    width 0.35s var(--ease-out);
}

.story-nav__dot.is-active {
  background: var(--sun);
  transform: scale(1);
  width: 1.35rem;
  border-radius: 999px;
  box-shadow: none;
}

.story-nav__dot.is-done {
  background: color-mix(in srgb, var(--cream) 72%, transparent);
  border-color: transparent;
}

/* Story panels */
.story {
  position: relative;
  z-index: 1;
}

.panel {
  position: relative;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  place-items: center;
  padding:
    max(var(--panel-pad), env(safe-area-inset-top))
    max(var(--panel-pad), env(safe-area-inset-right))
    max(4.25rem, calc(env(safe-area-inset-bottom) + 3rem))
    max(var(--panel-pad), env(safe-area-inset-left));
}

.panel__inner {
  width: min(100%, 26rem);
  text-align: center;
}

/* Fronds */
.fronds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.frond {
  position: absolute;
  width: clamp(7rem, 28vw, 10rem);
  color: var(--leaf);
  opacity: 0.9;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
}

.frond--tl {
  top: -1.5rem;
  left: -1.75rem;
  rotate: -18deg;
  animation: sway-left 5.5s var(--ease-soft) infinite alternate;
}

.frond--tr {
  top: -1.25rem;
  right: -1.75rem;
  rotate: 18deg;
  scale: -1 1;
  color: var(--leaf-bright);
  animation: sway-right 6s var(--ease-soft) infinite alternate;
}

.leaf {
  position: absolute;
  width: clamp(6rem, 26vw, 9rem);
  color: var(--leaf);
  opacity: 0.85;
}

.leaf--bl {
  bottom: -1rem;
  left: -1.5rem;
  rotate: -12deg;
  animation: sway-left 6.5s var(--ease-soft) infinite alternate;
}

.leaf--br {
  bottom: -0.75rem;
  right: -1.5rem;
  color: var(--leaf-bright);
  rotate: 14deg;
  animation: sway-right 5.8s var(--ease-soft) infinite alternate;
}

@keyframes sway-left {
  from {
    transform: rotate(-2deg) translateY(0);
  }
  to {
    transform: rotate(3deg) translateY(4px);
  }
}

@keyframes sway-right {
  from {
    transform: rotate(2deg) translateY(0);
  }
  to {
    transform: rotate(-3deg) translateY(3px);
  }
}

/* Hero */
.panel--hero {
  background:
    linear-gradient(180deg, rgba(30, 50, 40, 0.2) 0%, transparent 35%),
    radial-gradient(90% 70% at 50% 100%, rgba(90, 154, 175, 0.18), transparent 55%),
    linear-gradient(180deg, #1f3429 0%, #15241c 55%, #101c16 100%);
  overflow: hidden;
}

.hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: min(100%, 26rem);
  max-height: calc(100dvh - 5.5rem);
  animation: hero-enter 1.1s var(--ease-out) both;
}

.hero-invite {
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(1.75rem, 7vw, 2.35rem);
  line-height: 1;
  color: color-mix(in srgb, var(--cream) 92%, transparent);
  flex-shrink: 0;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(18px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.survivor-logo {
  /* Cap by viewport height so the full oval never gets clipped */
  width: min(92vw, 26rem, 62dvh);
  max-height: min(48dvh, 18.5rem);
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.4));
  flex: 0 1 auto;
}

.survivor-logo__mark {
  width: 100%;
  height: 100%;
  max-height: inherit;
  object-fit: contain;
  display: block;
}

.hero-kicker {
  margin: 0;
  font-family: var(--font-impact);
  font-size: clamp(0.95rem, 3.8vw, 1.2rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 82%, transparent);
  flex-shrink: 0;
}

/* scroll cue removed */

/* Celebrate panel */
.panel--celebrate {
  background:
    radial-gradient(80% 55% at 50% 18%, rgba(240, 138, 46, 0.16), transparent 58%),
    linear-gradient(180deg, #f8f4ec 0%, #ebe3d4 100%);
}

.celebrate-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  width: min(100%, 24rem);
}

.celebrate-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  width: min(100%, 17.5rem);
}

.celebrate-hero .torch {
  position: absolute;
  bottom: 0.4rem;
  z-index: 2;
}

.celebrate-hero .torch--left {
  left: -0.15rem;
}

.celebrate-hero .torch--right {
  right: -0.15rem;
}

.hudson-frame {
  position: relative;
  z-index: 1;
  margin: 0;
  width: min(68vw, 12.75rem);
  aspect-ratio: 1;
  overflow: hidden;
  border: 4px solid var(--forest);
  border-radius: 50%;
  background: linear-gradient(160deg, #d9c9a8, #b7a588);
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--cream) 80%, white),
    0 16px 36px rgba(26, 46, 34, 0.22);
}

.hudson-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}

.hudson-frame.is-missing .hudson-frame__img {
  display: none;
}

.hudson-frame__fallback {
  display: none;
  position: absolute;
  inset: 0;
  margin: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem;
  text-align: center;
  font-family: var(--font-impact);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  background: linear-gradient(160deg, #e8dcc4, #cbb892);
}

.hudson-frame.is-missing .hudson-frame__fallback {
  display: flex;
}

.hudson-frame__fallback span {
  font-size: 0.85rem;
}

.hudson-frame__fallback small {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 0.7;
}

.celebrate-copy {
  display: grid;
  gap: 0.7rem;
  text-align: center;
  max-width: 21rem;
}

.challenge-stamp {
  margin: 0;
  justify-self: center;
  font-family: var(--font-impact);
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--leaf);
}

.celebrate-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 9.5vw, 3.15rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 400;
}

.celebrate-lead {
  margin: 0.15rem 0 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 450;
  color: color-mix(in srgb, var(--ink) 78%, transparent);
}

.torch {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 2.4rem;
}

.torch__flame {
  position: relative;
  width: 1.85rem;
  height: 2.55rem;
  filter: drop-shadow(0 0 10px rgba(255, 106, 31, 0.45));
}

.flame {
  position: absolute;
  left: 50%;
  bottom: 0;
  translate: -50% 0;
  border-radius: 50% 50% 45% 45% / 70% 70% 30% 30%;
  transform-origin: 50% 100%;
}

.flame--a {
  width: 1.35rem;
  height: 2.25rem;
  background: linear-gradient(180deg, #ffe08a 0%, var(--flame) 48%, #c43a10 100%);
  animation: flicker 0.9s ease-in-out infinite alternate;
}

.flame--b {
  width: 0.85rem;
  height: 1.55rem;
  background: linear-gradient(180deg, #fff6c8 0%, #ff9a3a 70%, transparent 100%);
  animation: flicker 0.7s ease-in-out infinite alternate-reverse;
}

.flame--c {
  width: 0.4rem;
  height: 0.85rem;
  bottom: 0.2rem;
  background: #fff4c2;
  animation: flicker 0.55s ease-in-out infinite alternate;
}

@keyframes flicker {
  from {
    transform: scaleY(0.92) scaleX(1.05) rotate(-3deg);
    opacity: 0.85;
  }
  to {
    transform: scaleY(1.08) scaleX(0.92) rotate(3deg);
    opacity: 1;
  }
}

.torch__pole {
  position: relative;
  width: 1rem;
  height: 4.8rem;
  border-radius: 0.28rem 0.28rem 0.15rem 0.15rem;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 35%, rgba(255, 255, 255, 0.08) 70%, rgba(0, 0, 0, 0.12)),
    repeating-linear-gradient(180deg, #7a4d2c 0 0.42rem, #5a351c 0.42rem 0.7rem);
  box-shadow: inset -2px 0 0 rgba(0, 0, 0, 0.22);
}

.torch__pole::before {
  content: "";
  position: absolute;
  top: -0.28rem;
  left: 50%;
  translate: -50% 0;
  width: 1.4rem;
  height: 0.5rem;
  border-radius: 0.2rem;
  background: linear-gradient(180deg, #8a5a34, #5c361c);
}

.panel--celebrate .celebrate-hero {
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.75s var(--ease-out);
}

.panel--celebrate .reveal.is-inview .celebrate-hero {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Shared type */
.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-impact);
  font-size: 0.95rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--leaf-bright);
}

.script-line {
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 9vw, 3.35rem);
  line-height: 1.15;
  font-weight: 400;
  color: var(--forest);
}

.closing {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--forest) 85%, transparent);
}

.section-title {
  margin: 0 0 1rem;
  font-family: var(--font-impact);
  font-size: clamp(2.4rem, 10vw, 3.4rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--forest);
  text-wrap: balance;
}

.section-copy {
  margin: 0 auto 1.75rem;
  max-width: 22rem;
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 400;
  color: color-mix(in srgb, var(--ink) 82%, transparent);
}

/* Tribe panel */
.panel--tribe {
  background:
    linear-gradient(180deg, rgba(36, 61, 48, 0.04), transparent 30%),
    linear-gradient(180deg, #f3eee4 0%, #e8dfd0 100%);
}

.tribe-pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.tribe-pillars li {
  font-family: var(--font-impact);
  font-size: clamp(1.5rem, 6vw, 1.9rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--forest);
  padding: 0.85rem 1rem;
  clip-path: polygon(2% 0, 100% 0, 98% 100%, 0 100%);
}

.tribe-pillars li:nth-child(2) {
  background: color-mix(in srgb, var(--forest) 88%, var(--sun) 12%);
}

.tribe-pillars li:nth-child(3) {
  background: color-mix(in srgb, var(--forest) 78%, var(--lagoon) 22%);
}

/* Details panel */
.panel--details {
  background:
    radial-gradient(80% 55% at 50% 100%, rgba(63, 106, 77, 0.18), transparent 55%),
    linear-gradient(180deg, var(--cream-deep) 0%, #e4dccb 100%);
  overflow: hidden;
}

.event-board {
  display: grid;
  gap: 0;
  margin: 1.75rem 0 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--forest) 35%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--forest) 35%, transparent);
}

.event-row {
  display: grid;
  gap: 0.2rem;
  padding: 1.05rem 0.25rem;
  border-bottom: 1px solid color-mix(in srgb, var(--forest) 18%, transparent);
}

.event-row:last-child {
  border-bottom: 0;
}

.event-label {
  font-family: var(--font-impact);
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--leaf);
}

.event-value {
  font-family: var(--font-impact);
  font-size: clamp(1.7rem, 7vw, 2.15rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
}

.inline-cta {
  display: inline-block;
  margin-top: 0.25rem;
  font-family: var(--font-impact);
  font-size: 1.15rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--forest);
  border-bottom: 2px solid color-mix(in srgb, var(--forest) 35%, transparent);
  padding-bottom: 0.15rem;
}

/* RSVP / vote panel */
.panel--rsvp {
  background:
    radial-gradient(70% 45% at 50% 0%, rgba(240, 138, 46, 0.14), transparent 55%),
    linear-gradient(180deg, #efe6d6 0%, #e2d7c3 100%);
  align-content: center;
}

.panel--rsvp .panel__inner {
  gap: 0;
}

.panel--rsvp .section-title {
  margin-bottom: 0.55rem;
  font-size: clamp(2.1rem, 9vw, 3rem);
}

.panel--rsvp .section-copy {
  margin-bottom: 1.15rem;
  font-size: 0.98rem;
}

.panel--rsvp .reveal.is-inview .vote-form {
  opacity: 1;
  transform: none;
}

.vote-form {
  display: grid;
  gap: 0.95rem;
  width: min(100%, 22rem);
  margin: 0 auto;
  text-align: left;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s var(--ease-out) 0.2s,
    transform 0.55s var(--ease-out) 0.2s;
}

.vote-field {
  display: grid;
  gap: 0.45rem;
}

.vote-label {
  font-family: var(--font-impact);
  font-size: 0.9rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--leaf);
}

.vote-input {
  width: 100%;
  border: 0;
  border-bottom: 2px solid color-mix(in srgb, var(--forest) 35%, transparent);
  background: transparent;
  padding: 0.55rem 0.15rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--forest);
  outline: none;
  border-radius: 0;
}

.vote-input:focus {
  border-bottom-color: var(--forest);
}

.vote-input::placeholder {
  color: color-mix(in srgb, var(--forest) 40%, transparent);
}

.guest-stepper {
  display: grid;
  grid-template-columns: 3rem 1fr 3rem;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid color-mix(in srgb, var(--forest) 28%, transparent);
  background: color-mix(in srgb, var(--cream) 70%, white);
  padding: 0.35rem;
}

.guest-btn {
  height: 2.5rem;
  border: 0;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--font-impact);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.guest-btn:active {
  transform: scale(0.96);
}

.guest-count {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: var(--font-impact);
  font-size: 1.75rem;
  letter-spacing: 0.08em;
  color: var(--forest);
  -moz-appearance: textfield;
}

.guest-count::-webkit-outer-spin-button,
.guest-count::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.vote-hint {
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
}

.vote-error {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #8b2e1f;
}

.vote-submit {
  margin-top: 0.15rem;
  border: 0;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--font-impact);
  font-size: 1.25rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.9rem 1.25rem;
  cursor: pointer;
  clip-path: polygon(1.5% 0, 100% 0, 98.5% 100%, 0 100%);
  transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.vote-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.vote-submit:hover,
.vote-submit:focus-visible {
  background: color-mix(in srgb, var(--forest) 88%, var(--sun) 12%);
}

.vote-submit:active {
  transform: scale(0.985);
}

.vote-success {
  text-align: center;
}

.vote-success[hidden] {
  display: none;
}

.panel--rsvp.is-voted .vote-form {
  display: none;
}

.panel--rsvp.is-voted .vote-success {
  display: block;
}

/* Scroll reveal choreography */
.reveal .reveal-child {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.reveal.is-inview .reveal-child {
  opacity: 1;
  transform: translateY(0);
}

.reveal.is-inview .reveal-child:nth-child(1) {
  transition-delay: 0.05s;
}
.reveal.is-inview .reveal-child:nth-child(2) {
  transition-delay: 0.18s;
}
.reveal.is-inview .reveal-child:nth-child(3) {
  transition-delay: 0.32s;
}
.reveal.is-inview .reveal-child:nth-child(4) {
  transition-delay: 0.46s;
}
.reveal.is-inview .reveal-child:nth-child(5) {
  transition-delay: 0.6s;
}

/* Tribe pillars are nested — stagger list items */
.reveal.is-inview .tribe-pillars .reveal-child:nth-child(1) {
  transition-delay: 0.4s;
}
.reveal.is-inview .tribe-pillars .reveal-child:nth-child(2) {
  transition-delay: 0.55s;
}
.reveal.is-inview .tribe-pillars .reveal-child:nth-child(3) {
  transition-delay: 0.7s;
}

.reveal.is-inview .event-board.reveal-child {
  transition-delay: 0.28s;
}

.reveal.is-inview .closing.reveal-child {
  transition-delay: 0.48s;
}

.panel--celebrate .celebrate-hero {
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.75s var(--ease-out);
}

.panel--celebrate .reveal.is-inview .celebrate-hero {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal .reveal-child,
  .panel--celebrate .celebrate-hero {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Slightly wider screens still feel phone-first */
@media (min-width: 720px) {
  .panel__inner,
  .hero-stage {
    width: min(100%, 30rem);
  }

  .survivor-logo {
    width: min(78vw, 32rem, 62dvh);
    max-height: min(48dvh, 22rem);
  }
}
