/* Paradise Roasters — "The Island Is Waking Up" presentation.
   Tokens come from Paradise-Frontend (tokens.css, home.css, button.css). */
@font-face {
  font-family: "Amsterdam";
  src: url("../assets/fonts/Amsterdam.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/Montserrat-VariableFont_wght.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --color-ink: #052624;
  --color-teal: #488484;
  --color-teal-dark: #0f7c7b;
  --color-ocean: #145b8d;
  --color-ocean-dark: #0d4d87;
  --color-ocean-darker: #163a6b;
  --color-night: #102f54;
  --color-cream: #ded9bc;
  --color-accent: #d9e021;
  --color-white: #ffffff;
  --font-body: "Montserrat", sans-serif;
  --font-display: "Amsterdam", cursive;
  --ease-camera: cubic-bezier(0.22, 0.8, 0.24, 1);
  --camera: 1.8s; /* time the camera takes to move between acts */
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--color-night);
  font-family: var(--font-body);
  color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}
img { user-select: none; -webkit-user-drag: none; }

/* ═══ Stage ═══ */
.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  touch-action: none;
}
.stage::after { /* home paper texture over every act */
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/env/texturaparadise.webp");
  mix-blend-mode: multiply;
  opacity: 0.35;
  pointer-events: none;
  z-index: 40;
}
.layer { position: absolute; pointer-events: none; }
.layer > img { display: block; width: 100%; }

/* ═══ Acts and the camera ═══
   The camera always travels down: the act that leaves goes up,
   the act that arrives comes from below. */
.scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform var(--camera) var(--ease-camera);
  will-change: transform;
}
.scene.is-active { transform: none; }
.scene.is-past { transform: translateY(-100%); }
.scene:not(.is-active) { pointer-events: none; }

/* ═══ Entry animations ═══
   Every .in element waits hidden; when its act gets .play they run with
   their own delay (--d) after the act's base delay (--base). The wrapper
   carries the entry motion, the inner element keeps its idle loop. */
.scene { --base: 0s; }
.in { opacity: 0; }
.scene.play .in {
  animation: var(--in, in-fade) var(--dur, 1.2s) var(--ease-camera) calc(var(--base) + var(--d, 0s)) both;
}
.in--rise { --in: in-rise; }
.in--left { --in: in-left; }
.in--right { --in: in-right; }
.in--drop { --in: in-drop; }
/* Amsterdam swashes reach far above and below the line box: leave generous vertical room */
.in--draw { --in: in-draw; opacity: 1; clip-path: inset(-120% 100% -120% -20%); }
.in--pop { --in: in-pop; }

@keyframes in-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes in-rise { from { opacity: 0; transform: translateY(var(--from, 24px)); } to { opacity: 1; transform: none; } }
@keyframes in-drop { from { opacity: 0; transform: translateY(calc(var(--from, 24px) * -1)); } to { opacity: 1; transform: none; } }
@keyframes in-left { from { opacity: 0; transform: translateX(var(--from, -60vw)); } to { opacity: 1; transform: none; } }
@keyframes in-right { from { opacity: 0; transform: translateX(var(--from, 60vw)); } to { opacity: 1; transform: none; } }
@keyframes in-draw { from { clip-path: inset(-120% 100% -120% -20%); } to { clip-path: inset(-120% -20% -120% -20%); } }
@keyframes in-pop { from { opacity: 0; transform: translateY(30px) scale(0.94); } to { opacity: 1; transform: none; } }

/* ═══ Idle loops ═══ */
@keyframes drift { from { transform: translateX(-6vw); } to { transform: translateX(6vw); } }
@keyframes bob { 50% { transform: translateY(-6px); } }
@keyframes breathe { 50% { transform: scale(1.04); opacity: 0.92; } }
@keyframes float { 50% { transform: translateY(-14px) rotate(-2deg); } }
@keyframes sway { 50% { transform: rotate(2.5deg); } }
@keyframes rise {
  from { transform: translateY(0) scale(0.6); opacity: 0; }
  15% { opacity: 0.8; }
  to { transform: translateY(-70vh) scale(1); opacity: 0; }
}
@keyframes cue { 50% { transform: translateY(8px); opacity: 1; } }
@keyframes eq { 50% { height: 100%; } }
@keyframes ping { from { transform: scale(1); opacity: 0.6; } to { transform: scale(1.6); opacity: 0; } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Swimmers: the wrapper travels, the inner image faces the travel direction.
   Line-art fish, grouper and turtle face right; the marlin faces left. */
.swimmer { left: 0; animation-timing-function: linear; animation-iteration-count: infinite; }
.flip { transform: scaleX(-1); }
@keyframes swim-right {
  from { transform: translateX(-30vw) translateY(0); }
  50% { transform: translateX(50vw) translateY(-14px); }
  to { transform: translateX(130vw) translateY(0); }
}
@keyframes swim-left {
  from { transform: translateX(130vw) translateY(0); }
  50% { transform: translateX(50vw) translateY(10px); }
  to { transform: translateX(-40vw) translateY(0); }
}
.bubble {
  bottom: -4vh; width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  animation: rise 7s ease-in infinite;
}

/* ═══ Persistent chrome: logo, sound, act dots ═══ */
.chrome {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(14px, 3vw, 28px) clamp(16px, 4vw, 40px);
  z-index: 50;
  pointer-events: none;
}
.chrome > * { pointer-events: auto; }
.chrome__logo { width: clamp(110px, 15vw, 210px); opacity: 0; animation: in-fade 1.2s ease 2.2s both; }

.sound {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: 600 0.72rem/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-white);
  background: rgba(16, 47, 84, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 0.6rem 0.95rem;
  cursor: pointer;
  opacity: 0;
  animation: in-fade 1.2s ease 2.4s both;
}
.sound::before { /* soft ping while the music is off */
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--color-accent);
  animation: ping 2s ease-out infinite;
}
.sound.is-on::before { display: none; }
.sound__bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.sound__bars i { width: 2px; height: 30%; background: currentColor; border-radius: 1px; }
.sound.is-on .sound__bars i { animation: eq 0.9s ease-in-out infinite; }
.sound.is-on .sound__bars i:nth-child(2) { animation-delay: -0.3s; }
.sound.is-on .sound__bars i:nth-child(3) { animation-delay: -0.6s; }
.sound__label::after { content: "Play island music"; }
.sound.is-on .sound__label::after { content: "Music on"; }

.dots {
  position: absolute;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 50;
}
.dots button {
  position: relative;
  width: 34px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
  cursor: pointer;
}
.dots button::before { /* tap target */
  content: "";
  position: absolute;
  inset: -12px -4px;
}
.dots button::after { /* fills while the act plays, then the camera moves on */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
}
.dots button.is-done::after { transform: scaleX(1); }
.dots button.is-running::after { animation: fill var(--t, 10s) linear forwards; }

/* ═══ Type and buttons ═══ */
.script {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.headline {
  font: 700 clamp(2.4rem, 7vw, 6rem)/1 var(--font-body);
  letter-spacing: 0.04em;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.lede {
  font: 500 clamp(1rem, 1.6vw, 1.25rem)/1.5 var(--font-body);
  margin: 0;
  max-width: 34ch;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}
.eyebrow {
  font: 600 0.72rem/1 var(--font-body);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0;
}
.button {
  font: 600 clamp(0.95rem, 1.3vw, 1.1rem)/1 var(--font-body);
  color: var(--color-ink);
  background-color: var(--color-accent);
  background-image: radial-gradient(circle, var(--color-white) 100%);
  background-size: 0% 0%;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  outline: 1px solid var(--color-white);
  outline-offset: 3px;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: background-size 0.4s ease, transform 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}
.button:hover { background-size: 200% 200%; transform: scale(1.03); }
.cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.85);
  font: 600 0.7rem/1 var(--font-body);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
}
.cue img { width: 34px; opacity: 0.6; animation: cue 1.8s ease-in-out infinite; }

/* ═══════════════ ACT 1 · DAWN ═══════════════ */
.scene--dawn {
  background: linear-gradient(to bottom, #3f7f80 0%, var(--color-teal) 30%, #6fa49a 58%, #c9c49a 78%, var(--color-teal-dark) 100%);
}
.dawn__veil { /* night lifting: the first thing that happens */
  inset: 0; z-index: 9;
  background: linear-gradient(to bottom, var(--color-night), #0b2a3d);
  opacity: 0;
}
.scene--dawn.play .dawn__veil { animation: in-fade 2.2s ease reverse both; }
.dawn__sun { top: -14vmax; left: -10vmax; width: 70vmax; height: 70vmax; z-index: 1; --in: in-rise; --from: 30vh; --dur: 2.6s; --d: 0.1s; }
.dawn__sun > div {
  width: 100%; height: 100%;
  background: radial-gradient(closest-side, #f15a24 0%, #f3722a 12%, #fbb03b 37%, rgba(251,176,59,.55) 57%, rgba(251,176,59,.2) 77%, rgba(251,176,59,0) 100%);
  animation: breathe 8s ease-in-out infinite;
}
.dawn__cloud { z-index: 2; width: 46vw; --dur: 2.2s; }
.dawn__cloud > img { animation: drift 70s ease-in-out infinite alternate; }
.dawn__cloud--1 { top: 8%; left: -6%; --in: in-left; --d: 0.7s; }
.dawn__cloud--2 { top: 30%; left: -10%; width: 36vw; --in: in-left; --d: 1s; }
.dawn__cloud--3 { top: 6%; right: -8%; --in: in-right; --d: 0.8s; }
.dawn__cloud--4 { top: 24%; right: -4%; width: 32vw; --in: in-right; --d: 1.1s; }
.dawn__cloud--2 > img { animation-duration: 90s; animation-direction: alternate-reverse; }
.dawn__mountains { bottom: 0; left: 0; width: 100%; z-index: 3; --in: in-rise; --from: 100%; --dur: 2s; --d: 0.5s; }
.dawn__far { bottom: 20%; left: 6%; width: 22vw; z-index: 3; --d: 1.6s; --dur: 2s; }
.dawn__far > div { position: relative; width: 100%; padding-top: 50%; animation: bob 5s ease-in-out infinite; }
.dawn__far img { position: absolute; top: 0; left: 0; width: 40%; opacity: 0.55; }
.dawn__far img:nth-child(2) { left: 45%; top: 20%; width: 30%; }
.dawn__far img:nth-child(3) { left: 80%; top: 35%; width: 20%; }
.dawn__flock { bottom: 2%; left: 2%; width: 34vw; height: 22vw; z-index: 4; --in: in-left; --from: -70vw; --dur: 2.4s; --d: 1.4s; }
.dawn__flock img { position: absolute; animation: bob 3.4s ease-in-out infinite; }
.dawn__flock img:nth-child(1) { left: 0; bottom: 0; width: 34%; }
.dawn__flock img:nth-child(2) { left: 30%; bottom: 18%; width: 26%; animation-delay: -1s; }
.dawn__flock img:nth-child(3) { left: 55%; bottom: 4%; width: 24%; animation-delay: -2s; }
.dawn__flock img:nth-child(4) { left: 78%; bottom: 26%; width: 16%; animation-delay: -0.5s; }
/* the big flamingo lives in the side gutter; its width never exceeds the space the centred copy leaves */
.dawn__hero { right: 2vw; bottom: 0; width: min(22vw, 42vh); z-index: 5; --in: in-right; --from: 40vw; --dur: 2.2s; --d: 1.8s; }
.dawn__hero > img { filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.25)); animation: bob 6s ease-in-out infinite; }
.dawn__copy {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 0.6rem; padding: 0 24px 12vh;
}
.dawn__copy > * { max-width: min(640px, 100%); }
.dawn__copy .script { font-size: clamp(3rem, 8vw, 7.5rem); --d: 2.6s; --dur: 1.6s; }
.dawn__copy .eyebrow { --d: 3.5s; margin-top: 0.3rem; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); } /* sits under PARADISE, clear of the W swash */
.dawn__copy .headline { --d: 3.2s; }
.dawn__copy .lede { --d: 3.8s; margin-top: 0.4rem; }
.dawn__copy .cue { --d: 4.4s; margin-top: 1.8rem; }

/* ═══════════════ ACT 2 · BENEATH THE SURFACE ═══════════════
   Horizon group: the island width drives everything anchored to it, so the
   palms always stand on the sand and the sky always ends at the waterline. */
.scene--dive {
  --base: 1.1s;
  --iw: min(50vw, 820px, 66vh);        /* island width */
  --ih: calc(var(--iw) * 0.327);       /* island.webp is 1100x360 */
  /* island top: low enough that the palm tops (0.265 x width above it) clear the logo bar */
  --it: calc(var(--iw) * 0.3 + 100px);
  --wl: calc(var(--it) + var(--ih) * 0.46); /* waterline sits over the lower sand, so the shore and the spit are wet */
  /* water starts exactly at the waterline, in the same teal as the wave fill */
  background: var(--color-ocean-darker) linear-gradient(to bottom, var(--color-teal-dark) 0%, var(--color-ocean) 35%, var(--color-ocean-dark) 70%, var(--color-ocean-darker) 100%) 0 var(--wl) / 100% calc(100% - var(--wl)) no-repeat;
}
.dive__sky { inset: 0 0 auto 0; height: var(--wl); z-index: 1; background: linear-gradient(to bottom, #b9cfc0 0%, #8fb8b0 55%, #6fa49a 100%); }
.dive__horizon { right: -2vw; top: var(--it); width: var(--iw); height: var(--ih); z-index: 2; --in: in-drop; --from: 30px; --dur: 1.6s; }
.dive__horizon .island { position: absolute; inset: 0; width: 100%;
  /* below the waterline (46% of the island) the sand is under water: only a faint shallow tint shows */
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(46% + 4px), rgba(0, 0, 0, 0.14) calc(46% + 16px));
  mask-image: linear-gradient(to bottom, #000 0, #000 calc(46% + 4px), rgba(0, 0, 0, 0.14) calc(46% + 16px)); }
/* palm trunk base is at 40% of the image width: plant it on the sand at 82% of the island */
.dive__horizon .palms { position: absolute; width: 22%; left: calc(82% - 22% * 0.4); bottom: 80%; transform-origin: 40% 100%; animation: sway 7s ease-in-out infinite; }
/* surf: two wave strips ride the waterline at different speeds and lap the shore */
.dive__waves { top: calc(var(--wl) - 14px); left: 0; width: 100%; height: 28px; z-index: 3; --d: 0.2s; }
.dive__waves::before, .dive__waves::after { content: ""; position: absolute; inset: 0; background-repeat: repeat-x; }
.dive__waves::before { /* water body: replaces the straight sky/water edge */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='28' viewBox='0 0 240 28'%3E%3Cpath d='M0 14 C30 4 60 4 90 14 S150 24 180 14 S225 6 240 14 V28 H0Z' fill='%230f7c7b'/%3E%3C/svg%3E");
  background-size: 240px 28px;
  animation: surf 7s linear infinite;
}
.dive__waves::after { /* foam crest */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='28' viewBox='0 0 180 28'%3E%3Cpath d='M0 16 C22 9 45 9 67 16 S112 23 135 16 S168 11 180 16' fill='none' stroke='white' stroke-opacity='.55' stroke-width='1.6'/%3E%3C/svg%3E");
  background-size: 180px 28px;
  animation: surf-back 4.5s linear infinite, bob 3s ease-in-out infinite;
}
@keyframes surf { to { background-position-x: -240px; } }
@keyframes surf-back { to { background-position-x: 180px; } }
.dive__rays { top: var(--wl); left: 6vw; width: min(50vw, 600px); z-index: 3; --d: 0.4s; --dur: 2s; }
.dive__rays > img { opacity: 0.5; mix-blend-mode: screen; transform-origin: top; animation: sway 9s ease-in-out infinite; }
.dive__shadows { top: var(--wl); left: 0; width: 100%; height: calc(100% - var(--wl)); object-fit: cover; opacity: 0.4; z-index: 3; }
/* desktop lanes: text left, bag right, marlin low, small fish mid/low */
/* the marlin crosses the open right half, then dives and fades before it reaches the copy */
.dive__marlin { bottom: 3vh; width: min(22vw, 300px); z-index: 6; animation: marlin-pass 18s linear infinite; animation-delay: -3s; }
@keyframes marlin-pass {
  0% { transform: translateX(105vw); opacity: 0; }
  6% { opacity: 1; }
  62% { transform: translateX(60vw) translateY(0); opacity: 1; }
  76% { transform: translateX(52vw) translateY(60px); opacity: 0; }
  100% { transform: translateX(52vw) translateY(60px); opacity: 0; }
}
.dive__longfish { top: calc(var(--wl) + 4vh); width: min(11vw, 140px); opacity: 0.75; z-index: 4; animation: swim-right 30s linear infinite; animation-delay: -6s; }
.dive__school { bottom: 26vh; width: min(22vw, 280px); opacity: 0.55; z-index: 4; animation: swim-right 36s linear infinite; animation-delay: -20s; }
.dive__butterfly { bottom: 16vh; width: min(6vw, 70px); z-index: 5; animation: swim-left 24s linear infinite; animation-delay: -4s; }
.dive__butterfly--2 { bottom: 10vh; width: min(4vw, 48px); animation-delay: -15s; }
.dive__bag { right: 9vw; bottom: 9vh; height: min(42vh, 32vw); z-index: 7; --in: in-rise; --from: 30vh; --dur: 1.8s; --d: 0.9s; }
.dive__bag > img { height: 100%; width: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.35)); animation: float 6s ease-in-out infinite; }
.dive__bubbles .bubble { z-index: 8; }
.dive__copy {
  position: absolute; z-index: 10; left: clamp(20px, 7vw, 120px);
  top: calc(var(--wl) + (100% - var(--wl)) / 2); transform: translateY(-46%);
  display: flex; flex-direction: column; gap: 0.6rem; max-width: min(520px, 46vw);
}
.dive__copy .script { font-size: clamp(2.2rem, min(4.6vw, 7vh), 4.4rem); --d: 0.5s; --dur: 1.6s; }
.dive__copy .eyebrow { --d: 0.3s; }
.dive__copy .headline { font-size: clamp(1.8rem, min(4vw, 6vh), 3.8rem); --d: 1s; }
.dive__copy .lede { font-size: clamp(0.95rem, min(1.5vw, 2.4vh), 1.2rem); color: rgba(255, 255, 255, 0.9); --d: 1.4s; }
.dive__copy .cue { --d: 2s; align-self: flex-start; margin-top: 1rem; flex-direction: row; gap: 0.6rem; }
.dive__copy .cue img { width: 22px; }

/* ═══════════════ ACT 3 · THE INVITATION ═══════════════ */
.scene--reef {
  --base: 1.1s;
  background: linear-gradient(to bottom, var(--color-ocean) 0%, var(--color-ocean-dark) 35%, var(--color-ocean-darker) 70%, var(--color-night) 100%);
}
.reef__rays { top: -6%; left: 30vw; width: min(50vw, 600px); z-index: 1; }
.reef__rays > img { opacity: 0.25; mix-blend-mode: screen; transform-origin: top; animation: sway 10s ease-in-out infinite; }
.reef__reef { left: 0; bottom: 0; width: 100%; height: 62%; z-index: 3; --in: in-rise; --from: 30%; --dur: 2s; }
.reef__reef > img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* lanes: turtle glides over the reef below the card; grouper and far fish above or behind it */
.reef__turtle { bottom: 1.5vh; width: min(16vw, 230px); z-index: 6; animation: swim-right 40s linear infinite; animation-delay: -12s; }
.reef__turtle > img { animation: float 5s ease-in-out infinite; }
.reef__grouper { top: 13%; width: min(12vw, 160px); z-index: 4; opacity: 0.85; animation: swim-right 52s linear infinite; animation-delay: -30s; }
.reef__marlin { top: 30%; width: min(16vw, 200px); z-index: 2; opacity: 0.35; filter: blur(1px) saturate(0.6); animation: swim-left 60s linear infinite; animation-delay: -30s; }
.reef__school { top: 40%; width: min(24vw, 280px); opacity: 0.45; z-index: 2; animation: swim-right 45s linear infinite; animation-delay: -10s; }
.reef__bubbles .bubble { z-index: 7; border-color: rgba(255, 255, 255, 0.6); animation-duration: 8s; }
.card {
  position: absolute; z-index: 10; left: 50%; top: 52%;
  width: min(92vw, 520px);
  translate: -50% -50%;
  padding: clamp(24px, 4vw, 40px);
  text-align: center;
  background: rgba(16, 47, 84, 0.82);
  border: 1px solid rgba(222, 217, 188, 0.35);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  --d: 0.6s; --dur: 1.4s;
}
.card > .in { --d: 1.2s; }
.card .script { font-size: clamp(2.3rem, 5vw, 3.6rem); color: var(--color-cream); --d: 1.3s; --dur: 1.6s; }
.card .lede { color: rgba(255, 255, 255, 0.88); max-width: 38ch; font-size: clamp(0.95rem, 1.3vw, 1.05rem); --d: 1.8s; }
.card .cta { --d: 2.2s; }
.card .socials { --d: 2.6s; }
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: 600 0.68rem/1 var(--font-body); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-cream); border: 1px solid rgba(222, 217, 188, 0.5); border-radius: 999px; padding: 0.5rem 0.9rem;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 4px rgba(217, 224, 33, 0.2); }
.cta { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; margin-top: 0.6rem; }
.cta .button { width: 100%; }
.cta .button img { width: 22px; height: 22px; filter: brightness(0) saturate(100%) invert(9%) sepia(30%) saturate(1500%) hue-rotate(130deg); }
.phone-line { font: 600 0.9rem/1 var(--font-body); letter-spacing: 0.06em; color: var(--color-cream); margin: 0; }
.fine { font-size: 0.72rem; color: rgba(255, 255, 255, 0.6); margin: 0; }
.socials { display: flex; gap: 1.2rem; align-items: center; justify-content: center; margin-top: 0.3rem; font-size: 0.8rem; flex-wrap: wrap; }
.socials a, .socials button { color: var(--color-white); text-decoration: none; display: inline-flex; gap: 0.4rem; align-items: center; opacity: 0.85; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.socials a:hover, .socials button:hover { opacity: 1; }
.socials svg { width: 16px; height: 16px; }

/* ═══ Responsive ═══ */
/* tablets and narrow desktops: no side gutter, the flamingo shrinks and stays below the copy */
@media (max-width: 1100px) {
  .dawn__hero { width: min(24vw, 28vh); right: 1vw; }
}
@media (min-width: 641px) and (max-aspect-ratio: 4/3) {
  .dive__copy { max-width: 60vw; }
  .dive__bag { height: min(30vh, 30vw); }
}
@media (max-height: 700px) and (min-width: 641px) {
  .card { top: 55%; padding: 22px 28px; gap: 0.5rem; }
}
@media (max-width: 640px) {
  .dawn__sun { width: 95vmin; height: 95vmin; top: -32vmin; left: -36vmin; }
  .dawn__cloud { width: 70vw; }
  .dawn__flock { width: 70vw; height: 40vw; }
  .dawn__far { width: 40vw; bottom: 30%; }
  .dawn__hero { width: auto; height: min(32vh, 70vw); right: -8vw; }
  .dawn__hero > img { height: 100%; width: auto; }
  .dawn__copy { padding-bottom: 24vh; }

  .scene--dive { --iw: 104vw; }
  .dive__horizon { right: -8vw; }
  .dive__copy { top: calc(var(--wl) + 4vh); transform: none; max-width: none; right: 20px; }
  .dive__bag { height: 26vh; right: 6vw; bottom: 8vh; }
  .dive__marlin { width: 44vw; bottom: 9vh; animation: swim-left 24s linear infinite; animation-delay: -8s; }
  .dive__school { width: 46vw; bottom: 34vh; }
  .dive__longfish, .dive__butterfly--2 { display: none; }
  .dive__butterfly { bottom: 5vh; width: 11vw; }

  .reef__turtle { width: 30vw; bottom: auto; top: 10vh; }
  .reef__grouper { width: 26vw; top: auto; bottom: 3vh; }
  .card { top: 54%; }
  .badge { letter-spacing: 0.12em; font-size: 0.62rem; }
}

/* ═══ Reduced motion: acts cross-fade, nothing travels ═══ */
@media (prefers-reduced-motion: reduce) {
  .scene { transform: none !important; opacity: 0; transition: opacity 0.8s ease; }
  .scene.is-active { opacity: 1; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
}
