/* =====================================================================
   벨라펠레 BellaPelle — 라이트 테마
   색·글꼴·간격은 맨 위 :root 의 값만 고치면 사이트 전체에 반영됩니다.
   ===================================================================== */
@layer reset, base, layout, parts, motion;

:root {
  /* 색 */
  --paper:   #F4F3F0;          /* 바탕 — 전시실 벽 (2026-09-21 한 단계 진하게, 원래 #FAF9F6) */
  --white:   #FFFFFF;          /* 액자 속지 */
  --band:    #ECEAE4;          /* 구역 구분용 옅은 바탕 (바탕과 함께 한 단계, 원래 #F2F0EA) */
  --ink:     #15130F;          /* 글자 */
  --ink-2:   #4A463E;          /* 본문 보조 */
  --ink-3:   #7A756A;          /* 덧붙임 */
  --line:    #DEDAD0;          /* 얇은 선 */
  --line-2:  #C9C4B8;
  --accent:  #1F3D2F;          /* 포인트 — 깊은 녹색 (할증 표시) */

  /* 글꼴 */
  --serif: "Cormorant Garamond", "Noto Serif KR", "Nanum Myeongjo", "Batang", serif;
  --serif-ko: "Noto Serif KR", "Cormorant Garamond", "Nanum Myeongjo", "Batang", serif;
  --sans: "Pretendard Variable", Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;

  /* 크기 — 본문은 14pt(약 19px) 이상 */
  --fs-body:  clamp(1.1rem, 1.02rem + 0.3vw, 1.22rem);
  --fs-small: clamp(0.98rem, 0.94rem + 0.15vw, 1.05rem);
  --fs-h2:    clamp(2.3rem, 1.6rem + 3vw, 4rem);
  --fs-hero:  clamp(4.2rem, 1.5rem + 13vw, 12rem);

  /* 간격 */
  --gutter: clamp(18px, 4.5vw, 72px);
  --sec:    clamp(84px, 11vw, 180px);
  --max:    1560px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --slow: 1.1s;
}

/* ───────── reset ───────── */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
  body, h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
  ul, ol { padding: 0; list-style: none; }
  img, svg { display: block; max-width: 100%; }
  button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
  a { color: inherit; text-decoration: none; }
  :focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
}

/* ───────── base ───────── */
@layer base {
  body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: var(--fs-body);
    line-height: 1.85;
    word-break: keep-all;
    overflow-wrap: anywhere;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  html:has(dialog[open]) { overflow: hidden; }
  ::selection { background: var(--ink); color: var(--paper); }

  .skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 12px 18px; z-index: 100; }
  .skip:focus { left: 12px; top: 12px; }

  .eyebrow {
    font-size: var(--fs-small);
    letter-spacing: .28em;
    color: var(--ink-3);
    text-transform: uppercase;
  }
  /* 구역 번호 — 01, 02 … 자동으로 매겨집니다 */
  main { counter-reset: sec; }
  .eyebrow--no { counter-increment: sec; font-family: var(--serif); font-size: 1.25rem; letter-spacing: .2em; }
  .eyebrow--no::before { content: "N° " counter(sec, decimal-leading-zero); }
}

/* ───────── layout ───────── */
@layer layout {
  .top {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px var(--gutter);
    background: color-mix(in oklab, var(--paper) 86%, transparent);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
  }
  .brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
  .brand__logo { flex: none; width: 46px; height: 46px; display: grid; place-items: center; background: #0E0E0E; overflow: hidden; }
  .brand__logo img { width: 100%; height: 100%; object-fit: cover; }
  .brand__logo i { font-family: var(--serif); font-style: italic; font-size: 1.45rem; color: #D8C38A; line-height: 1; }
  .brand__name { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; letter-spacing: .02em; line-height: 1; white-space: nowrap; }
  .brand__name small { font-family: var(--serif-ko); font-size: .95rem; color: var(--ink-3); margin-left: 8px; letter-spacing: .12em; }
  .menu { display: flex; gap: clamp(16px, 3vw, 44px); font-size: var(--fs-body); }
  .menu a { position: relative; padding: 8px 2px; }
  .menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
  .menu a:hover::after, .menu a:focus-visible::after { transform: scaleX(1); }
  @media (max-width: 560px) { .brand { gap: 10px; } .brand__name small { display: none; } .brand__name { font-size: 1.3rem; } .brand__logo { width: 38px; height: 38px; } .menu { gap: 14px; font-size: 1.02rem; } }
  .menu a { white-space: nowrap; }

  /* 첫 화면 */
  .hero {
    max-width: var(--max); margin-inline: auto;
    padding: clamp(36px, 6vw, 96px) var(--gutter) var(--sec);
    display: grid; gap: clamp(40px, 6vw, 96px);
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: center;
    min-height: min(100svh - 76px, 1000px);
  }
  .hero__title { font-family: var(--serif); font-weight: 400; font-size: var(--fs-hero); line-height: .88; letter-spacing: -.035em; margin: .16em 0 .32em -.04em; }
  .hero__line { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.3rem); line-height: 1.3; min-height: 2.6em; max-width: 22ch; text-wrap: balance; transition: opacity 1.2s var(--ease); }
  /* 타이핑 문구: 모든 문장을 같은 칸에 겹쳐 두고(보이지 않게) 가장 긴 문장만큼 자리를 잡는다 */
  .hero__line { display: grid; min-height: 0; }
  .hero__line > .type__sizer, .hero__line > .type__text { grid-area: 1 / 1; }
  .type__sizer { visibility: hidden; }
  .type__sizer, .type__text { text-wrap: wrap; }   /* 치는 동안 줄이 들썩이지 않게 균형 맞춤 대신 보통 줄바꿈 */
  .type__caret { display: inline-block; width: 1.5px; height: .95em; margin-left: .08em; vertical-align: -.12em; background: currentColor; animation: caret 1.05s steps(1) infinite; }
  .hero__line.is-still .type__caret { display: none; }
  @keyframes caret { 50% { opacity: 0; } }
  .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .link-arrow { display: inline-flex; gap: 12px; align-items: baseline; margin-top: clamp(28px, 4vw, 56px); padding-bottom: 6px; border-bottom: 1px solid var(--ink); font-size: var(--fs-body); letter-spacing: .08em; }
  .link-arrow span { transition: transform .8s var(--ease); }
  .link-arrow:hover span { transform: translateY(4px); }
  @media (max-width: 900px) { .hero { grid-template-columns: 1fr; min-height: 0; } .hero__line { min-height: 2.7em; } }

  /* 구역 공통 */
  .section { padding: var(--sec) var(--gutter); }
  .section > * { max-width: var(--max); margin-inline: auto; }
  .band { background: var(--band); }
  .section__head { text-align: center; margin-bottom: clamp(44px, 6vw, 96px); }
  .section__head--left { text-align: left; margin-bottom: 0; }
  .section__title { font-family: var(--serif-ko); font-weight: 500; font-size: var(--fs-h2); line-height: 1.2; letter-spacing: -.01em; margin-top: .25em; }
  .section__lead { max-width: 40em; margin: 1.4em auto 0; color: var(--ink-2); text-wrap: pretty; }
  .section__head--left .section__lead { margin-inline: 0; }

  .split { display: grid; gap: clamp(40px, 7vw, 120px); grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
  @media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

  .foot { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; align-items: baseline; padding: 40px var(--gutter) calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--ink-3); font-size: var(--fs-small); }
  .foot__brand { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); }
}

/* ───────── parts ───────── */
@layer parts {
  /* 액자 — 모든 사진이 같은 정사각 틀에 들어갑니다 */
  .frame {
    container-type: inline-size;
    display: block; width: 100%;
    background: var(--white);
    border: 1px solid var(--line);
    padding: clamp(9px, 1.7vw, 28px);
    box-shadow: 0 1px 0 rgba(21, 19, 15, .03), 0 24px 48px -32px rgba(21, 19, 15, .18);
    transition: box-shadow var(--slow) var(--ease), border-color var(--slow) var(--ease);
  }
  .frame__in { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--band); outline: 1px solid rgba(21, 19, 15, .06); outline-offset: -1px; }
  .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.8s var(--ease), opacity 1s var(--ease); }
  .frame img:not(.is-ready) { opacity: 0; }

  /* 거르기 · 정렬 */
  .toolbar { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: center; margin-bottom: clamp(32px, 4vw, 60px); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .seg { display: flex; flex-wrap: wrap; gap: 6px 8px; }
  .seg button { padding: 10px 22px; border: 1px solid transparent; border-radius: 999px; font-size: var(--fs-body); color: var(--ink-2); transition: color .5s, background .5s, border-color .5s; }
  .seg button:hover { border-color: var(--line-2); }
  .seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
  .seg button sup { font-size: .68em; margin-left: 5px; opacity: .65; font-variant-numeric: tabular-nums; }
  .seg--plain button { padding: 10px 6px; border-radius: 0; border: 0; border-bottom: 1px solid transparent; }
  .seg--plain button:hover { border-color: var(--line-2); }
  .seg--plain button[aria-pressed="true"] { background: none; color: var(--ink); border-bottom-color: var(--ink); }
  .seg--plain { gap: 6px 24px; }

  /* 카드 격자 — 휴대폰 2열 · 태블릿 3열 · 넓은 화면 4열 */
  .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(14px, 3vw, 56px); }
  @media (min-width: 820px)  { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  @media (min-width: 1500px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  @media (max-width: 359px)  { .grid { grid-template-columns: 1fr; } }

  /* subgrid: 옆 카드와 제품명·가격 줄이 나란히 맞습니다 */
  .card { display: grid; grid-template-rows: subgrid; grid-row: span 4; gap: 0; padding-bottom: clamp(44px, 5.5vw, 92px); min-width: 0; }
  .card a { display: grid; grid-template-rows: subgrid; grid-row: span 4; gap: 0; min-width: 0; }
  .card__cat { margin-top: clamp(14px, 1.8vw, 26px); font-size: var(--fs-small); letter-spacing: .24em; color: var(--ink-3); }
  .card__name { font-family: var(--serif-ko); font-weight: 500; font-size: clamp(1.12rem, .95rem + .6vw, 1.5rem); line-height: 1.4; margin: .3em 0 .7em; text-wrap: balance; }
  .card a:hover .frame, .card a:focus-visible .frame { border-color: var(--line-2); box-shadow: 0 1px 0 rgba(21,19,15,.03), 0 40px 60px -36px rgba(21,19,15,.32); }
  .card a:hover .frame img { transform: scale(1.035); }
  .count { margin-top: 0; text-align: center; color: var(--ink-3); font-size: var(--fs-small); letter-spacing: .2em; font-variant-numeric: tabular-nums; }

  /* ── 가격 — 이 사이트의 주인공 ── */
  .price { container-type: inline-size; font-family: var(--serif); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; line-height: 1.15; }
  .price__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
  .price__num { font-size: clamp(1.32rem, 11.4cqi, 2.15rem); font-weight: 500; letter-spacing: -.005em; white-space: nowrap; }
  .price__num small, .price__was small, .price__next small { font-family: var(--serif-ko); font-size: .62em; font-weight: 500; margin-left: .06em; }
  .price__note { font-family: var(--sans); font-size: var(--fs-small); color: var(--ink-2); }
  .price__vat { display: block; margin-top: 6px; font-family: var(--sans); font-size: var(--fs-small); color: var(--ink-3); letter-spacing: .02em; }
  .price__was { display: block; font-size: clamp(1.05rem, 7cqi, 1.35rem); color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1px; margin-bottom: 2px; white-space: nowrap; }
  .price__next { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--sans); font-size: var(--fs-small); color: var(--accent); line-height: 1.6; }
  .price__next b { font-family: var(--serif); font-size: 1.22em; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
  .price--soldout .price__num { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: var(--ink); }
  .price--surge .price__num { color: var(--accent); }

  .tag { display: inline-block; font-family: var(--sans); font-size: .86rem; font-weight: 500; letter-spacing: .2em; padding: 5px 12px 5px 14px; border: 1px solid currentColor; white-space: nowrap; line-height: 1.4; }
  .tag--sold { color: var(--ink); }
  .tag--surge { color: var(--paper); background: var(--accent); border-color: var(--accent); letter-spacing: .08em; }
  .price__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

  .price--lg .price__num { font-size: clamp(2.2rem, 12.5cqi, 4.2rem); }
  .price--lg .price__was { font-size: clamp(1.3rem, 6cqi, 1.9rem); }
  .price--lg { padding: clamp(22px, 3vw, 36px) 0; border-block: 1px solid var(--line); margin-block: clamp(22px, 3vw, 36px); }

  /* 첫 화면 대표 작품 */
  .hero__work a { display: block; }
  .hero__cap { margin-top: clamp(20px, 2.4vw, 34px); display: grid; gap: 6px; }
  .hero__cap .card__cat { margin-top: 0; }
  .hero__cap .card__name { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); margin: 0 0 .5em; }
  .hero__cap .price__num { font-size: clamp(2rem, 10cqi, 3.2rem); }

  /* 브랜드 소개 */
  .intro { display: grid; gap: clamp(36px, 4vw, 72px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); counter-reset: i; }
  .intro li { counter-increment: i; padding-top: 28px; border-top: 1px solid var(--ink); color: var(--ink-2); text-wrap: pretty; }
  .intro li::before { content: counter(i, upper-roman); display: block; font-family: var(--serif); font-size: 2rem; color: var(--ink); margin-bottom: 18px; line-height: 1; }

  /* 숫자 카드 */
  .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); border-top: 1px solid var(--ink); }
  .stats > div { padding: clamp(28px, 3vw, 48px) clamp(12px, 2vw, 32px) clamp(28px, 3vw, 48px) 0; border-bottom: 1px solid var(--line); }
  .stats dt { font-size: var(--fs-body); letter-spacing: .12em; color: var(--ink-2); }
  .stats .n { font-family: var(--serif); font-size: clamp(5rem, 3rem + 7vw, 9.5rem); line-height: 1; font-weight: 400; font-variant-numeric: lining-nums; margin: .08em 0 .12em; }
  .stats dd + dd { color: var(--ink-3); font-size: var(--fs-small); line-height: 1.7; }

  /* 기술 점수 */
  .skills { display: grid; gap: clamp(24px, 2.6vw, 38px); }
  .skills li { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: baseline; }
  .skills .nm { font-family: var(--serif-ko); font-size: 1.3rem; }
  .skills .v { font-family: var(--serif); font-size: 1.9rem; font-variant-numeric: lining-nums tabular-nums; line-height: 1; }
  .skills .bar { grid-column: 1 / -1; height: 3px; background: var(--line-2); position: relative; overflow: hidden; }
  .skills .bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--v)); transition: transform 2.2s var(--ease) .2s; }
  .skills li:not(.is-in) .bar i { transform: scaleX(0); }

  /* 브랜드 이야기 */
  .story { max-width: 34em !important; font-family: var(--serif-ko); font-size: clamp(1.2rem, 1.05rem + .6vw, 1.55rem); line-height: 2.05; color: var(--ink); text-wrap: pretty; }
  .story::first-letter { font-family: var(--serif); font-size: 4.2em; float: left; line-height: .82; padding: .08em .12em 0 0; }

  /* 고객 후기 */
  .reviews { display: grid; gap: clamp(18px, 2.4vw, 36px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
  .reviews li { background: var(--white); border: 1px solid var(--line); padding: clamp(28px, 3.4vw, 52px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
  .reviews li:first-child { grid-column: 1 / -1; }
  .reviews blockquote { margin: 0; font-family: var(--serif-ko); font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); line-height: 1.85; text-wrap: pretty; }
  .reviews li:first-child blockquote { font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem); max-width: 34em; }
  .reviews blockquote::before { content: "“"; display: block; font-family: var(--serif); font-size: 4.4rem; line-height: .7; color: var(--line-2); margin-bottom: 4px; }
  .reviews figcaption { display: flex; align-items: baseline; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
  .reviews .who { font-family: var(--serif-ko); font-weight: 600; font-size: 1.2rem; }
  .reviews .role { color: var(--ink-3); font-size: var(--fs-small); }
  .reviews figure { display: contents; }

  /* 수리 안내 · 문의 */
  .notice { max-width: 46em !important; text-align: center; border: 1px solid var(--ink); padding: clamp(36px, 6vw, 88px) clamp(22px, 5vw, 80px); position: relative; }
  .notice::after { content: ""; position: absolute; inset: 7px; border: 1px solid var(--line); pointer-events: none; }
  .notice .section__title { margin-bottom: .8em; }
  .notice p:last-child { color: var(--ink-2); text-align: left; text-wrap: pretty; }
  .contact { text-align: center; border-top: 1px solid var(--line); }
  .contact__text { max-width: 24em !important; margin-top: 1.2em !important; font-family: var(--serif-ko); font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.4rem); line-height: 1.7; text-wrap: balance; }

  /* ── 작품 상세 창 ── */
  dialog { border: 0; padding: 0; color: inherit; max-width: none; max-height: none; }
  dialog:focus { outline: none; }
  .work { width: min(100vw, 1480px); height: 100dvh; background: var(--paper); margin: auto; overflow: auto; overscroll-behavior: contain; }
  @media (min-width: 1000px) { .work { height: min(94dvh, 1040px); border: 1px solid var(--line); box-shadow: 0 60px 120px -40px rgba(21,19,15,.45); } }
  /* 상세 뒤의 막은 불투명하게 — 목록이 비쳐 보이지 않게 한다 (2026-09-21) */
  .work::backdrop { background: var(--band, #ECEAE4); }
  /* 상세에서 작품을 넘기는 동안에는 목록 카드를 화면 전환에서 뺀다 (app.js 의 vt-work) */
  html.vt-work .card { view-transition-name: none !important; }
  .zoom::backdrop { background: rgba(21, 19, 15, .42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .work__bar { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 12px clamp(16px, 3vw, 40px); background: color-mix(in oklab, var(--paper) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .work__no { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .16em; color: var(--ink-2); font-variant-numeric: lining-nums tabular-nums; }
  .icon-btn { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; transition: background .5s; }
  .icon-btn:hover { background: var(--band); }
  .icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.3; }

  .work__body { display: grid; gap: clamp(28px, 4vw, 72px); padding: clamp(20px, 3.4vw, 56px) clamp(16px, 3.4vw, 56px); grid-template-columns: minmax(0, 1fr); }
  @media (min-width: 1000px) { .work__body { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; } .work__media { position: sticky; top: 100px; } }

  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--white); border: 1px solid var(--line); padding: clamp(10px, 2vw, 26px); gap: clamp(10px, 2vw, 26px); }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery button { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; aspect-ratio: 1 / 1; background: var(--band); cursor: zoom-in; overflow: hidden; }
  .gallery img { width: 100%; height: 100%; object-fit: contain; }
  .thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
  .thumbs button { width: clamp(60px, 9vw, 92px); aspect-ratio: 1; padding: 4px; background: var(--white); border: 1px solid var(--line); opacity: .6; transition: opacity .5s, border-color .5s; }
  .thumbs button[aria-current="true"] { opacity: 1; border-color: var(--ink); }
  .thumbs img { width: 100%; height: 100%; object-fit: cover; }
  .thumbs:has(button:only-child) { display: none; }

  .work__name { font-family: var(--serif-ko); font-weight: 500; font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.1rem); line-height: 1.3; margin-top: .3em; text-wrap: balance; }
  .spec { display: grid; grid-template-columns: auto 1fr; gap: 10px 28px; margin-bottom: clamp(22px, 3vw, 36px); font-size: var(--fs-body); }
  .spec dt { color: var(--ink-3); }
  .spec dd { font-family: var(--serif); font-size: 1.22em; line-height: 1.5; }
  .spec dd.ko { font-family: var(--sans); font-size: 1em; line-height: 1.85; }
  .work__desc { color: var(--ink-2); line-height: 2; text-wrap: pretty; }

  .work__nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: clamp(20px, 3vw, 48px); }
  .pager { display: grid; gap: 4px; padding: clamp(20px, 2.6vw, 36px) clamp(16px, 3.4vw, 56px); transition: background .6s; min-width: 0; }
  .pager:hover { background: var(--band); }
  .pager--next { text-align: right; border-left: 1px solid var(--line); }
  .pager__dir { font-size: var(--fs-small); letter-spacing: .16em; color: var(--ink-3); }
  .pager__name { font-family: var(--serif-ko); font-size: 1.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* 사진 확대 */
  .zoom { width: 100vw; height: 100dvh; background: var(--paper); }
  .zoom__close { position: fixed; top: 14px; right: 14px; z-index: 2; background: var(--white); border: 1px solid var(--line); }
  .zoom__stage { width: 100%; height: 100%; overflow: auto; display: grid; place-items: center; cursor: zoom-in; overscroll-behavior: contain; }
  .zoom__stage img { max-width: 100vw; max-height: 100dvh; object-fit: contain; }
  .zoom__stage.is-big { cursor: zoom-out; place-items: start; }
  .zoom__stage.is-big img { max-width: none; max-height: none; width: max(200vw, 200vh); }

  [hidden] { display: none !important; }
}

/* ───────── motion — 느리고 부드럽게, 서서히 나타나는 정도만 ───────── */
@layer motion {
  @keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  @keyframes veil { from { opacity: 0; } to { opacity: 1; } }

  @media (prefers-reduced-motion: no-preference) {
    .hero__text > *, .hero__work { animation: rise 1.6s var(--ease) both; }
    .hero__text > :nth-child(2) { animation-delay: .12s; }
    .hero__text > :nth-child(3) { animation-delay: .3s; }
    .hero__text > :nth-child(4) { animation-delay: .45s; }
    .hero__work { animation-delay: .35s; }

    /* 최신 브라우저: 스크롤에 맞춰 나타남 (CSS scroll-driven animation) */
    @supports (animation-timeline: view()) {
      .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 38%; }
    }
    /* 그 밖의 브라우저: app.js 의 IntersectionObserver 가 .is-in 을 붙임 */
    @supports not (animation-timeline: view()) {
      .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
      .reveal.is-in { opacity: 1; transform: none; }
    }

    ::view-transition-group(*) { animation-duration: .9s; animation-timing-function: var(--ease); }
    ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .6s; }
    dialog[open] { animation: rise .8s var(--ease) both; }
    /* 상세: ① 막이 먼저 목록을 완전히 덮고(0.35초) ② 그다음 상세가 올라온다 */
    .work[open]::backdrop { animation: veil .35s ease-out both; }
    .work[open] { animation-delay: .35s; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  }
}
