/*
 * @project Sunshine Cafe Thailand
 * @author Uvin Vindula <uvin95dev@gmail.com>
 * @built-by IAMUVIN — https://iamuvin.com
 */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Thai";
  src: url("../fonts/plex-thai-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Thai";
  src: url("../fonts/plex-thai-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --night: #07131d;
  --night-soft: #10242c;
  --ink: #18272a;
  --paper: #f5efe3;
  --paper-bright: #fffaf0;
  --sand: #ded3c1;
  --sun: #f4ca3d;
  /* The brand yellow darkened to carry text weight: 5.1:1 on --paper-bright. */
  --sun-deep: #8a6410;
  --red: #ad302f;
  --blue: #2938ed;
  --line-dark: rgba(24, 39, 42, 0.22);
  --line-light: rgba(255, 255, 255, 0.18);
  --serif: "Fraunces", Georgia, serif;
  --sans: "IBM Plex Sans Thai", Arial, sans-serif;
}

@view-transition {
  navigation: auto;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--paper-bright);
  color: var(--night);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-progress {
  position: fixed;
  z-index: 190;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--sun);
  transform: scaleX(0);
  transform-origin: left;
}

.section-shell {
  padding-right: clamp(1.25rem, 7vw, 7.75rem);
  padding-left: clamp(1.25rem, 7vw, 7.75rem);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1rem clamp(1.25rem, 3.5vw, 4rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  transition: padding 240ms ease, background-color 240ms ease, backdrop-filter 240ms ease;
}

.site-header.is-scrolled {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  background: rgba(7, 19, 29, 0.93);
  backdrop-filter: blur(16px);
}

.brand {
  display: block;
  width: clamp(6.8rem, 10vw, 8.8rem);
  border: 1px solid rgba(255, 255, 255, 0.24);
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: auto;
  view-transition-name: sunshine-brand;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.8vw, 3rem);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.desktop-nav a,
.language-link,
.header-directions {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  text-decoration: none;
}

.desktop-nav a {
  position: relative;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.35rem;
  left: 0;
  height: 1px;
  background: var(--sun);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after,
.desktop-nav a.is-current::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0.65rem;
}

.language-link,
.header-directions {
  border: 1px solid rgba(255, 255, 255, 0.42);
  padding: 0.35rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-directions {
  border-color: var(--sun);
  background: var(--sun);
  color: var(--night);
}

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: flex-end;
  overflow: hidden;
  background: var(--night);
  color: white;
}

.hero-slides,
.hero-slide,
.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slides {
  overflow: hidden;
  will-change: transform;
}

/* Cross-dissolve. The incoming scene fades in on top of the outgoing one, which holds
   at full opacity underneath until the change is over - fading both at once would dip
   through the dark background at the midpoint. Opacity is composited, so this costs
   nothing per frame. */
.hero-slide {
  opacity: 0;
  transition: opacity 1200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.is-active,
.hero-slide.is-leaving {
  opacity: 1;
}

.hero-slide.is-active {
  z-index: 2;
}

.hero-slide.is-leaving {
  z-index: 1;
}

.hero-image {
  object-fit: cover;
  object-position: center center;
  transform: scale(1.035);
  transition: transform 8s linear;
}

.hero-slide.is-active .hero-image,
.hero-slide.is-leaving .hero-image {
  will-change: transform;
}

/* The outgoing scene holds its drift through the dissolve. Letting it fall back to the
   resting scale would reverse its zoom against the incoming one, mid-fade. */
.hero-slide.is-active .hero-image,
.hero-slide.is-leaving .hero-image {
  transform: scale(1.09);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(3, 13, 21, 0.86) 0%, rgba(3, 13, 21, 0.54) 48%, rgba(3, 13, 21, 0.16) 100%),
    linear-gradient(0deg, rgba(3, 13, 21, 0.78) 0%, transparent 62%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(77rem, 92vw);
  padding: 10rem clamp(1.25rem, 7vw, 7.75rem) clamp(5rem, 10vh, 7.5rem);
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow.light {
  color: var(--sun);
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 520;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.8rem;
  font-size: clamp(4.25rem, 9vw, 9rem);
}

h1 em {
  color: var(--sun);
  font-weight: 390;
}

html[lang="th"] h1,
html[lang="th"] h2 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.09;
}

html[lang="th"] h1 em {
  font-style: normal;
}

.hero-copy {
  max-width: 36rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.12rem, 1.5vw, 1.3rem);
}

.hero-actions,
.visit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-sun {
  border-color: var(--sun);
  background: var(--sun);
  color: var(--night);
}

.button-sun:hover {
  background: var(--paper-bright);
}

.button-dark {
  background: var(--night);
  color: white;
}

.text-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-link.light {
  color: white;
}

.hero-sideword {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 2.5rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  transform: rotate(90deg) translateX(50%);
  transform-origin: right center;
}

.story {
  display: grid;
  min-height: 47rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-content: center;
  gap: 2rem;
  padding-top: clamp(6rem, 11vw, 11rem);
  padding-bottom: clamp(5rem, 10vw, 9rem);
  background: var(--paper);
}

.story-heading {
  grid-column: 1 / span 7;
}

.story h2,
.gallery h2,
.visit h2 {
  margin-bottom: 0;
  font-size: clamp(3.2rem, 6.3vw, 6.8rem);
}

.story-copy {
  grid-column: 9 / -1;
  align-self: end;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-dark);
  font-size: 1.14rem;
}

.story-copy p:last-child {
  margin-bottom: 0;
}

.story-facts {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 5rem 0 0;
}

.story-facts div {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-dark);
}

.story-facts dt {
  margin-bottom: 0.35rem;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.recognition {
  display: grid;
  min-height: 54rem;
  grid-template-columns: minmax(22rem, 0.78fr) minmax(0, 1.22fr);
  background: var(--blue);
  color: white;
}

.recognition-image {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(3rem, 7vw, 7rem);
  overflow: hidden;
  background: var(--paper);
}

.recognition-image img {
  position: relative;
  z-index: 1;
  width: min(100%, 32rem);
  /* Without this the height attribute stays a presentation hint, so the box holds at
     1280px and object-fit letterboxes the plaque inside it. */
  height: auto;
  max-height: 43rem;
  object-fit: contain;
  box-shadow: 0 2.5rem 5rem rgba(7, 19, 29, 0.2);
  transform: translate3d(0, var(--depth, 0), 0) scale(1.02);
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .recognition-image::after {
    position: absolute;
    z-index: 2;
    inset: 0;
    background: radial-gradient(circle 12rem at var(--glint-x, 50%) var(--glint-y, 50%), rgba(255, 255, 255, 0.5), rgba(244, 202, 61, 0.14) 28%, transparent 68%);
    content: "";
    mix-blend-mode: screen;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }

  .recognition-image.is-glinting::after {
    opacity: 0.72;
  }
}

.recognition-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 9rem);
}

.recognition-copy::before {
  position: absolute;
  top: -0.18em;
  right: -0.03em;
  margin: 0;
  color: rgba(255, 255, 255, 0.08);
  content: "2024";
  font: 600 clamp(10rem, 25vw, 26rem)/1 var(--serif);
  letter-spacing: -0.08em;
}

.recognition h2 {
  position: relative;
  max-width: 10ch;
  margin-bottom: 2rem;
  color: white;
  font-size: clamp(3.8rem, 7vw, 7.8rem);
}

.recognition h2 em {
  color: var(--sun);
  font-weight: 390;
}

.recognition-copy > p:not(.eyebrow) {
  position: relative;
  max-width: 36rem;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
}

.recognition-source {
  position: relative;
  display: block;
  max-width: 36rem;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-facts dd {
  margin: 0;
}

.feature {
  display: grid;
  min-height: 48rem;
  grid-template-columns: 1.22fr 0.78fr;
  background: var(--paper-bright);
}

.feature-drinks {
  grid-template-columns: 0.78fr 1.22fr;
  background: var(--night-soft);
  color: white;
}

.feature-image-wrap {
  position: relative;
  min-height: 48rem;
  overflow: hidden;
}

.feature-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, var(--depth, 0), 0) scale(1.05);
  transition: transform 120ms linear;
  will-change: transform;
}

.feature:hover .feature-image-wrap img {
  transform: translate3d(0, var(--depth, 0), 0) scale(1.075);
}

.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 7vw, 7rem);
}

.feature h2 {
  max-width: 9ch;
  margin-bottom: 1.6rem;
  font-size: clamp(3.2rem, 5.5vw, 6.2rem);
}

html[lang="th"] .feature h2 {
  max-width: 12ch;
}

.feature-copy p:last-child {
  max-width: 28rem;
  margin-bottom: 0;
  font-size: 1.12rem;
}

.feature-drinks .eyebrow {
  color: var(--sun);
}

.image-index {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  padding: 0.35rem 0.6rem;
  background: var(--paper-bright);
  color: var(--night);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.reel-stage {
  background: var(--night);
  color: white;
}

.reel-sticky {
  padding-top: clamp(5rem, 9vw, 8rem);
  padding-bottom: clamp(5rem, 9vw, 8rem);
}

.reel-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.reel-heading h2 {
  max-width: 13ch;
  margin: 0;
  color: white;
  font-size: clamp(3rem, 5.2vw, 5.8rem);
}

.reel-instruction {
  margin: 0 0 0.4rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reel-viewport {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--sun) rgba(255, 255, 255, 0.12);
  scrollbar-width: thin;
}

.reel-track {
  display: flex;
  width: max-content;
  align-items: flex-end;
  gap: clamp(1rem, 2vw, 2rem);
  padding: 0 clamp(1.25rem, 7vw, 7.75rem) 1.5rem;
}

.reel-card {
  width: clamp(18rem, 31vw, 30rem);
  margin: 0;
}

.reel-card-landscape {
  width: clamp(27rem, 48vw, 49rem);
}

.reel-card img {
  width: 100%;
  height: min(55svh, 37rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  object-fit: cover;
}

.reel-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.7rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.reel-card figcaption span {
  color: var(--sun);
}

.has-motion .reel-stage {
  height: 430vh;
}

.has-motion .reel-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  padding-top: clamp(5.5rem, 9vh, 7rem);
  padding-bottom: 0;
}

.has-motion .reel-heading {
  margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
}

.has-motion .reel-viewport {
  overflow: hidden;
}

.has-motion .reel-track {
  will-change: transform;
}

.music {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--night);
  color: white;
}

.music > img,
.music-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.music > img {
  object-fit: cover;
  object-position: center 38%;
  transform: translate3d(0, var(--depth, 0), 0) scale(1.05);
  will-change: transform;
}

.music-shade {
  background: linear-gradient(90deg, rgba(4, 12, 20, 0.9), rgba(4, 12, 20, 0.18) 72%);
}

.music-copy {
  position: absolute;
  z-index: 1;
  bottom: clamp(3.5rem, 9vw, 8rem);
  left: clamp(1.25rem, 7vw, 7.75rem);
  max-width: 44rem;
}

.music h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(4.2rem, 9vw, 9rem);
}

.music-copy > p:not(.eyebrow) {
  max-width: 29rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
}

.gallery {
  padding-top: clamp(6rem, 11vw, 11rem);
  padding-bottom: clamp(6rem, 11vw, 11rem);
  background: var(--paper);
}

.gallery-heading {
  display: grid;
  grid-template-columns: 1.25fr 0.55fr;
  align-items: end;
  gap: 3rem;
  margin-bottom: clamp(3.5rem, 7vw, 6.5rem);
}

.gallery-heading > p {
  max-width: 34rem;
  margin-bottom: 0.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-dark);
  font-size: 1.1rem;
}

.gallery-grid {
  columns: 4 16rem;
  column-gap: clamp(1rem, 1.8vw, 1.8rem);
}

.gallery-card {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 clamp(1.5rem, 2.4vw, 2.5rem);
  transition: transform 260ms ease;
}

.gallery-card-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  font: inherit;
  text-align: left;
}

.gallery-card:hover {
  transform: translateY(-4px);
}

.gallery-card img {
  width: 100%;
  height: auto;
  background: var(--sand);
}

.gallery-card figcaption {
  padding-top: 0.65rem;
  border-top: 1px solid var(--line-dark);
  margin-top: 0.8rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.voices {
  overflow: hidden;
  padding-top: clamp(5rem, 9vw, 9rem);
  padding-bottom: clamp(5rem, 9vw, 9rem);
  border-top: 1px solid var(--line-dark);
  background: var(--paper-bright);
}

.voices-intro {
  margin-bottom: clamp(2.75rem, 5vw, 4.25rem);
  text-align: center;
}

.voices-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  background: var(--night);
  color: white;
  font-size: 0.76rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.voices-badge span {
  color: var(--sun);
}

.voices-intro h2 {
  max-width: 17ch;
  margin: 0 auto 1.05rem;
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.voices-lede {
  max-width: 52ch;
  margin: 0 auto;
  color: rgba(24, 39, 42, 0.72);
  font-size: 1.02rem;
}

.voices-lede .text-link {
  display: inline-block;
  margin-top: 0.85rem;
}

/* Two rows travelling in opposite directions. The track holds the cards twice, so a
   -50% shift lands exactly on the duplicate and the loop is seamless. The spacing is
   margin, not gap - gap would leave the halves half a gap out of register. */
.voices-row {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.voices-row + .voices-row {
  margin-top: clamp(1rem, 1.8vw, 1.5rem);
}

.voices-track {
  display: flex;
  width: max-content;
  animation: voices-marquee 96s linear infinite;
}

.voices-track-reverse {
  animation-direction: reverse;
}

.voices-row:hover .voices-track,
.voices-row:focus-within .voices-track {
  animation-play-state: paused;
}

@keyframes voices-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.voice {
  display: flex;
  flex: 0 0 auto;
  /* A definite width, not min()/vw: inside a max-content track a viewport-relative
     basis makes Chromium fall back to the text's one-line max-content width. */
  width: 23rem;
  flex-direction: column;
  margin-right: clamp(1rem, 1.8vw, 1.5rem);
  padding: 1.7rem;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: var(--paper);
}

.voice-mark {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--sun-deep);
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 0.7;
}

.voice blockquote {
  display: -webkit-box;
  overflow: hidden;
  min-height: calc(4 * 1.55em);
  margin: 0 0 1.6rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.55;
}

.voice figcaption {
  margin-top: auto;
}

.voice figcaption a {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.voice-avatar {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--sand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  place-items: center;
}

.voice-who {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.voice-name {
  overflow: hidden;
  font-size: 0.88rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice figcaption a:hover .voice-name,
.voice figcaption a:focus-visible .voice-name {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.voice-role {
  color: rgba(24, 39, 42, 0.72);
  font-size: 0.78rem;
}

@media (max-width: 700px) {
  /* Auto-scrolling text you cannot catch is no good on a phone. Hand the rows to the
     thumb instead: no animation, snap points, and the duplicate half hidden so nobody
     swipes past the same review twice. */
  .voices-track {
    width: auto;
    animation: none;
  }

  .voices-row {
    overflow-x: auto;
    padding-inline: 1.25rem;
    -webkit-mask-image: none;
    mask-image: none;
    scroll-padding-inline: 1.25rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .voices-row::-webkit-scrollbar {
    display: none;
  }

  .voice {
    width: 17rem;
    padding: 1.4rem;
    scroll-snap-align: start;
  }

  .voice[aria-hidden="true"] {
    display: none;
  }

  .voice blockquote {
    margin-bottom: 1.3rem;
    font-size: 0.95rem;
  }
}

.visit {
  display: grid;
  min-height: 54rem;
  grid-template-columns: minmax(24rem, 0.78fr) minmax(0, 1.22fr);
  background: var(--night);
  color: white;
}

.visit-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(5rem, 9vw, 9rem);
  padding-bottom: clamp(5rem, 9vw, 9rem);
}

.visit h2 {
  max-width: 9ch;
  margin-bottom: 2.5rem;
}

html[lang="th"] .visit h2 {
  max-width: 12ch;
}

.visit address {
  margin-bottom: 0.7rem;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
}

.coordinates {
  margin-bottom: 2.2rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.contact-row a {
  display: flex;
  min-height: 5.5rem;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  border-top: 1px solid var(--line-light);
  font-size: 1.16rem;
  text-decoration: none;
}

.contact-row span {
  margin-bottom: 0.25rem;
  color: var(--sun);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-panel {
  position: relative;
  min-height: 54rem;
  overflow: hidden;
  background: #cfcbc0;
}

.map-panel::before {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--sun);
  content: "";
  pointer-events: none;
  transform: scaleX(1);
  transform-origin: left;
}

.motion-ready .map-panel::before {
  transform: scaleX(0);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-ready .map-panel.is-arrived::before {
  transform: scaleX(1);
}

.map-panel iframe {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.8) contrast(1.05);
}

.map-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(32deg, transparent 48%, rgba(7, 19, 29, 0.13) 49%, rgba(7, 19, 29, 0.13) 51%, transparent 52%),
    linear-gradient(115deg, transparent 46%, rgba(7, 19, 29, 0.1) 47%, rgba(7, 19, 29, 0.1) 50%, transparent 51%),
    #d9d3c7;
  color: var(--night);
}

.map-fallback span {
  position: absolute;
  width: 4rem;
  height: 4rem;
  border: 1.15rem solid var(--red);
  border-radius: 50% 50% 50% 0;
  transform: translateY(-2rem) rotate(-45deg);
}

.map-fallback strong {
  margin-top: 5rem;
  font-family: var(--serif);
  font-size: 2rem;
}

.map-panel-action {
  position: absolute;
  z-index: 2;
  right: 1.5rem;
  bottom: 1.5rem;
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.1rem;
  background: var(--sun);
  color: var(--night);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.motion-ready .map-panel-action {
  transform: translate3d(0, 1.25rem, 0);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-ready .map-panel.is-arrived .map-panel-action {
  transform: translate3d(0, 0, 0);
}

.site-footer {
  border-top: 1px solid var(--line-light);
  background: var(--night);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.94rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.15fr 1.4fr 0.72fr 0.72fr;
  gap: clamp(2.5rem, 6vw, 7rem);
  padding: clamp(4.5rem, 8vw, 8rem) clamp(1.25rem, 7vw, 7.75rem);
}

.site-footer p {
  margin: 0;
}

.footer-brand img {
  width: min(11rem, 100%);
  height: auto;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.footer-brand p {
  max-width: 23rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.footer-column address {
  margin-bottom: 0.7rem;
  color: rgba(255, 255, 255, 0.68);
  font-style: normal;
}

.footer-column a {
  min-height: 2.35rem;
  text-underline-offset: 0.35em;
}

.footer-action {
  min-height: 2.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}

.gallery-lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--night);
  color: white;
}

.gallery-lightbox[open] {
  display: grid;
}

.gallery-lightbox::backdrop {
  background: rgba(7, 19, 29, 0.92);
}

.gallery-lightbox-shell {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 4rem minmax(0, 1fr) 4rem;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding: clamp(4.5rem, 8vw, 7rem) clamp(1rem, 4vw, 4rem) 2rem;
}

.gallery-lightbox figure {
  min-width: 0;
  margin: 0;
}

.gallery-lightbox-image {
  width: 100%;
  height: min(75svh, 56rem);
  background: var(--night-soft);
  object-fit: contain;
}

.gallery-lightbox figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-lightbox button {
  display: grid;
  min-width: 3rem;
  min-height: 3rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: transparent;
  color: white;
  cursor: pointer;
  font: 700 0.8rem/1 var(--sans);
}

.gallery-lightbox button:hover,
.gallery-lightbox button:focus-visible {
  border-color: var(--sun);
  background: var(--sun);
  color: var(--night);
}

.gallery-lightbox-close {
  position: absolute;
  z-index: 1;
  top: 1.25rem;
  right: clamp(1rem, 4vw, 4rem);
  width: auto;
  padding: 0 1rem;
  text-transform: uppercase;
}

.lightbox-open {
  overflow: hidden;
}

.footer-label {
  margin-bottom: 0.8rem !important;
  color: var(--sun);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-bottom,
.footer-credit {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem clamp(1.25rem, 7vw, 7.75rem);
  border-top: 1px solid var(--line-light);
}

.footer-bottom {
  color: white;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}

.footer-credit {
  justify-content: flex-end;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
}

.motion-ready .motion-reveal {
  transform: translate3d(0, 2rem, 0);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-ready .motion-reveal.is-visible {
  transform: translate3d(0, 0, 0);
}

.mobile-nav {
  display: none;
}

.error-page {
  display: flex;
  min-height: calc(100svh - 6rem);
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 9vw, 9rem);
  background: var(--paper);
}

.error-page h1 {
  margin-bottom: 1.5rem;
  color: var(--night);
}

.error-page > p:not(.eyebrow) {
  margin-bottom: 2rem;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .header-actions {
    grid-column: 2;
  }

  .story-heading {
    grid-column: 1 / span 7;
  }

  .story-copy {
    grid-column: 8 / -1;
  }

  .visit {
    grid-template-columns: 1fr 1.15fr;
  }
}

@media (max-width: 900px) {
  .story {
    min-height: auto;
  }

  .story-heading,
  .story-copy {
    grid-column: 1 / -1;
  }

  .story-copy {
    max-width: 40rem;
    margin-top: 2rem;
  }

  .feature,
  .feature-drinks {
    grid-template-columns: 1fr;
  }

  .recognition {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .recognition-image {
    min-height: 46rem;
  }

  .recognition-copy {
    min-height: 42rem;
  }

  .feature-image-wrap {
    min-height: 70svh;
  }

  .feature-copy {
    min-height: 34rem;
  }

  .feature-drinks .feature-copy {
    order: 2;
  }

  .feature-drinks .feature-image-wrap {
    order: 1;
  }

  .reel-heading {
    grid-template-columns: 1fr;
  }

  .reel-instruction {
    margin-top: -0.75rem;
  }

  .visit {
    grid-template-columns: 1fr;
  }

  .map-panel {
    min-height: 65svh;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 4rem;
  }

  .site-header {
    padding: 0.75rem 1rem;
  }

  .brand {
    width: 6.7rem;
  }

  .header-directions {
    display: none;
  }

  .hero-content {
    width: 100%;
    padding: 8.5rem 1.25rem 8rem;
  }

  .hero-image {
    object-position: 62% center;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(3.7rem, 16.5vw, 6.4rem);
  }

  html[lang="th"] h1 {
    max-width: 8ch;
    font-size: clamp(3.25rem, 15vw, 5rem);
  }

  .hero-sideword {
    display: none;
  }

  .story {
    display: block;
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .story h2,
  .recognition h2,
  .gallery h2,
  .visit h2 {
    font-size: clamp(3rem, 14vw, 4.8rem);
  }

  .story-copy {
    margin-top: 3rem;
  }

  .story-facts {
    grid-template-columns: 1fr;
    margin-top: 4rem;
  }

  .recognition-image {
    min-height: auto;
    padding: 4rem 1.25rem;
  }

  .recognition-image img {
    width: min(100%, 24rem);
    max-height: none;
  }

  .recognition-copy {
    min-height: 36rem;
    padding: 5rem 1.25rem;
  }

  .feature-image-wrap {
    min-height: 64svh;
  }

  .feature-copy {
    min-height: 30rem;
    padding: 4.5rem 1.25rem;
  }

  .feature h2 {
    font-size: clamp(3rem, 14vw, 4.8rem);
  }

  .reel-sticky {
    padding-top: 5.5rem;
    padding-bottom: 5rem;
  }

  .has-motion .reel-stage {
    height: 390vh;
  }

  .has-motion .reel-sticky {
    padding-bottom: 0;
  }

  .reel-heading {
    margin-bottom: 2rem;
  }

  .reel-heading h2 {
    font-size: clamp(3rem, 13.5vw, 4.6rem);
  }

  .reel-viewport {
    scroll-snap-type: x mandatory;
  }

  .reel-card,
  .reel-card-landscape {
    width: 82vw;
    scroll-snap-align: center;
  }

  .reel-card img {
    height: 57svh;
  }

  .music {
    min-height: 82svh;
  }

  .music-copy {
    right: 1.25rem;
    bottom: 3.5rem;
    left: 1.25rem;
  }

  .music h2 {
    font-size: clamp(4rem, 19vw, 6.2rem);
  }

  .gallery-heading {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .gallery-grid {
    columns: 2 9rem;
  }

  .visit-copy {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .contact-row {
    grid-template-columns: 1fr;
  }

  .map-panel {
    min-height: 62svh;
  }

  .gallery-lightbox-shell {
    grid-template-columns: 3rem minmax(0, 1fr) 3rem;
    gap: 0.5rem;
    padding: 5rem 0.75rem 1rem;
  }

  .gallery-lightbox-image {
    height: min(72svh, 42rem);
  }

  .gallery-lightbox figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .gallery-lightbox button {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.5rem 2rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .mobile-nav {
    position: fixed;
    z-index: 150;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line-light);
    background: rgba(7, 19, 29, 0.97);
    color: white;
    backdrop-filter: blur(14px);
  }

  .mobile-nav a {
    display: grid;
    min-height: 4rem;
    place-items: center;
    padding: 0.65rem 0.35rem;
    border-right: 1px solid var(--line-light);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
  }

  .mobile-nav a:nth-child(2) {
    background: var(--sun);
    color: var(--night);
  }

  .mobile-nav a:last-child {
    border-right: 0;
  }
}

@media (max-width: 470px) {
  .gallery-grid {
    columns: 1;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* The blanket 0.01ms override below would spin the marquee, not stop it. Kill the
     animation outright and hand the rows back to the reader as normal scrollers. */
  .voices-track {
    width: auto;
    animation: none !important;
  }

  .voices-row {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    scroll-snap-type: x mandatory;
  }

  .voice {
    scroll-snap-align: start;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .hero-slides,
  .hero-image,
  .reel-track {
    transform: none !important;
  }

  .hero-slide {
    display: none;
    opacity: 1;
  }

  .hero-slide.is-active {
    display: block;
  }

  .motion-ready .motion-reveal {
    opacity: 1;
    transform: none;
  }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation-duration: 0.01ms !important;
  }
}

@media print {
  body {
    padding: 0;
  }

  .site-header,
  .mobile-nav,
  .page-progress,
  .reel-instruction,
  .map-panel-action {
    display: none;
  }

  .reel-viewport {
    overflow: visible;
  }

  .reel-track {
    flex-wrap: wrap;
    transform: none !important;
  }

  .gallery-lightbox {
    display: none;
  }
}
