/* Krua Bophut — concept A, "Lantern". Cinematic night: teak, night blue, candle gold. */

:root {
  --night: #090b10;
  --night-2: #0d121b;
  --teak: #130d09;
  --teak-2: #1b130d;
  --candle: #f1cd94;
  --candle-2: #d9b37d;
  --ink: #e6dccb;
  --ink-2: #b9ab96;
  --hair: rgba(241, 205, 148, 0.16);
  --orange: #f37024;
  --orange-ink: #1c0d03;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-brush: cubic-bezier(0.62, 0.02, 0.24, 1);

  --gut: clamp(20px, 5vw, 72px);
  --maxw: 1320px;
  --col-gap: clamp(16px, 2.2vw, 32px);
  --section: clamp(96px, 13vw, 196px);
}

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

html {
  background: var(--night);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--night);
  font-family: var(--sans);
  font-size: clamp(16px, 0.95rem + 0.22vw, 18px);
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--candle); outline-offset: 4px; border-radius: 2px; }

h1, h2, h3, p, dl, dd { margin: 0; }

h2 {
  font-family: var(--serif);
  font-weight: 330;
  font-size: clamp(2.125rem, 1.3rem + 2.9vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--candle);
  text-wrap: balance;
  font-variation-settings: "SOFT" 100;
}
h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 330;
  font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.125rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--candle);
  text-wrap: balance;
  font-variation-settings: "SOFT" 100;
}
p { max-width: 34em; text-wrap: pretty; }

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

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 12px 18px; background: var(--candle); color: var(--orange-ink);
  font-weight: 600; font-size: 15px; border-radius: 4px;
  transform: translateY(-160%);
  transition: transform 0.4s var(--ease-out);
}
.skip:focus-visible { transform: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gut));
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* ---------- Buttons and links ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  font: 600 15.5px/1 var(--sans);
  letter-spacing: 0.02em;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.55s var(--ease-out);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  opacity: 0; transition: opacity 0.45s var(--ease-out);
}
.btn-primary { background: var(--orange); color: var(--orange-ink); }
.btn-primary::after { background: #fff; }
.btn-ghost { color: var(--candle); box-shadow: inset 0 0 0 1px rgba(241, 205, 148, 0.42); }
.btn-ghost::after { background: var(--candle); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14.5px; }

@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn-primary:hover::after { opacity: 0.16; }
  .btn-ghost:hover::after { opacity: 0.1; }
}
.btn:active { transform: translateY(0); transition-duration: 0.15s; }

.lnk { position: relative; display: inline-block; }
.lnk::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px;
  background: currentColor; opacity: 0.35;
  transform-origin: 0 50%;
  transition: transform 0.6s var(--ease-out), opacity 0.6s var(--ease-out);
}
@media (hover: hover) {
  .lnk:hover::after { opacity: 0.9; }
}

/* ---------- Logo (three stacked layers, positions in px of the 1926x687 master) ---------- */

.lp {
  position: absolute;
  left: calc(var(--l) / 19.26 * 1%);
  top: calc(var(--t) / 6.87 * 1%);
  width: calc(var(--w) / 19.26 * 1%);
  height: calc(var(--h) / 6.87 * 1%);
}
.lp-thai { --l: 34; --t: 8; --w: 645; --h: 155; }
.lp-word { --l: 8; --t: 161; --w: 1910; --h: 426; }
.lp-tag  { --l: 802; --t: 586; --w: 1108; --h: 93; }

.mini { display: block; position: relative; aspect-ratio: 1926 / 687; }
.mini img { max-width: none; }

.logo { width: var(--logo-w, 600px); }
.logo-art { position: relative; display: block; aspect-ratio: 1926 / 687; }
.logo-glow {
  position: absolute;
  left: -12%; top: -33.6%; width: 124.05%; height: 167.3%;
  max-width: none;
  opacity: 0.36;
  pointer-events: none;
}
.ll { --f: 0.36; overflow: hidden; }
.ll-m {
  position: absolute; left: 0; top: 0; height: 100%;
  width: calc(100% * (1 + var(--f)));
  -webkit-mask-image: url(img/brush.png);
  mask-image: url(img/brush.png);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.ll-m img {
  position: absolute; left: 0; top: 0;
  width: calc(100% / (1 + var(--f)));
  height: 100%;
  max-width: none;
}

/* ---------- Header bar (slides in once the hero has gone) ---------- */

.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: calc(64px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(var(--gut), env(safe-area-inset-right)) 0 max(var(--gut), env(safe-area-inset-left));
  background: rgba(9, 11, 16, 0.9);
  border-bottom: 1px solid var(--hair);
  transform: translateY(-102%);
  transition: transform 0.75s var(--ease-out);
}
.bar.is-on, .bar:focus-within { transform: none; }
.bar-home { display: block; padding: 8px 0; }
.bar-home .mini { width: 118px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  background: var(--night);
}
.hero-media::before {
  /* blur-up placeholder while the photo arrives */
  content: ""; position: absolute; inset: -40px;
  background: var(--lqip-l, url("data:image/webp;base64,UklGRpYAAABXRUJQVlA4IIoAAABwBACdASoYAA4APu1iqU2ppaOiMAgBMB2JaACdMoADTSEZgBegKi7bS8dRMAD+42/gM0DODcxRdCXidpfivWdqBH2UfxCKUTLIKbEHL9MFFb2aX5kq2G2YcPToKtZFmFweEnih/7b9WzNupvHDboYfamc7xCq31itt2SQxV6mIxGxrVzyFW7GgAAA=")) center / cover no-repeat;
  filter: blur(24px);
}
@media (max-aspect-ratio: 4/5) {
  .hero-media::before {
    background-image: url("data:image/webp;base64,UklGRrwAAABXRUJQVlA4ILAAAABQBQCdASoUABwAPu1mqk2ppaQiMAgBMB2JYgCxG49s/wGmzmK2DSk3Bs3q0FD7HD0I6gAA/ukdp2NdbwcMVjAjZtUbmnCQ80bYZoRcNR/tK+z5ysBeD7QGnB+Ya67iaXquNCc7vJPnbXAo/NZ1MWD//NXZaLmaK6QcQih0ZqigGF80mbt6dvnwrW8ZQBzLtiauQ9k2mkpo17tg3uBlfS9BcC604Qm/L5UxksoEhgAAAA==");
    background-position: 22% 50%;
  }
}
.hero-pic {
  position: absolute; inset: 0;
  display: block;
  opacity: 0;
  transition: opacity 2.8s var(--ease-io);
}
.hero-pic.is-on { opacity: 1; }
.hero-pic img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform-origin: 30% 60%;
}
.hero-pic + .hero-pic img { object-position: 52% 50%; transform-origin: 55% 45%; }

.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(9, 11, 16, 0.5) 0%, rgba(9, 11, 16, 0) 20%),
    linear-gradient(0deg, rgba(9, 11, 16, 1) 0%, rgba(9, 11, 16, 0.9) 18%, rgba(9, 11, 16, 0.72) 36%, rgba(9, 11, 16, 0.38) 50%, rgba(9, 11, 16, 0) 66%);
}
@media (max-aspect-ratio: 4/5) {
  /* on phones the slow push-in is anchored low, so the photo drifts up and away from the type */
  .hero-pic img, .hero-pic + .hero-pic img { transform-origin: 50% 88%; }
}

.hero-copy {
  --logo-w: min(84vw, 340px);
  width: 100%;
  padding: 0 var(--gut) calc(clamp(32px, 6vh, 72px) + env(safe-area-inset-bottom));
}
.hero-line {
  margin-top: clamp(18px, 3vh, 28px);
  max-width: 22em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 320;
  font-size: clamp(20px, 1.05rem + 0.6vw, 25px);
  line-height: 1.32;
  color: var(--candle);
  font-variation-settings: "SOFT" 100;
}
.hero-hours {
  margin-top: 12px;
  font-size: 16px;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.hero .actions { margin-top: clamp(22px, 3.4vh, 32px); }

@media (min-aspect-ratio: 4/5) {
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(9, 11, 16, 0.45) 0%, rgba(9, 11, 16, 0) 22%),
      linear-gradient(0deg, rgba(9, 11, 16, 1) 0%, rgba(9, 11, 16, 0.7) 18%, rgba(9, 11, 16, 0) 52%),
      linear-gradient(270deg, rgba(9, 11, 16, 0.72) 0%, rgba(9, 11, 16, 0.38) 34%, rgba(9, 11, 16, 0) 60%);
  }
}
@media (min-width: 900px) and (min-aspect-ratio: 4/5) {
  .hero-media {
    left: 32%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 16%, #000 38%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 16%, #000 38%);
  }
  .hero-pic img { object-position: 0% 50%; transform-origin: 20% 55%; }
  .hero-pic + .hero-pic img { object-position: 30% 50%; transform-origin: 45% 45%; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(9, 11, 16, 0.4) 0%, rgba(9, 11, 16, 0) 20%),
      linear-gradient(0deg, rgba(9, 11, 16, 1) 0%, rgba(9, 11, 16, 0.55) 16%, rgba(9, 11, 16, 0) 40%);
  }
  .hero-copy {
    --logo-w: clamp(400px, 38vw, 580px);
    width: auto;
    max-width: calc(var(--logo-w) + 2 * var(--gut));
    padding-bottom: clamp(56px, 11vh, 120px);
  }
}

/* ---------- The house ---------- */

.house {
  padding-block: clamp(72px, 9vw, 136px) var(--section);
  background: linear-gradient(180deg, var(--night) 0%, var(--teak) 30%, var(--teak) 100%);
}
.house-text p { margin-top: 24px; color: var(--ink); }
.house-text h2 + p { margin-top: clamp(24px, 3vw, 36px); }
.house-places {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 330;
  font-size: clamp(19px, 1.05rem + 0.4vw, 22px);
  line-height: 1.45;
  color: var(--candle-2);
  font-variation-settings: "SOFT" 100;
}
.house-media { position: relative; margin-top: 56px; padding-bottom: 16%; }
.frame-tall { width: 84%; margin-left: auto; aspect-ratio: 4 / 5; }
.frame.frame-small {
  position: absolute; left: 0; bottom: 0;
  width: 62%; aspect-ratio: 9 / 5;
  border: 6px solid var(--teak);
  box-sizing: content-box;
  margin-left: -6px;
}

@media (min-width: 900px) {
  .house-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: center;
  }
  .house-grid { align-items: start; }
  .house-text { grid-column: 1 / span 5; padding-top: clamp(48px, 8vw, 128px); }
  .house-media { grid-column: 7 / span 6; margin-top: 0; padding-bottom: 16%; }
  .frame-tall { width: 86%; }
  .frame.frame-small { width: 60%; left: -20%; bottom: 0; border-width: 10px; margin-left: -10px; }
}

/* ---------- Frames (image reveals + parallax) ---------- */

.frame {
  position: relative;
  overflow: hidden;
  background: #1a130e;
}
.frame .px {
  position: absolute; left: 0; right: 0; top: -9%; bottom: -9%;
}
.frame .px img {
  width: 100%; height: 100%;
  object-fit: cover;
  max-width: none;
}

/* ---------- Kitchen ---------- */

.kitchen { padding-block: 0 var(--section); background: var(--teak); }
.kitchen-head p { margin-top: 22px; }
.plates { margin-top: 44px; }
.plate-a { aspect-ratio: 5 / 4; margin-inline: calc(-1 * var(--gut)); }
.plate-a img { object-position: 55% 40%; }
.plate-b {
  width: 64%; aspect-ratio: 1 / 1;
  margin: -14% -6px 0 auto;
  border: 6px solid var(--teak);
  box-sizing: content-box;
}
.plate-b img { object-position: 50% 50%; }
/* the daylight food photos sit in the candlelit page under a soft edge vignette */
.plate .px::after, .seafood-img .px::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 95% at 50% 50%, rgba(19, 13, 9, 0) 52%, rgba(19, 13, 9, 0.5) 100%);
}
.seafood { margin-top: clamp(64px, 9vw, 140px); }
.seafood-img { aspect-ratio: 9 / 5; margin-inline: calc(-1 * var(--gut)); }
.seafood-text { margin-top: 28px; }
.seafood-text p { margin-top: 16px; }

@media (hover: hover) {
  .plate img, .seafood-img img { transition: transform 1.4s var(--ease-out), filter 1.4s var(--ease-out); }
  .plate:hover img, .seafood-img:hover img { transform: scale(1.04); }
}

@media (min-width: 900px) {
  .kitchen-head {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: end;
  }
  .kitchen-head h2 { grid-column: 1 / span 7; }
  .kitchen-head p { grid-column: 9 / span 4; margin-top: 0; padding-bottom: 6px; }
  .plates {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: start;
    margin-top: clamp(56px, 7vw, 104px);
  }
  .plate-a { grid-column: 1 / span 6; aspect-ratio: 5 / 4; margin-inline: 0; }
  .plate-b { grid-column: 8 / span 5; width: auto; aspect-ratio: 1 / 1; margin: 22% 0 0; border: 0; }
  .seafood {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: end;
  }
  .seafood-img { grid-column: 5 / span 8; grid-row: 1; margin-inline: 0; }
  .seafood-text { grid-column: 1 / span 4; grid-row: 1; margin-top: 0; padding-right: 8%; padding-bottom: 4px; }
}

/* ---------- Deck ---------- */

.deck {
  padding-block: 0 var(--section);
  background: linear-gradient(180deg, var(--teak) 0%, var(--night-2) 55%, var(--night) 100%);
}
.deck-img { aspect-ratio: 4 / 5; }
.deck-img img { object-position: 50% 50%; }
.deck-text { padding: 40px var(--gut) 0; }
.deck-text p { margin-top: 22px; }
.deck-small { margin-top: 44px; aspect-ratio: 9 / 5; }

@media (min-width: 701px) {
  .deck-img { aspect-ratio: 16 / 10; }
  .deck-img img { object-position: 55% 50%; }
}
@media (min-width: 900px) {
  .deck-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    column-gap: clamp(40px, 5vw, 96px);
    align-items: center;
    padding-right: max(var(--gut), calc((100vw - var(--maxw)) / 2));
  }
  .deck-img { aspect-ratio: 16 / 11; }
  .deck-text { padding: 0; }
  .deck-small { margin-top: clamp(40px, 5vw, 64px); width: 86%; }
}

/* ---------- Sand: sunset into moonlight ---------- */

.sand { position: relative; background: var(--night); }
.sand-stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
}
.sand-pic { position: absolute; inset: 0; display: block; z-index: -2; }
.sand-pic img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.sand-sun img { object-position: 50% 50%; transform-origin: 50% 45%; }
.sand-moon img { object-position: 50% 50%; transform-origin: 52% 20%; }
@media (max-aspect-ratio: 4/5) {
  .sand-sun img { object-position: 46% 50%; }
  .sand-moon img { object-position: 54% 50%; }
}
.sand-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(9, 11, 16, 1) 0%, rgba(9, 11, 16, 0.55) 5%, rgba(9, 11, 16, 0) 14%),
    linear-gradient(0deg, rgba(9, 11, 16, 1) 0%, rgba(9, 11, 16, 0.84) 22%, rgba(9, 11, 16, 0.4) 44%, rgba(9, 11, 16, 0) 64%);
}
@media (min-aspect-ratio: 4/5) {
  .sand-shade {
    background:
      linear-gradient(180deg, rgba(9, 11, 16, 1) 0%, rgba(9, 11, 16, 0.5) 5%, rgba(9, 11, 16, 0) 12%),
      linear-gradient(0deg, rgba(9, 11, 16, 1) 0%, rgba(9, 11, 16, 0.6) 22%, rgba(9, 11, 16, 0) 50%),
      linear-gradient(90deg, rgba(9, 11, 16, 0.72) 0%, rgba(9, 11, 16, 0.35) 32%, rgba(9, 11, 16, 0) 56%);
  }
}
.sand-copy {
  position: absolute;
  left: max(var(--gut), calc((100vw - var(--maxw)) / 2));
  right: var(--gut);
  bottom: calc(clamp(36px, 8vh, 96px) + env(safe-area-inset-bottom));
  max-width: 560px;
}
.sand-lede { margin-top: 16px; color: var(--ink); }
.atmos {
  margin-top: clamp(20px, 3vh, 32px);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 320;
  font-size: clamp(22px, 1.1rem + 1.1vw, 32px);
  line-height: 1.28;
  color: var(--candle);
  font-variation-settings: "SOFT" 100;
}
.atmos span { display: block; }

/* JS: a tall track with a sticky stage, and the evening runs with the scroll */
html.js .sand { height: 270vh; height: 270svh; }
html.js .sand-stage { position: sticky; top: 0; }
html.js .sand-moon { opacity: 0; }
@media (max-aspect-ratio: 4/5) {
  html.js .sand { height: 250vh; height: 250svh; }
}

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

.visit {
  padding-block: clamp(80px, 11vw, 168px) clamp(56px, 7vw, 104px);
  background: var(--night);
}
.visit-lede { margin-top: 22px; }
.visit .actions { margin-top: 32px; }
.facts { margin-top: 56px; border-top: 1px solid var(--hair); }
.fact {
  display: grid;
  grid-template-columns: 7.4em minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hair);
}
.fact dt {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 330;
  color: var(--candle-2);
  padding-top: 1px;
  font-variation-settings: "SOFT" 100;
}
.fact dd { color: var(--ink); overflow-wrap: break-word; }
@media (max-width: 520px) {
  .fact { grid-template-columns: 1fr; gap: 2px; padding: 14px 0 16px; }
}
.fact dd .lnk { display: block; width: fit-content; padding-block: 9px; margin-block: -9px; }
.fact dd .lnk + .lnk { margin-top: 0; }

.awards {
  display: grid;
  gap: 10px;
  margin-top: 48px;
}
.award {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 44px; padding: 6px 0;
  transition: transform 0.55s var(--ease-out);
}
.award-name {
  font-family: var(--serif);
  font-weight: 330;
  font-size: clamp(19px, 1.05rem + 0.3vw, 22px);
  line-height: 1.25;
  color: var(--candle);
  font-variation-settings: "SOFT" 100;
}
.award-by {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 2px;
  font-size: 14px; letter-spacing: 0.03em; color: var(--ink-2);
}
.award-by svg {
  width: 11px; height: 11px;
  fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.55s var(--ease-out);
}
@media (hover: hover) {
  .award:hover .award-by svg { transform: translate(2px, -2px); }
  .award:hover .award-by { color: var(--ink); }
}

@media (min-width: 900px) {
  .visit-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: start;
  }
  .visit-grid { grid-template-rows: auto 1fr; }
  .visit-main { grid-column: 1 / span 5; grid-row: 1; }
  .facts { grid-column: 7 / span 6; grid-row: 1 / span 2; margin-top: 10px; }
  .awards { grid-column: 1 / span 5; grid-row: 2; align-self: end; margin-top: 64px; }
}

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

.foot {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px max(var(--gut), calc((100vw - var(--maxw)) / 2)) calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hair);
  background: var(--night);
}
.foot-home { display: block; padding: 6px 0; }
.foot-home .mini { width: 104px; }
.foot-note { font-size: 13px; letter-spacing: 0.04em; color: var(--ink-2); }

/* =================================================================
   Motion. Everything above is the resting state, visible without JS.
   Initial "before" states only apply once html.js is set.
   ================================================================= */

/* Hero photo: blur-up, then a slow Ken Burns. */
html.js .hero-pic img { opacity: 0; transition: opacity 1.2s var(--ease-out); }
html.js .hero-pic img.is-loaded { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  html.js .hero-pic img { animation: kenburns 26s var(--ease-io) infinite alternate both; }
  html.js .hero-pic + .hero-pic img { animation-duration: 30s; animation-direction: alternate-reverse; }
  html.js .hero.is-off .hero-pic img,
  html.js .hero.is-off .logo-glow { animation-play-state: paused; }
}
@keyframes kenburns {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.11) translate3d(-1.4%, -1%, 0); }
}

/* Logo: brush-edged mask sweeps right, the image counter-moves so it stays put. */
html.js .ll-m { transform: translate3d(-100%, 0, 0); }
html.js .ll-m img { transform: translate3d(calc((1 + var(--f)) * 100%), 0, 0); }
html.js .hero.is-in .ll-m,
html.js .hero.is-in .ll-m img {
  transform: translate3d(0, 0, 0);
  transition: transform var(--dur) var(--ease-brush) var(--delay);
}
html.js .logo-glow { opacity: 0; }
html.js .hero.is-in .logo-glow {
  opacity: 0.36;
  transition: opacity 2.2s var(--ease-io) 2.2s;
}
@media (prefers-reduced-motion: no-preference) {
  html.js .hero.is-in .logo-glow { animation: candle 7.5s ease-in-out 4.6s infinite; }
}
@keyframes candle {
  0%, 100% { opacity: 0.36; }
  17% { opacity: 0.3; }
  31% { opacity: 0.41; }
  48% { opacity: 0.32; }
  66% { opacity: 0.44; }
  83% { opacity: 0.34; }
}

/* Words light up one by one, like lamps along a path. */
.w { display: inline-block; }
html.js [data-split] .w {
  opacity: 0;
  transform: translate3d(0, 0.42em, 0);
  filter: blur(6px);
}
html.js [data-split].is-in .w {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition:
    opacity 1s var(--ease-out),
    transform 1.25s var(--ease-out),
    filter 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0ms) + var(--i, 0) * 55ms);
}

/* Blocks rise gently. */
html.js [data-reveal]:not(.frame) {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
}
html.js [data-reveal].is-in:not(.frame) {
  opacity: 1;
  transform: none;
  transition: opacity 1.1s var(--ease-out) var(--d, 0ms), transform 1.3s var(--ease-out) var(--d, 0ms);
}

/* Images unveil from below (or from the side) and their lamps come up. */
html.js .frame[data-reveal] { background: transparent; }
html.js .frame[data-reveal] > .px { clip-path: inset(100% 0 0 0); }
html.js .frame[data-reveal="side"] > .px { clip-path: inset(0 100% 0 0); }
html.js .frame[data-reveal] img { transform: scale(1.16); filter: brightness(0.45) saturate(0.75); }
html.js .frame[data-reveal].is-in > .px {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.6s var(--ease-io) var(--d, 0ms);
}
html.js .frame[data-reveal].is-in img {
  transform: none;
  filter: none;
  transition: transform 2.2s var(--ease-out) var(--d, 0ms), filter 2s var(--ease-out) var(--d, 0ms);
}
@media (hover: hover) {
  html.js .plate.is-in:hover img,
  html.js .seafood-img.is-in:hover img {
    transform: scale(1.04);
    transition: transform 1.4s var(--ease-out) 0ms;
  }
}

.px { will-change: transform; }

/* Atmosphere lines appear as the evening turns (driven by scroll). */
html.js .atmos span {
  opacity: 0;
  transform: translate3d(0, 0.5em, 0);
  filter: blur(6px);
  transition: opacity 1.2s var(--ease-out), transform 1.4s var(--ease-out), filter 1.2s var(--ease-out);
}
html.js .atmos span.is-in { opacity: 1; transform: none; filter: blur(0); }

/* Reduced motion: no movement, only crossfades. */
@media (prefers-reduced-motion: reduce) {
  html.js .ll-m, html.js .ll-m img { transform: none !important; }
  html.js .ll { opacity: 0; }
  html.js .hero.is-in .ll { opacity: 1; transition: opacity 1.4s var(--ease-io) var(--delay); }
  html.js [data-split] .w,
  html.js [data-reveal]:not(.frame),
  html.js .atmos span { transform: none !important; filter: none !important; }
  html.js .frame[data-reveal] > .px { clip-path: none !important; }
  html.js .frame[data-reveal] { opacity: 0; }
  html.js .frame[data-reveal].is-in { opacity: 1; transition: opacity 1.2s var(--ease-io) var(--d, 0ms); }
  html.js .frame[data-reveal] img { transform: none !important; filter: none !important; }
  .btn, .award, .award-by svg, .lnk::after { transition: none; }
  .btn:hover { transform: none; }
  .px { will-change: auto; }
}
