/* EBBM COSMETICS — 2026-12 개편판
   한 벌의 반응형 마크업. 모바일 먼저 쓰고 넓은 화면에서 덧붙인다(768, 1024).
   규칙 요약은 docs/개편_2026-12.md */
@font-face { font-family: Questrial; src: url(/assets/fonts/questrial-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Cormorant; src: url(/assets/fonts/cormorant-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Cormorant; src: url(/assets/fonts/cormorant-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: aritadm; src: url(/assets/fonts/AritaDotum-Medium.woff2) format("woff2"); font-display: swap; unicode-range: U+1100-11FF, U+3130-318F, U+AC00-D7AF; }

:root {
  --paper: #f7f2ea;        /* 바탕: 따뜻한 미색 */
  --paper-deep: #efe7da;   /* 한 단 짙은 미색(띠, 사진 자리) */
  --ink: #1f1b16;          /* 먹색 글씨 */
  --ink-soft: #5a5147;     /* 덧글 */
  --line: rgba(31, 27, 22, .16);
  --gold: #d4af6b;         /* 금색: 강조에만(선, 짙은 바탕 위 글씨) */
  --gold-deep: #7a5b22;    /* 밝은 바탕 위에서 읽히는 금색 글씨 */
  --night: #1c1915;        /* 짙은 구역 바탕 */
  --night-text: #e9e1d3;
  --night-soft: #b9ae9c;

  --sans: Questrial, aritadm, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: Cormorant, "Apple SD Gothic Neo", "Malgun Gothic", serif;

  --hd-h: 56px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(72px, 11vw, 152px);
  --wrap: 1312px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (min-width: 1024px) { :root { --hd-h: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hd-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote, address { margin: 0; padding: 0; font-style: normal; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.night :focus-visible, .ft :focus-visible { outline-color: var(--gold); }
main:focus { outline: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 18px; }
.skip:focus { top: calc(12px + env(safe-area-inset-top)); }

/* ── 글자 ── */
.display, h1 { font: 400 clamp(2.6rem, 7.2vw, 5.5rem)/1.02 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
h2 { font: 400 clamp(2rem, 4.6vw, 3.4rem)/1.08 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
h3 { font: 400 13px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.ko { font-size: 15px; color: var(--ink-soft); letter-spacing: .02em; }
.lede { font-size: clamp(1rem, 1.5vw, 1.125rem); line-height: 1.75; color: var(--ink-soft); max-width: 34em; }
.meta { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }

/* ── 단추와 글 링크 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; background: var(--ink); color: var(--paper); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; border: 1px solid var(--ink); transition: background-color .25s var(--ease), color .25s var(--ease); }
.btn.ghost { background: transparent; color: var(--ink); }
.night .btn { background: var(--gold); border-color: var(--gold); color: var(--night); }
.more { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.more::after, .btn.arrow::after { content: ""; width: 22px; height: 9px; flex: none; background: currentColor; clip-path: polygon(0 4px, 19px 4px, 15.5px .5px, 16.2px 0, 22px 4.5px, 16.2px 9px, 15.5px 8.5px, 19px 5px, 0 5px); transition: transform .3s var(--ease); }
.more span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; }

/* ── 머리글 ── */
body { padding-top: calc(var(--hd-h) + env(safe-area-inset-top)); }
.hd { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top); background: transparent; border-bottom: 1px solid transparent; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.hd.is-stuck { background: var(--paper); border-bottom-color: var(--line); }
.hd-in { height: var(--hd-h); max-width: var(--wrap); margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); display: flex; align-items: center; gap: 4px; }
.hd-logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-right: auto; }
.wordmark { display: block; height: 22px; width: auto; aspect-ratio: 2424 / 750; flex: none; }   /* 글자 로고(색은 글씨색을 따른다) */
@media (min-width: 1024px) { .hd-logo .wordmark { height: 26px; } }
.hd-store { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 13px; letter-spacing: .16em; }
.hd-menu { width: 44px; height: 44px; margin-right: -10px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; }
.hd-menu span { width: 24px; height: 1px; background: currentColor; }

/* 좁은 화면: 주 메뉴는 오른쪽에서 나오는 서랍 */
.nav { position: fixed; inset: 0 0 0 auto; z-index: 60; width: min(86vw, 380px); height: 100dvh; padding: calc(12px + env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) 28px; background: var(--paper); overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; }
.nav.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease); }
.nav-backdrop { position: fixed; inset: 0; z-index: 55; height: 100dvh; background: rgba(28, 25, 21, .45); touch-action: none; }
html.menu-open, html.menu-open body { overflow: hidden; }
.nav-close { width: 44px; height: 44px; margin: 0 -10px 16px auto; display: flex; align-items: center; justify-content: center; }
.nav-list > li { border-top: 1px solid var(--line); }
.nav-list > li:last-child { border-bottom: 1px solid var(--line); }
.nav-list a { display: flex; align-items: center; gap: 8px; min-height: 56px; font: 400 26px/1.1 var(--serif); letter-spacing: .04em; }
.nav-list a.on { color: var(--gold-deep); }
.nav-toggle { display: none; }
.nav-heading { display: block; padding: 18px 0 2px; font-size: 12px; letter-spacing: .18em; color: var(--ink-soft); }
.nav-lines { padding-bottom: 10px; }
.nav-lines a { min-height: 48px; font-size: 22px; }

/* 스크립트가 없을 때: 서랍 대신 머리글 아래에 메뉴를 펼쳐 둔다 */
html:not(.js) body { padding-top: 0; }
html:not(.js) .hd { position: static; }
html:not(.js) .hd-in { height: auto; flex-wrap: wrap; padding-top: 6px; }
html:not(.js) .hd-menu, html:not(.js) .nav-close { display: none; }
html:not(.js) .nav { position: static; width: 100%; height: auto; padding: 0 0 12px; transform: none; visibility: visible; }

@media (min-width: 1024px) {
  .hd-store, .hd-menu, .nav-close, .nav-heading, .nav-backdrop { display: none !important; }
  .nav, html:not(.js) .nav { position: static; width: auto; height: auto; padding: 0; background: none; overflow: visible; transform: none; visibility: visible; transition: none; }
  html:not(.js) .hd-in { height: var(--hd-h); flex-wrap: nowrap; padding-top: 0; }
  .nav-list { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
  .nav-list > li, .nav-list > li:last-child { border: 0; position: relative; }
  .nav-list a, .nav-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font: 400 13px/1 var(--sans); letter-spacing: .16em; }
  .nav-list > li > a, .nav-toggle { background: linear-gradient(var(--ink), var(--ink)) 0 calc(50% + 14px) / 0 1px no-repeat; transition: background-size .35s var(--ease); }
  .nav-list a.on { color: inherit; background-size: 100% 1px; }
  .nav-toggle svg { transition: transform .3s var(--ease); }
  .nav-lines { position: absolute; top: 100%; left: -24px; min-width: 232px; padding: 10px 24px 14px; background: var(--paper); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
  .nav-group:focus-within .nav-lines, .nav-group.is-open .nav-lines { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .nav-group.is-open .nav-toggle svg { transform: rotate(180deg); }
  .nav-lines a { display: flex; min-height: 44px; font-size: 13px; }
  .nav-lines a.on { color: var(--gold-deep); background: none; }
}

/* ── 틀 ── */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.section { padding-block: var(--section); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .more { justify-self: start; }
@media (min-width: 768px) { .section-head { grid-template-columns: 1fr auto; align-items: end; } .section-head .lede { grid-column: 1; } .section-head .more { grid-row: 1 / span 2; grid-column: 2; align-self: end; } }
.ph { background: var(--paper-deep); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
/* 흰 바탕에 찍은 제품 사진: 흰색을 종이색에 녹여 상자처럼 뜨지 않게 한다 */
.ph.cut img { mix-blend-mode: multiply; }

/* ── 첫 화면: 히어로 ── */
.hero { display: grid; gap: 28px; padding-block: clamp(20px, 5vw, 56px) clamp(56px, 8vw, 96px); }
.hero-copy { display: grid; gap: 16px; align-content: center; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; margin-top: 6px; }
/* 넘겨 보기: 한 무대에 장을 겹쳐 두고 지금 장만 보인다(겹쳐 바뀜). 가로 스크롤을 쓰지 않는다.
   WebGL 전환·잔물결은 motion.js 가 이 위에 얹는다(안 되면 여기의 겹쳐 바뀜이 그대로 돈다). */
.hero-stage { min-width: 0; --stage-w: min(100%, 68svh * .8); padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); container-type: inline-size; }
.hero-track { display: grid; position: relative; width: var(--stage-w); touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.hero-slide { grid-area: 1 / 1; min-width: 0; visibility: hidden; transition: visibility 0s .9s; }
.hero-slide.is-current { visibility: visible; transition-delay: 0s; }
.hero-slide a { display: block; -webkit-user-drag: none; -webkit-touch-callout: none; }
.hero-slide .ph { aspect-ratio: 4 / 5; opacity: 0; transition: opacity .9s var(--ease); }
.hero-slide.is-current .ph { opacity: 1; }
.hero-slide img { -webkit-user-drag: none; }
/* 장 이름: 사진 아랫단에 걸쳐 크게. 기본은 먹색. 어두운 사진(.on-dark)만 사진에 걸친 윗부분(56%)을 밝게 칠한다.
   (차이 혼합은 실제 아이폰에서 종이 위 글자가 사라져서 쓰지 않는다) */
.hero-cap { --name: clamp(2.5rem, 11.5cqi, 6rem); position: relative; display: grid; gap: 10px; margin-top: calc(var(--name) * -.56); }
.hero-cap b { font: 400 var(--name)/1 var(--serif); letter-spacing: .01em; white-space: nowrap; color: var(--ink); margin-left: -.04em; }
.hero-cap.on-dark b, .hero-cap.on-dark b .mc { background: linear-gradient(#f7f2ea 0 56%, var(--ink) 56%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hero-cap > span { font-size: 13px; letter-spacing: .08em; color: var(--ink-soft); }
.hero-cap b, .hero-cap > span { opacity: 0; transition: opacity .35s var(--ease); }
.hero-slide.is-current .hero-cap b, .hero-slide.is-current .hero-cap > span { opacity: 1; transition: opacity .6s var(--ease) .2s; }
.carousel-ui { display: flex; align-items: center; gap: 4px; width: var(--stage-w); padding-top: 14px; }
.carousel-ui button { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); transition: background-color .25s var(--ease), color .25s var(--ease), opacity .25s; }
.carousel-count { margin-left: 14px; font: 400 18px/1 var(--serif); letter-spacing: .08em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.carousel-bar { flex: 1; height: 1px; margin-inline: 18px 14px; background: var(--line); overflow: hidden; }
.carousel-bar i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(.25); transition: transform .9s var(--ease); }
.carousel-auto .i-play, .carousel-auto[data-state="paused"] .i-pause { display: none; }
.carousel-auto[data-state="paused"] .i-play { display: inline; }
/* 스크립트가 없을 때: 옆으로 미는 목록 */
html:not(.js) .hero-stage { padding-inline: 0; }
html:not(.js) .hero-track { display: flex; gap: 12px; width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); touch-action: auto; }
html:not(.js) .hero-slide { flex: none; width: min(78vw, 420px); visibility: visible; scroll-snap-align: start; }
html:not(.js) .hero-slide .ph, html:not(.js) .hero-cap b, html:not(.js) .hero-cap > span { opacity: 1; }
html:not(.js) .hero-cap { --name: 2rem; margin-top: 14px; }
html:not(.js) .hero-cap.on-dark b { background: none; color: inherit; -webkit-text-fill-color: currentColor; }
@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; align-items: center; min-height: calc(100svh - var(--hd-h)); padding-block: 32px 48px; max-width: 1760px; margin-inline: auto; }
  .hero h1 { font-size: clamp(3rem, 5.6vw, 5.5rem); }
  .hero-copy { padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) clamp(32px, 4vw, 72px); gap: 28px; }
  .hero-stage { --stage-w: min(100%, clamp(420px, 100svh - var(--hd-h) - 215px, 700px)); padding-inline: 0 max(var(--gutter), env(safe-area-inset-right)); }
  .hero-track, .carousel-ui { margin-left: auto; }
  .hero-slide .ph { aspect-ratio: 1; }
  .hero-cap { --name: clamp(3rem, 10.5cqi, 6rem); }
  .hero-cap b { margin-left: -12%; }
  .hero-cap > span { margin-left: -12%; }
  /* 어두운 사진 장은 글자를 사진 안쪽에서 시작(밖으로 내밀면 밝은 윗부분이 종이 위에서 안 보인다) */
  .hero-cap.on-dark b { margin-left: 3%; }
  .hero-cap.on-dark > span { margin-left: 3%; }
  html:not(.js) .hero-track, html:not(.js) .carousel-ui { margin-left: 0; }
}

/* ── 첫 화면: 컬렉션 ── */
.lines { display: grid; gap: 40px 20px; }
.line a { display: grid; gap: 16px; }
.line .ph { aspect-ratio: 1; }
.line:nth-child(-n+2) .ph { aspect-ratio: 4 / 5; }
.line .ph img { transition: scale 1.2s var(--ease); }
.line-text { display: grid; gap: 6px; }
.line-text b { font: 400 clamp(1.75rem, 3vw, 2.5rem)/1.05 var(--serif); letter-spacing: .01em; }
.line-text .more { margin-top: 2px; }
@media (min-width: 768px) {
  .lines { grid-template-columns: repeat(6, 1fr); gap: 64px 24px; }
  .line { grid-column: span 3; }
  .line:nth-child(n+3) { grid-column: span 2; }
  .line:nth-child(n+3) .ph { aspect-ratio: 1; }
  .line:nth-child(2) { margin-top: clamp(48px, 8vw, 120px); }
}

/* ── 짙은 구역(브랜드 이야기) ── */
.night { background: var(--night); color: var(--night-text); }
.night .lede, .night .ko { color: var(--night-soft); }
.night .meta { color: var(--gold); }
.essence { display: grid; gap: 48px; }
.essence-copy { display: grid; gap: 24px; align-content: start; }
.essence-copy p:not(.lede) { max-width: 36em; color: var(--night-soft); }
.sources { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.source .ph { aspect-ratio: 3 / 4; background: #2a2620; }
.source figcaption { padding-top: 12px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--night-soft); }
@media (min-width: 1024px) { .essence { grid-template-columns: 5fr 7fr; gap: clamp(48px, 7vw, 112px); align-items: end; } .sources { gap: 20px; } }
@media (max-width: 479px) { .source figcaption { font-size: 12px; letter-spacing: .04em; } }

/* ── 갤러리 미리보기와 갤러리 ── */
.shots { display: grid; gap: 28px 20px; }
.shot .ph { aspect-ratio: 4 / 3; }
.shot figcaption { padding-top: 12px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.shot button, .shot a { display: block; width: 100%; text-align: left; }
@media (min-width: 600px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .shots { grid-template-columns: repeat(3, 1fr); gap: 48px 24px; } }
@media (max-width: 599px) { .shots.dense { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; } .shots.dense figcaption { font-size: 14px; } }
.lightbox { touch-action: pinch-zoom; overscroll-behavior: contain; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(28, 25, 21, .96); color: var(--night-text); }
.lightbox::backdrop { background: rgba(28, 25, 21, .6); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lightbox-img { min-height: 0; display: flex; align-items: center; justify-content: center; padding: calc(64px + env(safe-area-inset-top)) 16px 8px; }
.lightbox-img img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; -webkit-user-drag: none; -webkit-touch-callout: none; }
.lightbox-bar { display: flex; align-items: center; gap: 8px; padding: 12px max(16px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.lightbox-bar p { flex: 1; font-size: 15px; line-height: 1.4; }
.lightbox button { width: 48px; height: 48px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(233, 225, 211, .3); }
.lightbox :focus-visible { outline-color: var(--gold); }
.lightbox-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); }

/* 짙은 머리 띠(진생 골드): 금박이 떠다니는 자리 */
.head-band { padding-bottom: clamp(40px, 6vw, 88px); }
.head-band + .section { padding-top: clamp(56px, 8vw, 112px); }

/* ── 스토어 안내 띠 ── */
.store { background: var(--paper-deep); }
.store-in { display: grid; gap: 28px; justify-items: start; }
.store-in h2 { max-width: 14em; }
@media (min-width: 900px) { .store-in { grid-template-columns: 1fr auto; align-items: end; } .store-in .lede { grid-column: 1; } .store-in .btn { grid-column: 2; grid-row: 1 / span 2; align-self: end; } }

/* ── 안쪽 페이지 머리 ── */
.page-head { display: grid; gap: 32px; padding-block: clamp(28px, 5vw, 64px) 0; }
.page-head-copy { display: grid; gap: 18px; align-content: end; }
.page-head .ph { aspect-ratio: 4 / 5; }
.page-head.wide .ph { aspect-ratio: 3 / 2; }
@media (min-width: 900px) {
  .page-head { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
  .page-head-copy { padding-bottom: clamp(8px, 3vw, 48px); }
  .page-head.wide { grid-template-columns: 1fr; }
  .page-head.wide .ph { aspect-ratio: 21 / 9; }
  .page-head.wide .page-head-copy { max-width: 60rem; padding-bottom: 0; }
}

/* ── 선언 문단(라인 소개) ── */
.statement { display: grid; gap: 24px; max-width: 58rem; }
.statement h2 + p, .statement p + p { color: var(--ink-soft); max-width: 40em; }
.rule { width: 56px; height: 1px; background: var(--gold); border: 0; margin: 0; }

/* ── 제품 ── */
.products { display: grid; gap: var(--section); padding-bottom: var(--section); }
.product { display: grid; gap: 32px; }
.product-media { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.product-media .ph { aspect-ratio: 1; }
.product-media .ph:first-child:nth-last-child(odd) { grid-column: span 2; }
.product-copy { display: grid; gap: 18px; align-content: start; }
.product-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.product-copy > p:not(.ko):not(.meta) { max-width: 36em; }
.product-copy h3 { margin-top: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.label { font: 400 clamp(1.4rem, 2.4vw, 1.85rem)/1.3 var(--serif); padding-left: 20px; border-left: 1px solid var(--gold); }
.label small { display: block; margin-top: 8px; font: 400 13px/1.5 var(--sans); letter-spacing: .04em; color: var(--ink-soft); }
.steps { counter-reset: step; display: grid; gap: 10px; max-width: 36em; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 28px 1fr; }
.steps li::before { content: counter(step); font: 400 20px/1.35 var(--serif); color: var(--gold-deep); }
.points { display: grid; gap: 14px; max-width: 36em; }
.points b { display: block; font-weight: 400; color: var(--gold-deep); }
.note { font-size: 15px; color: var(--ink-soft); }
@media (min-width: 900px) {
  .product { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
  .product-media { gap: 20px; }
  .product-copy { position: sticky; top: calc(var(--hd-h) + 40px); }
  .product:nth-child(even) .product-media { order: 2; }
}

/* ── 이야기 페이지 ── */
.chapter { display: grid; gap: 32px; }
.chapter + .chapter { margin-top: var(--section); }
.chapter .ph.lead { aspect-ratio: 3 / 2; }
.chapter-copy { display: grid; gap: 20px; align-content: start; }
.chapter-copy p { max-width: 36em; color: var(--ink-soft); }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.strip .ph { aspect-ratio: 1; }
@media (min-width: 900px) {
  .chapter { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(40px, 6vw, 96px); align-items: start; }
  .chapter:nth-of-type(even) .chapter-media { order: 2; }
  .chapter-copy { position: sticky; top: calc(var(--hd-h) + 40px); padding-top: 8px; }
  .strip { gap: 20px; }
}
.chapter-media { display: grid; gap: 12px; }
@media (min-width: 900px) { .chapter-media { gap: 20px; } }
.quote { font: 400 clamp(1.6rem, 3.4vw, 2.6rem)/1.25 var(--serif); max-width: 24em; text-wrap: balance; }

/* ── 약관·안내 ── */
.legal { max-width: 800px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--gutter) var(--section); }
.legal h1 { font: 400 clamp(1.9rem, 4vw, 2.6rem)/1.25 var(--sans); letter-spacing: 0; margin-bottom: 36px; }
.legal h2 { font: 400 18px/1.5 var(--sans); letter-spacing: 0; margin: 40px 0 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal p, .legal li { color: var(--ink-soft); }
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol { padding-left: 1.2em; list-style: disc; }
.legal ol { list-style: decimal; }
.legal .btn { margin-top: 8px; }
.legal a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.notfound { min-height: 56svh; display: grid; align-content: center; gap: 8px; }
.notfound h1 { margin-bottom: 8px; }

/* ── 바닥글 ── */
.ft { background: var(--night); color: var(--night-soft); font-size: 14px; line-height: 1.7; }
.ft-in { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 96px) max(var(--gutter), env(safe-area-inset-right)) calc(40px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left)); display: grid; gap: 40px; }
.ft-top { display: grid; gap: 36px; }
.ft-logo { display: inline-flex; align-items: center; min-height: 44px; justify-self: start; color: var(--night-text); }
.ft-logo .wordmark { height: clamp(34px, 4vw, 44px); }
.ft-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
.ft-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--night-text); font-size: 13px; letter-spacing: .14em; }
.ft-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 24px; padding-top: 16px; border-top: 1px solid rgba(233, 225, 211, .16); }
.ft-legal a { letter-spacing: 0; font-size: 14px; }
.ft-legal b { font-weight: 400; color: var(--gold); }
.ft-info p:first-child { color: var(--night-text); letter-spacing: .08em; margin-bottom: 6px; }
.ft-info span { display: inline-block; margin-right: 18px; }
.ft-copy { font-size: 13px; padding-top: 24px; border-top: 1px solid rgba(233, 225, 211, .16); }
@media (min-width: 900px) {
  .ft-top { grid-template-columns: 1fr auto; align-items: start; }
  .ft-nav { grid-template-columns: repeat(2, minmax(160px, auto)); gap: 28px 72px; }
}

/* ── 마우스를 올렸을 때 ── 손가락으로 누르는 기기에서는 쓰지 않는다(아이폰에서 첫 탭이 '올림'으로만 먹는 문제) */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: transparent; color: var(--ink); }
  .btn.ghost:hover { background: var(--ink); color: var(--paper); }
  .night .btn:hover { background: transparent; color: var(--gold); }
  .more:hover::after, .btn.arrow:hover::after, a:hover .more::after { transform: translateX(6px); }
  .hd-store:hover, .ft a:hover { opacity: .7; }
  .nav-list > li > a:hover, .nav-toggle:hover { background-size: 100% 1px; }
  .nav-lines a:hover { color: var(--gold-deep); }
  .nav-group:hover .nav-lines { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .line a:hover .ph img { scale: 1.04; }
  .carousel-ui button:hover, .lightbox button:hover { background: var(--ink); color: var(--paper); }
  .lightbox button:hover { background: var(--night-text); color: var(--night); }
}

/* ── 움직임을 줄여 달라는 설정 ── */
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition-delay: 0s !important; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* 모션(등장·시차·넘겨 보기 안무·페이지 전환)은 motion.css 와 motion.js 에 있다. 규칙은 docs/개편_2026-12.md 4절 */
