/* ==========================================================================
   Golden Bay — sub-page components & motion layer
   (cover chapters, sticky TOC, venue cards, tables, board, curtain)
   Motion reference: Shopify Editions screen recording — full-bleed artwork
   chapters with the giant title gliding over the image while scrolling.
   ========================================================================== */

/* ---------- Lenis smooth scroll ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Page transition curtain ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink);
  display: grid; place-items: center;
  /* Parked above the viewport; it only drops when leaving the page, so a slow
     or failed script can never leave the page covered. */
  transform: translateY(-100%);
  pointer-events: none;
}
/* Entering a page: content rises in instead of a cover lifting off */
main, .header { animation: page-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.header { animation-name: page-fade; }
@keyframes page-fade { from { opacity: 0; } to { opacity: 1; } }
.shot main, .shot .header { animation: none; }
.curtain .mark { font-family: var(--font-serif); font-style: italic; font-size: clamp(40px, 6vw, 72px); color: var(--gold); opacity: 0; transition: opacity 0.4s; }
.curtain.is-down { animation: none; transform: translateY(0); transition: transform 0.65s cubic-bezier(0.76, 0, 0.24, 1); pointer-events: all; }
.curtain.is-down .mark { opacity: 1; }
@media (prefers-reduced-motion: reduce) { main, .header { animation: none; } }
.shot .curtain { display: none; }

/* ---------- Cover chapter: sticky artwork + gliding title ---------- */
.cover {
  --p: 0;                       /* 0 → 1 scroll progress, set by motion.js */
  --stage: min(100svh, 1000px);
  position: relative;
  height: calc(var(--stage) * 1.75);
  background: var(--ink);
  color: var(--bone);
}
.cover.cover-sm { height: calc(var(--stage) * 1.35); }
.cover-stage { position: sticky; top: 0; height: var(--stage); overflow: hidden; }
.cover-media { position: absolute; inset: 0; }
.cover-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(calc(1.18 - var(--p) * 0.18)) translateY(calc(var(--p) * -3%));
  will-change: transform;
}
.cover-stage::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgb(0 0 0 / 0.45) 0%, rgb(0 0 0 / 0) 30%),
    linear-gradient(0deg, rgb(0 0 0 / calc(0.55 + var(--p) * 0.3)) 0%, rgb(0 0 0 / 0) 70%);
}
.cover-inner {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding-bottom: clamp(36px, 7vh, 80px);
  transform: translateY(calc((0.35 - var(--p)) * var(--stage) * 0.22));
}
.cover-title {
  margin: 0;
  font-weight: 600;
  font-size: clamp(64px, 13vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.cover-sm .cover-title { font-size: clamp(52px, 9.8vw, 140px); }
.cover-lead { margin-top: 18px; opacity: calc(0.25 + var(--p) * 2); max-width: 30ch; }
.cover .crumbs { display: flex; gap: 10px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; color: rgb(255 255 255 / 0.75); }
.cover .crumbs a:hover { color: var(--gold-light); }
.cover .crumbs span::before { content: "/"; margin-right: 10px; opacity: 0.5; }
.cover-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.cover-chips > span { border: 1px solid rgb(255 255 255 / 0.35); border-radius: 999px; padding: 6px 13px; font-size: 12.5px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgb(0 0 0 / 0.15); }
.cover-scroll { position: absolute; right: var(--gutter); bottom: 28px; z-index: 2; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; writing-mode: vertical-rl; opacity: calc(0.8 - var(--p)); }
@media (min-width: 1080px) {
  .cover-inner .container { padding-left: calc(min(100vw, var(--container)) * 0.235); }
}
.shot .cover { --p: 0.45; height: var(--stage); }
.shot .cover-stage { position: relative; }

/* ---------- Word-by-word reveal ([data-split]) ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.w > i { display: inline-block; font-style: inherit; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
[data-split].is-in .w > i, .shot .w > i { transform: none; }
html[data-lang="en"] .cover-lead .w > i, html[data-lang="en"] .serif-lead .w > i { font-style: italic; }

/* ---------- Sticky table of contents (left editorial column) ---------- */
.toc {
  position: fixed; z-index: 30;
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.toc.is-visible { opacity: 1; visibility: visible; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: flex; align-items: center; gap: 10px; transition: color 0.3s, opacity 0.3s; }
.toc .bar { width: 14px; height: 1px; background: currentColor; transition: width 0.5s var(--ease); }
.toc a.is-active .bar { width: 34px; }
@media (min-width: 1080px) {
  .toc {
    left: max(var(--gutter), calc((100vw - var(--container)) / 2 + 48px));
    top: 50%; transform: translateY(-50%);
    width: calc(min(100vw, var(--container)) * 0.235 - 96px);
    color: #fff; mix-blend-mode: difference;
  }
  .toc .toc-title { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.6; margin-bottom: 14px; }
  .toc a { font-size: 12.5px; padding: 5px 0; opacity: 0.55; }
  .toc a:hover, .toc a.is-active { opacity: 1; }
  .toc .progress { margin-top: 16px; height: 1px; background: rgb(255 255 255 / 0.25); position: relative; }
  .toc .progress i { position: absolute; inset: 0 auto 0 0; width: calc(var(--toc-p, 0) * 100%); background: #fff; }
}
@media (max-width: 1079px) {
  .toc {
    left: 0; right: 0; top: var(--header-h);
    background: rgb(0 0 0 / 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    color: var(--bone); border-top: 1px solid var(--ink-line);
  }
  .toc .toc-title, .toc .progress { display: none; }
  .toc ol { display: flex; gap: 6px; overflow-x: auto; padding: 8px var(--gutter); scrollbar-width: none; }
  .toc ol::-webkit-scrollbar { display: none; }
  .toc a { white-space: nowrap; font-size: 13px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--ink-line); min-height: 36px; }
  .toc .bar { display: none; }
  .toc a.is-active { background: var(--bone); color: var(--ink); border-color: var(--bone); }
}
.shot .toc { display: none; }

/* ---------- Section anchor offset ---------- */
[data-toc] { scroll-margin-top: 90px; }

/* ---------- Lead paragraph & key facts ---------- */
.lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; max-width: 46ch; margin: 0; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--stone-line); border: 1px solid var(--stone-line); border-radius: var(--radius-card); overflow: hidden; }
.ink .facts { background: var(--ink-line); border-color: var(--ink-line); }
.facts > div { background: var(--stone); padding: 18px; display: grid; gap: 4px; }
.ink .facts > div { background: var(--ink); }
.facts b { font-size: clamp(26px, 3vw, 40px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.facts b sup { font-size: 0.42em; color: var(--gold-deep); vertical-align: top; }
.ink .facts b sup { color: var(--gold); }
.facts > div > span { font-size: 12.5px; opacity: 0.75; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Venue card (image gallery + info) ---------- */
.venues { display: grid; gap: clamp(48px, 6vw, 88px); }
.venue { display: grid; gap: 22px; align-items: start; }
@media (min-width: 900px) {
  .venue { grid-template-columns: 7fr 5fr; gap: 40px; }
  .venue:nth-child(even) .v-media { order: 2; }
}
.v-media { display: grid; gap: 8px; }
.v-main { position: relative; border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 4/3; background: #222; cursor: zoom-in; }
.v-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.v-main:hover img { transform: scale(1.04); }
.v-main .badge { position: absolute; left: 12px; top: 12px; z-index: 1; background: rgb(0 0 0 / 0.65); color: var(--bone); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 6px 12px; border-radius: 999px; font-size: 11.5px; letter-spacing: 0.06em; }
.v-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.v-thumbs button { padding: 0; border: 0; border-radius: 4px; overflow: hidden; aspect-ratio: 4/3; background: #222; opacity: 0.65; transition: opacity 0.3s, transform 0.4s var(--ease); }
.v-thumbs button:hover, .v-thumbs button[aria-pressed="true"] { opacity: 1; transform: translateY(-3px); }
.v-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.v-info { display: grid; gap: 14px; align-content: start; }
.v-info .kicker { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.ink .v-info .kicker { color: var(--gold); }
.v-info h3 { margin: 0; font-size: clamp(26px, 2.8vw, 38px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.v-info h3 small { display: block; margin-top: 6px; font-size: 14px; font-weight: 500; letter-spacing: 0; opacity: 0.6; }
.v-info p { margin: 0; font-size: 14.5px; line-height: 1.6; opacity: 0.85; }
.v-info dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 4px 0 0; font-size: 13.5px; border-top: 1px solid var(--stone-line); padding-top: 14px; }
.ink .v-info dl { border-color: var(--ink-line); }
.v-info dt { opacity: 0.55; }
.v-info dd { margin: 0; }
.v-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags > span { font-size: 12px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--stone-line); }
.ink .tags span { border-color: var(--ink-line); }

/* ---------- Image mosaic / gallery ---------- */
.mosaic { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.mosaic figure { margin: 0; position: relative; border-radius: var(--radius-card); overflow: hidden; background: #222; cursor: zoom-in; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform 1.2s var(--ease); }
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic figcaption { position: absolute; left: 10px; bottom: 10px; font-size: 12px; background: rgb(0 0 0 / 0.6); color: #fff; padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: repeat(6, 1fr); }
  .mosaic figure { grid-column: span 2; }
  .mosaic figure.wide { grid-column: span 4; }
  .mosaic figure.wide img { aspect-ratio: 16/10; height: 100%; }
  .mosaic figure.full { grid-column: span 6; }
  .mosaic figure.full img { aspect-ratio: 21/9; }
  .mosaic figure.half { grid-column: span 3; }
}

/* ---------- Data table → cards on mobile ---------- */
.dtable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dtable th { text-align: left; font-weight: 600; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; padding: 0 12px 12px 0; border-bottom: 1px solid var(--stone-line); }
.dtable td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--stone-line); vertical-align: top; }
.ink .dtable th, .ink .dtable td { border-color: var(--ink-line); }
.dtable td:first-child { font-weight: 600; }
.dtable td small { display: block; font-weight: 400; opacity: 0.6; font-size: 12px; margin-top: 2px; }
.dtable tr { transition: background 0.3s; }
.dtable tbody tr:hover { background: rgb(201 165 92 / 0.08); }
.table-wrap { overflow-x: auto; }
@media (max-width: 767px) {
  .dtable thead { display: none; }
  .dtable, .dtable tbody, .dtable tr, .dtable td { display: block; width: 100%; }
  .dtable tr { padding: 14px 0; border-bottom: 1px solid var(--stone-line); }
  .ink .dtable tr { border-color: var(--ink-line); }
  .dtable td { border: 0; padding: 3px 0; display: grid; grid-template-columns: 38% 1fr; gap: 10px; }
  .dtable td::before { content: attr(data-label); font-size: 11.5px; opacity: 0.55; font-weight: 400; }
  .dtable td:first-child { display: block; font-size: 16px; padding-bottom: 6px; }
  .dtable td:first-child::before { display: none; }
}

/* ---------- Filter chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chips button {
  min-height: 38px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--stone-line); background: transparent; font-size: 13.5px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s;
}
.ink .chips button { border-color: var(--ink-line); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.ink .chips button[aria-pressed="true"] { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.chips button .n { opacity: 0.55; margin-left: 4px; font-size: 12px; }
[data-cat].is-hidden { display: none !important; }

/* ---------- Community board ---------- */
.board { border-top: 1px solid var(--ink-line); }
.post {
  display: grid; grid-template-columns: 1fr; gap: 6px;
  padding: 18px 4px; border-bottom: 1px solid var(--ink-line);
  transition: background 0.3s, padding 0.4s var(--ease);
}
.post:hover { background: rgb(255 255 255 / 0.04); padding-left: 12px; }
.post .b { font-size: 11.5px; color: var(--gold); letter-spacing: 0.04em; }
.post h4 { margin: 0; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.4; }
.post h4 .cm { color: var(--gold); font-size: 13px; margin-left: 6px; }
.post .meta { display: flex; gap: 14px; font-size: 12px; opacity: 0.55; }
@media (min-width: 900px) {
  .post { grid-template-columns: 110px 1fr 120px 70px 70px; align-items: center; gap: 18px; }
  .post .meta { display: contents; }
  .post .meta span:nth-child(3) { text-align: right; }
}
.board-head { display: none; }
@media (min-width: 900px) {
  .board-head { display: grid; grid-template-columns: 110px 1fr 120px 70px 70px; gap: 18px; padding: 0 4px 10px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.5; }
}

/* ---------- Promo cards ---------- */
.promos { display: grid; gap: 14px; }
@media (min-width: 900px) { .promos { grid-template-columns: repeat(3, 1fr); } }
.promo {
  position: relative; overflow: hidden;
  border-radius: var(--radius-card);
  padding: 24px; min-height: 230px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  background: var(--ink-soft); border: 1px solid var(--ink-line); color: var(--bone);
  transition: transform 0.6s var(--ease), border-color 0.4s;
}
.promo h4.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 24px; line-height: 1.25; }
html[data-lang="ko"] .promo h4.serif { font-style: normal; font-size: 19px; line-height: 1.5; }
.promo:hover { transform: translateY(-6px); border-color: #c9a55c88; }
.promo .when { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.promo h4 { margin: 0; font-size: 21px; letter-spacing: -0.02em; font-weight: 600; line-height: 1.25; }
.promo p { margin: 0; font-size: 13.5px; opacity: 0.75; }
.promo.gold { background: linear-gradient(150deg, #e6cf9a, #c9a55c 55%, #8c6d2c); color: var(--ink); border: 0; }
.promo.gold .when { color: var(--ink); opacity: 0.7; }

/* ---------- Steps ---------- */
.steps { counter-reset: s; display: grid; gap: 0; }
.steps li { list-style: none; counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--stone-line); }
.ink .steps li { border-color: var(--ink-line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-serif); font-style: italic; font-size: 28px; line-height: 1; color: var(--gold-deep); }
.ink .steps li::before { color: var(--gold); }
.steps b { display: block; font-size: 15px; margin-bottom: 3px; }
.steps b + span { font-size: 13.5px; opacity: 0.8; }
.steps { padding: 0; margin: 0; }

/* ---------- Phrasebook ---------- */
.phrases { display: grid; gap: 10px; }
@media (min-width: 700px) { .phrases { grid-template-columns: repeat(2, 1fr); } }
.phrase { background: var(--stone-soft); border-radius: var(--radius-card); padding: 16px 18px; display: grid; gap: 4px; transition: transform 0.4s var(--ease), background 0.3s; }
.phrase:hover { transform: translateY(-3px); background: #fff; }
.phrase .vi { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.phrase .pr { font-size: 13px; color: var(--gold-deep); }
.phrase .mean { font-size: 13px; opacity: 0.75; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--ink-line); padding: 18px 0; }
.stone .marquee { border-color: var(--stone-line); }
.marquee-track { display: inline-flex; gap: 48px; animation: marquee 38s linear infinite; padding-left: 48px; }
.marquee-track span { font-size: clamp(22px, 3vw, 40px); font-weight: 600; letter-spacing: -0.03em; }
.marquee-track span.serif { font-weight: 400; color: var(--gold); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Next-page band ---------- */
.next-page { display: block; padding: clamp(80px, 12vw, 160px) 0; background: var(--stone); color: var(--ink); overflow: hidden; }
.next-page .label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; }
.next-page .t { display: block; font-size: clamp(64px, 12vw, 180px); font-weight: 600; letter-spacing: -0.045em; line-height: 0.9; transition: transform 0.8s var(--ease), color 0.4s; }
.next-page:hover .t { transform: translateX(24px); color: var(--gold-deep); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgb(0 0 0 / 0.92); display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 4px; transform: scale(0.96); transition: transform 0.6s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox p { color: var(--bone); font-size: 13px; margin: 12px 0 0; text-align: center; opacity: 0.75; }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.3); background: transparent; color: #fff; font-size: 22px; }

/* ---------- Tilt cards (desktop pointer) ---------- */
.tilt { transform-style: preserve-3d; transition: transform 0.6s var(--ease); }

/* ---------- Note / disclaimer ---------- */
.note { font-size: 12.5px; opacity: 0.65; margin: 18px 0 0; max-width: 70ch; }
.exclude-note { border-left: 2px solid var(--gold); padding: 6px 0 6px 14px; font-size: 13px; opacity: 0.8; }

/* ---------- Header: current page ---------- */
.nav a[aria-current="page"] { opacity: 1; color: var(--gold-light); }
.mobile-menu a[aria-current="page"] { color: var(--gold); }

/* ---------- Spacing helpers ---------- */
.mt-s { margin-top: 16px; } .mt-m { margin-top: clamp(32px, 4vw, 56px); } .mt-l { margin-top: clamp(56px, 7vw, 96px); }
.grid-2 { display: grid; gap: 14px; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* ==========================================================================
   v3 — hero slideshow, photo strip, hover motion, custom cursor, music
   ========================================================================== */

/* ---------- Hero landmark slideshow ---------- */
.hero-slides .hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-slides .hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slides .hero-slide img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 50%; }
.hero-slides .hero-slide.is-active img { animation: kenburns 8s linear both; }
.hero-slides .hero-slide:nth-child(even).is-active img { animation-name: kenburns-alt; }
@keyframes kenburns { from { transform: scale(1.14) translate(-1.5%, 0); } to { transform: scale(1.02) translate(1%, -1%); } }
@keyframes kenburns-alt { from { transform: scale(1.02) translate(1%, 1%); } to { transform: scale(1.14) translate(-1%, -1.5%); } }
.hero-slides figcaption {
  /* the slide box overhangs the hero by 6% top & bottom (parallax room) — compensate */
  position: absolute; left: var(--gutter); top: calc(5.4% + var(--header-h) + 20px); z-index: 3;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #fff;
  opacity: 0; transform: translateY(10px); transition: opacity 0.8s 0.5s, transform 0.8s 0.5s var(--ease);
}
.hero-slides figcaption::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.hero-slides .is-active figcaption { opacity: 1; transform: none; }
@media (min-width: 1080px) { .hero-slides figcaption { left: max(var(--gutter), calc((100vw - var(--container)) / 2 + 48px)); } }
.hero-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 14px; z-index: 3; display: flex; gap: 6px; }
.hero-progress button { flex: 1; height: 18px; padding: 8px 0; border: 0; background: transparent; cursor: pointer; }
.hero-progress button i { display: block; height: 2px; background: rgb(255 255 255 / 0.3); position: relative; overflow: hidden; border-radius: 2px; }
.hero-progress button i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.hero-progress button.is-done i::after { transform: scaleX(1); }
.hero-progress button.is-active i::after { animation: progress var(--dur, 6.5s) linear both; }
@keyframes progress { to { transform: scaleX(1); } }
.hero-inner { padding-bottom: clamp(44px, 7vw, 72px); }
@media (prefers-reduced-motion: reduce) { .hero-slides .hero-slide.is-active img { animation: none; } }

/* ---------- Auto-scrolling photo strip ---------- */
.photo-strip { overflow: hidden; margin-top: clamp(56px, 7vw, 96px); padding: 18px 0; }
.photo-strip-track { display: flex; gap: 14px; width: max-content; animation: strip 70s linear infinite; }
.photo-strip:hover .photo-strip-track { animation-play-state: paused; }
.photo-strip figure { position: relative; margin: 0; width: clamp(220px, 24vw, 340px); aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; flex: none; transition: transform 0.6s var(--ease), box-shadow 0.6s; }
.photo-strip figure:nth-child(odd) { rotate: -1.2deg; }
.photo-strip figure:nth-child(even) { rotate: 1.2deg; translate: 0 10px; }
.photo-strip figure:hover { transform: scale(1.06); rotate: 0deg; z-index: 2; box-shadow: 0 24px 50px rgb(0 0 0 / 0.5); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; }
.photo-strip figcaption { position: absolute; left: 10px; bottom: 10px; font-size: 12px; color: #fff; background: rgb(0 0 0 / 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 5px 10px; border-radius: 999px; }
@keyframes strip { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .photo-strip-track { animation: none; } .photo-strip { overflow-x: auto; } }
.shot .photo-strip-track { animation: none; }

/* ---------- Room cards with real photos ---------- */
.room-card.has-photo::before { display: none; }
.room-card .rc-photo { position: absolute; left: 8px; right: 8px; top: 8px; height: 56%; width: calc(100% - 16px); object-fit: cover; border-radius: 3px; }
.room-card.has-photo::after { content: ""; position: absolute; left: 8px; right: 8px; top: 8px; height: 56%; border-radius: 3px; background: linear-gradient(180deg, rgb(0 0 0 / 0.35), rgb(0 0 0 / 0) 35%, rgb(0 0 0 / 0) 55%, rgb(0 0 0 / 0.55)); pointer-events: none; }
.room-card.has-photo .tag, .room-card.has-photo .size { color: #fff; z-index: 1; }
.room-card.has-photo .size { text-shadow: 0 2px 18px rgb(0 0 0 / 0.45); }

/* ---------- Hover: characters ripple on headings ---------- */
.wd { display: inline-block; white-space: nowrap; }
.w > i { white-space: nowrap; }
.w { padding-top: 0.22em; margin-top: -0.22em; }
[data-reveal="mask"] { padding-top: 14px; margin-top: -14px; }
.ch { display: inline-block; } /* no will-change: thousands of layers exhaust GPU memory */
.wave:hover .ch { animation: chwave 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) both; animation-delay: calc(var(--c) * 18ms); }
@keyframes chwave {
  0% { transform: none; }
  40% { transform: translateY(-0.14em) rotate(-3deg); color: var(--gold-light); }
  100% { transform: none; }
}
.stone .wave:hover .ch { animation-name: chwave-dark; }
@keyframes chwave-dark {
  0% { transform: none; }
  40% { transform: translateY(-0.14em) rotate(-3deg); color: var(--gold-deep); }
  100% { transform: none; }
}

/* ---------- Hover: images drift toward the pointer ---------- */
.pan img { transition: translate 0.7s var(--ease), scale 0.9s var(--ease), filter 0.6s; }
.pan:hover img { scale: 1.07; translate: calc(var(--mx, 0) * -14px) calc(var(--my, 0) * -14px); filter: saturate(1.12); }
.tile.shade:hover > img, .mosaic figure:hover img, .v-main:hover img { transform: none; }

/* ---------- Hover: rows, chips, tags, phrases ---------- */
.flist > div, .steps li, .post, .dtable tbody tr, .chapter-meta span { transition: transform 0.45s var(--ease), color 0.3s; }
.flist > div:hover, .steps li:hover { transform: translateX(8px); }
.flist > div:hover h5, .steps li:hover b { color: var(--gold-deep); }
.ink .flist > div:hover h5, .ink .steps li:hover b { color: var(--gold-light); }
.dtable tbody tr:hover { transform: translateX(6px); }
.tags > span, .games span, .cover-chips > span, .chips button { transition: transform 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s; }
.tags > span:hover, .games span:hover, .cover-chips > span:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--gold); }
.chips button:hover { transform: translateY(-2px); }
.lead, .block-head p { transition: color 0.4s; }
.block-head p:hover { color: inherit; }
.hero-badge { transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.hero-badge:hover { transform: rotate(0deg) scale(1.05); }
.logo:hover em { color: var(--gold-light); }

/* ---------- Custom cursor (fine pointers) ---------- */
.cursor-ring, .cursor-dot { position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity 0.3s; }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1.5px solid rgb(201 165 92 / 0.85);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink); text-transform: uppercase;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.35s, border-color 0.35s, opacity 0.3s;
}
.cursor-ring span { opacity: 0; transition: opacity 0.2s; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold); }
.has-cursor .cursor-ring, .has-cursor .cursor-dot { opacity: 1; }
.cursor-ring.is-link { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgb(201 165 92 / 0.18); }
.cursor-ring.is-view { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: var(--gold); border-color: var(--gold); }
.cursor-ring.is-view span { opacity: 1; }
.cursor-ring.is-down { scale: 0.85; }
@media (hover: none), (pointer: coarse) { .cursor-ring, .cursor-dot { display: none; } }
.shot .cursor-ring, .shot .cursor-dot { display: none; }

/* ---------- Ambient music toggle ---------- */
.fab .f-music { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: var(--gold); display: grid; place-items: center; box-shadow: 0 10px 30px rgb(0 0 0 / 0.35); border: 1px solid #c9a55c66; cursor: pointer; transition: transform 0.3s var(--ease); }
.fab .f-music:hover { transform: scale(1.06); }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.eq i { display: block; width: 3px; height: 4px; background: currentColor; border-radius: 2px; transition: height 0.3s; }
.f-music[aria-pressed="true"] .eq i { animation: eq 1.1s ease-in-out infinite; }
.f-music[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -0.4s; }
.f-music[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -0.7s; }
.f-music[aria-pressed="true"] .eq i:nth-child(4) { animation-delay: -0.2s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 18px; } }
.music-toast {
  position: fixed; right: 72px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 46;
  background: rgb(0 0 0 / 0.82); color: var(--bone); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid #c9a55c55; border-radius: 999px; padding: 10px 16px; font-size: 12.5px;
  opacity: 0; transform: translateX(10px); transition: opacity 0.5s, transform 0.5s var(--ease); pointer-events: none;
}
.music-toast.is-on { opacity: 1; transform: none; }

/* ---------- v4: top-of-page text raised by 25% of the screen ---------- */
.hero-inner { bottom: 25%; }
.cover-inner { padding-bottom: calc(clamp(36px, 7vh, 80px) + var(--stage) * 0.25); }
/* the tagline starts readable instead of faint, then sharpens while scrolling */
.cover-lead { opacity: calc(0.75 + var(--p) * 0.5); }
.cover-lead, .hero-sub, .cover .crumbs, .hero-slides figcaption { text-shadow: 0 1px 2px rgb(0 0 0 / 0.55), 0 4px 24px rgb(0 0 0 / 0.45); }

/* ---------- Info / legal pages ---------- */
.prose { max-width: 72ch; font-size: 15px; line-height: 1.75; }
.prose > * + * { margin-top: 1em; }
.prose h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin: 2em 0 0.4em; }
.prose h3:first-child { margin-top: 0; }
.prose p, .prose li { margin: 0; }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: 0.45em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--gold-deep); }
.ink .prose a:hover { color: var(--gold); }
.prose strong { font-weight: 600; }
.prose .meta-line { font-size: 13px; opacity: 0.65; }
.prose table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--stone-line); }
.ink .prose th, .ink .prose td { border-color: var(--ink-line); }
.prose th { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; font-weight: 600; }
.prose .table-wrap { overflow-x: auto; }
mark.todo { background: rgb(201 165 92 / 0.25); color: inherit; padding: 1px 6px; border-radius: 4px; border: 1px dashed var(--gold); font-size: 0.92em; }
.legal-links a { text-decoration: underline; text-underline-offset: 2px; }
.map-static { border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 16/9; background: #cfcdc3; }
.map-static iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 767px) { .map-static { aspect-ratio: 4/5; } }

/* ---------- Forms (quote / review) ---------- */
.gb-form { display: grid; gap: 18px; max-width: 880px; background: var(--paper); color: var(--ink); border-radius: var(--radius-card); padding: clamp(20px, 3vw, 36px); box-shadow: 0 30px 60px rgb(0 0 0 / 0.12); }
.f-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .f-grid { grid-template-columns: 1fr 1fr; } }
.f-field { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.f-field > span { color: #3d3b36; }
.f-wide { grid-column: 1 / -1; }
.gb-form input:not([type="checkbox"]):not([type="radio"]), .gb-form select, .gb-form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #cfccc1; border-radius: 6px;
  background: #fff; color: var(--ink); font: inherit; font-size: 16px; /* 16px stops iOS zoom */
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gb-form textarea { resize: vertical; min-height: 110px; }
.gb-form input:focus, .gb-form select:focus, .gb-form textarea:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgb(201 165 92 / 0.25); }
.gb-form.was-validated :invalid { border-color: #b3261e; }
.f-needs { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.f-needs legend { font-size: 13px; font-weight: 500; margin-bottom: 8px; color: #3d3b36; }
.f-check { position: relative; }
.f-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.f-check > span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #cfccc1; background: #fff; font-size: 13.5px; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.f-check input:checked + span { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.f-check input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.f-consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 12.5px; line-height: 1.55; color: #3d3b36; }
.f-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold-deep); }
.f-consent a { text-decoration: underline; }
.f-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.f-submit { min-height: 50px; padding: 0 28px; font-size: 15px; border: 0; }
.f-submit:disabled { opacity: 0.6; cursor: wait; }
.f-note { font-size: 12.5px; color: #5c5a54; }
.f-status { font-size: 14px; min-height: 1.2em; }
.f-status.is-ok { color: #1e6b3a; font-weight: 600; }
.f-status.is-err { color: #b3261e; }
.f-hp { position: absolute; left: -9999px; }
.f-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.f-stars input { position: absolute; opacity: 0; }
.f-stars label { font-size: 30px; line-height: 1; color: #cfccc1; cursor: pointer; padding: 4px; transition: color 0.15s, transform 0.15s; }
.f-stars label:hover, .f-stars label:hover ~ label, .f-stars input:checked ~ label { color: var(--gold); }
.f-stars label:hover { transform: scale(1.15); }
.f-stars input:focus-visible + label { outline: 2px solid var(--gold); border-radius: 4px; }

/* ---------- Tour cards ---------- */
.timeline { list-style: none; margin: 4px 0 0; padding: 0; border-left: 1px solid var(--stone-line); }
.ink .timeline { border-color: var(--ink-line); }
.timeline li { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 0 0 14px 18px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.timeline time { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--gold-deep); }
.timeline b { display: block; font-size: 14.5px; font-weight: 600; }
.timeline div > span { display: block; font-size: 13px; opacity: 0.75; margin-top: 2px; }
@media (max-width: 480px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }
.price-box { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius-card); background: var(--ink); color: var(--bone); }
.price-box > div > span { display: block; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; }
.price-box b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--gold-light); }
.ref { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; opacity: 0.75; }
.ref li::before { content: "참고 · "; color: var(--gold-deep); font-weight: 600; }
html[data-lang="en"] .ref li::before { content: "Ref · "; }

/* ---------- Reviews ---------- */
.reviews-wall { columns: 1; column-gap: 14px; }
@media (min-width: 700px) { .reviews-wall { columns: 2; } }
@media (min-width: 1180px) { .reviews-wall { columns: 3; } }
.review { break-inside: avoid; margin: 0 0 14px; padding: 22px; border-radius: var(--radius-card); background: var(--ink-soft); border: 1px solid var(--ink-line); color: var(--bone); display: grid; gap: 14px; }
.review blockquote { margin: 0; font-family: var(--font-serif); font-size: 21px; line-height: 1.35; }
html[data-lang="en"] .review blockquote { font-style: italic; }
html[data-lang="ko"] .review blockquote { font-size: 17px; line-height: 1.6; }
.review blockquote::before { content: "“"; color: var(--gold); }
.review blockquote::after { content: "”"; color: var(--gold); }
.review .tr { font-family: var(--font-sans); font-style: normal; font-size: 11px; opacity: 0.55; }
.review figcaption { display: grid; gap: 2px; font-size: 12.5px; }
.review figcaption b { font-size: 14px; }
.review figcaption > span { opacity: 0.6; }
.review .r-src a { text-decoration: underline; }
.r-stars { color: var(--gold); letter-spacing: 2px; font-size: 15px; }
