/* Captain Yin Yang Tours — concept stylesheet (mobile-first) */

@font-face { font-family: "Instrument Serif"; src: url("../assets/fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../assets/fonts/instrument-sans-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --navy-950: #061521;
  --navy-900: #0a2233;
  --navy-800: #11334a;
  --navy-700: #1b4661;
  --ivory: #f5efe4;
  --ivory-2: #ede4d4;
  --paper: #faf6ef;
  --ink: #0d1b26;
  --ink-soft: #3c4c58;
  --turquoise: #2bb3b1;
  --turquoise-ink: #0e6a6e;   /* turquoise for text on ivory (AA) */
  --sunset: #e8875a;
  --sunset-ink: #a8481f;
  --wa: #1fae5b;
  --wa-ink: #0c7a3e;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --max: 1320px;
  --section: clamp(5rem, 12vw, 10rem);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--turquoise); color: var(--navy-950); }

:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 3px; border-radius: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1.1rem;
  background: var(--ivory); color: var(--navy-900); font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--turquoise-ink);
}
.eyebrow--light { color: var(--turquoise); }
.hero__eyebrow { color: #d9f6f3; text-shadow: 0 1px 12px rgba(6, 21, 33, .45); }
.eyebrow__line { width: 2.5rem; height: 1px; background: currentColor; }

.section-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.5rem, 7.5vw, 5rem); line-height: 1.02; letter-spacing: -.015em;
  color: var(--navy-900); margin-top: 1rem; text-wrap: balance;
}
.section-title em { font-style: italic; color: var(--turquoise-ink); }
.section-title--light { color: var(--ivory); }
.section-title--light em { color: var(--turquoise); }
.section-lead { margin-top: 1.25rem; max-width: 36rem; color: var(--ink-soft); font-size: 1.125rem; }

.section { padding-block: var(--section); position: relative; }
.section-head { margin-bottom: clamp(3rem, 8vw, 6rem); }
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split { display: grid; gap: 1rem; align-items: end; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy-900); --fg: var(--ivory);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem; padding: .85rem 1.6rem;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bg); border-radius: 999px;
  font-size: .95rem; font-weight: 600; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--light { --bg: var(--ivory); --fg: var(--navy-900); }
.btn--light:hover { --bg: #fff; }
.btn--ghost-light { --bg: transparent; --fg: var(--ivory); border-color: rgba(245, 239, 228, .55); }
.btn--ghost-light:hover { --bg: rgba(245, 239, 228, .12); border-color: var(--ivory); }
.btn--wa { --bg: var(--wa-ink); --fg: #fff; }
.btn--wa:hover { --bg: #0a6834; }
.btn--small { min-height: 2.6rem; padding: .55rem 1.2rem; font-size: .875rem; }
.btn--lg { min-height: 3.75rem; padding-inline: 2rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.75rem;
  font-weight: 600; font-size: .95rem; color: var(--navy-900); text-decoration: none;
  padding-bottom: .3rem; border-bottom: 1px solid currentColor;
}
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow:hover { color: var(--turquoise-ink); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--ivory);
  transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.site-header__inner {
  height: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 1.5rem;
}
.site-header.is-solid { background: rgba(245, 239, 228, .94); color: var(--navy-900); box-shadow: 0 1px 0 rgba(10, 34, 51, .08); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.site-header.is-hidden { transform: translateY(-100%); }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand__mark { width: 2.1rem; height: 2.1rem; flex: none; }
.brand__ring { fill: none; stroke: currentColor; stroke-opacity: .45; stroke-width: 1; }
.brand__sea { fill: var(--turquoise); }
.brand__sky { fill: currentColor; }
.brand__word { font-family: var(--serif); font-size: 1.35rem; line-height: 1; white-space: nowrap; }
.brand__word small { font-family: var(--sans); font-size: .6rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; margin-left: .25rem; opacity: .8; vertical-align: .2em; }

.nav { display: none; }
.nav__list { display: flex; gap: 2rem; }
.nav__list a { font-size: .9rem; font-weight: 500; text-decoration: none; opacity: .85; position: relative; padding-block: .4rem; }
.nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__list a:hover { opacity: 1; }
.nav__list a:hover::after { transform: scaleX(1); transform-origin: left; }
.btn--header { display: none; }
.site-header:not(.is-solid) .btn--header { --bg: var(--ivory); --fg: var(--navy-900); }

.menu-btn {
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  background: none; border: 1px solid currentColor; border-radius: 50%; cursor: pointer; border-color: color-mix(in srgb, currentColor 40%, transparent);
}
.menu-btn__lines, .menu-btn__lines::before { display: block; width: 1.1rem; height: 1px; background: currentColor; position: relative; }
.menu-btn__lines { transform: translateY(-3px); }
.menu-btn__lines::before { content: ""; position: absolute; top: 6px; width: .75rem; right: 0; }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--navy-900); color: var(--ivory);
  padding: 1.25rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu.is-open { animation: menuIn .5s var(--ease); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-12px); } }
.menu__top { display: flex; justify-content: space-between; align-items: center; min-height: 2.75rem; }
.menu__label { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--turquoise); font-weight: 600; }
.menu__close { background: none; border: 1px solid rgba(245, 239, 228, .35); border-radius: 999px; padding: .55rem 1.1rem; cursor: pointer; font-size: .875rem; }
.menu__list { margin-block: 2.5rem auto; }
.menu__list li { border-bottom: 1px solid rgba(245, 239, 228, .12); }
.menu__list a { display: flex; align-items: baseline; gap: 1rem; padding-block: .9rem; font-family: var(--serif); font-size: clamp(1.9rem, 8vw, 2.6rem); line-height: 1.1; text-decoration: none; }
.menu__list span { font-family: var(--sans); font-size: .75rem; color: var(--turquoise); letter-spacing: .1em; }
.menu__cta { margin-top: 2.5rem; }
.menu__meta { margin-top: 1.25rem; text-align: center; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--ivory); background: var(--navy-900); overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 40%; animation: heroZoom 22s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 21, 33, .55) 0%, rgba(6, 21, 33, 0) 22%),
    linear-gradient(0deg, rgba(6, 21, 33, .92) 0%, rgba(6, 21, 33, .6) 38%, rgba(6, 21, 33, .05) 72%);
}
.hero__content { padding-top: calc(var(--header-h) + 3rem); padding-bottom: 2.25rem; }
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.1rem, 13vw, 8.6rem); line-height: .95; letter-spacing: -.02em;
  margin-top: 1.25rem; max-width: 12ch; text-wrap: balance;
}
.hero__title em { display: block; font-style: italic; color: #bff0ec; }
.hero__lead { margin-top: 1.5rem; max-width: 34rem; font-size: clamp(1.05rem, 2.6vw, 1.25rem); line-height: 1.55; color: rgba(245, 239, 228, .88); }
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__actions .btn { flex: 1 1 12rem; }

.hero__index { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
.hero__index ol { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(245, 239, 228, .22); }
.hero__index li { border-bottom: 1px solid rgba(245, 239, 228, .12); }
.hero__index li:nth-child(odd) { border-right: 1px solid rgba(245, 239, 228, .12); }
.hero__index a { display: flex; gap: .6rem; align-items: baseline; padding: .85rem .25rem .85rem 0; font-size: .9rem; text-decoration: none; color: rgba(245, 239, 228, .85); transition: color .3s; }
.hero__index li:nth-child(even) a { padding-left: 1rem; }
.hero__index a:hover { color: #fff; }
.hero__index span { font-size: .7rem; color: var(--turquoise); letter-spacing: .1em; }

[data-hero-in] { animation: rise 1.1s var(--ease) both; }
[data-hero-in]:nth-child(2) { animation-delay: .12s; }
[data-hero-in]:nth-child(3) { animation-delay: .24s; }
[data-hero-in]:nth-child(4) { animation-delay: .36s; }
.hero__index[data-hero-in] { animation-delay: .5s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Experiences ---------- */
.experiences { background: var(--ivory); }
.exp { display: grid; gap: 2.25rem; }
.exp + .exp { margin-top: clamp(5rem, 13vw, 10rem); }
.exp__media { position: relative; padding-bottom: 3.5rem; }
.exp__main { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--navy-800); }
.exp__main img, .exp__inset img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.exp__media:hover .exp__main img { transform: scale(1.035); }
.exp__inset {
  position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 1;
  overflow: hidden; border: 6px solid var(--ivory); border-radius: var(--radius); background: var(--navy-800);
}
.exp--flip .exp__inset { right: auto; left: 0; }
.exp__num { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--turquoise-ink); display: flex; align-items: center; gap: .75rem; }
.exp__num::after { content: ""; width: 3rem; height: 1px; background: currentColor; opacity: .5; }
.exp__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.02; color: var(--navy-900); margin-top: .9rem; letter-spacing: -.01em; }
.exp__kicker { margin-top: .5rem; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--sunset-ink); }
.exp__body > p:not([class]) { margin-top: 1.25rem; color: var(--ink-soft); max-width: 32rem; font-size: 1.1rem; }
.exp__note { margin-top: 1rem; font-size: .9rem; color: var(--ink-soft); padding-left: 1rem; border-left: 2px solid var(--turquoise); max-width: 30rem; }

/* ---------- Local ---------- */
.local { background: var(--navy-900); color: var(--ivory); overflow: hidden; isolation: isolate; }
.local__bg { position: absolute; inset: 0; z-index: -1; opacity: .2; }
.local__bg-img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.6); }
.local::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--navy-900) 0%, rgba(10, 34, 51, .75) 45%, var(--navy-900) 100%); }
.local__grid { display: grid; gap: 3rem; }
.local__lead { margin-top: 1.5rem; font-size: clamp(1.1rem, 2.4vw, 1.3rem); line-height: 1.6; color: rgba(245, 239, 228, .85); max-width: 36rem; }
.local__photo { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.local__photo img { width: 100%; height: 100%; object-fit: cover; }
.pillars { display: grid; gap: 0; border-top: 1px solid rgba(245, 239, 228, .18); }
.pillar { padding-block: 1.75rem; border-bottom: 1px solid rgba(245, 239, 228, .18); display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; }
.pillar__num { grid-row: span 2; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--turquoise); }
.pillar h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.1; }
.pillar p { margin-top: .5rem; color: rgba(245, 239, 228, .78); }

/* ---------- Moments ---------- */
.moments { background: var(--paper); padding-bottom: calc(var(--section) - 1rem); }
.moments__head { position: relative; }
.moments .section-head { margin-bottom: 2.5rem; }
.rail-controls { display: none; gap: .5rem; justify-content: flex-end; margin-bottom: 1.5rem; }
.rail-btn {
  width: 3.25rem; height: 3.25rem; border-radius: 50%; border: 1px solid rgba(10, 34, 51, .25); background: transparent; cursor: pointer;
  display: grid; place-items: center; color: var(--navy-900); transition: background-color .3s, color .3s;
}
.rail-btn:hover { background: var(--navy-900); color: var(--ivory); }
.rail-btn svg, .lightbox__btn svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rail {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); padding-bottom: 1.25rem;
  scrollbar-width: thin; scrollbar-color: rgba(10, 34, 51, .3) transparent;
}
.rail::-webkit-scrollbar { height: 4px; }
.rail::-webkit-scrollbar-thumb { background: rgba(10, 34, 51, .25); border-radius: 4px; }
.moment { flex: 0 0 min(80vw, 23rem); scroll-snap-align: start; }
.moment figure { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--navy-800); }
.moment img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.moment:hover img { transform: scale(1.05); }
.moment figcaption {
  position: absolute; inset: auto 0 0; padding: 4.5rem 1.4rem 1.4rem; color: var(--ivory); font-size: .95rem; line-height: 1.5;
  background: linear-gradient(0deg, rgba(6, 21, 33, .9) 0%, rgba(6, 21, 33, .55) 55%, transparent 100%);
}
.moment strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.65rem; line-height: 1.1; margin: .35rem 0 .4rem; }
.moment__n { font-size: .7rem; letter-spacing: .14em; color: var(--turquoise); font-weight: 600; }

/* ---------- Why ---------- */
.why { background: var(--ivory); }
.why__grid { display: grid; gap: 3rem; }
.why__photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
.why__photo img { width: 100%; height: 100%; object-fit: cover; }
.reasons { margin-top: 2.5rem; border-top: 1px solid rgba(10, 34, 51, .15); }
.reason { display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem; padding-block: 1.6rem; border-bottom: 1px solid rgba(10, 34, 51, .15); }
.reason__num { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--turquoise-ink); line-height: 1.3; }
.reason h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 4vw, 2rem); line-height: 1.15; color: var(--navy-900); }
.reason p { margin-top: .45rem; color: var(--ink-soft); }

/* ---------- Gallery ---------- */
.gallery { background: var(--paper); }
.mosaic {
  display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 40vw; gap: .6rem;
  grid-template-areas: "a a" "a a" "b c" "b d" "f f" "f f" "e g" "h h" "h h";
}
.mosaic__item { min-height: 0; }
.mosaic__item--a { grid-area: a; } .mosaic__item--b { grid-area: b; } .mosaic__item--c { grid-area: c; } .mosaic__item--d { grid-area: d; }
.mosaic__item--e { grid-area: e; } .mosaic__item--f { grid-area: f; } .mosaic__item--g { grid-area: g; } .mosaic__item--h { grid-area: h; }
.mosaic__btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: zoom-in; overflow: hidden; background: var(--navy-800); border-radius: var(--radius); }
.mosaic__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), opacity .4s; }
.mosaic__btn:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(6, 21, 33, .97); color: var(--ivory);
}
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; animation: fadeIn .35s var(--ease); }
.lightbox::backdrop { background: rgba(6, 21, 33, .8); }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox__img { max-width: calc(100vw - 2rem); max-height: calc(100dvh - 9rem); object-fit: contain; align-self: end; }
.lightbox__caption { padding: 1rem var(--gutter) 1.75rem; font-size: .9rem; text-align: center; color: rgba(245, 239, 228, .8); max-width: 44rem; }
.lightbox__btn, .lightbox__close {
  position: absolute; background: rgba(245, 239, 228, .08); border: 1px solid rgba(245, 239, 228, .3); color: var(--ivory); cursor: pointer;
}
.lightbox__btn { top: 50%; width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; transform: translateY(-50%); }
.lightbox__prev { left: .75rem; }
.lightbox__next { right: .75rem; }
.lightbox__close { top: 1rem; right: 1rem; border-radius: 999px; padding: .55rem 1.1rem; font-size: .875rem; }

/* ---------- Plan / booking ---------- */
.plan { position: relative; padding-block: var(--section); color: var(--ivory); background: var(--navy-950); overflow: hidden; isolation: isolate; }
.plan__bg { position: absolute; inset: 0; z-index: -2; }
.plan__bg-img { width: 100%; height: 100%; object-fit: cover; }
.plan::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 21, 33, .35) 0%, rgba(6, 21, 33, .7) 50%, rgba(6, 21, 33, .92) 100%); }
.plan__grid { display: grid; gap: 3rem; align-items: start; }
.plan__lead { margin-top: 1.5rem; font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: rgba(245, 239, 228, .9); max-width: 32rem; }
.plan__intro .btn { margin-top: 2rem; }
.plan__number { margin-top: 1rem; font-size: .95rem; color: rgba(245, 239, 228, .8); }
.plan__number a { color: var(--ivory); font-weight: 600; text-underline-offset: 3px; }

.planner {
  background: var(--ivory); color: var(--ink); padding: clamp(1.5rem, 5vw, 2.5rem); border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .5);
}
.planner__title { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; line-height: 1.1; color: var(--navy-900); }
.planner__hint { margin-top: .5rem; color: var(--ink-soft); font-size: .95rem; }
.planner__field { margin: 1.5rem 0 0; padding: 0; border: 0; min-width: 0; }
.planner__field legend, .planner__field label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-900); margin-bottom: .6rem; padding: 0; }
.opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-soft); }
.planner__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.planner input[type="date"], .planner input[type="number"], .planner input[type="text"] {
  width: 100%; min-height: 3.1rem; padding: .7rem .9rem; background: var(--paper);
  border: 1px solid rgba(10, 34, 51, .25); border-radius: var(--radius); font-size: 1rem; color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.planner input:focus-visible { outline: 2px solid var(--turquoise-ink); outline-offset: 1px; border-color: var(--turquoise-ink); }
.planner input::placeholder { color: #6c7a84; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.planner__field .chip { position: relative; cursor: pointer; display: inline-block; margin: 0; font-size: inherit; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem 1.05rem; border: 1px solid rgba(10, 34, 51, .3); border-radius: 999px; font-size: .95rem; transition: background-color .25s, color .25s, border-color .25s; }
.chip input:checked + span { background: var(--navy-900); color: var(--ivory); border-color: var(--navy-900); }
.chip input:checked + span::before { content: "✓"; margin-right: .4rem; font-size: .8rem; }
.chip input:focus-visible + span { outline: 2px solid var(--turquoise-ink); outline-offset: 2px; }
.planner .btn { margin-top: 1.75rem; }
.planner__fine { margin-top: .75rem; font-size: .8rem; color: var(--ink-soft); text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: var(--ivory); padding: 4.5rem 0 calc(6.5rem + env(safe-area-inset-bottom)); }
.footer__top { display: grid; gap: 2.75rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(245, 239, 228, .14); }
.footer__name { font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 3.2rem); line-height: 1; }
.footer__place { margin-top: .75rem; color: rgba(245, 239, 228, .7); }
.footer__wa { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.25rem; color: var(--turquoise); font-weight: 600; text-decoration: none; }
.footer__wa:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.5rem; }
.footer__nav a { text-decoration: none; color: rgba(245, 239, 228, .82); display: inline-block; padding-block: .3rem; }
.footer__nav a:hover { color: #fff; }
.footer__cta p { font-family: var(--serif); font-style: italic; font-size: 1.6rem; margin-bottom: 1rem; }
.footer__bottom { padding-top: 1.75rem; display: grid; gap: 1rem; font-size: .85rem; color: rgba(245, 239, 228, .62); }
.credits summary { cursor: pointer; color: rgba(245, 239, 228, .8); }
.credits summary:hover { color: #fff; }
.credits p { margin-top: .9rem; max-width: 44rem; }
.credits ul { margin-top: .9rem; display: grid; gap: .35rem; font-size: .78rem; max-width: 60rem; }
.credits a { color: var(--turquoise); }

/* ---------- Mobile dock ---------- */
.dock {
  position: fixed; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom)); z-index: 40;
  display: grid; grid-template-columns: 1fr auto; gap: .5rem; padding: .4rem;
  background: rgba(10, 34, 51, .92); border-radius: 999px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, .55);
  transform: translateY(calc(100% + 2rem)); transition: transform .5s var(--ease);
}
.dock.is-on { transform: none; }
.dock a { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 3rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.dock__plan { color: var(--ivory); padding-inline: 1rem; }
.dock__wa { background: var(--wa-ink); color: #fff; padding-inline: 1.3rem; }

/* ================= Tablet ================= */
@media (min-width: 640px) {
  .hero__index ol { grid-template-columns: repeat(4, 1fr); }
  .hero__index li { border-bottom: 0; border-right: 1px solid rgba(245, 239, 228, .12); }
  .hero__index li:last-child { border-right: 0; }
  .hero__index li a, .hero__index li:nth-child(even) a { padding: 1.1rem 1rem; }
  .hero__index li:first-child a { padding-left: 0; }
  .hero__actions .btn { flex: 0 0 auto; }
  .exp__main { aspect-ratio: 5 / 4; }
  .pillars { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: 2rem; }
  .pillar { display: block; border-bottom: 0; border-top: 1px solid rgba(245, 239, 228, .25); }
  .pillar h3 { margin-top: .75rem; }
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 21vw; gap: .75rem; grid-template-areas: "a a b c" "a a b d" "e f f g" "h f f g"; }
  .planner__row { gap: 1.25rem; }
  .footer__top { grid-template-columns: 1.4fr 1fr; }
  .footer__cta { grid-column: 1 / -1; }
  .lightbox__prev { left: 1.5rem; }
  .lightbox__next { right: 1.5rem; }
}

/* ================= Desktop ================= */
@media (min-width: 960px) {
  :root { --header-h: 84px; }
  .nav, .btn--header { display: block; }
  .btn--header { display: inline-flex; }
  .menu-btn { display: none; }
  .brand__word { font-size: 1.5rem; }

  .hero__content { padding-bottom: 2.5rem; }
  .hero__title { max-width: none; font-size: clamp(4rem, min(8.4vw, 13.5vh), 8.6rem); }
  .hero__lead { max-width: 38rem; }

  .section-head--split { grid-template-columns: 1.2fr 1fr; gap: 4rem; }
  .section-head--split .section-lead { justify-self: end; }

  .exp { grid-template-columns: repeat(12, 1fr); align-items: center; gap: 0; }
  .exp__media { grid-column: 1 / span 7; padding-bottom: 0; padding-right: 3rem; }
  .exp__main { aspect-ratio: 6 / 5; margin-right: 10%; }
  .exp__inset { width: 34%; bottom: -12%; right: 3rem; }
  .exp__body { grid-column: 9 / span 4; }
  .exp--flip .exp__media { grid-column: 6 / span 7; padding-right: 0; padding-left: 3rem; order: 2; }
  .exp--flip .exp__main { margin-right: 0; margin-left: 10%; }
  .exp--flip .exp__inset { left: 3rem; }
  .exp--flip .exp__body { grid-column: 1 / span 4; order: 1; }

  .local__grid { grid-template-columns: repeat(12, 1fr); column-gap: 2rem; row-gap: 5rem; align-items: end; }
  .local__intro { grid-column: 1 / span 7; }
  .local__photo { grid-column: 9 / span 4; aspect-ratio: 4 / 5; }
  .pillars { grid-column: 1 / -1; gap: 3rem; }

  .rail-controls { display: flex; position: absolute; right: var(--gutter); bottom: 0; margin: 0; }
  .moments .section-head { padding-right: 9rem; margin-bottom: 3.5rem; }
  .moments .section-head--split { grid-template-columns: 1.3fr 1fr; }
  .rail { gap: 1.5rem; padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
  .moment { flex-basis: clamp(20rem, 28vw, 26rem); }

  .why__grid { grid-template-columns: 5fr 6fr; gap: 6rem; align-items: center; }
  .why__media { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
  .why__photo { aspect-ratio: 4 / 5; }

  .mosaic { grid-auto-rows: 15vw; gap: 1rem; }

  .plan__grid { grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
  .plan::after { background: linear-gradient(90deg, rgba(6, 21, 33, .82) 0%, rgba(6, 21, 33, .5) 55%, rgba(6, 21, 33, .35) 100%); }

  .footer { padding-bottom: 3rem; }
  .footer__top { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer__cta { grid-column: auto; justify-self: end; text-align: right; }
  .footer__bottom { grid-template-columns: auto 1fr; gap: 3rem; }
  .credits { justify-self: end; text-align: right; }
  .credits ul, .credits p { margin-left: auto; text-align: left; }

  .dock { display: none; }
}

@media (min-width: 1400px) {
  .mosaic { grid-auto-rows: 13rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
