:root {
  --mx: 0; --my: 0;
  --back-opacity: 1; --back-x: 0px; --back-y: 0px; --back-scale: 0.76;
  --four-y: 10vh; --four-scale: 0.78;
  --bazaar-y: 20vh;
  --blur-px: 0px; --back-brightness: 1;
  --bazaar-blur-px: 0px; --bazaar-brightness: 1; --bazaar-saturation: 1;
  --shade-opacity: 1; --shade-z: 2;
  --shade-top-alpha: 0; --shade-mid-alpha: 0; --shade-bottom-alpha: 0;
  --blur-tint: 74, 181, 224;
  --title-y: 0px; --title-scale: 1; --title-opacity: 1;
  --bridge-x: -50%; --bridge-y: 0px; --bridge-bottom: 5vh;
  --bridge-width: 67.2vw; --bridge-scale: 1.02;
  --split-left-x: -50%;  --split-left-y: 0px;  --split-left-scale: 1;
  --split-right-x: -50%; --split-right-y: 0px; --split-right-scale: 1;
  --frame2-opacity: 0; --frame2-x: -50%; --frame2-y: -50%; --frame2-scale: 1.06;
  --intro-copy-y: 0px; --intro-copy-opacity: 1;
  --panel2-opacity: 0; --panel2-y: calc(-50% + 58px);
  --panel3-opacity: 0; --panel3-y: calc(-50% + 58px);
  --sights-opacity: 0; --sights-controls-opacity: 0; --sights-y: 0px;
  --sights-enter-x: 420vw; --sights-visibility: hidden;
  --sights-shift: 0px; --sights-scale: 1;
  --sights-top: clamp(112px, 19vh, 220px);
  --sights-screen-top: clamp(112px, 19vh, 220px);
  --ink: #111411; --paper: #fdf1e1; --shadow: rgba(0, 0, 0, 0.32);
  /*
   * Ogg Text Medium only loads on its original origin: its CDN sends no CORS headers,
   * so every other host blocks it (and the page fell back to Times). Fraunces is the
   * closest free cut; weight and optical size are pinned to match Ogg Text's sturdier colour.
   */
  --display: "Ogg Medium", "Fraunces", serif;
  --display-variation: "wght" 560, "opsz" 40;
  font-family: Inter, Satoshi, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--paper);
  background: #0b1110;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: #0b1110;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  background: #0b1110;
}

button {
  border: 0;
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.cinema-scroll {
  position: relative;
  height: calc(100vh + 3700px);
}

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background: #7fb4d4;
}

.world,
.back-stack,
.sky-img,
.shade,
.scene-img,
.site-header,
.sights-slider,
.hero-title,
.intro-copy,
.story-panel {
  position: absolute;
}

.world {
  inset: 0;
  overflow: hidden;
  /*
   * clip, not just hidden: a hidden box can still be scrolled by the browser, and
   * loading #routes made it slide the whole world sideways to reach the off-screen carousel.
   */
  overflow: clip;
  background: #79b7dd;
}

.site-header {
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: 32px;
  padding: 32px;
  color: rgba(253, 241, 225, 0.86);
  pointer-events: auto;
}

/* A faint zenith shade so the cream nav holds up over bright cloud. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -48px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 34, 52, 0.24), rgba(8, 34, 52, 0));
  pointer-events: none;
}

.site-logo {
  justify-self: start;
  color: rgba(253, 241, 225, 0.92);
  font-family: var(--display);
  font-variation-settings: var(--display-variation);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.14), 0 2px 16px rgba(0, 0, 0, 0.2);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 2.2vw, 44px);
}

.site-nav a,
.language-switcher {
  color: rgba(253, 241, 225, 0.86);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.14), 0 2px 16px rgba(0, 0, 0, 0.2);
}

.site-nav a {
  position: relative;
  font-size: 20px;
  font-weight: 400;
  text-decoration: none;
  transition: color 320ms ease;
}

/* Chapter marker: a single dot under the section currently on stage. */
.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  transform: translateX(-50%) scale(0.4);
  transition: opacity 320ms ease, transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav a[aria-current="true"] {
  color: #fdf1e1;
}

.site-nav a[aria-current="true"]::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

@media (hover: hover) {
  .site-nav a:hover {
    color: #fdf1e1;
  }
}

.language-switcher {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  color: rgba(253, 241, 225, 0.86);
  background: transparent;
  font-size: 16px;
  cursor: pointer;
}

.language-switcher span {
  display: inline-flex;
  line-height: 1;
}

.scene-img {
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform, opacity, filter;
  pointer-events: none;
}

.sky-img {
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  filter: blur(var(--blur-px)) brightness(var(--back-brightness));
}

.back-stack {
  z-index: 1;
  top: 0;
  bottom: 0;
  left: -3vw;
  right: -3vw;
  opacity: var(--back-opacity);
  transform: translate3d(var(--back-x), var(--back-y), 0) scale(var(--back-scale));
  transform-origin: 50% 100%;
  will-change: transform, filter, opacity;
}

.back-img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(var(--blur-px)) brightness(var(--back-brightness));
}

.back-bazaar,
.back-four {
  top: auto;
  bottom: 0;
  left: 48%;
  right: auto;
  width: 112%;
  height: auto;
  object-fit: contain;
}

.back-bazaar {
  z-index: 3;
  opacity: 1;
  filter: blur(var(--bazaar-blur-px)) brightness(var(--bazaar-brightness)) saturate(var(--bazaar-saturation));
  transform: translate3d(-50%, var(--bazaar-y), 0) scale(0.86);
}

.back-four {
  z-index: 1;
  opacity: 0.72;
  mix-blend-mode: screen;
  transform: translate3d(-50%, calc(var(--four-y) - 110px), 0) scale(var(--four-scale));
}

.sights-slider {
  z-index: 5;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  opacity: 1;
  visibility: var(--sights-visibility);
  transform: translate3d(var(--sights-enter-x), var(--sights-y), 0);
  pointer-events: auto;
  will-change: transform;
}

.coverflow {
  /* Instagram-native 4:5 portrait cards. --cover-size stays as the width alias. */
  --cover-w: clamp(150px, 15vw, 290px);
  --cover-h: calc(var(--cover-w) * 1.25);
  --cover-size: var(--cover-w);
  --cover-radius: 14px;
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: visible;
}

.coverflow-list {
  /* Positioned so item.offsetLeft is measured inside the scroller. */
  position: relative;
  width: 90vw;
  height: 100%;
  display: flex;
  align-items: center;
  list-style-type: none;
  padding: 1rem 0;
  margin: 0;
  overflow-x: auto;
  overflow-y: visible;
  overflow-anchor: none;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  contain: inline-size;
  /* Horizontal swipes drive the covers; vertical swipes still scroll the page. */
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.coverflow-list::-webkit-scrollbar {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .coverflow-list { cursor: grab; }
}

/* Snap is released while a mouse drag steers the row, then restored once it settles. */
.coverflow-list.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.coverflow-item {
  position: relative;
  flex: 1 0 var(--cover-w);
  width: var(--cover-w);
  height: var(--cover-h);
  display: grid;
  place-items: center;
  scroll-snap-align: center;
  transform-style: preserve-3d;
  perspective: 100vmin;
  background: transparent;
}

.coverflow-image-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--cover-radius);
  outline: none;
  translate: -50% -50%;
  transform-origin: 100% 50%;
  transform-style: preserve-3d;
  perspective: 100vmin;
  -webkit-tap-highlight-color: transparent;
}

.coverflow-image-wrapper:focus-visible img {
  outline: 3px solid #fdf1e1;
  outline-offset: 4px;
}

.coverflow-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: var(--cover-radius);
  background: #1c2624;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.22);
  -webkit-box-reflect: below 1vmin linear-gradient(transparent 0 58%, hsl(0 0% 100% / 0.6) 100%);
}

/* No transition here: the loop's clone swap would otherwise flash the ring. */
.coverflow-item.is-active img {
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(253, 241, 225, 0.6);
}

@media (hover: hover) and (pointer: fine) {
  .coverflow-item.is-active .coverflow-image-wrapper { cursor: pointer; }
  .coverflow-list.is-dragging .coverflow-image-wrapper { cursor: grabbing; }
}

/* Caption pill: which photo is centred, and where the whole set lives. */
.coverflow-meta {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 6vh, 64px);
  z-index: 1010;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 6px 6px 20px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(253, 241, 225, 0.94);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  opacity: var(--sights-controls-opacity);
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
}

.coverflow.is-ready .coverflow-meta {
  pointer-events: auto;
}

.coverflow-caption {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
}

.coverflow-count {
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  opacity: 0.55;
}

.coverflow-tag {
  display: inline-block;
  min-width: 7.5ch;
  font-family: var(--display);
  font-variation-settings: var(--display-variation);
  font-size: 1.2rem;
  line-height: 1;
}

.coverflow-handle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fdf1e1;
  background: var(--ink);
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 240ms ease;
}

.coverflow-handle:focus-visible {
  outline: 3px solid #fdf1e1;
  outline-offset: 3px;
}

@media (hover: hover) {
  .coverflow-handle:hover { background: #2a312c; }
}

/*
 * The 3D pass only runs where scroll-driven animations exist. Elsewhere a
 * zero-length animation would freeze every cover on its last keyframe
 * (opacity 0), so those browsers get the flat snapping row instead.
 */
@supports (animation-timeline: view()) {
  .coverflow-item {
    view-timeline: --cover;
    view-timeline-axis: inline;
    animation: coverflow-z both linear;
    animation-timeline: --cover;
    animation-range: cover;
  }

  .coverflow-image-wrapper {
    animation: coverflow-shrink both linear;
    animation-timeline: --cover;
    animation-range: cover;
  }

  .coverflow-item img {
    animation: coverflow-rotate both linear;
    animation-timeline: --cover;
    animation-range: cover;
  }
}

@keyframes coverflow-shrink {
  0% { scale: 0.75; opacity: 0; transform-origin: -150% 50%; }
  5% { opacity: 1; }
  10% { opacity: 1; scale: 1; transform-origin: 50% 50%; }
  40% { scale: 1; opacity: 1; transform: translate3d(0, 0, 0vmin); }
  50% { scale: 1.2; opacity: 1; transform: translate3d(0, 0, 15vmin); }
  60% { scale: 1; opacity: 1; transform: translate3d(0, 0, 0vmin); }
  90% { opacity: 1; transform-origin: 50% 50%; scale: 1; }
  95% { opacity: 1; }
  100% { scale: 0.75; opacity: 0; transform-origin: 250% 50%; }
}

@keyframes coverflow-z {
  0%, 100% { z-index: 1; }
  50% { z-index: 100; }
}

@keyframes coverflow-rotate {
  0% { z-index: 1; transform: translate(-80%, 0) rotateY(-33deg); }
  20% { scale: 1; transform: translate(0%, 0) rotateY(-33deg); }
  40% { transform: translate(15%, 0) rotateY(-20deg); }
  50% { scale: 1.2; transform: translate(0, 0) rotateY(0deg); }
  60% { transform: translate(-15%, 0) rotateY(20deg); }
  80% { scale: 1; transform: translate(0%, 0) rotateY(33deg); }
  100% { z-index: 1; transform: translate(80%, 0) rotateY(33deg); }
}

.coverflow-nav {
  position: absolute;
  top: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1010;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  outline: none;
  opacity: var(--sights-controls-opacity);
  color: #333;
  background: rgba(253, 241, 225, 0.92);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-50%);
  transition: background 300ms ease-out, transform 200ms ease-out, box-shadow 300ms ease-out;
  cursor: pointer;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
}

.coverflow.is-ready .coverflow-nav {
  pointer-events: auto;
}

.coverflow-nav:focus-visible {
  outline: 3px solid #fdf1e1;
  outline-offset: 3px;
}

@media (hover: hover) {
  .coverflow-nav:hover {
    background: #fdf1e1;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  }
}

.coverflow-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.coverflow-nav svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.coverflow-prev {
  left: 2.5rem;
}

.coverflow-next {
  right: 2.5rem;
}

.hero-title {
  z-index: 3;
  left: 50%;
  top: clamp(84px, 11vh, 150px);
  width: min(94vw, 1780px);
  margin: 0;
  color: #fdf1e1;
  font-family: var(--display);
  font-variation-settings: var(--display-variation);
  font-size: min(14rem, 12.5vw);
  font-weight: 500;
  line-height: 0.78;
  text-align: center;
  text-shadow: none;
  transform: translate3d(-50%, var(--title-y), 0) scale(var(--title-scale));
  opacity: var(--title-opacity);
  will-change: transform, opacity;
}

.bridge-img {
  z-index: 4;
  left: 50%;
  bottom: var(--bridge-bottom);
  width: min(var(--bridge-width), 2140px);
  height: auto;
  transform: translate3d(var(--bridge-x), var(--bridge-y), 0) scale(var(--bridge-scale));
  transform-origin: 50% 48%;
}

.splitframe-img {
  z-index: 6;
  left: 50%;
  bottom: -2vh;
  width: min(118vw, 2240px);
  height: auto;
  pointer-events: none;
}

.splitframe-left {
  transform: translate3d(var(--split-left-x), var(--split-left-y), 0) scale(var(--split-left-scale));
  transform-origin: 21% 52%;
}

.splitframe-right {
  transform: translate3d(var(--split-right-x), var(--split-right-y), 0) scale(var(--split-right-scale));
  transform-origin: 79% 52%;
}

.frame-two-img {
  z-index: 5;
  filter: none !important;
  backdrop-filter: none;
  left: 50%;
  top: 50%;
  width: min(122vw, 2160px);
  height: auto;
  opacity: var(--frame2-opacity);
  transform: translate3d(var(--frame2-x), var(--frame2-y), 0) scale(var(--frame2-scale));
  transform-origin: 50% 48%;
}

.shade {
  inset: 0;
  z-index: var(--shade-z);
  pointer-events: none;
  opacity: var(--shade-opacity);
  background: linear-gradient(
    180deg,
    rgba(var(--blur-tint), var(--shade-top-alpha)) 0%,
    rgba(var(--blur-tint), var(--shade-mid-alpha)) 48%,
    rgba(var(--blur-tint), var(--shade-bottom-alpha)) 100%
  );
}

.intro-copy {
  z-index: 9;
  left: 50%;
  bottom: clamp(56px, 28vh, 400px);
  width: min(560px, calc(100vw - 40px));
  text-align: center;
  transform: translate3d(-50%, var(--intro-copy-y), 0);
  opacity: var(--intro-copy-opacity);
  will-change: transform, opacity;
}

.intro-copy p {
  margin: 0 auto;
  max-width: 560px;
  color: #fdf1e1;
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.18;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.hero-tags span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 25px;
  color: var(--ink);
  border-radius: 999px;
  background: #fdf1e1;
  font-size: 0.98rem;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.story-panel {
  z-index: 10;
  left: 50%;
  top: 45%;
  width: min(760px, calc(100vw - 42px));
  text-align: center;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform, opacity;
}

.story-panel h2 {
  margin: 0;
  color: #fdf1e1;
  font-family: var(--display);
  font-variation-settings: var(--display-variation);
  font-size: 4.75rem;
  font-weight: 500;
  line-height: 0.95;
  text-shadow: 0 16px 38px var(--shadow);
}

.story-panel p {
  width: min(520px, 100%);
  margin: 26px auto 0;
  color: #fdf1e1;
  font-size: 1.14rem;
  font-weight: 500;
  line-height: 1.18;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.story-panel-bridge {
  top: 60%;
  opacity: var(--panel2-opacity);
  transform: translate3d(-50%, var(--panel2-y), 0);
}

.story-panel-bazaar {
  top: 29%;
  opacity: var(--panel3-opacity);
  transform: translate3d(-50%, var(--panel3-y), 0);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 86px;
  width: min(470px, 100%);
  margin: 72px auto 0;
}

.facts dt {
  color: #fdf1e1;
  font-family: var(--display);
  font-variation-settings: var(--display-variation);
  font-size: 4.2rem;
  font-weight: 500;
  line-height: 0.9;
  text-shadow: 0 14px 34px var(--shadow);
}

.facts dd {
  margin: 18px 0 0;
  color: #fdf1e1;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.14;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.note-button {
  min-height: 50px;
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 28px;
  border-radius: 999px;
  color: var(--ink);
  background: #fdf1e1;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
}

.note-button span:first-child {
  font-size: 1.25rem;
  line-height: 1;
}

@media (max-width: 1500px) {
  .story-panel h2 { font-size: 4.1rem; }
}

@media (max-width: 1100px) {
  .hero-title { top: 15vh; font-size: 7.5rem; }
  .bridge-img { width: 138vw; }
  .frame-two-img { width: 132vw; }
  .story-panel h2 { font-size: 3.2rem; }
  .facts { gap: 34px; margin-top: 44px; }
  .facts dt { font-size: 3.2rem; }
}

/* Tablets: the spec's 260px side columns overflow and push the language switcher off-screen. */
@media (max-width: 1000px) {
  .site-header { grid-template-columns: auto 1fr auto; gap: 24px; }
}

@media (max-width: 768px) {
  .coverflow-nav { width: 46px; height: 46px; }
  .coverflow-nav svg { width: 22px; height: 22px; }
  .coverflow-prev { left: 1rem; }
  .coverflow-next { right: 1rem; }
}

/* Below ~740px even the compact header can't hold one row; use the spec's two-row phone header. */
@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; gap: 18px; padding: 24px; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start;
              gap: 18px; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  /* Room for the chapter dot inside the scrolling nav without shifting the layout. */
  .site-nav { padding-bottom: 14px; margin-bottom: -14px; }
}

@media (max-width: 640px) {
  .stage { min-height: 640px; }
  .site-header { grid-template-columns: 1fr auto; gap: 18px; padding: 24px; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start;
              gap: 18px; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .hero-title { top: 16vh; font-size: 4.5rem; }
  .bridge-img { bottom: 2vh; width: 190vw; }
  .frame-two-img { width: 176vw; }
  .intro-copy { bottom: 42px; }
  .intro-copy p, .story-panel p { font-size: 1rem; }
  .hero-tags { gap: 8px; }
  .hero-tags span { min-height: 38px; padding: 0 16px; font-size: 0.88rem; }
  .story-panel { top: 42%; }
  .story-panel-bazaar { top: 26%; }
  .story-panel h2 { font-size: 2.45rem; }
  .facts { gap: 18px; margin-top: 34px; }
  .facts dt { font-size: 2.5rem; }
  .sights-slider { padding: 0; }

  /* Phone refinements. The spec's own mobile values above stay as written. */

  /* Title sits closer to the bridge instead of floating in a band of empty sky. */
  .hero-title { top: 22vh; }

  /* Over the bridge towers the intro needs more than the desktop shadow to stay legible. */
  .intro-copy p { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.38), 0 2px 18px rgba(0, 0, 0, 0.5); }
  .intro-copy::before {
    content: "";
    position: absolute;
    inset: -56px -32px -40px;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(6, 22, 28, 0.44), rgba(6, 22, 28, 0));
    pointer-events: none;
  }

  /* The 16:9 town layers shrink to a thin strip on a tall screen; give each chapter a backdrop. */
  .back-bazaar,
  .back-four { width: 230%; }

  /* Full-bleed scroller so side covers leave at the screen edge, not at a hard crop line. */
  .coverflow-list { width: 100vw; }

  /* Arrows pair up under the reflection instead of covering the side covers. */
  .coverflow { translate: 0 -4vh; }
  .coverflow-nav { top: calc(50% + var(--cover-size) * 1.75 + 12px); }
  .coverflow-prev { left: calc(50% - 58px); }
  .coverflow-next { right: calc(50% - 58px); }

  /* The full handle can't share one row with the caption on a phone. */
  .coverflow-meta { bottom: 20px; gap: 10px; padding: 5px 5px 5px 14px; }
  .coverflow-caption { gap: 8px; }
  .coverflow-tag { min-width: 0; font-size: 1.05rem; }
  .coverflow-handle { min-height: 34px; padding: 0 12px; font-size: 0.8rem; }
  .coverflow-handle .coverflow-handle-full { display: none; }
  .coverflow-handle .coverflow-handle-short { display: inline; }
}

.coverflow-handle-short {
  display: none;
}

/* Tall phones have open sky under the title: the intro moves there, clear of the towers. */
@media (max-width: 640px) and (min-height: 840px) {
  .hero-title { top: 16vh; }
  .intro-copy { top: calc(16vh + 92px); bottom: auto; }
  .intro-copy::before { content: none; }
}

/* Faded layers must not swallow taps and swipes meant for the carousel underneath. */
.intro-copy { pointer-events: var(--intro-copy-events, auto); }
.note-button { pointer-events: var(--panel3-events, none); }

/* Flat fallback (no scroll-driven animations): soft scroller edges instead of a hard crop. */
@supports not (animation-timeline: view()) {
  .coverflow-list {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene-img, .back-stack, .hero-title, .intro-copy,
  .story-panel, .sights-slider, .coverflow-nav,
  .site-nav a, .site-nav a::after { transition: none; }
  .coverflow-item,
  .coverflow-image-wrapper,
  .coverflow-item img {
    animation: none;
    transform: none;
    scale: 1;
    opacity: 1;
  }
  .coverflow-list {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
}

/* ==========================================================================
   After the cinematic stage: the place, the kitchen, and how to visit.
   Same cream-on-ink palette and Fraunces display as the stage above; the
   visit block flips to cream so the page ends on the practical details.
   ========================================================================== */

:root {
  --lacasa-green: #1f6e4a;
  --lacasa-leaf: #8fcfa8;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --section-pad: clamp(80px, 13vh, 168px);
  --gutter: clamp(20px, 5vw, 80px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: rgba(253, 241, 225, 0.7);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lacasa-leaf);
}

.place h2,
.dishes-head h2,
.visit h2 {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: var(--display-variation);
  font-weight: 500;
  line-height: 0.96;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid rgba(253, 241, 225, 0.34);
  border-radius: 999px;
  color: #fdf1e1;
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 240ms ease, color 240ms ease, border-color 240ms ease;
}

.pill-link--solid {
  border-color: #fdf1e1;
  color: var(--ink);
  background: #fdf1e1;
}

.pill-link:focus-visible {
  outline: 3px solid #fdf1e1;
  outline-offset: 3px;
}

@media (hover: hover) {
  .pill-link:hover {
    border-color: #fdf1e1;
    color: var(--ink);
    background: #fdf1e1;
  }
}

/* --- The place ----------------------------------------------------------- */

/* The track gives the pinned stage room to open the film before the page moves on. */
.place {
  position: relative;
  height: 230vh;
  background: #0b1110;
}

.place-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 640px;
  overflow: clip;
  isolation: isolate;
}

/* Instagram footage is portrait, so wide screens fill the sides with a blurred copy of it. */
.place-backdrop {
  position: absolute;
  inset: -8%;
  z-index: -2;
  width: 116%;
  height: 116%;
  object-fit: cover;
  opacity: calc(var(--place-in, 0) * 0.75);
  filter: saturate(1.2) brightness(1.05);
  pointer-events: none;
}

.place-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 95% at 30% 50%, rgba(11, 17, 16, 0.08), rgba(11, 17, 16, 0.86) 74%);
  pointer-events: none;
}

.place-inner {
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 120px);
}

.place-copy {
  max-width: 580px;
}

/* Each line eases in a beat after the one before it, driven by --copy-in from script.js. */
.place-copy > * {
  --i: 0;
  --shown: clamp(0, calc(var(--copy-in, 0) * 3 - var(--i) * 0.6), 1);
  opacity: var(--shown);
  transform: translateY(calc((1 - var(--shown)) * 26px));
}

.place-copy > :nth-child(2) { --i: 1; }
.place-copy > :nth-child(3) { --i: 2; }
.place-copy > :nth-child(4) { --i: 3; }

.place h2 {
  color: #fdf1e1;
  font-size: clamp(2.8rem, 5.4vw, 5.6rem);
}

.place-lede {
  max-width: 44ch;
  margin: 26px 0 0;
  color: rgba(253, 241, 225, 0.82);
  font-size: 1.15rem;
  line-height: 1.45;
}

.place-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.place-notes li {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(253, 241, 225, 0.28);
  border-radius: 999px;
  color: #fdf1e1;
  font-size: 0.92rem;
}

.place-film {
  position: relative;
  order: -1;
  height: min(86vh, 880px);
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  background: #121a18;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
  transform: translateY(calc((1 - var(--place-in, 0)) * 10vh)) scale(calc(0.8 + var(--place-in, 0) * 0.2));
  transform-origin: 50% 60%;
  will-change: transform;
}

.place-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.place-film figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fdf1e1;
  background: rgba(11, 17, 16, 0.55);
  font-size: 0.8rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.place-film figcaption a {
  color: inherit;
  text-underline-offset: 3px;
}

.film-toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(253, 241, 225, 0.28);
  border-radius: 50%;
  color: #fdf1e1;
  background: rgba(11, 17, 16, 0.55);
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.film-toggle:focus-visible {
  outline: 3px solid #fdf1e1;
  outline-offset: 3px;
}

/* Pause: two bars. Play: a triangle drawn with borders. */
.film-toggle-icon {
  width: 12px;
  height: 14px;
  border-left: 4px solid currentColor;
  border-right: 4px solid currentColor;
}

.film-toggle.is-paused .film-toggle-icon {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent currentColor;
}

/* --- From the kitchen ------------------------------------------------------ */

.dishes {
  position: relative;
  padding: var(--section-pad) var(--gutter);
  color: #fdf1e1;
  background: #0b1110;
}

.dishes-head {
  max-width: 980px;
  margin: 0 auto clamp(56px, 9vh, 104px);
  text-align: center;
}

.dishes-head h2 {
  font-size: clamp(2.6rem, 5.6vw, 5.8rem);
}

.dishes-lede {
  max-width: 46ch;
  margin: 24px auto 0;
  color: rgba(253, 241, 225, 0.76);
  font-size: 1.12rem;
  line-height: 1.45;
}

.dishes-layout {
  max-width: 1280px;
  margin: 0 auto;
}

.dishes-frame {
  display: none;
}

.dishes-list {
  display: grid;
  gap: clamp(64px, 10vh, 104px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.dish {
  display: grid;
  gap: 24px;
}

.dish-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
  background: #1c2624;
}

.dish-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 14px;
  color: rgba(253, 241, 225, 0.6);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dish-meta span {
  color: var(--lacasa-leaf);
  font-variant-numeric: tabular-nums;
}

.dish h3 {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: var(--display-variation);
  font-size: clamp(2.4rem, 4.6vw, 4.6rem);
  font-weight: 500;
  line-height: 0.98;
}

.dish-text > p:last-child {
  max-width: 40ch;
  margin: 18px 0 0;
  color: rgba(253, 241, 225, 0.78);
  font-size: 1.08rem;
  line-height: 1.5;
}

.dishes-more {
  display: flex;
  justify-content: center;
  margin-top: clamp(64px, 10vh, 112px);
}

@media (min-width: 900px) {
  .dishes-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
    gap: clamp(40px, 6vw, 112px);
  }

  .dishes:not(.is-enhanced) .dishes-list { grid-column: 1 / -1; }
  .dishes:not(.is-enhanced) .dish { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }

  /* One sticky frame swaps to whichever dish is centred in the list beside it. */
  .dishes.is-enhanced .dishes-frame {
    position: sticky;
    top: 10vh;
    display: block;
    height: min(80vh, 860px);
    overflow: hidden;
    border-radius: 22px;
    background: #1c2624;
    box-shadow:
      0 0 0 1px rgba(253, 241, 225, 0.06),
      0 48px 140px -24px color-mix(in srgb, var(--dish-glow) 60%, transparent);
  }

  .dishes-frame-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 700ms var(--ease-out), transform 1200ms var(--ease-out);
  }

  .dishes-frame-photo.is-active {
    opacity: 1;
    transform: none;
  }

  .dishes-frame-caption {
    position: absolute;
    left: 16px;
    bottom: 16px;
    max-width: calc(100% - 76px);
    min-height: 40px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border-radius: 999px;
    color: #fdf1e1;
    background: rgba(11, 17, 16, 0.58);
    font-size: 0.86rem;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  .dishes-frame-caption span:first-child {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.06em;
    opacity: 0.66;
  }

  .dishes-frame-caption span:last-child {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  /* Rail: one tick per dish; the current one is longer and jumps are one click away. */
  .dishes-rail {
    position: absolute;
    top: 50%;
    right: 12px;
    display: grid;
    gap: 2px;
    padding: 6px 0;
    border-radius: 999px;
    background: rgba(11, 17, 16, 0.42);
    transform: translateY(-50%);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  .dishes-rail button {
    width: 28px;
    height: 32px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
  }

  /* The tick grows with scaleY rather than height, so the rail never triggers layout. */
  .dishes-rail button::before {
    content: "";
    width: 4px;
    height: 30px;
    border-radius: 999px;
    background: rgba(253, 241, 225, 0.55);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    transform: scaleY(0.46);
    transition: transform 400ms var(--ease-out), background 300ms ease;
  }

  .dishes-rail button[aria-current="true"]::before {
    background: #fdf1e1;
    transform: none;
  }

  .dishes-rail button:focus-visible {
    outline: 2px solid #fdf1e1;
    outline-offset: 1px;
  }

  @media (hover: hover) {
    .dishes-rail button:hover::before { background: #fdf1e1; }
  }

  .dishes.is-enhanced .dishes-list { gap: 0; }
  .dishes.is-enhanced .dish { min-height: 66vh; align-content: center; }
  .dishes.is-enhanced .dish-photo { display: none; }

  .dishes.is-enhanced .dish-text {
    opacity: 0.3;
    transition: opacity 500ms var(--ease-out);
  }

  .dishes.is-enhanced .dish.is-active .dish-text { opacity: 1; }
}

/* --- Visit ----------------------------------------------------------------- */

.visit {
  padding: var(--section-pad) var(--gutter);
  color: var(--ink);
  background: var(--paper);
}

.visit-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: clamp(64px, 8vw, 128px);
}

.visit .eyebrow { color: rgba(17, 20, 17, 0.62); }
.visit .eyebrow::before { background: var(--lacasa-green); }

.visit-rating {
  display: flex;
  align-items: flex-end;
  gap: 22px;
}

.visit-score {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: var(--display-variation);
  font-size: clamp(5rem, 11vw, 9.5rem);
  line-height: 0.8;
}

.visit-rating p:last-child {
  margin: 0 0 8px;
  color: rgba(17, 20, 17, 0.72);
  font-size: 1rem;
  line-height: 1.45;
}

.quotes {
  display: grid;
  gap: 28px;
  margin: clamp(44px, 6vh, 68px) 0 0;
  padding: 0;
  list-style: none;
}

.quotes li {
  padding-top: 24px;
  border-top: 1px solid rgba(17, 20, 17, 0.14);
}

.quotes blockquote { margin: 0; }

.quotes blockquote p {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: "wght" 430, "opsz" 36;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.22;
}

.quote-by {
  margin: 12px 0 0;
  color: rgba(17, 20, 17, 0.6);
  font-size: 0.86rem;
}

.visit h2 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
}

.visit-info {
  display: grid;
  gap: 22px;
  margin: 36px 0 0;
}

.visit-info div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(17, 20, 17, 0.14);
}

.visit-info dt {
  padding-top: 4px;
  color: rgba(17, 20, 17, 0.55);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.visit-info dd {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.visit-info a {
  color: inherit;
  text-decoration-color: rgba(17, 20, 17, 0.35);
  text-underline-offset: 3px;
}

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.visit .pill-link {
  border-color: rgba(17, 20, 17, 0.28);
  color: var(--ink);
}

.visit .pill-link--solid {
  border-color: var(--lacasa-green);
  color: #fdf1e1;
  background: var(--lacasa-green);
}

.visit .pill-link:focus-visible { outline-color: var(--ink); }

@media (hover: hover) {
  .visit .pill-link:hover {
    border-color: var(--ink);
    color: #fdf1e1;
    background: var(--ink);
  }
}

@media (min-width: 900px) {
  .visit-inner {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: start;
  }
}

/* --- Footer ---------------------------------------------------------------- */

.site-footer {
  padding: clamp(48px, 8vh, 88px) var(--gutter);
  color: rgba(253, 241, 225, 0.7);
  background: #0b1110;
}

.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.footer-mark {
  margin: 0;
  color: #fdf1e1;
  font-family: var(--display);
  font-variation-settings: var(--display-variation);
  font-size: 1.6rem;
}

.footer-ack {
  max-width: 70ch;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  font-size: 0.9rem;
}

.footer-links a {
  color: #fdf1e1;
  text-underline-offset: 3px;
}

/* --- Reveals ---------------------------------------------------------------- */

.can-reveal [data-reveal] {
  transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out);
}

.can-reveal [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(28px);
}

/* --- Phones ----------------------------------------------------------------- */

@media (max-width: 760px), (orientation: portrait) and (max-width: 1366px) {
  /* A portrait screen fits the footage, so the film opens out to fill the stage. */
  .place { height: 210vh; }
  .place-backdrop { display: none; }
  .place-inner { display: block; padding: 0; }

  .place-film {
    position: absolute;
    inset: 0;
    z-index: 0;
    height: auto;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    clip-path: inset(
      calc((1 - var(--place-in, 0)) * 16vh) calc((1 - var(--place-in, 0)) * 10vw)
      round calc((1 - var(--place-in, 0)) * 28px)
    );
  }

  .place-film figcaption { top: 16px; bottom: auto; left: 16px; }
  .film-toggle { top: 12px; bottom: auto; right: 12px; }

  .place-stage::before {
    z-index: 1;
    background: linear-gradient(180deg, rgba(11, 17, 16, 0) 28%, rgba(11, 17, 16, 0.6) 52%, rgba(11, 17, 16, 0.95) 80%);
  }

  .place-copy {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 36px;
    z-index: 2;
  }

  .place h2 { font-size: 2.6rem; }
  .place-lede { font-size: 1rem; }
  .place-notes { margin-top: 22px; gap: 8px; }
  .place-notes li { min-height: 34px; padding: 0 14px; font-size: 0.84rem; }

  .visit-info div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .place-film { transform: none; }
  .dishes-frame-photo,
  .dishes.is-enhanced .dish-text,
  .can-reveal [data-reveal],
  .pill-link { transition: none; }
}

/* --- Refinements: plate-coloured glow, Brazilian touch, mid-size screens ------ */

@property --dish-glow {
  syntax: "<color>";
  inherits: true;
  initial-value: #3a7ca5;
}

.dishes {
  transition: --dish-glow 900ms var(--ease-out);
}

/* Side-by-side film on small laptops and landscape tablets: shorter screen, smaller type. */
@media (min-width: 761px) and (max-width: 1100px) and (orientation: landscape) {
  .place-film { height: min(76vh, 660px); }
  .place h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
  .place-lede { font-size: 1rem; }
  .place-notes li { min-height: 34px; padding: 0 14px; font-size: 0.84rem; }
}

.brasil {
  position: relative;
  max-width: 1280px;
  margin: clamp(88px, 13vh, 150px) auto 0;
  padding: clamp(32px, 6vw, 88px);
  overflow: hidden;
  border-radius: 28px;
  color: #fdf1e1;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(244, 197, 66, 0.2), transparent 62%),
    radial-gradient(50% 70% at 0% 100%, rgba(244, 197, 66, 0.08), transparent 60%),
    linear-gradient(155deg, #17573d, #0e3627);
}

.brasil-head {
  max-width: 760px;
}

.brasil .eyebrow { color: rgba(253, 241, 225, 0.8); }
.brasil .eyebrow::before { background: #f4c542; }

.brasil-title {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: var(--display-variation);
  font-size: clamp(2.6rem, 5.6vw, 5.6rem);
  font-weight: 500;
  line-height: 0.95;
}

.brasil-lede {
  max-width: 52ch;
  margin: 22px 0 0;
  color: rgba(253, 241, 225, 0.84);
  font-size: 1.12rem;
  line-height: 1.5;
}

.brasil-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 32px clamp(24px, 4vw, 56px);
  margin: clamp(44px, 6vw, 72px) 0 0;
  padding: 0;
  list-style: none;
}

.brasil-list li {
  padding-top: 20px;
  border-top: 1px solid rgba(253, 241, 225, 0.2);
}

.brasil-cat {
  margin: 0 0 10px;
  color: #f4c542;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brasil-list h4 {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: var(--display-variation);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.05;
}

.brasil-list li > p:last-child {
  margin: 12px 0 0;
  color: rgba(253, 241, 225, 0.8);
  font-size: 1rem;
  line-height: 1.5;
}

.brasil-sign {
  margin: clamp(40px, 6vw, 64px) 0 0;
  color: #f4c542;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-style: italic;
  font-variation-settings: "wght" 460, "opsz" 72;
  line-height: 1.1;
}

.brasil-sign span {
  margin-left: 10px;
  color: rgba(253, 241, 225, 0.72);
  font-size: 0.5em;
  font-style: normal;
  font-variation-settings: normal;
  font-family: Inter, Satoshi, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

@media (max-width: 640px) {
  .brasil-sign span {
    display: block;
    margin: 8px 0 0;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dishes,
  .dishes-rail button::before { transition: none; }
}

/*
 * Wide, short windows (a laptop browser is often ~1536x730) leave no sky between the
 * menu and the bridge deck, so behind the bridge the name would always be cut off.
 * There it moves in front of the bridge (still behind the towers) with a soft shadow.
 */
@media (min-width: 1101px) and (min-aspect-ratio: 179/100),
  (min-width: 641px) and (max-width: 1100px) {
  /* Tablets: the wider bridge (138vw) reaches the top of the screen, same cure applies. */
  .hero-title {
    z-index: 5;
    text-shadow: 0 2px 6px rgba(20, 16, 10, 0.2), 0 12px 44px rgba(20, 16, 10, 0.38);
  }
}

/* The full business name is longer than the old logo; below ~1330px it would run into the menu. */
@media (min-width: 761px) {
  .site-logo { font-size: clamp(18px, 1.8vw, 24px); }
}
