/* ==========================================================================
   LACÀ — landing page styles
   Lime canvas (#E6F4A4), Helvetica throughout, hand-drawn BOOK A SESSION.
   Headings are purple (#BA3DFF), buttons #BB16FF, body text black.
   ========================================================================== */

/* ---------- Hand-drawn font for BOOK A SESSION
   Stand-in: Mali (free, SIL Open Font Licence — see fonts/licenses).
   To use One Little Font once you have its WEB licence: put the .woff2 in
   assets/fonts/, uncomment the block below and fix the file name. It is
   already first in --font-hand, so nothing else needs changing. */
@font-face { font-family: "Mali"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/mali-latin-700-normal.woff2") format("woff2"); }
/*
@font-face { font-family: "One Little Font"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/OneLittleFont.woff2") format("woff2"); }
*/

/* ---------- Design tokens */
:root {
  --lime: #e6f4a4;
  --bg: #e6f4a4;
  --ink: #000000;
  --ink-dim: #45493a;
  --rule: rgba(0, 0, 0, 0.22);
  --grid: rgba(0, 0, 0, 0.07);
  --g-display: linear-gradient(100deg, #ba3dff 0%, #ba3dff 100%);
  --btn: #bb16ff;
  --btn-ink: #000000;
  --glow: 0;

  --gut: clamp(16px, 4vw, 64px);
  --vid-w: min(444px, 30.8vw);
  --vid-right: 6.67vw;

  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-hand: "One Little Font", "Mali", "Comic Sans MS", cursive;
}

/* ---------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; }
img, video, svg { display: block; }
p, h1, h2, dl, dd { margin: 0; }
::selection { background: #000; color: var(--lime); -webkit-text-fill-color: var(--lime); }
a:focus-visible, button:focus-visible { outline: 2px solid #000; outline-offset: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -120px; z-index: 100;
  background: #000; color: #fff; padding: 12px 16px;
  font: 700 13px var(--font-body); text-decoration: none;
}
.skip:focus { top: 16px; }

/* Display text: purple → orange as you scroll */
.gt {
  background-image: var(--g-display);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  padding: .16em .06em .12em; margin: -.16em -.06em -.12em;
}
.dim { color: var(--ink-dim); }

.label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.body { font-size: clamp(17px, 1.6vw, 22px); line-height: 1.42; max-width: 36ch; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: #1f9d55; display: inline-block; flex-shrink: 0; }
.dot.is-closed { background: #b42318; }
.pulse { animation: lacapulse 2.4s ease-in-out infinite; }
@keyframes lacapulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* Links */
.u { position: relative; display: inline-block; text-decoration: none; padding-bottom: 3px; }
.u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left center;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.u:hover::after, .u:focus-visible::after { transform: scaleX(1); }

.book {
  display: inline-flex; align-items: center; gap: 14px; align-self: flex-start;
  min-height: 60px; padding: 0 30px; border-radius: 999px;
  background: var(--btn); color: var(--btn-ink); text-decoration: none;
  font-family: var(--font-body); font-size: 20px; font-weight: 700;
  transition: filter .2s ease;
}
.book:hover { filter: brightness(.9); }
.book--sm { min-height: 44px; padding: 0 20px; gap: 8px; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Fixed layers */
.canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
}
.glow {
  position: absolute; left: 0; top: 0; width: 64vw; height: 64vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(186, 61, 255, .42) 0%, rgba(255, 122, 26, .22) 42%, rgba(255, 122, 26, 0) 68%);
  filter: blur(48px); opacity: var(--glow);
  transform: translate3d(36vw, 10vh, 0);
}

.video-wrap {
  position: fixed; right: var(--vid-right); top: 50%; z-index: 0;
  width: var(--vid-w); aspect-ratio: 16 / 9;
  transform: translateY(-50%);
  background: #121212; pointer-events: none;
}
.video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.video-toggle {
  position: fixed; z-index: 45;
  right: calc(var(--vid-right) - 9px);
  top: calc(50% + var(--vid-w) * 9 / 32 + 2px);
  width: 44px; height: 44px; margin: 0; padding: 0; border: 0; background: transparent;
  display: flex; align-items: center; justify-content: center; color: var(--ink); cursor: pointer;
}
.video-toggle__dot {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--rule); background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.video-toggle svg { fill: currentColor; }
.video-toggle .icon-play { display: none; }
.video-toggle.is-paused .icon-play { display: block; }
.video-toggle.is-paused .icon-pause { display: none; }

/* ---------- Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--vid-right) 16px 7.78vw; pointer-events: none;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
}
.brand {
  display: inline-flex; align-items: center; min-height: 44px; pointer-events: auto;
  text-decoration: none; font-size: 22px; font-weight: 700; letter-spacing: .01em;
}
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); pointer-events: auto; }
.site-nav .u { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Content */
main { position: relative; z-index: 1; }
.meta-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }

/* Page 1 — laid out on a 1440 × 900 frame that scales with the window */
.hero { position: relative; height: max(62.5vw, 100svh); overflow-x: clip; }
.hero__status {
  position: absolute; right: var(--vid-right); top: max(7.7vw, 96px);
  display: flex; align-items: center; gap: 10px;
  font-size: clamp(12px, 1.11vw, 16px); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.hero__intro {
  position: absolute; left: 7.78vw; top: max(13.2vw, 140px); width: min(560px, 40vw);
  display: flex; flex-direction: column; gap: 1.4em;
  font-size: clamp(15px, 1.32vw, 22px); line-height: 1.38;
}
.hero__scroll { position: absolute; right: var(--vid-right); top: calc(62.5vw - 70px); }

/* BOOK A SESSION — one link, letters scattered as drawn */
.bas {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  color: #ffffff; text-decoration: none;
  font-family: var(--font-hand); font-weight: 700; font-size: 20.83vw; line-height: 1;
}
.bas:focus-visible { outline: none; }
.bas__l {
  position: absolute; display: block; pointer-events: auto; white-space: nowrap;
  transition: translate .3s cubic-bezier(.2, .7, .2, 1), text-shadow .3s cubic-bezier(.2, .7, .2, 1);
}
.bas__b1      { left: 28.61vw; top: 1.67vw;  rotate: -6deg; }
.bas__o1      { left: 43.19vw; top: 5.42vw;  rotate: -3deg; }
.bas__o2      { left: 57.92vw; top: 9.17vw;  rotate: 4deg; }
.bas__k       { left: 71.94vw; top: 12.92vw; rotate: 9deg; }
.bas__a       { left: 84.31vw; top: 18.19vw; rotate: 6deg; }
.bas__session { left: -0.69vw; top: 33.19vw; rotate: -1.5deg; letter-spacing: -0.02em; }
/* Hover / keyboard focus: letters lift and cast a soft black shadow; pressing pushes them down */
.bas:hover .bas__l, .bas:focus-visible .bas__l { translate: 0 -0.7vw; text-shadow: 0 .05em .1em rgba(0, 0, 0, .35); }
.bas:active .bas__l { translate: 0 -0.15vw; text-shadow: 0 .015em .035em rgba(0, 0, 0, .3); }

.nj {
  position: relative; overflow-x: clip;
  padding: clamp(96px, 12vw, 200px) var(--gut);
  display: flex; flex-direction: column; gap: 40px;
}
.nj > * { position: relative; }
/* Star flies through this section: in from the top, across the middle, out off the right edge.
   It travels behind the text and stays on the right, clear of the heading. main.js moves it. */
.nj__star {
  position: fixed !important; left: 0; top: 0; z-index: 0;
  width: clamp(240px, 40vw, 640px); aspect-ratio: 1595 / 1631;
  transform: translate3d(140vw, -60vh, 0);
  pointer-events: none; will-change: transform;
}
.nj > :not(.nj__star) { z-index: 1; }
.nj__star svg { width: 100%; height: 100%; }
.nj__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(64px, 14vw, 240px); line-height: .88; letter-spacing: -0.045em;
  display: flex; flex-direction: column; align-items: flex-start;
}
.nj__title .gt { display: inline-block; }

.star-body { fill: var(--ink); }
.eye { fill: var(--bg); }

.play {
  padding: clamp(48px, 6vw, 96px) var(--gut);
  display: flex; flex-direction: column; gap: 24px;
}
.play__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.play__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(56px, 9vw, 150px); line-height: .9; letter-spacing: -0.04em; }
.play .body { max-width: 28ch; }
.stage {
  position: relative; height: clamp(360px, 42vw, 620px);
  display: flex; align-items: center; justify-content: center;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.stage__tl { position: absolute; left: 0; top: 12px; }
.stage__br { position: absolute; right: 0; bottom: 12px; font-variant-numeric: tabular-nums; }
.play-star {
  width: clamp(220px, 28vw, 420px); aspect-ratio: 1595 / 1631;
  margin: 0; padding: 0; border: 0; background: transparent;
  cursor: grab; touch-action: none; will-change: transform;
}
.play-star.is-dragging { cursor: grabbing; }
.play-star svg { width: 100%; height: 100%; overflow: visible; }
.blink { transform-box: fill-box; transform-origin: 50% 50%; transform: scaleY(var(--blink, 1)); }

.visit {
  padding: clamp(112px, 12vw, 200px) var(--gut) clamp(80px, 8vw, 140px);
  display: flex; flex-direction: column; gap: clamp(40px, 5vw, 72px);
}
.visit__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 9.2vw, 168px); line-height: .92; letter-spacing: -0.04em; }
.info {
  display: flex; flex-wrap: wrap; gap: 40px clamp(24px, 4vw, 64px);
  border-top: 1px solid var(--rule); padding-top: 28px;
}
.info__col { flex: 1 1 240px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.hours {
  display: grid; grid-template-columns: auto 1fr; gap: 8px 24px;
  font-size: clamp(20px, 1.9vw, 28px); font-weight: 700; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.status-line { display: flex; align-items: center; gap: 8px; }
.big-link { font-size: clamp(20px, 1.9vw, 28px); font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.mid-link { font-size: clamp(18px, 1.7vw, 24px); font-weight: 700; letter-spacing: -0.01em; }

.closing {
  position: relative; overflow: hidden;
  padding-top: clamp(80px, 9vw, 160px);
  display: flex; flex-direction: column; gap: clamp(36px, 4vw, 64px);
}
.closing > .label { margin: 0 var(--gut); align-self: flex-start; }
.closing__title {
  padding: 0 var(--gut);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(52px, 11vw, 200px); line-height: .9; letter-spacing: -0.045em;
}
.closing__title .gt { padding: 0; margin: 0; }
.closing__nav { padding: 0 var(--gut); display: flex; flex-wrap: wrap; align-items: center; gap: 20px clamp(24px, 3.4vw, 48px); }

.deposit-row {
  margin: 0 var(--gut);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 48px;
  border-top: 1px solid var(--rule); padding-top: clamp(32px, 4vw, 56px);
}
.deposit { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 36px); min-width: 0; text-decoration: none; }
.coin {
  flex-shrink: 0; width: clamp(72px, 9vw, 150px); aspect-ratio: 1; border-radius: 50%;
  background: var(--btn); color: var(--btn-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 5.6vw, 94px); line-height: 1;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.deposit:hover .coin, .deposit:focus-visible .coin { transform: rotate(-14deg) scale(1.06); }
.deposit__text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.deposit__text > * { align-self: flex-start; }
.deposit__cta { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 6.6vw, 120px); line-height: .92; letter-spacing: -0.04em; }
.policy {
  max-width: 380px; display: flex; flex-direction: column; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; line-height: 1.55; text-transform: uppercase;
}

.site-footer {
  margin: 0 var(--gut) 72px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  border-top: 1px solid var(--rule); padding-top: 20px;
}
.footer__soon { display: flex; align-items: center; gap: 8px; }

/* ---------- Phones and small tablets */
@media (max-width: 899px) {
  :root { --vid-w: min(444px, 62vw); --vid-right: 16px; }
  .site-header { padding: 12px 16px; }
  .brand { font-size: 16px; }
  .video-toggle { right: 7px; }

  .hero {
    height: auto; min-height: 100svh;
    padding: 84px 16px 32px;
    display: flex; flex-direction: column; gap: 20px;
  }
  .hero__status, .hero__intro { position: static; width: auto; }
  .hero__status { font-size: 12px; white-space: normal; flex-wrap: wrap; }
  .hero__intro { font-size: 15px; gap: 14px; max-width: 46ch; }
  .hero__scroll { display: none; }

  .bas {
    position: relative; inset: auto; display: block;
    height: 86vw; margin: 0 -16px;
    font-size: 20.5vw;
  }
  .bas__b1      { left: 5vw;    top: 2.5vw; }
  .bas__o1      { left: 21.5vw; top: 7vw; }
  .bas__o2      { left: 38.5vw; top: 11.5vw; }
  .bas__k       { left: 55.5vw; top: 16vw; }
  .bas__a       { left: 74vw;   top: 34vw; }
  .bas__session { left: 1vw;    top: 58vw; letter-spacing: -0.04em; }
  .bas:hover .bas__l, .bas:focus-visible .bas__l { translate: 0 -1.4vw; }
}
@media (max-width: 760px) {
  .hide-sm { display: none !important; }
}

/* ---------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
