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

html,
body {
  /* Global safety net: nothing on the page should ever be able to trigger a
     horizontal scrollbar, regardless of any one component's edge cases
     (e.g. a stray burst particle drifting wide on a narrow viewport). */
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: system-ui, sans-serif;
  background: #111;
  color: #fff;
}

button,
input,
a {
  /* Mobile browsers flash a default gray/blue tap-highlight box on any
     tappable element (most visibly on the ice cream scoop). This is purely
     a touch-press visual and separate from the keyboard :focus-visible ring
     (custom on some elements, the browser default elsewhere) — removing it
     doesn't affect focus-visible accessibility styling either way. */
  -webkit-tap-highlight-color: transparent;
}

section {
  min-height: 100vh;
  /* 100dvh accounts for mobile browser chrome (e.g. iOS Safari's address
     bar) that 100vh doesn't — browsers without dvh support just ignore
     this line and keep the 100vh above, so desktop is unaffected. */
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  gap: 2.5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(244, 167, 196, 0.4), transparent 68%),
    radial-gradient(ellipse at 20% 80%, rgba(244, 167, 196, 0.18), transparent 60%),
    radial-gradient(ellipse at 50% 45%, #3d5a45 0%, #2d4a35 55%, #1c2e1f 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem;
}

.hero-title-wrap {
  position: relative;
  display: inline-block;
}

.hero-title {
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.5rem, 8vw, 6rem);
  color: #f4a7c4;
  text-shadow: 0 0 30px rgba(244, 167, 196, 0.35);
  letter-spacing: 0.02em;
  opacity: 0;
  /* Belt-and-suspenders alongside the .word grouping below — discourage any
     break that isn't at a real word boundary. */
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}

@media (max-width: 480px) {
  .hero-title {
    /* A smaller floor so the (now word-safe) wraps land as a clean 1-2
       lines instead of 3+ cramped ones on typical phone widths. */
    font-size: clamp(2rem, 8vw, 6rem);
  }
}

.word {
  display: inline-block; /* the actual fix: makes each word an atomic unit
                             the browser can only wrap AROUND, never inside */
}

.letter {
  display: inline-block;
  position: relative;
}

.letter-glyph {
  display: inline-block;
  will-change: transform, opacity;
  transform-origin: 50% 70%;
}

.letter-burst {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.letter-burst--gold {
  background: radial-gradient(circle, #fff6d8 0%, #f4d47c 60%, transparent 100%);
}

.letter-burst--pink {
  background: radial-gradient(circle, #fff0f6 0%, #f4a7c4 60%, transparent 100%);
}

.title-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    75deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 30%,
    rgba(244, 212, 124, 0.55) 50%,
    rgba(244, 167, 196, 0.45) 65%,
    transparent 100%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  will-change: transform;
}

.hero-subtitle {
  margin-top: 1rem;
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(1.4rem, 3.3vw, 2.3rem);
  color: #e8ddd8;
  letter-spacing: 0.03em;
  opacity: 0;
}

/* ---------- Drifting leaves ---------- */

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

.leaf {
  position: absolute;
  top: -10%;
  font-size: 1.6rem;
  opacity: 0.7;
  animation: drift linear infinite;
}

.leaf--1 { left: 5%;  animation-duration: 14s; animation-delay: 0s;  font-size: 1.8rem; }
.leaf--2 { left: 25%; animation-duration: 18s; animation-delay: 2s;  font-size: 1.2rem; }
.leaf--3 { left: 45%; animation-duration: 12s; animation-delay: 5s;  font-size: 1.5rem; }
.leaf--4 { left: 65%; animation-duration: 20s; animation-delay: 1s;  font-size: 1.3rem; }
.leaf--5 { left: 80%; animation-duration: 16s; animation-delay: 4s;  font-size: 1.7rem; }
.leaf--6 { left: 92%; animation-duration: 13s; animation-delay: 7s;  font-size: 1.1rem; }

@keyframes drift {
  0% {
    transform: translate(0, -10vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translate(-6vw, 110vh) rotate(340deg);
    opacity: 0;
  }
}

/* ---------- Scroll prompt ---------- */

.scroll-prompt {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #f4a7c4;
  opacity: 0;
}

.scroll-prompt span {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
}

.scroll-arrow {
  font-size: 1.25rem;
  animation: bounce 1.8s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ---------- Intro sequence ---------- */

.intro-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: #060a06;
  pointer-events: none;
}

.sparkle-trail {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.sparkle-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}

.sparkle-dot--gold {
  background: radial-gradient(circle, #fff6d8 0%, #f4d47c 60%, transparent 100%);
  box-shadow: 0 0 6px 1px rgba(244, 212, 124, 0.8);
}

.sparkle-dot--pink {
  background: radial-gradient(circle, #fff0f6 0%, #f4a7c4 60%, transparent 100%);
  box-shadow: 0 0 6px 1px rgba(244, 167, 196, 0.8);
}

.impact-flash {
  position: absolute;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  will-change: transform, opacity;
  background: radial-gradient(
    circle,
    #ffffff 0%,
    #f4d47c 35%,
    #f4a7c4 65%,
    transparent 100%
  );
}

.intro-arrow {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 9px rgba(244, 212, 124, 0.8)) drop-shadow(0 0 16px rgba(244, 167, 196, 0.6));
}

@media (prefers-reduced-motion: reduce) {
  .hero-title,
  .hero-subtitle,
  .leaves,
  .scroll-prompt {
    opacity: 1;
  }

  .intro-overlay,
  .intro-arrow {
    display: none;
  }

  .checkpoint-marker,
  .checkpoint-media,
  .checkpoint-title,
  .checkpoint-copy {
    opacity: 1;
  }

  .stat-card {
    opacity: 1;
  }

  .film-frame,
  .film-caption {
    opacity: 1;
  }

  .finale-line,
  .finale-closing {
    opacity: 1;
  }
}

/* =====================================================================
   Trail section — Sosi's journey as a winding, checkpoint-marked path.
   ===================================================================== */

.trail {
  /* See the matching comment on .film — same missing flex-direction fix,
     needed here because .trail-header and .trail-timeline are both direct
     children of this section. */
  flex-direction: column;
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 1.5rem;
  background: linear-gradient(180deg, #1c2e1f 0%, #16261a 55%, #101f14 100%);
  color: #e8ddd8;
  overflow: hidden;
}

.trail-header {
  text-align: center;
  margin-bottom: clamp(3rem, 8vw, 5rem);
}

.trail-kicker {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #f4a7c4;
  margin-bottom: 0.5rem;
}

.trail-heading {
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #f4d7e2;
}

/* ---- Timeline shell: the winding path + the stack of checkpoints ---- */

.trail-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.trail-path {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.trail-path-line {
  vector-effect: non-scaling-stroke;
}

.trail-guide-arrow {
  position: absolute;
  top: 0;
  left: 0;
  width: 92px;
  height: 40px;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

/* ---- Checkpoints ---- */

.checkpoint {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(3.5rem, 8vw, 6rem);
}

.checkpoint:last-child {
  margin-bottom: 0;
}

.checkpoint-marker {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: #16261a;
  border: 2px solid #f4a7c4;
  box-shadow: 0 0 18px rgba(244, 167, 196, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.checkpoint-marker-icon {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #f4a7c4;
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.checkpoint-number {
  position: absolute;
  bottom: -1.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Cormorant Garamond", serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: #f4d47c;
}

.checkpoint-body {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.checkpoint:nth-child(even) .checkpoint-body {
  flex-direction: row-reverse;
}

.checkpoint-media {
  flex: 1 1 0;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(244, 167, 196, 0.4);
  border-radius: 6px;
  background: linear-gradient(
    145deg,
    rgba(244, 167, 196, 0.08),
    rgba(244, 212, 124, 0.05)
  );
  opacity: 0;
}

.checkpoint-text {
  flex: 1 1 0;
}

.checkpoint-title {
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: #f4a7c4;
  margin-bottom: 0.75rem;
  opacity: 0;
}

.checkpoint-copy {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  color: #e8ddd8;
  opacity: 0;
}

@media (max-width: 720px) {
  .trail-path {
    width: 80px;
  }

  /* .checkpoint-media's flex: 1 1 0 (needed for the desktop side-by-side
     row) resolves its flex-basis against HEIGHT once .checkpoint-body
     switches to a column below — with no extra space for flex-grow to
     distribute in this auto-height container, and no content of its own to
     establish an automatic minimum size (unlike .checkpoint-text), the box
     was collapsing to 0px tall and effectively disappearing. Taking it out
     of the flex sizing entirely and sizing it from its own width instead
     lets aspect-ratio compute its height correctly. */
  .checkpoint-media {
    flex: none;
    width: 100%;
    /* An explicit, unambiguous z-index directly on the media box itself
       (not just relying on its ancestor .checkpoint's stacking context),
       matching .checkpoint-marker's existing z-index of 2 — comfortably
       above .trail-path's 0. */
    position: relative;
    z-index: 2;
    /* The real fix for the line visually "showing through": this box's
       background was only a 5-8%-alpha gradient, translucent enough that
       the vivid trail-path line painted behind it remained clearly
       visible on top of it regardless of z-index being technically
       correct. A solid backing color underneath the same gradient tint
       makes it properly opaque so nothing behind it can show through. */
    background-color: #16261a;
  }

  /* Kept proportional to .trail-path's own shrink above — script.js reads
     this element's actual rendered size at runtime (not a hardcoded
     constant), so its position/rotation math stays correct here too. */
  .trail-guide-arrow {
    width: 64px;
    height: 28px;
  }

  /* Each checkpoint's whole stacking context (it's the ancestor with its
     own z-index, not .checkpoint-media, that actually determines stacking
     relative to .trail-guide-arrow/.trail-path — a descendant's z-index
     can't escape it) is flipped above or below the arrow's z-index (3) per
     script.js's random front/behind assignment. The default below (no
     data-arrow-layer override) is "front": the arrow renders on top, same
     as it always has. Either state still keeps every checkpoint above
     .trail-path's z-index of 0, so the line always stays behind the
     placeholder images. */
  .checkpoint[data-arrow-layer="behind"] {
    z-index: 4;
  }

  .checkpoint-body,
  .checkpoint:nth-child(even) .checkpoint-body {
    flex-direction: column;
  }
}

/* =====================================================================
   Fearless stats — a row of animated-counter badges.
   ===================================================================== */

.fearless {
  /* See the matching comment on .film — same missing flex-direction fix,
     needed here because .fearless-header and .stats-grid are both direct
     children of this section. */
  flex-direction: column;
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 1.5rem;
  background: linear-gradient(180deg, #101f14 0%, #14241a 100%);
  overflow: hidden;
}

.fearless-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.fearless-heading {
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  color: #f4a7c4;
  text-shadow: 0 0 24px rgba(244, 167, 196, 0.3);
}

.stats-grid {
  /* Without an explicit width, this grid is a flex item inside a
     center-aligned (not stretched) column container, so it sizes to
     "fit-content" — an INDEFINITE available width for the purposes of the
     auto-fit/minmax column math below. That let it compute more 180px
     columns than would actually fit once rendered, pushing cards 3 and 4
     off past the grid's real edge (and, since the site also guards against
     horizontal scroll, clipped there instead of just being scrollable to).
     width: 100% gives it a definite size to size the columns against, so it
     correctly collapses to one column on narrow screens; max-width still
     caps it at 1000px on wide ones exactly as before. */
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  position: relative;
  text-align: center;
  padding: clamp(1.75rem, 4vw, 2.5rem) 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(244, 167, 196, 0.35);
  background: linear-gradient(
    160deg,
    rgba(244, 167, 196, 0.07),
    rgba(244, 212, 124, 0.04)
  );
  /* Initial pre-reveal scale is set via gsap.set() in JS, not here — the
     reveal tween clears its inline transform on completion (clearProps)
     so this transition/hover rule can take over cleanly afterward. */
  opacity: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
  transform: scale(1.04);
  border-color: rgba(244, 212, 124, 0.6);
  box-shadow: 0 0 28px rgba(244, 167, 196, 0.35);
}

.stat-icon {
  font-size: clamp(2rem, 5vw, 2.6rem);
  margin-bottom: 0.75rem;
}

.stat-number {
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  color: #f4d47c;
  text-shadow: 0 0 20px rgba(244, 212, 124, 0.35);
  line-height: 1.1;
}

.stat-label {
  margin-top: 0.5rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  letter-spacing: 0.03em;
  color: #e8ddd8;
}

.stat-subtext {
  margin-top: 0.25rem;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(244, 167, 196, 0.75);
}

.fearless-favorite {
  margin-top: clamp(2rem, 5vw, 3rem);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: #f4d47c;
}

/* =====================================================================
   Easter egg — a clickable rum raisin ice cream scoop.
   ===================================================================== */

.easter-egg {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
  background: #14241a;
  text-align: center;
}

.easter-egg-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.easter-egg-prompt {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: #f4a7c4;
  letter-spacing: 0.02em;
}

.easter-egg-visual {
  position: relative;
}

.easter-egg-scoop {
  position: relative;
  display: block;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  transform-origin: 50% 100%; /* pivots at the cone's tip for the wobble */
  /* The idle float and the click bounce/wobble both animate transform, so
     both live in script.js as GSAP tweens on the same timeline of control —
     a CSS @keyframes animation here would fight GSAP's inline transform and
     the click animation would just get overridden each frame. */
}

.easter-egg-scoop:focus-visible {
  outline: 2px solid #f4a7c4;
  outline-offset: 6px;
  border-radius: 12px;
}

.egg-illustration {
  display: block;
  width: 266px;
  height: 333px;
}

@media (max-width: 600px) {
  .egg-illustration {
    width: 190px;
    height: 238px;
  }
}

.egg-cone {
  fill: #caa06a;
}

.egg-cone-lines {
  fill: none;
  stroke: #8a5a2e;
  stroke-width: 1.2;
  stroke-linecap: round;
  opacity: 0.6;
}

.egg-scoop {
  fill: #e6cfa3;
  stroke: #c9a877;
  stroke-width: 1.5;
}

.egg-highlight {
  fill: #fff6e6;
  opacity: 0.5;
}

.egg-raisin {
  fill: #3b2416;
}

.easter-egg-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

/* Scoped to this burst only, so the hero's own .sparkle-dot trail (a
   different, smaller effect) is left untouched — this just makes the
   shared sparkle-dot class render bigger inside the easter egg's burst. */
.easter-egg-particles .sparkle-dot {
  width: 13px;
  height: 13px;
}

.easter-egg-heart,
.easter-egg-star {
  position: absolute;
  font-size: 1.6rem;
  pointer-events: none;
  will-change: transform, opacity;
}

.easter-egg-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f4a7c4;
  box-shadow: 0 0 6px 1px rgba(244, 167, 196, 0.7);
  pointer-events: none;
  will-change: transform, opacity;
}

.easter-egg-message {
  margin-top: 1rem;
  max-width: 320px;
  min-height: 4.5rem; /* fits ~3 wrapped lines, so cycling messages of
                         different lengths don't visibly jump the layout */
  padding: 0.9rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(244, 167, 196, 0.4);
  background: linear-gradient(
    160deg,
    rgba(244, 167, 196, 0.1),
    rgba(244, 212, 124, 0.05)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.easter-egg-message p {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: #e8ddd8;
  line-height: 1.5;
}

/* =====================================================================
   Video / Film — a "premiere frame" video player.
   ===================================================================== */

.film {
  /* The base `section` rule (top of file) makes every section a flex
     container but leaves flex-direction at its default of "row" — .hero
     overrides this with column, but this section didn't, so its three
     direct children (heading, frame, caption) were being laid out side by
     side instead of stacked. */
  flex-direction: column;
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) 1.5rem;
  background: linear-gradient(180deg, #14241a 0%, #101f14 100%);
  text-align: center;
}

.film-header {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.film-heading {
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  color: #f4a7c4;
  text-shadow: 0 0 24px rgba(244, 167, 196, 0.3);
}

/* Initial opacity/scale for the scroll-in reveal is set via gsap.set() in
   script.js; opacity: 0 here is just the pre-JS/FOUC guard. */
.film-frame {
  position: relative;
  max-width: 860px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(244, 167, 196, 0.45);
  box-shadow:
    0 0 0 6px rgba(20, 36, 26, 0.6),
    0 0 40px rgba(244, 167, 196, 0.25),
    0 0 70px rgba(244, 212, 124, 0.12);
  background: #0d1a10;
  opacity: 0;
}

.film-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0d1a10;
}

.film-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(13, 26, 16, 0.25);
  cursor: pointer;
  transition: background 0.25s ease;
}

.film-play-overlay:hover {
  background: rgba(13, 26, 16, 0.4);
}

.film-play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(64px, 10vw, 88px);
  height: clamp(64px, 10vw, 88px);
  border-radius: 50%;
  background: linear-gradient(155deg, #f4d47c, #f4a7c4);
  color: #16261a;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  padding-left: 0.2em; /* optically center the triangle glyph */
  box-shadow: 0 0 30px rgba(244, 167, 196, 0.5);
}

.film-coming-soon {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(160deg, #182b1c, #0d1a10);
}

.film-coming-soon-icon {
  font-size: clamp(2.4rem, 6vw, 3.2rem);
}

.film-coming-soon p {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: #f4a7c4;
}

.film-caption {
  margin-top: 1.5rem;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: #e8ddd8;
  opacity: 0;
}

/* =====================================================================
   Finale — the closing, emotional high point of the site.
   ===================================================================== */

.finale {
  flex-direction: column; /* see the comment on .film for why this matters */
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 4rem 1.5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(244, 167, 196, 0.2), transparent 62%),
    linear-gradient(180deg, #101f14 0%, #17281c 100%);
}

.finale-confetti {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  /* Explicit browser guarantee (beyond just overflow: hidden) that nothing
     painted or laid out in here can ever affect anything outside this box
     — confetti bursts can't influence page scroll height/position. */
  contain: layout paint;
}

.confetti-piece {
  position: absolute;
  top: -20px;
  border-radius: 2px;
  pointer-events: none;
  will-change: transform, opacity;
}

.confetti-piece--circle {
  border-radius: 50%;
}

.finale-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.finale-message {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 700px;
}

.finale-line {
  opacity: 0;
}

.finale-line--title {
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  color: #f4a7c4;
  text-shadow: 0 0 30px rgba(244, 167, 196, 0.4);
}

.finale-line--body {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  line-height: 1.7;
  color: #f0e6da;
}

.finale-line--sign {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: #f4d47c;
}

.finale-closing {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  color: #f4a7c4;
  opacity: 0;
}

/* =====================================================================
   Secret message — a small locked treasure-chest moment, last on the page.
   ===================================================================== */

.secret {
  flex-direction: column; /* see the comment on .film for why this matters */
  position: relative;
  gap: 1.5rem;
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.5rem;
  background: #0f1d13;
  text-align: center;
}

.secret-heading {
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: #f4a7c4;
  text-shadow: 0 0 20px rgba(244, 167, 196, 0.3);
}

.secret-lock-wrap {
  position: relative;
  transform-origin: 50% 60%;
}

.lock-shackle {
  transform-origin: 68px 45px; /* right anchor point, so it swings open */
}

.lock-body {
  fill: #16261a;
  stroke: url(#lockGradient);
  stroke-width: 2;
}

.lock-keyhole {
  fill: #101f14;
}

.secret-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.secret-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.secret-input {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  color: #f0e6da;
  background: rgba(244, 167, 196, 0.06);
  border: 1px solid rgba(244, 167, 196, 0.4);
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  min-height: 44px; /* explicit floor so the touch target holds regardless
                        of font metrics, matching the submit button */
  width: min(260px, 60vw);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.secret-input::placeholder {
  color: rgba(240, 230, 218, 0.5);
}

.secret-input:focus {
  border-color: rgba(244, 212, 124, 0.7);
  box-shadow: 0 0 18px rgba(244, 167, 196, 0.4);
}

.secret-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  color: #16261a;
  background: linear-gradient(155deg, #f4d47c, #f4a7c4);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.secret-submit:hover {
  transform: scale(1.06);
  box-shadow: 0 0 20px rgba(244, 167, 196, 0.5);
}

.secret-input:disabled,
.secret-submit:disabled {
  opacity: 0.5;
  cursor: default;
}

.secret-submit:disabled:hover {
  transform: none;
  box-shadow: none;
}

.secret-feedback {
  min-height: 1.4rem;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1rem;
  color: #f4a7c4;
  opacity: 0;
}

.secret-success {
  max-width: 380px;
  padding: 1rem 1.5rem;
  border-radius: 14px;
  border: 1px solid rgba(244, 212, 124, 0.45);
  background: linear-gradient(
    160deg,
    rgba(244, 212, 124, 0.1),
    rgba(244, 167, 196, 0.06)
  );
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

.secret-success p {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: #f0e6da;
  line-height: 1.5;
}

