/* 형제섬농원 — sunset over the tidal flat */
:root {
  --ink: #1c2630;        /* 해질녘 갯벌 */
  --ink-2: #2b3846;
  --ember: #e2603a;      /* 노을 */
  --apricot: #f2a86b;    /* 잔광 */
  --mist: #e4ecea;       /* 해무 */
  --paper: #ffffff;
  --pine: #3f5e46;       /* 농원 */
  --line: rgba(28, 38, 48, .14);
  --muted: #5b6875;

  /* 노을하나 → 노을아홉 */
  --r1: #f4b66a; --r2: #f29a5a; --r3: #ec7e4c; --r5: #e2603a;
  --r6: #c94a45; --r7: #a23c52; --r8: #73365c; --r9: #47304f;

  --display: 'Hahmlet', 'Noto Serif KR', serif;
  --body: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', sans-serif;
  --mono: 'IBM Plex Mono', 'IBM Plex Sans KR', sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --head: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--head); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.75 var(--body); word-break: keep-all; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ember); display: inline-flex; gap: 10px; align-items: center; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.h-xl { font: 300 clamp(40px, 7.4vw, 104px)/1.06 var(--display); letter-spacing: -.035em; margin: 0; }
.h-l { font: 400 clamp(30px, 4.2vw, 54px)/1.18 var(--display); letter-spacing: -.03em; margin: 16px 0 0; }
.h-m { font: 500 clamp(21px, 2vw, 26px)/1.35 var(--display); letter-spacing: -.02em; margin: 0; }
.lead { font-size: clamp(16px, 1.3vw, 18px); color: var(--muted); max-width: 40em; }
.num { font-family: var(--mono); font-feature-settings: 'tnum'; }

/* ---------- header ---------- */
.site-head { position: fixed; inset: 0 0 auto; height: var(--head); z-index: 50; color: #fff; transition: background .35s, color .35s, box-shadow .35s; }
.site-head.solid, body:not(.has-hero) .site-head { background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.site-head .wrap { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.05; }
.brand b { font: 600 22px var(--display); letter-spacing: -.02em; }
.brand small { font: 500 9.5px var(--mono); letter-spacing: .24em; opacity: .75; margin-top: 4px; }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 14px; border-radius: 99px; transition: background .2s; }
.nav a:hover, .nav a[aria-current] { background: rgba(127, 127, 127, .16); }
.call { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 99px; background: var(--ember); color: #fff; font: 600 14px var(--body); white-space: nowrap; }
.call:hover { background: #c9502d; }
.head-tel { display: none; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 1.5px; background: currentColor; margin: 6px auto; transition: transform .3s; }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .site-head .call { display: none; }
  .head-tel { display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; color: inherit; }
  .head-tel svg { width: 22px; height: 22px; }
  .head-tel + .menu-btn { margin-left: 4px; }
  .nav { position: fixed; inset: var(--head) 0 auto; flex-direction: column; background: var(--paper); color: var(--ink); padding: 12px var(--gutter) 24px; gap: 0; box-shadow: 0 12px 30px rgba(0,0,0,.12); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .25s; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav-open .site-head { background: var(--paper); color: var(--ink); }
}

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; color: #fff; overflow: hidden; background: var(--ink) center/cover; }
.hero-video { position: absolute; inset: 0; pointer-events: none; }
.hero-video iframe { position: absolute; top: 50%; left: 50%; width: max(100vw, 177.78svh); height: max(56.25vw, 100svh); transform: translate(-50%, -50%); border: 0; opacity: 0; transition: opacity 1.2s; }
.hero-video iframe.on { opacity: 1; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,38,48,.45) 0%, rgba(28,38,48,0) 28%, rgba(28,38,48,.15) 55%, rgba(28,38,48,.82) 100%); }
.hero-copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(40px, 9vh, 96px); }
.hero-copy .h-xl em { font-style: normal; color: var(--apricot); }
.hero-copy p { max-width: 30em; margin: 22px 0 30px; font-size: clamp(15px, 1.25vw, 18px); color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 99px; text-decoration: none; font-weight: 500; border: 1px solid currentColor; transition: background .2s, color .2s; cursor: pointer; background: none; }
.btn-fill { background: var(--ember); border-color: var(--ember); color: #fff; }
.btn-fill:hover { background: #c9502d; border-color: #c9502d; }
.btn-line:hover { background: #fff; color: var(--ink); }
.btn-dark { border-color: var(--ink); }
.btn-dark:hover { background: var(--ink); color: #fff; }
.tide { position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(40px, 9vh, 96px); font: 500 12px/1.8 var(--mono); letter-spacing: .08em; text-align: right; color: rgba(255,255,255,.8); }
.tide b { display: block; font: 300 34px/1 var(--display); letter-spacing: -.02em; color: #fff; margin-bottom: 6px; }
@media (max-width: 760px) { .tide { display: none; } }

/* ---------- sections ---------- */
.sec { padding: clamp(80px, 11vw, 150px) 0; }
.sec-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .lead { margin: 18px 0 0; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; } }
.more { font: 500 14px var(--mono); letter-spacing: .04em; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; white-space: nowrap; }
.more:hover { color: var(--ember); }

/* intro / letter */
.intro { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.intro-photos { position: relative; aspect-ratio: 4 / 4.4; }
.intro-photos img { position: absolute; object-fit: cover; border-radius: 4px; }
.intro-photos img:first-child { inset: 0 18% 16% 0; width: 82%; height: 84%; }
.intro-photos img:last-child { right: 0; bottom: 0; width: 46%; height: 44%; border: 8px solid var(--paper); }
.letter p { margin: 0 0 1.1em; color: var(--ink-2); }
.letter .sign { font: 400 15px var(--display); color: var(--muted); margin-top: 28px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 36px; }
.facts div { padding: 18px 0 0; }
.facts b { display: block; font: 300 32px/1.1 var(--display); letter-spacing: -.02em; }
.facts span { font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }

/* story tint (also used by sub-page sections and the contact block) */
.story { background: var(--mist); }
.story-k { font: 500 13px var(--mono); letter-spacing: .14em; color: var(--ember); }

/* 특별함 — sticky photo, steps scroll past, section tint follows the active step */
.feature { --tone: #eaf4f6; background: linear-gradient(180deg, var(--paper) 0, var(--tone) 18%, var(--tone) 82%, var(--paper) 100%); }
@property --tone { syntax: "<color>"; inherits: true; initial-value: #eaf4f6; }
.feature { transition: --tone 1s ease; }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.feature-media { position: sticky; top: calc(var(--head) + 6vh); height: calc(100vh - var(--head) - 12vh); display: flex; flex-direction: column; gap: 18px; }
.feature-frame { position: relative; flex: 1; border-radius: 6px; overflow: hidden; background: var(--ink); box-shadow: 0 30px 60px -30px rgba(28, 38, 48, .45); }
.feature-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transform: scale(1.15); transition: clip-path 1s cubic-bezier(.7,0,.2,1), transform 1.6s cubic-bezier(.2,.7,.2,1); }
.feature-frame img.on { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 1; }
.feature-nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.feature-nav li { flex: 1; font: 500 13px var(--body); color: var(--muted); padding-top: 12px; position: relative; transition: color .4s; }
.feature-nav li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); }
.feature-nav li::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--ember); transition: width .8s cubic-bezier(.2,.7,.2,1); }
.feature-nav li.on { color: var(--ink); }
.feature-nav li.on::after { width: 100%; }
.feature-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: .22; transform: translateX(16px); transition: opacity .6s, transform .8s cubic-bezier(.2,.7,.2,1); }
.feature-step.on { opacity: 1; transform: none; }
.feature-step:first-child { min-height: 64vh; justify-content: flex-start; padding-top: 8vh; }
.feature-step .h-m { font-size: clamp(26px, 2.8vw, 38px); margin: 14px 0 18px; }
.feature-step p { color: var(--ink-2); margin: 0; font-size: 17px; max-width: 26em; }
.feature-img { display: none; }
@media (max-width: 860px) {
  .feature-grid { display: block; }
  .feature-media { display: none; }
  .feature-step, .feature-step:first-child { min-height: 0; padding: 0; opacity: 1; transform: none; margin-bottom: 56px; }
  .feature-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; margin-bottom: 20px; }
  .feature-img img { width: 100%; height: 100%; object-fit: cover; }
}

/* ---------- 노을 스펙트럼 (signature) ---------- */
.dusk { background: var(--ink); color: #fff; }
.dusk .lead { color: rgba(255,255,255,.7); }
.spectrum { display: flex; height: clamp(420px, 62vh, 620px); gap: 0; border-radius: 6px; overflow: hidden; }
.band { --c: var(--r1); position: relative; flex: 1 1 0; min-width: 0; background: var(--c); color: #fff; text-decoration: none; overflow: hidden; transition: flex-grow .7s cubic-bezier(.2,.7,.2,1); }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .6s, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, var(--c) 100%); opacity: 0; transition: opacity .6s; mix-blend-mode: multiply; }
.band .bname { position: absolute; z-index: 2; left: 50%; top: 28px; transform: translateX(-50%); writing-mode: vertical-rl; font: 400 clamp(19px, 1.7vw, 24px)/1 var(--display); letter-spacing: .12em; white-space: nowrap; transition: opacity .3s; }
.band .binfo { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 24px; opacity: 0; transform: translateY(10px); transition: .45s .1s; }
.band .binfo b { font: 400 30px/1.1 var(--display); display: block; }
.band .binfo span { font: 400 13px/1.7 var(--mono); display: block; margin-top: 8px; opacity: .92; }
.band:hover, .band:focus-visible, .spectrum:not(:hover):not(:focus-within) .band.is-default { flex-grow: 5; }
.band:hover img, .band:focus-visible img, .spectrum:not(:hover):not(:focus-within) .band.is-default img { opacity: 1; transform: none; }
.band:hover::after, .band:focus-visible::after, .spectrum:not(:hover):not(:focus-within) .band.is-default::after { opacity: 1; }
.band:hover .bname, .band:focus-visible .bname, .spectrum:not(:hover):not(:focus-within) .band.is-default .bname { opacity: 0; }
.band:hover .binfo, .band:focus-visible .binfo, .spectrum:not(:hover):not(:focus-within) .band.is-default .binfo { opacity: 1; transform: none; }
.band:focus-visible { outline-offset: -4px; outline-color: #fff; }
/* touch screens: the first tap opens a band (.open), the second follows the link */
.band.open { flex-grow: 5; }
.band.open img { opacity: 1; transform: none; }
.band.open::after { opacity: 1; }
.band.open .bname { opacity: 0; }
.band.open .binfo { opacity: 1; transform: none; }
/* "tap again to open the room" — shown on the opened room on touch screens, where nothing else says the photo is a link */
.band .bhint { display: none; position: absolute; z-index: 2; top: 14px; right: 14px; padding: 6px 12px; border-radius: 99px; background: rgba(28, 38, 48, .72); backdrop-filter: blur(4px); color: #fff; font: 600 12.5px/1.3 var(--body); opacity: 0; transform: translateY(-6px); transition: opacity .4s .2s, transform .4s .2s; }
@media (hover: none) { .band .bhint { display: block; } }
.band.open .bhint { opacity: 1; transform: none; }
.spectrum-scale { display: flex; justify-content: space-between; margin-top: 14px; font: 500 12px var(--mono); letter-spacing: .1em; color: rgba(255,255,255,.55); }
@media (max-width: 760px) {
  .spectrum { height: auto; flex-direction: column; border-radius: 4px; }
  .band { flex: none; height: 76px; }
  .band .bname { writing-mode: horizontal-tb; left: 20px; top: 50%; transform: translateY(-50%); }
  .band:hover, .band:focus-visible, .band.open, .spectrum:not(:hover):not(:focus-within) .band.is-default { height: 300px; }
}

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: clamp(14px, 2vw, 24px); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.card { text-align: left; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; display: block; }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--mist); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-img img { transform: scale(1.05); }
.card h3 { font: 500 19px/1.35 var(--display); margin: 16px 0 6px; letter-spacing: -.01em; }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .count { font: 500 12px var(--mono); color: var(--ember); }
.enjoy-lead .card-img { aspect-ratio: auto; height: 100%; }
.enjoy-grid { grid-template-columns: repeat(4, 1fr); }
.enjoy-grid .card:first-child { grid-column: span 2; grid-row: span 2; }
.enjoy-grid .card:first-child .card-img { aspect-ratio: auto; height: calc(100% - 92px); min-height: 280px; }
.enjoy-grid .card:first-child h3 { font-size: 24px; }
@media (max-width: 980px) { .enjoy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .enjoy-grid { grid-template-columns: 1fr; } .enjoy-grid .card:first-child { grid-column: auto; grid-row: auto; } .enjoy-grid .card:first-child .card-img { height: auto; aspect-ratio: 4/3; min-height: 0; } }

/* facilities rail */
.farm { background: var(--pine); color: #fff; }
.farm .lead { color: rgba(255,255,255,.75); }
.farm .eyebrow { color: var(--apricot); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 22%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.4) transparent; }
.rail > * { scroll-snap-align: start; }
.farm .card p { color: rgba(255,255,255,.72); }
.farm .card-img { background: rgba(255,255,255,.08); }
@media (max-width: 760px) { .rail { grid-auto-columns: 78%; } }

/* seasons */
.seasons { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 24px); }
.season { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; color: #fff; text-decoration: none; }
.season img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.season:hover img { transform: scale(1.05); }
.season::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(28,38,48,.75)); }
.season div { position: absolute; z-index: 1; left: 28px; bottom: 24px; }
.season b { font: 400 clamp(26px, 3vw, 40px)/1.1 var(--display); display: block; }
.season span { font: 500 12px var(--mono); letter-spacing: .12em; opacity: .85; }
.video { aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #000; margin-top: clamp(14px, 2vw, 24px); }
.video iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .seasons { grid-template-columns: 1fr; } }

/* contact strip */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 14px 28px; border-top: 1px solid var(--line); padding-top: 24px; }
.contact dt { font: 500 12px/2 var(--mono); letter-spacing: .1em; color: var(--muted); }
.contact dd { margin: 0; }
.big-phone { font: 300 clamp(36px, 5vw, 64px)/1 var(--display); letter-spacing: -.03em; text-decoration: none; display: inline-block; margin: 22px 0 10px; }
.big-phone:hover { color: var(--ember); }
.map { aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--mist); }
.map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- sub pages ---------- */
.page-top { padding: calc(var(--head) + clamp(48px, 8vw, 110px)) 0 clamp(40px, 6vw, 72px); background: var(--mist); }
.page-top .h-xl { font-size: clamp(40px, 6vw, 84px); }
.page-top .lead { margin-top: 20px; }
.tabs { position: sticky; top: var(--head); z-index: 20; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.tabs .wrap { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.tabs a, .tabs button { flex: none; text-decoration: none; padding: 8px 16px; border-radius: 99px; font-size: 14.5px; font-weight: 500; border: 1px solid var(--line); background: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.tabs a:hover, .tabs button:hover { border-color: var(--ink); }
.tabs [aria-selected='true'], .tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }

/* room detail */
.room { --c: var(--r1); padding: clamp(56px, 8vw, 104px) 0; border-bottom: 1px solid var(--line); }
.room-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.room-stage { position: relative; aspect-ratio: 3 / 2; border-radius: 4px; overflow: hidden; background: var(--mist); cursor: zoom-in; }
.room-stage img { width: 100%; height: 100%; object-fit: cover; }
.stage-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer; font-size: 20px; display: grid; place-items: center; }
.stage-nav.prev { left: 14px; } .stage-nav.next { right: 14px; }
.stage-count { position: absolute; right: 14px; bottom: 14px; background: rgba(28,38,48,.7); color: #fff; padding: 4px 10px; border-radius: 99px; font: 500 12px var(--mono); }
.thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; padding-bottom: 6px; scrollbar-width: thin; }
.thumbs button { flex: none; width: 84px; aspect-ratio: 3/2; padding: 0; border: 2px solid transparent; border-radius: 3px; overflow: hidden; cursor: pointer; opacity: .6; background: var(--mist); }
.thumbs button[aria-current='true'] { border-color: var(--c); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.room-title { display: flex; align-items: center; gap: 14px; }
.room-title i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
.room-title h2 { font: 400 clamp(32px, 3.6vw, 46px)/1.1 var(--display); margin: 0; letter-spacing: -.03em; }
.spec { margin: 28px 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; font-size: 15px; }
.spec dt { font: 500 12px/2.1 var(--mono); letter-spacing: .08em; color: var(--muted); }
.spec dd { margin: 0; }
.price { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.price th, .price td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: right; }
.price th:first-child, .price td:first-child { text-align: left; }
.price thead th { font: 500 12px var(--mono); color: var(--muted); letter-spacing: .06em; border-bottom-color: var(--ink); }
.price td { font-family: var(--mono); font-feature-settings: 'tnum'; }
.price td:first-child { font-family: var(--body); font-weight: 500; }
.note { font-size: 13px; color: var(--muted); margin-top: 12px; }
@media (max-width: 900px) { .room-grid { grid-template-columns: minmax(0, 1fr); } }
/* phones: edge-to-edge photo you can swipe, smaller controls and thumbnails */
@media (max-width: 640px) {
  .room-stage { margin-inline: calc(var(--gutter) * -1); border-radius: 0; aspect-ratio: 4 / 3; touch-action: pan-y; }
  .stage-nav { width: 38px; height: 38px; font-size: 18px; }
  .stage-nav.prev { left: 10px; } .stage-nav.next { right: 10px; }
  .stage-count { right: 10px; bottom: 10px; }
  .thumbs button { width: 64px; }
}

/* tables (guide) */
.table-wrap { overflow-x: auto; }
.rates { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
.rates th, .rates td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.rates th:first-child, .rates td:first-child, .rates td:nth-child(2), .rates th:nth-child(2) { text-align: left; }
.rates thead th { font: 500 12px var(--mono); color: var(--muted); letter-spacing: .06em; border-bottom: 1px solid var(--ink); }
.rates td { font-family: var(--mono); font-feature-settings: 'tnum'; }
.rates td:first-child, .rates td:nth-child(2) { font-family: var(--body); }
.rates td:first-child { font-weight: 500; display: flex; align-items: center; gap: 10px; }
.rates .peak { color: var(--ember); }
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 56px) clamp(28px, 5vw, 80px); }
.rules h3 { font: 500 22px var(--display); margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.rules ul { margin: 0; padding: 0; list-style: none; }
.rules li { padding: 8px 0 8px 18px; position: relative; font-size: 15px; color: var(--ink-2); }
.rules li::before { content: ''; position: absolute; left: 0; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--apricot); }
.refund { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 6px 0 14px; }
.refund div { background: var(--mist); border-radius: 4px; padding: 12px; text-align: center; }
.refund b { display: block; font: 500 22px var(--mono); }
.refund span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } }
.directions { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); margin-top: 48px; }
.directions h3 { font: 500 20px var(--display); margin: 0 0 12px; }
.directions table { width: 100%; border-collapse: collapse; font-size: 15px; }
.directions td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.directions td:last-child { text-align: right; font-family: var(--mono); font-size: 13.5px; color: var(--muted); }
.directions ol { padding-left: 20px; margin: 0; }
.directions li { margin-bottom: 10px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) { .directions { grid-template-columns: 1fr; } }
.notice { border-top: 1px solid var(--ink); }
.notice details { border-bottom: 1px solid var(--line); }
.notice summary { cursor: pointer; padding: 18px 0; font: 500 17px var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.notice summary::after { content: '+'; font: 300 22px/1 var(--mono); color: var(--ember); }
.notice details[open] summary::after { content: '–'; }
.notice p { margin: 0 0 20px; color: var(--ink-2); max-width: 52em; }

/* gallery */
.masonry { columns: 4 240px; column-gap: 12px; }
.masonry button { display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; background: var(--mist); cursor: zoom-in; border-radius: 3px; overflow: hidden; break-inside: avoid; }
.masonry img { width: 100%; height: auto; transition: opacity .3s, transform .9s; }
.masonry button:hover img { transform: scale(1.03); }
.post-grid .card-img { aspect-ratio: 1; }
.panel[hidden] { display: none; }
.empty { color: var(--muted); }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(16, 22, 28, .96); color: #fff; display: grid; grid-template-rows: auto 1fr auto; opacity: 0; pointer-events: none; transition: opacity .25s; }
.lb.open { opacity: 1; pointer-events: auto; }
.lb-top { display: flex; align-items: center; gap: 16px; padding: 14px var(--gutter); }
.lb-top h2 { font: 400 18px var(--display); margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-top span { font: 500 13px var(--mono); opacity: .7; }
.lb button { background: none; border: 0; color: #fff; cursor: pointer; }
.lb-close { font-size: 30px; line-height: 1; width: 44px; height: 44px; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 64px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 28px; border-radius: 50%; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.12); }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lb-text { padding: 14px var(--gutter) 22px; max-width: 60em; margin: 0 auto; text-align: center; color: rgba(255,255,255,.8); font-size: 15px; }
.lb-text:empty { display: none; }
@media (max-width: 640px) { .lb-stage { padding: 0 8px; } .lb-prev, .lb-next { background: rgba(0,0,0,.4); } }

/* ---------- footer & floating ---------- */
.site-foot { background: var(--ink); color: rgba(255,255,255,.72); padding: 72px 0 40px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.site-foot .brand { color: #fff; margin-bottom: 18px; }
.site-foot h4 { font: 500 12px var(--mono); letter-spacing: .14em; color: var(--apricot); margin: 0 0 14px; }
.site-foot p { margin: 0 0 6px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: #fff; }
.foot-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font: 400 12px var(--mono); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; opacity: .7; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; } }
.float-call { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--ember); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(226, 96, 58, .4); text-decoration: none; }
.float-call svg { width: 24px; height: 24px; }
.float-call { transition: opacity .3s, transform .3s cubic-bezier(.2,.7,.2,1), visibility .3s; }
.float-call.off { opacity: 0; visibility: hidden; transform: translateY(20px); pointer-events: none; }
.float-call.is-live { width: auto; height: 52px; padding: 0 20px 0 16px; border-radius: 99px; display: flex; gap: 8px; font: 600 15px var(--body); }
.float-call.is-live svg { width: 22px; height: 22px; }

/* ---------- scroll fx ---------- */
.hero-bg { position: absolute; inset: 0; background: var(--ink) center/cover; transform: scale(calc(1 + var(--hp, 0) * .14)) translateY(calc(var(--hp, 0) * 12%)); transform-origin: 50% 40%; will-change: transform; }
.hero-copy, .tide { transform: translateY(calc(var(--hp, 0) * -90px)); opacity: calc(1 - var(--hp, 0) * 1.8); }
.split .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.split .ln > span { display: inline-block; transform: translateY(105%); transition: transform 1s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }
.split.rv, .split.rv.in { opacity: 1; transform: none; }
.split.in .ln > span { transform: none; }
.band.rv { transform: translateY(60px); }
.band.rv.in { transform: none; transition: opacity .8s var(--d), transform 1s cubic-bezier(.2,.7,.2,1) var(--d), flex-grow .7s cubic-bezier(.2,.7,.2,1); }
[data-par] { will-change: transform; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1) var(--d, 0s), transform .9s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .rv { opacity: 1; transform: none; }
  .split .ln > span { transform: none; }
  .hero-bg, .hero-copy, .tide { transform: none !important; opacity: 1 !important; }
  .feature-frame img { transform: none; }
}

/* content loaded from Weegloo */
body.loading main { min-height: 100vh; }
.load-error { margin: 0; padding: calc(var(--head) + 24px) 16px 24px; text-align: center; background: var(--mist); color: var(--ink); font-weight: 500; }
.foot-bottom a { color: inherit; }
.card .card-img:empty { background: linear-gradient(135deg, var(--mist), var(--paper)); }

/* rooms on phones: one room per address (#room5) — room buttons, cover, details, then every photo */
.room-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 20px var(--gutter) 8px; }
.room-picker a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; font: 500 16px var(--display); background: #fff; }
.room-picker a::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.room-picker a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.room-m { padding: 28px 0 0; border-bottom: 0; }
.room-m .room-title { margin-bottom: 18px; }
.room-cover, .room-photos button { display: block; width: 100%; padding: 0; border: 0; background: var(--mist); cursor: zoom-in; }
.room-cover img, .room-photos img { width: 100%; height: auto; }
.room-m .spec { margin-top: 24px; }
.room-photos { display: grid; gap: 6px; margin-top: 36px; }

/* Plain snapshot of rooms/prices written into the HTML for crawlers (tools/snapshot.mjs). Hidden while the
   page script draws the live version; shown if JavaScript is off or the content fails to load. */
.js .snap { display: none; }
.snap { padding: 24px 0; line-height: 1.8; }
.snap section { margin: 0 0 40px; }
.snap table { border-collapse: collapse; margin-top: 12px; }
.snap th, .snap td { padding: 6px 12px; border-bottom: 1px solid var(--line, #ddd); text-align: left; }

/* notice popup (admin → 팝업) */
.pop { position: fixed; inset: 0; z-index: 90; background: rgba(16, 22, 28, .55); display: grid; place-items: center; padding: 16px; animation: pop-in .25s ease-out; }
.pop-card { width: min(440px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: var(--paper); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.pop-img { min-height: 0; overflow: auto; background: var(--mist); }
.pop-img a, .pop-img img { display: block; }
.pop-img img { width: 100%; height: auto; }
.pop-nav { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 6px; border-top: 1px solid var(--line); font: 500 13px var(--mono); color: var(--muted); }
.pop-nav button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; font-size: 22px; color: var(--ink); cursor: pointer; }
.pop-nav button:hover { background: var(--mist); }
.pop-foot { display: grid; grid-template-columns: 1fr auto; background: var(--ink); }
.pop-foot button { border: 0; background: none; color: #fff; font: 500 14px var(--body); padding: 14px 18px; cursor: pointer; text-align: left; }
.pop-foot .pop-close { border-left: 1px solid rgba(255, 255, 255, .18); text-align: center; min-width: 84px; }
.pop-foot button:hover, .pop-foot button:focus-visible { background: var(--ink-2); outline: none; }
@keyframes pop-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pop { animation: none; } }
