/* ==========================================================================
   Chapouu — Amchit
   Palette lifted directly from the logo artwork.
   ========================================================================== */

:root {
  --teal:        #3E7571;
  --teal-deep:   #2C5754;
  --teal-ink:    #1B3937;
  --flame:       #E44621;
  --flame-deep:  #C33716;
  --clay:        #AD523F;
  --tan:         #CA7247;
  --sand:        #FDF3E3;
  --sand-deep:   #F4E3C9;
  --cream:       #FFFBF3;
  --ink:         #22403D;

  --display: "Fraunces", "Bodoni 72", Georgia, serif;
  --body: "Outfit", "Avenir Next", system-ui, sans-serif;
  --script: "Sacramento", "Snell Roundhand", cursive;

  --edge: clamp(1.15rem, 5vw, 5.5rem);
  --max: 1200px;      /* the content column; keep scene.js MAX_COLUMN in step */
  --shadow-soft: 0 30px 80px -40px rgba(27, 57, 55, .55);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Big monitors: set everything a touch smaller so the page reads at a
   comfortable size instead of stretching with the screen. */
@media (min-width: 1280px) {
  html { font-size: 93.75%; }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--sand);
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .2vw, 1.08rem);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure { margin-top: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--flame); color: var(--cream); }

:focus-visible {
  outline: 3px solid var(--flame);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Paper grain over everything -------------------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .14;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 300;
  padding: .8rem 1.1rem;
  border-radius: 999px;
  background: var(--teal-ink);
  color: var(--cream);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ==========================================================================
   Loader
   ========================================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  gap: 1.4rem;
  background: var(--teal);
  transition: opacity .7s ease, visibility .7s;
}
.loader.is-gone { opacity: 0; visibility: hidden; }
.loader-inner { display: grid; justify-items: center; gap: 1.6rem; }
.loader-mark {
  width: clamp(4.5rem, 14vw, 7.5rem);
  animation: bob 1.4s ease-in-out infinite alternate;
}
.loader-bar {
  width: min(52vw, 15rem);
  height: 2px;
  background: rgba(255, 251, 243, .28);
  overflow: hidden;
}
.loader-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--sand);
  animation: sweep 1.15s cubic-bezier(.6, 0, .3, 1) infinite;
}
@keyframes bob { to { transform: translateY(-12px) rotate(-5deg); } }
@keyframes sweep {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(360%); }
}

/* ==========================================================================
   Fixed backdrop + WebGL canvas
   ========================================================================== */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 85% at 78% 6%, rgba(255, 255, 255, .95) 0%, transparent 55%),
    linear-gradient(168deg, var(--cream) 0%, var(--sand) 46%, var(--sand-deep) 100%);
}
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: var(--dive, 0);
  background:
    radial-gradient(105% 70% at 50% 118%, rgba(228, 70, 33, .5) 0%, transparent 62%),
    linear-gradient(170deg, var(--teal) 0%, var(--teal-deep) 55%, var(--teal-ink) 100%);
  /* no transition: --dive is already eased in script, and a transition on top
     of a value that changes every frame only makes it trail behind */
}

/* Build photo: sits over the teal backdrop and under the canvas. It rides the
   same --dive as the backdrop, so it only appears as the page turns dark. The
   image is kept low so the teal still reads, and the left side is pulled back
   down to ink so the layer list stays crisp. */
.build-photo {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: calc(var(--dive, 0) * var(--dive, 0));
}
.build-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  opacity: .52;
  filter: saturate(.85);
}
.build-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(27, 57, 55, .92) 0%, rgba(27, 57, 55, .62) 36%, rgba(27, 57, 55, .12) 70%, transparent 100%),
    linear-gradient(180deg, rgba(27, 57, 55, .55) 0%, transparent 22%);
}

#scene {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .9s ease;
}
#scene.is-ready { opacity: 1; }
#scene canvas { display: block; width: 100%; height: 100%; }

.no-webgl #scene { display: none; }

/* Floating props: one canvas over the page that never takes a click. Each
   prop is drawn on an empty .prop anchor, so where it sits is decided here. */
#props {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity .9s ease;
}
#props.is-ready { opacity: 1; }
#props canvas { display: block; width: 100%; height: 100%; }
.no-webgl #props { display: none; }

/* Wide screens: in the side gutters, centred in whatever room the content
   column leaves, peeking off the edge when there is not much of it. */
.prop {
  --gx: max(calc(var(--edge) * .62), calc((100% - var(--max)) / 4));
  position: absolute;
  top: var(--y, 20%);
  left: var(--gx);
  width: clamp(6rem, 10.5vw, 12rem);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.prop[data-side="right"] { left: auto; right: var(--gx); transform: translate(50%, -50%); }

/* Narrower: the gutters are too thin, so the props move into the section's
   top or bottom padding, clear of the words. */
@media (max-width: 1080px) {
  .prop {
    --gx: clamp(2.6rem, 7vw, 4.5rem);
    top: 2.75rem;
    width: clamp(4rem, 7vw, 5.25rem);
  }
  .prop[data-slot="bottom"] { top: calc(100% - 2.4rem); }
}

/* Hero photo: under the canvas, over the backdrop, scrolling away with the
   hero. Sand washes in from the copy's side so the words stay crisp, and the
   bottom dissolves into the backdrop instead of ending on a hard edge. */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 0;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  animation: hero-drift 24s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--sand) 6%, rgba(253, 243, 227, .9) 32%, rgba(253, 243, 227, .4) 58%, rgba(253, 243, 227, .08) 100%),
    linear-gradient(180deg, rgba(255, 251, 243, .55) 0%, transparent 22%);
}
@keyframes hero-drift { from { transform: scale(1.04); } to { transform: scale(1.1) translateX(-1.5%); } }

/* Upright screens would show the whole portrait photo, fork and bowl behind
   the copy. Zoom into the strip of water and rocks along its top instead. */
@media (orientation: portrait) {
  .hero-bg img {
    position: absolute;
    top: 0;
    left: 50%;
    width: auto;
    max-width: none;
    height: 260%;
    translate: -58% 0;
    transform-origin: 50% 0;
  }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  padding: 1.1rem var(--edge) 2.4rem;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}
.site-header.is-tucked { transform: translateY(-115%); }
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity .4s ease;
  background: linear-gradient(to bottom,
    rgba(253, 243, 227, .96) 0%,
    rgba(253, 243, 227, .86) 55%,
    rgba(253, 243, 227, 0) 100%);
}
.site-header.is-stuck::before { opacity: 1; }
.site-header.on-dark { color: var(--cream); }
.site-header.on-dark::before {
  background: linear-gradient(to bottom,
    rgba(27, 57, 55, .8) 0%,
    rgba(27, 57, 55, .52) 50%,
    rgba(27, 57, 55, 0) 100%);
}
.site-header.on-dark .nav-cta { border-color: currentColor; }

.nav {
  max-width: var(--max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand { display: inline-block; line-height: 0; }
.brand-logo {
  display: block;
  position: relative;
  width: clamp(7.2rem, 10vw, 9.5rem);
  transition: transform .4s ease;
}
.brand-logo img { width: 100%; transition: opacity .35s ease; }
.brand-logo img + img { position: absolute; inset: 0; opacity: 0; }
.site-header.on-dark .brand-logo img:first-child { opacity: 0; }
.site-header.on-dark .brand-logo img + img { opacity: 1; }
.brand:hover .brand-logo { transform: rotate(-2deg) scale(1.03); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.6vw, 2.6rem);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.nav-links a { text-decoration: none; position: relative; white-space: nowrap; }
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -.4rem;
  height: 1.5px;
  background: currentColor;
  transition: right .3s cubic-bezier(.4, 0, .2, 1);
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta):focus-visible::after { right: 0; }
.nav-cta {
  padding: .62rem 1.15rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  transition: background-color .3s ease, color .3s ease;
}
.nav-cta:hover { background: var(--flame); border-color: var(--flame); color: var(--cream); }
/* Menu and Instagram sit together as one pair at the end of the bar */
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.nav-links .nav-menu { display: inline-flex; align-items: center; gap: .5em; }
.nav-menu-icon { width: 1.6em; height: 1.6em; margin-block: -.3em; flex: none; transition: transform .4s cubic-bezier(.3, 1.4, .5, 1); }
.nav-menu:hover .nav-menu-icon, .nav-menu:focus-visible .nav-menu-icon { transform: rotate(-12deg) scale(1.12); }
/* the full-menu link is the header's main action, so it is filled */
.site-header .nav-menu, .site-header.on-dark .nav-menu { background: var(--flame); border-color: var(--flame); color: var(--cream); }
.site-header .nav-menu:hover, .site-header.on-dark .nav-menu:hover { background: var(--flame-deep); border-color: var(--flame-deep); }

body.nav-open .menu-toggle { color: var(--cream); border-color: rgba(255, 251, 243, .55); }
body.nav-open .brand { position: relative; z-index: 2; }
body.nav-open .brand-logo img:first-child { opacity: 0; }
body.nav-open .brand-logo img + img { opacity: 1; }
.menu-toggle {
  display: none;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  place-items: center;
}
.menu-toggle span {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s ease, opacity .3s ease;
}
.menu-toggle span + span { margin-top: .3rem; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.3px) rotate(-45deg); }
.menu-toggle:focus-visible { border-radius: 50%; outline-offset: 4px; }
/* Over the teal overlay the flame ring is low-contrast, so switch to cream. */
body.nav-open .menu-toggle:focus-visible,
body.nav-open .nav-links :focus-visible { outline-color: var(--cream); }

/* ==========================================================================
   Shared bits
   ========================================================================== */
main { position: relative; z-index: 2; }

.shell { max-width: var(--max); margin-inline: auto; }

.kicker {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 0 0 1.4rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  opacity: .78;
}
.kicker::before {
  content: "";
  width: 2.4rem;
  height: 1.5px;
  background: currentColor;
  flex: none;
}

.title {
  margin-bottom: 1.5rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  line-height: .94;
  letter-spacing: -.035em;
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 60;
}
.title em { font-style: normal; color: var(--flame); }

.script {
  font-family: var(--script);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 1.7rem;
  border: 0;
  border-radius: 999px;
  background: var(--flame);
  color: var(--cream);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), background-color .3s ease, box-shadow .3s ease;
  box-shadow: 0 14px 30px -14px rgba(228, 70, 33, .9);
}
.button:hover { transform: translateY(-3px); background: var(--flame-deep); }
.button.ghost {
  background: transparent;
  color: inherit;
  border: 1.5px solid currentColor;
  box-shadow: none;
}
.button.ghost:hover { background: currentColor; box-shadow: none; }
.button.ghost:hover span { mix-blend-mode: difference; }

.section { position: relative; padding: clamp(5rem, 12vw, 10rem) var(--edge); }

.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding: clamp(7rem, 15vh, 9rem) var(--edge) clamp(3.5rem, 9vh, 6rem);
}
.hero-inner { max-width: var(--max); margin-inline: auto; width: 100%; }
.hero-copy { max-width: 40rem; }
.hero-logo {
  width: clamp(10rem, 21vw, 17.5rem);
  margin-bottom: clamp(.9rem, 2.2vh, 1.9rem);
  animation: drift 9s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translateY(-10px) rotate(-1.4deg); } }

.hero h1 {
  margin-bottom: clamp(1rem, 2.4vh, 1.6rem);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.85rem, 4.1vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 100;
}
.hero h1 .script {
  display: block;
  margin-top: .1em;
  font-size: 1.5em;
  color: var(--flame);
}
.hero-intro {
  max-width: 33rem;
  margin-bottom: clamp(1.5rem, 3vh, 2.4rem);
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  color: rgba(34, 64, 61, .82);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }

.scroll-cue {
  position: absolute;
  left: var(--edge);
  bottom: 2.2rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .7;
}
.scroll-cue i {
  display: block;
  width: 1px;
  height: 3rem;
  background: linear-gradient(var(--ink), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 45%;
  background: var(--flame);
  animation: cue 1.9s cubic-bezier(.6, 0, .3, 1) infinite;
}
@keyframes cue {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(240%); }
}

/* ==========================================================================
   Build (three.js scroll assembly)
   ========================================================================== */
.build { position: relative; height: 560vh; }

.build-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  align-content: center;
  padding: 6.5rem var(--edge) 3rem;
  color: var(--ink);
  color: color-mix(in srgb, var(--cream) calc(var(--mix, 0) * 100%), var(--ink));
}
.build-grid {
  max-width: var(--max);
  margin-inline: auto;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 24rem) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.build-copy .kicker,
.build-copy .title { color: inherit; }
.build-copy .title { font-size: clamp(1.85rem, 3.1vw, 2.7rem); margin-bottom: 1.4rem; }
.build-copy .kicker { margin-bottom: 1rem; }

.layer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid currentColor;
}
.layer-list li {
  --on: 0;
  position: relative;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: .9rem;
  align-items: baseline;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(128, 128, 128, .3);
  border-bottom-color: color-mix(in srgb, currentColor 26%, transparent);
  opacity: calc(.3 + .7 * var(--on));
  transform: translateX(calc(var(--on) * .45rem));
}
.layer-list li::before {
  content: "";
  position: absolute;
  left: -1.15rem;
  top: 50%;
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: var(--flame);
  transform: translateY(-50%) scale(var(--on));
}
.layer-list b {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  font-variant-numeric: tabular-nums;
  opacity: .6;
}
.layer-list strong {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  letter-spacing: -.02em;
  font-variation-settings: "SOFT" 50, "WONK" 1;
}
.layer-list span {
  display: block;
  font-size: .8rem;
  line-height: 1.35;
  opacity: .72;
}

.build-meter {
  margin-top: 1.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.build-meter i {
  flex: 1;
  height: 2px;
  background: rgba(128, 128, 128, .3);
  background: color-mix(in srgb, currentColor 28%, transparent);
  overflow: hidden;
}
.build-meter i::after {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  background: var(--flame);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.build-meter em { font-style: normal; font-variant-numeric: tabular-nums; min-width: 3.2ch; }

.build-stage { min-height: 40vh; }

/* Hat picker + payoff line, parked under the burger ----------------------- */
.build-tools {
  position: absolute;
  left: 70%;
  bottom: clamp(1.4rem, 4vh, 3rem);
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: .85rem;
}

.hat-picker { display: grid; justify-items: center; gap: .6rem; }
.hat-picker-note {
  margin: 0;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .7;
}
.hat-picker-note em { font-style: normal; color: var(--flame); }

.hat-buttons {
  display: flex;
  gap: .4rem;
  padding: .35rem;
  border-radius: 999px;
  background: rgba(128, 128, 128, .12);
  background: color-mix(in srgb, currentColor 12%, transparent);
  border: 1px solid rgba(128, 128, 128, .25);
  border-color: color-mix(in srgb, currentColor 24%, transparent);
  backdrop-filter: blur(8px);
}
.hat-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .9rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: .62;
  transition: background-color .3s ease, opacity .3s ease, transform .3s cubic-bezier(.3, 1.4, .5, 1);
}
.hat-btn svg { width: 1.35rem; flex: none; color: currentColor; }
.hat-btn:hover { opacity: 1; transform: translateY(-2px); }
.hat-btn.is-on {
  opacity: 1;
  background: var(--flame);
  color: var(--cream);
}

.build-payoff {
  text-align: center;
  opacity: var(--done, 0);
  transition: opacity .5s ease;
  pointer-events: none;
}
.build-payoff .script { font-size: clamp(2rem, 5vw, 3.4rem); }
.build-payoff small {
  display: block;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  opacity: .7;
}

/* ==========================================================================
   Ticker
   ========================================================================== */
.ticker {
  position: relative;
  z-index: 2;
  padding: 1.1rem 0;
  background: var(--flame);
  color: var(--cream);
  overflow: hidden;
  border-block: 2px solid var(--teal-ink);
}
.ticker-track { display: flex; width: max-content; animation: roll 32s linear infinite; }
.ticker-line {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding-right: 2.2rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.3vw, 1.9rem);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.ticker-line i { font-style: normal; font-size: .55em; opacity: .8; }
@keyframes roll { to { transform: translateX(-50%); } }

/* ==========================================================================
   Hat map (three.js globe)
   ========================================================================== */
.world-section {
  color: var(--cream);
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 72% 48%, rgba(255, 251, 243, .16) 0%, transparent 70%),
    linear-gradient(170deg, var(--teal) 0%, var(--teal-deep) 62%, var(--teal-ink) 100%);
}
.world-grid {
  max-width: var(--max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 30rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.world-copy .title { font-size: clamp(2.1rem, 4.2vw, 3.7rem); }
.world-intro { max-width: 27rem; margin-bottom: 2.2rem; color: rgba(255, 251, 243, .78); }

.hat-card {
  display: grid;
  gap: .15rem;
  padding: 1.1rem 0 1.3rem;
  border-block: 1px solid rgba(255, 251, 243, .28);
}
.hat-card-count {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  font-variant-numeric: tabular-nums;
  opacity: .7;
}
.hat-card-count b { font-weight: 600; }
.hat-card-count i { font-style: normal; }
.hat-card-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  line-height: 1;
  letter-spacing: -.03em;
  font-variation-settings: "SOFT" 50, "WONK" 1;
}
.hat-card-place {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .8;
}
.hat-card.is-home .hat-card-name { font-family: var(--script); font-weight: 400; font-size: clamp(3rem, 6.2vw, 5.2rem); letter-spacing: 0; color: var(--sand); }
.hat-card.is-home .hat-card-place { color: #FF8A66; opacity: 1; }
.hat-card.is-swap .hat-card-name,
.hat-card.is-swap .hat-card-place { animation: swap .45s cubic-bezier(.2, .8, .2, 1) both; }
.hat-card.is-swap .hat-card-place { animation-delay: .05s; }
@keyframes swap { from { opacity: 0; transform: translateY(.5em); } }

.world-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 1.6rem; }
.round-btn {
  width: 3.1rem;
  height: 3.1rem;
  padding: 0;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: transparent;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .3s ease, border-color .3s ease, transform .3s cubic-bezier(.3, 1.4, .5, 1);
}
.round-btn:hover { background: var(--flame); border-color: var(--flame); transform: translateY(-2px); }
.world-controls .button { margin-left: .5rem; }

.world-stage {
  position: relative;
  justify-self: center;
  width: min(100%, 46rem);
  aspect-ratio: 1;
  opacity: 0;
  transition: opacity .9s ease;
}
.world-stage.is-ready { opacity: 1; }
.world-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}
.world-stage.is-dragging canvas { cursor: grabbing; }
.world-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  text-align: center;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .6;
  pointer-events: none;
}
.no-globe .world-grid { grid-template-columns: minmax(0, 34rem); }
.no-globe .world-stage { display: none; }

/* ==========================================================================
   Section photo backdrops
   A photo sits behind the section, tinted with that section's own colour so
   the copy stays readable. Script nudges --drift on scroll for a slow parallax.
   ========================================================================== */
.story-section, .visit-section { isolation: isolate; }
.sec-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.sec-bg img {
  position: absolute;
  left: 0;
  top: -12%;
  width: 100%;
  height: 124%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  transform: translate3d(0, var(--drift, 0px), 0);
  will-change: transform;
}
.sec-bg::after { content: ""; position: absolute; inset: 0; }

/* sand section: the photo shows through as a warm wash that fades back to sand at the top */
.visit-section .sec-bg img { opacity: .75; }
.visit-section .sec-bg::after {
  background:
    linear-gradient(180deg, var(--sand) 0%, rgba(244, 227, 201, 0) 24%),
    linear-gradient(180deg, rgba(244, 227, 201, .15) 0%, rgba(244, 227, 201, .45) 100%);
}

/* the dark section keeps its teal: photo sits under a heavy ink tint */
.story-section .sec-bg img { opacity: .5; filter: saturate(.9); }
.story-section .sec-bg::after {
  background:
    radial-gradient(90% 70% at 20% 50%, rgba(27, 57, 55, .35) 0%, transparent 70%),
    linear-gradient(180deg, var(--teal-ink) 0%, rgba(27, 57, 55, .62) 28%, rgba(27, 57, 55, .8) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .sec-bg img { transform: none; will-change: auto; }
}

/* ==========================================================================
   Menu
   ========================================================================== */
.menu-section { background: var(--sand); }
.menu-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.menu-head > div { flex: 1 1 30rem; }
.menu-head .title { margin-bottom: 0; max-width: 18ch; }
.menu-head > p { flex: 0 1 24rem; margin: 0; color: rgba(34, 64, 61, .78); }

.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.8rem); }

.menu-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 27rem;
  padding: 1.7rem;
  border-radius: 1.6rem;
  overflow: hidden;
  color: var(--cream);
  isolation: isolate;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease;
  box-shadow: var(--shadow-soft);
}
.menu-card:hover { transform: translateY(-9px); }
.menu-card:nth-child(1) { background: var(--flame); }
.menu-card:nth-child(2) { background: var(--teal); }
.menu-card:nth-child(3) { background: var(--clay); }
.menu-card:nth-child(4) { background: var(--teal-deep); }
.menu-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -30% -45% -30%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 251, 243, .1);
  transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}
.menu-card:hover::before { transform: translateY(-11%) scale(1.06); }

.card-no {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  opacity: .7;
}
.card-art {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 1.5rem 0;
}
.card-art svg { width: min(62%, 12rem); overflow: visible; }
.menu-card:hover .card-art svg { animation: nudge 2.4s ease-in-out infinite alternate; }
@keyframes nudge { to { transform: translateY(-9px) rotate(3deg); } }

.menu-card h3 {
  margin-bottom: .5rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: .98;
  letter-spacing: -.03em;
  font-variation-settings: "SOFT" 50, "WONK" 1;
}
.menu-card p { margin: 0; font-size: .93rem; line-height: 1.55; color: rgba(255, 251, 243, .82); max-width: 34ch; }

.menu-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  margin-top: clamp(1.8rem, 3.5vw, 3rem);
  padding-top: clamp(1.5rem, 3vw, 2.4rem);
  border-top: 1px solid rgba(34, 64, 61, .2);
}
.menu-cta p { margin: 0; max-width: 34rem; color: rgba(34, 64, 61, .78); }

/* Card details: what kind of plate it is, and what goes in it */
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card-kind {
  padding: .3rem .75rem;
  border: 1px solid rgba(255, 251, 243, .35);
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}
.card-tags li {
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(255, 251, 243, .14);
  font-size: .74rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--cream);
}

/* ==========================================================================
   Gallery reel
   ========================================================================== */
.gallery-section {
  --tile: clamp(10.5rem, 19vw, 17rem);
  --gap: clamp(.7rem, 1.2vw, 1.1rem);
  padding-inline: 0;
  background: var(--sand-deep);
  overflow: hidden;
}
/* the reel runs edge to edge, so the heading carries the page margin itself */
.gallery-section .shell { max-width: calc(var(--max) + 2 * var(--edge)); padding-inline: var(--edge); }
.gallery-section .menu-head .title { max-width: 16ch; }

.reel { display: grid; gap: var(--gap); }
.reel-row {
  display: flex;
  gap: var(--gap);
  margin: 0;
  padding: 1rem var(--edge);
  list-style: none;
  /* without the script (or with reduced motion) each row is a plain swipe */
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.reel-row::-webkit-scrollbar { display: none; }
.reel-row li { flex: none; scroll-snap-align: center; }

.reel.is-live {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.reel.is-live .reel-row {
  width: max-content;
  padding-inline: 0;
  overflow: visible;
  will-change: transform;
}

.reel-tile {
  display: block;
  width: var(--tile);
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  border-radius: 1.2rem;
  overflow: hidden;
  background: var(--sand);
  cursor: zoom-in;
  box-shadow: 0 26px 50px -34px rgba(27, 57, 55, .7);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease;
}
.reel-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(.2, .8, .2, 1);
}
.reel-tile:focus-visible { outline-offset: 4px; border-radius: 1.2rem; }
@media (hover: hover) {
  .reel-tile:hover { transform: translateY(-8px) rotate(-1.4deg); box-shadow: var(--shadow-soft); }
  .reel-row li:nth-child(even) .reel-tile:hover { transform: translateY(-8px) rotate(1.4deg); }
  .reel-tile:hover img { transform: scale(1.06); }
}

/* ==========================================================================
   Story
   ========================================================================== */
.story-section {
  background: var(--teal-ink);
  color: var(--cream);
  overflow: hidden;
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
  max-width: var(--max);
  margin-inline: auto;
}
.story-copy .story-quote {
  font-family: var(--script);
  max-width: 13ch;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 1.8rem;
}
.story-copy .story-quote em { font-style: normal; color: var(--flame); }
.story-copy > p:not(.story-quote) { max-width: 34rem; color: rgba(255, 251, 243, .76); font-size: clamp(1rem, 1.3vw, 1.14rem); }

.story-art { position: relative; display: grid; place-items: center; min-height: 24rem; }
.sun {
  position: relative;
  width: min(72%, 24rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 28%, #FFFDF8, var(--sand) 72%);
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 .65rem var(--flame),
    0 0 0 2.1rem rgba(62, 117, 113, .55),
    0 0 0 3.5rem rgba(62, 117, 113, .26);
  animation: spin 42s linear infinite;
}
.sun::before {
  content: "";
  position: absolute;
  inset: 9%;
  border: 2px dashed rgba(174, 82, 63, .45);
  border-radius: 50%;
}
.sun img { width: 58%; animation: spin 42s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* The same rings, with the Boulevard inside them; only the dashes turn */
.sun.has-photo { background: var(--teal); animation: none; }
.sun.has-photo .sun-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 42%;
  animation: none;
}
.sun.has-photo::before {
  z-index: 1;
  border-color: rgba(255, 251, 243, .6);
  animation: spin 60s linear infinite;
}
.sun-badge {
  position: absolute;
  z-index: 2;
  right: -4%;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 31%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 28%, #FFFDF8, var(--sand) 72%);
  box-shadow: 0 0 0 .45rem var(--flame), 0 18px 40px -14px rgba(0, 0, 0, .65);
}
.sun.has-photo .sun-badge img { width: 68%; animation: bob 4.5s ease-in-out infinite alternate; }
@keyframes bob { from { transform: rotate(6deg); } to { transform: rotate(-8deg) translateY(-5%); } }

.story-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2.8rem;
}
.story-notes div {
  padding-top: .9rem;
  border-top: 1px solid rgba(255, 251, 243, .28);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ==========================================================================
   The place
   ========================================================================== */
.perks-section { background: var(--sand); }
.perks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(13.5rem, auto);
  gap: clamp(.8rem, 1.4vw, 1.3rem);
}
.perk {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  border-radius: 1.4rem;
  background: var(--cream);
  border: 1px solid rgba(34, 64, 61, .12);
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease, opacity .9s ease;
}
.perk.is-in:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.perk-icon {
  width: 2.6rem;
  margin-bottom: auto;
  color: var(--flame);
  transition: transform .5s cubic-bezier(.3, 1.4, .5, 1);
}
.perk:hover .perk-icon { transform: rotate(-8deg) scale(1.08); }
.perk h3 {
  margin: 1.4rem 0 .4rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  font-variation-settings: "SOFT" 50, "WONK" 1;
}
.perk p { margin: 0; font-size: .9rem; line-height: 1.5; color: rgba(34, 64, 61, .76); }

.perk-sunset {
  grid-column: span 2;
  grid-row: span 2;
  padding: clamp(1.5rem, 2.6vw, 2.4rem);
  border: 0;
  color: var(--cream);
  background: var(--flame-deep);
}
/* sky on top with the sun half under, sea below for the words to sit in */
.perk-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  width: 100%;
  height: 52%;
  background: linear-gradient(180deg, var(--tan) 0%, var(--flame) 100%);
}
.perk-sunset .card-no { margin-bottom: auto; }
.perk-sunset h3 { font-size: clamp(2rem, 3.6vw, 3.3rem); line-height: .95; margin-bottom: .7rem; }
.perk-sunset p { font-size: 1rem; color: rgba(255, 251, 243, .9); max-width: 24rem; }

.perk-kitchen {
  grid-column: span 2;
  border: 0;
  color: var(--cream);
  background: var(--teal);
}
.perk-kitchen .perk-icon { color: var(--sand); }
.perk-kitchen h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); max-width: 18ch; }
.perk-kitchen p { color: rgba(255, 251, 243, .82); max-width: 30rem; }

/* ==========================================================================
   Visit
   ========================================================================== */
.visit-section { background: var(--sand-deep); }
.visit-card {
  max-width: var(--max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(1.8rem, 4.5vw, 4rem);
  border-radius: 2rem;
  background: var(--cream);
  box-shadow: var(--shadow-soft);
}
.visit-card .title { font-size: clamp(2.2rem, 4.4vw, 3.8rem); }
.visit-card > div > p { max-width: 30rem; color: rgba(34, 64, 61, .8); margin-bottom: 2rem; }

.info-list { display: grid; align-content: center; gap: 1.15rem; margin: 0; }
.info-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(34, 64, 61, .18);
}
.info-row dt {
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .65;
  padding-top: .35rem;
}
.info-row dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  letter-spacing: -.02em;
  font-variation-settings: "SOFT" 50;
}
.info-row a { text-decoration-thickness: 1px; text-underline-offset: .28rem; }
.info-row a:hover { color: var(--flame); }

/* Google rating ---------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.google-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(34, 64, 61, .14);
}
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}
.rating-score {
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1;
}
/* Five stars, with a second set clipped to 92% (4.6 / 5) laid over the first. */
.rating-stars {
  position: relative;
  display: inline-block;
  color: rgba(34, 64, 61, .2);
  font-size: 1.15rem;
  letter-spacing: .08em;
  line-height: 1;
  white-space: nowrap;
}
.rating-stars span {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  color: #F2A516;
}
.rating-count {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .3rem;
}
.rating-badge:hover .rating-count { color: var(--flame); }
.rating-write {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-underline-offset: .3rem;
}
.rating-write:hover { color: var(--flame); }
/* Hero variant: sits right under the buttons, no divider. */
.google-rating.is-hero { margin-top: clamp(1.2rem, 2.6vh, 1.8rem); padding-top: 0; border-top: 0; }
.is-hero .rating-score { font-size: 1.7rem; }
.is-hero .rating-stars { font-size: 1rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 2;
  padding: clamp(2.5rem, 5vw, 4rem) var(--edge) 2.2rem;
  background: var(--teal-ink);
  color: var(--cream);
}
.footer-inner {
  max-width: var(--max);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem 2rem;
}
.footer-logo { width: clamp(8rem, 13vw, 11rem); }
.footer-note { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; opacity: .62; }
.footer-link {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-underline-offset: .35rem;
}
.footer-link:hover { color: var(--flame); }
.footer-links { display: flex; gap: 1.6rem; margin: 0; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(1rem, 3vw, 2.5rem);
  border: 0;
  background: rgba(27, 57, 55, .95);
  color: var(--cream);
  overscroll-behavior: contain;
}
.lightbox[open] { display: grid; place-items: center; animation: lightbox-in .35s ease; }
.lightbox::backdrop { background: transparent; }
@keyframes lightbox-in { from { opacity: 0; } }

.lightbox-frame { display: grid; justify-items: center; gap: 1rem; margin: 0; }
.lightbox-img {
  width: auto;
  max-width: min(100%, 64rem);
  max-height: calc(100dvh - 9rem);
  border-radius: 1.1rem;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8);
  transition: opacity .3s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.lightbox-img.is-loading { opacity: .35; transform: scale(.985); }
.lightbox-caption { max-width: 38rem; text-align: center; font-size: .95rem; color: rgba(255, 251, 243, .84); }
.lightbox-count {
  margin-right: .5rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--tan);
}
.lightbox .round-btn { position: fixed; color: var(--cream); background: rgba(27, 57, 55, .55); }
.lightbox-close { top: max(1rem, env(safe-area-inset-top)); right: var(--edge); }
.lightbox-prev, .lightbox-next { top: 50%; margin-top: -1.55rem; }
.lightbox-prev { left: var(--edge); }
.lightbox-next { right: var(--edge); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 1081px) and (max-height: 840px) {
  .layer-list span { display: none; }
  .layer-list li { padding: .62rem 0; }
}

@media (max-width: 1080px) {
  .build-tools {
    position: static;
    transform: none;
    justify-items: start;
    margin-top: 1.1rem;
    gap: .7rem;
  }
  .hat-picker { justify-items: start; }
  .build-payoff { text-align: left; }

  .build { height: 480vh; }
  .build-grid { grid-template-columns: 1fr; gap: 1.5rem; align-content: start; }
  .build-sticky { align-content: start; padding-top: 5.5rem; }
  .build-copy .title { font-size: clamp(1.9rem, 5.6vw, 2.6rem); margin-bottom: 1.2rem; }
  .layer-list li span { display: none; }
  .layer-list li { padding: .5rem 0; }
  .build-stage { display: none; }
  .menu-card { min-height: 24rem; }
  .nav-links { gap: 1.1rem; letter-spacing: .12em; }
  .world-grid { grid-template-columns: 1fr; }
  .world-stage { width: min(100%, 36rem); }
  .perks-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(12rem, auto); }
  .perk-sunset { grid-row: auto; min-height: 24rem; }
  .story-grid { grid-template-columns: 1fr; }
  .story-art { order: -1; min-height: 18rem; }
  .visit-card { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .menu-toggle { display: grid; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--teal);
    color: var(--cream);
    font-family: var(--display);
    font-weight: 500;
    letter-spacing: -.02em;
    text-transform: none;
    transition: clip-path .6s cubic-bezier(.7, 0, .2, 1);
  }
  .nav-cta:hover { background: none; color: inherit; }
  .nav-links .nav-menu { justify-self: center; }
  .site-header .nav-menu, .site-header.on-dark .nav-menu,
  .site-header .nav-menu:hover, .site-header.on-dark .nav-menu:hover { background: none; color: inherit; }
  .menu-toggle { position: relative; z-index: 2; }

  .hero { min-height: 100svh; }
  .hero-actions .button { justify-content: center; }
  .scroll-cue { display: none; }

  .hero-logo { width: min(48vw, 15rem); }
  .build-sticky { padding: 5.75rem 1.15rem 1.5rem; }
  .build-copy .kicker { margin-bottom: .6rem; }
  .build-copy .title { font-size: clamp(1.5rem, 6.4vw, 2.1rem); margin-bottom: .9rem; }
  .layer-list li { grid-template-columns: 1.9rem 1fr; }
  .build-meter { margin-top: 1rem; }
  .build-payoff .script { font-size: 1.7rem; }

  .world-controls .button { margin-left: 0; }
  .perks-grid { gap: .7rem; grid-auto-rows: auto; }

  .menu-grid { grid-template-columns: 1fr; }
  .story-notes { grid-template-columns: 1fr; }
  .info-row { grid-template-columns: 1fr; gap: .2rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .build { height: 150vh; }
}

@media (max-width: 720px) and (max-height: 720px) {
  .build-copy .title { font-size: 1.45rem; }
}

/* ==========================================================================
   Phones and tablets
   ========================================================================== */
:root {
  --edge: max(clamp(1.15rem, 5vw, 5.5rem), env(safe-area-inset-left), env(safe-area-inset-right));
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* The canvas is sized to the tallest the viewport ever gets, so the browser
   toolbar sliding away does not resize it halfway through the build. */
#scene { bottom: auto; height: 100vh; height: 100lvh; }

.site-header { padding-top: max(1.1rem, env(safe-area-inset-top)); }
.site-footer { padding-bottom: max(2.2rem, calc(env(safe-area-inset-bottom) + 1rem)); }

@media (max-width: 1080px) {
  /* Build: copy on top, the burger in whatever is left, the hat picker under
     the thumb. scene.js fits the burger to .build-stage, so nothing overlaps. */
  .build-sticky {
    display: flex;
    flex-direction: column;
    padding-inline: var(--edge);
    padding-bottom: max(1.1rem, env(safe-area-inset-bottom));
  }
  .build-grid { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .build-stage { display: block; flex: 1; min-height: 0; }
  .build-tools { justify-items: center; margin-top: .4rem; gap: .5rem; }
  .hat-picker { justify-items: center; }
  .build-payoff { order: -1; text-align: center; }
  .build-payoff small { display: none; }

  /* Hat map: the globe sits between the intro and the card, so the hat and
     its name are on screen together. */
  .world-grid { gap: 0; }
  .world-copy { display: contents; }
  .world-intro { margin-bottom: .6rem; }
  .world-stage { order: 1; width: min(100%, 32rem); margin-bottom: 1.4rem; }
  .hat-card { order: 2; }
  .world-controls { order: 3; }
}

@media (max-width: 720px) {
  .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; }

  .build-sticky { padding-top: 5.5rem; }
  .layer-list { column-gap: 1.2rem; }
  .layer-list li { grid-template-columns: 1.5rem 1fr; gap: .4rem; }
  .build-meter { margin-top: .8rem; }
  .build-payoff .script { font-size: 1.6rem; }
  .hat-btn { min-height: 2.75rem; padding: .5rem .8rem; gap: .4rem; }

  .sun { width: min(54%, 14rem); }

  .sun-badge { box-shadow: 0 0 0 .3rem var(--flame), 0 14px 30px -12px rgba(0, 0, 0, .65); }

  /* thumbs, not cursors: arrows move to the bottom, out of the photo */
  .lightbox-img { max-height: calc(100dvh - 12rem); }
  .lightbox-prev, .lightbox-next { top: auto; bottom: max(1.2rem, env(safe-area-inset-bottom)); margin-top: 0; }
  .lightbox-prev { left: calc(50% - 3.6rem); }
  .lightbox-next { right: calc(50% - 3.6rem); }
}

/* Upright tablets: copy to the top, so the loose burger has the bottom half */
@media (min-width: 721px) and (max-width: 1080px) and (orientation: portrait) {
  .hero { align-content: start; padding-top: 8.5rem; }
}

/* The inline nav is already full between the phone menu and wide screens;
   the gallery link waits for the room (it is always in the phone menu) */
@media (min-width: 721px) and (max-width: 1199px) {
  .nav-links .nav-extra { display: none; }
}
/* the narrow end of each nav size runs a few pixels past the edge; close it up */
@media (min-width: 721px) and (max-width: 800px) {
  .site-header .nav { gap: .6rem; }
  .nav .nav-links { gap: .45rem; letter-spacing: .02em; }
  .nav .nav-cta { padding-inline: .65rem; }
}
@media (min-width: 901px) and (max-width: 1000px) {
  .nav .nav-links { gap: .9rem; }
}

/* Small tablets keep the inline nav, tightened so it does not run off the edge */
@media (min-width: 721px) and (max-width: 900px) {
  .nav { gap: 1rem; }
  .nav-links { gap: .75rem; font-size: .66rem; letter-spacing: .06em; }
  .nav-cta { padding: .55rem .8rem; }
}

@media (max-width: 360px) {
  .hat-btn svg { display: none; }
  .hat-btn { padding-inline: .9rem; }
}

/* Short phones: drop the garnish so the burger keeps its room */
@media (max-width: 720px) and (max-height: 640px) {
  .build-copy .kicker, .hat-picker-note { display: none; }
  .build-copy .title { font-size: 1.3rem; margin-bottom: .6rem; }
  .build-copy .title br { display: none; }
  .build-meter { margin-top: .55rem; }
}

/* Held sideways: list on the left, burger on the right, picker under it */
@media (max-width: 1080px) and (orientation: landscape) {
  .hero-copy { max-width: 54%; }
  .build-sticky { --col: 24rem; }
  .build-grid {
    display: grid;
    grid-template-columns: minmax(0, var(--col)) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 1.5rem;
  }
  .build-stage { margin-bottom: 7rem; }
  .build-tools {
    position: absolute;
    left: calc(var(--edge) + var(--col) + 1.5rem);
    right: var(--edge);
    bottom: max(1.1rem, env(safe-area-inset-bottom));
    margin: 0;
  }
}

@media (max-width: 1080px) and (orientation: landscape) and (max-height: 560px) {
  /* the header already carries the logo, and there is no height to say it twice */
  .hero { padding-top: 6.25rem; }
  .hero-logo { display: none; }
  .scroll-cue { display: none; }

  .build-sticky { --col: 21rem; padding-top: 5.6rem; padding-bottom: .7rem; }
  .build-stage { margin-bottom: 4.6rem; }
  .build-tools { bottom: max(.7rem, env(safe-area-inset-bottom)); gap: .2rem; }
  .build-copy .kicker, .hat-picker-note { display: none; }
  .build-copy .title { font-size: 1.3rem; margin-bottom: .6rem; }
  .build-copy .title br { display: none; }
  .layer-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    column-gap: 1.2rem;
  }
  .layer-list li { grid-template-columns: 1.5rem 1fr; gap: .4rem; padding: .2rem 0; transform: none; }
  .layer-list li::before { display: none; }
  .layer-list strong { font-size: .92rem; }
  .build-meter { margin-top: .55rem; }
  .build-payoff .script { font-size: 1.4rem; }
}
@media (max-width: 720px) and (orientation: landscape) and (max-height: 560px) {
  .nav-links { grid-template-columns: auto auto; gap: .3rem 2rem; font-size: 1.4rem; }
  .build-sticky { --col: 17rem; }
  .build-copy .title { font-size: 1.15rem; }
  .layer-list { column-gap: .8rem; }
  .layer-list strong { font-size: .86rem; }
}

/* Fingers, not cursors */
@media (pointer: coarse) {
  .info-row a, .footer-link { display: inline-block; padding-block: .75rem; margin-block: -.75rem; }
  .footer-link { padding-block: .85rem; margin-block: -.4rem; }
  .skip-link { display: none; }
}

@media (hover: none) {
  /* a hover that sticks after a tap reads as a bug */
  .menu-card:hover, .perk.is-in:hover, .button:hover, .round-btn:hover, .hat-btn:hover,
  .brand:hover .brand-logo, .perk:hover .perk-icon { transform: none; }
  .menu-card:hover::before { transform: none; }
  .menu-card:hover .card-art svg { animation: none; }
  .perk.is-in:hover { box-shadow: none; }
  .button.ghost:hover { background: transparent; }
  .button.ghost:hover span { mix-blend-mode: normal; }
  .round-btn:hover { background: transparent; border-color: currentColor; }
  .button:active, .round-btn:active, .hat-btn:active { transform: scale(.96); }
  .round-btn:active { background: var(--flame); border-color: var(--flame); }

  /* full-screen blending and blur over a live canvas is the most expensive
     thing on the page for a phone GPU, and the least noticed */
  .grain { mix-blend-mode: normal; opacity: .06; }
  .hat-buttons { backdrop-filter: none; }
}

/* ==========================================================================
   Phone hooks
   Bits of markup only the phone layout uses. Hidden (or see-through) on
   every other screen, so desktop and tablet render exactly as before.
   ========================================================================== */
.dock, .deck-dots, .build-steps, .nav-thumb, .nav-call { display: none; }
.hat-bar, .perks-row { display: contents; }
@media (min-width: 721px) { .m-only { display: none !important; } }
@media (max-width: 720px) { .d-only { display: none !important; } }

/* ==========================================================================
   Phones · cinematic scroll
   One chapter per screen, a frosted header pill and a chapter dock. This
   block comes last so it wins over the older phone rules above.
   ========================================================================== */
@media (max-width: 720px) {
  /* No scroll snapping: iOS Safari snaps far harder than Chrome and re-snaps
     whenever its toolbar resizes the viewport, so the page jumped under the
     finger. Chapters are still one screen tall. */
  .ticker { display: none; }
  /* the full-screen grain overlay is composited over a live canvas every frame */
  .grain { display: none; }

  /* Header: a pill that never tucks away. Its fill sits on a pseudo-element
     so it can fade under the open menu sheet. No backdrop-filter on phones:
     Safari re-blurs it every frame over the moving 3D scene, and it flickers. */
  .site-header { padding: max(.6rem, env(safe-area-inset-top)) .75rem 0; }
  .site-header.is-tucked { transform: none; }
  .site-header::before { display: none; }
  .nav { position: relative; height: 3.4rem; padding: 0 .45rem 0 1rem; }
  .nav::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 999px;
    background: rgba(253, 243, 227, .95);
    box-shadow: 0 10px 30px -18px rgba(27, 57, 55, .6);
    transition: background-color .4s ease, opacity .3s ease;
  }
  .site-header.on-dark .nav::before { background: rgba(27, 57, 55, .92); }
  body.nav-open .nav::before { opacity: 0; }
  .brand-logo { width: 5.2rem; }
  .menu-toggle { width: 2.75rem; height: 2.75rem; }

  /* Chapters fill the screen and clear the pill above and the dock below */
  .section { min-height: 100svh; padding: 5.75rem var(--edge) 6.5rem; }
  .gallery-section { padding-inline: 0; }
  .section .title { font-size: clamp(1.9rem, 8.4vw, 2.4rem); }
  .kicker { margin-bottom: .8rem; }
  .menu-head { gap: .8rem; margin-bottom: 1.4rem; }

  /* Menu sheet: the chapters with a photo each, the actions along the bottom */
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    place-content: initial;
    padding: calc(max(.6rem, env(safe-area-inset-top)) + 4.6rem) var(--edge) max(1.4rem, env(safe-area-inset-bottom));
    font-size: 1.45rem;
    text-align: left;
    clip-path: circle(0% at calc(100% - 2.2rem) 2.2rem);
    overflow-y: auto; /* the sheet scrolls on short phones */
    overscroll-behavior: contain;
  }
  .nav-links.is-open { clip-path: circle(150% at calc(100% - 2.2rem) 2.2rem); }
  .nav-links > li:not(.nav-actions) a { display: flex; align-items: center; gap: .9rem; min-height: 3.6rem; padding: .3rem 0; }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-links .nav-thumb { display: block; width: 3rem; height: 3rem; flex: none; border-radius: .8rem; object-fit: cover; }
  .nav-actions { display: flex; gap: .5rem; margin-top: auto; padding-top: 1.2rem; font-family: var(--body); }
  .nav-actions .nav-cta {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 3rem;
    padding: 0 .7rem;
    border: 1.5px solid rgba(255, 251, 243, .6);
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .site-header .nav-links .nav-menu { background: var(--flame); border-color: var(--flame); color: var(--cream); }

  /* Dock: chapter dots and the menu, floating at the foot of the screen */
  .dock {
    position: fixed;
    left: 50%;
    bottom: max(.9rem, env(safe-area-inset-bottom));
    z-index: 70;
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .3rem .3rem .6rem;
    border-radius: 999px;
    background: rgba(27, 57, 55, .94);
    color: var(--cream);
    box-shadow: 0 14px 34px -16px rgba(0, 0, 0, .6);
    transform: translateX(-50%);
    transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1), visibility .35s;
  }
  .dock.is-hidden { opacity: 0; visibility: hidden; transform: translate(-50%, 1.5rem); }
  .dock-dots { display: flex; margin: 0; padding: 0; list-style: none; }
  .dock-dots a { display: grid; place-items: center; width: 1.5rem; height: 2.75rem; }
  .dock-dots a::before {
    content: "";
    width: .4rem;
    height: .4rem;
    border-radius: 999px;
    background: rgba(255, 251, 243, .55);
    transition: width .35s cubic-bezier(.2, .8, .2, 1), background-color .3s ease;
  }
  .dock-dots a[aria-current="true"]::before { width: 1.1rem; background: var(--cream); }
  .dock-menu {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 2.75rem;
    padding: 0 1rem;
    border-radius: 999px;
    background: var(--flame);
    color: var(--cream);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
  }
  .dock-menu svg { width: 1.2rem; height: 1.2rem; }
  /* Hero: the sea photo full-bleed, the words anchored low over a dark fade,
     the burger floating in the water above them */
  .hero { align-content: end; padding: 6rem var(--edge) calc(6.5rem + env(safe-area-inset-bottom)); color: var(--cream); }
  .hero-logo { display: none; }
  .hero h1 { margin-bottom: .7rem; }
  .hero h1 .script { color: #FF8A66; }
  .hero-intro { margin-bottom: 1.2rem; font-size: 1rem; color: rgba(255, 251, 243, .86); }
  .hero-copy { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: center; column-gap: .6rem; }
  .hero-copy > h1, .hero-copy > .hero-intro { grid-column: 1 / -1; }
  .hero-actions { flex-wrap: nowrap; width: max-content; }
  .hero-actions .button { flex: none; }
  .hero .hero-actions .button.ghost { display: none; }
  .google-rating.is-hero { margin: 0; }
  .is-hero .rating-write { display: none; }
  .is-hero .rating-badge { gap: .45rem; min-height: 2.75rem; padding: 0 .9rem; border: 1.5px solid rgba(255, 251, 243, .7); border-radius: 999px; }
  .is-hero .rating-score { font-size: 1.15rem; }
  .is-hero .rating-stars { font-size: .8rem; color: rgba(255, 251, 243, .3); }
  .is-hero .rating-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .hero-bg { height: 100svh; -webkit-mask-image: none; mask-image: none; }
  .hero-bg img { position: static; width: 100%; height: 100%; max-width: 100%; translate: none; object-fit: cover; object-position: 50% 35%; }
  .hero-bg::after {
    background: linear-gradient(180deg, rgba(27, 57, 55, .4) 0%, rgba(27, 57, 55, 0) 20%, rgba(27, 57, 55, 0) 40%, rgba(27, 57, 55, .78) 72%, rgba(27, 57, 55, .94) 100%);
  }

  /* Build: a shorter pin. The copy opens up so the caption and its step bars
     can sit under the burger, over the hat picker. */
  .build { height: 250vh; }
  .build-copy { display: contents; }
  .build-stage { order: 1; }
  .build-steps { order: 2; display: flex; gap: .25rem; margin: .4rem 0 .7rem; }
  .build-steps i { flex: 1; height: 3px; border-radius: 3px; overflow: hidden; background: color-mix(in srgb, currentColor 25%, transparent); }
  .build-steps i::after { content: ""; display: block; height: 100%; background: var(--flame); transform: scaleX(var(--on, 0)); transform-origin: left; }
  /* one caption: every layer sits in the same spot, only the landing one shows */
  .layer-list { order: 3; display: grid; grid-template-columns: none; grid-template-rows: none; grid-auto-flow: row; border-top: 0; }
  .layer-list li { grid-area: 1 / 1; display: block; padding: 0; border: 0; opacity: 0; transform: translateY(.4rem); transition: opacity .3s ease, transform .3s ease; }
  .layer-list li.is-current { opacity: 1; transform: none; }
  .layer-list li::before { display: none; }
  .layer-list b { display: block; margin-bottom: .15rem; }
  .layer-list strong { font-size: 1.15rem; }
  .layer-list li span { display: block; margin-top: .1rem; font-size: .85rem; }
  .build-meter { display: none; }
  /* the picker waits until the burger is built */
  .hat-picker { opacity: var(--done, 0); visibility: hidden; transition: opacity .4s ease, visibility .4s; }
  .build-sticky.is-done .hat-picker { visibility: visible; }
  /* reduced motion keeps its short build (this block would otherwise win) */
  @media (prefers-reduced-motion: reduce) {
    .build { height: 150vh; }
    .hat-picker { opacity: 1; visibility: visible; transition: none; }
  }

  /* Signatures: a sideways deck, the next card peeking in */
  .menu-section .menu-head > p { display: none; }
  .menu-grid {
    display: flex;
    gap: .8rem;
    margin-inline: calc(var(--edge) * -1);
    padding: .3rem var(--edge) 1rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--edge);
    scrollbar-width: none;
  }
  .menu-grid::-webkit-scrollbar { display: none; }
  .menu-card { flex: 0 0 82vw; min-height: 0; padding: 1.2rem; scroll-snap-align: start; }
  .menu-card .card-art { padding: .6rem 0 .8rem; }
  .menu-card .card-art svg { width: 6.5rem; }
  .menu-card h3 { font-size: 1.55rem; }
  .menu-card p { font-size: .88rem; }
  .menu-card .card-tags { display: none; }
  /* the reveal observer cannot see a card that slides in sideways */
  .menu-grid .reveal { opacity: 1; transform: none; }
  .menu-cta { flex-direction: row; align-items: center; justify-content: space-between; margin-top: .2rem; padding-top: 0; border-top: 0; }
  .menu-cta p { display: none; }
  .menu-cta .button { padding: .85rem 1.2rem; }
  .deck-dots { display: flex; gap: .35rem; }
  .deck-dots i { width: .4rem; height: .4rem; border-radius: 999px; background: rgba(34, 64, 61, .25); transition: width .3s ease, background-color .3s ease; }
  .deck-dots i.is-on { width: 1.1rem; background: var(--flame); }

  /* Photos: tiles sized so the heading and both rows fit one screen; on the
     live reel each row is a native sideways scroller (script drifts it) */
  .gallery-section { --tile: min(9.5rem, calc((100svh - 19rem) / 2 * .8)); --gap: .6rem; }
  .gallery-section .menu-head > p { display: none; }
  .reel-row { padding-block: .5rem; }
  .reel.is-live .reel-row { width: auto; padding-inline: var(--edge); overflow-x: auto; scroll-snap-type: none; will-change: auto; }

  /* Hat map: title, the globe filling the middle, one frosted bar at the foot */
  .world-section { display: flex; flex-direction: column; padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
  .world-grid { flex: 1; display: flex; flex-direction: column; gap: 0; width: 100%; }
  .world-intro, .world-hint { display: none; }
  .world-copy .title { margin-bottom: .4rem; }
  .world-stage { order: 1; flex: none; width: min(100%, calc(100svh - 20rem)); margin: auto 0; align-self: center; }
  .hat-bar {
    order: 2;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    padding: .7rem .6rem .7rem 1rem;
    border: 1px solid rgba(255, 251, 243, .2);
    border-radius: 1.4rem;
    background: rgba(27, 57, 55, .55);
  }
  /* the bar sits inside the reveal observer's bottom margin, so it never reveals */
  .hat-bar .reveal { opacity: 1; transform: none; }
  .hat-card { min-width: 0; padding: 0; gap: 0; border: 0; }
  .hat-card-name { font-size: 1.6rem; }
  .hat-card.is-home .hat-card-name { font-size: 2.2rem; }
  .hat-card-place { font-size: .66rem; }
  .world-controls { flex-wrap: nowrap; gap: .35rem; margin: 0; }
  .world-controls .round-btn, .world-controls .world-home { width: 2.75rem; height: 2.75rem; }
  .world-controls .world-home { justify-content: center; margin: 0; padding: 0; font-size: 1.05rem; letter-spacing: 0; text-transform: none; }
  .world-home-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

  /* The place: the sunset card as the hero, the rest in a swipe row */
  .perks-section .menu-head > p { display: none; }
  .perks-grid { display: block; }
  .perk-sunset { min-height: 15.5rem; margin-bottom: .8rem; padding: 1.3rem; }
  .perk-sunset h3 { font-size: 1.9rem; }
  .perks-row {
    display: flex;
    gap: .65rem;
    margin-inline: calc(var(--edge) * -1);
    padding: .2rem var(--edge) .6rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--edge);
    scrollbar-width: none;
  }
  .perks-row::-webkit-scrollbar { display: none; }
  .perks-row .perk { flex: 0 0 max(8.5rem, calc((100vw - 2 * var(--edge) - .65rem) / 2.2)); min-height: 10.5rem; padding: 1rem; justify-content: flex-start; scroll-snap-align: start; }
  .perks-row .perk-icon { width: 2rem; margin-bottom: 0; }
  .perks-row .perk h3, .perks-row .perk-kitchen h3 { max-width: none; margin: .7rem 0 .3rem; font-size: 1.05rem; }
  .perks-row .perk p { font-size: .8rem; line-height: 1.4; }
  /* the reveal observer cannot see a card that slides in sideways */
  .perks-row .reveal { opacity: 1; transform: none; }

  /* Story: centred and quieter */
  .story-section { display: flex; align-items: center; }
  .story-grid { width: 100%; gap: 1.6rem; justify-items: center; text-align: center; }
  .story-art { width: 100%; min-height: 0; padding: 2.2rem 0 .4rem; }
  .sun.has-photo {
    width: min(44%, 10.5rem);
    box-shadow: 0 0 0 .4rem var(--flame), 0 0 0 1.3rem rgba(62, 117, 113, .55), 0 0 0 2.2rem rgba(62, 117, 113, .26);
  }
  .story-copy .kicker { justify-content: center; }
  .story-copy .story-quote { max-width: none; margin-bottom: .8rem; font-size: 2.3rem; }
  .story-copy > p:not(.story-quote) { margin-inline: auto; font-size: .95rem; }
  .story-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 1rem; }
  .story-notes div { padding: .4rem .8rem; border: 0; border-radius: 999px; background: rgba(255, 251, 243, .14); font-size: .6rem; }

  /* Visit: one card over the photo, the page ends here */
  .visit-section { display: flex; flex-direction: column; justify-content: flex-end; padding: 5.75rem .75rem max(.75rem, env(safe-area-inset-bottom)); }
  .visit-section .sec-bg img { opacity: 1; }
  .visit-section .sec-bg::after { background: linear-gradient(180deg, rgba(27, 57, 55, .3) 0%, rgba(27, 57, 55, 0) 30%); }
  .visit-card { display: block; width: 100%; padding: 1.4rem 1.2rem 1.1rem; border-radius: 1.6rem; background: rgba(255, 251, 243, .95); }
  .visit-card .title { margin-bottom: .4rem; }
  .visit-card .visit-hours { margin: 0 0 1.1rem; font-size: .9rem; color: rgba(34, 64, 61, .8); }
  .visit-card .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; width: auto; } /* the hero rule above makes every .hero-actions max-content */
  .visit-card .hero-actions .button { justify-content: center; min-height: 3rem; padding: .8rem 1rem; }
  .visit-card .hero-actions .button:first-child { grid-column: 1 / -1; }
  .visit-card .google-rating { margin-top: 1.1rem; padding-top: 1rem; gap: .6rem 1rem; }
  .visit-card .rating-score { font-size: 1.8rem; }
  .visit-card .google-rating .button { padding: .7rem 1rem; }
  .visit-card .rating-badge { min-height: 2.75rem; }
  .info-list { display: none; }
  .visit-card .visit-footer { margin: .3rem 0 0; text-align: center; font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: inherit; opacity: .6; }
  .visit-footer a { display: inline-block; padding: .95rem .3rem; text-underline-offset: .25rem; } /* 44px tall tap targets */
  .site-footer { display: none; }

  /* Props: none on phones. Their canvas re-placed each one from the scroll
     position every frame, which swims behind iOS compositor scrolling. */
  #props, .prop { display: none; }
  .menu-section, .perks-section { overflow-x: clip; } /* the fries and basketball props peek past the edge; clip makes no scroll container, so sticky and snapping are unaffected */
}
