:root {
  /* Brand palette, sampled from the Clínica del Niño logo */
  --navy: #12396f;
  --navy-deep: #0c2a55;
  --navy-night: #0a1f40;
  --pink: #f06a8c;
  --pink-ink: #b4365b;
  --pink-soft: #fde9ef;
  --teal: #57ae9e;
  --teal-ink: #1d6b5e;
  --teal-soft: #e4f4f0;
  --yellow: #ebae07;
  --yellow-hover: #d99f00;
  --yellow-ink: #8a5f00;
  --yellow-soft: #fdf4d6;
  --blue: #537fc1;
  --blue-ink: #2f5a9c;
  --blue-soft: #eaf0f9;
  --lilac: #a98cc9;
  --lilac-ink: #6c4c93;

  --ink: #13274a;
  --ink-muted: #4a5874;
  --line: #e3e8f1;
  --white: #ffffff;
  --on-dark: #ffffff;
  --on-dark-muted: #d5deec;
  --whatsapp: #1f9e57;

  --font-display: "Young Serif", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Nanum Pen Script", "Segoe Print", cursive;

  --gutter: clamp(16px, 4.5vw, 64px);
  --wrap: min(1440px, 100% - var(--gutter) * 2);
  --section-y: clamp(64px, 9vw, 136px);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --topbar-h: 76px;
  --action-bar-h: 0px;

  --z-sticky: 20;
  --z-topbar: 30;
  --z-menu: 40;
  --z-modal: 50;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  padding-bottom: var(--action-bar-h);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }

.wrap { width: var(--wrap); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: var(--z-modal);
  padding: 10px 16px; border-radius: 8px; background: var(--yellow); color: var(--navy-night);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.hero :focus-visible, .night :focus-visible, .visit :focus-visible, .footer-copy :focus-visible, .viewer :focus-visible { outline-color: var(--yellow); }

.icon {
  width: 1.25em; height: 1.25em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 54px; padding: 0 1.6em; border-radius: 999px; border: 2px solid transparent;
  font: 700 1.0625rem/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn-small { min-height: 44px; padding: 0 1.15em; font-size: 0.9688rem; }
.btn-yellow { background: var(--yellow); color: var(--navy-night); }
.btn-yellow:hover { background: var(--yellow-hover); }
.btn-navy { background: var(--navy); color: var(--on-dark); }
.btn-navy:hover { background: var(--navy-deep); }
.btn-outline-light { color: var(--on-dark); border-color: rgb(255 255 255 / 0.55); }
.btn-outline-light:hover { border-color: var(--on-dark); background: rgb(255 255 255 / 0.1); }
.btn-outline-navy { color: var(--navy); border-color: var(--navy); background: var(--white); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: var(--z-topbar);
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: var(--topbar-h); }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo-mark { width: 58px; height: auto; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--font-display); font-size: 1.3125rem; color: var(--navy); white-space: nowrap; }
.logo-del { color: var(--teal); font-size: 0.8em; }
.logo-nino { color: var(--pink); }
.logo-dra { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; color: var(--navy); }

.nav { display: flex; gap: 4px; }
.nav a {
  padding: 10px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 0.9688rem; color: var(--ink);
  transition: background-color 0.2s, color 0.2s;
}
.nav a:hover { background: var(--pink-soft); color: var(--pink-ink); }
.nav a.is-current { color: var(--pink-ink); }

.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-phone {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px;
  font-weight: 700; color: var(--navy); text-decoration: none; font-variant-numeric: tabular-nums;
}

.menu-btn {
  display: none; position: relative; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--pink-soft); cursor: pointer;
}
.menu-lines, .menu-lines::before, .menu-lines::after {
  position: absolute; left: 14px; width: 20px; height: 2px; border-radius: 2px; background: var(--navy);
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
.menu-lines { top: 23px; }
.menu-lines::before, .menu-lines::after { content: ""; left: 0; }
.menu-lines::before { top: -6px; }
.menu-lines::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-lines { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-lines::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { background: var(--navy); color: var(--on-dark); overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center;
  gap: clamp(32px, 5vw, 88px);
  min-height: min(820px, calc(100svh - var(--topbar-h)));
  padding-block: clamp(48px, 7vw, 104px);
}

.hello {
  font-family: var(--font-hand); font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.75rem); line-height: 1;
  color: var(--yellow); transform: rotate(-2deg); transform-origin: left; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.5rem, 1.4rem + 3.8vw, 4.75rem);
  letter-spacing: -0.015em;
  max-width: 13ch;
}
.h1-accent { color: var(--pink); }
.hero-lead {
  margin-top: clamp(20px, 2.5vw, 32px);
  max-width: 36rem;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem);
  color: var(--on-dark-muted);
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3.5vw, 44px); }

.hero-meta { display: grid; gap: 10px; margin-top: 26px; font-size: 0.9688rem; font-weight: 500; color: var(--on-dark-muted); }
.hero-meta li { display: flex; align-items: center; gap: 10px; }
.hero-meta .icon { width: 18px; height: 18px; color: var(--pink); }
.hero-meta a { text-decoration-color: rgb(255 255 255 / 0.35); text-underline-offset: 3px; }
.hero-meta a:hover { color: var(--on-dark); text-decoration-color: currentColor; }
.today-dot { width: 10px; height: 10px; margin-inline: 4px; border-radius: 50%; background: var(--on-dark-muted); flex-shrink: 0; }
.today.is-open { color: var(--on-dark); }
.today.is-open .today-dot { background: #6be29a; box-shadow: 0 0 0 4px rgb(107 226 154 / 0.25); }

.hero-photos { position: relative; aspect-ratio: 1 / 1.02; width: 100%; max-width: 640px; justify-self: end; }
.hero-photos::before, .hero-photos::after {
  content: ""; position: absolute; inset: -6% -8% -4% -6%; border-radius: 50%; pointer-events: none;
}
.hero-photos::before { border: 7px solid var(--pink); border-right-color: transparent; border-bottom-color: transparent; rotate: -20deg; }
.hero-photos::after { border: 14px solid var(--teal); border-top-color: transparent; border-left-color: transparent; border-right-color: transparent; rotate: -18deg; inset: -2% -6% -8% -2%; }

.snap {
  position: absolute; background: var(--white); padding: clamp(6px, 0.8vw, 12px);
  border-radius: 6px; box-shadow: 0 28px 50px -24px rgb(5 15 35 / 0.6);
}
.snap img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.snap::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 26px; translate: -50% 0;
  background: rgb(235 174 7 / 0.75); rotate: -4deg; z-index: 1;
}
.snap-main { left: 0; top: 4%; width: 62%; aspect-ratio: 3 / 4; rotate: -3deg; z-index: 2; }
.snap-side { right: 0; top: 0; width: 42%; aspect-ratio: 3 / 4.3; rotate: 4deg; z-index: 1; }
.snap-side::before { background: rgb(87 174 158 / 0.8); }
.snap-side img { height: calc(100% - 34px); }
.snap-side figcaption {
  font-family: var(--font-hand); font-size: clamp(1.25rem, 0.9rem + 0.9vw, 1.75rem); line-height: 1;
  color: var(--navy); text-align: center; padding-top: 6px;
}
.snap-third { right: 6%; bottom: 0; width: 38%; aspect-ratio: 1; rotate: -5deg; z-index: 3; }
.snap-third::before { left: 20%; rotate: 8deg; background: rgb(240 106 140 / 0.8); }

/* Brand values */
.values { border-bottom: 1px solid var(--line); padding-block: clamp(28px, 3.5vw, 44px); }
.values-list { display: grid; grid-template-columns: repeat(5, 1fr); }
.values-list li {
  --icon: clamp(56px, 5vw, 76px);
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding-inline: 12px; text-align: center;
  color: var(--tone); font-weight: 800; font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.3;
}
.values-list li + li::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line);
}
.values-list img { width: var(--icon); height: auto; border-radius: 50%; }

/* Values entrance: icon spins up, sends a ring in its own color, then the label rises */
@keyframes value-ring { from { scale: 1; opacity: 0.55; } to { scale: 1.9; opacity: 0; } }
@keyframes value-float { 50% { transform: translateY(-5px); } }
.values-list li::after {
  content: ""; position: absolute; top: 0; left: 50%; width: var(--icon); aspect-ratio: 1; translate: -50% 0;
  border-radius: 50%; border: 3px solid var(--tone); opacity: 0; pointer-events: none;
}
@keyframes value-in { from { opacity: 0; translate: 0 36px; scale: 0.4; rotate: -35deg; } }
.reveal-ready .rv.rv-value { opacity: 1; translate: 0 0; }
.reveal-ready .rv-value:not(.is-in) img { opacity: 0; }
.reveal-ready .rv-value span {
  opacity: 0; translate: 0 14px;
  transition: opacity 0.5s var(--ease), translate 0.6s var(--ease);
  transition-delay: calc(var(--rv-delay, 0ms) + 260ms);
}
.reveal-ready .rv-value + .rv-value::before {
  scale: 1 0; transition: scale 0.7s var(--ease); transition-delay: calc(var(--rv-delay, 0ms) + 100ms);
}
.reveal-ready .rv-value.is-in span { opacity: 1; translate: 0 0; }
.reveal-ready .rv-value.is-in::before { scale: 1 1; }
.reveal-ready .rv-value.is-in::after { animation: value-ring 0.9s var(--ease) calc(var(--rv-delay, 0ms) + 450ms) forwards; }
.reveal-ready .rv-value.is-in img {
  animation:
    value-in 0.8s var(--ease) var(--rv-delay, 0ms) backwards,
    value-float 3.2s ease-in-out calc(var(--rv-delay, 0ms) * 3 + 1.2s) infinite;
}

/* Services */
.services { padding-block: var(--section-y); }
.services-head { max-width: 46rem; margin-bottom: clamp(40px, 6vw, 88px); }
.services-head h2, .photos-head h2, .about h2 { font-size: clamp(2.125rem, 1.4rem + 2.8vw, 3.75rem); color: var(--navy); }
.services-head p { margin-top: 16px; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem); color: var(--ink-muted); }

.stage {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center;
  gap: clamp(28px, 6vw, 104px);
}
.stage + .stage { margin-top: clamp(64px, 8vw, 128px); }
.stage-flip .stage-photo { order: 2; }
.stage-photo { position: relative; isolation: isolate; }
.stage-photo img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 28px; }
.stage-photo::after {
  content: ""; position: absolute; z-index: -1; inset: 8% -5% -5% 8%; border-radius: 32px; background: var(--stage-soft);
}
.stage-flip .stage-photo::after { inset: 8% 8% -5% -5%; }

.stage-age {
  display: inline-block; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
  background: var(--stage-soft); color: var(--stage-ink); font-weight: 700; font-size: 0.9375rem;
}
.stage h3 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.625rem); color: var(--navy); }
.stage-body > p:not(.stage-age):not(.warning) { margin-top: 14px; color: var(--ink-muted); max-width: 34rem; }

.ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin-top: 28px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 600; line-height: 1.4; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.05em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--stage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1f40' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.warning {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; padding: 16px 18px;
  border-radius: var(--radius); background: var(--pink-soft); color: var(--pink-ink);
  font-weight: 600; font-size: 0.9688rem; max-width: 34rem;
}
.warning .icon { margin-top: 2px; }

/* About */
.about { background: var(--blue-soft); padding-block: var(--section-y); }
.about-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  gap: clamp(40px, 7vw, 120px);
}
.about-photo { position: relative; rotate: -2deg; aspect-ratio: 4 / 3; }
.about-photo::before { background: rgb(240 106 140 / 0.75); }
.about h2 { margin-bottom: 24px; }
.about-letter > p:not(.signature):not(.signature-role) {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.7; max-width: 36rem;
}
.about-letter > p + p { margin-top: 18px; }
.signature {
  font-family: var(--font-hand); font-size: clamp(2.5rem, 2rem + 1.6vw, 3.5rem); line-height: 1;
  color: var(--pink-ink); margin-top: 32px; rotate: -3deg; transform-origin: left; width: fit-content;
}
.about-letter .signature-role { margin-top: 6px; font-weight: 700; color: var(--teal-ink); font-size: 0.9688rem; }

/* Photos */
.photos { padding-block: var(--section-y); }
.photos-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.photos-head p { color: var(--ink-muted); }
.masonry { columns: 4 240px; column-gap: clamp(10px, 1.4vw, 18px); }
.tile {
  display: block; width: 100%; margin: 0 0 clamp(10px, 1.4vw, 18px); padding: 0; border: 0;
  border-radius: 18px; overflow: hidden; background: var(--blue-soft); cursor: zoom-in; break-inside: avoid;
}
.tile img { width: 100%; transition: transform 0.6s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile:focus-visible { outline-offset: 4px; }

/* Viewer */
.viewer {
  width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 24px;
  border: 0; background: rgb(8 22 46 / 0.95); color: var(--white);
}
.viewer[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.viewer::backdrop { background: transparent; }
.viewer figure { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.viewer img { max-height: calc(100dvh - 140px); width: auto; border-radius: 8px; }
.viewer figcaption { max-width: 40rem; text-align: center; color: var(--on-dark-muted); }
.viewer-btn {
  display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: rgb(255 255 255 / 0.14); color: var(--white); cursor: pointer; transition: background-color 0.2s;
}
.viewer-btn:hover { background: rgb(255 255 255 / 0.26); }
.viewer-btn .icon { width: 26px; height: 26px; }
.viewer-close { position: absolute; top: 16px; right: 16px; }

/* Visit */
.visit { background: var(--teal-ink); color: var(--on-dark); padding-block: var(--section-y); }
.visit-inner {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: center;
}
.visit h2 { font-size: clamp(2.125rem, 1.4rem + 2.8vw, 3.75rem); margin-bottom: 28px; }
.open-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
  background: rgb(255 255 255 / 0.14); font-weight: 700; font-size: 0.9375rem;
}
.open-badge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); }
.open-badge.is-open { background: var(--white); color: var(--teal-ink); }
.open-badge.is-open::before { background: currentColor; }
.hours { margin: 0; }
.hours div {
  display: flex; justify-content: space-between; gap: 16px; padding: 14px 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.25); font-size: 1.0625rem;
}
.hours dt { font-weight: 600; }
.hours dd { margin: 0; color: #d9efea; font-variant-numeric: tabular-nums; text-align: right; }
.hours .is-today dt, .hours .is-today dd { color: #ffd35c; font-weight: 700; }
.hours .is-today dt::after { content: " · hoy"; font-weight: 500; }
.visit-emergency {
  display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 12px 16px; border-radius: 14px;
  background: rgb(255 255 255 / 0.12); font-weight: 600;
}
.visit-emergency .icon { color: #ffd35c; }
.visit-emergency a { color: #ffd35c; font-weight: 800; white-space: nowrap; text-underline-offset: 3px; }
.visit address { margin-top: 28px; line-height: 1.6; color: #d9efea; }
.visit address strong { color: var(--on-dark); }
.visit-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.map {
  border-radius: 24px; overflow: hidden; background: #155247;
  aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -30px rgb(4 30 25 / 0.7);
}
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Footer */
.footer { background: var(--white); color: var(--ink-muted); font-size: 0.9688rem; text-align: center; }
.footer-inner {
  display: grid; justify-items: center; gap: 18px;
  padding-block: clamp(48px, 6vw, 80px);
}
.footer-logo { width: clamp(200px, 18vw, 260px); }
.footer-info { display: grid; justify-items: center; gap: 6px; }
.footer-name { font-family: var(--font-display); font-size: 1.375rem; color: var(--navy); }
.footer-info a { color: var(--navy); font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.footer-links a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--blue-soft); color: var(--navy); text-decoration: none; font-weight: 700;
  transition: background-color 0.2s, color 0.2s;
}
.footer-links a:hover { background: var(--navy); color: var(--white); }
.footer-copy { background: var(--navy-night); color: var(--on-dark-muted); font-size: 0.875rem; padding-block: 18px; }
.footer-copy .wrap { display: block; }

/* Night and birth care */
.night { position: relative; overflow: hidden; background: var(--navy-night); color: var(--on-dark); padding-block: var(--section-y); }
.night-sky { position: absolute; inset: 0; width: 100%; height: 100%; fill: #ffe7a3; opacity: 0.7; pointer-events: none; }
.night-sky circle { animation: twinkle 3.6s ease-in-out infinite; }
.night-sky circle:nth-child(3n) { animation-delay: -1.2s; }
.night-sky circle:nth-child(3n + 1) { animation-delay: -2.4s; }
@keyframes twinkle { 50% { opacity: 0.25; } }
.night-inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 120px); align-items: center;
}
.night-photo { position: relative; rotate: -3deg; width: min(440px, 100%); justify-self: center; aspect-ratio: 3 / 4.3; }
.night-photo img { height: calc(100% - 40px); }
.night-photo::before { background: rgb(87 174 158 / 0.8); }
.night-photo figcaption {
  font-family: var(--font-hand); font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); line-height: 1;
  color: var(--navy); text-align: center; padding-top: 8px;
}
.night-moon { width: 56px; height: 56px; margin-bottom: 20px; animation: value-float 5s ease-in-out infinite; }
.night-moon svg { width: 100%; height: 100%; fill: var(--yellow); filter: drop-shadow(0 0 18px rgb(235 174 7 / 0.55)); }
.night h2 { font-size: clamp(2.125rem, 1.4rem + 2.8vw, 3.75rem); max-width: 17ch; }
.night-lead { margin-top: 16px; max-width: 34rem; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); color: var(--on-dark-muted); }
.night-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.night-item {
  padding: 22px 22px 24px; border-radius: 20px; background: rgb(255 255 255 / 0.07);
  border: 1px solid rgb(255 255 255 / 0.12);
}
.night-item h3 { font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem); color: var(--on-dark); }
.night-item:first-child h3 { color: #ffb3c6; }
.night-item:last-child h3 { color: #9fe0d3; }
.night-item p { margin-top: 10px; color: var(--on-dark-muted); font-size: 1rem; }
.night-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.night-item a { color: var(--yellow); font-weight: 800; text-underline-offset: 3px; }
.night-note { margin-top: 20px; font-size: 0.9375rem; color: var(--on-dark-muted); }

/* Need picker */
.picker {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
  margin: calc(clamp(40px, 6vw, 88px) * -0.5) 0 clamp(48px, 6vw, 96px);
}
.picker-label { font-weight: 700; color: var(--navy); }
.picker-options { display: flex; flex-wrap: wrap; gap: 10px; }
.picker-option {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 20px 6px 6px;
  border-radius: 999px; border: 2px solid var(--chip-soft); background: var(--chip-soft);
  color: var(--chip-ink); font-weight: 700; text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s, transform 0.25s var(--ease);
}
.picker-option img { width: 40px; height: 40px; border-radius: 50%; }
.picker-option:hover { border-color: var(--chip); background: var(--white); transform: translateY(-2px); }
.stage.is-highlight .stage-body { animation: highlight 1.6s var(--ease); }
@keyframes highlight {
  0% { background: transparent; }
  20% { background: var(--stage-soft); box-shadow: 0 0 0 16px var(--stage-soft); }
  100% { background: transparent; box-shadow: 0 0 0 16px transparent; }
}
.stage-body { border-radius: 20px; }

/* Booking */
.booking { background: var(--pink-soft); padding-block: var(--section-y); }
.booking-inner {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 120px); align-items: center;
}
.booking h2 { font-size: clamp(2.125rem, 1.4rem + 2.8vw, 3.75rem); color: var(--navy); }
.booking-intro { margin-top: 14px; color: var(--ink-muted); max-width: 34rem; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); }
.booking-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; margin-top: 32px;
  background: var(--white); padding: clamp(20px, 3vw, 36px); border-radius: 24px;
  box-shadow: 0 24px 50px -30px rgb(180 54 91 / 0.45);
}
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field:has(.chips), .field:has(textarea), .booking-submit { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 700; font-size: 0.9688rem; color: var(--navy); padding: 0; }
.field label span[aria-hidden], .field legend span[aria-hidden] { color: var(--pink-ink); }
.optional { font-weight: 500; color: var(--ink-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  border: 2px solid var(--line); background: var(--white); color: var(--ink);
  font: 500 1rem/1.4 var(--font-body); transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px var(--blue-soft);
}
.field [aria-invalid="true"] { border-color: var(--pink-ink); }
.field-error { min-height: 0; color: var(--pink-ink); font-size: 0.875rem; font-weight: 600; }
.field-error:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 2px solid var(--line); font-weight: 600; transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chip:hover span { border-color: var(--pink); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.booking-submit { justify-self: start; }
.booking-done {
  grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-ink); font-weight: 600;
  animation: rise 0.35s var(--ease);
}
.booking-done .icon { margin-top: 2px; stroke-width: 3; }
.booking-done a { color: inherit; font-weight: 800; }

.phone-preview { justify-self: center; width: min(340px, 100%); }
.phone {
  border-radius: 36px; background: var(--navy-night); padding: 12px;
  box-shadow: 0 40px 70px -35px rgb(10 31 64 / 0.6); rotate: 3deg;
}
.phone-top { display: flex; align-items: center; gap: 10px; padding: 12px 12px 14px; color: var(--white); }
.phone-top img { width: 42px; height: 42px; object-fit: contain; background: var(--white); border-radius: 50%; padding: 2px; }
.phone-top div { display: flex; flex-direction: column; line-height: 1.2; }
.phone-top span { font-size: 0.8125rem; color: var(--on-dark-muted); }
.phone-chat {
  display: flex; flex-direction: column; gap: 10px; min-height: 360px; padding: 16px 12px;
  border-radius: 26px; background: #efe7dc;
  background-image: radial-gradient(rgb(18 57 111 / 0.06) 1px, transparent 1px); background-size: 14px 14px;
}
.bubble {
  max-width: 88%; padding: 10px 12px; border-radius: 12px; font-size: 0.9375rem; line-height: 1.45;
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.08); white-space: pre-line;
}
.bubble-in { background: var(--white); align-self: flex-start; border-top-left-radius: 4px; }
.bubble-out { background: #d8fdd2; align-self: flex-end; border-top-right-radius: 4px; }
.bubble-out.is-updated { animation: pop 0.3s var(--ease); }
@keyframes pop { from { scale: 0.97; } }

/* FAQ */
.faq { padding-block: var(--section-y); }
.faq-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.faq h2 { font-size: clamp(2.125rem, 1.4rem + 2.8vw, 3.75rem); color: var(--navy); }
.faq-aside { position: sticky; top: calc(var(--topbar-h) + 32px); }
.faq-card {
  display: grid; justify-items: center; gap: 4px; margin-top: clamp(24px, 3vw, 40px);
  padding: 28px clamp(20px, 2.5vw, 32px) 32px; border-radius: 28px; text-align: center;
  background: var(--pink-soft); position: relative; overflow: hidden;
}
.faq-card::before {
  content: ""; position: absolute; width: 140%; aspect-ratio: 1; left: -20%; top: -62%;
  border-radius: 50%; background: var(--white); opacity: 0.55;
}
.faq-card img {
  position: relative; width: min(220px, 70%); height: auto;
  animation: value-float 4s ease-in-out infinite;
}
.faq-card-text { position: relative; display: grid; justify-items: center; gap: 8px; }
.faq-card-title { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.875rem); color: var(--navy); margin-top: 8px; }
.faq-card-text > p:not(.faq-card-title) { color: var(--ink-muted); max-width: 26rem; }
.faq-card .btn { margin-top: 12px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--pink-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4365b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: rotate 0.3s var(--ease), background-color 0.2s;
}
.faq summary:hover::after { background-color: var(--pink); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 52px 22px 0; color: var(--ink-muted); max-width: 44rem; }
.faq details[open] p { animation: rise 0.35s var(--ease); }
.faq details a { color: var(--pink-ink); font-weight: 700; }

/* Mobile action bar */
.action-bar { display: none; }

/* Motion */
@keyframes rise { from { opacity: 0; translate: 0 24px; } }
@keyframes drop-in { from { opacity: 0; translate: 0 -40px; scale: 1.06; } }
@keyframes draw-arc { from { opacity: 0; rotate: -70deg; } }
.hello, .hero h1, .hero-lead, .hero-buttons, .hero-meta { animation: rise 0.8s var(--ease) both; }
.hero h1 { animation-delay: 0.08s; }
.hero-lead { animation-delay: 0.16s; }
.hero-buttons { animation-delay: 0.24s; }
.hero-meta { animation-delay: 0.32s; }
.snap-main { animation: drop-in 0.9s var(--ease) 0.15s both; }
.snap-side { animation: drop-in 0.9s var(--ease) 0.35s both; }
.snap-third { animation: drop-in 0.9s var(--ease) 0.55s both; }
.hero-photos::before { animation: draw-arc 1.4s var(--ease) 0.2s both; }

/* Scroll reveals: only active when JS adds .reveal-ready, so content is visible by default */
.reveal-ready .rv {
  opacity: 0; translate: 0 20px;
  transition: opacity 0.55s var(--ease), translate 0.55s var(--ease), scale 0.55s var(--ease), clip-path 0.8s var(--ease), rotate 0.4s var(--ease);
  transition-delay: var(--rv-delay, 0ms);
}
.reveal-ready .rv-left { translate: -28px 0; }
.reveal-ready .rv-right { translate: 28px 0; }
.reveal-ready .rv-pop { translate: 0 10px; scale: 0.8; }
.reveal-ready .rv-photo { translate: 0 16px; clip-path: inset(8% 6% 8% 6% round 28px); }
.reveal-ready .rv-fade { translate: 0 0; }
.reveal-ready .rv-write { opacity: 1; translate: 0 0; clip-path: inset(-20% 100% -20% 0); transition-duration: 1.2s; }
.reveal-ready .rv.is-in { opacity: 1; translate: 0 0; scale: 1; clip-path: inset(-20% -20% -20% -20% round 0); }

.hero-photos { translate: calc(var(--px, 0) * 10px) calc(var(--py, 0) * 10px); transition: translate 0.4s var(--ease); }
@media (hover: hover) {
  .snap { transition: rotate 0.4s var(--ease), box-shadow 0.4s var(--ease); }
  .snap:hover { rotate: 0deg; z-index: 4; box-shadow: 0 36px 60px -24px rgb(5 15 35 / 0.75); }
  .values-list img { transition: rotate 0.3s var(--ease), scale 0.3s var(--ease); }
  .values-list li:hover img { rotate: -10deg; scale: 1.1; }
}

/* Desktop: fit the hero to the window height as well as its width */
@media (min-width: 1024px) {
  .hero-inner {
    min-height: calc(100svh - var(--topbar-h));
    padding-block: clamp(32px, 6svh, 88px);
  }
  .hello { font-size: clamp(1.75rem, 1rem + 2.6svh, 2.75rem); margin-bottom: clamp(8px, 1.6svh, 18px); }
  .hero h1 { font-size: clamp(2.5rem, min(1.4rem + 3.8vw, 0.75rem + 6.6svh), 4.75rem); }
  .hero-lead { margin-top: clamp(14px, 2.4svh, 32px); }
  .hero-buttons { margin-top: clamp(20px, 3.4svh, 44px); }
  .hero-meta { margin-top: clamp(14px, 2.4svh, 26px); }
  .hero-photos { max-width: min(640px, calc((100svh - var(--topbar-h)) * 0.8)); }
}

@media (min-width: 1600px) {
  .hero-photos { max-width: min(700px, calc((100svh - var(--topbar-h)) * 0.8)); }
}

.nav a { white-space: nowrap; }

@media (max-width: 1400px) {
  .topbar-phone span { display: none; }
}

@media (max-width: 1240px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; z-index: var(--z-menu); top: var(--topbar-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgb(10 31 64 / 0.35);
    opacity: 0; visibility: hidden; translate: 0 -8px;
    transition: opacity 0.2s, translate 0.25s var(--ease), visibility 0s 0.25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; translate: 0 0; transition: opacity 0.2s, translate 0.25s var(--ease); }
  .nav a { padding: 16px 8px; font-size: 1.125rem; border-radius: 8px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
}

@media (max-width: 1023px) {
  :root { --topbar-h: 72px; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero h1 { max-width: 15ch; }
  .hero-photos { max-width: 560px; justify-self: center; }
  .values-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .values-list li { font-size: 0.75rem; padding-inline: 6px; }
  .stage, .about-inner, .visit-inner, .booking-inner, .faq-inner { grid-template-columns: 1fr; }
  .night-inner { grid-template-columns: 1fr; }
  .night-photo { width: min(360px, 80%); }
  .faq-aside { display: contents; }
  .faq-list { order: 1; }
  .faq-card {
    order: 2; margin-top: 0; grid-template-columns: auto 1fr; justify-items: start; align-items: center;
    gap: 24px; text-align: left;
  }
  .faq-card img { width: 150px; }
  .faq-card-text { justify-items: start; }
  .phone-preview { width: min(320px, 100%); }
  .phone-chat { min-height: 240px; }
  .stage-flip .stage-photo { order: 0; }
  .stage-photo { max-width: 560px; }
  .stage-photo img { aspect-ratio: 4 / 3; }
  .about-photo { max-width: 560px; }
}

@media (max-width: 680px) {
  :root { --action-bar-h: calc(76px + env(safe-area-inset-bottom)); --topbar-h: 68px; }
  .topbar-actions .btn-small, .topbar-phone { display: none; }
  .logo-mark { width: 50px; }
  .logo-name { font-size: 1.1875rem; }
  .logo-dra { font-size: 0.75rem; }

  .hero-inner { padding-top: 36px; gap: 48px; }
  .hero-buttons .btn { flex: 1 1 100%; }
  .hero-meta li { align-items: flex-start; }
  .hero-meta .icon, .today-dot { margin-top: 4px; }
  .hero-photos { aspect-ratio: 1 / 0.95; width: 92%; }
  .snap-main { width: 64%; }
  .snap-side { width: 46%; }
  .snap-third { width: 40%; right: 2%; }

  .values-list { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 24px; }
  .values-list li { flex: 0 0 33.333%; }
  .values-list li::before { display: none; }

  .ticks { grid-template-columns: 1fr; }
  .picker-options, .picker-option { width: 100%; }
  .booking-form { grid-template-columns: 1fr; }
  .booking-submit { justify-self: stretch; }
  .faq details p { padding-right: 0; }
  .night-items { grid-template-columns: 1fr; }
  .night-buttons .btn { flex: 1 1 100%; }
  .faq-card { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 4px; }
  .faq-card-text { justify-items: center; }
  .faq-card .btn { width: 100%; }
  .stage-photo::after { inset: 6% -3% -4% 6%; }
  .stage-flip .stage-photo::after { inset: 6% 6% -4% -3%; }

  .masonry { columns: 2; }
  .tile { border-radius: 12px; }

  .visit-buttons .btn { flex: 1 1 100%; }
  .map { aspect-ratio: 1 / 1; }


  .action-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
    position: fixed; z-index: var(--z-sticky); left: 0; right: 0; bottom: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / 0.96); border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px -18px rgb(10 31 64 / 0.4);
  }
  .action-bar .btn { min-height: 54px; padding: 0 1em; }

  .viewer[open] { grid-template-columns: 1fr; padding: 72px 12px 88px; }
  .viewer-prev, .viewer-next { position: absolute; bottom: 20px; }
  .viewer-prev { left: calc(50% - 64px); }
  .viewer-next { right: calc(50% - 64px); }
  .viewer img { max-height: calc(100dvh - 220px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-delay: 0s !important;
    animation-iteration-count: 1 !important; transition-duration: 0.01ms !important;
  }
}
