/* ==========================================================
   홈 전용 스타일 — 표본 라벨(specimen label) 문구류
   style.css 위에 덮어씀. body.home 범위 안에서만 동작
   ========================================================== */

body.home { --gap: clamp(120px, 14vw, 200px); }

.home h1, .home h2, .home h3 { font-family: var(--face); color: inherit; margin: 0; }
.home p { margin: 0; }
.home .btn { font-size: var(--step-small); }

/* ---------- hero: the label over the forest ---------- */
.hero-room { position: relative; min-height: min(100svh, 980px); display: grid; place-items: center; padding: clamp(48px, 7vw, 96px) var(--margin); overflow: hidden; background: var(--ink); }
.hero-room > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.62); transform-origin: 50% 40%; }
.label-card { position: relative; width: min(100%, 1000px); min-height: min(54svh, 520px); background: var(--paper); color: var(--ink); padding: clamp(24px, 3vw, 40px); display: grid; grid-template-rows: auto 1fr auto; gap: clamp(28px, 4vw, 48px); }
.label-card h1 { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: .4em; font-size: min(var(--step-display), 5.6vw); font-weight: 800; letter-spacing: -0.05em; line-height: .88; }
.label-body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); align-content: start; }
.label-facts { font-size: var(--step-lead); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.label-facts span { display: block; }
.label-facts .coords { margin-top: .6em; font-size: var(--step-body); font-weight: 400; letter-spacing: 0; color: var(--muted); }
.label-lede { font-size: var(--step-lead); line-height: 1.25; max-width: 30ch; }
.label-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; font-size: var(--step-small); }
.label-foot .caption { color: var(--muted); }
.label-foot .more { justify-self: end; font-weight: 600; text-underline-offset: 4px; }
.label-foot .more:hover { color: var(--accent); }

/* ---------- intro: title, note, facts ---------- */
.intro { padding-block: var(--gap) 0; }
.intro-top { align-items: end; }
.intro h2 { grid-column: 1 / 7; font-size: var(--step-head); font-weight: 800; letter-spacing: -0.045em; line-height: .95; }
.intro-note { grid-column: 9 / 13; max-width: 34ch; }
.facts { display: flex; justify-content: space-between; gap: 32px; margin-top: 96px; }
.fact b { display: block; font-size: var(--step-head); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.fact > span { display: block; margin-top: 10px; font-size: var(--step-small); color: var(--muted); max-width: 22ch; }
.intro-photo { grid-column: 6 / 13; margin-top: 64px; }
.intro-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.intro-photo figcaption, .sheet figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
.intro-aside { grid-column: 1 / 5; align-self: end; margin-top: 64px; }
.intro-aside p { font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.02em; }
.intro-aside a { display: inline-block; margin-top: 20px; font-weight: 600; font-size: var(--step-small); text-underline-offset: 4px; }
.intro-aside a:hover { color: var(--accent); }

/* ---------- ledger: dates aligned on the point ---------- */
.ledger { padding-block: var(--gap); align-items: center; }
.ledger-intro { grid-column: 1 / 6; }
.ledger h2 { font-size: var(--step-head); font-weight: 800; letter-spacing: -0.045em; line-height: .95; }
.ledger h2 .soft { display: block; color: var(--muted); }
.ledger-note { margin-top: 28px; max-width: 32ch; }
.ledger ol { grid-column: 7 / 13; list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.ledger li { display: grid; grid-template-columns: .62em 1.45em 1fr; align-items: baseline; column-gap: 0; font-size: var(--step-display); line-height: 1; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: lining-nums; }
.ledger .whole { text-align: right; }
.ledger .dec { text-align: left; }
.ledger .cap { font-size: var(--step-body); font-weight: 400; letter-spacing: -0.01em; line-height: 1.35; padding-left: 20px; }
.ledger .cap small { display: block; font-size: var(--step-small); color: var(--muted); }
.ledger li.next .whole, .ledger li.next .dec { color: var(--accent); }

/* ---------- sessions: stacking sheets ---------- */
.sessions { padding-bottom: 0; }
.sessions-head { padding-bottom: 48px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); align-items: end; }
.sessions-head h2 { grid-column: 1 / 7; }
.sessions-head p { grid-column: 8 / 13; }
.sessions-head h2 { font-size: var(--step-head); font-weight: 800; letter-spacing: -0.045em; line-height: .95; }
.sessions-head p { max-width: 46ch; }
.sheet { position: sticky; top: calc(16px + var(--i) * 56px); min-height: min(76svh, 760px); margin-top: 16px; border-radius: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 56px 1fr; column-gap: clamp(12px, 1.6vw, 24px); padding-inline: var(--margin); background: var(--surface); color: var(--ink); }
.sheet:nth-child(3n+2) { background: var(--ink); color: var(--paper); }
.sheet:nth-child(3n+3) { background: var(--deep); color: var(--paper); }
.sheet:nth-child(3n+2) figcaption, .sheet:nth-child(3n+3) figcaption { color: #bdb7ad; }
.sheet h3 { grid-column: 1 / 7; grid-row: 1; align-self: center; font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-text { grid-column: 1 / 6; grid-row: 2; align-self: start; padding-top: clamp(20px, 3vw, 40px); }
.sheet-text p { max-width: 40ch; }
.sheet-text .sheet-lead { font-size: var(--step-body); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 16px; }
.sheet figure { grid-column: 7 / 13; grid-row: 1 / 3; margin: 0; display: flex; flex-direction: column; }
.sheet figure img { flex: 1; width: 100%; min-height: 0; object-fit: cover; }
.sheet figcaption { padding: 10px 0 14px; }

/* ---------- programme: slips along the edge ---------- */
.programme { position: relative; min-height: 100svh; overflow: hidden; color: var(--paper); background: var(--ink); display: flex; flex-direction: column; justify-content: space-between; }
.programme > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.82); }
.programme-text { position: relative; margin: clamp(64px, 9vw, 120px) 0 0 var(--margin); width: min(620px, calc(100% - 2 * var(--margin))); padding: clamp(20px, 2.4vw, 32px); background: rgba(10, 10, 10, .62); }
.programme-text h2 { font-size: var(--step-head); font-weight: 800; letter-spacing: -0.045em; line-height: .95; margin-bottom: 20px; }
.programme-text p { font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.02em; }
.programme-text a { display: inline-block; margin-top: 20px; font-size: var(--step-small); font-weight: 600; text-underline-offset: 4px; }
.slips { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: end; padding: 64px var(--margin) 0; }
.slip { background: var(--paper); color: var(--ink); padding: 18px 16px 24px; font-size: var(--step-small); line-height: 1.4; transform-origin: 50% 100%; }
.slip:nth-child(1) { min-height: 30svh; }
.slip:nth-child(2) { min-height: 44svh; transform: rotate(-1.5deg); }
.slip:nth-child(3) { min-height: 36svh; }
.slip:nth-child(4) { min-height: 42svh; transform: rotate(1.2deg); }
.slip:nth-child(5) { min-height: 38svh; }
.slip:nth-child(6) { min-height: 28svh; transform: rotate(-1deg); }
.slip h3 { font-size: var(--step-body); font-weight: 800; letter-spacing: -0.02em; }
.slip .typed { color: var(--muted); letter-spacing: .2em; margin: 4px 0 8px; user-select: none; }
.slip p + p { margin-top: 6px; }
.slip b { font-weight: 600; }

/* ---------- fees: the printed sheet on black ---------- */
.fees { background: var(--ink); padding-block: var(--gap) 120px; }
.fees-grid { align-items: start; }
.fees-aside { grid-column: 1 / 5; color: var(--paper); position: sticky; top: 40px; }
.fees-aside p { font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.02em; }
.fees-aside p + p { margin-top: 20px; font-size: var(--step-body); color: #c9c3b9; }
.menu-sheet { grid-column: 6 / 12; max-width: 640px; width: 100%; justify-self: center; }
.edge { display: block; width: 100%; height: 12px; color: var(--paper); }
.menu-inner { background: var(--paper); padding: 48px clamp(24px, 5vw, 64px) 56px; text-align: center; }
.menu-inner h2 { font-size: var(--step-head); font-weight: 800; letter-spacing: -0.045em; line-height: .95; }
.menu-inner > p { margin-top: 12px; font-size: var(--step-small); color: var(--muted); }
.menu-group { margin-top: 56px; }
.menu-group h3 { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 20px; }
.menu-group ul { list-style: none; margin: 0 auto; padding: 0; max-width: 440px; display: grid; gap: 16px; text-align: left; }
.menu-group li { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; }
.menu-group li b { font-weight: 600; }
.menu-group li .price { font-weight: 600; text-align: right; }
.menu-group li small { grid-column: 1 / -1; font-size: var(--step-small); color: var(--muted); }
.menu-close { margin-top: 56px; font-size: var(--step-small); }
.menu-close a { font-weight: 600; text-underline-offset: 4px; }

/* ---------- reply card: the live thing ---------- */
.reply { position: relative; background: var(--accent); color: var(--accent-ink); padding: 120px var(--margin) 0; overflow: hidden; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); align-items: end; }
.reply-text { grid-column: 1 / 5; padding-bottom: 64px; }
.reply-text h2 { font-size: var(--step-head); font-weight: 800; letter-spacing: -0.045em; line-height: .95; margin-bottom: 24px; }
.reply-text p { font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.02em; }
.reply-card { grid-column: 6 / 13; background: var(--paper); color: var(--ink); padding: 48px clamp(24px, 4vw, 48px) 108px; margin-bottom: -60px; transform: rotate(-2deg); transform-origin: 50% 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.reply-form { display: grid; gap: 24px; align-content: start; }
.reply-form label, .reply-form legend { display: block; font-size: var(--step-small); font-weight: 600; margin-bottom: 8px; padding: 0; }
.reply-form fieldset { border: 0; margin: 0; padding: 0; }
.reply-form input[type=text] { width: 100%; font: inherit; font-size: var(--step-body); padding: 12px 14px; background: #fff; color: var(--ink); border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; }
.reply-form input[type=text]:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.choices { display: grid; gap: 8px; }
.choices label { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; background: var(--surface); font-size: var(--step-body); font-weight: 400; cursor: pointer; transition: background-color .2s; }
.choices label:hover { background: #c9c3ba; }
.choices input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
.choices label:has(input:checked) { background: var(--ink); color: var(--paper); }
.choices label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.specimen { background: #fff; padding: 24px; align-self: start; font-size: var(--step-body); line-height: 1.35; }
.specimen .leg { margin-top: 12px; font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; overflow-wrap: anywhere; }
.specimen .fee { margin-top: 20px; font-size: var(--step-head); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.specimen .fee-note { margin-top: 8px; font-size: var(--step-small); color: var(--muted); }
.reply-go { grid-column: 1 / -1; display: flex; width: 100%; min-height: 56px; }

/* ---------- welcome letter ---------- */
.letter { background: var(--surface); padding-block: var(--gap); }
.letter-grid { align-items: start; }
.letter-photo { grid-column: 1 / 5; position: sticky; top: 40px; margin: 0; }
.letter-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.letter-photo figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
.letter-sheet { grid-column: 6 / 12; max-width: 640px; }
.letter-paper { background: var(--paper); padding: clamp(28px, 5vw, 60px); }
.letter-paper h2 { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 28px; }
.letter-paper p { line-height: 1.6; max-width: 60ch; }
.letter-paper p + p { margin-top: 1.1em; }
.sign { margin-top: 36px; }
.sign b { display: block; font-size: var(--step-lead); font-style: italic; font-weight: 600; }
.sign small { display: block; margin-top: 4px; font-size: var(--step-small); color: var(--muted); }
.draft-note { display: inline-block; margin-top: 20px; font-size: var(--step-small); color: var(--muted); }
.tear { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; background: var(--paper); padding: 20px clamp(28px, 5vw, 60px); min-height: 72px; }
.tear a { font-weight: 600; text-underline-offset: 4px; }
.perf { display: block; width: 100%; height: 10px; background: var(--paper); }

/* ---------- motion (only when motion is welcome) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
  .js .rise.in { opacity: 1; transform: none; }
  .js .hero-room > img { animation: drift 24s var(--ease) both alternate infinite; }
  .js .label-card { animation: settle .9s var(--ease) both; }
  .js .slip { transition: transform .4s var(--ease); }
  .js .slip:hover { transform: translateY(-12px) rotate(0deg); }
  .js .sheet figure img { transition: transform 1.2s var(--ease); }
  .js .sheet:hover figure img { transform: scale(1.03); }
  .js .specimen .leg, .js .specimen .fee { transition: opacity .25s; }
  .js .specimen.flash .leg, .js .specimen.flash .fee { opacity: .35; }
}

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
  .label-body { grid-template-columns: 1fr; }
  .intro h2 { grid-column: 1 / 9; }
  .intro-note { grid-column: 1 / 9; margin-top: 24px; }
  .intro-top { align-items: start; }
  .facts { flex-wrap: wrap; }
  .fact { flex: 1 1 40%; }
  .intro-photo { grid-column: 1 / 13; }
  .intro-aside { grid-column: 1 / 9; }
  .ledger-intro { grid-column: 1 / 13; }
  .ledger ol { grid-column: 1 / 13; margin-top: 56px; grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 32px; }
  .ledger li { font-size: 8vw; }
  .ledger .cap { padding-left: 12px; }
  .sheet h3 { grid-column: 1 / 13; }
  .sessions-head h2 { grid-column: 1 / 13; }
  .sessions-head p { grid-column: 1 / 13; margin-top: 20px; }
  .sheet-text { grid-column: 1 / 7; }
  .slips { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  .slip { min-height: 0 !important; }
  .fees-aside { grid-column: 1 / 13; position: static; margin-bottom: 56px; }
  .menu-sheet { grid-column: 1 / 13; }
  .reply-text { grid-column: 1 / 13; padding-bottom: 48px; }
  .reply-card { grid-column: 1 / 13; }
  .letter-photo { grid-column: 1 / 13; position: static; margin-bottom: 48px; }
  .letter-photo img { aspect-ratio: 16 / 9; }
  .letter-sheet { grid-column: 1 / 13; max-width: none; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  .hero-room { min-height: 100svh; padding: 16px; }
  .label-card { min-height: 0; padding: 22px; gap: 28px; }
  .label-card h1 { font-size: 13vw; justify-content: flex-start; row-gap: .05em; }
  .label-foot { grid-template-columns: 1fr; text-align: left; }
  .label-foot .btn { width: 100%; order: -1; }
  .label-foot .more { justify-self: start; }
  .intro h2, .intro-note { grid-column: 1 / 13; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 20px; margin-top: 64px; }
  .fact b { font-size: 1.75rem; }
  .intro-aside { grid-column: 1 / 13; }
  .ledger ol { grid-template-columns: 1fr; }
  .ledger li { font-size: 13vw; }
  .ledger .cap { padding-left: 14px; }
  .sessions-head h2, .sessions-head p { grid-column: 1 / 13; }
  .sessions-head p { margin-top: 20px; }
  .sheet { top: calc(8px + var(--i) * 44px); grid-template-rows: 44px auto auto; min-height: 0; }
  .letter-photo { display: none; }
  .sheet h3 { font-size: 1.25rem; }
  .sheet figure { grid-column: 1 / 13; grid-row: 2; }
  .sheet figure img { aspect-ratio: 4 / 3; flex: none; }
  .sheet figcaption { padding: 8px 0 0; }
  .sheet-text { grid-column: 1 / 13; grid-row: 3; padding: 20px 0 28px; }
  .sessions-head { display: block; }
  .programme-text { margin-top: 48px; }
  .slips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reply-card { grid-template-columns: 1fr; padding: 28px 22px 92px; transform: rotate(-1deg); }
}
