/* =========================================================
   M Box Gili T
   ========================================================= */
:root {
  --bg: #000;
  --bg-2: #0d0d0f;
  --bg-3: #161618;
  --fg: #f5f5f7;
  --muted: #86868b;
  --line: rgba(255, 255, 255, 0.12);
  --ocean-1: #021a2b;
  --ocean-2: #0a4a6e;
  --ocean-3: #2bb3c9;
  --sunrise-1: #ff5e3a;
  --sunrise-2: #ffb347;
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.05; font-weight: 700; }
h2 { font-size: clamp(40px, 7vw, 88px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; }
p { margin: 0; }
.muted { color: var(--muted); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { margin-bottom: clamp(32px, 5vw, 60px); }
.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px; border: 0;
  background: var(--fg); color: #000; font: inherit; font-weight: 600; font-size: 16px;
  cursor: pointer; transition: transform .3s var(--ease), background .3s;
}
.btn:hover { transform: scale(1.04); }
.btn--small { padding: 7px 16px; font-size: 13px; }
.btn--light { background: rgba(255,255,255,.92); }
.link { color: #2997ff; font-weight: 500; }
.link:hover { text-decoration: underline; }

/* ---------- Media slots (placeholder until real photos/videos land) ---------- */
.media {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(43,179,201,.35), transparent 60%),
    radial-gradient(100% 90% at 90% 100%, rgba(255,94,58,.28), transparent 60%),
    var(--bg-3);
}
.media:empty::after {
  content: attr(data-label);
  position: absolute; left: 16px; bottom: 14px;
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.media > img, .media > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  height: 52px; padding: 0 var(--gutter);
  background: rgba(0,0,0,.0);
  transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(10,10,12,.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-color: var(--line);
}
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; gap: 28px; margin: 0 auto; font-size: 13px; }
.nav__links a { color: rgba(245,245,247,.8); transition: color .2s; }
.nav__links a:hover { color: #fff; }
.nav__burger { display: none; }
.mobile-menu { display: none; }

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav .btn--small { margin-left: auto; }
  .nav__burger {
    display: grid; gap: 6px; width: 28px; height: 28px; place-content: center;
    background: none; border: 0; padding: 0; cursor: pointer;
  }
  .nav__burger span { display: block; width: 18px; height: 1.5px; background: #fff; transition: transform .3s var(--ease); }
  .nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .mobile-menu {
    display: flex; flex-direction: column; gap: 8px;
    position: fixed; inset: 52px 0 0 0; z-index: 49;
    padding: 32px var(--gutter);
    background: rgba(0,0,0,.94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    opacity: 0; pointer-events: none; transition: opacity .35s;
  }
  .mobile-menu a { font-size: 30px; font-weight: 600; letter-spacing: -.02em; padding: 6px 0; }
  .mobile-menu.is-open { opacity: 1; pointer-events: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden;
  display: grid; place-items: center; text-align: center;
}
.hero__media { position: absolute; inset: -6% 0; will-change: transform; }
.hero__media > img { transform: scale(1.12); transition: transform 2.8s var(--ease); }
.is-loaded .hero__media > img { transform: scale(1); }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.25) 40%, rgba(0,0,0,.75)); }
.hero__content { position: relative; z-index: 1; padding: 0 var(--gutter); will-change: transform, opacity; }
.hero__logo { width: clamp(140px, 17vw, 215px); margin: 0 auto 26px; }
.hero__content .eyebrow { color: rgba(255,255,255,.75); }
.hero h1 { font-size: clamp(52px, 10vw, 128px); margin-bottom: 22px; }
.hero__sub { max-width: 560px; margin: 0 auto 32px; font-size: clamp(18px, 2vw, 22px); color: rgba(245,245,247,.85); }

/* Load-in: elements rise in one after another, no scroll needed */
.intro { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * .07s); }
.is-loaded .intro { opacity: 1; transform: none; }

.scroll-cue {
  position: absolute; z-index: 1; bottom: 32px; left: 50%; translate: -50% 0;
  width: 24px; height: 38px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 14px;
  opacity: var(--cue-o, 1);
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: #fff; animation: cue 1.8s infinite var(--ease);
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Logo motion (from the logo sequence) ---------- */
.mbox-draw { position: relative; aspect-ratio: 2767 / 3482; }
.mbox-draw svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mbox-draw .ld-m, .mbox-draw .ld-box { opacity: 0; }
.mbox-draw.is-ready .ld-m, .mbox-draw.is-ready .ld-box { opacity: 1; }
/* Thin glowing line that sweeps across once a logo has landed */
.streak {
  position: absolute; left: -30%; right: -30%; top: 78%; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95) 50%, transparent);
  box-shadow: 0 0 12px 2px rgba(255,255,255,.45);
  opacity: 0; transform: scaleX(0); transform-origin: left;
}
.streak--sunrise { top: 72%; background: linear-gradient(90deg, transparent, #ffd2dc 50%, transparent); box-shadow: 0 0 14px 2px rgba(255,120,150,.6); }
@keyframes streak {
  0% { opacity: 0; transform: translateX(-20%) scaleX(.1); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateX(40%) scaleX(1); }
}

/* ---------- Statement (word-by-word reveal) ---------- */
.statement { padding: clamp(72px, 13vh, 140px) var(--gutter); }
.statement__inner { display: grid; place-items: center; }
.statement__text {
  max-width: 1000px; font-size: clamp(30px, 4.6vw, 60px); font-weight: 700;
  line-height: 1.15; letter-spacing: -.025em;
}
.statement__text .w { opacity: .14; transition: opacity .25s linear; }
.statement__text .w.is-lit { opacity: 1; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0; transform: translateY(48px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 120ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Stay ---------- */
.stay__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* The card itself only fades/rises in (via .reveal); hover and the photo settle happen on the image,
   so the two transitions never fight each other. */
.card { background: var(--bg-2); border-radius: var(--radius); overflow: hidden; }
.card__media { aspect-ratio: 4 / 5; }
.card__media > img {
  transform: scale(1.14);
  transition: transform 1.8s var(--ease) calc(var(--d, 0) * 120ms);
}
.card.is-in .card__media > img { transform: scale(1); }
.card.is-in:hover .card__media > img { transform: scale(1.05); transition: transform 1.2s var(--ease); }
.card__body { padding: 26px 26px 32px; }
.card__body h3 { margin-bottom: 10px; }
.card__body p { color: var(--muted); }
@media (max-width: 900px) { .stay__grid { grid-template-columns: 1fr; } .card__media { aspect-ratio: 16 / 11; } }

/* ---------- Parallax break ---------- */
.parallax { position: relative; height: 70vh; height: min(100vh, max(70vh, 44vw)); overflow: hidden; display: grid; place-items: center; text-align: center; }
.parallax__media { position: absolute; inset: -12% 0; will-change: transform; }
.parallax::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.parallax__text { position: relative; z-index: 1; font-size: clamp(36px, 6vw, 76px); padding: 0 var(--gutter); }
/* Keep the words clear of the face in the photo: left on wide screens, bottom on phones */
@media (min-width: 761px) {
  .parallax { justify-items: start; text-align: left; }
  .parallax__text { max-width: 60%; font-size: clamp(34px, 4.3vw, 60px); white-space: nowrap; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
  .parallax::after { background: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.1) 100%); }
}
@media (max-width: 760px) {
  .parallax { align-items: end; padding-bottom: clamp(32px, 7vh, 64px); }
  .parallax::after { background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,.7) 100%); }
}

/* ---------- A day at M Box (horizontal) ---------- */
.day { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 120px) 0; }
.day__inner { display: flex; flex-direction: column; }
.day__head { padding: 0 var(--gutter); margin: 0 auto clamp(20px, 4vh, 40px); width: 100%; max-width: var(--max); }
.day__head h2 { font-size: clamp(32px, min(5.5vw, 8vh), 72px); }
.day__head .eyebrow { margin-bottom: 10px; }
.day__controls { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(16px, 3vh, 28px); }
.day__progress { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; max-width: 320px; }
.day__progress span { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; transform: scaleX(var(--day-p, 0)); transition: transform .2s linear; }
.day__arrows { display: flex; gap: 10px; }
.arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.1); color: #fff; font-size: 18px;
  transition: background .25s, opacity .25s, transform .25s var(--ease);
}
.arrow:hover { background: rgba(255,255,255,.2); transform: scale(1.06); }
.arrow:disabled { opacity: .3; cursor: default; transform: none; }
.day__track {
  display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  padding: 0 var(--gutter) 8px; scroll-padding-inline: var(--gutter);
  cursor: grab; user-select: none; -webkit-user-select: none;
}
.day__track::-webkit-scrollbar { display: none; }
.day__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.day__track img { -webkit-user-drag: none; pointer-events: none; }
@media (min-width: 1300px) {
  .day__track { padding-left: calc((100vw - var(--max)) / 2 + var(--gutter)); scroll-padding-inline: calc((100vw - var(--max)) / 2 + var(--gutter)); }
}
.moment { width: clamp(260px, 30vw, 400px); flex-shrink: 0; scroll-snap-align: start; }
.moment__media { aspect-ratio: 4 / 5; border-radius: var(--radius); margin-bottom: 16px; width: 100%; }
.moment__time { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--muted); }
.moment h3 { margin: 6px 0 6px; }
.moment p { color: var(--muted); }
.moment--stingray .moment__time { color: var(--ocean-3); }
.moment--tequila .moment__time { color: var(--sunrise-2); }

/* ---------- Stingray ---------- */
.stingray {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  background: linear-gradient(180deg, var(--ocean-1) 0%, var(--ocean-2) 70%, #0d6f8f 100%);
}
.stingray__inner { min-height: inherit; display: grid; place-items: center; text-align: center; padding: 96px 0 18vh; }
.stingray__media { position: absolute; inset: -15% 0; opacity: .5; background: transparent; will-change: transform; }
.stingray__media:empty { opacity: 0; }
.stingray__shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(2,26,43,.1), rgba(2,26,43,.7)); }
.stingray__content { position: relative; z-index: 2; padding: 0 var(--gutter); }
.stingray__logo { position: relative; width: min(80vw, 620px); aspect-ratio: 1606 / 979; margin: 0 auto 28px; }
/* Swimming Stingray logo (stingray-logo.js): three slices of the same image, moved with CSS transforms */
.srl { position: absolute; inset: 0; }
.srl__part { position: absolute; inset: 0; opacity: 0; will-change: transform, opacity; backface-visibility: hidden; }
.srl__part img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; max-width: none;
  filter: drop-shadow(0 0 12px rgba(43,179,201,.6)); -webkit-user-drag: none; user-select: none; }
.srl__ray { transform-origin: 32.38% 57.2%; }               /* body centre, where the wings flex from */
.srl__ray img { clip-path: inset(-20% -20% 35.85% -20%); }  /* the ray */
.srl__t1 img { clip-path: inset(64.15% -5% 15.42% -5%); }   /* STINGRAY */
.srl__t2 img { clip-path: inset(84.58% -5% -10% -5%); }      /* Gili boat party */
/* Particles drifting past, so the ray reads as swimming forward */
.sr-bubbles { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.sr-bubbles span {
  position: absolute; left: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(220,250,255,.9), rgba(120,220,240,0) 70%);
  animation: drift linear infinite;
}
@keyframes drift {
  0% { transform: translate(-5vw, 0); }
  50% { transform: translate(50vw, -14px); }
  100% { transform: translate(105vw, 6px); }
}
.stingray__line, .stingray__content .btn {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease) .45s, transform .8s var(--ease) .45s;
}
.stingray__content .btn { transition-delay: .55s; }
.stingray.in-view .stingray__line, .stingray.in-view .stingray__content .btn { opacity: 1; transform: none; }
.stingray__line { font-size: clamp(20px, 2.4vw, 28px); font-weight: 500; margin-bottom: 30px; color: rgba(255,255,255,.88); }
.waves { position: absolute; left: 0; bottom: 0; width: 200%; height: 22vh; z-index: 1; }
.wave { animation: wave 14s linear infinite; }
.wave--1 { fill: rgba(43,179,201,.18); }
.wave--2 { fill: rgba(43,179,201,.25); animation-duration: 10s; animation-direction: reverse; }
.wave--3 { fill: rgba(2,26,43,.85); animation-duration: 18s; }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Tequila Sunrise: night → dawn ---------- */
.tequila { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; }
.tequila__inner { min-height: inherit; display: grid; place-items: center; text-align: center; }
.tequila__media { position: absolute; inset: -15% 0; will-change: transform; }
.tequila__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 52%; transform: scale(1.08); transition: transform 2.4s var(--ease); }
.tequila.in-view .tequila__media img { transform: scale(1); }
/* Dark purple wash so the neon logo stays the brightest thing on screen */
.tequila__shade { position: absolute; inset: 0; background:
  radial-gradient(ellipse 70% 55% at 50% 50%, rgba(20,9,42,.35), rgba(20,9,42,.8)),
  linear-gradient(180deg, #000 0%, rgba(7,4,15,.2) 18%, rgba(7,4,15,.2) 82%, #000 100%); }
.tequila__content { position: relative; z-index: 2; padding: 0 var(--gutter); }
.tequila__content .eyebrow { color: rgba(255,255,255,.7); }
.tequila__logo { position: relative; width: min(86vw, 760px); aspect-ratio: 2000 / 667; margin: 0 auto 28px; }
/* Neon script writes itself on left to right, then flickers to life */
.tequila__logo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, #000 46%, transparent 54%); mask-image: linear-gradient(90deg, #000 46%, transparent 54%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  filter: drop-shadow(0 0 6px rgba(255,255,255,.9)) drop-shadow(0 0 22px rgba(255,120,150,.75));
  transition: -webkit-mask-position .8s cubic-bezier(.4,0,.25,1), mask-position .8s cubic-bezier(.4,0,.25,1);
}
.tequila.in-view .tequila__logo img { -webkit-mask-position: 0 0; mask-position: 0 0; animation: neon 3.2s ease-in-out .8s both; }
.tequila.in-view .streak { animation: streak 1s cubic-bezier(.5,0,.3,1) .7s both; }
@keyframes neon {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(255,255,255,.9)) drop-shadow(0 0 22px rgba(255,120,150,.75)); opacity: 1; }
  4% { opacity: .55; } 7% { opacity: 1; } 10% { opacity: .7; } 13% { opacity: 1; }
  45% { filter: drop-shadow(0 0 8px rgba(255,255,255,1)) drop-shadow(0 0 34px rgba(255,120,150,.95)); }
}
.tequila__line { font-size: clamp(20px, 2.4vw, 28px); font-weight: 500; opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease) .6s, transform .9s var(--ease) .6s; }
.tequila.in-view .tequila__line { opacity: 1; transform: none; }
.tequila__btn { margin-top: 28px; }

/* ---------- Photo strips (Stingray / Tequila) ---------- */
.strip { padding: clamp(56px, 8vw, 104px) 0; overflow: hidden; }
.strip__head { margin-bottom: clamp(28px, 4vw, 48px); }
.strip__head h2 { font-size: clamp(36px, 5.5vw, 72px); }
.strip__more { display: inline-block; margin-top: 16px; }
.strip--stingray { background: linear-gradient(180deg, var(--ocean-1), #031421); }
.strip--stingray .eyebrow { color: var(--ocean-3); }
.strip--tequila { background: radial-gradient(70% 60% at 50% 0%, rgba(255,120,80,.22), transparent 70%), linear-gradient(180deg, #2a0f2a, #000 70%); }
.strip--tequila .eyebrow { color: var(--sunrise-2); }
.strip__row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
}
.strip__tile { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; position: relative; }
.strip__tile:nth-child(2) { margin-top: clamp(32px, 6vw, 80px); }
.strip__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.strip__tile:hover img { transform: scale(1.05); }
@media (max-width: 760px) {
  .strip__row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .strip__row::-webkit-scrollbar { display: none; }
  .strip__tile { flex: 0 0 78%; scroll-snap-align: center; }
  .strip__tile:nth-child(2) { margin-top: 0; }
}

/* ---------- Gallery ---------- */
.gallery__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; align-items: start;
}
.gallery__col { will-change: transform; }
.gallery__col:nth-child(even) { margin-top: clamp(40px, 8vw, 120px); }
.gallery__grid .media { aspect-ratio: 4 / 5; border-radius: 18px; }
@media (max-width: 760px) { .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ---------- Reviews ---------- */
.reviews { overflow: hidden; }
.rv-scores { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: clamp(32px, 5vw, 56px); }
.rv-scores.has-google { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 820px) { .rv-scores.has-google { grid-template-columns: 1fr; } }
.rv-score-card {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "src src" "big bars" "label bars";
  column-gap: clamp(32px, 6vw, 80px); align-content: start;
  padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line); transition: border-color .3s;
}
.rv-score-card:hover { border-color: rgba(255,255,255,.3); }
.rv-score-card .rv-source { grid-area: src; justify-self: start; margin-bottom: 18px; }
.rv-big { grid-area: big; font-size: clamp(72px, 10vw, 120px); font-weight: 700; letter-spacing: -.05em; line-height: .95; font-variant-numeric: tabular-nums; }
.rv-big small { font-size: .3em; letter-spacing: 0; color: var(--muted); margin-left: 4px; font-weight: 600; }
.rv-label { grid-area: label; color: var(--muted); margin-top: 10px; }
.rv-label span { font-variant-numeric: tabular-nums; }
.rv-bars { grid-area: bars; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-self: center; font-size: 14px; }
.rv-bars li { display: grid; grid-template-columns: 120px 1fr 32px; align-items: center; gap: 14px; }
.rv-bars li span:first-child { color: rgba(245,245,247,.8); }
.rv-bars b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.rv-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.rv-bar i { display: block; height: 100%; border-radius: inherit; background: #fff; transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease); }
.rv-bar i { transition-delay: calc(.3s + var(--n, 0) * 70ms); }
.rv-score-card.is-in .rv-bar i { transform: scaleX(var(--v)); }
.rv-score-card--google { grid-template-columns: 1fr; grid-template-areas: "src" "big" "stars" "label"; }
.rv-score-card--google [data-google-stars] { margin-top: 12px; }
@media (max-width: 820px) {
  .rv-score-card { grid-template-columns: 1fr; grid-template-areas: "src" "big" "label" "bars"; }
  .rv-bars { margin-top: 24px; }
  .rv-bars li { grid-template-columns: 110px 1fr 32px; }
}

.rv-source {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; background: rgba(255,255,255,.08); color: #fff;
}
.rv-source::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff7a00; }
.rv-source--google::before { background: conic-gradient(#4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0); }
.rv-stars {
  --pct: calc(var(--r) / 5 * 100%);
  display: inline-block; font-size: 16px; letter-spacing: 2px; line-height: 1;
  background: linear-gradient(90deg, #fbbc05 var(--pct), rgba(255,255,255,.2) var(--pct));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rv-stars::before { content: "★★★★★"; }

/* Review cards: a swipeable row (fits on one line on desktop when there are only a few) */
.rv-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(280px, 30vw, 380px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  padding: 0 var(--gutter) 4px; scroll-padding-inline: var(--gutter);
}
.rv-track::-webkit-scrollbar { display: none; }
@media (min-width: 1300px) {
  .rv-track { padding-left: calc((100vw - var(--max)) / 2 + var(--gutter)); scroll-padding-inline: calc((100vw - var(--max)) / 2 + var(--gutter)); }
}
.rv-card {
  margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: 18px;
  padding: 26px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line);
}
.rv-track .rv-card:nth-child(2) { --d: 1; } .rv-track .rv-card:nth-child(3) { --d: 2; } .rv-track .rv-card:nth-child(n+4) { --d: 3; }
.rv-card__top { display: flex; justify-content: space-between; align-items: center; }
.rv-score { font-weight: 700; font-size: 18px; } .rv-score small { color: var(--muted); font-weight: 500; font-size: 13px; }
.rv-card blockquote { margin: 0; font-size: 17px; line-height: 1.5; color: rgba(245,245,247,.92); flex: 1; }
.rv-card figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.rv-card figcaption strong { display: block; color: var(--fg); font-weight: 600; }
.rv-card figcaption img, .rv-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.rv-avatar { display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; font-weight: 600; }
.rv-links { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; margin-top: clamp(24px, 4vw, 40px); }
.rv-note { font-size: 12px; color: var(--muted); margin-left: auto; }

/* ---------- Island ---------- */
.island { background: var(--bg-2); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: clamp(48px, 7vw, 88px); }
.stat { border-top: 1px solid var(--line); padding-top: 24px; }
.stat__num { display: block; font-size: clamp(64px, 10vw, 128px); font-weight: 700; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #8a8a8f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { color: var(--muted); }
.island__split { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.island__copy h3 { margin-bottom: 14px; }
.island__copy p { color: var(--muted); margin-bottom: 20px; }
.island__map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-3); }
.island__map iframe { width: 100%; height: 100%; border: 0; filter: invert(.92) hue-rotate(180deg) saturate(.6); }
@media (max-width: 820px) { .stats, .island__split { grid-template-columns: 1fr; } }

/* ---------- Book ---------- */
.book { padding: clamp(80px, 11vw, 140px) var(--gutter); text-align: center;
  background: radial-gradient(60% 60% at 50% 100%, rgba(43,179,201,.18), transparent 70%), var(--bg); }
.book__logo { width: 120px; margin: 0 auto 36px; }
.book h2 { margin-bottom: 48px; }
.book__form {
  display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 12px; align-items: end;
  max-width: 860px; margin: 0 auto; padding: 14px; text-align: left;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 24px;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.book__form label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; padding: 6px 10px; }
.book__form input, .book__form select {
  font: inherit; font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--fg);
  background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 6px 0; outline: none;
}
.book__form .btn { height: 52px; }
.book__facts {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  font-size: 13px; color: var(--muted);
}
.book__facts li::before { content: "✓"; margin-right: 7px; color: rgba(255,255,255,.7); }
@media (max-width: 760px) { .book__form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: center; }
.footer__logo { height: 80px; width: auto; margin-bottom: 14px; }
.footer__brands { display: flex; gap: 32px; align-items: center; }
.footer__brands img { height: 44px; width: auto; opacity: .7; transition: opacity .3s; }
.footer__brands img:hover { opacity: 1; }
.footer__links { display: flex; gap: 22px; justify-content: flex-end; flex-wrap: wrap; }
.footer__links a { color: var(--muted); } .footer__links a:hover { color: #fff; }
.footer__legal { margin-top: 48px; font-size: 12px; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr; } .footer__links { justify-content: flex-start; } }

/* ---------- Page transitions (transition.js) ---------- */
/* Leaving: a wave of colour rises from the bottom, its curved crest flattening as it fills the screen */
.pt-cover {
  position: fixed; left: 0; right: 0; bottom: 0; height: 115vh; z-index: 9999; pointer-events: none;
  transform: translateY(100%); border-radius: 50% 50% 0 0 / 14vh 14vh 0 0;
  transition: transform .3s cubic-bezier(.6, 0, .35, 1), border-radius .3s cubic-bezier(.6, 0, .35, 1);
}
.pt-cover.is-on { transform: translateY(0); border-radius: 0; }
/* Arriving: the same wave carries on up and off the top of the screen */
html.pt-in::after {
  content: ""; position: fixed; left: 0; right: 0; top: 0; height: 115vh; z-index: 9999; pointer-events: none;
  background: var(--pt-color, #000); border-radius: 0;
  transition: transform .45s cubic-bezier(.3, 0, .2, 1), border-radius .45s cubic-bezier(.3, 0, .2, 1);
  animation: pt-safety .3s ease 1.2s forwards; /* never leave the page covered, even if scripts fail */
}
html.pt-out::after { transform: translateY(-100%); border-radius: 0 0 50% 50% / 0 0 14vh 14vh; }
@keyframes pt-safety { to { transform: translateY(-100%); visibility: hidden; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .intro { opacity: 1; transform: none; transition: none; }
  .rv-bar i { transform: scaleX(var(--v)); transition: none; }
  .wave, .scroll-cue span, .streak { animation: none !important; }
  .sr-bubbles { display: none; }
  .tequila__logo img { transition: none !important; opacity: 1; transform: none; -webkit-mask-image: none; mask-image: none; }
}
