/* Haein Atelier · site.css (4.1, 한지·기와)
   Tokens live in :root and nowhere else holds a raw colour (CLAUDE.md rule 4).
   Effects only reveal a work and end on the untouched picture (rule 3).
   With prefers-reduced-motion every effect shows its last frame (rule 5).
   4.1 (the founder's mix of options B and C, design/options-5): a page is 한지 paper from top to foot, and only
   its footer is dark, the charcoal of a fired roof tile (기와). The 쪽빛 indigo of 4.0 stays on the invitation's
   cover alone. 금니 gold is a line, never text on paper (--gold-ink is the gold that may be text). Works hang whole with a wall label each; the brush (붓길) opens the first
   work of a page by lifting a cover in the wall's own colour, and gold rules (계선) draw beside the works in a room. */

:root {
  /* 한지 and ink: the day side (docs/brand/v3-brief.md, section 2) */
  --paper: #F5F2E9;
  --paper-2: #EDE8DB;
  --paper-3: #E3DCCB;
  --ink: #1B1A17;
  --ink-soft: #4A4842;
  --ink-mute: #6E6A61;
  /* the same grey a shade darker, for the tinted --paper-2 bands: there --ink-mute is 4.4:1, under the 4.5:1 small text needs */
  --ink-mute-2: #656158;
  --hair: #D8D1C0;
  /* 쪽빛: the indigo of dyed silk. In 4.1 it is the invitation's cover alone (.inv, below) */
  --indigo: #1F3157;
  --indigo-2: #2A4070;
  --indigo-deep: #182744;
  --indigo-ink: #ECE6D8;
  --indigo-mute: #AEB6C6;
  /* 4.1: the bands that were indigo (the opening band, the menu, the viewing room, the 대상작 stage) are paper.
     The names stay --night-* so every rule that used them now reads paper and ink. */
  --night: var(--paper);
  --night-2: var(--paper-2);
  --night-deep: var(--paper);
  --night-ink: var(--ink);
  --night-mute: var(--ink-soft);
  /* 기와: the footer's ground, the grey of a fired roof tile, and the words on it
     (on --giwa: --giwa-ink 8.3:1, --giwa-soft 6.6:1, --giwa-mute 5.3:1; the faded language button at .7 is 5.0:1) */
  --giwa: #3A3E41;
  --giwa-ink: #E6E1D6;
  --giwa-soft: #CFCAC0;
  --giwa-mute: #B9B6AE;
  --giwa-hair: rgba(230, 225, 214, .14);
  /* the focus ring of the bands: ink on paper (the invitation's indigo takes the gold) */
  --band-focus: var(--ink);
  /* 금니: the gold written on it; --gold-ink is the gold that may be text on paper */
  --gold: #B8975A;
  --gold-ink: #80612E;
  /* 인주, used rarely */
  --seal: #A63A2E;
  --wood: #2E2119;
  --wood-2: #5B4331;
  /* alpha forms of the same colours */
  --ink-a08: rgba(27, 26, 23, .08);
  --ink-a14: rgba(27, 26, 23, .14);
  --ink-a40: rgba(27, 26, 23, .4);
  --paper-a92: rgba(245, 242, 233, .92);
  --indigo-a0: rgba(31, 49, 87, 0);
  --indigo-a80: rgba(31, 49, 87, .8);
  --indigo-a92: rgba(31, 49, 87, .92);
  --indigo-ink-a12: rgba(236, 230, 216, .12);
  --indigo-ink-a24: rgba(236, 230, 216, .24);
  --indigo-ink-a60: rgba(236, 230, 216, .6);
  --indigo-deep-a0: rgba(24, 39, 68, 0);
  --indigo-deep-a70: rgba(24, 39, 68, .7);
  --night-a0: rgba(245, 242, 233, 0);
  --night-a80: rgba(245, 242, 233, .8);
  --night-a92: rgba(245, 242, 233, .92);
  --night-ink-a12: rgba(27, 26, 23, .12);
  --night-ink-a24: rgba(27, 26, 23, .24);
  --night-ink-a60: rgba(27, 26, 23, .6);
  --gold-a16: rgba(184, 151, 90, .16);
  --gold-a40: rgba(184, 151, 90, .4);
  --deep-a0: rgba(245, 242, 233, 0);
  --deep-a70: rgba(245, 242, 233, .7);
  --light-a10: rgba(255, 244, 222, .10);
  --light-a0: rgba(255, 244, 222, 0);
  /* the v2 names, kept as aliases until every file has moved to the night tokens */
  --pond: var(--night);
  --pond-2: var(--night-2);
  --pond-deep: var(--night-deep);
  --pond-ink: var(--night-ink);
  --pond-mute: var(--night-mute);
  --ochre: var(--gold);
  --pond-a0: var(--night-a0);
  --pond-ink-a12: var(--night-ink-a12);
  --pond-ink-a24: var(--night-ink-a24);
  --pond-ink-a60: var(--night-ink-a60);
  --shadow-work: 0 1px 2px rgba(28, 31, 30, .08), 0 18px 40px -18px rgba(28, 31, 30, .35);
  --shadow-deep: 0 2px 6px rgba(0, 0, 0, .3), 0 40px 80px -30px rgba(0, 0, 0, .7);
  --shadow-dark: var(--shadow-work);
  /* paper grain: fine noise and long fibres, drawn as a background only, never over a work */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .24' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)' opacity='.1'/%3E%3Crect width='220' height='220' filter='url(%23f)' opacity='.06'/%3E%3C/svg%3E");
  /* type */
  --f-display: "Cormorant Garamond", "Noto Serif KR", "Nanum Myeongjo", serif;
  --f-serif: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", serif;
  --f-sans: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  /* motion and layout */
  --ease: cubic-bezier(.22, .61, .36, 1);
  /* the research report's motion tokens: feedback, panels, one-time reveals */
  --ease-ui: cubic-bezier(.4, 0, .2, 1);
  --ease-panel: cubic-bezier(.645, .045, .355, 1);
  --ease-reveal: cubic-bezier(.19, 1, .22, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --hd: 72px;
  --focus: var(--seal);
  color-scheme: light;
}
/* the invitation keeps its 쪽빛 cover (inyeon.css): there the --night-* names point back at the indigo */
.inv {
  --night: var(--indigo); --night-2: var(--indigo-2); --night-deep: var(--indigo-deep);
  --night-ink: var(--indigo-ink); --night-mute: var(--indigo-mute);
  --night-a0: var(--indigo-a0); --night-a80: var(--indigo-a80); --night-a92: var(--indigo-a92);
  --night-ink-a12: var(--indigo-ink-a12); --night-ink-a24: var(--indigo-ink-a24); --night-ink-a60: var(--indigo-ink-a60);
  --deep-a0: var(--indigo-deep-a0); --deep-a70: var(--indigo-deep-a70);
  --shadow-dark: var(--shadow-deep);
  --band-focus: var(--gold);
}

@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute always wins: a class that sets display (.form, .field, .btn, .btns) would otherwise beat
   the browser's own [hidden] rule, and a sent form would stay on screen. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--paper);
  background-image: var(--grain);
  color: var(--ink);
  font: 400 17px/1.75 var(--f-serif);
  word-break: keep-all;
  text-autospace: normal;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
:root[data-lang="en"] body { font-family: var(--f-display); font-size: 19.5px; line-height: 1.6; font-variant-numeric: oldstyle-nums proportional-nums; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .28em; }
p, ul, ol, dl, figure, blockquote, h1, h2, h3, h4 { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 400; text-wrap: balance; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }
abbr[title] { text-decoration: none; }

/* language: both are on the page, one is shown (assets/lang.js sets data-lang before paint) */
:root:not([data-lang="en"]) [lang="en"] { display: none !important; }
:root[data-lang="en"] [lang="ko"] { display: none !important; }

/* ---------- helpers ---------- */
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--mid { max-width: calc(1040px + 2 * var(--gutter)); }
.wrap--narrow { max-width: calc(760px + 2 * var(--gutter)); }
.skip {
  position: absolute; left: var(--gutter); top: -120px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 15px 18px;
  font: 500 14px/1 var(--f-sans); text-decoration: none;
}
.skip:focus { top: 12px; }
.vh {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
html:not(.js) .js-only { display: none !important; }
.js .no-js { display: none !important; }
.on-dark { --focus: var(--band-focus); color: var(--night-ink); }

/* the eyebrow (v3-brief §3): a hairline, then a few words; --gold-ink on paper, --gold only on the invitation's indigo */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font: 500 11.5px/1.5 var(--f-sans); letter-spacing: .18em; color: var(--gold-ink);
}
.eyebrow::before { content: ""; flex: none; width: 28px; height: 1px; background: currentColor; opacity: .8; }
.eyebrow--plain::before { display: none; }
:root[data-lang="en"] .eyebrow { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; }
.inv .on-dark .eyebrow { color: var(--gold); }
/* a section number inside an eyebrow: "—— 01  작가" */
.eyebrow__n { font: 400 13px/1 var(--f-display); letter-spacing: .08em; font-variant-numeric: lining-nums tabular-nums; text-transform: none; color: var(--ink-soft); }
.on-dark .eyebrow__n { color: var(--night-ink); }

.h-sec { font: 300 clamp(28px, 3.5vw, 48px)/1.35 var(--f-serif); letter-spacing: -.005em; margin-top: 18px; }
:root[data-lang="en"] .h-sec { font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 4.4vw, 62px); line-height: 1.08; }
.lead { font-size: clamp(16.5px, 1.35vw, 19px); color: var(--ink-soft); max-width: 36em; text-wrap: pretty; }
:root[data-lang="en"] .lead { font-size: clamp(20px, 1.6vw, 23px); line-height: 1.5; } /* Cormorant runs small: never below the body */
.on-dark .lead { color: var(--night-mute); }
.h-sec + .lead { margin-top: clamp(18px, 2.2vw, 26px); }
.small { font: 400 13px/1.7 var(--f-sans); color: var(--ink-mute); }
.on-dark .small { color: var(--night-mute); }
.sec { padding-block: clamp(88px, 12vw, 176px); }
.sec__head { margin-bottom: clamp(40px, 6vw, 80px); }
.sec__head--split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.sec--after-ph { padding-top: clamp(16px, 3vw, 40px); } /* the first section under a page head */
.sec--top0 { padding-top: 0; }                         /* follows a section on the same paper */
.sec--tint { background: var(--paper-2); }
/* on a --paper-2 ground the small grey text takes the darker grey: 5.0:1 there, and 4.5:1 even on --paper-3 */
.sec--tint, .gp__mat, .words, .rail__mat, .loop, .news__item a:hover, .news__item--atelier a, .cta, .fallback, .nojs-card, .gp-show { --ink-mute: var(--ink-mute-2); }

/* buttons: ink rises into the button like ink into paper */
.btn {
  --btn-fg: var(--ink); --btn-bg: var(--paper);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .8em;
  min-height: 50px; padding: 14px 28px;
  border: 1px solid var(--btn-fg); border-radius: 0; background: transparent; color: var(--btn-fg);
  font: 500 13px/1.2 var(--f-sans); letter-spacing: .08em; text-decoration: none; cursor: pointer;
  transition: color .25s var(--ease-ui);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--btn-fg);
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform .25s var(--ease-ui);
}
.btn:hover, .btn:focus-visible { color: var(--btn-bg); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn--solid { background: var(--btn-fg); color: var(--btn-bg); }
.btn--solid::before { background: var(--btn-bg); }
.btn--solid:hover, .btn--solid:focus-visible { color: var(--btn-fg); }
.on-dark .btn, .btn--light { --btn-fg: var(--night-ink); --btn-bg: var(--night); }
:root[data-lang="en"] .btn { letter-spacing: .16em; text-transform: uppercase; font-size: 11.5px; }
.btn__arrow { display: inline-block; transition: transform .25s var(--ease-ui); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

.more {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12.5px/1.4 var(--f-sans); letter-spacing: .08em; text-decoration: none;
  padding-block: 8px; border-bottom: 1px solid currentColor;
}
.more::after { content: "→"; transition: transform .25s var(--ease-ui); }
.more:hover::after { transform: translateX(4px); }
.more--out::after { content: "↗"; }
:root[data-lang="en"] .more { letter-spacing: .16em; text-transform: uppercase; font-size: 11px; }

/* ---------- the wordmark: the house's name in type and nothing else (BRAND.md §6) ----------
   4.1: the site's header and menu set HAEIN ATELIER alone, in Cormorant Garamond capitals (.wm--en), in both
   languages. The invitation's own header keeps 해인 아틀리에, a hairline, HAEIN ATELIER. No symbol, no stamp shape:
   artists' own sites set the name, small, with no tagline (docs/research, official_artist_websites.md). */
.wm { display: inline-flex; align-items: center; gap: 13px; white-space: nowrap; line-height: 1; }
.wm__ko { font: 500 21px/1 var(--f-serif); letter-spacing: .14em; margin-right: -.14em; }
.wm__rule { flex: none; width: 1px; height: 18px; background: currentColor; opacity: .45; }
.wm__en { font: 500 11.5px/1 var(--f-display); letter-spacing: .34em; margin-right: -.34em; text-transform: uppercase; padding-top: 1px; }
.wm--en .wm__en { font-size: 14px; letter-spacing: .32em; margin-right: -.32em; }
/* first page of a visit: 해인 아틀리에 settles, the hairline draws, HAEIN ATELIER is written in from the left (lang.js adds .wm-intro).
   All of it is over by 1.5 s and it never holds anything back: the research asks that an intro, if any, stay well under two seconds */
@media (prefers-reduced-motion: no-preference) {
  .wm-intro .hd .wm__ko { animation: wm-settle 1s var(--ease-reveal) .05s both; }
  .wm-intro .hd .wm__rule { animation: wm-rule .7s var(--ease-reveal) .3s both; }
  .wm-intro .hd .wm__en { animation: wm-write 1.1s var(--ease-reveal) .4s both; }
  .wm-intro .hd .wm--en .wm__en { animation-delay: .05s; }
}
@keyframes wm-settle { from { opacity: .15; transform: translateY(6px); } }
@keyframes wm-rule { from { transform: scaleY(0); } }
@keyframes wm-write { from { opacity: .2; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 -1em 0 0); } }

/* ---------- header ---------- */
.hd {
  position: absolute; inset: 0 0 auto; z-index: 40; color: var(--ink);
  transition: background-color .4s var(--ease-panel), color .4s var(--ease-panel), box-shadow .4s var(--ease-panel), transform .4s var(--ease-panel);
}
.js .hd { position: fixed; }
.hd__in { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); min-height: var(--hd); }
.hd__mark { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; text-decoration: none; }
.hd__nav { display: flex; align-items: center; gap: clamp(20px, 2.2vw, 34px); }
/* each link is a 44 px box; the side padding is taken back by the margin, so the words and the gaps do not move */
.hd__nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; margin-inline: -10px; text-decoration: none; white-space: nowrap;
  font: 500 12.5px/1 var(--f-sans); letter-spacing: .08em;
}
:root[data-lang="en"] .hd__nav a { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.hd__nav a::after {
  content: ""; position: absolute; left: 10px; right: 10px; top: calc(50% + .5em + 5px); height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform .25s var(--ease-ui);
}
.hd__nav a:hover::after, .hd__nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: 0 50%; }
.lang { display: flex; align-items: center; gap: 2px; font: 500 11.5px/1 var(--f-sans); letter-spacing: .08em; }
.lang button {
  appearance: none; background: none; border: 0; cursor: pointer;
  min-height: 44px; min-width: 44px; padding: 0 8px; opacity: .7; transition: opacity .2s var(--ease-ui);
}
/* the language not in use is faded to .7, which still reads at 4.5:1 or more on paper and on the indigo */
.lang button:hover { opacity: .9; }
.lang button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: .5em; }
.lang__sep { opacity: .7; }
.hd__menu {
  display: none; appearance: none; background: none; border: 0; cursor: pointer;
  min-height: 44px; padding: 0 0 0 6px; align-items: center; gap: 10px;
  font: 500 12px/1 var(--f-sans); letter-spacing: .12em;
}
.hd__burger { position: relative; width: 22px; height: 9px; }
.hd__burger::before, .hd__burger::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; }
.hd__burger::before { top: 0; }
.hd__burger::after { bottom: 0; }
/* pages that open on a band (home, the 대상작 page) keep the band's header colours until it scrolls:
   since 4.1 that is ink on paper, and only the invitation's indigo turns it light (inyeon.css) */
.home .hd:not(.is-scrolled), .dark-top .hd:not(.is-scrolled) { color: var(--night-ink); --focus: var(--band-focus); }
.hd.is-scrolled { background: var(--paper-a92); box-shadow: 0 1px 0 var(--hair); -webkit-backdrop-filter: saturate(1.1) blur(12px); backdrop-filter: saturate(1.1) blur(12px); }
.room-page.dark-top .hd.is-scrolled { background: var(--night-a92); color: var(--night-ink); box-shadow: 0 1px 0 var(--night-ink-a12); --focus: var(--band-focus); }
.hd.is-hidden { transform: translateY(-100%); }

@media (max-width: 899.98px) {
  .js .hd__nav { display: none; }
  .js .hd__menu { display: inline-flex; }
  html:not(.js) .hd__in { flex-wrap: wrap; row-gap: 0; padding-block: 10px; }
  html:not(.js) .hd__nav { order: 3; width: calc(100% + 20px); margin-inline: -10px; padding-inline: 10px; overflow-x: auto; gap: 22px; scrollbar-width: none; }
}
/* phones: the mark, KO / EN and the word 메뉴 must share 343 px. HAEIN ATELIER fits as it is; the invitation's
   two-part mark shows the half in the page's language (해인 아틀리에, or HAEIN ATELIER) */
@media (max-width: 479.98px) {
  .hd__in { gap: 10px; }
  .hd .wm__rule, .menu .wm__rule { display: none; }
  :root:not([data-lang="en"]) .hd .wm:not(.wm--en) .wm__en, :root:not([data-lang="en"]) .menu .wm:not(.wm--en) .wm__en { display: none; }
  :root[data-lang="en"] .hd .wm__ko, :root[data-lang="en"] .menu .wm__ko { display: none; }
  .hd .wm__ko, .menu .wm__ko { font-size: 19px; }
  .hd .wm__en, .menu .wm__en { font-size: 13px; letter-spacing: .3em; margin-right: -.3em; }
  .hd .wm--en .wm__en, .menu .wm--en .wm__en { letter-spacing: .28em; margin-right: -.28em; }
  .hd__menu { min-width: 44px; padding: 0; justify-content: flex-end; }
  .hd__burger { display: none; }
}

/* the menu overlay on phones */
.menu {
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column;
  padding: 0 var(--gutter) max(28px, env(safe-area-inset-bottom));
  background-color: var(--night); color: var(--night-ink); --focus: var(--band-focus);
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease-panel), visibility 0s linear .45s;
  overflow-y: auto; overscroll-behavior: contain;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease-panel); }
.menu__top { display: flex; align-items: center; justify-content: space-between; min-height: var(--hd); }
.menu__close {
  appearance: none; background: none; border: 0; cursor: pointer; min-height: 44px; padding: 0;
  font: 500 12px/1 var(--f-sans); letter-spacing: .12em; display: inline-flex; align-items: center; gap: 10px;
}
.menu__x { position: relative; width: 18px; height: 18px; }
.menu__x::before, .menu__x::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 1px; background: currentColor; transform: rotate(45deg); }
.menu__x::after { transform: rotate(-45deg); }
.menu__nav { margin-top: clamp(24px, 8vh, 72px); }
.menu__nav a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--night-ink-a12); text-decoration: none;
  font: 300 28px/1.3 var(--f-serif);
}
:root[data-lang="en"] .menu__nav a { font-family: var(--f-display); font-size: 32px; font-weight: 400; }
.menu__nav a small { font: 500 10.5px/1 var(--f-sans); letter-spacing: .2em; color: var(--night-mute); }
.menu__foot { margin-top: auto; padding-top: 32px; display: grid; gap: 6px; color: var(--night-mute); font: 400 13px/1.7 var(--f-sans); }
.menu__foot a { color: var(--night-ink); display: inline-flex; align-items: center; min-height: 44px; justify-self: start; }
.menu__foot .lang { color: var(--night-ink); }
.menu.is-open .menu__nav li { animation: menuIn .5s var(--ease-panel) both; }
.menu.is-open .menu__nav li:nth-child(2) { animation-delay: .05s; }
.menu.is-open .menu__nav li:nth-child(3) { animation-delay: .1s; }
.menu.is-open .menu__nav li:nth-child(4) { animation-delay: .15s; }
.menu.is-open .menu__nav li:nth-child(5) { animation-delay: .2s; }
.menu.is-open .menu__nav li:nth-child(6) { animation-delay: .25s; }
.menu.is-open .menu__nav li:nth-child(7) { animation-delay: .3s; }
@keyframes menuIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
html.menu-open { overflow: hidden; }

/* ---------- hero: her name, and one work whole on the night wall ---------- */
/* the wall is one flat colour (--wall), so the brush cover over the work matches what is around it */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  --wall: var(--night); background-color: var(--wall); color: var(--night-ink); --focus: var(--band-focus);
  min-height: 100vh; min-height: 100svh; display: grid; align-items: center;
  padding: calc(var(--hd) + clamp(28px, 5vh, 64px)) 0 clamp(64px, 9vh, 112px);
}
.hero__in { display: grid; gap: clamp(40px, 6vh, 64px); align-items: center; }
.hero__text { display: grid; justify-items: start; min-width: 0; }
/* the lockup (v3-brief §3): 해인 배상희 in Noto Serif KR 300, a little tracked; Haein Sanghee Bae in Cormorant italic */
.lockup { margin: 24px 0 0; display: grid; gap: 12px; }
.lockup__ko { font: 300 clamp(38px, 10.4vw, 50px)/1.15 var(--f-serif); letter-spacing: .16em; margin-right: -.16em; }
.lockup__en { font: italic 300 clamp(22px, 5.6vw, 28px)/1.2 var(--f-display); letter-spacing: .03em; color: var(--night-mute); }
.lockup__rule { display: block; width: 56px; height: 1px; background: var(--gold); margin: clamp(26px, 3.4vw, 40px) 0 18px; }
.lockup__award { max-width: 26em; font: 400 13.5px/1.75 var(--f-sans); letter-spacing: .05em; color: var(--night-mute); }
:root[data-lang="en"] .lockup__award { font: italic 400 18px/1.5 var(--f-display); letter-spacing: .01em; }
.hero__btns { margin-top: clamp(30px, 4vw, 44px); }
.hero__work { margin: 0; justify-self: center; width: min(100%, calc(60vh * var(--ar))); width: min(100%, calc(60svh * var(--ar))); }
.hero__link { display: block; }
.hero__img { width: 100%; box-shadow: var(--shadow-dark); }
.wl--hero { margin-top: 20px; }
@media (min-width: 900px) {
  .hero__in { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 112px); }
  .lockup__ko { font-size: clamp(40px, 4.2vw, 64px); }
  .lockup__en { font-size: clamp(24px, 2.1vw, 32px); }
  .hero__work { justify-self: end; width: min(100%, calc(70vh * var(--ar))); width: min(100%, calc(70svh * var(--ar))); }
}
/* the scroll cue (the invitation's cover uses it) */
.hero__cue {
  position: absolute; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 44px;
  font: 500 10px/1 var(--f-sans); letter-spacing: .3em; color: var(--night-mute); text-decoration: none;
}
.hero__cue::after { content: ""; width: 1px; height: 46px; background: linear-gradient(currentColor, transparent); transform-origin: 50% 0; animation: cue 1.2s var(--ease-reveal) .4s both; }
@keyframes cue { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: .8; } }
@media (max-height: 560px) and (orientation: landscape) {
  .hero { padding-bottom: 72px; }
  .hero__cue { display: none; }
}

/* ---------- the facts beside a work or a show: caption, gloss, meta, days to the opening ---------- */
.feature__cap { margin-top: 14px; font: 400 12px/1.6 var(--f-sans); color: var(--ink-mute); }
.feature__gloss { margin-top: 10px; font: italic 300 20px/1.4 var(--f-display); color: var(--ink-soft); }
.feature__gloss [lang="ko"] { font: 400 16px/1.6 var(--f-serif); letter-spacing: .14em; } /* no faux italic on Hangul */
.meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px 24px; margin: 30px 0 34px; padding-top: 24px; border-top: 1px solid var(--hair); }
.meta dt { font: 500 11px/1.9 var(--f-sans); letter-spacing: .1em; color: var(--ink-mute); white-space: nowrap; }
:root[data-lang="en"] .meta dt { text-transform: uppercase; letter-spacing: .2em; font-size: 10px; line-height: 2.2; }
.meta dd { margin: 0; font-size: 16px; line-height: 1.7; }
.dday {
  display: inline-flex; align-items: baseline; gap: 10px; margin-top: 18px;
  font: 300 15px/1 var(--f-sans); letter-spacing: .12em; color: var(--ink-soft);
}
.dday__n { font: 300 clamp(30px, 3vw, 40px)/1 var(--f-display); letter-spacing: .02em; color: var(--ink); font-variant-numeric: lining-nums; }

/* ---------- home: the 대상작, the press photograph whole in a wide mat ---------- */
.gp__in { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
.gp__fig { margin: 0; justify-self: center; width: min(100%, 520px); }
.gp__mat { display: grid; place-items: center; padding: clamp(28px, 6vw, 60px); background-color: var(--paper-2); }
.gp__img { width: min(100%, 400px); box-shadow: var(--shadow-work); }
.gp__credit { margin-top: 12px; font: 400 12px/1.6 var(--f-sans); color: var(--ink-mute); }
.gp__credit a { color: inherit; }
.gp__title { font-size: clamp(34px, 4.4vw, 60px); letter-spacing: .04em; }
:root[data-lang="en"] .gp__title { font-size: clamp(38px, 4.8vw, 68px); letter-spacing: 0; }
@media (min-width: 900px) { .gp__in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(56px, 7vw, 128px); } }

/* ---------- home: her words, line for line as she said them ---------- */
.words { background-color: var(--paper-2); }
.words__in { display: grid; justify-items: center; text-align: center; }
.words__k::after { content: ""; flex: none; width: 28px; height: 1px; background: currentColor; opacity: .8; }
.verse { margin: clamp(32px, 4vw, 48px) 0 0; display: grid; gap: 1.4em; font: 300 clamp(19px, 2vw, 25px)/1.9 var(--f-serif); color: var(--ink); }
.verse span { display: block; text-wrap: balance; }
:root[data-lang="en"] .verse { font: italic 300 clamp(22px, 2.4vw, 30px)/1.5 var(--f-display); gap: 1.1em; }
.verse__by { margin-top: clamp(32px, 4vw, 44px); font: 400 12.5px/1.7 var(--f-sans); letter-spacing: .06em; color: var(--ink-mute); }

/* ---------- home: the eight rooms, one work from each ---------- */
/* phones: a row to swipe, each work whole on a mat of one size; from 900 px, four to a row */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(64vw, 300px); gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin;
  margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 12px; scroll-padding-inline: var(--gutter);
}
.rail__item { min-width: 0; scroll-snap-align: start; }
.rail__card { display: grid; gap: 6px; color: inherit; text-decoration: none; }
.rail__mat { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; margin-bottom: 12px; background-color: var(--paper-2); }
.rail__mat img { width: min(82%, calc(var(--ar) * 102.5%)); box-shadow: var(--shadow-work); }
.rail__no { font: 400 14px/1 var(--f-display); letter-spacing: .16em; color: var(--gold-ink); font-variant-numeric: lining-nums tabular-nums; }
.rail__name { font: 400 clamp(19px, 1.6vw, 22px)/1.4 var(--f-serif); }
:root[data-lang="en"] .rail__name { font: 400 clamp(22px, 1.9vw, 26px)/1.25 var(--f-display); }
.rail__line { font-size: 14px; line-height: 1.65; color: var(--ink-soft); }
:root[data-lang="en"] .rail__line { font-style: italic; font-size: 17px; line-height: 1.45; }
.rail__count { font: 500 11px/1.6 var(--f-sans); letter-spacing: .14em; color: var(--ink-mute); }
.rail__card:hover .rail__name, .rail__card:focus-visible .rail__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.rail__all { margin-top: clamp(36px, 5vw, 56px); }
@media (min-width: 900px) {
  .rail { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(48px, 5vw, 72px) clamp(20px, 2.4vw, 36px); overflow: visible; margin-inline: 0; padding: 0; scroll-snap-type: none; }
}

/* ---------- home: the atelier, a quiet loop of the studio, on paper (v4-brief, section 1) ---------- */
.atl__in { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
.atl__media { position: relative; margin: 0; justify-self: center; width: min(100%, 420px); }
/* studio footage, not a work: the box has the film's own shape, so nothing is cut */
.loop { width: 100%; height: auto; aspect-ratio: 814 / 1018; object-fit: contain; background-color: var(--paper-2); }
/* its pause control, added by site.js only once the loop plays (WCAG 2.2.2) */
.loop__ctl {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px 0 14px;
  border: 1px solid var(--night-ink-a24); border-radius: 999px;
  background: var(--night-a80); color: var(--night-ink);
  font: 500 11.5px/1 var(--f-sans); letter-spacing: .12em; cursor: pointer;
  transition: border-color .3s var(--ease-ui);
}
.loop__ctl[hidden] { display: none; }
.loop__ctl:hover { border-color: var(--night-ink-a60); }
:root[data-lang="en"] .loop__ctl { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; }
.loop__ico { display: block; width: 8px; height: 10px; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
.loop__ico--play { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 9px; border-color: transparent transparent transparent currentColor; }
.atl__text > p:not(.eyebrow) { margin-top: clamp(18px, 2.2vw, 26px); max-width: 32em; color: var(--ink-soft); }
.atl__text > p:last-child { margin-top: 30px; }
@media (min-width: 900px) { .atl__in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(56px, 7vw, 128px); } }

/* ---------- home: the coming exhibition ---------- */
.show__in { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
.show__fig { margin: 0; }
.show__img { width: 100%; box-shadow: var(--shadow-work); }
.show__cap { margin-top: 14px; font: 400 12px/1.6 var(--f-sans); color: var(--ink-mute); }
.show__title { font-size: clamp(44px, 6vw, 88px); line-height: 1.15; letter-spacing: .06em; }
:root[data-lang="en"] .show__title { font-size: clamp(48px, 6.4vw, 96px); line-height: 1.02; letter-spacing: .01em; }
.show__gloss { margin-top: 12px; font: 400 16px/1.6 var(--f-serif); letter-spacing: .14em; color: var(--ink-soft); }
:root[data-lang="en"] .show__gloss { font: italic 400 20px/1.4 var(--f-display); letter-spacing: .01em; }
.show .btns { margin-top: 28px; }
@media (min-width: 900px) { .show__in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(56px, 7vw, 128px); } }

/* ---------- news ---------- */
.news { border-top: 1px solid var(--hair); }
.news__item a {
  display: grid; gap: 6px 28px; padding: 24px 0; border-bottom: 1px solid var(--hair); text-decoration: none;
  transition: background-color .25s var(--ease-ui);
}
.news__item a:hover { background-color: var(--paper-2); }
.news__meta { font: 500 11.5px/1.6 var(--f-sans); letter-spacing: .08em; color: var(--ink-mute); display: flex; gap: 14px; flex-wrap: wrap; }
.news__title { font: 400 clamp(17px, 1.7vw, 22px)/1.55 var(--f-serif); }
.news__title::after { content: " ↗"; font-family: var(--f-sans); font-size: .8em; color: var(--ink-mute); }
.news__note { font: 400 13px/1.7 var(--f-sans); color: var(--ink-mute); }
.news__item--atelier a { background-color: var(--paper-2); padding-inline: 20px; }
.news__item--atelier .news__title::after { content: " →"; }
@media (min-width: 900px) {
  .news__item a { grid-template-columns: 220px 1fr; align-items: baseline; padding: 28px 8px; }
  .news__item--atelier a { padding-inline: 24px; }
  .news__body { display: grid; gap: 6px; }
}
/* the news page: one list per year */
.news--page { margin-top: 22px; }
.news__year { margin-top: clamp(40px, 5vw, 64px); font: 300 clamp(26px, 2.6vw, 34px)/1 var(--f-display); font-variant-numeric: lining-nums tabular-nums; color: var(--ink-soft); }
.news__year + .news--page { margin-top: 16px; }

/* ---------- call to the atelier: raised paper, with room to breathe above and below (4.0 feedback, p. 14) ---------- */
.cta { background-color: var(--paper-2); text-align: center; padding-block: clamp(112px, 15vw, 216px); }
.cta__in { display: grid; justify-items: center; }
.cta__title { margin: 18px auto 0; max-width: 16em; font: 300 clamp(28px, 4vw, 54px)/1.4 var(--f-serif); }
:root[data-lang="en"] .cta__title { font-family: var(--f-display); font-size: clamp(34px, 4.6vw, 64px); line-height: 1.12; }
.cta .lead { margin: 22px auto 0; }
.cta .btns { justify-content: center; margin-top: 40px; }

/* ---------- footer: 기와 (4.1, the founder's mix of options B and C, design/options-5) ----------
   The one dark band of a page: the charcoal of a fired roof tile, with 금니 gold for its hairlines only. It holds
   the inquiry line, three columns (the exhibition, contact, the site), the house's name in English capitals as wide
   as the text column, one line on whose atelier this is, and the bar. The name's size is a share of its own column
   (cqi); overflow-x: clip keeps a wider fallback font inside the page, so a phone never scrolls sideways. */
.ft {
  overflow-x: clip; background-color: var(--giwa); color: var(--giwa-soft); --focus: var(--giwa-ink);
  padding: clamp(64px, 9vw, 120px) 0 max(22px, env(safe-area-inset-bottom));
  font: 400 13.5px/1.8 var(--f-sans);
}
.ft a { color: var(--giwa-ink); }
.ft__ask { display: grid; justify-items: start; gap: 12px; padding-bottom: clamp(40px, 5.4vw, 72px); }
.ft__ask-t { max-width: 22em; font: 300 clamp(24px, 3vw, 40px)/1.4 var(--f-serif); letter-spacing: .02em; color: var(--giwa-ink); text-wrap: balance; }
:root[data-lang="en"] .ft__ask-t { font: 300 clamp(30px, 3.7vw, 52px)/1.14 var(--f-display); letter-spacing: 0; }
.ft__ask-a { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; font: 500 13px/1 var(--f-sans); letter-spacing: .12em; text-decoration: none; }
/* the underline runs under the words only, in 금니; the arrow stands after them */
.ft__ask-a > [lang] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .55em; text-decoration-color: var(--gold); }
.ft__ask-a:hover > [lang], .ft__ask-a:focus-visible > [lang] { text-decoration-color: currentColor; }
:root[data-lang="en"] .ft__ask-a { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; }
.ft__cols { display: grid; gap: 30px; padding-top: clamp(30px, 3.6vw, 48px); border-top: 1px solid var(--gold); }
@media (min-width: 720px) { .ft__cols { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); } }
.ft__h { margin-bottom: 10px; font: 500 10.5px/1.5 var(--f-sans); letter-spacing: .2em; color: var(--giwa-mute); }
:root[data-lang="en"] .ft__h { text-transform: uppercase; letter-spacing: .22em; }
.ft__t { font: 400 19px/1.5 var(--f-serif); color: var(--giwa-ink); }
:root[data-lang="en"] .ft__t { font: 400 24px/1.25 var(--f-display); }
/* footer links are 44 px tall touch targets */
.ft__col a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.ft__col a:hover, .ft__col a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }
.ft__more { font: 500 12px/1 var(--f-sans); letter-spacing: .1em; }
.ft__ig { gap: .6em; }
.ft__ig-i { flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; }
.ft__ig-i .ft__ig-dot { fill: currentColor; stroke: none; }
.ft__more::after { content: "→"; margin-left: .45em; }
:root[data-lang="en"] .ft__more { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.ft__more[aria-current="page"] { display: none; } /* on the invitation itself, no link to the page you are on */
.ft__nav ul { display: grid; }
.ft__nav a { font: 400 15px/1.4 var(--f-serif); }
:root[data-lang="en"] .ft__nav a { font: 400 18px/1.3 var(--f-display); }
/* the name, the last big thing: letterspaced roman capitals, sized to the width of the page's column */
.ft__name { container-type: inline-size; margin-top: clamp(64px, 9vw, 128px); }
.ft__name span { display: block; white-space: nowrap; text-transform: uppercase; color: var(--giwa-ink); font: 300 10.4cqi/1 var(--f-display); letter-spacing: .2em; margin-right: -.2em; }
.ft__line { margin-top: clamp(14px, 1.8vw, 24px); font: 400 14px/1.7 var(--f-serif); color: var(--giwa-soft); }
:root[data-lang="en"] .ft__line { font: italic 400 17px/1.5 var(--f-display); }
.ft__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px;
  margin-top: clamp(36px, 5vw, 64px); padding-top: 6px; border-top: 1px solid var(--giwa-hair);
  font-size: 12.5px; color: var(--giwa-mute);
}
.ft__bar a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.ft__bar a:hover, .ft__bar a:focus-visible { text-decoration: underline; text-underline-offset: .3em; }
.ft__bar .lang { color: var(--giwa-ink); margin-right: -8px; }
/* small text links keep their look but get a 44 px tall touch area: a clear band centred on the link.
   Links inside sentences and source lines stay at their line height, so neighbouring bands never overlap. */
.more, .gp__credit a, .meta dd > a:only-child, .contact__aside dd > a { position: relative; }
.more::before, .gp__credit a::before, .meta dd > a:only-child::before, .contact__aside dd > a::before {
  content: ""; position: absolute; left: 0; right: 0; top: calc(50% - 22px); height: 44px;
}

/* ---------- page heads ---------- */
.ph { padding: calc(var(--hd) + clamp(56px, 9vw, 128px)) 0 clamp(40px, 6vw, 80px); }
.ph__title { margin-top: 18px; font: 300 clamp(40px, 6.4vw, 92px)/1.12 var(--f-serif); letter-spacing: .02em; }
:root[data-lang="en"] .ph__title { font-family: var(--f-display); font-weight: 300; letter-spacing: 0; line-height: 1.02; }
.ph .lead { margin-top: clamp(20px, 3vw, 32px); }
/* the last row of a subpage: where to go next */
.onward__in { display: grid; gap: 18px 40px; padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--hair); }
.onward__p { max-width: 30em; color: var(--ink-soft); }
.onward__in > .btns { margin-top: 10px; }
@media (min-width: 900px) {
  .onward__in { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .onward__in > :not(.btns) { grid-column: 1; }
  .onward__in > .btns { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin: 0; }
}
.onward .h-sec { margin-top: 0; }
/* the page head does not animate: a page's first words are readable at once (research, motion rules) */

/* ---------- the viewing room (lightbox) ---------- */
.lb {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--night-deep); color: var(--night-ink); --focus: var(--band-focus); overflow: hidden;
}
.lb::backdrop { background: var(--night-deep); }
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: lbIn .4s var(--ease-panel); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px var(--gutter); min-height: 60px; }
.lb__count { font: 500 11px/1 var(--f-sans); letter-spacing: .24em; color: var(--night-mute); font-variant-numeric: tabular-nums; }
.lb__tools { display: flex; gap: 4px; }
.lb__btn {
  appearance: none; background: none; border: 1px solid transparent; cursor: pointer; color: var(--night-ink);
  min-width: 44px; min-height: 44px; padding: 0 12px; font: 500 12px/1 var(--f-sans); letter-spacing: .1em;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; transition: border-color .2s var(--ease-ui);
}
.lb__btn:hover { border-color: var(--night-ink-a24); }
/* only the picture stage (it holds no text) ignores selection, so a drag or a pinch does not select;
   every text on the site stays selectable and copyable */
.lb__stage { position: relative; overflow: hidden; display: grid; place-items: center; padding: 0 var(--gutter); touch-action: none; cursor: zoom-in; user-select: none; -webkit-user-select: none; }
.lb.is-zoomed .lb__stage { cursor: grab; }
.lb.is-dragging .lb__stage { cursor: grabbing; }
.lb__img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  box-shadow: var(--shadow-dark); transition: transform .35s var(--ease-panel), opacity .3s var(--ease-panel);
  -webkit-user-drag: none; user-select: none;
}
.lb.is-dragging .lb__img { transition: opacity .3s var(--ease-panel); }
.lb__img.is-loading { opacity: 0; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lb__nav--prev { left: max(8px, calc(var(--gutter) - 36px)); }
.lb__nav--next { right: max(8px, calc(var(--gutter) - 36px)); }
.lb__label { padding: 14px var(--gutter) max(20px, env(safe-area-inset-bottom)); text-align: center; display: grid; gap: 4px; }
.lb__title { font: 400 16px/1.5 var(--f-serif); }
:root[data-lang="en"] .lb__title { font: 400 19px/1.4 var(--f-display); }
.lb__meta { font: 400 12px/1.6 var(--f-sans); color: var(--night-mute); }
.lb__meta:empty { display: none; }
.lb__hint { font: 400 11.5px/1.6 var(--f-sans); color: var(--night-mute); opacity: .8; }
@media (max-width: 767.98px) { .lb__nav { display: none; } }
html.lb-open { overflow: hidden; }

/* ---------- atelier ---------- */
.intro { display: grid; gap: clamp(40px, 6vw, 64px); align-items: start; }
.intro__fig { position: relative; margin: 0; max-width: 560px; }
.intro__fig figcaption { margin-top: 14px; }
.intro__vname {
  display: none; position: absolute; top: 0; left: calc(100% + 28px); writing-mode: vertical-rl;
  font: 300 30px/1 var(--f-serif); letter-spacing: .8em; color: var(--ink);
}
.intro__text p + p { margin-top: 1.1em; }
.intro__text .lead { color: var(--ink); }
.intro__text .intro__more { margin-top: 28px; }
@media (min-width: 900px) {
  .intro { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(96px, 10vw, 160px); }
  .intro__vname { display: block; }
}
.quote { text-align: center; max-width: 920px; margin-inline: auto; }
.quote blockquote { margin: 26px 0 0; font: 300 clamp(22px, 2.8vw, 36px)/1.75 var(--f-serif); }
.quote blockquote p::before { content: "“"; }
.quote blockquote p::after { content: "”"; }
:root[data-lang="en"] .quote blockquote { font-family: var(--f-display); font-style: italic; font-size: clamp(26px, 3.4vw, 46px); line-height: 1.3; }
.quote figcaption { margin-top: 26px; font: 400 12.5px/1.7 var(--f-sans); color: var(--ink-mute); }
.quote figcaption a { color: inherit; }
.materials { display: grid; gap: 1px; margin-top: clamp(36px, 5vw, 56px); background: var(--hair); border: 1px solid var(--hair); }
.sec__head + .materials { margin-top: 0; }
.materials .mat { background: var(--paper); padding: clamp(28px, 3.4vw, 44px) clamp(22px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 12px; }
.mat__han { font: 300 clamp(40px, 4.4vw, 60px)/1 var(--f-serif); letter-spacing: .08em; }
.mat__name { font: 500 13px/1.5 var(--f-sans); letter-spacing: .1em; color: var(--ink-mute); }
.materials .mat p { font-size: 15.5px; line-height: 1.8; color: var(--ink-soft); }
:root[data-lang="en"] .materials .mat p { font-size: 18px; line-height: 1.55; }
.materials .mat .mat__src, :root[data-lang="en"] .materials .mat .mat__src { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hair); font: 400 12px/1.6 var(--f-sans); color: var(--ink-mute); }
.mat__src a { color: inherit; }
@media (min-width: 768px) { .materials { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cv { border-top: 1px solid var(--ink); }
.cv__group { display: grid; gap: 14px; padding: 28px 0; border-bottom: 1px solid var(--hair); }
.cv__h { font: 500 12px/1.5 var(--f-sans); letter-spacing: .12em; color: var(--ink-mute); }
:root[data-lang="en"] .cv__h { text-transform: uppercase; letter-spacing: .22em; font-size: 10.5px; }
.cv__rows li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding: 8px 0; }
.cv__y { font: 400 15px/1.85 var(--f-display); font-variant-numeric: lining-nums tabular-nums; color: var(--ink-soft); }
.cv__src { display: block; font: 400 12px/1.6 var(--f-sans); color: var(--ink-mute); margin-top: 2px; }
.cv__src a { color: inherit; }
.cv__go { margin-top: 10px; }
@media (min-width: 900px) { .cv__group { grid-template-columns: 240px 1fr; gap: 32px; } }
/* her words, set line by line as she said them, beside her photograph in grey: on paper, flat, with no frame,
   keyline or shadow, so it reads as a portrait in a magazine and never as a memorial one (v4-brief, section 1) */
.voice__in { display: grid; gap: clamp(48px, 7vw, 96px); align-items: center; }
.voice__fig { margin: 0; justify-self: center; width: min(100%, 440px); }
.voice__fig img { width: 100%; height: auto; }
.voice .quote { margin: 0; max-width: 34em; text-align: left; }
.voice .quote blockquote { margin-top: clamp(22px, 3vw, 34px); padding-left: .6em; }
.voice .quote blockquote p { position: relative; }
.voice .quote blockquote p::before { position: absolute; right: 100%; padding-right: .15em; color: var(--gold-ink); }
.voice .quote blockquote p::after { color: var(--gold-ink); }
:root[data-lang="en"] .voice .quote blockquote { font-size: clamp(24px, 3.2vw, 44px); }
.voice .quote figcaption { color: var(--ink-mute); max-width: 36em; }
@media (min-width: 900px) {
  .voice__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .voice__fig { justify-self: end; }
}
/* the studio and the gallery: real photographs, without the artist (p. 8) */
.trip { display: grid; gap: clamp(28px, 3vw, 40px) clamp(14px, 2vw, 24px); }
.trip__fig { margin: 0; }
.trip__fig img { width: 100%; height: auto; }
.trip__fig figcaption { margin-top: 12px; }
@media (min-width: 760px) {
  .trip { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .trip__fig--wide { grid-column: 1 / -1; }
}

/* ---------- exhibitions ---------- */
.exh { display: grid; gap: clamp(36px, 5vw, 64px); }
.exh__card { display: grid; gap: clamp(32px, 4vw, 56px); padding-bottom: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--hair); }
.exh__status { display: inline-block; font: 500 11px/1 var(--f-sans); letter-spacing: .14em; padding: 7px 10px; border: 1px solid currentColor; color: var(--seal); }
.exh__status--past { color: var(--ink-mute); }
.exh__title { margin-top: 18px; font: 300 clamp(40px, 5.6vw, 80px)/1.1 var(--f-serif); letter-spacing: .04em; }
:root[data-lang="en"] .exh__title { font-family: var(--f-display); letter-spacing: 0; }
.exh__fig { margin: 0; }
.exh__fig img { box-shadow: var(--shadow-work); }
.groups { display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair); margin-top: 24px; }
.group { background: var(--paper); padding: 22px 22px 24px; display: grid; gap: 6px; }
.group__k { font: 400 28px/1 var(--f-display); color: var(--ink-mute); }
.group__name { font: 400 19px/1.45 var(--f-serif); }
@media (min-width: 768px) { .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .groups { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.maps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.maps a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--hair); border-radius: 999px;
  font: 500 12.5px/1 var(--f-sans); text-decoration: none; transition: border-color .2s var(--ease-ui);
}
.maps a:hover { border-color: var(--ink-mute); }
@media (min-width: 900px) { .exh__card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.exh__text { min-width: 0; }
.exh__card .meta { margin-bottom: 0; }
.exh__card .maps { margin-top: 22px; }
.exh__btns { margin-top: 28px; }
.sec--tint .exh__card { margin-top: 24px; padding-bottom: 0; border-bottom: 0; }
.exh__go { margin-top: 28px; }
/* the 2023 hall: photographs, so no shadow of a hung work */
.exh__view { margin: 0; }
.exh__view img { width: 100%; height: auto; }
.exh__pair { display: grid; gap: clamp(32px, 4vw, 56px); margin-top: clamp(56px, 7vw, 96px); }
@media (min-width: 900px) { .exh__pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; } }
.exh__words { margin: 0; max-width: none; text-align: left; }
.exh__words blockquote { margin-top: 0; font-size: clamp(20px, 2.2vw, 28px); }
:root[data-lang="en"] .exh__words blockquote { font-size: clamp(24px, 2.8vw, 36px); }
.exh__record { display: grid; gap: 14px; margin-top: clamp(56px, 7vw, 96px); padding-top: 28px; border-top: 1px solid var(--hair); }
@media (min-width: 900px) { .exh__card--past { align-items: center; } .exh__record { grid-template-columns: 240px 1fr; gap: 32px; } }

/* ---------- contact form ---------- */
.contact { display: grid; gap: clamp(48px, 6vw, 96px); }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.contact__aside { display: grid; gap: 22px; align-content: start; }
.contact__aside dl { display: grid; gap: 4px; }
.contact__aside dt { font: 500 11px/1.6 var(--f-sans); letter-spacing: .12em; color: var(--ink-mute); }
.contact__aside dd { margin: 0 0 12px; }
.contact__aside a { text-underline-offset: .25em; }
.contact__main { min-width: 0; display: grid; gap: 28px; align-content: start; }
.contact__h { margin-top: 0; }
.form { display: grid; gap: 30px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field__label, .field legend { font: 500 12px/1.5 var(--f-sans); letter-spacing: .06em; color: var(--ink-soft); padding: 0; }
.field__opt { color: var(--ink-mute); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea, .field select {
  appearance: none; width: 100%; border: 0; border-bottom: 1px solid var(--ink-mute); border-radius: 0; background: transparent;
  padding: 10px 0 12px; color: var(--ink); font: 400 16px/1.6 var(--f-serif); transition: border-color .2s var(--ease-ui), box-shadow .2s var(--ease-ui);
}
.field textarea { min-height: 168px; resize: vertical; line-height: 1.75; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--seal); box-shadow: 0 1px 0 var(--seal); }
.field__err { font: 400 12.5px/1.6 var(--f-sans); color: var(--seal); }
.field__err:empty { display: none; }
.field__hint { font: 400 12px/1.6 var(--f-sans); color: var(--ink-mute); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.opt { position: relative; }
.opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opt > span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--hair); border-radius: 999px;
  font: 500 13px/1 var(--f-sans); color: var(--ink-soft); transition: background-color .2s var(--ease-ui), color .2s var(--ease-ui), border-color .2s var(--ease-ui);
}
.opt input:hover + span { border-color: var(--ink-mute); }
.opt input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding-block: 10px; font: 400 14px/1.7 var(--f-sans); color: var(--ink-soft); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ts { display: none; }
.ts.is-shown { display: block; min-height: 66px; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__status { font: 400 14px/1.7 var(--f-sans); color: var(--ink-soft); min-height: 1.7em; }
.form__status.is-error { color: var(--seal); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.fallback { border: 1px solid var(--hair); background: var(--paper-2); padding: 22px; display: grid; gap: 12px; }
.done { border-top: 1px solid var(--ink); padding-top: 28px; display: grid; gap: 14px; }
.done__title { font: 300 clamp(26px, 3vw, 36px)/1.4 var(--f-serif); }
.nojs-card { border: 1px solid var(--hair); padding: 26px; display: grid; gap: 14px; background: var(--paper-2); }
/* the inquiry form: boxed fields, larger labels and targets, one consent line.
   Scoped to .contact so the invitation's reply form keeps its own look. */
.contact .form { gap: 28px; }
.contact .form__row { display: grid; gap: 28px; }
@media (min-width: 640px) { .contact .form__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; } }
.contact .field { gap: 8px; }
.contact .field__label, .contact .field legend { font: 500 14px/1.5 var(--f-sans); letter-spacing: .02em; color: var(--ink); }
.contact .field input[type="text"], .contact .field input[type="email"], .contact .field textarea {
  min-height: 52px; padding: 12px 16px; border: 1px solid var(--ink-mute); border-radius: 2px;
}
.contact .field textarea { min-height: 176px; }
.contact .field input:focus, .contact .field textarea:focus { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.contact .field.is-invalid input, .contact .field.is-invalid textarea { border-color: var(--seal); box-shadow: inset 0 0 0 1px var(--seal); }
.contact .field__err { font-size: 13px; }
.contact .opts { gap: 10px; }
.contact .opt > span { min-height: 48px; padding: 0 20px; font-size: 14px; }
.contact .consent { gap: 0; padding-top: 22px; border-top: 1px solid var(--hair); }
.contact .check { padding-block: 6px; font-size: 14px; line-height: 1.75; }
.consent__more { display: inline-flex; align-items: center; width: fit-content; min-height: 44px; margin-left: 32px; font: 400 13px/1.4 var(--f-sans); letter-spacing: .04em; color: var(--ink-soft); text-underline-offset: .25em; }
@media (max-width: 599.98px) { .contact .form__actions .btn { width: 100%; } }

/* ---------- the privacy notice (/privacy/) ---------- */
.privacy { max-width: 46em; display: grid; gap: 14px; font: 400 15px/1.85 var(--f-sans); color: var(--ink-soft); }
.privacy h2 { margin-top: clamp(32px, 4vw, 48px); padding-top: 22px; border-top: 1px solid var(--hair); font: 500 13px/1.5 var(--f-sans); letter-spacing: .1em; color: var(--ink); }
.privacy h2:first-child { margin-top: 0; }
.privacy h3 { margin-top: 12px; font: 500 12.5px/1.5 var(--f-sans); letter-spacing: .08em; color: var(--ink); }
.privacy dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; }
.privacy dt { color: var(--ink-mute); }
.privacy dd { margin: 0; }
.privacy a { text-underline-offset: .25em; }
.privacy__date { margin-top: clamp(28px, 4vw, 40px); font-size: 13px; color: var(--ink-mute); }
@media (max-width: 599.98px) {
  .privacy dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .privacy dd + dt { margin-top: 10px; }
}

/* ---------- 404 ---------- */
.nf { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--hd) + 40px) var(--gutter) 80px; }
.nf__mark { font: 300 clamp(64px, 12vw, 160px)/1 var(--f-display); color: var(--ink-mute); }
.nf .btns { justify-content: center; margin-top: 32px; }
.nf__in { max-width: 36em; }
.nf__title { margin-top: 22px; font: 300 clamp(28px, 4vw, 44px)/1.4 var(--f-serif); text-wrap: balance; }
:root[data-lang="en"] .nf__title { font-family: var(--f-display); font-size: clamp(34px, 4.8vw, 54px); line-height: 1.1; }
.nf .lead { margin: 18px auto 0; }

/* ---------- the 대상작 page: the work on the night wall ---------- */
/* The press photograph of 〈인연(因緣)〉, whole, in a paper mat (v3-brief §8). The mat is the work's own wall,
   so it sets --wall, and the brush's cover (붓길, below) takes the mat's paper. */
.gp-stage { --wall: var(--night); background: var(--wall); padding: calc(var(--hd) + clamp(40px, 7vw, 104px)) 0 clamp(72px, 10vw, 136px); }
.gp-stage__in { display: grid; gap: clamp(40px, 6vw, 88px); align-items: center; }
.gp-stage__title { margin-top: clamp(18px, 2.4vw, 28px); font: 300 clamp(36px, 5vw, 66px)/1.2 var(--f-serif); letter-spacing: .06em; }
:root[data-lang="en"] .gp-stage__title { font-family: var(--f-display); font-style: italic; letter-spacing: .01em; font-size: clamp(42px, 5.6vw, 76px); line-height: 1.08; }
.gp-stage__lead { margin-top: clamp(20px, 2.6vw, 30px); max-width: 28em; font: 300 clamp(16px, 1.5vw, 18px)/1.9 var(--f-serif); color: var(--night-mute); }
:root[data-lang="en"] .gp-stage__lead { font: 400 clamp(18px, 1.7vw, 21px)/1.6 var(--f-display); }
.gp-stage__fig { margin: 0; justify-self: center; width: min(100%, 520px); }
.gp-stage__mat { --wall: var(--paper); display: grid; place-items: center; padding: clamp(28px, 6vw, 60px); background-color: var(--wall); box-shadow: var(--shadow-dark); }
.gp-stage__work { display: block; width: min(100%, 400px); }
.gp-stage__img { width: 100%; box-shadow: var(--shadow-work); }
.gp-stage .wl { margin-top: 22px; }
.on-dark .gp__credit { color: var(--night-mute); }
.wl .gp__credit { margin-top: 6px; }
@media (min-width: 900px) { .gp-stage__in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(56px, 7vw, 128px); } }
.gp-facts { border-top: 1px solid var(--ink); }
.gp-facts__row { display: grid; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--hair); }
.gp-facts dt { font: 500 11.5px/1.6 var(--f-sans); letter-spacing: .1em; color: var(--ink-mute); }
:root[data-lang="en"] .gp-facts dt { text-transform: uppercase; letter-spacing: .22em; font-size: 10.5px; }
.gp-facts dd { margin: 0; font-size: 17px; line-height: 1.75; }
.gp-facts__src { display: block; margin-top: 4px; font: 400 12px/1.6 var(--f-sans); color: var(--ink-mute); }
.gp-facts__src a { color: inherit; }
@media (min-width: 900px) { .gp-facts__row { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; } }
.gp-facts--page { margin-top: clamp(8px, 2vw, 24px); }
.gp-show { display: grid; gap: 14px; justify-items: start; padding: clamp(32px, 4.4vw, 56px); border: 1px solid var(--hair); background: var(--paper-2); }
.gp-show .eyebrow { margin: 0; }
.gp-show__title { font: 300 clamp(24px, 2.6vw, 34px)/1.35 var(--f-serif); letter-spacing: .02em; }
:root[data-lang="en"] .gp-show__title { font-family: var(--f-display); font-size: clamp(28px, 3vw, 40px); }
.gp-show__body { max-width: 36em; color: var(--ink-soft); }
.gp-show .more { margin-top: 6px; }

/* ---------- the works index: one band to a room ---------- */
.rbands { border-top: 1px solid var(--hair); }
.rband { position: relative; display: grid; gap: clamp(26px, 3.4vw, 44px); padding-block: clamp(52px, 8vw, 120px); border-bottom: 1px solid var(--hair); }
.rband__fig { margin: 0; display: flex; justify-content: center; }
.rband__fig .mat { display: block; width: min(100%, calc(64vh * var(--ar, 1))); width: min(100%, calc(64svh * var(--ar, 1))); }
.rband__fig img { width: 100%; box-shadow: var(--shadow-work); }
.rband__text { display: grid; gap: 10px; align-content: center; justify-items: start; }
.rband__no { font: 400 13px/1 var(--f-display); letter-spacing: .16em; color: var(--ink-mute); font-variant-numeric: lining-nums tabular-nums; }
.rband__name { font: 300 clamp(32px, 4.4vw, 60px)/1.18 var(--f-serif); letter-spacing: .04em; }
:root[data-lang="en"] .rband__name { font-family: var(--f-display); letter-spacing: 0; }
.rband__name a { color: inherit; text-decoration: none; }
/* the whole band is the link to its room */
.rband__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.rband__count { font: 500 11.5px/1.5 var(--f-sans); letter-spacing: .14em; color: var(--ink-mute); }
.rband__about { max-width: 24em; color: var(--ink-soft); }
.rband__go { margin-top: 12px; }
.rband:hover .rband__go::after { transform: translateX(4px); }
.rband:hover .rband__name a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
@media (min-width: 900px) {
  .rband { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: center; gap: clamp(56px, 7vw, 120px); }
  .rband:nth-child(even) { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .rband:nth-child(even) .rband__fig { order: 2; }
}

/* ---------- the wall label: artist, title, room and HA number, and a way to ask (v3-brief §6) ---------- */
.wl { display: grid; justify-items: start; gap: 3px; margin-top: 18px; font: 400 12.5px/1.6 var(--f-sans); color: var(--ink-mute); }
.wl__artist { font: 500 11px/1.6 var(--f-sans); letter-spacing: .14em; color: var(--ink-soft); }
:root[data-lang="en"] .wl__artist { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.wl__title { font: 400 16.5px/1.5 var(--f-serif); color: var(--ink); }
:root[data-lang="en"] .wl__title { font: 400 19px/1.35 var(--f-display); }
.wl__meta { letter-spacing: .04em; font-variant-numeric: lining-nums tabular-nums; }
.wl__ask { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 2px; color: var(--ink); text-decoration: none; font: 500 12px/1 var(--f-sans); letter-spacing: .08em; }
:root[data-lang="en"] .wl__ask { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; }
.wl__ask [lang] { padding-bottom: 3px; border-bottom: 1px solid var(--hair); transition: border-color .25s var(--ease-ui); }
.wl__ask:hover [lang], .wl__ask:focus-visible [lang] { border-bottom-color: currentColor; }
.wl__arrow { transition: transform .25s var(--ease-ui); }
.wl__ask:hover .wl__arrow { transform: translateX(4px); }
.on-dark .wl, .on-dark .wl__artist { color: var(--night-mute); }
.on-dark .wl__title, .on-dark .wl__ask { color: var(--night-ink); }
.on-dark .wl__ask [lang] { border-bottom-color: var(--night-ink-a24); }
/* 4.1: the title is the way to the work's own page; her medium and the size sit under it where her list gives them */
a.wl__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; text-decoration-color: var(--hair); transition: text-decoration-color .25s var(--ease-ui); }
a.wl__title:hover, a.wl__title:focus-visible { text-decoration-color: currentColor; }
.on-dark a.wl__title { text-decoration-color: var(--night-ink-a24); }
.wl__mat { color: var(--ink-soft); font-variant-numeric: lining-nums tabular-nums; }
.on-dark .wl__mat { color: var(--night-mute); }

/* ---------- a work's own page (4.1): the work, whole, beside its title and what her list gives ---------- */
.wp { padding: calc(var(--hd) + clamp(32px, 6vh, 72px)) 0 clamp(24px, 4vh, 48px); }
.wp__in { display: grid; gap: clamp(36px, 5vh, 56px); }
.wp__fig { margin: 0; justify-self: center; min-width: 0; width: min(100%, calc(70vh * var(--ar))); width: min(100%, calc(70svh * var(--ar))); }
.wp__text { display: grid; justify-items: start; align-content: center; min-width: 0; max-width: 32em; }
.wp__title { margin-top: 18px; font: 300 clamp(32px, 4.2vw, 56px)/1.2 var(--f-serif); letter-spacing: .04em; text-wrap: balance; }
:root[data-lang="en"] .wp__title { font: 300 clamp(38px, 4.8vw, 64px)/1.08 var(--f-display); letter-spacing: 0; }
.wp__artist { margin-top: 14px; font: 500 11.5px/1.6 var(--f-sans); letter-spacing: .14em; color: var(--ink-soft); }
:root[data-lang="en"] .wp__artist { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; }
.wp__facts { width: 100%; margin: clamp(24px, 3vw, 36px) 0 0; border-top: 1px solid var(--ink); }
.wp__row { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--hair); }
.wp__facts dt { font: 500 11px/1.9 var(--f-sans); letter-spacing: .12em; color: var(--ink-mute); }
:root[data-lang="en"] .wp__facts dt { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.wp__facts dd { margin: 0; font-size: 15.5px; line-height: 1.65; font-variant-numeric: lining-nums tabular-nums; }
.wp__desc { margin-top: 22px; color: var(--ink-soft); text-wrap: pretty; }
.wp__btns { margin-top: 28px; }
@media (min-width: 900px) {
  .wp__in { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: center; gap: clamp(48px, 6vw, 112px); }
  .wp__fig { justify-self: end; width: min(100%, calc(78vh * var(--ar))); width: min(100%, calc(78svh * var(--ar))); }
}

/* ---------- a room: the opening work, then the wall, one work or two at a time ---------- */
/* the wall is one flat colour (--wall), so the brush cover on the opening work matches what is around it;
   the side lanes stay clear for the gold rules (site.js) */
.rm { position: relative; --wall: var(--paper); background-color: var(--wall); }
.rm.on-dark { --wall: var(--night); }
.rm__open { padding: calc(var(--hd) + clamp(40px, 8vh, 96px)) 0 clamp(72px, 12vh, 140px); }
.rm__open-in { display: grid; gap: clamp(40px, 6vh, 64px); align-items: center; }
.rm__head { display: grid; justify-items: start; min-width: 0; max-width: 30em; }
.rm__title { margin-top: 20px; font: 300 clamp(38px, 5.6vw, 80px)/1.15 var(--f-serif); letter-spacing: .06em; }
:root[data-lang="en"] .rm__title { font: 300 clamp(44px, 6vw, 88px)/1.04 var(--f-display); letter-spacing: 0; }
.rm__line { margin-top: clamp(18px, 2.4vw, 28px); font-size: clamp(16.5px, 1.35vw, 19px); color: var(--ink-soft); text-wrap: pretty; }
:root[data-lang="en"] .rm__line { font-size: clamp(20px, 1.6vw, 23px); line-height: 1.5; }
.rm__count { margin-top: 18px; font: 400 12.5px/1.7 var(--f-sans); letter-spacing: .04em; color: var(--ink-mute); }
.on-dark .rm__line { color: var(--night-ink); }
.on-dark .rm__count { color: var(--night-mute); }
.wk { margin: 0; min-width: 0; }
.wk__link { display: block; position: relative; }
.js .wk__link { cursor: zoom-in; }
.wk__img { width: 100%; box-shadow: var(--shadow-work); }
.on-dark .wk__img { box-shadow: var(--shadow-dark); }
.wk--lead { justify-self: center; width: min(100%, calc(64vh * var(--ar))); width: min(100%, calc(64svh * var(--ar))); }
.rm__wall { padding-bottom: clamp(40px, 8vh, 96px); }
.rm__wall > .wrap { display: grid; gap: clamp(96px, 14vh, 184px); }
/* works hang to one side or the other, as on a long wall */
.row { display: grid; gap: clamp(64px, 10vh, 112px); }
.row > .wk { justify-self: start; width: min(86%, calc(72vh * var(--ar))); width: min(86%, calc(72svh * var(--ar))); }
.row--r > .wk:first-child, .row--l > .wk + .wk { justify-self: end; }
.row--r > .wk + .wk { justify-self: start; }
/* 족자: two side by side even on a phone, the second hung lower */
.row.row--scrolls { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 6vw, 56px); align-items: start; }
.row.row--scrolls > .wk { justify-self: center; width: min(100%, calc(80vh * var(--ar))); width: min(100%, calc(80svh * var(--ar))); }
.row.row--scrolls > .wk + .wk { margin-top: clamp(56px, 14vw, 160px); }
.row.row--solo > .wk--scroll { justify-self: center; width: min(64%, calc(80vh * var(--ar))); width: min(64%, calc(80svh * var(--ar))); }
/* a staged room (PLAN.md D16): one of her works, whole and only scaled, in a drawn room, always captioned;
   on a phone the picture runs to the edges, as a room would */
.staged { margin: 0 calc(-1 * var(--gutter)); min-width: 0; }
.staged__img { width: 100%; }
.staged__cap { display: grid; gap: 4px; max-width: 40em; margin-top: 16px; padding-inline: var(--gutter); font: 400 12.5px/1.6 var(--f-sans); color: var(--ink-mute); }
.staged__k { font: 500 11px/1.6 var(--f-sans); letter-spacing: .16em; color: var(--gold-ink); }
.staged__t { font: 400 15px/1.5 var(--f-serif); color: var(--ink); }
:root[data-lang="en"] .staged__t { font: 400 18px/1.4 var(--f-display); }
.on-dark .staged__cap { color: var(--night-mute); }
.inv .on-dark .staged__k { color: var(--gold); }
.on-dark .staged__t { color: var(--night-ink); }
@media (min-width: 900px) {
  .rm__open-in { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 112px); }
  .wk--lead { justify-self: end; width: min(100%, calc(72vh * var(--ar))); width: min(100%, calc(72svh * var(--ar))); }
  .row--solo > .wk { width: min(100%, 58vw, 820px, calc(78vh * var(--ar))); width: min(100%, 58vw, 820px, calc(78svh * var(--ar))); }
  .row--pair:not(.row--scrolls) { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(48px, 7vw, 128px); align-items: start; }
  .row--pair:not(.row--scrolls) > .wk { width: min(100%, 520px, calc(70vh * var(--ar))); width: min(100%, 520px, calc(70svh * var(--ar))); }
  .row--pair:not(.row--scrolls) > .wk:first-child { justify-self: start; }
  .row--pair:not(.row--scrolls) > .wk + .wk { justify-self: end; }
  .row--pair.row--l:not(.row--scrolls) > .wk + .wk, .row--pair.row--r:not(.row--scrolls) > .wk:first-child { margin-top: clamp(96px, 16vh, 200px); }
  .row.row--scrolls { justify-self: center; width: 100%; max-width: 880px; column-gap: clamp(64px, 9vw, 160px); }
  .row.row--scrolls > .wk { width: min(100%, 300px, calc(80vh * var(--ar))); width: min(100%, 300px, calc(80svh * var(--ar))); }
  .row.row--solo > .wk--scroll { width: min(340px, calc(82vh * var(--ar))); width: min(340px, calc(82svh * var(--ar))); }
  .staged { margin: 0; justify-self: center; width: min(100%, 1040px); }
  .staged__cap { padding-inline: 0; }
}
/* ---------- the 족자 room (4.1, from design/options-5): a quiet opening, then the scrolls hung level ----------
   The two staged hanok rooms carry the 기와; the opening is only the wall label, centred, with room above it.
   Each pair of 족자 hangs level, as on a 대청 wall, with the wall left open between and around them. A row's
   --hang-sum is the sum of its two works' width-to-height ratios, so both scrolls and the gap fit the column. */
.rm--giwa .rm__open { padding: calc(var(--hd) + clamp(56px, 10vh, 120px)) 0 clamp(48px, 8vh, 96px); }
.rm--giwa .rm__open-in { display: block; }
.rm--giwa .rm__head { margin-inline: auto; justify-items: center; text-align: center; max-width: 34em; }
.rm--giwa .rm__head .eyebrow::after { content: ""; flex: none; width: 28px; height: 1px; background: currentColor; opacity: .8; }
.rm--giwa .rm__wall { padding-top: clamp(8px, 2vh, 24px); }
.row.row--hang {
  --hang-gap: clamp(44px, 11vw, 176px);
  --hang-h: min(66svh, 700px, calc((100vw - 2 * var(--gutter) - 32px - var(--hang-gap)) / var(--hang-sum, 1)));
  display: flex; justify-content: center; align-items: flex-start; gap: var(--hang-gap);
}
@media (max-width: 599.98px) {
  .row.row--hang { --hang-h: min(66svh, calc((100vw - 2 * var(--gutter) - var(--hang-gap)) / var(--hang-sum, 1))); }
  .row--hang .wl__artist { display: none; } /* her name is on the room's wall label above, whole; the two labels stay short side by side */
}
.row.row--hang > .wk { flex: none; justify-self: auto; margin: 0; width: calc(var(--hang-h) * var(--ar)); }
.row--hang .wl { justify-items: center; text-align: center; }
.row--hang .wl__meta .nw { white-space: nowrap; }
/* the staged 기와 rooms (PLAN.md D16): wide at a desktop, a 4:5 cut of the same picture on a phone, so her
   scroll stays large enough to read; always captioned */
.staged--giwa picture { display: block; }
.staged--giwa .staged__img { display: block; height: auto; background: var(--paper-2); }
/* 계선, the gold rules (site.js): straight 1 px rules drawn down a room's bare wall as the page scrolls,
   beside and between the works, never over them, like the ruled lines of a 감지금니 사경; they lie under
   everything in the room. Square ends and corners, so a rule reads as ruled, not brushed. */
.rm[data-ink] { isolation: isolate; }
.ink { position: absolute; left: 0; top: 0; z-index: -1; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.ink path { fill: none; stroke: var(--gold); stroke-width: 1px; stroke-linecap: butt; stroke-linejoin: miter; }
/* the end of a room: the rooms on either side, and all the works */
.rnav { padding-block: clamp(56px, 8vw, 112px); }
.rnav__in { display: grid; gap: 8px; padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--hair); }
.rnav a { display: grid; gap: 4px; min-height: 44px; padding: 12px 0; text-decoration: none; }
.rnav__k { font: 500 11px/1.5 var(--f-sans); letter-spacing: .16em; color: var(--gold-ink); }
:root[data-lang="en"] .rnav__k { text-transform: uppercase; letter-spacing: .22em; font-size: 10px; }
.rnav__name { font: 300 clamp(22px, 2.6vw, 32px)/1.3 var(--f-serif); }
:root[data-lang="en"] .rnav__name { font-family: var(--f-display); }
.rnav a:hover .rnav__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.on-dark .rnav__in { border-top-color: var(--gold-a40); }
.inv .on-dark .rnav__k { color: var(--gold); }
@media (min-width: 768px) {
  .rnav__in { grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; }
  .rnav__all { justify-self: center; text-align: center; }
  .rnav__next { text-align: right; }
}

/* ---------- motion: reveals (only after site.js turns them on) ---------- */
/* one-time reveals, about a second, once (BRAND.md motion v2). Text rises a little; a work is never
   scaled or cropped: it unrolls from the top, like a scroll opening, and ends whole */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 1.1s var(--ease-reveal) var(--d, 0s), transform 1.1s var(--ease-reveal) var(--d, 0s); }
.reveal-on [data-reveal="2"] { --d: .08s; }
.reveal-on [data-reveal="3"] { --d: .16s; }
.reveal-on [data-reveal="4"] { --d: .24s; }
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }
/* an eyebrow's hairline draws in just after its words */
.reveal-on .eyebrow[data-reveal]::before { transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s var(--ease-reveal) calc(var(--d, 0s) + .25s); }
.reveal-on .eyebrow[data-reveal].is-in::before { transform: none; }
/* unroll (1.2 s): a work is uncovered from the top down by a mask with a soft lower edge;
   the mask ends past the bottom, so the last frame is the whole picture, and then the mask is gone.
   A mask, never a clip-path: a picture clipped to nothing has no area, so neither the observer nor
   the browser's lazy loading would ever see it, and it would stay empty. */
.reveal-on .ink-frame:not(.is-done) {
  -webkit-mask: linear-gradient(var(--ink) calc(100% - 72px), transparent) top / 100% 0 no-repeat;
  mask: linear-gradient(var(--ink) calc(100% - 72px), transparent) top / 100% 0 no-repeat;
  transition: -webkit-mask-size 1.2s var(--ease-reveal) var(--d, 0s), mask-size 1.2s var(--ease-reveal) var(--d, 0s), box-shadow .8s var(--ease);
}
.reveal-on .ink-frame.is-in:not(.is-done) { -webkit-mask-size: 100% calc(100% + 72px); mask-size: 100% calc(100% + 72px); }
/* the work's shadow would be masked with it, so it waits and settles in once the plain picture is back */
.ink-frame { transition: box-shadow .8s var(--ease); }
@media (prefers-reduced-motion: no-preference) {
  .reveal-on .ink-frame:not(.is-done) { box-shadow: none; }
}

/* ---------- 붓길, the brush reveal (site.js) ---------- */
/* A cover in the wall's own flat colour lies over the first work of a page; dry-brush strokes lift it away,
   the cover fades, and the canvas is removed. Nothing is drawn on the work and nothing stays.
   The cover takes --wall (the hero, a room, the 대상작 stage), so it always matches what is around it. */
[data-brush] { position: relative; --brush-cover: var(--wall, var(--paper)); }
/* one pixel past the work on every side: the work and the cover often sit on a fractional pixel, and a cover of
   exactly the work's size lets the painting's own edge show through as a faint line before the brush starts */
.brush-cover { position: absolute; inset: -1px; z-index: 2; width: calc(100% + 2px); max-width: none; height: calc(100% + 2px); pointer-events: none; transition: opacity .8s var(--ease); }
.brush-cover.is-gone { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  /* until the cover is in place, what it will reveal waits unseen; if the script never comes, it simply appears */
  .js:not(.brush-seen) [data-brush]:not(.brush-armed):not(.is-brushed) > :not(.brush-cover) { opacity: 0; animation: brush-safe .6s var(--ease) 2.5s forwards; }
  .brush-armed:not(.is-brushed) img { box-shadow: none; }
  [data-brush] img { transition: box-shadow .8s var(--ease); }
}
@keyframes brush-safe { to { opacity: 1; } }

/* ---------- reduced motion: every effect at its last frame ---------- */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .reveal-on [data-reveal] { opacity: 1; transform: none; }
  .reveal-on .eyebrow[data-reveal]::before { transform: none; }
  .reveal-on .ink-frame { -webkit-mask: none; mask: none; }
  .brush-cover { display: none !important; }
  .hero__cue::after { animation: none; transform: none; opacity: .8; }
}

/* ---------- print: everything shown, nothing moving ---------- */
@media print {
  .hd, .menu, .skip, .hero__cue, .lb, .lang, .ts, .btns .btn--light, .brush-cover, .wl__ask, .ink, .loop__ctl { display: none !important; }
  .reveal-on [data-reveal] { opacity: 1 !important; transform: none !important; }
  .reveal-on .ink-frame { -webkit-mask: none !important; mask: none !important; }
  [data-brush] > * { opacity: 1 !important; animation: none !important; }
  .hero, .rm, .atl, .voice, .words, .cta, .ft, .gp-stage { background: none !important; }
  .on-dark, .on-dark * { color: var(--ink) !important; }
  .on-dark .eyebrow, .on-dark .lead, .on-dark .small, .on-dark .wl, .on-dark .wl__artist, .on-dark .rm__count, .lockup__en, .lockup__award, .gp-stage__lead, .gp__credit { color: var(--ink-soft) !important; }
  .rail { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding: 0; }
  .row, .wk, .staged, .rail__item { break-inside: avoid; }
  body { background: none; }
  a { color: inherit; }
}

/* ---------- narrow phones ---------- */
@media (max-width: 374.98px) {
  body { font-size: 16px; }
  .hd .wm:not(.wm--en) .wm__at { display: none; }
  /* the header keeps the mark and Menu; KO / EN stays one tap away in the menu */
  .hd .lang { display: none; }
}
