/* ============================================================
   YONDERIA
   A separate brand living inside the Now You See It site.
   Nothing here is shared with ../style.css on purpose — the two
   pages look nothing alike and should not be able to leak into
   each other.

   The page runs day -> night as you scroll. app.js writes
   --t (0 at the top, 1 at the bottom) onto <html>; the day sky
   fades out over the night sky, the beams come up, the stars
   come out. Sections also carry data-theme so their card colours
   step cleanly rather than being interpolated, which keeps text
   contrast predictable at every scroll position.
   ============================================================ */

/* ---- self-hosted fonts. latin subsets, ~86KB all up ---- */
@font-face {
  font-family: "Bungee";
  src: url("./assets/fonts/bungee-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Pacifico";
  src: url("./assets/fonts/pacifico-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("./assets/fonts/space-grotesk-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("./assets/fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("./assets/fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  /* daylight */
  --sand:       #EFE3CB;
  --sand-deep:  #DCC7A0;
  --surf:       #FFFDF7;
  --sky:        #A9CFE3;
  --ink:        #1F2B36;
  --ink-soft:   #44586B;
  --whale:      #46597C;
  --coral:      #E17E63;   /* decorative only */
  --coral-deep: #B04528;   /* coral used behind or as text — clears WCAG AA */
  --mustard:    #E6B222;

  /* after dark */
  --deep:       #05080F;
  --magenta:    #FF2E9F;
  --acid:       #4DFF7A;
  --uv:         #9B4DFF;
  --flare:      #FF3B30;
  --moonlight:  #F3ECFF;

  --font-display: "Bungee", system-ui, sans-serif;
  --font-script:  "Pacifico", cursive;
  --font-body:    "Space Grotesk", system-ui, -apple-system, sans-serif;

  --t: 0;                 /* scroll progress, 0..1, written by app.js */
  --wrap: 62rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--deep);       /* what shows before the backdrop paints */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

/* ============================================================
   BACKDROP
   ============================================================ */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.backdrop > div { position: absolute; inset: 0; }

/* night sits at the bottom of the stack and is simply revealed */
.sky-night {
  background:
    radial-gradient(110% 70% at 18% 108%, rgba(155, 77, 255, .38) 0%, transparent 62%),
    radial-gradient(95% 60% at 88% 104%, rgba(255, 46, 159, .30) 0%, transparent 62%),
    linear-gradient(180deg, #05080F 0%, #090E20 40%, #100926 72%, #1A0722 100%);
}

/* dusk peaks halfway down. Without it the day layer cross-fades straight
   into the night one and the middle of the page goes muddy brown. --d is
   written by app.js as 1 - |2t - 1|, i.e. 0 at both ends, 1 in the middle. */
.sky-dusk {
  opacity: var(--d, 0);
  background:
    radial-gradient(80% 50% at 72% 82%, rgba(255, 138, 61, .55) 0%, transparent 62%),
    linear-gradient(180deg,
      #2B3F6B 0%,
      #6A4C82 30%,
      #C4638A 58%,
      #F09468 80%,
      #F6B96A 100%);
}

/* day sits on top and fades away */
.sky-day {
  opacity: calc(1 - var(--t));
  background:
    radial-gradient(90% 55% at 78% 6%, rgba(255, 244, 214, .95) 0%, transparent 55%),
    linear-gradient(180deg,
      #BFE0EF 0%,
      #D8E9EC 26%,
      #EFE3CB 52%,
      #E7D6B4 78%,
      #DFC69F 100%);
}

.sun {
  --sun-size: clamp(90px, 16vw, 190px);
  top: 6vh; right: 9vw;
  inset: auto 9vw auto auto;
  width: var(--sun-size); height: var(--sun-size);
  border-radius: 50%;
  background: radial-gradient(circle, #FFF6D6 0%, #FFE58A 48%, rgba(255,210,90,0) 72%);
  opacity: calc(1 - var(--t));
  transform: translateY(calc(var(--t) * 46vh));
}

/* the stars only arrive in the back half */
.stars {
  opacity: calc((var(--t) - .45) * 2.2);
  background-image:
    radial-gradient(1.6px 1.6px at 12% 18%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 31% 46%, #fff, transparent),
    radial-gradient(1.8px 1.8px at 54% 12%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 68% 62%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 82% 28%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 91% 74%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 22% 78%, #fff, transparent),
    radial-gradient(1.1px 1.1px at 44% 88%, #fff, transparent),
    radial-gradient(1.7px 1.7px at 7%  58%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 76% 92%, #fff, transparent);
}

/* the floodlights on the cliff — swing in as it gets dark */
.beams { overflow: hidden; opacity: calc((var(--t) - .35) * 1.9); }

.beams i {
  position: absolute;
  bottom: -30vh;
  left: 50%;
  width: 26vw;
  height: 150vh;
  transform-origin: 50% 100%;
  filter: blur(28px);
  mix-blend-mode: screen;
  animation: sweep 17s ease-in-out infinite alternate;
}

.beams i:nth-child(1) { background: linear-gradient(to top, rgba(255,46,159,.34), transparent 66%); margin-left: -46vw; animation-duration: 15s; }
.beams i:nth-child(2) { background: linear-gradient(to top, rgba(77,255,122,.26), transparent 66%); margin-left: -16vw; animation-duration: 21s; animation-delay: -6s; }
.beams i:nth-child(3) { background: linear-gradient(to top, rgba(155,77,255,.30), transparent 66%); margin-left:  12vw; animation-duration: 18s; animation-delay: -11s; }
.beams i:nth-child(4) { background: linear-gradient(to top, rgba(255,59,48,.24), transparent 66%);  margin-left:  36vw; animation-duration: 24s; animation-delay: -3s; }

@keyframes sweep {
  from { transform: rotate(-13deg); }
  to   { transform: rotate(13deg); }
}

.grain {
  opacity: .16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* ============================================================
   THE POD
   ============================================================ */
.pod {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.whale {
  position: absolute;
  width: 26vw;
  min-width: 200px;
  max-width: 430px;
  opacity: .42;
  will-change: transform;
}

.whale-body  { fill: var(--whale); }
.whale-fin   { fill: #93A6C6; }
.whale-belly { fill: #E7EEF6; opacity: .85; }
.whale-pleat { fill: none; stroke: rgba(30,45,70,.28); stroke-width: 2.5; stroke-linecap: round; }
.whale-knob  { fill: #6C80A6; }
.whale-spot  { fill: var(--mustard); opacity: .85; }
.whale-eye   { fill: #0E1622; }

.whale-a { top: 12%; left: -34vw; animation: swim-r  78s linear infinite; }
.whale-b { top: 48%; left: 108vw; animation: swim-l 104s linear infinite; animation-delay: -28s; width: 18vw; opacity: .3; }
.whale-c { top: 76%; left: -34vw; animation: swim-r 128s linear infinite; animation-delay: -66s; width: 32vw; opacity: .38; }

@keyframes swim-r {
  from { transform: translateX(0)     rotate(-4deg); }
  to   { transform: translateX(150vw) rotate(4deg); }
}
@keyframes swim-l {
  from { transform: translateX(0)      scaleX(-1) rotate(4deg); }
  to   { transform: translateX(-150vw) scaleX(-1) rotate(-4deg); }
}

/* after dark they pick up the floodlights rather than changing colour —
   hue-rotating the whole pod turned them into green and pink mush */
.pod {
  filter:
    saturate(calc(1 + var(--t) * .5))
    drop-shadow(0 0 calc(var(--t) * 30px) rgba(255, 46, 159, .5));
}

/* ============================================================
   ARRIVAL — water draining down the screen
   ============================================================ */
.surfacing {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6,26,50,.55) 0%, #06182F 30%, #020A16 100%);
  animation: surface 1500ms cubic-bezier(.55,.05,.25,1) forwards;
}

@keyframes surface {
  0%   { transform: translateY(0);    opacity: 1; }
  70%  { transform: translateY(-88%); opacity: 1; }
  100% { transform: translateY(-100%); opacity: 0; }
}

/* ============================================================
   LAYOUT
   ============================================================ */
main { position: relative; z-index: 1; }

.band {
  padding: clamp(3rem, 9vw, 7rem) 1.25rem;
  display: flex;
  justify-content: center;
}

.card {
  width: min(100%, var(--wrap));
  padding: clamp(1.5rem, 4.5vw, 3rem);
  border-radius: 22px;
  background: rgba(255, 253, 247, .90);
  color: var(--ink);
  border: 2px solid rgba(31, 43, 54, .10);
  box-shadow: 0 22px 60px rgba(20, 30, 45, .16);
  backdrop-filter: blur(3px);
}

/* card colours step by section theme so contrast is never
   left up to wherever the scroll happens to be */
[data-theme="dusk"] .card {
  background: rgba(38, 26, 48, .82);
  color: #F6EEE4;
  border-color: rgba(255, 46, 159, .32);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .45);
}

[data-theme="night"] .card {
  background: rgba(8, 6, 20, .80);
  color: var(--moonlight);
  border-color: rgba(155, 77, 255, .42);
  box-shadow: 0 0 0 1px rgba(255,46,159,.14), 0 24px 80px rgba(0, 0, 0, .6);
}

.card p { margin: 0 0 1.1rem; }
.card p:last-child { margin-bottom: 0; }

.head {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.6vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: .01em;
  margin: 0 0 1.4rem;
  color: var(--ink);
}
[data-theme="dusk"] .head { color: #FFD9A8; }
[data-theme="night"] .head {
  color: #FFF;
  text-shadow: 0 0 18px rgba(255,46,159,.85), 0 0 44px rgba(155,77,255,.55);
}

.lede { font-size: clamp(1.1rem, 2.6vw, 1.35rem); font-weight: 500; }

.pull {
  font-family: var(--font-script);
  font-size: clamp(1.35rem, 4.4vw, 2rem);
  line-height: 1.5;
  color: var(--coral-deep);
  margin-top: 2rem !important;
  text-align: center;
}

.fine { font-size: .93rem; color: var(--ink-soft); }
[data-theme="dusk"] .fine,
[data-theme="night"] .fine { color: #C4B9D6; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.25rem 6rem;
  overflow: hidden;
}

.hero-photo { position: absolute; inset: 0; z-index: 0; }
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  filter: saturate(1.15) contrast(1.04) brightness(1.08);
}
/* The headland is dark on the right of the frame, so the hero copy needs a
   scrim behind it or the date disappears into the cliff. Radial, centred on
   the text, plus the sand fade at the bottom. */
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(58% 46% at 50% 46%, rgba(255,248,232,.68) 0%, rgba(255,248,232,.22) 58%, transparent 78%),
    linear-gradient(180deg, rgba(255,246,222,.32) 0%, rgba(255,246,222,0) 30%),
    linear-gradient(0deg, var(--sand) 0%, rgba(239,227,203,.4) 26%, rgba(239,227,203,0) 58%);
}

.hero-inner { position: relative; z-index: 1; }

.hero-eyebrow {
  font-size: .82rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #23323C;
  margin: 0 0 1rem;
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 13.5vw, 8.5rem);
  line-height: .92;
  letter-spacing: .005em;
  margin: 0;
  color: var(--mustard);
  -webkit-text-stroke: clamp(2px, .55vw, 5px) #2B3742;
  paint-order: stroke fill;
  text-shadow: 0 6px 0 rgba(43, 55, 66, .22);
}
.wordmark-bang { color: var(--coral); }

.hero-script {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 5.6vw, 3rem);
  color: var(--surf);
  -webkit-text-stroke: clamp(1px, .28vw, 2.5px) #2B3742;
  paint-order: stroke fill;
  margin: .35rem 0 1.4rem;
  transform: rotate(-2.5deg);
}

/* the date rides on its own plaque so it can never fall into the cliff */
.hero-when {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  margin: 0;
  padding: .85rem 1.5rem;
  border-radius: 14px;
  background: rgba(255, 252, 242, .88);
  border: 2.5px solid #2B3742;
  box-shadow: 0 5px 0 rgba(43, 55, 66, .9);
  transform: rotate(-.8deg);
}
.hero-date {
  font-family: var(--font-display);
  font-size: clamp(.95rem, 3vw, 1.35rem);
  color: #1A252E;
}
.hero-where {
  font-size: clamp(.72rem, 2.2vw, .92rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #3A4C58;
}

/* No button on the page right now — the hero CTA was removed so people have to
   swim all the way down for the info. Kept because the Humanitix button will
   want it when tickets open. */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(.8rem, 2.4vw, 1rem);
  text-decoration: none;
  padding: .85em 1.7em;
  border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-ghost {
  background: var(--coral-deep);
  color: #FFF8F2;
  border: 2.5px solid #2B3742;
  box-shadow: 0 5px 0 #2B3742;
}
.btn-ghost:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #2B3742; }
.btn-ghost:active { transform: translateY(3px); box-shadow: 0 2px 0 #2B3742; }

.hero-scroll {
  position: absolute;
  bottom: 1.6rem; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  text-align: center;
  font-size: .74rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #26343E;
}
.hero-scroll i {
  display: block;
  width: 2px; height: 30px;
  margin: .5rem auto 0;
  background: linear-gradient(to bottom, #3A4C58, transparent);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); opacity: .9 } 50% { transform: translateY(7px); opacity: .4 } }

/* ============================================================
   PHOTO STRIP
   ============================================================ */
.band-strip {
  gap: clamp(.9rem, 3vw, 2rem);
  flex-wrap: wrap;
  align-items: flex-end;
}

.strip-photo {
  margin: 0;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,.14);
  background: #241B2E;          /* so it isn't a black hole while lazy-loading */
  box-shadow: 0 18px 60px rgba(0,0,0,.5);
  transform: rotate(-1.4deg);
  max-width: min(100%, 30rem);
}
.strip-photo:nth-child(2) { transform: rotate(1.8deg); }

.strip-photo figcaption {
  position: absolute;
  right: .6rem; bottom: .5rem;
  font-family: var(--font-display);
  font-size: .7rem;
  letter-spacing: .16em;
  color: rgba(255,255,255,.75);
  text-shadow: 0 1px 6px #000;
}

/* ============================================================
   WHERE — facts and notes
   ============================================================ */
.facts { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.facts li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .8rem;
}
.facts li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--coral);
}
[data-theme="dusk"] .facts li::before,
[data-theme="night"] .facts li::before { background: var(--acid); }

.note {
  border-left: 4px solid var(--mustard);
  padding: .85rem 0 .85rem 1rem;
  margin: 0 0 1.2rem;
  background: rgba(230, 178, 34, .10);
  border-radius: 0 10px 10px 0;
}
.note p { margin: 0; font-size: .97rem; }

.checked {
  display: block;
  margin-top: .3rem;
  font-size: .8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .75;
}

/* ============================================================
   BRING
   ============================================================ */
.bring-grid {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.bring-grid li {
  font-family: var(--font-display);
  font-size: clamp(.72rem, 2.2vw, .92rem);
  padding: .6em 1.1em;
  border-radius: 999px;
  border: 2px solid var(--acid);
  color: var(--acid);
  text-shadow: 0 0 12px rgba(77,255,122,.5);
}
.bring-grid li:nth-child(3n+2) { border-color: var(--magenta); color: var(--magenta); text-shadow: 0 0 12px rgba(255,46,159,.5); }
.bring-grid li:nth-child(3n+3) { border-color: var(--uv);      color: #C79BFF;      text-shadow: 0 0 12px rgba(155,77,255,.5); }

/* ============================================================
   TICKET
   ============================================================ */
.includes { margin: 0; }
.includes dt {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #FFD9A8;
  margin-top: 1.2rem;
}
.includes dt:first-child { margin-top: 0; }
.includes dd { margin: .25rem 0 0; }

.tbc {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  padding: .28em .7em;
  border-radius: 6px;
  background: rgba(255, 209, 0, .16);
  border: 1px dashed rgba(255, 209, 0, .7);
  color: #FFDE5C;
}
.tbc-line { margin-top: 1.6rem !important; }

/* ============================================================
   CTA
   ============================================================ */
.card-cta { text-align: center; }
.cta-lede { font-size: clamp(1.05rem, 2.6vw, 1.25rem); font-weight: 500; }
.cta-status { margin: 1.6rem 0 !important; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: clamp(2.5rem, 7vw, 5rem) 1.25rem 3.5rem;
  text-align: center;
  color: #C4B9D6;
}
.ack {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  font-size: .9rem;
  line-height: 1.7;
}
.rope-back {
  display: inline-block;
  text-decoration: none;
  color: #E8DCFF;
}
.rope-line {
  display: block;
  width: 2px; height: 48px;
  margin: 0 auto;
  background: repeating-linear-gradient(to bottom, #8E7A5C 0 6px, transparent 6px 10px);
}
.rope-label {
  display: inline-block;
  margin-top: .5rem;
  font-family: var(--font-display);
  font-size: .72rem;
  letter-spacing: .1em;
  padding: .6em 1.1em;
  border-radius: 8px;
  background: #16121F;
  border: 2px solid #3E3352;
  transition: transform .2s ease;
}
.rope-back:hover .rope-label { transform: rotate(-2deg) translateY(2px); }

.footer-text {
  margin: 2.5rem 0 0;
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .55;
}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.visible {
  opacity: 1; transform: none;
  transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.3,1);
}

/* ============================================================
   SMALL SCREENS
   ============================================================ */
@media (max-width: 640px) {
  .whale { opacity: .22; }
  .whale-b { display: none; }
  .strip-photo { transform: none; }
  .strip-photo:nth-child(2) { transform: none; }
}

/* ============================================================
   REDUCED MOTION — everything decorative stops
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .surfacing { display: none; }
  .whale, .beams i, .hero-scroll i { animation: none !important; }
  .whale-a { left: 4vw; }
  .whale-b { left: auto; right: 4vw; transform: scaleX(-1); }
  .whale-c { left: 12vw; }
  .reveal { opacity: 1; transform: none; }
  * { transition: none !important; }
}
