/* Manantial, v4. Built after the El Pueblo #2 standard (_inspiration/websites/el-pueblo-2): same order of sections and kinds of motion,
   Manantial's own colors (cream, navy ink, the pink of the logo and the neon), photos and words. */

:root {
  --bg: #fbf6ef;
  --bg-warm: #fdeee6;
  --bg-cool: #eef2f8;
  --ink: #13213f;
  --ink-soft: #4b5672;
  --brand: #e8338a;
  --brand-deep: #c21f72;
  --brand-ink: #ffffff;
  --sky: #2f5fb3;
  --line: rgba(19, 33, 63, 0.12);
  --card: rgba(255, 255, 255, 0.72);
  --display: "Anton", "Oswald", "Arial Narrow", sans-serif;
  --text: "Manrope", "Lato", system-ui, sans-serif;
  --m: clamp(20px, 2.8vw, 40px);
  --radius: 18px;
  --shadow: 0 30px 60px -28px rgba(19, 33, 63, 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; transition: background-color 900ms ease; }
html[data-palette="warm"] { background: var(--bg-warm); }
html[data-palette="cool"] { background: var(--bg-cool); }
body { margin: 0; font: 400 17px/1.6 var(--text); overflow-x: clip; }
html[lang="es"] [data-l="en"], html[lang="en"] [data-l="es"] { display: none !important; }
img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.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 { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

.eyebrow { font: 700 12px/1.3 var(--text); letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand-deep); margin-bottom: 14px; }
.display { font-family: var(--display); text-transform: uppercase; line-height: 0.92; letter-spacing: 0.005em; }
.button { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent; text-decoration: none; font: 700 14px/1 var(--text); cursor: pointer; transition: transform 160ms var(--ease), background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.button:active { transform: scale(0.97); }
.button-primary { background: var(--brand); color: var(--brand-ink); }
.button-primary:hover { background: var(--brand-deep); }
.button-ghost { background: rgba(255, 255, 255, 0.75); border-color: var(--line); color: var(--ink); }
.button-ghost:hover { border-color: var(--ink); }
.button-dark { background: rgba(19, 33, 63, 0.55); border-color: rgba(255, 255, 255, 0.45); color: #fff; backdrop-filter: blur(6px); }
.button-dark:hover { background: rgba(19, 33, 63, 0.8); }
.button svg { width: 16px; height: 16px; }

/* Soft color fields behind the cream sections */
.fields { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.field { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; will-change: transform; }
.field-a { width: 46vw; height: 46vw; left: -12vw; top: 8%; background: #f8c4dc; }
.field-b { width: 40vw; height: 40vw; right: -10vw; top: 30%; background: #c7d9f4; }
.field-c { width: 30vw; height: 30vw; left: 40%; bottom: -10%; background: #ffdcc0; }

/* Scroll progress and the top bar */
.progress { position: fixed; left: 0; top: 0; z-index: 60; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--brand), var(--sky)); }
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 18px; padding: 12px var(--m); transition: background-color 300ms ease, box-shadow 300ms ease, color 300ms ease; color: #fff; }
.nav.is-solid { background: rgba(251, 246, 239, 0.9); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); color: var(--ink); }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.nav-brand img { width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--brand); padding: 3px; }
.nav-brand b { font: 400 22px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { text-decoration: none; font: 700 12px/1 var(--text); letter-spacing: 0.16em; text-transform: uppercase; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.is-current { border-color: var(--brand); }
.order-wrap { position: relative; }
.order-btn { background: var(--brand); color: #fff; border: 0; border-radius: 999px; padding: 10px 16px; font: 700 13px/1 var(--text); cursor: pointer; }
.order-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 270px; padding: 10px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: var(--shadow); opacity: 0; transform: translateY(-6px) scale(0.98); pointer-events: none; transition: opacity 180ms ease, transform 220ms var(--ease); transform-origin: top right; }
.order-wrap.is-open .order-menu { opacity: 1; transform: none; pointer-events: auto; }
.order-menu p { font: 700 11px/1.4 var(--text); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); padding: 6px 10px 8px; }
.order-menu a { display: flex; justify-content: space-between; align-items: center; padding: 12px 10px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.order-menu a:hover { background: var(--bg); }
.order-menu a span { font-weight: 400; color: var(--ink-soft); font-size: 13px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 8px 12px; border: 1.5px solid currentColor; background: transparent; font: 700 12px/1 var(--text); cursor: pointer; opacity: 0.9; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
html.motion-off .chip.motion i { background: #9aa3b5; }
@media (max-width: 899px) { .nav-links, .nav .chip.motion { display: none; } .nav { gap: 10px; } }

/* 1. Entrance: the film */
.entrance { position: relative; height: 100svh; min-height: 560px; overflow: hidden; color: #fff; background: #0f1830; }
.entrance video, .entrance .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.entrance-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 18, 36, 0.45) 0%, rgba(10, 18, 36, 0) 22%, rgba(10, 18, 36, 0) 45%, rgba(10, 18, 36, 0.82) 100%); }
.entrance-text { position: absolute; left: var(--m); right: var(--m); bottom: clamp(28px, 6vh, 64px); z-index: 2; max-width: 760px; }
.entrance h1 { font: 400 clamp(54px, 9vw, 132px)/0.9 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.entrance .tag { margin: 10px 0 8px; font: 700 12px/1.4 var(--text); letter-spacing: 0.2em; text-transform: uppercase; }
.entrance .where { max-width: 46ch; color: rgba(255, 255, 255, 0.9); }
.entrance .where b { color: #fff; }
.entrance-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.rise { opacity: 0; transform: translateY(24px); animation: rise 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* 2. Brand: the giant title and the food trail */
.brand { position: relative; min-height: 100svh; padding: 120px var(--m) 90px; overflow: hidden; display: grid; align-content: center; }
.brand-inner { position: relative; z-index: 2; max-width: 1400px; width: 100%; margin: 0 auto; }
.brand-title { font: 400 clamp(90px, 17vw, 270px)/0.86 var(--display); text-transform: uppercase; letter-spacing: 0.005em; }
.brand-title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.brand-title .line-inner { display: inline-block; background: linear-gradient(100deg, var(--brand) 0%, #d8366f 35%, var(--ink) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; will-change: transform, opacity; }
.brand-title .line:nth-child(2) .line-inner { background: linear-gradient(100deg, var(--ink) 10%, var(--sky) 100%); -webkit-background-clip: text; background-clip: text; font-size: 0.42em; letter-spacing: 0.04em; }
.brand-row { display: grid; gap: 30px; margin-top: 26px; align-items: end; }
.brand-copy { max-width: 470px; padding: 22px 24px; border-radius: var(--radius); background: var(--card); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.brand-copy .lead { font-size: 18px; line-height: 1.55; }
.hint { margin-top: 12px; font-size: 12px; color: var(--ink-soft); }
.hint .touch { display: none; }
@media (pointer: coarse) { .hint .mouse { display: none; } .hint .touch { display: inline; } }
.brand-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.trail-preview { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; justify-content: flex-end; }
.trail-preview li { width: clamp(90px, 9vw, 150px); aspect-ratio: 1; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transform: rotate(var(--r, -3deg)); transition: opacity 400ms ease; }
.trail-preview img { width: 100%; height: 100%; object-fit: cover; }
.brand.is-active .trail-preview li { opacity: 0.35; }
.trail-stage { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.ftrail-img { position: absolute; width: clamp(120px, 12vw, 190px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); opacity: 0; left: 0; top: 0; }
@media (min-width: 900px) { .brand-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 899px) { .trail-preview { justify-content: flex-start; } }

/* 3. Story: pinned photo, words slide across */
.story { position: relative; height: 200svh; }
.story-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #fff; }
.story-media { position: absolute; inset: 0; margin: 0; }
.story-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); will-change: transform; }
.story-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, rgba(19, 33, 63, 0.55) 100%); }
.story-title { position: absolute; left: 0; top: 50%; z-index: 2; transform: translateY(-50%); white-space: nowrap; font: 400 clamp(90px, 15vw, 240px)/1 var(--display); text-transform: uppercase; color: var(--ink); }
.story-track { display: inline-block; will-change: transform; }
.story-track em { font-style: normal; color: var(--brand); }
.story-caption { position: absolute; left: var(--m); bottom: 34px; z-index: 2; max-width: 40ch; color: #fff; font-size: 15px; }
@media (max-width: 899px) {
  .story { height: auto; }
  .story-pin { position: relative; height: 80svh; }
  .story-title { white-space: normal; left: var(--m); right: var(--m); top: 18%; transform: none; font-size: clamp(54px, 15vw, 90px); line-height: 0.95; }
}

/* 4. Gallery: the spiral */
.gallery { position: relative; }
.gallery-head { position: relative; z-index: 2; padding: 130px var(--m) 0; max-width: 1400px; margin: 0 auto; }
.gallery-head h2 { font: 400 clamp(56px, 7.5vw, 120px)/0.92 var(--display); text-transform: uppercase; max-width: 9.5ch; }
.gallery-head p { margin-top: 18px; max-width: 46ch; font-size: 14px; color: var(--ink-soft); }
.spiral-track { position: relative; height: 420svh; }
.spiral-pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-rows: 1fr auto; padding: 80px var(--m) 32px; }
.spiral-stage { position: relative; perspective: 1400px; cursor: grab; touch-action: pan-y; }
.spiral-items { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; transform-style: preserve-3d; }
.spiral-item { position: absolute; left: 50%; top: 50%; width: min(46vw, 640px); aspect-ratio: 4 / 3; will-change: transform, opacity; }
.spiral-item.portrait { width: min(30vw, 420px); aspect-ratio: 3 / 4; }
.spiral-item button { display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: #ddd; box-shadow: var(--shadow); cursor: zoom-in; position: relative; }
.spiral-item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.spiral-item .haze { position: absolute; inset: 0; background: var(--bg); opacity: 0; pointer-events: none; }
.spiral-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; max-width: 1400px; width: 100%; margin: 0 auto; }
.spiral-caption { max-width: 34ch; font-size: 17px; font-weight: 600; min-height: 3.2em; }
.spiral-ctrl { display: flex; align-items: center; gap: 14px; font: 700 12px/1 var(--text); letter-spacing: 0.1em; color: var(--ink-soft); }
.spiral-bar { width: 90px; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.spiral-bar i { position: absolute; inset: 0; background: var(--brand); transform-origin: 0 50%; transform: scaleX(0); transition: transform 300ms ease; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; font-size: 20px; line-height: 1; }
.round:hover { border-color: var(--ink); }
.round:disabled { opacity: 0.35; cursor: default; }
.gallery.is-flat .spiral-track { height: auto; }
.gallery.is-flat .spiral-pin { position: relative; height: auto; padding-top: 30px; display: block; }
.gallery.is-flat .spiral-stage { perspective: none; cursor: auto; }
.gallery.is-flat .spiral-items { position: relative; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
.gallery.is-flat .spiral-item { position: relative; left: auto; top: auto; flex: 0 0 78vw; width: 78vw; aspect-ratio: 4 / 3; transform: none !important; opacity: 1 !important; scroll-snap-align: center; }
.gallery.is-flat .spiral-item.portrait { flex-basis: 62vw; width: 62vw; aspect-ratio: 3 / 4; }
.gallery.is-flat .spiral-foot { margin-top: 16px; }

/* 5. Featured menu */
.featured { position: relative; padding: 140px var(--m); overflow: hidden; }
.featured-inner { position: relative; z-index: 2; max-width: 1400px; margin: 0 auto; display: grid; gap: 50px; }
.section-title { font: 400 clamp(56px, 7vw, 116px)/0.92 var(--display); text-transform: uppercase; }
.featured-note { margin: 18px 0 24px; max-width: 34ch; color: var(--ink-soft); }
.featured-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
.fcard a { display: block; text-decoration: none; }
.fcard-img { display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #1b2238; box-shadow: var(--shadow); }
.fcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.fcard a:hover .fcard-img img { transform: scale(1.05); }
.fcard-name { display: block; margin-top: 14px; font: 400 26px/1 var(--display); text-transform: uppercase; }
.fcard-cat { display: block; margin-top: 6px; font: 700 11px/1.3 var(--text); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
@media (min-width: 900px) {
  .featured-inner { grid-template-columns: 0.8fr 1.6fr; align-items: start; }
  .featured-head { position: sticky; top: 120px; }
  .featured-grid { grid-template-columns: repeat(3, 1fr); }
  .fcard:nth-child(3n+2) { transform: translateY(46px); }
}

/* 6. Rooms: one place, five views */
.rooms { position: relative; padding: 140px var(--m); overflow: hidden; }
.rooms-word { position: absolute; left: -2vw; top: 60px; z-index: 0; font: 400 clamp(160px, 26vw, 420px)/0.8 var(--display); text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.5px rgba(19, 33, 63, 0.1); white-space: nowrap; pointer-events: none; }
.rooms-inner { position: relative; z-index: 2; max-width: 1400px; margin: 0 auto; display: grid; gap: 40px; }
.rooms-caption { margin: 18px 0 10px; max-width: 42ch; min-height: 5em; transition: opacity 260ms ease; }
.rooms.is-switching .rooms-caption, .rooms.is-switching .rooms-index { opacity: 0; }
.rooms-note { font-size: 13px; color: var(--ink-soft); max-width: 44ch; }
.rooms-index { margin: 20px 0 12px; font: 700 12px/1 var(--text); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-deep); transition: opacity 260ms ease; }
.viewpoints { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.viewpoint { border: 1.5px solid var(--line); background: rgba(255, 255, 255, 0.8); border-radius: 999px; padding: 9px 14px; font: 700 13px/1 var(--text); cursor: pointer; }
.viewpoint.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.rooms-arrows { display: flex; gap: 10px; }
.rooms-stack { position: relative; aspect-ratio: 4 / 5; max-height: 80svh; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #ddd; justify-self: end; width: 100%; }
.rooms-view { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 700ms ease, transform 1200ms var(--ease); }
.rooms-view.is-active { opacity: 1; transform: none; }
.rooms-open { position: absolute; right: 14px; bottom: 14px; z-index: 2; }
@media (min-width: 900px) { .rooms-inner { grid-template-columns: 1fr 1fr; align-items: center; } .rooms-stack { max-width: 560px; } }

/* 7. Statement, the rotating "next", the name in dots */
.type { position: relative; padding: 160px var(--m) 120px; text-align: center; overflow: hidden; }
.statement { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; font: 400 clamp(46px, 6.4vw, 104px)/1 var(--display); text-transform: uppercase; }
.statement .w { color: rgba(19, 33, 63, 0.16); transition: color 400ms ease; }
.statement .w.is-on { color: var(--ink); }
.statement em { font-style: normal; }
.statement .w.is-on em { color: var(--brand); }
.textloop { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 44px; }
.textloop-label { font: 700 11px/1 var(--text); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }
.textloop-window { position: relative; height: 1.5em; width: 260px; overflow: hidden; text-align: left; font-size: 18px; font-weight: 600; }
.textloop-item { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(100%); transition: transform 700ms var(--ease), opacity 500ms ease; white-space: nowrap; }
.textloop-item.is-active { opacity: 1; transform: none; }
.textloop-item.is-leaving { opacity: 0; transform: translateY(-100%); }
.particle-wrap { position: relative; z-index: 2; margin: 80px auto 0; max-width: 1100px; height: clamp(160px, 22vw, 300px); }
.particle-text { position: absolute; inset: 0; display: grid; place-items: center; font: 400 clamp(110px, 17vw, 250px)/1 var(--display); text-transform: uppercase; color: rgba(19, 33, 63, 0.08); }
.particle-canvas { position: absolute; inset: 0; }
.particle-hint { position: absolute; left: 0; right: 0; bottom: -34px; font: 700 11px/1 var(--text); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }

/* 8. Atmosphere: one big picture with depth */
.atmo { position: relative; padding: 40px var(--m) 140px; }
.atmo-figure { position: relative; margin: 0 auto; max-width: 1400px; height: 82svh; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); clip-path: inset(6% 4% 6% 4% round 26px); transition: clip-path 1200ms var(--ease); }
.atmo-figure.is-in { clip-path: inset(0 0 0 0 round 26px); }
.atmo-media { position: absolute; inset: -8% 0; will-change: transform; }
.atmo-media img { width: 100%; height: 100%; object-fit: cover; }
.atmo-figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 18, 36, 0.7) 0%, rgba(10, 18, 36, 0) 60%); }
.atmo-caption { position: absolute; left: var(--m); bottom: 44px; z-index: 2; color: #fff; max-width: 520px; }
.atmo-caption .eyebrow { color: #ffd1e6; }
.atmo-title { font: 400 clamp(54px, 7vw, 110px)/0.92 var(--display); text-transform: uppercase; margin-bottom: 14px; }

/* 9. Visit */
.visit { position: relative; padding: 120px var(--m); overflow: hidden; }
.visit-inner { position: relative; z-index: 2; max-width: 1400px; margin: 0 auto; display: grid; gap: 40px; }
.visit dl { display: grid; gap: 22px; margin: 26px 0; }
.visit dt { font: 700 11px/1 var(--text); letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand-deep); margin-bottom: 6px; }
.visit dd { margin: 0; font-size: 18px; }
.visit .today { font-weight: 800; color: var(--brand-deep); }
.visit-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.visit-map { min-height: 440px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #dfe5ef; position: relative; }
.visit-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.visit-map a { position: absolute; left: 16px; bottom: 16px; font-size: 13px; }
.rating { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; text-decoration: none; font-weight: 700; }
.rating .stars { color: #f2a91f; letter-spacing: 2px; }
@media (min-width: 900px) { .visit-inner { grid-template-columns: 1fr 1.1fr; align-items: stretch; } }

/* 10. Closing */
.closing { position: relative; padding: 60px var(--m) 110px; overflow: hidden; }
.closing-word { font: 400 clamp(110px, 21vw, 360px)/0.85 var(--display); text-transform: uppercase; text-align: center; background: linear-gradient(100deg, var(--brand), var(--ink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer { max-width: 1400px; margin: 40px auto 0; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.footer a { color: var(--ink); }

/* 11. Phone action bar */
.action-bar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 55; display: none; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px; border-radius: 18px; background: rgba(19, 33, 63, 0.94); backdrop-filter: blur(10px); box-shadow: var(--shadow); transform: translateY(140%); transition: transform 400ms var(--ease); }
.action-bar.is-shown { transform: none; }
.action-bar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 12px; color: #fff; text-decoration: none; font: 700 11px/1.2 var(--text); }
.action-bar a.hot { background: var(--brand); }
.action-bar svg { width: 18px; height: 18px; }
@media (max-width: 899px) { .action-bar { display: grid; } .closing { padding-bottom: 130px; } }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 18, 36, 0.86); }
.lightbox img { max-width: 94vw; max-height: 82vh; border-radius: 14px; margin: 0 auto; }
.lightbox p { color: #fff; text-align: center; margin-top: 12px; }
.lightbox .round { position: fixed; right: 18px; top: 18px; }

/* Reveal on scroll */
[data-reveal] { transition: opacity 900ms var(--ease), transform 1000ms var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(30px); }
.js [data-reveal="scale"]:not(.is-in) { transform: translateY(30px) scale(0.94); }
[data-lines].is-split .ln { display: block; overflow: hidden; padding-bottom: 0.04em; }
[data-lines].is-split .ln-in { display: inline-block; transform: translateY(105%); transition: transform 1000ms var(--ease), opacity 600ms ease; transition-delay: calc(var(--i, 0) * 110ms); }
[data-lines].is-in .ln-in { transform: none; }
[data-lines].is-out .ln-in { transform: translateY(-14%); opacity: 0.35; }

/* Motion off (the switch) and reduced motion: everything still, everything visible */
html.motion-off [data-reveal], html.motion-off [data-lines] .ln-in, html.motion-off .rise { opacity: 1 !important; transform: none !important; animation: none !important; }
html.motion-off .atmo-figure { clip-path: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal], [data-lines] .ln-in, .rise { opacity: 1 !important; transform: none !important; animation: none !important; } .atmo-figure { clip-path: none; } }

/* Fixes after the first look: room for accents above the tall letters, no sideways scroll, phone sizes */
.brand-title .line, [data-lines].is-split .ln { padding-top: 0.16em; margin-top: -0.16em; }
.gallery, .featured, .visit, .type { overflow-x: clip; }
.brand-title { font-size: clamp(58px, 17vw, 270px); }
.closing-word { font-size: clamp(64px, 20vw, 360px); }
.particle-text { font-size: clamp(56px, 16vw, 250px); }
@media (max-width: 899px) {
  .trail-preview { gap: 10px; }
  .trail-preview li { width: 20vw; }
  .spiral-foot { flex-direction: column; align-items: flex-start; }
  .spiral-caption { min-height: 0; }
  .particle-wrap { height: 26vw; margin-top: 50px; }
}
/* the gradient only paints inside the box: give accents (Ñ, Í, Ó) room above the letters */
.brand-title .line-inner, .closing-word { padding-top: 0.2em; margin-top: -0.2em; }

/* Higgsfield clips (made from the real photos) fill their frames like the photos did */
.story-media video, .atmo-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-media video { transform: scale(1.06); will-change: transform; }
