/* ═══════════════════════════════════════════
   Parnabi Pal — chasing blue waters
   palette: deep sea / ocean / lagoon / foam / coral / blush / sand
   ═══════════════════════════════════════════ */

:root {
  --ink:    #123B5C;
  --ocean:  #1B7FBF;
  --lagoon: #6FD5E3;
  --foam:   #EAF9FC;
  --pink:   #FF7BA9;
  --blush:  #FFE3EE;
  --sand:   #FFD98E;
  --white:  #FFFFFF;

  --font-display: "Shrikhand", serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --font-hand: "Caveat", cursive;

  --shadow-card: 0 10px 30px rgba(18, 59, 92, 0.14);
  --radius: 22px;
}

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

html {
  scroll-behavior: smooth;
  /* clip beats hidden here: it stops phones panning sideways without
     turning the root into a scroll container */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--foam);
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
  max-width: 100%;
  line-height: 1.65;
}

/* anchor targets clear the fixed nav pill instead of hiding under it */
[id] { scroll-margin-top: 104px; }

body.modal-open { overflow: hidden; }

::selection { background: var(--pink); color: var(--white); }

em { font-style: normal; color: var(--ocean); font-weight: 800; }

/* ─────────── LOADER ─────────── */

.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  background: var(--foam);
  transition: opacity 0.6s ease;
}

.loader--done { opacity: 0; pointer-events: none; }

.loader__clam { width: 110px; }

.loader__top {
  transform-box: view-box;
  transform-origin: 22px 64px;
  animation: clam-open 1.3s ease-in-out infinite;
}

.loader__pearl {
  transform-box: view-box;
  transform-origin: 62px 58px;
  animation: pearl-peek 1.3s ease-in-out infinite;
}

@keyframes clam-open {
  0%, 15%, 100% { transform: rotate(0deg); }
  50%, 70% { transform: rotate(-24deg); }
}

@keyframes pearl-peek {
  0%, 20%, 100% { opacity: 0; transform: scale(0.4); }
  55%, 70% { opacity: 1; transform: scale(1); }
}

.loader__text {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pink);
}

/* ─────────── NAV ─────────── */

.nav {
  position: fixed;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  white-space: nowrap;
}

.nav__logo {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--ink);
  text-decoration: none;
}

.nav__plane { display: inline-block; color: var(--ocean); transition: transform 0.4s ease; }
.nav__logo:hover .nav__plane { transform: translate(6px, -5px) rotate(-12deg); }

.nav__links { display: flex; align-items: center; gap: 20px; }

.nav__links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  position: relative;
}

.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 3px;
  background: var(--pink);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); }

.nav__cta {
  background: var(--pink);
  color: var(--white) !important;
  padding: 6px 16px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav__cta:hover { transform: rotate(-3deg) scale(1.06); background: var(--ocean); }

/* hamburger: hidden until the pill runs out of room */
.nav__toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 6px 16px 6px 13px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--lagoon);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.nav__toggle:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.nav__burger, .nav__burger::before, .nav__burger::after {
  display: block;
  width: 20px;
  height: 3px;
  border-radius: 3px;
  background: var(--ink);
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.nav__burger { position: relative; }
.nav__burger::before, .nav__burger::after { content: ""; position: absolute; left: 0; }
.nav__burger::before { top: -6.5px; }
.nav__burger::after  { top: 6.5px; }

.nav--open .nav__toggle { background: var(--pink); }
.nav--open .nav__burger { transform: rotate(45deg); }
.nav--open .nav__burger::before { transform: translateY(6.5px) rotate(-90deg); }
.nav--open .nav__burger::after  { opacity: 0; }

/* ─────────── HERO ─────────── */

.hero {
  --sea-h: clamp(210px, 32vh, 330px);
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 24px calc(var(--sea-h) + 30px);
  background:
    radial-gradient(ellipse 90% 60% at 70% -10%, var(--blush) 0%, transparent 55%),
    radial-gradient(ellipse 80% 55% at 15% 20%, #d3f2f8 0%, transparent 60%),
    var(--foam);
  overflow: hidden;
}

.hero__inner { position: relative; z-index: 2; max-width: 900px; }

.hero__eyebrow {
  font-family: var(--font-hand);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 700;
  color: var(--pink);
  letter-spacing: 0.04em;
  opacity: 0;
  animation: rise 0.9s ease 0.15s forwards;
}

.hero__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.4rem, 12vw, 8.2rem);
  line-height: 0.95;
  margin: 10px 0 26px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__word { display: inline-block; opacity: 0; animation: splash 1s cubic-bezier(0.2, 1.4, 0.4, 1) forwards; }
.hero__word--1 { animation-delay: 0.35s; }
.hero__word--2 {
  animation-delay: 0.55s;
  color: var(--ocean);
  position: relative;
  text-shadow: 5px 5px 0 var(--blush);
}

.hero__heart {
  position: absolute;
  width: clamp(26px, 4vw, 44px);
  top: -0.28em; right: -0.62em;
  color: var(--pink);
  animation: heartbeat 1.8s ease-in-out 1.6s infinite;
}

.hero__tag {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 600;
  opacity: 0;
  animation: rise 0.9s ease 0.85s forwards;
}

.hero__cta {
  display: inline-block;
  margin-top: 34px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--white);
  background: var(--ocean);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 13px 30px;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--ink);
  opacity: 0;
  animation: rise 0.9s ease 1.05s forwards;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero__cta:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
  background: var(--pink);
}

.hero__cta-arrow { display: inline-block; animation: bob 1.4s ease-in-out infinite; }

/* floating doodles */
.doodle {
  position: absolute;
  z-index: 1;
  color: var(--ocean);
  opacity: 0.55;
  pointer-events: none;
}

.doodle--plane { width: 130px; top: 16%; left: 8%; color: var(--ink); animation: floaty 6s ease-in-out infinite; }
.doodle--sun   { width: 90px;  top: 12%; right: 9%; color: var(--sand); opacity: 0.9; animation: spin-slow 26s linear infinite; }
.doodle--star  { width: 54px;  bottom: 44%; left: 13%; color: var(--pink); animation: floaty 5s ease-in-out 1s infinite; }
.doodle--shell { width: 70px;  bottom: 42%; right: 12%; color: var(--pink); animation: floaty 7s ease-in-out 0.5s infinite; }
.doodle--paw   { width: 56px;  top: 42%; right: 22%; color: var(--lagoon); opacity: 0.8; animation: floaty 6.5s ease-in-out 2s infinite; }
.doodle--necklace { width: 62px; top: 36%; left: 6%; opacity: 0.85; animation: floaty 7.5s ease-in-out 1.2s infinite; }

/* waves */
.waves {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 150px;
  z-index: 1;
  overflow: hidden; /* the 200%-wide wave strips must never widen the page */
}

.wave { position: absolute; inset: 0; width: 200%; height: 100%; }
.wave path { fill: currentColor; }
.wave--1 { color: var(--lagoon); opacity: 0.5; animation: drift 13s linear infinite; }
.wave--2 { color: var(--ocean);  opacity: 0.55; animation: drift 9s linear infinite reverse; }
.wave--3 { color: var(--ocean); animation: drift 7s linear infinite; }

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─────────── THE LIVING SEA ─────────── */

.sea {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--sea-h, 300px);
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.waves--sea { top: 0; bottom: auto; height: 84px; z-index: 3; }

.sea__deep {
  position: absolute;
  left: 0; right: 0;
  top: 82px; bottom: 0;
  background: linear-gradient(180deg, var(--ocean) 0%, #16639C 45%, #0F4470 100%);
}

/* swim lanes: horizontal travel */
.lane { position: absolute; z-index: 4; }

.lane { left: 0; }
.lane--shark  { top: 52%; width: clamp(110px, 16vw, 175px); animation: swim-r 34s linear -12s infinite; }
.lane--fish1  { top: 40%; width: clamp(52px, 7vw, 80px);  animation: swim-l 21s linear -4s infinite; }
.lane--fish2  { top: 68%; width: clamp(46px, 6.5vw, 72px); animation: swim-r 26s linear -19s infinite; }
.lane--fish3  { top: 32%; width: clamp(44px, 6vw, 66px);  animation: swim-r 19s linear -7s infinite; }
.lane--school { top: 46%; width: clamp(64px, 9vw, 100px); animation: swim-l 29s linear -22s infinite; }
.lane--turtle { top: 60%; width: clamp(74px, 10vw, 118px); animation: swim-l 44s linear -33s infinite; }

/* parnabi's sailboat: rides the surface, sails in the sky */
.lane--boat {
  position: absolute;
  bottom: calc(var(--sea-h) - 48px);
  left: 0;
  width: clamp(74px, 10vw, 112px);
  z-index: 2;
  pointer-events: none;
  animation: swim-r 58s linear -30s infinite;
}

.boat-rock {
  transform-origin: 50% 90%;
  animation: boat-rock 4.5s ease-in-out infinite alternate;
}

.boat { display: block; width: 100%; height: auto; }

@keyframes boat-rock {
  from { transform: rotate(-3.5deg) translateY(0); }
  to   { transform: rotate(3.5deg) translateY(5px); }
}

@keyframes swim-r {
  from { transform: translateX(-260px); }
  to   { transform: translateX(calc(100vw + 120px)); }
}

@keyframes swim-l {
  from { transform: translateX(calc(100vw + 120px)); }
  to   { transform: translateX(-260px); }
}

.bob { animation: bob-swim 3.4s ease-in-out infinite alternate; }
.lane--turtle .bob { animation-duration: 5s; }
.lane--shark .bob { animation-duration: 4.2s; }

@keyframes bob-swim {
  from { transform: translateY(-7px); }
  to   { transform: translateY(9px); }
}

.creature {
  display: block;
  width: 100%;
  height: auto;
  transform: translate(var(--fx, 0px), var(--fy, 0px)) scaleX(var(--dir, 1));
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.3, 1);
  will-change: transform;
  filter: drop-shadow(0 6px 10px rgba(9, 35, 56, 0.25));
}

.creature--flip { --dir: -1; }

/* jellyfish drifts on its own diagonal */
.jelly {
  position: absolute;
  z-index: 4;
  top: 30%; left: 44%;
  width: clamp(46px, 6.5vw, 74px);
  animation: jelly-drift 26s ease-in-out infinite alternate;
}

.jelly .creature { transition-duration: 1.4s; }

@keyframes jelly-drift {
  0%   { transform: translate(0, 26px); }
  25%  { transform: translate(-12vw, -8px); }
  50%  { transform: translate(-22vw, 30px); }
  75%  { transform: translate(-32vw, -4px); }
  100% { transform: translate(-42vw, 22px); }
}

/* sea floor décor */
.seaweed {
  position: absolute;
  bottom: -6px;
  width: clamp(48px, 7vw, 80px);
  z-index: 3;
  transform-origin: 50% 100%;
  animation: sway 5s ease-in-out infinite alternate;
}

.seaweed--left { left: 3%; }
.seaweed--right { right: 4%; animation-delay: 1.4s; animation-duration: 6s; }

@keyframes sway {
  from { transform: rotate(-4deg); }
  to   { transform: rotate(4deg); }
}

.starfish {
  position: absolute;
  bottom: 8px;
  left: 12%;
  width: clamp(30px, 4vw, 44px);
  z-index: 3;
  transform: rotate(-12deg);
}

/* coral gardens */
.coral {
  position: absolute;
  bottom: -4px;
  z-index: 3;
  transform-origin: 50% 100%;
  animation: sway 7s ease-in-out infinite alternate;
}

.coral--left  { left: 17%;  width: clamp(74px, 10vw, 120px); animation-delay: 0.8s; }
.coral--right { right: 15%; width: clamp(60px, 8vw, 100px); animation-delay: 2.2s; animation-duration: 5.5s; }

/* shy pearl clam: opens now and then to show off */
.clam {
  position: absolute;
  bottom: 4px;
  left: 42%;
  width: clamp(42px, 5.5vw, 60px);
  z-index: 3;
}

.clam__top {
  transform-box: view-box;
  transform-origin: 22px 64px;
  animation: clam-shy 7s ease-in-out infinite;
}

.clam__pearl {
  transform-box: view-box;
  transform-origin: 62px 58px;
  animation: pearl-shy 7s ease-in-out infinite;
}

@keyframes clam-shy {
  0%, 55%, 92%, 100% { transform: rotate(0deg); }
  65%, 82% { transform: rotate(-24deg); }
}

@keyframes pearl-shy {
  0%, 58%, 90%, 100% { opacity: 0; transform: scale(0.4); }
  68%, 82% { opacity: 1; transform: scale(1); }
}

/* bubbles */
.bubbles { position: absolute; inset: 0; z-index: 5; overflow: hidden; }

.bubble {
  position: absolute;
  width: var(--s, 12px);
  height: var(--s, 12px);
  left: var(--x, 50%);
  top: var(--y, 100%);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,0.55), rgba(255,255,255,0.06));
  opacity: 0.9;
  animation: bubble-rise var(--dur, 3.4s) ease-in forwards;
}

@keyframes bubble-rise {
  0%   { transform: translate(0, 0) scale(0.6); opacity: 0.95; }
  70%  { opacity: 0.8; }
  100% { transform: translate(var(--sway, 12px), var(--rise, -220px)) scale(1.05); opacity: 0; }
}

/* ─────────── MARQUEE ─────────── */

.marquee {
  background: var(--ocean);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
  padding: 12px 0;
  transform: rotate(-1.2deg) scale(1.02);
}

.marquee__track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee__track span {
  color: var(--foam);
  font-family: var(--font-hand);
  font-size: 1.5rem;
  font-weight: 700;
  white-space: nowrap;
}

.marquee__track span:nth-child(even) { color: var(--blush); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─────────── SECTIONS (shared) ─────────── */

.section { padding: 110px 24px; max-width: 1150px; margin: 0 auto; }

.section__eyebrow {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pink);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.1;
  margin: 6px 0 14px;
}

.section__sub { font-size: 1.1rem; max-width: 560px; }

.map .section__eyebrow, .map .section__title, .map .section__sub,
.stories .section__eyebrow, .stories .section__title, .stories .section__sub,
.gram .section__eyebrow, .gram .section__title, .gram .section__sub {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.title-plane { display: inline-block; color: var(--ocean); animation: bob 2s ease-in-out infinite; }

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.reveal.in { opacity: 1; transform: none; }

/* ─────────── ABOUT ─────────── */

.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about__lede { font-size: 1.25rem; font-weight: 700; margin-bottom: 14px; }

.about__copy p + p { margin-top: 10px; }

.squiggle-under { display: inline-block; animation: wavehand 2.4s ease-in-out infinite; transform-origin: 70% 80%; }

@keyframes wavehand {
  0%, 55%, 100% { transform: rotate(0); }
  60%, 80% { transform: rotate(18deg); }
  70%, 90% { transform: rotate(-8deg); }
}

.stickers { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }

.sticker {
  font-weight: 800;
  font-size: 0.92rem;
  padding: 7px 15px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: default;
}

.sticker:hover { transform: rotate(-2deg) translate(1px, 1px) scale(1.04); box-shadow: 1px 1px 0 var(--ink); }
.sticker--blue { background: var(--lagoon); }
.sticker--pink { background: var(--blush); }
.sticker--sand { background: var(--sand); }

.about__quote {
  font-family: var(--font-hand);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ocean);
  margin-top: 10px;
}

/* polaroids */
.polaroid {
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  padding: 14px 14px 10px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.polaroid--hero { transform: rotate(-3deg); max-width: 380px; margin: 0 auto; transition: transform 0.35s ease; }
.polaroid--hero:hover { transform: rotate(0deg) scale(1.03); }

.polaroid__img {
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--foam);
}

.polaroid__img svg, .polaroid__img img { display: block; width: 100%; height: auto; }


.polaroid__caption {
  font-family: var(--font-hand);
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.35;
  padding: 10px 4px 6px;
}

.polaroid__caption strong { font-weight: 700; color: var(--ocean); }

.polaroid__tape {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  width: 110px; height: 30px;
  background: rgba(255, 123, 169, 0.45);
  border-left: 2px dashed rgba(255, 255, 255, 0.8);
  border-right: 2px dashed rgba(255, 255, 255, 0.8);
}

.polaroid__stamp {
  position: absolute;
  top: 4px; right: 8px;
  font-size: 1.5rem;
  transform: rotate(10deg);
}

/* ─────────── MAP ─────────── */

.map__frame {
  position: relative;
  margin-top: 44px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--lagoon);
  padding: clamp(8px, 2vw, 24px);
}

.map__svg { display: block; width: 100%; height: auto; }

.map__route {
  stroke-dasharray: 10 12;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.map__route.draw {
  opacity: 1;
  animation: route-march 22s linear infinite;
}

@keyframes route-march {
  from { stroke-dashoffset: 1100; }
  to   { stroke-dashoffset: 0; }
}

.pin { cursor: pointer; }

.pin__dot, .pin__star {
  transform-box: fill-box;
  transform-origin: center;
  animation: pin-pulse 2.6s ease-in-out infinite;
}

.pin:hover .pin__dot, .pin:hover .pin__star { animation-play-state: paused; transform: scale(1.35); }

@keyframes pin-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

.pin__label {
  font-family: var(--font-hand);
  font-size: 24px;
  font-weight: 700;
  fill: var(--ink);
  text-anchor: middle;
  paint-order: stroke;
  stroke: var(--white);
  stroke-width: 5px;
  stroke-linejoin: round;
}

.map__compass-n {
  font-family: var(--font-hand);
  font-size: 22px;
  font-weight: 700;
  fill: var(--ink);
  text-anchor: middle;
  stroke: none;
}

.map__sea-label text {
  font-family: var(--font-hand);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.14em;
  fill: #7FBFD4;
}

.map__whale { animation: floaty 5s ease-in-out infinite; }

.map__card {
  position: absolute;
  z-index: 5;
  width: 230px;
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--pink);
  padding: 12px 16px;
  pointer-events: none;
  transform: translate(-50%, -115%);
  animation: pop 0.25s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.map__card-place { font-weight: 800; font-size: 1rem; color: var(--ocean); }
.map__card-note { font-family: var(--font-hand); font-size: 1.15rem; line-height: 1.3; }

.map__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  margin-top: 26px;
  font-weight: 700;
  font-size: 0.95rem;
}

.legend__item { display: inline-flex; align-items: center; gap: 8px; }

.legend__swatch { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--ink); }
.legend__swatch--star { background: var(--sand); border-radius: 50% 0 50% 50%; transform: rotate(45deg); }
.legend__swatch--route { background: none; border: none; border-top: 4px dashed var(--pink); height: 0; width: 30px; }

/* ─────────── WHERE TO NEXT? ─────────── */

.next { text-align: center; }

.next .section__eyebrow, .next .section__title, .next .section__sub {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.next__stage {
  position: relative;
  max-width: 460px;
  margin: 44px auto 0;
}

.next__card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 26px;
  box-shadow: 8px 8px 0 var(--lagoon);
  padding: 38px 30px 30px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.next__card.shuffling { animation: card-shake 0.35s ease-in-out infinite; }

@keyframes card-shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-1.6deg) translateY(-2px); }
  75% { transform: rotate(1.6deg) translateY(2px); }
}

.next__card.landed { animation: card-land 0.6s cubic-bezier(0.2, 1.5, 0.4, 1); }

@keyframes card-land {
  0% { transform: scale(0.92); }
  60% { transform: scale(1.05) rotate(-1deg); }
  100% { transform: scale(1); }
}

.next__emoji { font-size: 4rem; line-height: 1; }

.next__place {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  color: var(--ocean);
  line-height: 1.15;
}

.next__pitch {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.3;
  max-width: 340px;
}

.next__rating { font-size: 1.1rem; letter-spacing: 3px; min-height: 1.4em; }

.next__spin {
  margin-top: 26px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  background: var(--pink);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 14px 34px;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.next__spin:hover:not(:disabled) { background: var(--ocean); }
.next__spin:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.next__spin:disabled { opacity: 0.75; cursor: wait; }

.next__confetti {
  position: absolute;
  inset: -60px 0 0 0;
  pointer-events: none;
  overflow-x: clip; /* confetti may fly up, never sideways off the page */
}

.confetti-bit {
  position: absolute;
  left: var(--cx, 50%);
  top: var(--cy, 40%);
  width: var(--w, 10px);
  height: var(--h, 14px);
  background: var(--c, #FF7BA9);
  border-radius: 3px;
  animation: confetti-fly var(--dur, 1.2s) cubic-bezier(0.2, 0.8, 0.6, 1) forwards;
}

.confetti-bit--round { border-radius: 50%; }

@keyframes confetti-fly {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx, 0px), var(--dy, -120px)) rotate(var(--rot, 200deg)) scale(0.8); opacity: 0; }
}

.next__bucket { margin-top: 44px; }

.next__bucket-label {
  font-family: var(--font-hand);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 14px;
}

.next__bucket-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 640px;
  margin: 0 auto;
}

.bucket-empty { font-weight: 600; opacity: 0.55; }

.next__bucket-list .sticker {
  transform: rotate(var(--tilt, 0deg));
  animation: sticker-pop 0.45s cubic-bezier(0.2, 1.5, 0.4, 1);
}

@keyframes sticker-pop {
  from { transform: scale(0) rotate(var(--tilt, 0deg)); }
  to   { transform: scale(1) rotate(var(--tilt, 0deg)); }
}

/* ─────────── STORIES / CAROUSEL ─────────── */

.stories { max-width: 1250px; }

.carousel {
  position: relative;
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel__track {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; /* swipes stay in the deck, no page drift */
  padding: 30px 10px 40px;
  scrollbar-width: none;
  cursor: grab;
}

.pin { touch-action: manipulation; }

.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.dragging { cursor: grabbing; scroll-snap-type: none; }

.carousel .card {
  flex: 0 0 min(320px, 78vw);
  scroll-snap-align: center;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.carousel .card:hover {
  transform: rotate(0deg) translateY(-10px) scale(1.03);
  box-shadow: 0 24px 44px rgba(18, 59, 92, 0.22);
  z-index: 2;
}

.carousel__btn {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.carousel__btn:hover { background: var(--blush); }
.carousel__btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

.stories__note {
  text-align: center;
  font-family: var(--font-hand);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ocean);
  margin-top: 12px;
}

/* ─────────── SCOUT ─────────── */

.scout__card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
  align-items: center;
  background: linear-gradient(135deg, var(--blush) 0%, #fff0f6 60%, #ffe9f2 100%);
  border: 3px solid var(--ink);
  border-radius: 30px;
  box-shadow: 8px 8px 0 var(--pink);
  padding: clamp(28px, 5vw, 60px);
}

.scout__doodle svg { width: 100%; max-width: 300px; display: block; margin: 0 auto; animation: floaty 5s ease-in-out infinite; }

.scout__lede { font-size: 1.2rem; font-weight: 700; margin: 6px 0 16px; }

.scout__facts { list-style: none; display: grid; gap: 8px; font-weight: 600; }

.scout__facts li {
  background: rgba(255, 255, 255, 0.75);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 8px 14px;
  transition: transform 0.2s ease;
}

.scout__facts li:hover { transform: translateX(8px) rotate(-0.5deg); }

.paw-trail { margin-top: 18px; font-size: 1.3rem; display: flex; gap: 14px; }

.paw-trail span { opacity: 0; animation: paw-step 3.2s ease-in-out infinite; }
.paw-trail span:nth-child(1) { animation-delay: 0s; }
.paw-trail span:nth-child(2) { animation-delay: 0.35s; }
.paw-trail span:nth-child(3) { animation-delay: 0.7s; }
.paw-trail span:nth-child(4) { animation-delay: 1.05s; }
.paw-trail span:nth-child(5) { animation-delay: 1.4s; }

@keyframes paw-step {
  0% { opacity: 0; transform: translateY(4px); }
  12%, 60% { opacity: 1; transform: none; }
  75%, 100% { opacity: 0; }
}

/* ─────────── INSTAGRAM ─────────── */

.gram { text-align: center; }

.gram__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 760px;
  margin: 44px auto 30px;
}

.gram__tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 18px;
  border: 2.5px solid var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gram__tag {
  font-family: var(--font-hand);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 2px 14px;
  max-width: 88%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gram__tile:hover { transform: translate(2px, 2px) rotate(-1deg); box-shadow: 2px 2px 0 var(--ink); }

.gram__tile--a { background: linear-gradient(140deg, var(--lagoon), var(--ocean)); }
.gram__tile--b { background: linear-gradient(140deg, #B8F0DC, var(--lagoon)); }
.gram__tile--c { background: linear-gradient(140deg, var(--blush), var(--pink)); }
.gram__tile--d { background: linear-gradient(140deg, var(--sand), #FFB37B); }
.gram__tile--e { background: linear-gradient(140deg, #FFB37B, var(--pink)); }
.gram__tile--f { background: linear-gradient(140deg, var(--pink), var(--ocean)); }

.gram__icon { font-size: clamp(2.4rem, 6vw, 3.6rem); transition: transform 0.3s ease; }
.gram__tile:hover .gram__icon { transform: scale(1.25) rotate(-8deg); }

.gram__hover {
  position: absolute;
  inset: auto 0 0 0;
  background: var(--ink);
  color: var(--foam);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px;
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.gram__tile:hover .gram__hover { transform: none; }

.gram__follows {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.gram__follow {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--white);
  background: var(--pink);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 10px 34px;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gram__follow:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); background: var(--ocean); }

.gram__follow--ghost {
  background: var(--white);
  color: var(--ink);
  font-size: 1.35rem;
}

.gram__follow--ghost:hover { background: var(--blush); color: var(--ink); }

/* ─────────── FOOTER ─────────── */

.footer {
  position: relative;
  background: linear-gradient(180deg, var(--ocean) 0%, var(--ink) 100%);
  color: var(--foam);
  text-align: center;
  padding: 150px 24px 60px;
  margin-top: 60px;
}

.waves--footer { top: -2px; bottom: auto; height: 100px; }
.waves--footer .wave--1 { color: var(--foam); opacity: 1; }

.footer__quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1.3;
  margin-bottom: 22px;
}

.footer__meta { font-weight: 700; opacity: 0.9; }

.footer__made {
  margin-top: 26px;
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: var(--blush);
}

/* ─────────── RESUME BUTTON & POPUP ─────────── */

.resume-btn {
  margin-top: 30px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
  background: var(--foam);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 11px 30px;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.resume-btn:hover { background: var(--sand); transform: rotate(-2deg) scale(1.05); }
.resume-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 42, 71, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.modal__card {
  position: relative;
  max-width: 430px;
  width: 100%;
  background: var(--blush);
  border: 3px solid var(--ink);
  border-radius: 26px;
  box-shadow: 8px 8px 0 var(--pink);
  padding: 44px 32px 36px;
  text-align: center;
  animation: modal-pop 0.45s cubic-bezier(0.2, 1.5, 0.4, 1);
}

@keyframes modal-pop {
  from { transform: scale(0.7) rotate(-3deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}

.modal__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--white);
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 2.5px 2.5px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.modal__close:hover { background: var(--pink); color: var(--white); }
.modal__close:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }

.modal__emoji { font-size: 2.6rem; display: block; margin-bottom: 10px; }

.modal__text {
  font-family: var(--font-hand);
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.modal__sub {
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ocean);
}

/* ─────────── KEYFRAMES ─────────── */

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

@keyframes splash {
  0%   { opacity: 0; transform: translateY(60px) scale(0.8) rotate(-4deg); }
  100% { opacity: 1; transform: none; }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-18px) rotate(3deg); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.25); }
  24% { transform: scale(1); }
  36% { transform: scale(1.18); }
  48% { transform: scale(1); }
}

@keyframes pop {
  from { opacity: 0; transform: translate(-50%, -105%) scale(0.85); }
  to   { opacity: 1; transform: translate(-50%, -115%) scale(1); }
}

/* ─────────── RESPONSIVE ─────────── */

@media (max-width: 900px) {
  .about__grid, .scout__card { grid-template-columns: 1fr; gap: 36px; }
  .doodle--paw { display: none; }
}

/* ── the pill can't fit six links: switch to a hamburger + drop-down panel ── */
@media (max-width: 780px) {
  .nav {
    top: 10px;
    left: 10px;
    right: 10px;
    transform: none;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 10px 7px 18px;
    white-space: normal;
  }

  .nav__logo { font-size: 1.25rem; }
  .nav__toggle { display: inline-flex; }

  .nav__links {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2.5px solid var(--ink);
    border-radius: 24px;
    box-shadow: 4px 6px 0 var(--ink);
    transform-origin: 92% top;
    transform: scale(0.85) translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.28s cubic-bezier(0.2, 1.3, 0.4, 1), opacity 0.2s ease, visibility 0.28s;
  }

  .nav--open .nav__links {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav__links a {
    font-size: 1.05rem;
    padding: 11px 16px;
    border-radius: 14px;
  }

  .nav__links a:not(.nav__cta)::after { display: none; }
  .nav__links a:not(.nav__cta):active { background: var(--foam); }

  .nav__cta {
    margin-top: 4px;
    text-align: center;
    padding: 12px 16px;
  }

  .nav__cta:hover { transform: none; }

  [id] { scroll-margin-top: 88px; }
}

@media (max-width: 640px) {
  .nav__toggle-label { display: none; }
  .nav__toggle { padding: 6px 14px; }
  .hero { --sea-h: clamp(190px, 30vh, 260px); }
  .lane--fish3 { display: none; }
  .starfish { left: 20%; }
  .section { padding: 80px 18px; }
  .carousel__btn { display: none; }
  .doodle--plane { width: 90px; top: 12%; left: 2%; }
  .doodle--sun { width: 64px; right: 4%; }
  .doodle--star { left: 5%; }
  .doodle--shell { right: 5%; }
  .gram__grid { grid-template-columns: repeat(2, 1fr); }
  .pin__label { font-size: 30px; }
}

/* ─────────── REDUCED MOTION ─────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__eyebrow, .hero__word, .hero__tag, .hero__cta { opacity: 1; }
  .map__route { opacity: 1; }
  .paw-trail span { opacity: 1; }
  /* park the sea creatures in a calm static scene */
  .lane, .jelly { animation: none; }
  .lane--shark  { left: 8%; }
  .lane--boat   { left: 34%; }
  .lane--fish1  { left: 64%; }
  .lane--fish2  { left: 30%; }
  .lane--fish3  { left: 46%; }
  .lane--school { left: 80%; }
  .lane--turtle { left: 55%; }
  .bubble { display: none; }
}

/* visible keyboard focus */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}
