/* Thăng Long Chè Việt — heritage preview (standalone) */

:root {
  /* Vàng – đỏ – nâu: lacquer red and gold on deep rosewood brown */
  --ink: #f0e6d6;
  --ink-soft: #d2c2a8;
  --paper: #f3ebdd;
  --paper-deep: #2a1b13;
  --surface: rgba(44, 28, 19, 0.74);
  --surface-veil: rgba(24, 14, 9, 0.58);
  --lacquer: #d4603f;
  --lacquer-dim: #9c3b24;
  --lacquer-glow: rgba(212, 96, 63, 0.42);
  --gold: #e3bd76;
  --gold-dim: #a3803f;
  --amber: #f3cd86;
  --mist: rgba(224, 196, 160, 0.12);
  --shadow: rgba(0, 0, 0, 0.55);
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Be Vietnam Pro", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  /* Intro dissolve — slow in, slower out (no snap at the end) */
  --ease-handoff: cubic-bezier(0.36, 0, 0.18, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  /* Reserve the scrollbar gutter: the intro locks scrolling, and without this
     the page jolts sideways the moment that lock is released. */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink-soft);
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(176, 60, 36, 0.26) 0%, transparent 52%),
    radial-gradient(ellipse 70% 45% at 100% 12%, rgba(227, 189, 118, 0.12) 0%, transparent 46%),
    radial-gradient(ellipse 65% 50% at 0% 85%, rgba(92, 40, 24, 0.38) 0%, transparent 52%),
    linear-gradient(168deg, #140c08 0%, #20130d 26%, #281810 52%, #1a0f0a 100%);
  overflow-x: hidden;
}

/* Soft drifting light + specular dust (reduced-motion clears animation) */
.sparkle-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 18%, rgba(255, 236, 198, 0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 22% 62%, rgba(227, 189, 118, 0.3) 0%, transparent 100%),
    radial-gradient(1.2px 1.2px at 78% 28%, rgba(224, 112, 70, 0.32) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 88%, rgba(255, 244, 222, 0.24) 0%, transparent 100%),
    radial-gradient(1.3px 1.3px at 91% 72%, rgba(243, 205, 134, 0.26) 0%, transparent 100%);
  background-size: 120% 120%, 100% 100%, 110% 110%, 130% 130%, 115% 115%;
  background-position: 0% 0%, 20% 40%, 60% 10%, 80% 60%, 10% 90%;
  animation: sparkleDrift 48s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}

@keyframes sparkleDrift {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.45;
  }
  50% {
    transform: translate(-1.5%, 1%) scale(1.02);
    opacity: 0.62;
  }
  100% {
    transform: translate(1%, -0.5%) scale(1);
    opacity: 0.48;
  }
}

body.intro-active {
  overflow: hidden;
}

/* Sparkle stays visible but light; full drift resumes after handoff */
body.intro-active .sparkle-field {
  opacity: 0.28;
  animation-play-state: paused;
}

body:not(.intro-active) .sparkle-field {
  transition: opacity 1.65s var(--ease-handoff);
}

/* Blurred museum backdrops decode after handoff */
body.intro-active .ambient__artifacts-bg {
  opacity: 0;
  visibility: hidden;
  animation-play-state: paused;
}

body.ambient-ready .ambient__artifacts-bg {
  opacity: 1;
  visibility: visible;
  animation-play-state: running;
  transition: opacity 1.2s var(--ease-out);
}

body.intro-active .site-header {
  z-index: 600;
}

/* --- Fullscreen intro (tea brand–style cinematic open) --- */
.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  contain: layout style paint;
  isolation: isolate;
  background: radial-gradient(ellipse 100% 80% at 50% -10%, rgba(224, 180, 110, 0.35) 0%, transparent 52%),
    radial-gradient(ellipse 90% 70% at 100% 30%, rgba(176, 66, 43, 0.22) 0%, transparent 45%),
    radial-gradient(ellipse 85% 75% at 0% 65%, rgba(168, 132, 108, 0.18) 0%, transparent 48%),
    linear-gradient(165deg, #4e2a1b 0%, #3d2016 22%, #341c13 45%, #26140e 72%, #180d09 100%);
  opacity: 1;
  /* Long, late-accelerating dissolve — the splash lifts and softens rather
     than snapping off. Keep in step with CROSSFADE_MS in js/main.js. */
  /* Opacity and transform only — a full-screen filter here drops frames and
     the dropped frames are what reads as a jump. */
  transition:
    opacity 1.65s var(--ease-handoff),
    visibility 1.65s var(--ease-handoff),
    transform 1.75s var(--ease-handoff);
  will-change: opacity, transform;
  transform: translateZ(0);
}

.intro-splash::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    118deg,
    rgba(176, 66, 43, 0.14) 0%,
    rgba(224, 180, 110, 0.2) 28%,
    rgba(212, 175, 130, 0.12) 52%,
    rgba(90, 118, 102, 0.16) 78%,
    rgba(224, 180, 110, 0.1) 100%
  );
  background-size: 400% 400%;
  animation: introWash 22s ease-in-out infinite;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

@keyframes introWash {
  0%,
  100% {
    background-position: 0% 40%;
  }
  33% {
    background-position: 70% 60%;
  }
  66% {
    background-position: 30% 70%;
  }
}

.intro-splash[hidden] {
  display: none !important;
}

/* --- The handoff: splash dissolves outward while the stage resolves beneath --- */
.intro-splash.is-warming {
  opacity: 0;
  pointer-events: none;
}

.intro-splash.is-closing {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.035) translateZ(0);
}

.intro-splash.is-closing .intro-splash__video {
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

/* Text leaves first and fastest, so the eye is free before the frame opens. */
.intro-splash.is-closing .intro-splash__content {
  animation: introContentOut 0.75s var(--ease-handoff) forwards;
}

@keyframes introContentOut {
  to {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(-14px) scale(0.985) translateZ(0);
  }
}

/* The two photo stacks part like curtains. */
.intro-splash.is-closing .intro-splash__artifact-col--left {
  animation: introPartLeft 1.1s var(--ease-handoff) forwards;
}

.intro-splash.is-closing .intro-splash__artifact-col--right {
  animation: introPartRight 1.1s var(--ease-handoff) forwards;
}

.intro-splash.is-closing .intro-splash__artifact-col--left,
.intro-splash.is-closing .intro-splash__artifact-col--right {
  will-change: transform, opacity;
  backface-visibility: hidden;
}

@keyframes introPartLeft {
  to {
    opacity: 0;
    transform: translateX(-10%) scale(1.03) translateZ(0);
  }
}

@keyframes introPartRight {
  to {
    opacity: 0;
    transform: translateX(10%) scale(1.03) translateZ(0);
  }
}

/* Letterbox opens all the way out — the frame releasing the picture. */
.intro-splash.is-closing .intro-splash__bar {
  animation: barsOpen 1s var(--ease-handoff) forwards;
}

@keyframes barsOpen {
  to {
    transform: scaleY(0);
  }
}

/* A last warm bloom at the centre, like a projector lamp swelling. */
.intro-splash.is-closing .intro-splash__glow-ring {
  animation: introBloom 1.05s var(--ease-handoff) forwards;
}

@keyframes introBloom {
  40% {
    opacity: 1.35;
    transform: scale(1.08) translateZ(0);
  }
  to {
    opacity: 0;
    transform: scale(1.16) translateZ(0);
  }
}

/* Stage side: hidden while the splash runs, then surfacing out of soft focus.
   The will-change is declared during the hold, not at the hand-off, so the
   compositor layers already exist when the fade starts — promoting them on the
   first frame of the animation costs about 100ms, and that is the stutter. */
body.intro-active main,
body.intro-active .site-footer {
  opacity: 0;
  will-change: opacity, transform;
  transform: translateZ(0);
}

/* Stage rises under the dissolving splash — still scroll-locked via intro-active */
body.intro-active main.is-stage-entering,
body.intro-active .site-footer.is-stage-entering,
main.is-stage-entering,
.site-footer.is-stage-entering {
  animation: stageEnter 1.75s var(--ease-handoff) backwards;
  will-change: opacity, transform;
}

body.intro-active .site-footer.is-stage-entering,
.site-footer.is-stage-entering {
  animation-delay: 0.12s;
}

@keyframes stageEnter {
  from {
    opacity: 0;
    transform: scale(1.022) translateZ(0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Hero seal and gilt title hold at frame one behind the splash, so their own
   entrances play into the cross-fade instead of finishing out of sight. */
body.intro-active .brand-seal--hero,
body.intro-active .hero__title-line {
  animation-play-state: paused;
}

.intro-splash__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  contain: strict;
  transform: translateZ(0);
}

/* Eight TLCV tiles — 4 left + 4 right (thanglongcheviet.vn /images/cards; same mapping as #worlds) */
.intro-splash__artifacts {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 95% 88% at 50% 48%, rgba(74, 88, 78, 0.55) 0%, rgba(42, 52, 46, 0.85) 45%, rgba(28, 34, 30, 0.95) 100%);
}

.intro-splash__artifact-cols {
  position: absolute;
  inset: 0;
  display: grid;
  /* Three tracks: left stack | clear zone for centered title | right stack */
  grid-template-columns: minmax(0, 1fr) minmax(min(42vw, 20rem), 1.15fr) minmax(0, 1fr);
  align-items: center;
  padding: clamp(1.25rem, 4vh, 2.5rem) clamp(0.5rem, 2vw, 1.25rem);
  gap: 0;
}

.intro-splash__artifact-col {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: clamp(0.35rem, 1.2vh, 0.65rem);
  width: 100%;
  max-width: min(11.5rem, 26vw);
  height: min(82vh, 100%);
}

/* Only two column divs exist — without explicit columns both sat in tracks 1–2 (all on the left). */
.intro-splash__artifact-col--left {
  grid-column: 1;
  justify-self: end;
}

.intro-splash__artifact-col--right {
  grid-column: 3;
  justify-self: start;
}

.intro-splash__artifact {
  position: relative;
  overflow: hidden;
  border-radius: 0.95rem;
  transform: translateZ(0);
  backface-visibility: hidden;
  aspect-ratio: 1 / 1;
  box-shadow:
    0 18px 36px rgba(26, 16, 11, 0.35),
    0 0 0 1px rgba(224, 180, 110, 0.28),
    0 0 22px rgba(176, 66, 43, 0.12),
    inset 0 1px 0 rgba(255, 248, 235, 0.1);
  opacity: 0.94;
  animation: introArtifactFloat 22s ease-in-out infinite;
}

.intro-splash__artifact:nth-child(1) {
  animation-delay: 0s;
}
.intro-splash__artifact:nth-child(2) {
  animation-delay: -3s;
}
.intro-splash__artifact:nth-child(3) {
  animation-delay: -6s;
}
.intro-splash__artifact:nth-child(4) {
  animation-delay: -9s;
}

.intro-splash__artifact-col--right .intro-splash__artifact:nth-child(1) {
  animation-delay: -1.5s;
}
.intro-splash__artifact-col--right .intro-splash__artifact:nth-child(2) {
  animation-delay: -4.5s;
}
.intro-splash__artifact-col--right .intro-splash__artifact:nth-child(3) {
  animation-delay: -7.5s;
}
.intro-splash__artifact-col--right .intro-splash__artifact:nth-child(4) {
  animation-delay: -10.5s;
}

.intro-splash__artifact img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.05) brightness(1.04);
}

@keyframes introArtifactFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(0.25deg);
  }
}

.intro-splash__video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.52;
  mix-blend-mode: overlay;
  filter: saturate(1.12) contrast(1.05) brightness(1.08);
}

.intro-splash__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(
      ellipse 68% 58% at 50% 40%,
      rgba(42, 52, 46, 0.15) 0%,
      rgba(35, 42, 38, 0.42) 45%,
      rgba(24, 30, 26, 0.72) 100%
    ),
    linear-gradient(
      180deg,
      rgba(176, 66, 43, 0.12) 0%,
      transparent 32%,
      rgba(168, 118, 88, 0.08) 58%,
      rgba(30, 36, 32, 0.55) 100%
    );
  pointer-events: none;
}

.intro-splash__glow-ring {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(
    ellipse 62% 56% at 50% 44%,
    rgba(224, 180, 110, 0.28) 0%,
    rgba(176, 66, 43, 0.18) 35%,
    rgba(212, 185, 140, 0.08) 55%,
    transparent 72%
  );
  mix-blend-mode: screen;
  pointer-events: none;
}

.intro-splash__grain {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

.intro-splash__content {
  position: relative;
  z-index: 10;
  max-width: min(32rem, 92vw);
  text-align: center;
  padding: 2rem 1.25rem;
  color: rgba(255, 250, 242, 0.98);
  animation: introContentIn 0.75s var(--ease-out) 0.05s both;
  will-change: transform, opacity, filter;
  isolation: isolate;
}

@keyframes introContentIn {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(12px) translateZ(0);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) translateZ(0);
  }
}

.intro-splash__eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.88;
  color: rgba(220, 200, 168, 0.95);
}

.intro-splash__title {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  font-weight: 500;
  line-height: 1.15;
  text-shadow:
    0 2px 16px rgba(26, 16, 11, 0.55),
    0 4px 32px rgba(176, 66, 43, 0.15),
    0 8px 48px rgba(26, 16, 11, 0.35);
}

.intro-splash__lede {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.55;
  opacity: 0.88;
  text-shadow: 0 1px 12px rgba(26, 16, 11, 0.4);
}

.intro-splash:focus {
  outline: none;
}

@media (max-width: 720px) {
  .intro-splash__artifact-cols {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  .intro-splash__artifact-col {
    max-width: min(7.5rem, 30vw);
    gap: 0.3rem;
    opacity: 0.92;
  }

  .intro-splash__artifact {
    border-radius: 0.72rem;
  }

  .intro-splash__video {
    opacity: 0.56;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-splash::before {
    animation: none;
    background-position: 50% 50%;
  }

  .intro-splash__content {
    animation: none;
  }

  .intro-splash__artifact {
    animation: none;
  }
}

body.worlds-mist-mode .ambient {
  opacity: 0.92;
  transition: opacity 1.2s var(--ease-out);
}

body.worlds-mist-mode .ambient__shimmer {
  opacity: 0.95;
}

body.worlds-mist-mode .vignette {
  background: radial-gradient(ellipse 65% 55% at 50% 42%, transparent 18%, rgba(0, 0, 0, 0.55) 100%);
}

/* Letterbox bars that pull back as the intro opens — the film-reel beat */
.intro-splash__bars {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

.intro-splash__bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 14vh;
  background: linear-gradient(180deg, #0d0705 0%, #130b07 100%);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.7);
}

/* Scaled, not resized: animating height relayouts the page every frame. */
.intro-splash__bar--top {
  top: 0;
  transform-origin: top;
  animation: barsRetract 0.9s var(--ease-out) 0.1s forwards;
}

.intro-splash__bar--bottom {
  bottom: 0;
  transform-origin: bottom;
  background: linear-gradient(0deg, #0d0705 0%, #130b07 100%);
  animation: barsRetract 0.9s var(--ease-out) 0.1s forwards;
}

@keyframes barsRetract {
  to {
    transform: scaleY(0.32);
  }
}

/* --- Ambient layers --- */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Soft ghost-images of Vietnamese museum pieces (full-page, under petals & grain) */
.ambient__artifacts-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ambient__artifact-bg {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  opacity: 0.14;
  mix-blend-mode: overlay;
  filter: blur(56px) saturate(0.85) contrast(1.08) brightness(0.72);
  animation: ambientArtifactDrift 84s ease-in-out infinite;
  will-change: transform;
}

.ambient__artifact-bg img {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  object-position: center;
}

.ambient__artifact-bg--1 {
  width: min(62vw, 680px);
  height: min(62vw, 680px);
  top: -18%;
  left: -22%;
  animation-delay: 0s;
}

.ambient__artifact-bg--2 {
  width: min(54vw, 600px);
  height: min(54vw, 600px);
  bottom: -12%;
  right: -18%;
  animation-delay: -22s;
}

.ambient__artifact-bg--3 {
  width: min(48vw, 520px);
  height: min(48vw, 520px);
  top: 28%;
  right: -8%;
  animation-delay: -44s;
}

.ambient__artifact-bg--4 {
  width: min(42vw, 460px);
  height: min(42vw, 460px);
  bottom: 18%;
  left: 8%;
  animation-delay: -60s;
}

@keyframes ambientArtifactDrift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  28% {
    transform: translate(2.5%, -1.5%) scale(1.04);
  }
  55% {
    transform: translate(-1.5%, 2%) scale(0.97);
  }
  78% {
    transform: translate(1.2%, 1%) scale(1.02);
  }
}

#petals {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.55;
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 38%, transparent 25%, rgba(0, 0, 0, 0.5) 100%);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.11;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.ambient__shimmer {
  position: absolute;
  inset: -30%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(160, 60, 40, 0.07) 25%,
    rgba(212, 184, 122, 0.06) 50%,
    rgba(160, 60, 40, 0.05) 75%,
    transparent 100%
  );
  background-size: 200% 200%;
  animation: shimmerDrift 22s ease-in-out infinite;
  opacity: 0.65;
  pointer-events: none;
}

/* Anamorphic light sweep — one slow pass of warm projector light */
.ambient__beam {
  position: absolute;
  top: -40%;
  left: -40%;
  width: 45%;
  height: 180%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(243, 205, 134, 0.07) 35%,
    rgba(255, 238, 205, 0.12) 50%,
    rgba(212, 96, 63, 0.06) 65%,
    transparent 100%
  );
  transform: rotate(14deg);
  filter: blur(22px);
  mix-blend-mode: screen;
  animation: beamSweep 26s ease-in-out infinite;
  pointer-events: none;
}

@keyframes beamSweep {
  0%,
  8% {
    left: -45%;
    opacity: 0;
  }
  22% {
    opacity: 1;
  }
  78% {
    opacity: 1;
  }
  92%,
  100% {
    left: 135%;
    opacity: 0;
  }
}

@keyframes shimmerDrift {
  0%,
  100% {
    background-position: 0% 50%;
    transform: rotate(0deg);
  }
  50% {
    background-position: 100% 50%;
    transform: rotate(3deg);
  }
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 4vw, 2rem);
  background: linear-gradient(to bottom, rgba(20, 12, 8, 0.88), rgba(20, 12, 8, 0));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Brand lockup: seal + wordmark. The mark ships on white, so it sits on a
   cream plaque and multiplies into it — the paper reads as part of the stamp. */
.site-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  border-radius: 0.8rem;
  transition: transform 0.4s var(--ease-out);
}

.site-brand:hover,
.site-brand:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

/* The ring is a rotating conic gradient; the cream plate sits on top of it so
   the gold reads as a struck edge around the stamp rather than a glow. */
.site-logo {
  flex-shrink: 0;
  position: relative;
  display: block;
  width: clamp(2.6rem, 4.4vw, 3.05rem);
  height: clamp(2.6rem, 4.4vw, 3.05rem);
  padding: 2px;
  border-radius: 0.7rem;
  overflow: hidden;
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.5),
    0 0 22px rgba(212, 96, 63, 0.22);
  transition: box-shadow 0.4s var(--ease-out);
}

/* Oversized so the square keeps covering the rounded box as it turns */
.site-logo::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 0deg,
    var(--gold-dim) 0deg,
    var(--amber) 70deg,
    var(--lacquer) 150deg,
    var(--gold-dim) 220deg,
    var(--amber) 300deg,
    var(--gold-dim) 360deg
  );
  animation: sealSpin 14s linear infinite;
}

.site-brand:hover .site-logo,
.site-brand:focus-visible .site-logo {
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.55),
    0 0 34px rgba(227, 189, 118, 0.45);
}

.site-logo__plate {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0.18rem;
  border-radius: 0.56rem;
  background: #f2ebdd;
  overflow: hidden;
}

.site-logo__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

@keyframes sealSpin {
  to {
    transform: rotate(360deg);
  }
}

.site-brand__name {
  display: none;
  flex-direction: column;
  line-height: 1.1;
  font-family: var(--font-serif);
}

@media (min-width: 720px) {
  .site-brand__name {
    display: flex;
  }
}

.site-brand__line {
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.site-brand__line--sub {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--lacquer);
  opacity: 0.9;
}

.nav {
  display: flex;
  gap: clamp(0.9rem, 2vw, 1.75rem);
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(90deg, transparent 0, #000 1.25rem, #000 calc(100% - 1.25rem), transparent 100%);
}

.nav::-webkit-scrollbar {
  display: none;
}

@media (min-width: 900px) {
  /* Wide enough for every link, so drop the scroller affordances */
  .nav {
    overflow-x: visible;
    mask-image: none;
  }
}

.nav a {
  position: relative;
  padding-bottom: 0.3rem;
  white-space: nowrap;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: clamp(0.76rem, 1.5vw, 0.88rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.4s var(--ease-out), text-shadow 0.4s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--lacquer), var(--gold));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--ease-out);
}

.nav a:hover {
  opacity: 1;
  text-shadow: 0 0 20px var(--lacquer-glow);
}

.nav a:hover::after,
.nav a.is-current::after {
  transform: scaleX(1);
}

.nav a.is-current {
  opacity: 1;
  color: var(--ink);
}

.lang-toggle {
  display: flex;
  gap: 0.25rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(232, 224, 212, 0.12);
  border-radius: 999px;
  background: rgba(40, 38, 34, 0.55);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.lang-toggle span {
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  opacity: 0.7;
  transition: opacity 0.3s, background 0.3s;
}

.lang-toggle:hover span,
.lang-toggle:focus-visible span {
  opacity: 1;
}

.lang-toggle span.lang-active {
  opacity: 1;
  background: rgba(160, 60, 40, 0.35);
  color: var(--paper);
}

/* --- Main --- */
main {
  position: relative;
  z-index: 1;
}

.section {
  padding: 6rem 1.5rem;
  position: relative;
}

.section--dream {
  opacity: 0;
  transform: translateY(2rem);
  filter: blur(12px);
  transition: opacity 1.35s var(--ease-out), transform 1.35s var(--ease-out), filter 1.35s var(--ease-out);
  will-change: opacity, transform, filter;
}

.section--dream.is-dream-in {
  opacity: 1;
  transform: translateY(0);
  filter: none;
  will-change: auto;
}

.section--alt {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(160, 60, 40, 0.06) 50%,
    transparent 100%
  );
}

.section__inner {
  max-width: 960px;
  margin: 0 auto;
}

.section__head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section__head h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

/* Hairline rule under every section title, fading out at both ends */
.section__head h2::after {
  content: "";
  display: block;
  width: min(7rem, 40%);
  height: 1px;
  margin: 0.85rem auto 0;
  background: linear-gradient(90deg, transparent, rgba(212, 184, 122, 0.65), transparent);
}

.section__subtitle {
  max-width: 38rem;
  margin: 0 auto;
  font-size: 1.14rem;
  line-height: 1.75;
  opacity: 0.86;
}

/* --- Worlds: 4 + 4 matrix (eight squares) --- */
.worlds__veil {
  position: absolute;
  inset: -5% -10%;
  background: radial-gradient(ellipse 55% 45% at 50% 30%, rgba(176, 66, 43, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 20% 80%, rgba(224, 180, 110, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse 40% 35% at 80% 75%, rgba(74, 99, 86, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: worldsVeilPulse 14s ease-in-out infinite alternate;
}

@keyframes worldsVeilPulse {
  0% {
    opacity: 0.65;
    transform: scale(1);
  }
  100% {
    opacity: 0.95;
    transform: scale(1.03);
  }
}

.worlds-matrix {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1040px;
  margin: 0 auto;
  align-items: start;
}

.worlds-matrix__half {
  min-width: 0;
  position: relative;
  z-index: 1;
}

@media (min-width: 880px) {
  .worlds-matrix {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(min(34vw, 22rem), min(40vw, 28rem))
      minmax(0, 1fr);
    gap: clamp(1.25rem, 2.5vw, 2rem);
    align-items: start;
    max-width: none;
  }

  .worlds-matrix__half:first-child {
    grid-column: 1;
  }

  .stage__center {
    grid-column: 2;
  }

  .worlds-matrix__half:last-child {
    grid-column: 3;
  }
}

.worlds-matrix__tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.worlds-matrix:hover .world-tile:not(:hover):not(:focus-within) {
  opacity: 0.38;
  filter: blur(1.25px) saturate(0.78);
  transform: scale(0.985);
}

.world-tile {
  --world-tile-cap: 5.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 1.05rem;
  overflow: hidden;
  border: 1px solid rgba(232, 224, 212, 0.12);
  background: linear-gradient(165deg, rgba(40, 38, 34, 0.92) 0%, rgba(26, 24, 22, 0.88) 100%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: opacity 0.85s var(--ease-out), transform 0.75s var(--ease-out), filter 0.75s var(--ease-out),
    box-shadow 0.55s var(--ease-out);
  opacity: 0;
  transform: translateY(1.25rem) scale(0.97);
  outline: none;
}

.world-tile.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.world-tile:focus-visible {
  box-shadow: 0 0 0 2px rgba(212, 96, 63, 0.55), 0 20px 50px rgba(0, 0, 0, 0.45);
}

.world-tile:hover,
.world-tile:focus-within {
  z-index: 3;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 64px rgba(212, 96, 63, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: scale(1.075) translateY(-6px);
  border-color: rgba(227, 189, 118, 0.35);
  filter: blur(0) saturate(1) !important;
  opacity: 1 !important;
}

/* Ornamental frame on hover: a gilt double rule, hoa chanh rosettes in the four
   corners, and a lá đề crest on the top edge — Lý-era ceramic vocabulary. */
.world-tile__ornament {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 8;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.55s var(--ease-out);
}

.world-tile:hover .world-tile__ornament,
.world-tile:focus-within .world-tile__ornament {
  opacity: 1;
}

/* Outer rule: a conic gold so the gilding turns with the frame instead of
   sitting flat. The padding is the frame thickness; the xor mask knocks out
   the middle, which is the only way to get a gradient on a rounded border. */
.world-tile__ornament::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(
    from 212deg,
    #7d5024 0deg,
    #e3bd76 42deg,
    #fff4da 70deg,
    #d4a85c 104deg,
    #8a5a2a 150deg,
    #f3cd86 196deg,
    #fff4da 228deg,
    #c06038 268deg,
    #a3803f 310deg,
    #7d5024 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  filter: drop-shadow(0 0 2px rgba(16, 9, 5, 0.95)) drop-shadow(0 0 10px rgba(227, 189, 118, 0.45));
}

/* Corner hoa chanh rosettes, each on its own ink disc so the gold reads
   against whatever photo sits underneath, plus a lá đề crest and finial. */
.world-tile__ornament::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/motif-rosette.svg"), url("../assets/motif-rosette.svg"),
    url("../assets/motif-rosette.svg"), url("../assets/motif-rosette.svg"),
    url("../assets/motif-la-de.svg"),
    radial-gradient(circle, rgba(18, 10, 6, 0.92) 42%, transparent 72%),
    radial-gradient(circle, rgba(18, 10, 6, 0.92) 42%, transparent 72%),
    radial-gradient(circle, rgba(18, 10, 6, 0.92) 42%, transparent 72%),
    radial-gradient(circle, rgba(18, 10, 6, 0.92) 42%, transparent 72%);
  background-repeat: no-repeat;
  background-size:
    1.55rem 1.55rem,
    1.55rem 1.55rem,
    1.55rem 1.55rem,
    1.55rem 1.55rem,
    1.35rem 1.6rem,
    1.9rem 1.9rem,
    1.9rem 1.9rem,
    1.9rem 1.9rem,
    1.9rem 1.9rem;
  background-position:
    left -0.52rem top -0.52rem,
    right -0.52rem top -0.52rem,
    left -0.52rem bottom -0.52rem,
    right -0.52rem bottom -0.52rem,
    center top -0.55rem,
    left -0.62rem top -0.62rem,
    right -0.62rem top -0.62rem,
    left -0.62rem bottom -0.62rem,
    right -0.62rem bottom -0.62rem;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 7px rgba(227, 189, 118, 0.4));
  opacity: 0;
  transition: opacity 0.5s var(--ease-out) 0.06s;
}

.world-tile:hover .world-tile__ornament::after,
.world-tile:focus-within .world-tile__ornament::after {
  opacity: 1;
}

/* Inner hairline, with the bodhi-leaf band running along crest and plinth. */
.world-tile__ornament-band {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(227, 189, 118, 0.38);
  border-radius: inherit;
  box-sizing: border-box;
  box-shadow: inset 0 0 18px rgba(227, 189, 118, 0.08);
}

.world-tile__ornament-band::before,
.world-tile__ornament-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 0.62rem;
  background: url("../assets/motif-la-de-band.svg") repeat-x center / auto 0.62rem;
  opacity: 0;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.9));
  transition: opacity 0.55s var(--ease-out) 0.14s;
}

.world-tile__ornament-band::before {
  top: 0.16rem;
}

.world-tile__ornament-band::after {
  bottom: 0.16rem;
  transform: scaleY(-1);
}

.world-tile:hover .world-tile__ornament-band::before,
.world-tile:hover .world-tile__ornament-band::after,
.world-tile:focus-within .world-tile__ornament-band::before,
.world-tile:focus-within .world-tile__ornament-band::after {
  opacity: 0.85;
}

/* One pass of light travelling around the gilding as the frame lands. */
.world-tile__ornament-glint {
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  overflow: hidden;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.world-tile__ornament-glint::before {
  content: "";
  position: absolute;
  top: -60%;
  bottom: -60%;
  width: 45%;
  left: -60%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 249, 232, 0.9) 50%, transparent 100%);
  transform: rotate(14deg);
}

.world-tile:hover .world-tile__ornament-glint::before,
.world-tile:focus-within .world-tile__ornament-glint::before {
  animation: ornamentGlint 1.35s var(--ease-out) 0.2s;
}

@keyframes ornamentGlint {
  from {
    left: -60%;
  }
  to {
    left: 130%;
  }
}

.world-tile__shine {
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 210deg,
    transparent 0deg,
    rgba(224, 180, 110, 0.06) 60deg,
    transparent 120deg,
    rgba(176, 66, 43, 0.08) 200deg,
    transparent 280deg
  );
  animation: tileConic 12s linear infinite;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 1;
}

.world-tile:hover .world-tile__shine,
.world-tile:focus-within .world-tile__shine {
  opacity: 1;
}

@keyframes tileConic {
  to {
    transform: rotate(360deg);
  }
}

.world-tile__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  flex-shrink: 0;
  width: 100%;
  border-radius: 1.05rem 1.05rem 0 0;
}

.world-tile__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88) contrast(1.04);
  transform: scale(1);
  transition: transform 7s ease-out;
}

.world-tile:hover .world-tile__media img,
.world-tile:focus-within .world-tile__media img {
  transform: scale(1.06);
}

.world-tile__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    175deg,
    rgba(18, 16, 14, 0.05) 0%,
    transparent 38%,
    rgba(0, 0, 0, 0.55) 100%
  );
  mix-blend-mode: normal;
  pointer-events: none;
}

.world-tile__cap {
  flex: 0 0 auto;
  min-height: var(--world-tile-cap);
  padding: 0.65rem 0.85rem 1.1rem;
  position: relative;
  z-index: 6;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  overflow: hidden;
  border-top: 1px solid rgba(227, 189, 118, 0.12);
  background: linear-gradient(180deg, #1c1410 0%, #120a07 100%);
}

.world-tile__title {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.3vw, 1.18rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  /* Two lines reserved so the left and right halves keep the same row heights */
  min-height: 2.6em;
}

.world-tile__hint {
  font-size: 0.78rem;
  line-height: 1.45;
  opacity: 0.85;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  z-index: 1;
  margin: 0;
}

/* --- Eight world sections (anchors for stage tiles; former heritage / tea / visit / artifacts) --- */
.world-section {
  scroll-margin-top: 5.5rem;
}

.world-section--tea {
  position: relative;
  overflow: hidden;
}

.world-section .section__head {
  margin-bottom: 2.25rem;
}

.world-section__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lacquer);
  opacity: 0.92;
}

.world-section__lede {
  margin-bottom: 0.6rem !important;
  max-width: 38rem;
  opacity: 0.9;
}

.world-section__standalone {
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

:not(.section__head) + .world-section__standalone {
  margin-top: 2.5rem;
}

/* "Xem tiếp" — opens the full world page (world.html?w=<slug>) */
.world-section__more {
  gap: 0.6rem;
  border-color: rgba(227, 189, 118, 0.45);
  color: var(--gold);
}

.world-section__more::after {
  content: "→";
  transition: transform 0.4s var(--ease-out);
}

.world-section__more:hover,
.world-section__more:focus-visible {
  border-color: var(--gold);
  color: var(--amber);
  box-shadow: 0 0 28px rgba(227, 189, 118, 0.18);
}

.world-section__more:hover::after,
.world-section__more:focus-visible::after {
  transform: translateX(4px);
}

.world-section__note {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.65;
  text-align: center;
  opacity: 0.82;
}

/* --- Stage: 4 tiles | centre (hero, then tin tức) | 4 tiles --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7.5rem 1.5rem 5.5rem;
  overflow: hidden;
}

.stage .hero__glow {
  inset: 0;
  margin: auto;
}

.stage__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
}

.stage__center {
  position: relative;
  z-index: 2;
  min-width: 0;
  width: 100%;
  max-width: min(36rem, 100%);
  margin-inline: auto;
  display: grid;
  /* logo · panels · dots */
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  text-align: center;
  isolation: isolate;
}

/* TLCV mark at the top of the centre column; it stays put while the panels swap */
.stage__center .stage__brand {
  grid-row: 1;
  grid-column: 1;
  width: clamp(4.5rem, 7vw, 6rem);
  height: clamp(4.5rem, 7vw, 6rem);
  margin: 0 auto 1.25rem;
}

@media (max-width: 879px) {
  .stage__center {
    order: -1;
    padding-bottom: 1.25rem;
  }
}

/* Both panels share one cell, so swapping never shifts the tiles */
.stage__panel {
  grid-row: 2;
  grid-column: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.99);
  filter: blur(10px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), filter 1s var(--ease-out),
    visibility 1s;
  pointer-events: none;
}

.stage__panel.is-stage-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: blur(0);
  pointer-events: auto;
}

.stage .hero__title-line {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
}

.stage .hero__title-line--sub {
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
}

.stage .hero__lede {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.stage .hero__scroll {
  left: 50%;
  margin-left: -12px;
}

.stage__news-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.65rem;
}

.news-rail__hint {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  color: var(--ink-soft);
}

/* Vertical rail: about four rows in view, scroll for older posts.
   Vertical keeps the panel inside the narrow centre column. */
.news-rail {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 1.5rem;
  mask-image: linear-gradient(180deg, transparent 0%, #000 4%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 4%, #000 92%, transparent 100%);
}

.news-rail__track {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: min(42vh, 19rem);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y proximity;
  padding: 0.25rem 0.5rem 0.5rem 0.25rem;
  text-align: left;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 96, 63, 0.4) rgba(255, 255, 255, 0.05);
  -webkit-overflow-scrolling: touch;
}

.news-rail__track::-webkit-scrollbar {
  width: 5px;
}

.news-rail__track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.news-rail__track::-webkit-scrollbar-thumb {
  background: rgba(212, 96, 63, 0.4);
  border-radius: 999px;
}

.news-card {
  flex: 0 0 auto;
  min-width: 0;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: 0.75rem;
  row-gap: 0.15rem;
  padding: 0.6rem 0.85rem 0.7rem;
  border-radius: 0.8rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(232, 224, 212, 0.1);
  background:
    linear-gradient(155deg, rgba(40, 44, 40, 0.55) 0%, rgba(20, 19, 17, 0.9) 60%, rgba(22, 21, 19, 0.94) 100%),
    radial-gradient(ellipse 70% 100% at 0% 0%, rgba(212, 96, 63, 0.1) 0%, transparent 60%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.4s;
}

.news-card:hover,
.news-card:focus-visible {
  transform: translateX(3px);
  border-color: rgba(212, 96, 63, 0.32);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.4),
    0 0 26px rgba(212, 96, 63, 0.08);
  outline: none;
}

.news-card__date {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: var(--gold);
  white-space: nowrap;
  padding-right: 0.75rem;
  border-right: 1px solid rgba(212, 184, 122, 0.22);
}

.news-card__tag {
  grid-column: 2;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lacquer);
}

.news-card__title {
  grid-column: 2;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 879px) {
  .news-rail__track {
    max-height: min(38vh, 16rem);
  }
}

.stage__nav {
  grid-row: 3;
  grid-column: 1;
  display: flex;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

/* Side by side with the tiles: the centre column is as tall as the tile grids,
   the news frame sits on its floor so its bottom edge lines up with the tiles,
   and the room above it belongs to the TLCV mark. */
@media (min-width: 880px) {
  .stage__center {
    align-self: stretch;
    /* the mark's row takes whatever height the showing panel leaves free */
    grid-template-rows: minmax(0, 1fr) auto auto;
  }

  /* The mark fills that free room instead of leaving a gap under it:
     large over the short opening panel, smaller over the taller news panel. */
  .stage__center .stage__brand {
    align-self: center;
    height: min(18rem, calc(100% - 2.5rem));
    min-height: 4.5rem;
    width: auto;
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: 1.4rem;
  }

  .stage__center .stage__brand .brand-seal__plate {
    padding: 0.9rem;
    border-radius: 1.15rem;
  }

  /* Both panels sit on the floor, so the swap keeps one bottom line */
  .stage__panel--hero,
  .stage__panel--news {
    align-self: end;
  }

  /* Only the showing panel sizes its row; the hidden one waits on the same floor */
  .stage__panel:not(.is-stage-active) {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
  }

  .stage__panel .hero__actions {
    margin-bottom: 0;
  }

  /* Dots hang just under the tile edge so they do not lift the news frame */
  .stage__nav {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 1.1rem;
  }
}

.stage__dot {
  width: 30px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(232, 224, 212, 0.12);
  cursor: pointer;
  transition: width 0.45s var(--ease-out), background 0.45s;
}

.stage__dot.is-active {
  width: 46px;
  background: linear-gradient(90deg, var(--lacquer) 0%, var(--gold) 100%);
}

.stage__dot:focus-visible {
  outline: 2px solid var(--lacquer);
  outline-offset: 3px;
}

/* --- Hero copy (lives in the stage centre) --- */
.hero__glow {
  position: absolute;
  width: min(90vw, 520px);
  height: min(90vw, 520px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 96, 63, 0.2) 0%, transparent 62%),
    radial-gradient(circle at 40% 40%, rgba(212, 184, 122, 0.12) 0%, transparent 55%);
  filter: blur(40px);
  animation: breathe 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.hero__eyebrow {
  font-size: 0.84rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.5rem;
  opacity: 0;
  animation: riseFade 1.2s var(--ease-out) 0.2s forwards;
}

.hero__title {
  font-family: var(--font-serif);
  margin: 0 0 1.5rem;
}

/* Gilt lettering: a wide gold-to-lacquer gradient clipped to the glyphs, with
   the highlight travelling across it. Glow has to be a filter, not a
   text-shadow, because the text itself is transparent. */
.hero__title-line {
  display: block;
  font-size: clamp(3rem, 12vw, 5.5rem);
  font-weight: 500;
  line-height: 1.05;
  background: linear-gradient(
    100deg,
    #f0dcb0 0%,
    #fff7e6 24%,
    var(--gold) 46%,
    var(--lacquer) 68%,
    var(--amber) 88%,
    #f0dcb0 100%
  );
  background-size: 240% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 30px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 40px rgba(212, 96, 63, 0.22));
  opacity: 0;
  transform: translateY(24px);
  animation:
    riseFade 1.1s var(--ease-out) 0.35s forwards,
    titleGilt 11s ease-in-out 1.6s infinite;
}

.hero__title-line--sub {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 8vw, 3.25rem);
  animation-delay: 0.55s, 2.4s;
}

@keyframes titleGilt {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes riseFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__lede {
  font-size: 1.22rem;
  line-height: 1.85;
  margin: 0 0 2.5rem;
  opacity: 0;
  animation: riseFade 1s var(--ease-out) 0.85s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  opacity: 0;
  animation: riseFade 1s var(--ease-out) 1.1s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.85rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s, background 0.45s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--lacquer) 0%, var(--lacquer-dim) 100%);
  color: #121110;
  box-shadow: 0 8px 32px var(--shadow), 0 0 40px var(--lacquer-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--shadow), 0 0 50px var(--lacquer-glow);
}

.btn--ghost {
  background: rgba(40, 38, 34, 0.45);
  border-color: rgba(232, 224, 212, 0.14);
  color: var(--ink);
}

.btn--ghost:hover {
  background: rgba(52, 48, 44, 0.62);
  transform: translateY(-2px);
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  width: 24px;
  height: 40px;
  border: 1px solid rgba(232, 224, 212, 0.22);
  border-radius: 12px;
  opacity: 0.55;
}

.hero__scroll span {
  display: block;
  width: 4px;
  height: 8px;
  margin: 8px auto 0;
  background: var(--lacquer);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(10px);
  }
}

/* --- Heritage cards --- */
.heritage__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .heritage__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.heritage__grid > .card {
  position: relative;
  padding: 2rem 1.75rem;
  border-radius: 1.25rem;
  background: linear-gradient(155deg, rgba(34, 32, 28, 0.88) 0%, rgba(20, 18, 16, 0.92) 100%);
  border: 1px solid rgba(232, 224, 212, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: opacity 0.8s var(--ease-out), box-shadow 0.5s;
  opacity: 0;
}

.heritage__grid > .card.is-visible {
  opacity: 1;
}

.heritage__grid > .card:hover {
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42), 0 0 36px rgba(212, 96, 63, 0.14);
}

.heritage__grid > .card h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.heritage__grid > .card p {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.7;
  opacity: 0.88;
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  opacity: 0.85;
}

.card__icon--lotus {
  background: radial-gradient(circle, var(--lacquer) 30%, transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%234a6356' stroke-width='1.2'%3E%3Cpath d='M32 8c-8 12-14 22-14 32s6 12 14 12 14-2 14-12S40 20 32 8z' opacity='.6'/%3E%3Cpath d='M20 40c4-8 8-14 12-14s8 6 12 14' opacity='.4'/%3E%3C/svg%3E")
      center / 70% no-repeat;
  border-radius: 50%;
  filter: drop-shadow(0 0 12px var(--lacquer-glow));
}

.card__icon--dragon {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%238b7355' stroke-width='1.3'%3E%3Cpath d='M10 36 Q20 20 36 24 T52 28 Q48 40 38 44 Q28 48 18 42 Q12 38 10 36z'/%3E%3Cpath d='M44 22l4-6 2 8'/%3E%3C/svg%3E")
    center / 85% no-repeat;
  filter: drop-shadow(0 0 10px rgba(224, 180, 110, 0.4));
}

.card__icon--mist {
  background: radial-gradient(ellipse at 50% 80%, rgba(160, 60, 40, 0.45) 0%, transparent 70%);
  border-radius: 50%;
  box-shadow: inset 0 -8px 20px rgba(255, 255, 255, 0.08);
}

/* --- Artifacts (museum photos) --- */
.artifacts {
  position: relative;
  padding-top: 4rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

.artifacts__mist {
  position: absolute;
  inset: 10% -20% 20% -20%;
  background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(176, 66, 43, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(224, 180, 110, 0.08) 0%, transparent 55%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.artifacts .section__inner {
  position: relative;
  z-index: 1;
}

.artifacts__grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
  /* backfill holes a wide card would otherwise leave at a row end */
  grid-auto-flow: dense;
}

@media (min-width: 640px) {
  .artifacts__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .artifacts__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .artifact-card--wide {
    grid-column: span 2;
  }
}

.artifact-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-radius: 1.15rem;
  transition: opacity 0.9s var(--ease-out), box-shadow 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  opacity: 0;
}

.artifact-card.is-visible {
  opacity: 1;
}

.artifact-card:hover {
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4), 0 0 48px rgba(212, 96, 63, 0.12);
}

.artifact-card:hover .artifact-card__veil {
  opacity: 0.15;
}

.artifact-card:hover .artifact-card__frame img {
  transform: scale(1.045);
}

.artifact-card__frame {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(232, 224, 212, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35), 0 16px 40px rgba(0, 0, 0, 0.35);
  background: linear-gradient(155deg, rgba(32, 30, 28, 0.9) 0%, rgba(18, 16, 14, 0.95) 100%);
}

.artifact-card--wide .artifact-card__frame {
  aspect-ratio: 21 / 9;
}

.artifact-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.02) brightness(1.03);
  transform: scale(1.02);
  transition: transform 8s ease-out, filter 0.6s var(--ease-out);
  animation: artifactKen 18s ease-in-out infinite alternate;
}

@keyframes artifactKen {
  0% {
    transform: scale(1.02) translate(0%, 0%);
  }
  100% {
    transform: scale(1.09) translate(-1.5%, -1%);
  }
}

.artifact-card__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(18, 16, 14, 0.15) 0%,
    transparent 40%,
    rgba(0, 0, 0, 0.45) 100%
  );
  mix-blend-mode: normal;
  opacity: 0.35;
  transition: opacity 0.5s;
  pointer-events: none;
}

.artifact-card__veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(212, 96, 63, 0.18) 0%, transparent 45%);
  opacity: 0.55;
}

.artifact-card__cap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 0.25rem;
}

.artifact-card__label {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.artifact-card__hint {
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.72;
}

.artifacts__credit {
  margin: 2.5rem auto 0;
  max-width: 42rem;
  font-size: 0.8rem;
  line-height: 1.65;
  text-align: center;
  opacity: 0.55;
  font-style: italic;
}

/* --- Tea --- */
.tea {
  position: relative;
}

.tea__orb {
  position: absolute;
  right: -20%;
  top: 20%;
  width: 50%;
  max-width: 400px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 66, 43, 0.15) 0%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.tea__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 560px;
  margin: 0 auto;
}

.tea-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(232, 224, 212, 0.08);
  cursor: default;
  transition: opacity 1s var(--ease-out), filter 1s var(--ease-out), transform 0.5s var(--ease-out), padding 0.4s var(--ease-out),
    background 0.4s;
  border-radius: 0.5rem;
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  /* Dimmed, not hidden: every tea stays readable while one is spotlit */
  opacity: 0.55;
}

.tea-item.is-tea-focus {
  opacity: 1;
}

.tea-item:last-child {
  border-bottom: none;
}

.tea__list:not(.is-tea-idle) .tea-item:hover,
.tea__list:not(.is-tea-idle) .tea-item:focus-visible {
  background: rgba(40, 38, 34, 0.55);
  padding-left: 1.5rem;
  outline: none;
  opacity: 1;
  filter: blur(0);
}

.tea-item__name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.tea-item__note {
  font-size: 0.98rem;
  opacity: 0.75;
}

/* --- Visit --- */
.visit {
  padding: 5rem 1.5rem 7rem;
}

.visit__panel {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  text-align: center;
  border-radius: 1.5rem;
  background: linear-gradient(
    160deg,
    rgba(28, 26, 24, 0.92) 0%,
    rgba(36, 34, 30, 0.88) 50%,
    rgba(24, 22, 20, 0.95) 100%
  );
  border: 1px solid rgba(232, 224, 212, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.visit__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(212, 96, 63, 0.12) 0%, transparent 45%);
  pointer-events: none;
}

.visit__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-style: italic;
  line-height: 1.65;
  margin: 0 0 1.5rem;
  color: var(--ink);
  position: relative;
}

.visit__meta {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
  position: relative;
}

/* --- Footer --- */
.site-footer {
  padding: 3rem 2rem 2.5rem;
  text-align: center;
  font-size: 0.84rem;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(232, 224, 212, 0.07);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Footer centrepiece: the mark as a struck seal — warm halo, turning gold
   ring, cream plate, and a sheen that crosses it every few seconds. */
.brand-seal {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(5.5rem, 14vw, 7rem);
  height: clamp(5.5rem, 14vw, 7rem);
  border-radius: 1.3rem;
  transition: transform 0.6s var(--ease-out);
}

.brand-seal:hover,
.brand-seal:focus-visible {
  transform: scale(1.04);
  outline: none;
}

.brand-seal__halo {
  position: absolute;
  inset: -45%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(227, 189, 118, 0.3) 0%,
    rgba(212, 96, 63, 0.18) 38%,
    transparent 70%
  );
  filter: blur(14px);
  animation: sealBreathe 6.5s ease-in-out infinite;
}

.brand-seal__ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.6),
    0 0 36px rgba(212, 96, 63, 0.3);
}

.brand-seal__ring::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 0deg,
    var(--gold-dim) 0deg,
    var(--amber) 60deg,
    #fff3d8 95deg,
    var(--lacquer) 165deg,
    var(--gold-dim) 240deg,
    var(--amber) 310deg,
    var(--gold-dim) 360deg
  );
  animation: sealSpin 18s linear infinite;
}

.brand-seal__plate {
  position: relative;
  z-index: 1;
  display: block;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  padding: 0.5rem;
  border-radius: 1.1rem;
  background: linear-gradient(160deg, #f7f1e4 0%, #efe6d4 100%);
  overflow: hidden;
}

.brand-seal__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* Diagonal glint, clipped to the seal */
.brand-seal__sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

.brand-seal__sheen::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -120%;
  width: 55%;
  height: 220%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 252, 240, 0.75) 50%, transparent 100%);
  transform: rotate(18deg);
  animation: sealSheen 5.5s ease-in-out infinite;
}

/* Hero variant: smaller, lands with the title, no pointer behaviour */
.brand-seal--hero {
  width: clamp(4rem, 9vw, 5rem);
  height: clamp(4rem, 9vw, 5rem);
  border-radius: 1rem;
  margin: 0 auto 1.1rem;
  opacity: 0;
  animation: riseFade 1s var(--ease-out) 0.15s forwards;
}

.brand-seal--hero .brand-seal__plate {
  padding: 0.38rem;
  border-radius: 0.82rem;
}

@keyframes sealBreathe {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes sealSheen {
  0%,
  62% {
    left: -120%;
  }
  88%,
  100% {
    left: 170%;
  }
}

.site-footer__name {
  margin: 0.35rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.site-footer__tagline {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  opacity: 0.7;
}

.site-footer__meta {
  margin: 0;
  opacity: 0.45;
}

.site-footer__top {
  margin: 1rem 0 0;
}

.site-footer__top-link {
  color: var(--lacquer);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
  border-bottom: 1px solid transparent;
  transition: opacity 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.site-footer__top-link:hover,
.site-footer__top-link:focus-visible {
  opacity: 1;
  border-bottom-color: rgba(212, 96, 63, 0.45);
}

/* --- Contact & booking --- */
.contact {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 5.5rem;
  padding-bottom: 7rem;
}

.contact__glow {
  position: absolute;
  inset: 10% -15% 0 -15%;
  background: radial-gradient(ellipse 55% 60% at 50% 20%, rgba(212, 96, 63, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 85% 80%, rgba(212, 184, 122, 0.1) 0%, transparent 55%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

.contact__inner {
  position: relative;
  z-index: 1;
  max-width: 1040px;
}

.contact__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 860px) {
  .contact__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2rem;
  }
}

.contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(232, 224, 212, 0.08);
  background: linear-gradient(160deg, rgba(36, 34, 30, 0.75) 0%, rgba(20, 19, 17, 0.88) 100%);
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.contact__item:hover,
.contact__item:focus-within {
  border-color: rgba(212, 96, 63, 0.3);
  transform: translateX(3px);
}

.contact__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  color: var(--lacquer);
  background: rgba(212, 96, 63, 0.12);
  box-shadow: inset 0 0 0 1px rgba(212, 96, 63, 0.25);
}

.contact__icon svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.contact__label {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}

.contact__value {
  font-size: 1.03rem;
  line-height: 1.45;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.contact__value--link {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.contact__value--link:hover,
.contact__value--link:focus-visible {
  color: var(--lacquer);
  border-bottom-color: rgba(212, 96, 63, 0.45);
  outline: none;
}

.contact__booking {
  padding: 1.6rem 1.5rem 1.75rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(212, 184, 122, 0.22);
  background: linear-gradient(160deg, rgba(44, 40, 34, 0.85) 0%, rgba(22, 20, 18, 0.92) 100%);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.contact__booking-title {
  margin: 0 0 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
}

.contact__booking-note {
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
  line-height: 1.7;
  opacity: 0.85;
}

.contact__hours {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.93rem;
}

.contact__hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(232, 224, 212, 0.12);
}

.contact__hours li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact__hours-time {
  color: var(--lacquer);
  font-variant-numeric: tabular-nums;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --- Floating social dock (quick contact) --- */
.social-dock {
  position: fixed;
  left: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vh, 1.75rem);
  z-index: 140;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.social-dock__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.social-dock__btn svg {
  width: 1.35rem;
  height: 1.35rem;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-dock__btn:hover,
.social-dock__btn:focus-visible {
  transform: translateY(-2px) scale(1.07);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.25);
  outline: none;
}

.social-dock__btn--phone {
  background: linear-gradient(145deg, #c0392b, #8e2b20);
}

.social-dock__btn--zalo {
  background: linear-gradient(145deg, #2a7cff, #1769e0);
}

.social-dock__btn--zalo svg {
  width: 1.7rem;
  height: 1.7rem;
}

.social-dock__btn--facebook {
  background: linear-gradient(145deg, #2a7cff, #1559c7);
}

.social-dock__btn--instagram {
  background: linear-gradient(145deg, #f0558e, #d6336c);
}

/* One soft halo on the call button so the dock reads as "contact us" */
.social-dock__btn--phone::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(192, 57, 43, 0.55);
  animation: dockPulse 2.8s ease-out infinite;
  pointer-events: none;
}

@keyframes dockPulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.5);
    opacity: 0;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.social-dock {
  transition: opacity 0.4s var(--ease-out), visibility 0.4s, transform 0.4s var(--ease-out);
}

/* On the home stage the dock sat on top of the lower-left tile, so on wide
   screens it waits until the visitor scrolls past the first screen */
@media (min-width: 561px) {
  body:not(.world-page):not(.is-scrolled) .social-dock {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-0.75rem);
  }
}

body.intro-active .social-dock {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 560px) {
  .social-dock {
    flex-direction: row;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0.85rem;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    background: rgba(18, 17, 15, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .social-dock__btn {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* Thin reading-progress line across the top */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--lacquer) 0%, var(--gold) 100%);
  box-shadow: 0 0 12px rgba(212, 96, 63, 0.5);
  z-index: 120;
  pointer-events: none;
}

body.intro-active .scroll-progress {
  opacity: 0;
}

/* Floating: return to opening stage (#top) */
.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vh, 1.75rem);
  z-index: 140;
  width: 3rem;
  height: 3rem;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(232, 224, 212, 0.15);
  background: rgba(28, 26, 24, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out), visibility 0.45s,
    box-shadow 0.35s var(--ease-out);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(212, 96, 63, 0.35);
  outline: none;
}

.back-to-top__icon {
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 500;
  margin-top: -2px;
}

body.intro-active .back-to-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .sparkle-field {
    animation: none !important;
    opacity: 0.28;
  }

  html {
    scroll-behavior: auto;
  }

  .ambient__shimmer {
    animation: none;
    opacity: 0.35;
  }

  .ambient__artifact-bg {
    animation: none;
  }

  .artifact-card__frame img {
    animation: none !important;
    transform: none !important;
  }

  /* The frame still gilds on hover; only the travelling light is dropped. */
  .world-tile__ornament-glint {
    display: none;
  }

  .back-to-top {
    transition-duration: 0.01ms !important;
  }

  .ambient__beam,
  .brand-seal__sheen::before,
  .brand-seal__halo {
    animation: none !important;
  }

  .intro-splash__bar {
    animation: none !important;
    transform: scaleY(0.32);
  }

  .site-logo::before,
  .brand-seal__ring::before {
    animation: none !important;
  }

  .hero__title-line {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .social-dock__btn--phone::after {
    animation: none !important;
    opacity: 0;
  }

  .scroll-progress {
    transition: none !important;
  }

  .artifact-card:hover .artifact-card__frame img {
    transform: none !important;
  }

  .section--dream {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .worlds__veil {
    animation: none;
  }

  .world-tile {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .world-tile__media img {
    transform: none !important;
    transition: none !important;
  }

  .world-tile__shine {
    display: none;
  }

  .worlds-matrix:hover .world-tile {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .tea-item {
    opacity: 1 !important;
    filter: none !important;
  }
}

/* Touch screens: a tap leaves :hover stuck on .worlds-matrix (the stage centre
   sits inside it), which used to dim and blur every other square until the
   next tap elsewhere. Keep the dim-the-rest and lift effects for mouse only. */
@media (hover: none), (pointer: coarse) {
  .worlds-matrix:hover .world-tile.is-visible:not(:hover):not(:focus-within) {
    opacity: 1;
    filter: none;
    transform: translateY(0) scale(1);
  }

  .world-tile.is-visible:hover,
  .world-tile.is-visible:focus-within {
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   Phones and touch tablets: smooth scrolling first.
   The desktop look stacks several full-screen fixed layers (blurred museum
   photos with blend modes, a sweeping beam, animated sparkles) plus
   backdrop blurs and blur-in sections. Each of those makes a phone GPU
   repaint or re-blend while the page moves, which is what made scrolling
   stutter. Here the mood stays, but every layer is static and cheap.
   ========================================================================== */
@media (hover: none) and (pointer: coarse), (max-width: 760px) {
  /* Ambient backdrop: keep the photos as a still, faint wash */
  .ambient__artifact-bg {
    animation: none;
    mix-blend-mode: normal;
    filter: blur(32px) saturate(0.8) brightness(0.55);
    opacity: 0.22;
    will-change: auto;
  }

  .ambient__beam,
  .ambient__shimmer {
    display: none;
  }

  .grain {
    mix-blend-mode: normal;
    opacity: 0.05;
  }

  .sparkle-field,
  .worlds__veil,
  .hero__glow,
  .world-tile__shine,
  .artifact-card__frame img {
    animation: none;
  }

  /* Fixed bars: a solid tint instead of blurring the page under them */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: linear-gradient(to bottom, rgba(20, 12, 8, 0.96), rgba(20, 12, 8, 0.82) 70%, rgba(20, 12, 8, 0));
  }

  /* Sections and stage panels fade and rise, without the blur */
  .section--dream,
  .stage__panel {
    filter: none;
    will-change: auto;
  }

  .section--dream {
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  }

  .stage__panel {
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), visibility 0.7s;
  }

  .tea-item {
    transition: opacity 0.6s var(--ease-out);
  }
}

@media (max-width: 560px) {
  .social-dock {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(18, 17, 15, 0.92);
  }
}
