/* ============================================================
   STHENICS × N-RANGE — Bali Retreat 2027
   Editorial, sun-bleached, asymmetric. One accent: deep lagoon.
   ============================================================ */

:root {
  --bone: #faf7f1;
  --bone-dim: #f1ece2;
  --sand: #e7dfd0;
  --ink: #1b1a16;
  --ink-soft: #4c4a42;
  --ink-mute: #85816f;
  --lagoon: #0e6b62;
  --lagoon-deep: #0a4f49;
  --lagoon-tint: #d8e8e2;
  --line: rgba(27, 26, 22, 0.14);
  --line-strong: rgba(27, 26, 22, 0.32);

  --font-sans: "Satoshi", -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Sentient", Georgia, serif;
  --font-display: "Clash Display", "Satoshi", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-gap: clamp(6rem, 12vw, 11rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* NB: no global scroll-behavior: smooth. It applies to every programmatic
   scroll, including the corrections ScrollTrigger makes around the pinned
   gallery, which makes scrolling feel like it fights you. Anchor links are
   smoothed in JS instead. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-sans);
  background: var(--bone);
  color: var(--ink);
  line-height: 1.5;
  font-size: 1rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--lagoon); color: var(--bone); }

/* Visible keyboard focus. The browser default ring disappears against the
   dark sections, so define one that works on both grounds. */
:focus-visible {
  outline: 3px solid var(--lagoon);
  outline-offset: 3px;
  border-radius: 2px;
}
.gallery :focus-visible,
.adventures :focus-visible,
.final :focus-visible,
.footer :focus-visible,
.room :focus-visible {
  outline-color: #9fd8c9;
}

/* ---------- grain overlay ---------- */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; }

.display {
  font-size: clamp(2.6rem, 7.2vw, 6.2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.h2 {
  font-size: clamp(2rem, 4.6vw, 3.9rem);
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--lagoon);
}
.eyebrow::before {
  content: ""; width: 2rem; height: 1px; background: var(--lagoon);
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 58ch;
}

.body-sm { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.7; max-width: 62ch; }

/* ---------- layout primitives ---------- */
.wrap { max-width: 1400px; margin: 0 auto; padding-inline: var(--gutter); }

section { padding-block: calc(var(--section-gap) / 2); }
section[id] { scroll-margin-top: 4.5rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 1rem 1.9rem;
  font-family: var(--font-sans); font-size: 0.92rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  border-radius: 999px; border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), background 0.35s var(--ease-out), color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
  will-change: transform;
}
.btn:active { transform: scale(0.98) translateY(1px); }
.btn svg { width: 1rem; height: 1rem; transition: transform 0.35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn-solid { background: var(--ink); color: var(--bone); }
.btn-solid:hover { background: var(--lagoon-deep); }

.btn-light { background: var(--bone); color: var(--ink); }
.btn-light:hover { background: var(--lagoon-tint); }

.btn-ghost { border-color: var(--line-strong); color: inherit; background: transparent; }
.btn-ghost:hover { border-color: currentColor; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  color: var(--bone);
  transition: transform 0.5s var(--ease-out), background 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
}
.nav.is-scrolled { color: var(--ink); }
.nav.menu-open { z-index: 86; color: var(--ink); }
.nav-burger.is-open { color: var(--ink); }
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav.is-scrolled {
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
/* the burger doubles as the close button, so the bar must never stay
   auto-hidden while the menu is open — declared last so it wins */
.nav.menu-open { transform: none; }

.nav-logo {
  font-weight: 900; font-size: 1rem; letter-spacing: 0.04em;
  text-transform: uppercase; white-space: nowrap;
}
.nav-logo span { color: var(--lagoon); }
.nav:not(.is-scrolled) .nav-logo span { color: #7fc7b7; }

.nav-links { display: flex; gap: 1.9rem; list-style: none; }
.nav-links a {
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em;
  position: relative; padding-block: 0.2rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { padding: 0.7rem 1.4rem; font-size: 0.8rem; }

.nav-burger {
  display: none; background: none; border: 0; cursor: pointer;
  /* buttons do not inherit colour: without this the bars fall back to the
     UA default (black in Chrome, system blue on iOS) instead of the nav colour */
  color: inherit;
  -webkit-appearance: none; appearance: none;
  -webkit-tap-highlight-color: transparent;
  width: 2.4rem; height: 2.4rem; position: relative; z-index: 86;
}
.nav-burger span {
  position: absolute; left: 0.45rem; right: 0.45rem; height: 2px;
  background: currentColor; transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
.nav-burger span:nth-child(1) { top: 0.85rem; }
.nav-burger span:nth-child(2) { top: 1.45rem; }
.nav-burger.is-open span:nth-child(1) { transform: translateY(0.3rem) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { transform: translateY(-0.3rem) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 84;
  background: var(--bone);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  transform: translateY(-102%);
  transition: transform 0.6s var(--ease-out);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a {
  font-size: clamp(1.9rem, 8vw, 2.8rem); font-weight: 800;
  text-transform: uppercase; letter-spacing: -0.02em;
  padding-block: 0.55rem; border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu .menu-meta { margin-top: 2rem; font-size: 0.85rem; color: var(--ink-mute); }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100dvh;
  display: flex; align-items: flex-end;
  color: var(--bone);
  padding: 0;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0; z-index: 1;
}
.hero-media video, .hero-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(to right, rgba(15, 14, 11, 0.78) 0%, rgba(15, 14, 11, 0.42) 42%, rgba(15, 14, 11, 0.06) 72%, transparent 100%),
    linear-gradient(to top, rgba(15, 14, 11, 0.82) 0%, rgba(15, 14, 11, 0.22) 55%, rgba(15, 14, 11, 0.42) 100%);
}
.hero-content {
  position: relative; z-index: 3;
  width: 100%;
  max-width: 1400px; margin: 0 auto;
  padding: 8rem var(--gutter) 6.5rem;
}
@media (max-width: 900px) {
  .hero-content { padding-top: 7rem; padding-bottom: 4.5rem; }
  /* phones put the copy over the brightest part of the photo, so the veil
     has to be heavier here than on desktop to keep the text readable */
  .hero-scrim {
    background: linear-gradient(to top, rgba(15, 14, 11, 0.92) 0%, rgba(15, 14, 11, 0.72) 45%, rgba(15, 14, 11, 0.62) 100%);
  }
}
@media (max-width: 560px) {
  .hero-meta { gap: 0.55rem; font-size: 0.7rem; letter-spacing: 0.16em; }
  .hero-meta-rule { display: none; }
}
/* editorial date/place line — no chips, no dots */
.hero-meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.9rem;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(250, 247, 241, 0.9);
}
.hero-meta-rule {
  width: 2.4rem; height: 1px;
  background: currentColor; opacity: 0.45;
}

/* the lockup */
.hero-lockup {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(3.1rem, 11vw, 9.5rem);
  line-height: 0.84;
  letter-spacing: -0.035em;
}
/* shrink-wrap the lockup so the × can centre against the wordmark itself */
.hero-lockup { width: fit-content; max-width: 100%; }
.hero-lockup .line { display: block; overflow: hidden; }
.hero-lockup .line > span { display: inline-block; }
.hero-lockup .line-x { text-align: center; }
.hero-lockup .lockup-x {
  font-size: 0.52em;
  color: #fff;
  letter-spacing: 0;
  line-height: 0.9;
}

.hero-sub {
  margin-top: 1.6rem;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(250, 247, 241, 0.85);
  max-width: 46ch; line-height: 1.6;
}
.hero-actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-edition {
  position: absolute; z-index: 3;
  right: var(--gutter); bottom: 2.2rem;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(250, 247, 241, 0.65);
}
@media (max-width: 900px) { .hero-edition { display: none; } }

/* ============================================================
   AFTERMOVIE BAND
   ============================================================ */
.filmband { padding-block: clamp(3rem, 7vw, 5.5rem); }
.filmband-frame {
  position: relative; display: block;
  width: 100%; padding: 0; margin: 0; border: 0;
  background: #17160f; color: inherit; font: inherit;
  border-radius: 1.4rem; overflow: hidden;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  box-shadow: 0 40px 80px -40px rgba(27, 26, 22, 0.55);
}
.filmband-frame video { width: 100%; height: 100%; object-fit: cover; }
.filmband-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: flex-end; gap: 1rem;
  padding: clamp(1.1rem, 3vw, 2rem);
  background: linear-gradient(to top, rgba(15, 14, 11, 0.8) 0%, rgba(15, 14, 11, 0.05) 45%, transparent 70%);
  transition: opacity 0.45s var(--ease-out);
}
.filmband-frame:hover .filmband-overlay { opacity: 0.9; }
.filmband-play {
  flex-shrink: 0;
  width: clamp(3.2rem, 5vw, 4.2rem); height: clamp(3.2rem, 5vw, 4.2rem);
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(250, 247, 241, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.45s var(--ease-out), background 0.45s var(--ease-out);
}
.filmband-play svg { width: 1.15rem; height: 1.15rem; color: var(--bone); margin-left: 3px; }
.filmband-frame:hover .filmband-play { transform: scale(1.08); background: rgba(250, 247, 241, 0.28); }
.filmband-frame:active .filmband-play { transform: scale(0.97); }
.filmband-text { text-align: left; padding-bottom: 0.2rem; }
.filmband-text strong {
  display: block; color: var(--bone);
  font-size: clamp(1.1rem, 2.2vw, 1.6rem); font-weight: 800;
  text-transform: uppercase; letter-spacing: -0.01em; line-height: 1;
}
.filmband-text > span {
  display: block; margin-top: 0.35rem;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: #9fd8c9;
}

/* marquee */
.marquee {
  position: relative;
  background: var(--ink); color: var(--bone);
  overflow: hidden; white-space: nowrap;
  padding-block: 0.95rem;
  border-block: 1px solid var(--ink);
}
.marquee-track { display: inline-flex; will-change: transform; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 1.6rem;
  padding-right: 1.6rem;
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.marquee-track span i {
  font-style: normal; color: var(--lagoon);
  font-size: 0.7rem;
}

/* ============================================================
   INTRO — sold out editorial split
   ============================================================ */
.intro { padding-top: var(--section-gap); }
.intro-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.intro-copy h2 { margin: 1.2rem 0 1.6rem; }
.intro-copy .lede { margin-bottom: 1.4rem; }

.intro-stats {
  margin-top: 2.8rem;
  display: grid; grid-template-columns: repeat(4, auto);
  gap: clamp(1.4rem, 3.5vw, 3.4rem);
  justify-content: start;
}
.stat .stat-num {
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 900; letter-spacing: -0.03em; line-height: 1;
}
.stat .stat-num em { font-style: normal; color: var(--lagoon); }
.stat .stat-label {
  margin-top: 0.45rem;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ink-mute);
}

.intro-visual { position: relative; padding-bottom: 3.5rem; }
.intro-visual .iv-main {
  border-radius: 1.4rem; overflow: hidden;
  aspect-ratio: 3 / 4;
}
.intro-visual .iv-main img { width: 100%; height: 100%; object-fit: cover; }
.intro-visual .iv-float {
  position: absolute; left: -18%; bottom: 0;
  width: 58%; border-radius: 1.1rem; overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 30px 60px -25px rgba(27, 26, 22, 0.45);
  border: 4px solid var(--bone);
}
.intro-visual .iv-float img { width: 100%; height: 100%; object-fit: cover; }
.intro-visual .iv-stamp {
  position: absolute; top: -2.2rem; right: -1.2rem;
  width: 7.5rem; height: 7.5rem;
  animation: spin 22s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-visual { max-width: 30rem; }
  .intro-visual .iv-float { left: auto; right: -0.5rem; }
  .intro-visual .iv-stamp { right: auto; left: -0.6rem; }
  .intro-stats { grid-template-columns: repeat(2, auto); }
}

/* ============================================================
   GALLERY — last year, horizontal drag/scroll
   ============================================================ */
.gallery { background: var(--ink); color: var(--bone); padding-block: var(--section-gap); overflow: hidden; }
.gallery .eyebrow { color: #7fc7b7; }
.gallery .eyebrow::before { background: #7fc7b7; }
.gallery-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; margin-bottom: 3rem;
}
.gallery-head p { color: rgba(250, 247, 241, 0.66); max-width: 44ch; }

.gallery-strip {
  display: flex; gap: 1.2rem;
  padding-inline: var(--gutter);
  width: max-content;
}
.g-card {
  position: relative; border-radius: 1.1rem; overflow: hidden;
  flex-shrink: 0;
  height: clamp(20rem, 55vh, 30rem);
  background: #23221d;
}
.g-card img, .g-card video { height: 100%; width: auto; object-fit: cover; }
.g-card.portrait { aspect-ratio: 3 / 4; }
.g-card.landscape { aspect-ratio: 3 / 2; }
.g-card.square { aspect-ratio: 1; }
.g-card img { width: 100%; }
.g-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2rem 1.2rem 1rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(250, 247, 241, 0.9);
  background: linear-gradient(to top, rgba(15, 14, 11, 0.75), transparent);
}
.gallery-hint {
  margin-top: 2rem; padding-inline: var(--gutter);
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(250, 247, 241, 0.45);
}

/* film card — opens the aftermovie */
.g-film {
  border: 0; padding: 0; margin: 0;
  cursor: pointer; color: inherit; font: inherit;
  background: #23221d;
  aspect-ratio: 9 / 16;
  display: block;
}
.g-film img { width: 100%; height: 100%; object-fit: cover; }
.g-film::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 14, 11, 0.88) 0%, rgba(15, 14, 11, 0.1) 34%, transparent 60%);
  transition: opacity 0.45s var(--ease-out);
}
.g-film:hover::after { opacity: 0.85; }
.g-film-meta {
  position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1.1rem; z-index: 2;
  display: flex; align-items: center; gap: 0.8rem;
  text-align: left;
}
.g-film-play {
  position: relative; flex-shrink: 0;
  width: 3.1rem; height: 3.1rem; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(250, 247, 241, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.45s var(--ease-out), background 0.45s var(--ease-out);
}
.g-film-play svg { width: 1rem; height: 1rem; color: var(--bone); margin-left: 2px; }
.g-film:hover .g-film-play { transform: scale(1.09); background: rgba(250, 247, 241, 0.28); }
.g-film:active .g-film-play { transform: scale(0.97); }
.g-film-text strong {
  display: block;
  font-size: 0.98rem; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em;
  color: var(--bone);
}
.g-film-text > span {
  display: block; margin-top: 0.2rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: #9fd8c9;
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 95;
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(10, 9, 7, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease-out), visibility 0.45s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-inner {
  position: relative;
  width: min(100%, 26rem, calc((100dvh - 5rem) * 9 / 16));
  max-height: 100%;
  aspect-ratio: 9 / 16;
}
.lightbox-inner.is-wide {
  width: min(100%, 68rem, calc((100dvh - 5rem) * 16 / 9));
  aspect-ratio: 16 / 9;
  border-radius: 1.2rem; overflow: hidden;
  background: #000;
  transform: scale(0.96) translateY(1rem);
  transition: transform 0.5s var(--ease-out);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.8);
}
.lightbox.is-open .lightbox-inner { transform: none; }
.lightbox-inner video { width: 100%; height: 100%; object-fit: contain; }
.lightbox-close {
  position: absolute; top: clamp(0.8rem, 3vw, 1.6rem); right: clamp(0.8rem, 3vw, 1.6rem);
  z-index: 2;
  width: 2.8rem; height: 2.8rem; border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--bone);
  background: rgba(250, 247, 241, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: background 0.3s ease, transform 0.3s var(--ease-out);
}
.lightbox-close:hover { background: rgba(250, 247, 241, 0.24); }
.lightbox-close:active { transform: scale(0.94); }
.lightbox-close svg { width: 1.05rem; height: 1.05rem; }

@media (max-width: 900px) {
  .gallery-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .gallery-wrapper::-webkit-scrollbar { display: none; }
}

/* ============================================================
   SKILLS — what you will learn
   ============================================================ */
.skills { padding-top: var(--section-gap); }
.skills-head { max-width: 60rem; margin-bottom: 4rem; }
.skills-head h2 { margin-top: 1.2rem; }
.skills-head .lede { margin-top: 1.5rem; }

.skills-list { border-top: 1px solid var(--line); }
.skill-row {
  display: grid;
  /* number, name, description. No trailing tag column: its width varied per
     row, which shifted the description column left and right down the list. */
  grid-template-columns: 4.5rem minmax(0, 1.1fr) minmax(0, 1.5fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.6rem);
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.35s ease;
}
.skill-row:hover { background: rgba(14, 107, 98, 0.05); }
.skill-num {
  font-size: 0.85rem; font-weight: 700; color: var(--ink-mute);
  letter-spacing: 0.1em;
}
.skill-name {
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em;
  line-height: 1;
}
.skill-desc { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.6; max-width: 46ch; }

@media (max-width: 900px) {
  .skill-row { grid-template-columns: 2.6rem 1fr; grid-template-rows: auto auto; }
  .skill-desc { grid-column: 2; }
}

/* theory band */
.theory-band {
  margin-top: 5rem;
  background: var(--lagoon-deep); color: var(--bone);
  border-radius: 1.6rem;
  padding: clamp(2.2rem, 5vw, 4rem);
  display: grid; grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 5vw, 5rem);
  position: relative; overflow: hidden;
}
.theory-band::after {
  content: "";
  position: absolute; right: -6rem; top: -6rem;
  width: 22rem; height: 22rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 247, 241, 0.08), transparent 70%);
}
.theory-band h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  text-transform: uppercase;
}
.theory-band h3 .serif-accent { color: #9fd8c9; }
.theory-list { list-style: none; display: grid; gap: 1.1rem; }
.theory-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(250, 247, 241, 0.16);
  font-size: 0.98rem; line-height: 1.55;
  color: rgba(250, 247, 241, 0.88);
}
.theory-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.theory-list svg { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; color: #9fd8c9; }
.theory-list strong { color: var(--bone); }

@media (max-width: 900px) {
  .theory-band { grid-template-columns: 1fr; }
}

/* ============================================================
   PROGRAM — the week
   ============================================================ */
.program { padding-top: var(--section-gap); }
.program-head {
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end;
  margin-bottom: 3.5rem;
}
.program-note {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute);
  border: 1px dashed var(--line-strong);
  padding: 0.7rem 1.2rem; border-radius: 999px;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .program-head { grid-template-columns: 1fr; align-items: start; }
  .program-note { white-space: normal; justify-self: start; }
}
.program-days { display: grid; gap: 0.9rem; }
.day-card {
  display: grid;
  grid-template-columns: 6rem 1fr auto;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1.5rem clamp(1.2rem, 3vw, 2.4rem);
  background: rgba(255, 255, 255, 0.5);
  transition: border-color 0.35s ease, transform 0.35s var(--ease-out);
}
.day-card:hover { border-color: var(--lagoon); transform: translateY(-2px); }
.day-idx {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--lagoon);
}
.day-idx b { display: block; font-size: 2rem; letter-spacing: -0.02em; color: var(--ink); line-height: 1.05; }
.day-body h3 { font-size: 1.15rem; font-weight: 800; text-transform: uppercase; margin-bottom: 0.35rem; }
.day-body p { font-size: 0.92rem; color: var(--ink-soft); max-width: 60ch; }
.day-chip {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute);
  writing-mode: initial; white-space: nowrap;
}
@media (max-width: 720px) {
  .day-card { grid-template-columns: 1fr; gap: 0.7rem; }
  .day-chip { display: none; }
  .day-idx b { display: inline; margin-left: 0.4rem; font-size: 1.2rem; }
}

.program-rhythm {
  margin-top: 3rem;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  font-size: 0.85rem; color: var(--ink-soft);
}
.program-rhythm .chip {
  display: inline-flex; gap: 0.5rem; align-items: center;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.55rem 1.1rem; font-weight: 600;
}
.program-rhythm .chip svg { width: 0.95rem; height: 0.95rem; color: var(--lagoon); }

/* ============================================================
   COACHES
   ============================================================ */
.coaches { background: var(--bone-dim); padding-block: var(--section-gap); }
.coaches-head { margin-bottom: 4rem; max-width: 56rem; }
.coaches-head h2 { margin-top: 1.2rem; }

.coach-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
.coach { position: relative; }
.coach:nth-child(1) { grid-column: 1 / 4; }
.coach:nth-child(2) { grid-column: 4 / 7; margin-top: 2.2rem; }
.coach:nth-child(3) { grid-column: 7 / 10; margin-top: 4.4rem; }
.coach:nth-child(4) { grid-column: 10 / 13; margin-top: 6.6rem; }

.coach-photo {
  border-radius: 1.2rem; overflow: hidden;
  aspect-ratio: 4 / 5;
  position: relative;
}
.coach-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.coach:hover .coach-photo img { transform: scale(1.045); }
.coach-photo .coach-role {
  position: absolute; left: 0.9rem; bottom: 0.9rem; right: 0.9rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--bone);
  background: rgba(15, 14, 11, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-radius: 0.7rem;
  padding: 0.6rem 0.9rem;
}
.coach h3 { margin-top: 1.3rem; font-size: 1.5rem; font-weight: 800; text-transform: uppercase; }
.coach .coach-bio { margin-top: 0.7rem; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.65; }
.coach-socials { margin-top: 0.9rem; display: flex; gap: 0.7rem; }
.coach-socials a {
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.coach-socials a:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.coach-socials svg { width: 0.95rem; height: 0.95rem; }

@media (max-width: 1080px) {
  .coach:nth-child(odd) { grid-column: 1 / 7; }
  .coach:nth-child(even) { grid-column: 7 / 13; }
  .coach:nth-child(1), .coach:nth-child(2) { margin-top: 0; }
  .coach:nth-child(3), .coach:nth-child(4) { margin-top: 1.5rem; }
}
@media (max-width: 640px) {
  .coach:nth-child(n) { grid-column: 1 / -1; margin-top: 0; max-width: 26rem; }
}

/* comfortable touch targets on phones */
@media (max-width: 900px) {
  .coach-socials { gap: 0.6rem; }
  .coach-socials a { width: 2.75rem; height: 2.75rem; }
  .coach-socials svg { width: 1.05rem; height: 1.05rem; }
  .pod-list { gap: 0.2rem 1.4rem; }
  .pod-list a { padding-block: 0.55rem; }
  .footer-links { gap: 1.4rem; row-gap: 0.2rem; }
  .footer-links a { display: inline-block; padding-block: 0.55rem; }
  .final-contacts { gap: 0.4rem 1.6rem; }
  .final-contacts a { padding-block: 0.5rem; }
  .nav-burger { width: 2.75rem; height: 2.75rem; }
}

/* featured / podcasts */
.featured {
  margin-top: 3.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.6rem;
}
.featured .featured-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-mute);
}
.pod-list {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem;
}
.pod-list a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; font-weight: 600;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.pod-list a:hover { border-bottom-color: var(--ink); }
.pod-list svg { width: 0.95rem; height: 0.95rem; color: #c8362a; flex-shrink: 0; }

/* ============================================================
   PLACE — Oasis, Canggu
   ============================================================ */
.place { padding-top: var(--section-gap); }
.place-hero {
  position: relative; border-radius: 1.6rem; overflow: hidden;
  aspect-ratio: 21 / 10;
  /* NB: a min-height here transfers through aspect-ratio into a *minimum
     width*, which blows the box past the viewport on phones. Keep it off. */
}
@media (min-width: 901px) { .place-hero { min-height: 24rem; } }
@media (max-width: 900px) { .place-hero { aspect-ratio: 4 / 3; } }
.place-hero img {
  width: 100%; height: 110%; object-fit: cover;
  will-change: transform;
}
.place-hero .place-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 14, 11, 0.68), transparent 55%);
  display: flex; align-items: flex-end;
  padding: clamp(1.6rem, 4vw, 3.2rem);
  color: var(--bone);
}
.place-overlay h2 { text-transform: uppercase; font-size: clamp(1.8rem, 4vw, 3.4rem); max-width: 16ch; }
.place-overlay .serif-accent { color: #9fd8c9; }

.place-intro {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  margin-block: 4.5rem;
}
.place-intro .lede { max-width: 50ch; }
.place-meta { display: grid; gap: 1rem; align-content: start; }
.place-meta .meta-row {
  display: grid; grid-template-columns: 9rem 1fr; gap: 1rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.place-meta .meta-row dt {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem;
  color: var(--ink-mute); padding-top: 0.2rem;
}
.place-meta .meta-row dd { color: var(--ink-soft); }

@media (max-width: 900px) {
  .place-intro { grid-template-columns: 1fr; }
}

/* facilities bento */
.fac-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 11rem;
  gap: 1rem;
}
.fac {
  position: relative; border-radius: 1.2rem; overflow: hidden;
  grid-column: span 4; grid-row: span 2;
}
.fac.wide { grid-column: span 8; }
.fac.tall { grid-row: span 3; }
.fac img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.fac:hover img { transform: scale(1.05); }
.fac .fac-label {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  color: var(--bone);
  z-index: 2;
}
.fac .fac-label h3 { font-size: 1.05rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.fac .fac-label p { font-size: 0.8rem; color: rgba(250, 247, 241, 0.82); margin-top: 0.2rem; }
.fac::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 14, 11, 0.68), transparent 45%);
}
.fac .fac-label { z-index: 2; }

@media (max-width: 900px) {
  .fac-grid { grid-auto-rows: 10rem; }
  .fac, .fac.wide { grid-column: span 12; }
  .fac.tall { grid-row: span 2; }
}

/* ============================================================
   ADVENTURES
   ============================================================ */
.adventures { background: var(--ink); color: var(--bone); padding-block: var(--section-gap); overflow: hidden; }
.adventures .eyebrow { color: #7fc7b7; }
.adventures .eyebrow::before { background: #7fc7b7; }
.adv-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.adv-head p { color: rgba(250, 247, 241, 0.66); }

.adv-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(9rem, 12.5vw, 15rem);
  gap: clamp(0.7rem, 1.1vw, 1.1rem);
  padding-inline: var(--gutter);
}
.adv {
  position: relative; border-radius: 1.2rem; overflow: hidden;
}
.adv img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.adv:hover img { transform: scale(1.05); }
.adv::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 14, 11, 0.7), transparent 50%);
}
.adv .adv-label {
  position: absolute; left: 1.1rem; bottom: 1rem; z-index: 2;
}
.adv .adv-label h3 { font-size: 1.15rem; font-weight: 800; text-transform: uppercase; }
.adv .adv-label p { font-size: 0.8rem; color: rgba(250, 247, 241, 0.8); margin-top: 0.15rem; max-width: 30ch; }
/* two tessellating bands: a tall top row, a shorter bottom row */
.adv:nth-child(1) { grid-column: 1 / 8;  grid-row: span 3; }
.adv:nth-child(2) { grid-column: 8 / 13; grid-row: span 3; }
.adv:nth-child(3) { grid-column: 1 / 4;  grid-row: span 2; }
.adv:nth-child(4) { grid-column: 4 / 8;  grid-row: span 2; }
.adv:nth-child(5) { grid-column: 8 / 13; grid-row: span 2; }

@media (max-width: 900px) {
  .adv-head { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(8rem, 26vw, 12rem); }
  .adv:nth-child(1) { grid-column: 1 / 3; grid-row: span 2; }
  .adv:nth-child(2) { grid-column: 1 / 2; grid-row: span 2; }
  .adv:nth-child(3) { grid-column: 2 / 3; grid-row: span 2; }
  .adv:nth-child(4) { grid-column: 1 / 3; grid-row: span 2; }
  .adv:nth-child(5) { grid-column: 1 / 3; grid-row: span 2; }
}

/* ============================================================
   ROOMS
   ============================================================ */
.rooms { padding-top: var(--section-gap); }
.rooms-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem;
  margin-bottom: 3rem;
}
@media (max-width: 900px) {
  .rooms-head { grid-template-columns: 1fr; align-items: start; gap: 1.2rem; margin-bottom: 2rem; }
  .rooms-head p { max-width: none; }
}
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.8rem, 1.6vw, 1.2rem);
}
.room {
  position: relative;
  grid-column: span 2;
  border-radius: 1.3rem;
  overflow: hidden;
  background: #17160f;
  display: flex; flex-direction: column;
  transition: transform 0.45s var(--ease-out);
}
/* photo on top, copy on a solid panel beneath. Overlaying text on these
   room photos was unreadable: they are bright, mostly white interiors. */
.room-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.room-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.room:hover .room-media img { transform: scale(1.05); }
.room:nth-child(1), .room:nth-child(2) { grid-column: span 3; }
.room:nth-child(1) .room-media, .room:nth-child(2) .room-media { aspect-ratio: 16 / 9; }
.room:hover { transform: translateY(-4px); }
.room-body {
  position: relative; z-index: 2;
  flex: 1;
  padding: clamp(1.1rem, 2.2vw, 1.6rem);
  display: flex; flex-direction: column; gap: 0.4rem;
  color: var(--bone);
}
.room-body h3 {
  font-size: clamp(1.05rem, 1.9vw, 1.5rem);
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em;
}
.room-body p {
  font-size: 0.86rem; line-height: 1.55;
  color: rgba(250, 247, 241, 0.92);
  max-width: 42ch;
}
.room-cap {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: #9fd8c9;
}

/* price + reserve rows. Solo and double each need their own Stripe link,
   so each occupancy option gets its own row and its own button. */
.room-foot {
  margin-top: 0.8rem;
  display: flex; flex-direction: column;
}
.room-earlybird {
  align-self: flex-start;
  margin-top: 0.15rem;
  padding: 0.34rem 0.62rem;
  border-radius: 0.42rem;
  background: #9fd8c9;
  color: #0c0b09;
  font-size: 0.63rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  white-space: nowrap;
}
.room-opt {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.6rem 1rem;
  padding-top: 0.7rem;
  margin-top: 0.7rem;
  border-top: 1px solid rgba(250, 247, 241, 0.28);
}
.room-price {
  font-size: 0.85rem;
  color: rgba(250, 247, 241, 0.88);
  letter-spacing: 0.01em;
}
.room-price b {
  font-size: 1.15rem; font-weight: 800;
  color: var(--bone); letter-spacing: -0.02em;
}
.room-price i { font-style: normal; opacity: 0.5; padding-inline: 0.15rem; }
.room-book {
  padding: 0.7rem 1.35rem;
  font-size: 0.78rem;
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .room-opt { justify-content: flex-start; gap: 0.5rem; }
  .room-book { width: 100%; justify-content: center; }
}
/* the tag is a fixed string, so on very narrow phones let it breathe and
   wrap rather than being clipped by the card */
@media (max-width: 420px) {
  .room-earlybird {
    white-space: normal;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.55rem;
  }
}

.rooms-confirm {
  width: 100%;
  color: var(--lagoon-deep) !important;
}

@media (max-width: 900px) {
  .rooms-grid { grid-template-columns: repeat(2, 1fr); }
  .room, .room:nth-child(1), .room:nth-child(2) { grid-column: span 2; }
  .room:nth-child(1) .room-media, .room:nth-child(2) .room-media { aspect-ratio: 4 / 3; }
}


.rooms-note {
  margin-top: 1.6rem;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1.4rem clamp(1.2rem, 3vw, 2rem);
  background: var(--lagoon-tint);
}
.rooms-note p { font-size: 0.95rem; color: var(--ink-soft); max-width: 68ch; }
.rooms-terms {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 700;
  color: var(--lagoon-deep);
  border-bottom: 1px solid rgba(10, 79, 73, 0.35);
  padding-bottom: 0.15rem;
  transition: border-color 0.3s ease;
}
.rooms-terms:hover { border-bottom-color: currentColor; }
.rooms-terms svg { width: 0.9rem; height: 0.9rem; }
.rooms-note strong { color: var(--ink); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding-top: var(--section-gap); }
.faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 6rem); }
.faq-head h2 { margin-top: 1.2rem; }
.faq-head p { margin-top: 1.4rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.4rem 0;
  font-size: 1.08rem; font-weight: 700;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-x {
  flex-shrink: 0;
  width: 2rem; height: 2rem; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  transition: transform 0.4s var(--ease-out), background 0.3s ease, color 0.3s ease;
}
.faq-item summary .faq-x svg { width: 0.85rem; height: 0.85rem; }
.faq-item[open] summary .faq-x { transform: rotate(45deg); background: var(--ink); color: var(--bone); border-color: var(--ink); }
.faq-item .faq-a { padding: 0 0 1.5rem; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.7; max-width: 58ch; }
.faq-item .faq-a a { color: var(--lagoon-deep); font-weight: 600; border-bottom: 1px solid rgba(10, 79, 73, 0.35); }
.faq-item .faq-a a:hover { border-bottom-color: currentColor; }

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

/* ============================================================
   FINAL CTA
   ============================================================ */
.final {
  margin-top: var(--section-gap);
  position: relative; overflow: hidden;
  color: var(--bone);
  padding: 0;
}
.final-bg { position: absolute; inset: 0; }
.final-bg img,
.final-bg video { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.final-scrim { position: absolute; inset: 0; background: rgba(15, 14, 11, 0.62); }
.final-inner {
  position: relative; z-index: 2;
  max-width: 1400px; margin: 0 auto;
  padding: clamp(6rem, 14vw, 11rem) var(--gutter);
  display: grid; gap: 2rem;
  justify-items: start;
}
.final h2 { max-width: 14ch; }
.final .lede { color: rgba(250, 247, 241, 0.85); }
.final-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.final-contacts {
  margin-top: 2rem;
  display: flex; flex-wrap: wrap; gap: 1.8rem;
  font-size: 0.88rem; color: rgba(250, 247, 241, 0.75);
}
.final-contacts a {
  display: inline-flex; align-items: center; gap: 0.55rem;
  border-bottom: 1px solid rgba(250, 247, 241, 0.3);
  padding-bottom: 0.2rem;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.final-contacts a:hover { color: var(--bone); border-color: var(--bone); }
.final-contacts svg { width: 1rem; height: 1rem; }

/* ============================================================
   CTA STRIP + STICKY CTA
   ============================================================ */
.cta-strip {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1.2rem 2rem;
  padding: clamp(1.3rem, 2.6vw, 1.9rem) clamp(1.3rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.5);
}
.cta-strip p { font-size: 0.98rem; color: var(--ink-soft); max-width: 58ch; }
.cta-strip strong { color: var(--ink); }

.sticky-cta {
  position: fixed; z-index: 70;
  right: var(--gutter); bottom: 1.6rem;
  opacity: 0; visibility: hidden;
  transform: translateY(0.9rem);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), visibility 0.4s;
}
.sticky-cta.is-visible { opacity: 1; visibility: visible; transform: none; }
body.menu-is-open .sticky-cta { opacity: 0; visibility: hidden; }
.sticky-cta .btn {
  box-shadow: 0 14px 30px -12px rgba(27, 26, 22, 0.55);
  padding: 0.85rem 1.5rem; font-size: 0.85rem;
}
@media (max-width: 640px) {
  .sticky-cta { left: var(--gutter); right: var(--gutter); bottom: 1rem; }
  .sticky-cta .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   LEGAL / TERMS PAGE
   ============================================================ */
.legal { padding-top: 9rem; padding-bottom: 5rem; max-width: 60rem; }
.legal-head { margin-bottom: 3.5rem; }
.legal-head h1 { margin: 1.1rem 0 1.5rem; }
.legal-updated {
  margin-top: 1.2rem;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute);
}
.legal-block {
  padding-block: 1.9rem;
  border-top: 1px solid var(--line);
}
.legal-block h2 {
  font-size: 1.05rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.02em;
  margin-bottom: 0.9rem;
}
.legal-block p {
  font-size: 0.95rem; color: var(--ink-soft);
  line-height: 1.75; max-width: 68ch;
}
.legal-block p + p { margin-top: 0.9rem; }
.legal-block strong { color: var(--ink); }
.legal-block a { border-bottom: 1px solid var(--line-strong); }
.legal-block a:hover { border-bottom-color: currentColor; }

.legal-table {
  margin: 1.3rem 0;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  overflow: hidden;
}
.legal-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.legal-row:first-child { border-top: 0; }
.legal-row--head {
  background: rgba(14, 107, 98, 0.07);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink);
}
.legal-row span:first-child { color: var(--ink); font-weight: 600; }
.legal-row--head span:first-child { font-weight: 700; }

/* The payment schedule carries a sentence in its last column, so it needs a
   wider final track than the fee table. Desktop only: below 640px .legal-row
   stacks to one column and this must not outrank it. */
@media (min-width: 641px) {
  .legal-table--pay .legal-row { grid-template-columns: 1.15fr 0.6fr 2.25fr; }
}

@media (max-width: 640px) {
  /* The last column of the payment table is a sentence, not a short value, so
     the shared flex row would break it into pieces. Stack it: label, then text. */
  .legal-table--pay .legal-row span:last-child { display: block; }
  .legal-table--pay .legal-row span:last-child::before {
    display: block; margin-bottom: 0.25rem;
  }
}

.legal-cta { margin-top: 3rem; }

@media (max-width: 640px) {
  .legal { padding-top: 7rem; }
  .legal-row { grid-template-columns: 1fr; gap: 0.3rem; padding-block: 1.05rem; }
  .legal-row--head { display: none; }
  /* the column header is gone, so each cell carries its own label */
  .legal-row span:not(:first-child) {
    display: flex; justify-content: space-between; gap: 1rem;
    font-size: 0.88rem;
  }
  .legal-row span:not(:first-child)::before {
    content: attr(data-label);
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--ink-mute);
    padding-top: 0.15rem;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: rgba(250, 247, 241, 0.7); }
.footer-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 3.2rem var(--gutter);
  display: flex; flex-wrap: wrap; gap: 1.5rem 3rem;
  align-items: center; justify-content: space-between;
  font-size: 0.85rem;
}
.footer-logo { font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; color: var(--bone); }
.footer-logo span { color: #7fc7b7; }
.footer-links { display: flex; gap: 1.6rem; }
.footer-links a:hover { color: var(--bone); }

/* ============================================================
   REVEAL STATES (JS-driven)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(2.2rem); }
.no-js .reveal, .reveal.is-in { opacity: 1; transform: none; }
