/* ==========================================================================
   FitLab — boutique fitness studio, Tarxien
   Colours come from the FitLab logo (navy #213b76, gold #eaa92b) and live in :root;
   every accent on the site (buttons, highlights, the intro's liquid) follows them.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL — see assets/fonts/) ----------
   latin-ext covers Maltese letters (ċ ġ ħ ż) and only downloads when used. */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: italic; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-wdth-italic.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url("../fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  /* Deep navy surfaces, built on the logo's navy (#213b76) */
  --ink: #0b1431;
  --ink-2: #111c3f;
  --ink-3: #18264f;
  --ink-4: #23335f;
  --paper: #f6f3ec;
  --paper-2: #e7e1d4;
  --text: #f5f2ea;
  --muted: #9ea8c3;
  --line: color-mix(in srgb, var(--text) 10%, transparent);
  --line-strong: color-mix(in srgb, var(--text) 20%, transparent);

  /* ── Brand palette, sampled from the FitLab logo ────────────────────
     --logo-navy  the kettlebell and "FIT"
     --brand      the gold liquid and "LAB": buttons, highlights, intro liquid
     --on-brand   text drawn on top of gold
     --brand-2    a brighter take on the logo navy, for glows on dark navy */
  --logo-navy: #213b76;
  --brand: #eaa92b;
  --on-brand: #0b1431;
  --brand-2: #4d6fd6;
  --brand-hover: color-mix(in srgb, var(--brand) 78%, #fff);

  /* Class colours in the timetable and class cards */
  --burn: #ff7a59;
  --hype: var(--brand);
  --group: #7cc4ff;
  --pt: #b9a7ff;

  /* Intro timing: the page starts to show at this point (see .intro) */
  --intro-reveal-at: 2.75s;

  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 11vw, 140px);
  --header-h: 68px;
  /* Hero photo (a FitLab class, darkened by the overlay in .hero__bg) */
  --hero-photo: url("../img/photos/hero.jpg");
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--brand); color: var(--on-brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 0.78em; letter-spacing: 0.04em; text-transform: uppercase; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- Draft banner (remove .is-draft from <html> to hide) ---------- */
.draft-banner { display: none; }
.is-draft .draft-banner {
  display: block;
  position: relative; z-index: 60;
  background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--brand) 8%, var(--ink)) 0 12px, color-mix(in srgb, var(--brand) 13%, var(--ink)) 12px 24px);
  color: var(--brand);
  text-align: center;
  font-size: 13px;
  padding: 8px var(--gutter);
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
}
.draft-banner .mono { font-weight: 700; margin-right: 8px; padding: 2px 6px; border: 1px solid currentColor; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px;
  border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--brand { background: var(--brand); color: var(--on-brand); }
.btn--brand:hover { background: var(--brand-hover); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--outline { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-open {
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand__mark { width: 28px; height: 38px; flex-shrink: 0; }
.brand__word { font-weight: 800; font-stretch: 100%; font-size: 23px; letter-spacing: 0.05em; line-height: 1; }
.brand__word b { font-weight: 300; color: var(--brand); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  padding: 8px 12px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}
.nav a:not(.btn):hover, .nav a.is-active { color: var(--text); background: var(--ink-3); }
.nav__cta { margin-left: 10px; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease); }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  /* Absolute to the sticky header (a fixed child would be trapped by the header's backdrop-filter). */
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 32px;
    background: var(--ink);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .site-header.is-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) {
    padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line);
    font-size: 28px; font-weight: 800; font-stretch: 80%; color: var(--text); text-transform: uppercase;
  }
  .nav a:not(.btn):hover { background: none; color: var(--brand); }
  .nav__cta { margin: 24px 0 0; min-height: 56px; font-size: 17px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Shared section scaffolding ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section--panel { background: var(--ink-2); border-block: 1px solid var(--line); }
.section--light { background: var(--paper); color: var(--ink); }

.section-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 860px; }
.section-head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.section-head--split .section-head__lede { max-width: 380px; }
.section-head__index { color: var(--brand); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.section-head__index::after { content: ""; width: 48px; height: 1px; background: currentColor; opacity: 0.6; }
.section--light .section-head__index { color: var(--ink); }
.section-head__title {
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 0.92;
  font-weight: 850;
  font-stretch: 72%;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.section-head__lede { margin-top: 22px; font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 640px; }
.section-head--split .section-head__lede { margin-top: 0; }
.section--light .section-head__lede { color: #525b78; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column;
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 30%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, color-mix(in srgb, var(--brand-2) 10%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--ink) 35%, transparent) 0%, color-mix(in srgb, var(--ink) 75%, transparent) 70%, var(--ink) 100%),
    var(--hero-photo, none) var(--hero-pos, center) / cover no-repeat,
    var(--ink);
}
.hero__bg::after {
  /* lab-notebook grid */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%);
  opacity: 0.7;
}
.hero__inner {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  align-items: center;
  gap: 48px;
  padding-block: clamp(40px, 6vw, 72px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
  padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 50%, transparent);
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 12px var(--brand); }
.hero__title {
  margin-top: 28px;
  font-size: clamp(80px, 21vw, 184px);
  line-height: 0.84;
  font-weight: 900;
  font-stretch: 66%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.hero__title .hl { color: var(--brand); font-style: italic; display: inline-block; padding-right: 0.06em; }
.hero__lede { margin-top: 28px; max-width: 540px; font-size: clamp(18px, 1.8vw, 21px); color: #cbd0df; }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.readout {
  position: relative;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink-3) 90%, transparent), color-mix(in srgb, var(--ink-2) 92%, transparent));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.readout::before {
  content: ""; position: absolute; top: -1px; left: 22px; right: 22px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}
.readout__head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); padding-bottom: 16px; border-bottom: 1px dashed var(--line-strong); }
.readout__pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); position: relative; }
.readout__pulse::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--brand);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.readout__label { margin-top: 18px; color: var(--muted); }
.readout__class {
  margin-top: 6px;
  font-size: clamp(34px, 3.4vw, 46px); line-height: 1; font-weight: 900; font-stretch: 70%; text-transform: uppercase;
}
.readout__class[data-type="BURN"] { color: var(--burn); }
.readout__class[data-type="HYPE"] { color: var(--hype); }
.readout__class[data-type="GROUP"] { color: var(--group); }
.readout__meta { margin-top: 10px; color: var(--text); font-size: 13px; line-height: 1.5; }
.readout__link { display: inline-block; margin-top: 14px; font-size: 12px; color: var(--brand); }
.readout__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.readout__stats { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px dashed var(--line-strong); padding-top: 16px; }
.readout__stats div + div { border-left: 1px solid var(--line); padding-left: 12px; }
.readout__stats dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.readout__stats dd { font-size: 28px; font-weight: 850; font-stretch: 75%; line-height: 1.2; }

.marquee {
  background: var(--brand); color: var(--on-brand);
  overflow: hidden; white-space: nowrap;
  border-block: 1px solid var(--brand);
  transform: rotate(-1.2deg) scale(1.02);
  margin-bottom: 18px;
}
.marquee__track { display: inline-flex; align-items: center; gap: 28px; padding: 14px 0; animation: marquee 38s linear infinite; }
.marquee span { font-weight: 900; font-stretch: 72%; font-size: 22px; text-transform: uppercase; letter-spacing: 0.02em; }
.marquee i { font-style: normal; font-size: 14px; opacity: 0.6; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 760px) {
  /* portrait crop for phones, framed on the class rather than the ceiling */
  :root { --hero-photo: url("../img/photos/hero-mobile.jpg"); --hero-pos: center 72%; }
}
@media (max-width: 560px) {
  .eyebrow { font-size: 10.5px; letter-spacing: 0.03em; padding: 7px 12px; }
  .is-draft .draft-banner { font-size: 12px; }
}
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .readout { max-width: 460px; }
}

/* ---------- About / pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pillar {
  background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px 28px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.pillar:hover { border-color: color-mix(in srgb, var(--brand) 40%, transparent); transform: translateY(-3px); }
.pillar__num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--ink-4); color: var(--brand); font-weight: 700; font-size: 14px;
}
.pillar h3 { margin-top: 22px; font-size: 26px; line-height: 1.05; font-weight: 850; font-stretch: 78%; text-transform: uppercase; }
.pillar p { margin-top: 12px; color: var(--muted); font-size: 16px; }

.spec {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.spec__row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); margin-right: 32px; }
.spec__row .mono { color: var(--brand); flex-shrink: 0; }
.spec__row span:last-child { text-align: right; color: #d5d9e6; font-size: 15px; }

@media (max-width: 1080px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pillars { grid-template-columns: 1fr; } .spec { grid-template-columns: 1fr; } .spec__row { margin-right: 0; } }

/* ---------- Schedule ---------- */
.schedule { background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(14px, 2.4vw, 28px); }
.schedule__days {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px;
}
.day-tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 6px; border-radius: 12px;
  background: var(--ink-3); border: 1px solid transparent;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.day-tab:hover { border-color: var(--line-strong); }
.day-tab__name { font-weight: 850; font-stretch: 75%; font-size: 20px; text-transform: uppercase; line-height: 1.1; }
.day-tab__count { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.day-tab__today { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); min-height: 14px; }
.day-tab[aria-selected="true"] { background: var(--brand); color: var(--on-brand); }
.day-tab[aria-selected="true"] .day-tab__count, .day-tab[aria-selected="true"] .day-tab__today { color: var(--on-brand); }

.schedule__filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-size: 14px; font-weight: 600; color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.chip-btn:hover { color: var(--text); }
.chip-btn[aria-pressed="true"] { color: var(--text); border-color: var(--text); background: var(--ink-3); }
.chip-btn .swatch { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }

.swatch--BURN { background: var(--burn) !important; }
.swatch--HYPE { background: var(--hype) !important; }
.swatch--GROUP { background: var(--group) !important; }

.slot {
  display: grid;
  grid-template-columns: 110px minmax(0, 1.3fr) minmax(0, 1fr) auto;
  align-items: center; gap: 18px;
  padding: 18px 8px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background-color 0.2s;
}
.slot:last-child { border-bottom: 0; }
.slot:hover { background: color-mix(in srgb, var(--text) 2%, transparent); }
.slot__time { font-family: var(--f-mono); font-size: 20px; font-weight: 700; letter-spacing: 0.02em; }
.slot__time small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 0.04em; }
.slot__class { display: flex; align-items: center; gap: 12px; min-width: 0; }
.slot__bar { width: 4px; align-self: stretch; min-height: 38px; border-radius: 4px; background: var(--muted); flex-shrink: 0; }
.slot__name { font-weight: 900; font-stretch: 72%; font-size: 26px; text-transform: uppercase; line-height: 1; }
.slot__desc { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; font-family: var(--f-mono); letter-spacing: 0.03em; text-transform: uppercase; }
.slot__coach { color: #d5d9e6; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.slot__avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; background: var(--ink-4); font-weight: 800; font-size: 13px; color: var(--text);
}
.slot__badge {
  font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 5px; margin-left: 4px; vertical-align: middle;
  background: var(--brand); color: var(--on-brand);
}
.slot__badge--now { background: var(--burn); color: #fff; }
.slot--past { opacity: 0.38; }
.slot--past .btn { pointer-events: none; }
.slot--next { background: color-mix(in srgb, var(--brand) 4%, transparent); }

.slot[data-type="BURN"] .slot__bar { background: var(--burn); }
.slot[data-type="HYPE"] .slot__bar { background: var(--hype); }
.slot[data-type="GROUP"] .slot__bar { background: var(--group); }

.schedule__empty { padding: 48px 12px; text-align: center; color: var(--muted); }
.schedule__empty strong { display: block; color: var(--text); font-size: 30px; font-weight: 900; font-stretch: 72%; text-transform: uppercase; margin-bottom: 6px; }
.schedule__empty a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 760px) {
  .schedule__days { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -4px; padding: 2px 4px 6px; scrollbar-width: none; }
  .schedule__days::-webkit-scrollbar { display: none; }
  .day-tab { flex: 0 0 72px; scroll-snap-align: start; }
  .slot { grid-template-columns: 78px minmax(0, 1fr) auto; gap: 12px; padding: 16px 2px; }
  .slot__time { font-size: 17px; }
  .slot__coach { grid-column: 2; grid-row: 2; font-size: 14px; margin-top: -4px; }
  .slot__avatar { width: 24px; height: 24px; font-size: 11px; }
  .slot .btn { grid-column: 3; grid-row: 1 / span 2; }
  .slot__name { font-size: 22px; }
}

/* ---------- Classes ---------- */
.classes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.class-card {
  --c: var(--brand);
  --pad: clamp(24px, 3vw, 36px);
  position: relative; overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--pad);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.class-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); z-index: 2; }
.class-card__photo { margin: calc(var(--pad) * -1) calc(var(--pad) * -1) var(--pad); aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-3); }
.class-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.class-card:hover .class-card__photo img { transform: scale(1.04); }
.class-card::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, var(--c), transparent 70%); opacity: 0.12;
  transition: opacity 0.4s;
}
.class-card:hover { border-color: color-mix(in srgb, var(--c) 45%, transparent); transform: translateY(-3px); }
.class-card:hover::after { opacity: 0.22; }
.class-card--burn { --c: var(--burn); }
.class-card--hype { --c: var(--hype); }
.class-card--group { --c: var(--group); }
.class-card--pt { --c: var(--pt); }
.class-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--c); }
.class-card__name {
  margin-top: 28px;
  font-size: clamp(54px, 7vw, 92px); line-height: 0.86; font-weight: 900; font-stretch: 66%; text-transform: uppercase;
}
.class-card p { margin-top: 18px; color: #c5cadb; max-width: 480px; position: relative; }
.class-card__facts { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.class-card__facts li { padding: 6px 10px; border-radius: 6px; background: var(--ink-4); color: var(--text); font-size: 11.5px; }
.meter { display: inline-flex; gap: 4px; }
.meter i { width: 14px; height: 6px; border-radius: 2px; background: var(--ink-4); }
.meter i.on { background: var(--c); }

@media (max-width: 760px) { .classes { grid-template-columns: 1fr; } }

/* ---------- Social reels ---------- */
.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.reels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.reel {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; padding: 16px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ink) 0%, transparent) 45%, color-mix(in srgb, var(--ink) 90%, transparent) 100%),
    radial-gradient(90% 60% at 30% 20%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
    repeating-linear-gradient(135deg, var(--ink-3) 0 2px, transparent 2px 14px),
    var(--ink-2);
  border: 1px solid var(--line);
  isolation: isolate;
  transition: transform 0.35s var(--ease), border-color 0.3s;
}
.reel--alt {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ink) 0%, transparent) 45%, color-mix(in srgb, var(--ink) 90%, transparent) 100%),
    radial-gradient(90% 60% at 70% 30%, color-mix(in srgb, var(--brand-2) 24%, transparent), transparent 70%),
    repeating-linear-gradient(45deg, var(--ink-3) 0 2px, transparent 2px 14px),
    var(--ink-2);
}
.reel:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.reel__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.6s var(--ease); }
.reel--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 35%, transparent) 0%, transparent 30%, transparent 50%, color-mix(in srgb, var(--ink) 92%, transparent) 100%); }
.reel--photo:hover .reel__img { transform: scale(1.05); }
.reel--photo .reel__play { visibility: hidden; } /* photos, not videos: no play button */
.reel.has-video::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 50%, color-mix(in srgb, var(--ink) 85%, transparent)); }
.reel__tag { align-self: flex-start; padding: 5px 9px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 70%, transparent); border: 1px solid var(--line-strong); font-size: 11px; }
.reel__play {
  align-self: center; width: 64px; height: 64px; border-radius: 50%;
  background: color-mix(in srgb, var(--text) 12%, transparent); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: grid; place-items: center; transition: background-color 0.3s, transform 0.3s var(--ease);
}
.reel__play::before { content: ""; margin-left: 4px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--text); }
.reel:hover .reel__play { background: var(--brand); transform: scale(1.06); }
.reel:hover .reel__play::before { border-left-color: var(--on-brand); }
.reel.has-video .reel__play { opacity: 0; }
.reel__caption { font-weight: 800; font-stretch: 80%; font-size: 21px; line-height: 1.1; text-transform: uppercase; }

@media (max-width: 960px) {
  .reels { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .reels::-webkit-scrollbar { display: none; }
  .reel { flex: 0 0 min(62vw, 260px); scroll-snap-align: start; }
}

/* ---------- Coaches ---------- */
.coaches { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.coach { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.coach__photo {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 40%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--ink-3);
}
.coach__photo::before {
  content: attr(data-initials);
  position: absolute; inset: 0; display: grid; place-items: center;
  font-weight: 900; font-stretch: 62%; font-size: clamp(110px, 12vw, 160px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--brand) 55%, transparent);
}
.coach__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.coach__body { padding: 24px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.coach__role { color: var(--brand); }
.coach__name { margin-top: 8px; font-size: 38px; line-height: 0.95; font-weight: 900; font-stretch: 70%; text-transform: uppercase; }
.coach__body > p:not(.coach__role) { margin-top: 14px; color: #c5cadb; font-size: 16px; }
.chips { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 12.5px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: #d5d9e6; }

@media (max-width: 960px) { .coaches { grid-template-columns: 1fr; max-width: 560px; } .coach { flex-direction: row; } .coach__photo { flex: 0 0 38%; aspect-ratio: auto; min-height: 240px; } }
@media (max-width: 560px) { .coach { flex-direction: column; } .coach__photo { flex: none; aspect-ratio: 4 / 3.4; min-height: 0; } }

/* ---------- How to join ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; position: relative; }
.step { position: relative; padding: 26px 22px 28px; border-radius: var(--radius); background: var(--ink); border: 1px solid var(--line); }
.step__num {
  display: inline-block; font-size: 44px; font-weight: 700; letter-spacing: -0.02em; color: transparent;
  -webkit-text-stroke: 1.2px var(--brand); line-height: 1;
}
.step:not(:last-child)::after {
  content: "→"; position: absolute; right: -14px; top: 34px; z-index: 1;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: 14px;
}
.step h3 { margin-top: 18px; font-size: 26px; line-height: 1.05; font-weight: 850; font-stretch: 78%; text-transform: uppercase; }
.step p { margin-top: 10px; color: var(--muted); font-size: 16px; }

.note {
  margin-top: 24px; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
  padding: 18px 22px; border-radius: var(--radius); border: 1px dashed color-mix(in srgb, var(--brand) 40%, transparent); background: color-mix(in srgb, var(--brand) 4%, transparent);
}
.note__label { color: var(--brand); flex-shrink: 0; }
.note p { color: #cbd0df; font-size: 15.5px; flex: 1; min-width: 240px; }
.note strong { color: var(--text); }

@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:not(:last-child)::after { display: none; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Packages (light) ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--paper-2); border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.plan:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px color-mix(in srgb, var(--ink) 35%, transparent); }
.plan__name { font-size: 26px; font-weight: 850; font-stretch: 76%; text-transform: uppercase; line-height: 1; min-height: 2em; padding-right: 88px; }
.plan:not(.plan--featured) .plan__name { padding-right: 0; }
.plan__price { margin-top: 22px; font-size: 68px; line-height: 0.9; font-weight: 900; font-stretch: 70%; display: flex; align-items: flex-start; gap: 2px; flex-wrap: wrap; }
.plan__cur { font-size: 28px; margin-top: 6px; }
.plan__from { align-self: flex-end; margin: 0 6px 6px 0; font-size: 13px; font-family: var(--f-mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: #69718c; }
.plan__per { align-self: flex-end; margin-left: 6px; margin-bottom: 6px; font-family: var(--f-mono); font-size: 13px; font-weight: 500; color: #69718c; letter-spacing: 0.02em; }
.plan__list { margin: 26px 0 28px; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan__list li { display: flex; gap: 10px; font-size: 15.5px; color: #2a3352; }
.plan__list li::before {
  content: ""; flex-shrink: 0; width: 16px; height: 16px; margin-top: 4px; background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cmask id='m'%3E%3Crect width='16' height='16' fill='white'/%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3Ccircle cx='8' cy='8' r='8' mask='url(%23m)'/%3E%3C/svg%3E") center / 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cmask id='m'%3E%3Crect width='16' height='16' fill='white'/%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3Ccircle cx='8' cy='8' r='8' mask='url(%23m)'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.plan .btn { width: 100%; }
.plan--featured { background: var(--ink); color: var(--text); border-color: var(--ink); }
.plan--featured .plan__per, .plan--featured .plan__from { color: var(--muted); }
.plan--featured .plan__list li { color: #d5d9e6; }
.plan--featured .plan__list li::before { background: var(--brand); }
.plan--featured .plan__price { color: var(--brand); }
.plan__badge { position: absolute; top: 18px; right: 18px; padding: 5px 9px; border-radius: 6px; background: var(--brand); color: var(--on-brand); font-size: 10.5px; font-weight: 700; }

@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Reviews ---------- */
.rating { display: inline-flex; align-items: center; gap: 14px; padding: 12px 18px 12px 14px; border-radius: 16px; border: 1px solid var(--line-strong); transition: border-color 0.2s; }
.rating:hover { border-color: var(--brand); }
.rating__score { font-size: 44px; font-weight: 900; font-stretch: 70%; color: var(--brand); line-height: 1; }
.rating__text { color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.review {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 78px 26px 24px; border-radius: var(--radius-lg); background: var(--ink-2); border: 1px solid var(--line);
  position: relative;
}
.review::before { content: "“"; position: absolute; top: 14px; left: 22px; font-size: 96px; line-height: 1; font-weight: 900; font-stretch: 70%; color: var(--brand); }
.review blockquote { font-size: 19px; line-height: 1.5; color: #e6e8f0; position: relative; }
.review figcaption { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.35; }
.review figcaption .mono { color: var(--muted); font-size: 11px; }
.review__avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-weight: 900; flex-shrink: 0; }

@media (max-width: 960px) { .reviews { grid-template-columns: 1fr; max-width: 640px; } }

/* ---------- Location ---------- */
.location { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.location__map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); min-height: 420px; background: var(--ink-3); }
.location__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(1) invert(0.9) sepia(0.35) hue-rotate(180deg) saturate(1.8) brightness(0.9) contrast(0.95); }
.location__card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 28px; }
.location__label { color: var(--brand); margin-bottom: 10px; }
.location__address { font-size: 34px; line-height: 1; font-weight: 900; font-stretch: 72%; text-transform: uppercase; }
.hours { width: 100%; border-collapse: collapse; font-size: 16px; }
.hours th, .hours td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; }
.hours td { text-align: right; font-family: var(--f-mono); font-size: 14px; color: #d5d9e6; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--brand); }
.hours tr.is-today th::after { content: "Today"; margin-left: 10px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: var(--brand); color: var(--on-brand); vertical-align: middle; }
.location__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.location__actions .btn:first-child, .location__actions .btn:last-child { grid-column: 1 / -1; }
.location__actions .btn { font-size: 14px; padding: 0 14px; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 900px) { .location { grid-template-columns: 1fr; } .location__map, .location__map iframe { min-height: 320px; } }
@media (max-width: 420px) { .location__actions { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); padding: clamp(64px, 9vw, 110px) 0 28px; border-top: 1px solid var(--line); overflow: hidden; }
.site-footer__cta { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.site-footer__cta h2 { font-size: clamp(52px, 9vw, 128px); line-height: 0.86; font-weight: 900; font-stretch: 66%; text-transform: uppercase; max-width: 800px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 32px; padding: 48px 0; }
.site-footer__grid nav, .site-footer__grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 8px; }
.site-footer__grid a:not(.brand) { color: #c5cadb; font-size: 15px; width: fit-content; }
.site-footer__grid a:not(.brand):hover { color: var(--brand); }
.site-footer__label { color: var(--muted); margin-bottom: 6px; }
.site-footer__tag { margin-top: 16px; color: var(--muted); font-size: 15px; }
.site-footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11.5px; }

@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Floating WhatsApp (phones) ---------- */
.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  display: none; align-items: center; gap: 8px;
  min-height: 52px; padding: 0 18px 0 14px; border-radius: 999px;
  background: #25d366; color: #0b2414; font-weight: 800; font-size: 15px;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.6);
  transform: translateY(calc(100% + 40px)); opacity: 0; transition: transform 0.35s var(--ease), opacity 0.35s;
}
.fab svg { width: 24px; height: 24px; }
.fab.is-visible { transform: none; opacity: 1; }
@media (max-width: 760px) { .fab { display: inline-flex; } }

/* ---------- Intro: test tube fills, bubbles fizz out, the page bursts through ----------
   Plays once per browser tab (sessionStorage); never with reduced motion or a #section link.
   The whole sequence is CSS, so it still finishes if main.js fails to load; main.js adds
   click / Esc to skip, locks scrolling while it plays and removes the overlay afterwards. */
@property --intro-r { syntax: "<length>"; inherits: false; initial-value: 0px; }

.intro { display: none; }
.intro-playing .intro {
  --mouth-y: 34%;
  --tube-h: min(46vh, 360px);
  display: block;
  position: fixed; inset: 0; z-index: 1000;
  overflow: hidden;
  cursor: pointer;
  background:
    radial-gradient(circle at 50% var(--mouth-y), transparent calc(var(--intro-r) - 1px), var(--brand) var(--intro-r), var(--brand) calc(var(--intro-r) + min(7px, var(--intro-r) * 0.06)), transparent calc(var(--intro-r) + min(7px, var(--intro-r) * 0.06) + 1px)),
    radial-gradient(38% 34% at 50% calc(var(--mouth-y) + var(--tube-h) * 0.55), color-mix(in srgb, var(--brand) 20%, transparent), transparent 70%),
    var(--ink);
  /* the page shows through a bubble that grows from the mouth of the tube */
  -webkit-mask: radial-gradient(circle at 50% var(--mouth-y), transparent calc(var(--intro-r) - 2px), #000 var(--intro-r));
          mask: radial-gradient(circle at 50% var(--mouth-y), transparent calc(var(--intro-r) - 2px), #000 var(--intro-r));
  animation: intro-reveal 0.9s cubic-bezier(0.6, 0, 0.8, 0.2) var(--intro-reveal-at) forwards;
}
.intro-playing.intro-skipped .intro { animation: intro-skip 0.35s ease-out forwards; }
@keyframes intro-reveal {
  0% { --intro-r: 0px; }
  70% { opacity: 1; }
  100% { --intro-r: 150vmax; opacity: 0; visibility: hidden; }
}
@keyframes intro-skip { to { opacity: 0; visibility: hidden; } }

.intro::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 55% 50% at 50% 50%, #000 15%, transparent 75%);
          mask-image: radial-gradient(ellipse 55% 50% at 50% 50%, #000 15%, transparent 75%);
  opacity: 0.6;
}
.intro__stage { position: absolute; inset: 0; }

.intro__tube {
  position: absolute; left: 50%; top: var(--mouth-y);
  height: var(--tube-h); width: calc(var(--tube-h) * 120 / 290);
  translate: -50% -2%;
  overflow: visible;
  transform-origin: 50% 90%;
  animation: intro-rise 0.6s var(--ease) both, tube-shake 1.2s ease-in-out 1.3s;
}
@keyframes intro-rise { from { opacity: 0; translate: -50% 4%; } }
@keyframes tube-shake { 15% { rotate: -3deg; } 35% { rotate: 2.5deg; } 55% { rotate: -2deg; } 75% { rotate: 1.2deg; } }

.intro__glass { fill: none; stroke: var(--text); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: glass-draw 0.9s cubic-bezier(0.6, 0, 0.2, 1) 0.1s forwards; }
@keyframes glass-draw { to { stroke-dashoffset: 0; } }
.intro__lip { fill: none; stroke: var(--text); stroke-width: 7; stroke-linecap: round; transform-box: fill-box; transform-origin: center; animation: lip-in 0.35s var(--ease) 0.7s both; }
@keyframes lip-in { from { scale: 0 1; opacity: 0; } }
.intro__shine { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; opacity: 0; animation: shine-in 0.5s ease 1s forwards; }
@keyframes shine-in { to { opacity: 0.22; } }

.intro__liquid { transform: translateY(200px); animation: liquid-fill 1.05s cubic-bezier(0.3, 0.7, 0.3, 1) 0.45s forwards; }
@keyframes liquid-fill { to { transform: translateY(0); } }
.intro__wave { animation: wave-x 1.2s linear infinite; }
.intro__wave--front { fill: var(--brand); }
.intro__wave--back { fill: color-mix(in srgb, var(--brand) 50%, var(--ink)); animation-duration: 1.9s; animation-direction: reverse; }
@keyframes wave-x { to { transform: translateX(-30px); } }

.intro__inner circle { fill: #fff; opacity: 0; animation: inner-rise var(--d, 1.3s) ease-in var(--t, 1.2s) infinite; }
@keyframes inner-rise {
  0% { transform: translateY(0); opacity: 0; }
  15%, 80% { opacity: 0.7; }
  100% { transform: translateY(-164px); opacity: 0; }
}

/* bubbles escaping from the mouth of the tube */
.intro__fizz { position: absolute; left: 50%; top: var(--mouth-y); width: 0; height: 0; }
.intro__fizz i {
  position: absolute; left: 0; top: 0;
  width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--brand) 80%, #fff);
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.75) 0 13%, transparent 15%),
    color-mix(in srgb, var(--brand) 20%, transparent);
  opacity: 0;
  animation: fizz var(--dur, 1.5s) cubic-bezier(0.25, 0.6, 0.35, 1) var(--delay, 1.2s) infinite both;
}
.intro__fizz i.solid { background: var(--brand); border-color: transparent; }
@keyframes fizz {
  0% { transform: translate(var(--x), 0) scale(0.25); opacity: 0; }
  12% { opacity: 1; }
  45% { transform: translate(calc(var(--x) + var(--dx)), calc(var(--rise) * -0.5)) scale(0.85); }
  80% { opacity: 0.95; }
  100% { transform: translate(calc(var(--x) - var(--dx) * 0.5), calc(var(--rise) * -1)) scale(1.12); opacity: 0; }
}

.intro__word {
  position: absolute; left: 0; right: 0; top: calc(var(--mouth-y) + var(--tube-h) + 22px);
  text-align: center;
  font-size: min(58px, 8.5vh, 14vw); line-height: 0.9; font-weight: 800; font-stretch: 100%; letter-spacing: 0.05em;
  animation: intro-fade-up 0.7s var(--ease) 1.45s both;
}
.intro__word b { color: var(--brand); font-weight: 300; }
.intro__word small {
  display: block; margin-top: 14px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; font-stretch: 100%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  animation: intro-fade-up 0.6s var(--ease) 1.7s both;
}
@keyframes intro-fade-up { from { opacity: 0; translate: 0 14px; } }

.intro__skip {
  position: absolute; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  animation: intro-fade-up 0.4s ease 0.6s both;
  transition: color 0.2s, border-color 0.2s;
}
.intro__skip:hover { color: var(--text); border-color: var(--text); }

html.intro-lock, html.intro-lock body { overflow: hidden; }

/* hero content arrives as the intro opens up (straight away if the intro is skipped) */
.intro-playing .hero-anim { animation: hero-in 0.9s var(--ease) both; animation-delay: calc(var(--intro-reveal-at) + 0.45s + var(--i, 0) * 90ms); }
.intro-playing.intro-skipped .hero-anim { animation-name: hero-in-now; animation-delay: calc(0.05s + var(--i, 0) * 70ms); }
@keyframes hero-in { from { opacity: 0; translate: 0 36px; } }
@keyframes hero-in-now { from { opacity: 0; translate: 0 36px; } }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .intro { display: none !important; }
}
