/* ============================================================
   JST MVE shared layer (v2 + v3)
   Fonts, tokens, reset and the funnel pieces both versions use:
   buttons, video tiles, FAQ, lead form, booking calendar.
   Each version sets its own colours through the --bg/--fg vars.
   ============================================================ */

/* Brand face. Drop the licensed Agrandir Grand Black webfont at this
   path and it takes over everywhere; until then the rule 404s and the
   Archivo Expanded stand-in below is used. */
@font-face {
  font-family: 'Agrandir Grand';
  src: url('fonts/AgrandirGrand-Black.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo Expanded';
  src: url('fonts/ArchivoVariable.woff2') format('woff2-variations');
  font-weight: 900;
  font-stretch: 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('fonts/ArchivoVariable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}
@font-face { font-family: 'Space Mono'; src: url('fonts/SpaceMono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('fonts/SpaceMono-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --ink: #0a0a0b;
  --jet: #141416;
  --white: #ffffff;
  --paper: #f3f3f1;
  --display: 'Agrandir Grand', 'Archivo Expanded', 'Arial Black', sans-serif;
  --body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Space Mono', 'Courier New', monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --radius: 0px;
  /* themed per version / per section */
  --bg: var(--white);
  --fg: var(--ink);
  --muted: #5d5d64;
  --line: rgba(10, 10, 11, .14);
  --card: var(--paper);
}
.dark {
  --bg: var(--ink);
  --fg: var(--white);
  --muted: #9a9aa2;
  --line: rgba(255, 255, 255, .16);
  --card: var(--jet);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: clamp(16px, 1.05vw, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--fg); color: var(--bg); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
section { background: var(--bg); color: var(--fg); }

/* ---------- type ---------- */
.display, h1, h2, .h2, .h3 {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  line-height: .98;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(38px, 6.4vw, 92px); }
h2, .h2 { font-size: clamp(30px, 4.4vw, 60px); }
h3, .h3 { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.15; }
h3 { font-family: var(--display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ''; width: 9px; height: 9px; border: 2px solid currentColor; flex: none; }
.lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; max-width: 38em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 26px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 2px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
  text-align: center;
  max-width: 100%;
}
.btn:hover { background: transparent; color: var(--fg); }
.btn:active { transform: scale(.98); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--fg); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- reveal (the only scroll motion both versions share) ---------- */
[data-rv] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
[data-rv].in { opacity: 1; transform: none; }

/* ---------- video tile: poster, tap to play with sound ---------- */
.tile {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--jet);
  color: var(--white);
  width: 100%;
}
.tile video, .tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.72));
  pointer-events: none;
  transition: opacity .3s;
}
.tile.playing::after { opacity: 0; }
.tile-cap { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; display: flex; justify-content: space-between; align-items: end; gap: 10px; transition: opacity .3s; }
.tile.playing .tile-cap { opacity: 0; }
.tile-cap b { font-family: var(--display); font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: 17px; line-height: 1.1; }
.tile-cap span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.play {
  position: absolute; z-index: 2;
  top: 50%; left: 50%;
  width: 64px; height: 64px;
  translate: -50% -50%;
  border: 2px solid #fff;
  display: grid; place-items: center;
  transition: transform .35s var(--ease), opacity .3s, background .3s;
  backdrop-filter: blur(4px);
  background: rgba(0,0,0,.18);
}
.play::before { content: ''; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.tile:hover .play { transform: scale(1.08); background: rgba(0,0,0,.35); }
.tile.playing .play { opacity: 0; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0;
  font-weight: 600;
  font-size: clamp(16px, 1.3vw, 19px);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 12px; height: 12px; border: 2px solid currentColor; flex: none; transition: transform .3s var(--ease), background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: currentColor; }
.faq details p { padding: 0 0 24px; max-width: 44em; color: var(--muted); }

/* ---------- lead form ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  font: inherit;
  color: var(--fg);
  background: transparent;
  border: 2px solid var(--line);
  border-radius: 0;
  transition: border-color .2s;
  -webkit-appearance: none;
  appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { color: #000; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--fg); }
.field.bad input { border-color: #d33; }
.form .btn { grid-column: 1 / -1; width: 100%; }
.form-note { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.form-note a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .form { grid-template-columns: minmax(0, 1fr); } }

.sent { display: none; text-align: center; padding: 40px 0; }
.sent.on { display: block; animation: rise .6s var(--ease); }
.sent .h2 { margin: 14px 0 12px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- booking calendar ---------- */
.cal { border: 2px solid var(--line); padding: clamp(18px, 3vw, 32px); background: var(--bg); }
.cal-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.cal-head .dim { color: var(--muted); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-day {
  aspect-ratio: 1;
  border: 2px solid var(--line);
  display: grid; place-content: center; text-align: center; gap: 2px;
  transition: border-color .2s, background .2s, color .2s;
}
.cal-day:not([disabled]):hover { border-color: var(--fg); }
.cal-day[disabled] { opacity: .3; cursor: not-allowed; }
.cal-day.act { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.cal-day .n { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.cal-day .d { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: clamp(15px, 2vw, 22px); line-height: 1; }
.cal-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.cal-slot { min-height: 46px; padding: 0 16px; border: 2px solid var(--line); font-family: var(--mono); font-size: 14px; transition: border-color .2s, background .2s, color .2s; }
.cal-slot:hover { border-color: var(--fg); }
.cal-slot.act { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.cal-times { margin-top: 24px; }
.cal .btn { width: 100%; margin-top: 24px; }
.cal-done { text-align: center; padding: 20px 0; }
.stamp { display: inline-block; border: 2px solid currentColor; padding: 8px 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 420px) { .cal-grid { gap: 4px; } .cal-day .n { font-size: 9px; } }

/* ---------- skip link ---------- */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 14px; }
.skip:focus { left: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-rv] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
