@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@600&display=swap");
/* Brand tokens, matched to the background film: night-jungle green and the gold of the eyes. */
:root {
  --deep: #06130d;        /* darkest jungle green: page base */
  --leaf: #1f7a45;        /* moonlit leaf green */
  --lime: #5cc928;        /* card back */
  --gold: #f7b92b;        /* the glowing eyes: headings, buttons, outlines */
  --gold-hot: #ffd866;
  --ink: #f4ecd6;         /* warm white body text */
  --ink-soft: rgba(244, 236, 214, 0.88);
  --line: rgba(247, 185, 43, 0.7);
  --panel: rgba(6, 24, 15, 0.72);
  --shadow: #020805;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --round: "Poppins", "Avenir Next", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 48px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--deep); }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 500;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }

h1, h2, h3, .card-voice { color: var(--gold); }
h1, h2, .card-voice {
  font-weight: 600;
  line-height: 1.05;
  text-shadow: 0.04em 0.05em 0 var(--shadow);
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.2rem + 4.6vw, 4.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4rem); }
h3 { font-size: 1.35em; font-weight: 600; line-height: 1.15; }

a { color: inherit; }

.wrap {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
}

section { position: relative; padding-block: clamp(44px, 7vw, 96px); }

/* =====================================================================
   The background film, pinned behind the page. jungle.js moves its
   playhead with the scroll: down plays forward, up plays backward.
   ===================================================================== */
.jungle {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: var(--deep);
  pointer-events: none;
}
.bgvideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jungle .veil { position: absolute; inset: 0; background: rgba(6, 19, 13, 0.18); }

/* content eases up into place as it scrolls into view (only when scripts run) */
.js [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity 0.8s ease, translate 0.8s cubic-bezier(0.2, 0.8, 0.3, 1); transition-delay: var(--stagger, 0s); }
.js [data-reveal].in { opacity: 1; translate: 0 0; }

/* ---------- top bar ---------- */
.topbar { position: absolute; inset: 0 0 auto 0; z-index: 5; padding: 16px var(--gutter); }
.topbar .cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
/* Art Deco plaques: geometric capitals in a gold-edged lozenge with pointed ends */
.cats a {
  --cut: 11px;
  position: relative; isolation: isolate;
  font-family: "Josefin Sans", "Futura", "Century Gothic", sans-serif; font-weight: 600;
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1; white-space: nowrap;
  color: var(--ink); text-decoration: none;
  padding: 11px 20px 9px;
  background: linear-gradient(var(--gold-hot), var(--gold));
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% 50%, calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 50%);
  transition: color 0.2s;
}
.cats a::before {          /* the dark face of the plaque, leaving a thin gold edge */
  content: ""; position: absolute; inset: 1.5px; z-index: -1;
  background: var(--navfill, #0a1c12);
  clip-path: polygon(calc(var(--cut) - 0.5px) 0, calc(100% - var(--cut) + 0.5px) 0, 100% 50%, calc(100% - var(--cut) + 0.5px) 100%, calc(var(--cut) - 0.5px) 100%, 0 50%);
  transition: opacity 0.2s;
}
.cats a::after {           /* a second, inner gold line: the stepped look */
  content: ""; position: absolute; inset: 4px 14px; z-index: -1;
  border-block: 1px solid var(--line); opacity: 0.55;
}
.cats a:hover, .cats a:focus-visible, .cats a[aria-current] { color: var(--navon, var(--deep)); }
.cats a:hover::before, .cats a:focus-visible::before, .cats a[aria-current]::before { opacity: 0; }
.cats a:hover::after, .cats a:focus-visible::after, .cats a[aria-current]::after { border-color: var(--navon, var(--deep)); opacity: 0.35; }
.stub .topbar { position: static; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.6em 1.5em 0.68em;
  border-radius: 999px;
  background: var(--gold);
  color: var(--deep);
  font: inherit; font-weight: 700; font-size: 1.05em;
  text-decoration: none;
  box-shadow: 0 5px 0 var(--shadow), 0 0 30px rgba(247, 185, 43, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--gold-hot); box-shadow: 0 7px 0 var(--shadow), 0 0 44px rgba(247, 185, 43, 0.65); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--shadow); }
.btn:focus-visible, a:focus-visible, .flip:focus-visible { outline: 3px solid var(--gold-hot); outline-offset: 4px; }
.btn.small { font-size: 1rem; padding: 0.4em 1.1em 0.46em; box-shadow: 0 3px 0 var(--shadow); }
.btn.ghost { background: rgba(6, 24, 15, 0.6); color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); }
.btn.ghost:hover { background: rgba(247, 185, 43, 0.16); box-shadow: inset 0 0 0 2px var(--gold); }

/* ---------- hero: title above the eyes, call to action below them ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  padding-block: 122px 52px;
  text-align: center;
  background: linear-gradient(to bottom,
    rgba(3, 12, 8, 0.85) 0%, rgba(3, 12, 8, 0.5) 24%, rgba(3, 12, 8, 0) 40%,
    rgba(3, 12, 8, 0) 100%);
}
.hero .wrap { display: flex; flex-direction: column; justify-content: space-between; gap: 30vh; }
.eyebrow { font-style: italic; font-size: 1.15em; color: var(--ink-soft); margin-bottom: 0.5em; text-shadow: 0 1px 8px var(--shadow); }
.hero .lede { max-width: 36ch; margin-inline: auto; font-size: 1.15em; text-shadow: 0 1px 10px var(--shadow), 0 0 2px var(--shadow); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 1.4em; align-items: center; justify-content: center; }

/* ---------- the card that turns ---------- */
.cardshow { overflow-x: clip; }
.cardshow .cards { width: min(88%, 480px); margin-inline: auto; }

/* the deck: two card backs fanned behind a card that flips to show its back */
.deck { position: relative; aspect-ratio: 2000 / 1247; perspective: 1400px; animation: float 7s ease-in-out infinite alternate; }
@keyframes float { from { translate: 0 -6px; } to { translate: 0 8px; } }
.deck .under {
  position: absolute; inset: 0; border-radius: 3.2% / 5.1%;
  background: var(--lime); border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}
.deck .under.u1 { rotate: -9deg; translate: -4% 5%; filter: brightness(0.72); }
.deck .under.u2 { rotate: 6deg; translate: 4% 7%; filter: brightness(0.85); }
.flip {
  position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer;
  transform-style: preserve-3d; rotate: -2.5deg;
  transition: transform 0.9s cubic-bezier(0.3, 1.3, 0.4, 1);
}
.flip.flipped { transform: rotateY(180deg); }
.flip .face {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 3.2% / 5.1%; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.flip img.face { object-fit: cover; }
.flip .back { transform: rotateY(180deg); background: var(--lime); }
.flip .back svg { display: block; width: 100%; height: 100%; }
.hint {
  width: fit-content; margin: 3em auto 0; padding: 0.15em 1em 0.25em; border-radius: 999px;
  background: var(--panel); font-size: 0.8em; font-style: italic; color: var(--ink-soft);
}

/* the logo comes alive: rings draw themselves, the gold dot glows, the pupil looks around */
.logo .ring { stroke-dasharray: 1; stroke-dashoffset: 1; }
.flip.flipped .logo .ring { animation: draw 1.4s ease-out 0.35s forwards; }
.flip.flipped .logo .ring.inner { animation-delay: 0.8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.logo .dot { transform-box: fill-box; transform-origin: center; animation: foil 3.2s ease-in-out infinite alternate; }
@keyframes foil { from { scale: 1; filter: brightness(1); } to { scale: 1.07; filter: brightness(1.18); } }
.logo .pupil { transition: transform 0.25s ease-out; }
.logo .pupil.idle { animation: look 6s ease-in-out infinite; }
@keyframes look {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(5px, -2px); }
  45% { transform: translate(-5px, 1px); }
  70% { transform: translate(2px, 4px); }
}
.logo text { font-family: var(--round); font-weight: 700; font-size: 34px; fill: #fff; }
.logo text.sh { fill: #7a2a22; }

/* ---------- panels ---------- */
/* every panel is drawn like the bubbles in the film: dark inside, coral outline */
.about .wrap, .photos figure, .how h2, .steps li, .order .panel {
  background: var(--panel);
  border: 2px solid var(--line);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}

/* ---------- about ---------- */
.about { padding-inline: var(--gutter); }
.about .wrap {
  display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center;
  gap: clamp(32px, 6vw, 80px);
  padding: clamp(24px, 4.5vw, 60px);
  border-radius: 32px;
}
.about p { margin-top: 1.1em; color: var(--ink-soft); }
.about p.card-voice { font-size: 1.5em; font-style: italic; color: var(--ink); }

.stack { position: relative; margin: 0; padding-bottom: 12%; }
.stack img { display: block; width: 100%; height: auto; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
.stack .box { border-radius: 22px; rotate: -2deg; }
.stack .card {
  position: absolute; right: -6%; bottom: 0; width: 62%;
  border-radius: 3.2% / 5.1%; rotate: 5deg;
  transition: rotate 0.4s ease, scale 0.4s ease;
}
.stack:hover .card { rotate: 2deg; scale: 1.03; }

/* ---------- photos ---------- */
.photos .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 24px); }
.photos figure { margin: 0; padding: 10px 10px 12px; border-radius: 24px; transition: rotate 0.35s ease, scale 0.35s ease, opacity 0.8s ease, translate 0.8s cubic-bezier(0.2, 0.8, 0.3, 1); }
.photos figure:hover { rotate: -1.5deg; scale: 1.03; }
.photos figure:nth-child(2):hover { rotate: 1.5deg; }
.photos img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 15px; }
.photos figcaption { margin-top: 0.55em; font-size: 0.85em; font-style: italic; text-align: center; color: var(--ink-soft); }

/* ---------- how ---------- */
.how h2 { width: fit-content; margin-inline: auto; padding: 0.18em 0.9em 0.26em; border-radius: 999px; text-align: center; }
.steps {
  list-style: none; margin: clamp(28px, 4.5vw, 52px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.4vw, 28px);
  counter-reset: step;
}
.steps li { counter-increment: step; padding: 26px 26px 30px; border-radius: 24px; }
.steps li::before {
  content: counter(step);
  display: block; font-size: 3.2em; line-height: 0.9; font-weight: 600; font-style: italic;
  color: var(--gold); text-shadow: 2px 3px 0 var(--shadow);
  margin-bottom: 0.25em;
}
.steps p { margin-top: 0.5em; color: var(--ink-soft); font-size: 0.95em; }

/* ---------- order ---------- */
.order { text-align: center; padding-bottom: clamp(56px, 9vw, 120px); }
.order .panel {
  max-width: 760px; margin-inline: auto;
  padding: clamp(32px, 5.5vw, 64px) clamp(22px, 5vw, 64px);
  border-radius: 32px;
}
.order p { margin-top: 1em; color: var(--ink-soft); }
.order .note { font-size: 0.85em; font-style: italic; }

/* ---------- footer ---------- */
footer {
  padding: 30px var(--gutter) 38px;
  text-align: center; font-size: 1rem; color: var(--ink-soft);
  background: var(--panel);
  border-top: 3px solid var(--line);
  position: relative;
}
footer .mark { font-style: italic; color: var(--gold); font-size: 1.35rem; margin-bottom: 0.3em; }
footer .cats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px;
  margin: 0 auto 22px; padding-bottom: 22px; max-width: 900px;
  border-bottom: 1px solid rgba(247, 185, 43, 0.3);
}

/* ---------- the placeholder pages for the other categories ---------- */
.stub { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(120% 80% at 50% 0%, #12402a, var(--deep) 70%); }
.stub main { flex: 1; display: grid; align-items: center; }

/* ---------- testimonials on the private sessions page ---------- */
.voices { text-align: center; padding-top: 0; }
.voices .lede { color: var(--ink-soft); font-style: italic; margin-top: 0.4em; }
.voice {
  margin: 28px auto 0; width: min(100%, 360px); padding: 10px;
  background: var(--panel); border: 2px solid var(--line); border-radius: 28px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(247, 185, 43, 0.18);
}
.voice video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 19px; background: #000; }

/* ---------- people who prefer stillness get a still jungle ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .deck, .logo .dot, .logo .pupil.idle { animation: none; }
  .logo .ring { stroke-dashoffset: 0; }
  .js [data-reveal] { opacity: 1; translate: none; transition: none; }
  .flip { transition: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 820px) {
/* portrait: shrink the film so both eyes stay in frame, and fade its foot into the page colour */
.bgvideo {
  height: 86%;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, #000 78%, transparent);
}
.hero { padding-block: 84px 36px; }
.hero .wrap { gap: 24vh; }
  .about .wrap { grid-template-columns: 1fr; text-align: center; }
  .about .stack { width: min(84%, 400px); margin-inline: auto; }
  .photos .grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr; }
  .cats a { font-size: 0.68rem; padding: 10px 17px 8px; }
  /* the header links become one row that slides sideways, so they never push the page down */
  .topbar { padding-inline: 0; }
  .topbar .cats {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    padding: 2px var(--gutter); scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 36px), transparent);
  }
  .topbar .cats::-webkit-scrollbar { display: none; }
}

/* ---------- landing hero: 1 cm of air under the header, and a bold title ---------- */
:root body .hero { padding-top: calc(var(--topbar-h, 62px) + 1cm); }
.hero .eyebrow { max-width: 820px; margin-inline: auto; text-wrap: balance; }
:root body .hero h1 { font-weight: 700; -webkit-text-stroke: 1.8px var(--gold); }

/* ---------- the game page kept clean: no gilded window frame, no lined boxes around the words ---------- */
html:has(body.clean)::before, html:has(body.clean)::after { display: none; }
:root body.clean :is(.about .wrap, .steps li, .order .panel, .photos figure) { border: 0; outline: 0; box-shadow: none; }
.hint { font-size: 1.6em; }

/* ---------- quiet email sign-up at the foot of every page ---------- */
.signup { text-align: center; margin: 0 auto 22px; }
.signup > button {
  font: inherit; font-family: "Josefin Sans", sans-serif; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); background: none; border: 0; border-bottom: 1px solid currentColor; padding: 4px 2px; cursor: pointer; opacity: 0.75;
}
.signup > button:hover { opacity: 1; color: var(--gold); }
.signup form { display: none; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.signup.open form { display: flex; }
.signup.open > button { display: none; }
.signup input[type=email] {
  font: inherit; font-size: 1rem; width: min(300px, 80vw); padding: 8px 12px; color: var(--ink);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.3); border-radius: 3px;
}
.signup form button {
  font: inherit; font-family: "Josefin Sans", sans-serif; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 16px; color: var(--ink); background: none; border: 1px solid var(--gold); border-radius: 3px; cursor: pointer;
}
.signup form button:hover { background: var(--gold); color: #111; }
.signup .msg { width: 100%; font-size: 0.95rem; font-style: italic; color: var(--ink-soft); margin: 0; }

.signup .note { width: 100%; font-size: 0.85rem; color: var(--ink-soft); opacity: 0.8; margin: 0; }
.signup form { position: relative; }
