﻿/* ==========================================================================
   Golden Bay Da Nang — design tokens & styles
   Reference: Shopify Editions Winter '26 (editorial chapters, ink/stone rhythm)
   ========================================================================== */

:root {
  --ink: #000000;
  --ink-soft: #111111;
  --ink-line: rgb(255 255 255 / 0.12);
  --stone: #dcdcd0;
  --stone-soft: #ebebe2;
  --paper: #f4f2ec;        /* off-white panel that overlaps section edges */
  --stone-line: rgb(0 0 0 / 0.12);
  --bone: #f5f3ee;
  --muted-dark: #9a978e;   /* muted text on ink */
  --muted-light: #5c5a54;  /* muted text on stone (AA on #d9d8cf) */
  --gold: #c9a55c;
  --gold-light: #e6cf9a;
  --champagne: #a58b64;  /* hairlines / metallic text on light (Design v2) */
  --ivory: #f4f0e8;
  --olive: #777d68;      /* nature chapters only, sparingly */
  --gold-deep: #6e5420;  /* ≥5:1 on stone/paper (was #8c6d2c, 3.5:1 on stone) */

  --font-sans: "Inter Tight", "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --font-serif: "Instrument Serif", "Nanum Myeongjo", "Times New Roman", serif;

  --container: 1440px;
  --gutter: 24px;
  --radius-card: 6px;   /* reference: near-square frames */
  --radius-img: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
}

@media (min-width: 768px) {
  :root { --gutter: 48px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Language switching (both languages inline in HTML) ---------- */
html[data-lang="ko"] .en,
html[data-lang="en"] .ko { display: none !important; }
html[data-lang="ko"] body { word-break: keep-all; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
/* Editorial column: on desktop the content starts ~23.5% from the left
   and spans ~70% of the width, like the reference. */
@media (min-width: 1080px) {
  main .container {
    padding-left: calc(min(100vw, var(--container)) * 0.235);
    padding-right: calc(min(100vw, var(--container)) * 0.063);
  }
}
.ink { background: var(--ink); color: var(--bone); }
.stone { background: var(--stone); color: var(--ink); }
.stone .muted { color: var(--muted-light); }
.muted { color: var(--muted-dark); }

/* ---------- Typography ---------- */
.chapter-title {
  font-weight: 600;
  font-size: clamp(56px, 9.8vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0;
}
.display {
  font-weight: 600;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0;
}
.h2 {
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
}
.h3 {
  font-weight: 600;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
}
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
html[data-lang="ko"] .serif { font-style: normal; letter-spacing: -0.03em; }
.serif-lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.15;
  margin: 0;
  max-width: 22ch;
}
html[data-lang="ko"] .serif-lead { font-style: normal; font-size: clamp(20px, 2.3vw, 30px); line-height: 1.35; max-width: 24ch; }
.serif-head {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}
html[data-lang="ko"] .serif-head { font-style: normal; font-size: clamp(26px, 3vw, 44px); line-height: 1.2; letter-spacing: -0.04em; }
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.body-s { font-size: 14px; line-height: 1.55; }
.caption { font-size: 13px; line-height: 1.45; }
.gold { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--ink); position: relative; overflow: hidden; isolation: isolate; }
.btn-gold::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / 0.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.9s var(--ease); }
.btn-gold:hover::before { transform: translateX(120%); }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; } /* <button> would otherwise get the browser's white fill */
.btn-ghost:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.stone .btn-ghost:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s;
}
.header.is-solid { background: rgb(11 11 11 / 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.header .container { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: baseline; gap: 6px; padding-block: 6px; font-weight: 700; letter-spacing: -0.04em; font-size: 20px; }
.logo em { font-family: var(--font-serif); font-weight: 400; color: var(--gold); font-size: 21px; letter-spacing: 0; }
.logo { white-space: nowrap; flex-shrink: 0; }
/* small phones (≤380px, e.g. 360px Galaxy): keep the wordmark on one line next to KO/EN + menu */
@media (max-width: 380px) { .header .container { gap: 10px; } .logo { font-size: 17px; gap: 4px; } .logo em { font-size: 18px; } }
.nav { display: none; gap: 22px; margin-left: 12px; font-size: 14px; }
.nav a { opacity: 0.78; transition: opacity 0.2s; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a:hover { opacity: 1; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  padding: 3px;
  background: rgb(0 0 0 / 0.25);
}
.lang-toggle button {
  border: 0;
  background: transparent;
  min-width: 40px;
  min-height: 34px;
  position: relative;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.6;
}
.lang-toggle button::after { content: ""; position: absolute; inset: -5px -2px; } /* 44px touch area */
.lang-toggle button[aria-pressed="true"] { background: var(--bone); color: var(--ink); opacity: 1; }
.header .btn { min-height: 40px; padding: 0 18px; font-size: 14px; display: none; }
.menu-btn {
  width: 44px; height: 44px;
  border: 0; background: transparent;
  display: grid; place-items: center;
}
.menu-btn span { display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; transition: transform 0.3s var(--ease); }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 22px; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease); }
.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--ink);
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
  overflow-y: auto;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-size: clamp(34px, 9vw, 56px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.15;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}
.menu-open .mobile-menu a { transform: none; opacity: 1; }
.menu-open .mobile-menu a:nth-child(2) { transition-delay: 0.04s; }
.menu-open .mobile-menu a:nth-child(3) { transition-delay: 0.08s; }
.menu-open .mobile-menu a:nth-child(4) { transition-delay: 0.12s; }
.menu-open .mobile-menu a:nth-child(5) { transition-delay: 0.16s; }
.menu-open .mobile-menu a:nth-child(6) { transition-delay: 0.2s; }
.menu-open .mobile-menu a:nth-child(7) { transition-delay: 0.24s; }
.menu-open .mobile-menu a:nth-child(8) { transition-delay: 0.28s; }
.mobile-menu .btn { margin-top: 28px; align-self: flex-start; }
.menu-open { overflow: hidden; }

@media (min-width: 1080px) {
  .nav { display: flex; }
  .header .btn { display: inline-flex; }
  .menu-btn, .mobile-menu { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: min(100svh, 980px);
  min-height: 560px;
  overflow: hidden;
  background: #1a2733;
}
.hero-media { position: absolute; inset: -6% 0 0 0; height: 112%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgb(0 0 0 / 0.42) 0%, rgb(0 0 0 / 0) 24%),
    linear-gradient(0deg, rgb(0 0 0 / 0.78) 0%, rgb(0 0 0 / 0.35) 34%, rgb(0 0 0 / 0) 62%),
    radial-gradient(120% 90% at 0% 100%, rgb(0 0 0 / 0.45) 0%, rgb(0 0 0 / 0) 60%);
}
/* Film grain — a whisper of texture on photographic surfaces (hero, chapter covers) */
.hero::before, .cover-stage::before {
  content: ""; position: absolute; inset: -50%; z-index: 2; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); } 60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); } }
@media (prefers-reduced-motion: reduce) { .hero::before, .cover-stage::before { animation: none; } }
.hero-inner {
  position: absolute; inset: auto 0 0 0; z-index: 3;
  padding-bottom: clamp(56px, 7vw, 96px);
}
.hero-grid { display: grid; grid-template-columns: 1fr; align-items: end; gap: 28px; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr auto; } }
.hero-copy { display: grid; gap: 18px; max-width: 760px; }
.hero-kicker { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone); text-shadow: 0 1px 2px rgb(0 0 0 / 0.6), 0 2px 18px rgb(0 0 0 / 0.5); }
.hero-kicker .line { width: 44px; height: 1px; background: var(--gold); }
.hero-title {
  margin: 0; color: var(--bone);
  font-family: var(--font-serif); font-weight: 400; line-height: 1.02; letter-spacing: -0.015em;
  font-size: clamp(44px, 7.2vw, 112px);
  text-shadow: 0 2px 40px rgb(0 0 0 / 0.35);
}
html[data-lang="en"] .hero-title { font-style: italic; }
html[data-lang="ko"] .hero-title { font-size: clamp(36px, 5.6vw, 88px); line-height: 1.16; letter-spacing: -0.03em; }
.hero-sub { margin: 0; font-size: 15px; line-height: 1.6; color: rgb(255 255 255 / 0.86); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-cta .btn { min-height: 50px; padding: 0 24px; font-size: 15px; }
.hero-cta .btn-ghost { color: var(--bone); border-color: rgb(255 255 255 / 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgb(0 0 0 / 0.18); }
.hero-meta { display: none; }
@media (min-width: 900px) { .hero-meta { display: block; padding-bottom: 8px; } }
.hero-count { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: 0.12em; color: rgb(255 255 255 / 0.75); font-variant-numeric: tabular-nums; }
.hero-count b { font-weight: 600; color: var(--bone); font-size: 15px; }
.hero-count i { width: 56px; height: 1px; background: rgb(255 255 255 / 0.45); }
.hero-scroll { position: absolute; right: var(--gutter); bottom: 28px; z-index: 2; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; writing-mode: vertical-rl; opacity: 0.8; display: none; }
/* the vertical "Scroll" label sat under the floating contact buttons — the slide counter replaces it */

/* ---------- Intro ---------- */
.intro { padding: clamp(120px, 16vw, 220px) 0 clamp(80px, 10vw, 140px); }
.intro .serif-head { max-width: 20ch; }
html[data-lang="ko"] .intro .serif-head { max-width: 22ch; }
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--ink-line);
}
.stat { padding: 22px 0 0; }
.stat b { display: block; font-size: clamp(44px, 6vw, 84px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.stat b sup { font-size: 0.4em; color: var(--gold); vertical-align: top; margin-left: 2px; }
.stat span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted-dark); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Chapter opener (big title on ink, like "Sidekick") ---------- */
/* Title → big gap → tagline → small 16:9 thumbnail, stacked (reference opener) */
.chapter-open { padding: clamp(140px, 20vw, 300px) 0 clamp(72px, 9vw, 130px); }
.chapter-open .row { display: flex; flex-direction: column; gap: 22px; margin-top: clamp(80px, 16vw, 240px); }
.chapter-open .row > div:not(.chapter-thumb) { order: 1; }
.chapter-open .chapter-thumb { order: 2; width: clamp(220px, 23vw, 330px); border-radius: 4px; overflow: hidden; aspect-ratio: 16/9; }
.chapter-open .chapter-thumb img { width: 100%; height: 100%; object-fit: cover; }
.chapter-open .chapter-meta { font-size: 13px; color: var(--muted-dark); display: flex; gap: 16px; flex-wrap: wrap; }
.chapter-open .chapter-meta span::before { content: "— "; color: var(--gold); }
.chapter-open .serif-lead { max-width: 34ch; }

/* Swash initial (reference): motion.js marks the first character of English serif
   lines as .ch.cap — a real span, so it keeps proper spacing (unlike ::first-letter,
   which collided with the next glyph: "B ars", "R ooms"). */
html[data-lang="en"] .serif-head .en .cap,
html[data-lang="en"] .serif-lead .en .cap { font-size: 1.42em; line-height: 0.6; margin-right: 0.04em; vertical-align: -0.04em; }

/* ---------- Stone sections ---------- */
.block { padding: clamp(80px, 10vw, 140px) 0; }
/* Consecutive blocks on the same background share one gap */
.block.stone + .block.stone, .block.ink + .block.ink { padding-top: 0; }
.chapter-open.ink + .block.ink { padding-top: 0; }
.widgets > *, .split > *, .bento > *, .contact-grid > * { min-width: 0; }

/* Typographic tile (F29) */
.tile.f29 { background: radial-gradient(120% 90% at 85% 10%, #3a2f18 0%, #161616 55%); border: 1px solid #c9a55c44; }
.tile.f29 .big {
  margin: auto 0 18px;
  font-size: clamp(88px, 12vw, 180px);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.82;
  background: linear-gradient(170deg, #f6e7c1 0%, #c9a55c 45%, #8c6d2c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tile.f29 .big small { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 0.32em; letter-spacing: 0; margin-left: 8px; }
/* Reference sub-block: small serif heading, then a short paragraph, stacked in a narrow column */
.block-head { display: grid; gap: 14px; max-width: 560px; margin-bottom: clamp(36px, 5vw, 64px); }
.block-head p { max-width: 52ch; margin: 0; font-size: 14px; line-height: 1.55; }
.block-head .serif-head { font-size: clamp(28px, 2.8vw, 40px); }
html[data-lang="ko"] .block-head .serif-head { font-size: clamp(24px, 2.4vw, 34px); }

/* Small underlined text link ("Learn more" in the reference) */
.tlink {
  justify-self: start;
  display: inline-flex; align-items: center; min-height: 32px; position: relative;
  font-size: 13px; font-weight: 500;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
  transition: color 0.2s;
}
.tlink::after { content: ""; position: absolute; inset: -6px -4px; } /* 44px touch area, no layout change */
.tlink:hover { color: var(--gold-deep); }
.ink .tlink:hover { color: var(--gold); }

/* ---------- Card rail (horizontal scroll with snap) ---------- */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 78%);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 4px var(--gutter) 24px;
  margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 640px) { .rail { grid-auto-columns: minmax(260px, 44%); } }
@media (min-width: 1180px) {
  /* Desktop: all six cards sit in one row, like the reference card strip */
  .rail { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; margin: 0; padding: 4px 0 24px; }
}

/* Polaroid room cards: white frame, coloured "photo" area on top, caption below.
   Rotation uses the individual `rotate`/`translate` properties so it survives the
   reveal animation, which resets `transform`. */
.room-card {
  --c: #f3efe6; --fg: var(--ink);
  background: #fff;
  color: var(--ink);
  border-radius: 6px;
  padding: 14px 16px 18px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.05), 0 22px 44px rgb(0 0 0 / 0.14);
  transition: transform 0.5s var(--ease), rotate 0.5s var(--ease), translate 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}
.room-card::before {
  content: ""; position: absolute; left: 8px; right: 8px; top: 8px; height: 56%;
  background: var(--c); border-radius: 3px;
}
.room-card > * { position: relative; }
.room-card > div { position: static; } /* let .size anchor to the card, not the caption */
.room-card:hover { transform: translateY(-10px); rotate: 0deg; z-index: 2; }
.room-card .tag { color: var(--fg); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; opacity: 0.8; }
.room-card .size { position: absolute; left: 18px; top: calc(56% - 58px); color: var(--fg); font-size: 52px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.room-card .size small { font-size: 17px; letter-spacing: 0; margin-left: 2px; }
.room-card h3, .room-card h4 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.03em; font-weight: 600; }
.room-card p { margin: 0; font-size: 12.5px; line-height: 1.45; color: #4a4843; }
.room-card .art { position: absolute; right: 8px; top: 8px; width: 120px; height: 120px; border-radius: 0 3px 0 50%; opacity: 0.6; overflow: hidden; }
.rc-1 { --c: #f3efe6; }
.rc-1 .art { background: radial-gradient(circle at 70% 30%, #fff, #e6cf9a 60%, transparent 61%); }
.rc-2 { --c: #1d1c19; --fg: var(--bone); }
.rc-2 .art { background: radial-gradient(circle at 60% 40%, #c9a55c 0 30%, transparent 31%); }
.rc-3 { --c: linear-gradient(160deg, #e6cf9a, #c9a55c 60%, #8c6d2c); }
.rc-3 .art { background: radial-gradient(circle at 60% 40%, #fff8 0 28%, transparent 29%); }
.rc-4 { --c: #2a3a45; --fg: var(--bone); }
.rc-4 .art { background: conic-gradient(from 200deg at 60% 40%, #c9a55c, transparent 40%); }
.rc-5 { --c: #b9b6a8; }
.rc-5 .art { background: repeating-linear-gradient(45deg, #0b0b0b22 0 2px, transparent 2px 10px); }
.rc-6 { --c: #000; --fg: var(--gold-light); }
.rc-6 .art { background: radial-gradient(circle at 60% 40%, #c9a55c 0 16%, transparent 17%), radial-gradient(circle at 60% 40%, transparent 0 34%, #c9a55c 35% 36%, transparent 37%); opacity: 0.85; }
.room-card:nth-child(odd) { rotate: -1.5deg; }
.room-card:nth-child(even) { rotate: 1.5deg; }
@media (min-width: 1180px) {
  /* Fanned hand of cards, overlapping like the reference */
  .rail.fan { gap: 0; padding: 36px 0 48px; }
  .rail.fan .room-card { margin-left: -18px; }
  .rail.fan .room-card:first-child { margin-left: 0; }
  /* Each card sits above the previous one, so only right edges (no text) are covered */
  .rail.fan .room-card:nth-child(1) { rotate: -7deg; translate: 0 18px; z-index: 1; }
  .rail.fan .room-card:nth-child(2) { rotate: -4deg; translate: 0 2px; z-index: 2; }
  .rail.fan .room-card:nth-child(3) { rotate: -1deg; translate: 0 -8px; z-index: 3; }
  .rail.fan .room-card:nth-child(4) { rotate: 2deg; translate: 0 -4px; z-index: 4; }
  .rail.fan .room-card:nth-child(5) { rotate: 5deg; translate: 0 8px; z-index: 5; }
  .rail.fan .room-card:nth-child(6) { rotate: 8deg; translate: 0 24px; z-index: 6; }
  .rail.fan .room-card:hover { rotate: 0deg; translate: 0 -12px; z-index: 10; }
}

/* ---------- Split feature (text + visual) ---------- */
.split { display: grid; gap: 32px; align-items: center; }
.split .copy { display: grid; gap: 18px; align-content: start; }
.split .copy p { margin: 0; max-width: 46ch; }
.split .serif-head { font-size: clamp(28px, 2.8vw, 40px); }
html[data-lang="ko"] .split .serif-head { font-size: clamp(24px, 2.4vw, 34px); }
@media (min-width: 900px) {
  .split { grid-template-columns: 4fr 7fr; gap: 64px; }
  .split.reverse { grid-template-columns: 7fr 4fr; }
  .split.reverse .copy { order: 2; }
}
.media {
  border-radius: var(--radius-img);
  overflow: hidden;
  position: relative;
  background: #222;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media .label {
  position: absolute; left: 16px; bottom: 16px;
  background: rgb(11 11 11 / 0.72); color: var(--bone);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 8px 14px; border-radius: 999px; font-size: 12px;
}

/* Gold pool artwork (placeholder for real hotel photography) */
.pool-art {
  aspect-ratio: 16/10;
  background:
    linear-gradient(180deg, #e9b77a 0%, #f2c98d 22%, #f6dcae 34%, transparent 35%),
    linear-gradient(180deg, transparent 34%, #0d2f3f 34.5%, #11475c 50%, #1b6a7d 100%);
  position: relative;
}
.pool-art::before {
  content: ""; position: absolute; left: 0; right: 0; top: 34%; bottom: 0;
  background:
    radial-gradient(18% 60% at 50% 0%, rgb(255 236 190 / 0.75), transparent 70%),
    repeating-linear-gradient(90deg, rgb(230 207 154 / 0.28) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(0deg, rgb(230 207 154 / 0.28) 0 1px, transparent 1px 22px),
    linear-gradient(180deg, rgb(201 165 92 / 0.25), rgb(201 165 92 / 0.85));
  transform: perspective(500px) rotateX(48deg);
  transform-origin: top;
}
.pool-art::after {
  content: ""; position: absolute; left: 50%; top: 14%; width: 70px; height: 70px; margin-left: -35px;
  border-radius: 50%; background: radial-gradient(circle, #fff6e0, #f4c27a 60%, transparent 70%);
  filter: blur(1px);
}
.pool-art .skyline {
  position: absolute; left: 0; right: 0; top: 24%; height: 11%;
  background:
    linear-gradient(90deg, #4a3a37 0 4%, transparent 4% 6%, #4a3a37 6% 9%, transparent 9% 14%, #4a3a37 14% 16%, transparent 16% 22%, #4a3a37 22% 27%, transparent 27% 60%, #4a3a37 60% 62%, transparent 62% 70%, #4a3a37 70% 76%, transparent 76% 84%, #4a3a37 84% 88%, transparent 88%);
  clip-path: polygon(0 40%, 4% 40%, 4% 100%, 6% 100%, 6% 10%, 9% 10%, 9% 100%, 14% 100%, 14% 30%, 16% 30%, 16% 100%, 22% 100%, 22% 0, 27% 0, 27% 100%, 60% 100%, 60% 50%, 62% 50%, 62% 100%, 70% 100%, 70% 20%, 76% 20%, 76% 100%, 84% 100%, 84% 45%, 88% 45%, 88% 100%, 100% 100%, 100% 100%, 0 100%);
  opacity: 0.6;
}

/* ---------- Feature list (Shopify 3-col small text grid) ---------- */
/* Spec table: "bold name │ description" rows, two pairs per row on desktop (reference) */
.flist { display: grid; gap: 0; }
.flist > div {
  display: grid;
  grid-template-columns: minmax(110px, 40%) 1fr;
  grid-template-areas: "title meta" "title desc";
  column-gap: 16px;
  row-gap: 2px;
  padding: 11px 0;
  align-content: start;
}
.flist h3, .flist h5 { grid-area: title; margin: 0; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.flist p { grid-area: desc; margin: 0; font-size: 13px; line-height: 1.5; opacity: 0.8; }
.flist .meta { grid-area: meta; font-size: 11.5px; color: var(--gold-deep); font-weight: 500; }
.ink .flist .meta { color: var(--gold); }
@media (min-width: 900px) {
  .flist, .flist.cols-3 { grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
}

/* ---------- Paper panel that overlaps into the next (black) section ---------- */
.panel {
  --overlap: clamp(120px, 13vw, 190px);
  position: relative;
  z-index: 2;
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
  padding: clamp(20px, 3vw, 40px);
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.18);
}
.panel .flist .meta { color: var(--gold-deep); }
.block:has(> .container > .panel.overlap:last-child) { padding-bottom: 0; }
.panel.overlap { margin-bottom: calc(var(--overlap) * -1); }
.after-overlap { padding-top: calc(clamp(140px, 20vw, 300px) + clamp(120px, 13vw, 190px)); }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 14px; grid-template-columns: 1fr; }
.tile {
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  min-height: 260px;
  background: var(--ink-soft);
  color: var(--bone);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  isolation: isolate;
}
.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.tile:hover > img { transform: scale(1.04); }
.tile.shade::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgb(0 0 0 / 0.78)); }
.tile h3, .tile h4 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.03em; font-weight: 600; }
.tile p { margin: 0; font-size: 13.5px; opacity: 0.88; max-width: 40ch; }
.tile .pill { align-self: flex-start; margin-bottom: auto; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgb(11 11 11 / 0.6); backdrop-filter: blur(6px); }
.tile.light { background: var(--stone-soft); color: var(--ink); }
.tile.gold { background: linear-gradient(150deg, #e6cf9a, #c9a55c 55%, #8c6d2c); color: var(--ink); }
/* Photo tiles: image on top, caption underneath (reference style) */
.tile.shade { background: none; color: inherit; padding: 0; min-height: 0; justify-content: flex-start; overflow: visible; }
.tile.shade::before { display: none; }
.tile.shade > img { position: relative; inset: auto; z-index: auto; width: 100%; height: auto; aspect-ratio: 16/10; border-radius: var(--radius-card); flex: none; }
.tile.shade:hover > img { transform: none; filter: brightness(1.06); }
.tile.shade .pill { position: absolute; top: 12px; left: 12px; color: var(--bone); }
.tile.shade h3, .tile.shade h4 { margin: 14px 0 4px; font-size: 16px; letter-spacing: -0.015em; }
.tile.shade p { font-size: 13px; opacity: 0.78; }
.rail .tile.shade > img { aspect-ratio: 4/5; }
.rail .tile.shade { min-height: 0 !important; }
.rail .tile:not(.shade) { aspect-ratio: 4/5; min-height: 0 !important; align-self: start; padding: 16px; }
.rail .tile:not(.shade) h3, .rail .tile:not(.shade) h4 { font-size: 17px; }
.rail .tile:not(.shade) p { font-size: 12.5px; }
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(6, 1fr); align-items: start; }
  .tile:not(.shade) { min-height: 240px; }
  .tile.tall:not(.shade) { min-height: 520px; align-self: stretch; }
  .span-4.tall.shade > img { aspect-ratio: 16/11; }
  .span-3.tall.shade > img { aspect-ratio: 1/1; }
  .span-2.tall.shade > img { aspect-ratio: 3/4; }
  .span-2 { grid-column: span 2; }
  .span-3 { grid-column: span 3; }
  .span-4 { grid-column: span 4; }
  .span-6 { grid-column: span 6; }
  .tall { grid-row: span 2; }
}

/* ---------- Timetable ---------- */
.timetable { display: grid; gap: 14px; }
.tt {
  background: var(--stone-soft);
  border-radius: var(--radius-card);
  padding: 20px;
}
.tt h3, .tt h5 { margin: 0 0 4px; font-size: 16px; letter-spacing: -0.01em; }
.tt .route { font-size: 12.5px; color: var(--muted-light); margin-bottom: 14px; }
.tt .times { display: flex; flex-wrap: wrap; gap: 6px; }
.tt .times span { font-variant-numeric: tabular-nums; background: var(--ink); color: var(--bone); border-radius: 999px; padding: 5px 11px; font-size: 13px; }
.tt .times span.alt { background: transparent; color: var(--ink); border: 1px solid var(--stone-line); }
@media (min-width: 768px) { .timetable { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .timetable { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Casino ---------- */
.casino-hero {
  border-radius: var(--radius-img);
  overflow: hidden;
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: end;
  isolation: isolate;
}
.casino-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.casino-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(11 11 11 / 0.92) 0%, rgb(11 11 11 / 0.72) 45%, rgb(11 11 11 / 0.2) 100%); }
.casino-hero .inner { padding: clamp(24px, 4vw, 56px); display: grid; gap: 22px; max-width: 640px; }
.casino-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 28px; margin-top: 6px; }
.casino-facts b { display: block; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.04em; font-weight: 600; line-height: 1; color: var(--gold-light); }
.casino-facts span { font-size: 12.5px; color: var(--muted-dark); }
.games { display: flex; flex-wrap: wrap; gap: 8px; }
.games span { border: 1px solid var(--ink-line); border-radius: 999px; padding: 7px 14px; font-size: 13px; }
.notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px 22px;
  border: 1px solid #c9a55c66;
  border-radius: var(--radius-card);
  background: rgb(201 165 92 / 0.06);
  font-size: 13.5px;
  line-height: 1.55;
}
.notice .age { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--gold-deep); display: grid; place-items: center; font-weight: 700; color: var(--gold-deep); font-size: 16px; }
.ink .notice .age { border-color: var(--gold); color: var(--gold); }
.partner-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .partner-grid { grid-template-columns: 1fr 1fr; } }
.partner {
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: grid;
  align-content: start;
}
.partner .ph { aspect-ratio: 16/8; overflow: hidden; }
.partner .ph img { width: 100%; height: 100%; object-fit: cover; }
.partner .pc { padding: 22px; display: grid; gap: 12px; }
.partner dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 13.5px; }
.partner dt { color: var(--muted-dark); }
.partner dd { margin: 0; }

/* ---------- Live Da Nang widgets ---------- */
.widgets { display: grid; gap: 14px; }
@media (min-width: 900px) { .widgets { grid-template-columns: 1fr 1fr; } }
.widget {
  border-radius: var(--radius-card);
  background: var(--stone-soft);
  color: var(--ink);
  padding: 24px;
  display: grid;
  gap: 18px;
  align-content: start;
}
.widget-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.widget-head .caption { color: var(--muted-light); }
.weather-now { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.weather-now .temp { font-size: clamp(64px, 9vw, 112px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.9; }
.weather-now .temp sup { font-size: 0.35em; vertical-align: top; color: var(--gold-deep); }
.weather-now .cond { font-family: var(--font-serif); font-style: italic; font-size: 26px; line-height: 1.1; }
html[data-lang="ko"] .weather-now .cond { font-style: normal; font-size: 22px; }
.weather-now .wx-meta { font-size: 13px; color: var(--muted-light); margin-top: 4px; }
.wx-icon { width: 64px; height: 64px; }
.forecast { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; border-top: 1px solid var(--stone-line); padding-top: 14px; }
.forecast div { text-align: center; font-size: 12.5px; display: grid; gap: 4px; justify-items: center; }
.forecast b { font-size: 15px; font-weight: 600; }
.forecast svg { width: 26px; height: 26px; }
.wx-extra { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wx-extra div { background: #fff; border-radius: 4px; padding: 12px 16px; }
.wx-extra span { display: block; font-size: 12px; color: var(--muted-light); }
.wx-extra b { font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fx-rates { display: grid; gap: 10px; }
.fx-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--stone-line); }
.fx-row .pair { font-size: 14px; color: var(--muted-light); }
.fx-row .val { font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.fx-row .val small { font-size: 14px; font-weight: 500; letter-spacing: 0; margin-left: 4px; color: var(--muted-light); }
.converter { display: grid; gap: 10px; }
.converter .field { display: flex; border: 1px solid var(--stone-line); border-radius: 4px; background: #fff; overflow: hidden; }
.converter input { flex: 1; min-width: 0; border: 0; padding: 14px 16px; font: inherit; font-size: 18px; font-weight: 600; background: transparent; color: var(--ink); }
.converter input:focus { outline: none; }
.converter .field:focus-within { border-color: var(--gold-deep); }
.converter select { border: 0; border-left: 1px solid var(--stone-line); background: var(--stone-soft); padding: 0 14px; font: inherit; font-weight: 600; color: var(--ink); min-height: 48px; }
.converter .out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.converter .out div { background: #fff; border-radius: 4px; padding: 12px 16px; }
.converter .out span { display: block; font-size: 12px; color: var(--muted-light); }
.converter .out b { font-size: 18px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; word-break: break-all; }
.wise-link { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; color: var(--muted-light); }

.map-wrap { display: grid; gap: 14px; }
.map-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.map-tabs::-webkit-scrollbar { display: none; }
.map-tabs button {
  flex: none;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--stone-line);
  background: transparent;
  font-size: 13.5px;
  white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.map-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.map-frame { border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 4/5; background: #cfcdc3; position: relative; }
@media (min-width: 768px) { .map-frame { aspect-ratio: 16/7; } }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-info { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }

/* ---------- Contact / Community ---------- */
/* Channel cards — 20% more compact than v1 so Telegram · Kakao · Naver · Google · Call fit one row */
.contact-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.channel {
  border-radius: var(--radius-card);
  padding: 21px;
  min-height: 208px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  transition: transform 0.5s var(--ease);
}
.channel:hover { transform: translateY(-6px); }
.channel .ic { width: 45px; height: 45px; border-radius: 6px; display: grid; place-items: center; }
.channel .ic svg { width: 24px; height: 24px; }
.channel h3, .channel h4 { margin: 0 0 5px; font-size: 21px; letter-spacing: -0.03em; font-weight: 600; }
.channel p { margin: 0; font-size: 12.5px; line-height: 1.45; opacity: 0.85; }
.channel .go { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12.5px; font-weight: 600; overflow-wrap: anywhere; }
.ch-naver { background: #03c75a; color: #06301a; } /* dark text: white on Naver green is 2.3:1 */
.ch-naver .ic { background: #fff; color: #03c75a; }
.ch-google { background: #fff; color: #1f1f1f; border: 1px solid #e3e3e3; }
.ch-google .ic { background: #f1f3f4; }
.ch-tele { background: #1877a8; color: #fff; } /* deeper Telegram blue: 4.9:1 with white */
.ch-tele .ic { background: #fff; color: #1877a8; }
.ch-tele p, .ch-naver p { opacity: 1; }
.ch-kakao { background: #fee500; color: #191600; }
.ch-kakao .ic { background: #191600; color: #fee500; }
.ch-call { background: var(--ink-soft); border: 1px solid var(--ink-line); color: var(--bone); }
.ch-call .ic { background: var(--gold); color: var(--ink); }

/* ---------- Floating keyword cloud (reference "Sales tasks" cloud) ---------- */
.wordcloud { position: relative; height: clamp(280px, 30vw, 380px); margin: clamp(56px, 7vw, 96px) 0 0; }
.wordcloud span {
  position: absolute;
  white-space: nowrap;
  font-size: var(--s, 14px);
  color: var(--bone);
  opacity: var(--o, 0.35);
  translate: -50% -50%;
  /* cycle 1.1 × 1.3 = 1.43× faster than --d (earlier +10%, then +30%); drift 10% wider */
  animation: drift calc(var(--d, 9s) / 1.43) ease-in-out infinite alternate;
}
.wordcloud span.serif { font-family: var(--font-serif); font-style: italic; }
.wordcloud .core {
  font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.03em;
  opacity: 1; color: var(--gold-light);
}
@keyframes drift { to { translate: calc(-50% + var(--x, 8px) * 1.1) calc(-50% + var(--y, -10px) * 1.1); } }
@media (max-width: 767px) { .wordcloud span:nth-child(n+12) { display: none; } }
@media (prefers-reduced-motion: reduce) { .wordcloud span { animation: none; } }

/* ---------- Floating contact ---------- */
.fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 45;
  display: grid;
  gap: 10px;
  transform: translateY(140%);
  transition: transform 0.6s var(--ease);
}
.fab.is-visible { transform: none; }
.fab a {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.35);
  transition: transform 0.3s var(--ease);
}
.fab a:hover { transform: scale(1.06); }
.fab svg { width: 21px; height: 21px; }
.fab .f-tele { background: #229ed9; color: #fff; }
.fab .f-kakao { background: #fee500; color: #191600; }
.fab .f-naver { background: #03c75a; color: #fff; }
.fab .f-google { background: #fff; }
.fab { gap: 8px; }

/* ---------- Footer ---------- */
.footer { padding: clamp(100px, 12vw, 180px) 0 40px; }
.footer-word { font-size: clamp(56px, 10.2vw, 168px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.85; margin: 0 0 clamp(48px, 6vw, 80px); }
.footer-word em { font-family: var(--font-serif); font-weight: 400; color: var(--gold); letter-spacing: -0.03em; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); padding-top: 32px; border-top: 1px solid var(--ink-line); }
.footer-grid h2, .footer-grid h6 { margin: 0 0 12px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-dark); font-weight: 500; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.footer-grid a:hover { color: var(--gold); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-bottom { margin-top: 48px; display: grid; gap: 10px; font-size: 12px; color: var(--muted-dark); }
.footer-bottom a { text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Scroll reveal — every section uses [data-reveal]
   ========================================================================== */
[data-reveal] { transition: opacity 1s var(--ease), transform 1.1s var(--ease), clip-path 1.2s var(--ease); }
[data-reveal="up"] { opacity: 0; transform: translateY(48px); }
[data-reveal="fade"] { opacity: 0; }
[data-reveal="zoom"] { overflow: hidden; }
[data-reveal="zoom"] > img, [data-reveal="zoom"] > .pool-art { transform: scale(1.12); transition: transform 1.6s var(--ease); }
[data-reveal="zoom"] { clip-path: inset(8% 6% 8% 6% round 6px); }
[data-reveal="mask"] { overflow: hidden; }
/* Room for descenders (g, y) inside the clipping mask — em of the heading itself */
[data-reveal="mask"] > * { padding-bottom: 0.16em; }
[data-reveal="mask"] > * { display: block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
[data-reveal="stagger"] > * { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); }

[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="zoom"].is-in { clip-path: inset(0 0 0 0 round 6px); }
[data-reveal="zoom"].is-in > img, [data-reveal="zoom"].is-in > .pool-art { transform: scale(1); }
[data-reveal="mask"].is-in > * { transform: none; }
[data-reveal="stagger"].is-in > * { opacity: 1; transform: none; }
[data-reveal="stagger"].is-in > *:nth-child(2) { transition-delay: 0.08s; }
[data-reveal="stagger"].is-in > *:nth-child(3) { transition-delay: 0.16s; }
[data-reveal="stagger"].is-in > *:nth-child(4) { transition-delay: 0.24s; }
[data-reveal="stagger"].is-in > *:nth-child(5) { transition-delay: 0.32s; }
[data-reveal="stagger"].is-in > *:nth-child(6) { transition-delay: 0.4s; }
[data-reveal="stagger"].is-in > *:nth-child(n+7) { transition-delay: 0.48s; }

@media (max-width: 767px) {
  [data-reveal="up"] { transform: translateY(24px); }
  [data-reveal="stagger"] > * { transform: translateY(20px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], [data-reveal] > *, [data-reveal] > img { transform: none !important; clip-path: none !important; transition: opacity 0.4s linear !important; }
  .hero-media { transform: none !important; }
}

/* Screenshot mode (?shot) — show everything immediately */
.shot [data-reveal], .shot [data-reveal] > *, .shot [data-reveal] > img, .shot [data-reveal] > .pool-art { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
/* Fixed to the bottom of a 20 000px screenshot window it would block trimming — pin it to the first screen instead. */
.shot .fab { transform: none; position: absolute; top: calc(100vh - 140px); bottom: auto; }
@supports (height: 1svh) { .shot .fab { top: 800px; } }

/* ---------- Design v2: scroll progress — a 2px gold line under the header (CSS scroll-driven, no JS) ---------- */
@supports (animation-timeline: scroll()) {
  .header::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none;
    background: linear-gradient(90deg, var(--champagne), var(--gold-light));
    transform-origin: left; transform: scaleX(0);
    animation: scroll-line linear both; animation-timeline: scroll(root);
  }
  @keyframes scroll-line { to { transform: scaleX(1); } }
}
@media (prefers-reduced-motion: reduce) { .header::after { display: none; } }

/* ---------- Design v2: interactive cards — slow image drift + arrow nudge (hover devices only) ---------- */
@media (hover: hover) {
  .tile > img, .venue .v-main img, .room-card img { transition: transform 1.4s var(--ease), filter 0.8s var(--ease); }
  .tile:hover > img { transform: scale(1.06); }
  .venue:hover .v-main img { transform: scale(1.04); }
  .promo.has-img .promo-media { position: relative; }
  .promo.has-img .promo-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(0 0 0 / 0.35), transparent 55%); opacity: 0; transition: opacity 0.8s var(--ease); }
  .promo.has-img:hover .promo-media::after { opacity: 1; }
  .tlink { transition: color 0.2s, letter-spacing 0.6s var(--ease); }
}

/* ---------- Design v2: horizontal destinations (index → Travel) ----------
   Desktop with motion: the section pins and the track slides sideways as you scroll (motion.js sets --hs).
   Phones / reduced motion: a native swipe rail with snap. */
.hscroll { position: relative; background: var(--ink); color: var(--bone); }
.hs-pin { position: relative; }
.hs-intro { position: relative; z-index: 1; padding: clamp(80px, 11vw, 140px) var(--gutter) 28px; }
.hs-intro .container { padding: 0; margin: 0; max-width: 520px; }
.hs-head { font-size: clamp(44px, 6vw, 96px) !important; line-height: 1.02; margin: 14px 0 18px; }
.hs-intro .muted { max-width: 34ch; font-size: 15px; line-height: 1.6; }
.hs-hint { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); }
.hs-hint i { width: 48px; height: 1px; background: var(--gold); position: relative; overflow: hidden; }
.hs-hint i::after { content: ""; position: absolute; inset: 0; background: var(--bone); animation: hs-hint 2.2s var(--ease) infinite; }
@keyframes hs-hint { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.hs-track { position: relative; z-index: 2; display: grid; grid-auto-flow: column; grid-auto-columns: 84vw; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) clamp(80px, 11vw, 140px); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.hs-track::-webkit-scrollbar { display: none; }
.hs-panel { position: relative; scroll-snap-align: start; height: min(72vh, 620px); border-radius: 10px; overflow: hidden; isolation: isolate; color: var(--bone); }
.hs-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.08) translateX(var(--px, 0%)); transition: transform 1.4s var(--ease); }
.hs-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(0 0 0 / 0.82) 0%, rgb(0 0 0 / 0.25) 50%, rgb(0 0 0 / 0.05) 75%); }
.hs-copy { position: absolute; left: clamp(20px, 3vw, 44px); right: clamp(20px, 3vw, 44px); bottom: clamp(20px, 3vw, 40px); display: grid; gap: 10px; }
.hs-no { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); }
.hs-title { font-weight: 600; letter-spacing: -0.04em; line-height: 0.98; font-size: clamp(34px, 5vw, 84px); }
.hs-lead { font-family: var(--font-serif); font-size: clamp(17px, 1.7vw, 24px); line-height: 1.4; max-width: 36ch; color: rgb(255 255 255 / 0.9); }
html[data-lang="en"] .hs-lead { font-style: italic; }
.hs-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 4px; font-size: 13px; }
.hs-meta .pill { position: static; }
.hs-go { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.hs-progress { display: none; }
@media (hover: hover) { .hs-panel:hover img { transform: scale(1.12) translateX(var(--px, 0%)); } }
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .hscroll.is-pinned { height: var(--hs-h, 600vh); }
  .hscroll.is-pinned .hs-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
  .hscroll.is-pinned .hs-intro { position: absolute; inset: 0 auto 0 0; width: 44vw; display: grid; align-content: center;
    padding: 0 3vw 0 max(var(--gutter), 7vw); }
  .hscroll.is-pinned .hs-head { font-size: clamp(48px, 4.6vw, 80px) !important; }
  .hscroll.is-pinned .hs-track { height: 100%; overflow: visible; grid-auto-columns: 58vw; gap: 24px; align-items: center;
    padding: 0 0 0 46vw; transform: translate3d(var(--hs, 0px), 0, 0); will-change: transform; }
  .hscroll.is-pinned .hs-panel { height: 76vh; box-shadow: -30px 0 60px rgb(0 0 0 / 0.55); }
  .hscroll.is-pinned .hs-progress { display: block; position: absolute; z-index: 3; left: max(var(--gutter), 7vw); right: var(--gutter); bottom: 5vh; height: 1px; background: rgb(255 255 255 / 0.2); }
  .hscroll.is-pinned .hs-progress i { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(var(--hp, 0)); }
}

/* ---------- Design v2: a framed photo that opens to full screen (index → pool) ---------- */
.xexpand { position: relative; background: var(--stone); color: var(--ink); }
.xe-pin { position: relative; height: 92vh; min-height: 520px; display: grid; place-items: center; overflow: hidden; }
.xe-media { position: absolute; inset: 0; }
.xe-media img { width: 100%; height: 100%; object-fit: cover; }
.xe-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 55%, rgb(0 0 0 / 0.45), rgb(0 0 0 / 0.1)); }
.xe-head { position: relative; z-index: 2; text-align: center; color: var(--bone); padding: 0 var(--gutter); text-shadow: 0 2px 30px rgb(0 0 0 / 0.45); }
.xe-head .serif-head { margin: 0; font-size: clamp(40px, 6.4vw, 104px); line-height: 1.04; }
.xe-head p { margin: 16px 0 0; font-size: 14px; letter-spacing: 0.04em; color: rgb(255 255 255 / 0.9); }
.xe-cap { position: absolute; top: 6vh; left: 0; right: 0; z-index: 2; text-align: center; margin: 0; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone); }
@media (prefers-reduced-motion: no-preference) {
  .xexpand.is-live { height: 230vh; }
  .xexpand.is-live .xe-pin { position: sticky; top: 0; height: 100vh; }
  .xexpand.is-live .xe-media { clip-path: inset(var(--xy, 18%) var(--xx, 26%) round var(--xr, 14px)); }
  .xexpand.is-live .xe-media img { transform: scale(var(--xs, 1.22)); }
  .xexpand.is-live .xe-head { opacity: var(--xh, 0); transform: translateY(calc((1 - var(--xh, 0)) * 28px)); }
  .xexpand.is-live .xe-cap { color: var(--gold-deep); opacity: calc(1 - var(--xh, 0) * 1.6); top: calc(var(--xy, 18%) - 30px); }
}
.shot .xexpand.is-live { height: auto; }
.shot .xexpand.is-live .xe-pin { position: relative; height: 92vh; }
.shot .xexpand.is-live .xe-media { clip-path: none; }
.shot .xexpand.is-live .xe-head { opacity: 1; transform: none; }

/* ---------- Design v2: statement whose words light up while scrolling ---------- */
.wlight { padding: clamp(110px, 14vw, 200px) 0; }
.wl-text { margin: 0; font-size: clamp(30px, 4.4vw, 68px); line-height: 1.24; letter-spacing: -0.03em; font-weight: 600; max-width: 20ch; }
html[data-lang="ko"] .wl-text { max-width: 17ch; line-height: 1.34; }
.wl-text em { font-style: normal; }
.wl-text .w { opacity: 0.16; transition: opacity 0.35s linear, color 0.35s; }
.wl-text .w.on { opacity: 1; }
.wl-text em .w.on { color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .wl-text .w { opacity: 1; } }
.shot .wl-text .w { opacity: 1; }
.shot .wl-text em .w { color: var(--gold); }

/* the sticky TOC steps aside while the pool photo is full screen */
.toc { transition: opacity 0.4s var(--ease); }
.xe-full .toc { opacity: 0; pointer-events: none; }

/* ---------- Design v2: Korean typesetting — break between words, never inside them ---------- */
html[data-lang="ko"] :is(h1, h2, h3, h4, p, li, dd, blockquote, figcaption, .serif-lead, .cover-lead, .hero-title, .hs-lead, .wl-text, .muted) { word-break: keep-all; overflow-wrap: anywhere; }
:is(h1, h2, h3, .serif-head, .cover-lead, .hero-title) { text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- 中文 (data-lang="zh"): a .zh span shows where it exists, otherwise the .en text ---------- */
.zh { display: none; }
html[data-lang="zh"] .ko { display: none !important; }
html[data-lang="zh"] .zh { display: inline; }
html[data-lang="zh"] .en:has(+ .zh) { display: none !important; }
html[data-lang="zh"] body { font-family: "Inter Tight", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
html[data-lang="zh"] :is(.serif, .serif-head, .serif-lead, .hero-title, .fam-title, .join-title, .vb-title, .cover-lead) .zh { font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif; font-style: normal; letter-spacing: 0; }
html[data-lang="zh"] :is(h1, h2, h3, p, li) .zh { word-break: normal; line-break: strict; }
html[data-lang="zh"] .hero-title { font-size: clamp(34px, 5vw, 78px); line-height: 1.22; }
html[data-lang="zh"] .block-head .serif-head, html[data-lang="zh"] .split .serif-head { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.3; }
html[data-lang="zh"] :is(.join-title, .fam-title, .vb-title) { line-height: 1.2; }
html[data-lang="zh"] .serif-lead { font-size: clamp(20px, 2.3vw, 30px); line-height: 1.4; }
