/* Supplied 4K-100 design, 2026-10-23.
   Visual layout lives here; public data and the existing experiences stay separate. */
:root {
  --paper: #fff;
  --sheet: #f7f8f8;
  --ink: #202724;
  --ink-2: #767f7d;
  --rule: #c7ccca;
  --red: #ff3026;
  --red-ink: #d5231c;
  --header-bg: #eef2f3;
  --ui-font: "Spoqa Han Sans", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --f-display: "Song Myung", "Nanum Myeongjo", "AppleMyungjo", serif;
  --f-body: var(--ui-font);
  --f-latin: var(--ui-font);
  --f-type: var(--ui-font);
  --f-typeko: var(--ui-font);
  --content-width: clamp(1020px, 68vw, 1320px);
  --header-height: 94px;
}
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 28px); }
body { background: #fff; font-size: 17px; }
.wrap { width: var(--content-width); max-width: calc(100% - 80px); padding-inline: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; left: 20px; top: 12px; padding: 10px 16px; background: white; transform: translateY(-160%); font-family: var(--ui-font); }
.skip-link:focus { transform: none; }

/* Header: one shared content edge with the hero and the credit grid. */
.site-header { position: sticky; top: 0; z-index: 30; min-height: var(--header-height); background: var(--header-bg); }
.header-inner { min-height: var(--header-height); display: flex; align-items: center; gap: 24px; }
.brand { display: block; flex: 0 0 150px; line-height: 0; }
.brand img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(22px, 2vw, 36px); margin-inline: auto; }
.site-nav a { position: relative; padding: 9px 0; white-space: nowrap; text-decoration: none; font: 700 16.5px/1.3 var(--ui-font); }
.site-nav a::after { content: ""; position: absolute; bottom: 3px; left: 0; right: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--red); }
.site-nav a:hover::after, .site-nav a[aria-current]::after { transform: scaleX(1); }
.catalog-button { display: inline-flex; justify-content: center; align-items: center; gap: 5px; flex-shrink: 0; min-height: 38px; padding: 10px 16px; border-radius: 2px; background: var(--red); color: white; text-decoration: none; white-space: nowrap; font: 700 13px/1.2 var(--ui-font); }
.catalog-button:hover { background: #e5211a; }
.menu-toggle { display: none; }

/* Hero coordinates use a 6761 × 3550 artboard, matching the supplied components.
   Animate the inner .motion-target, not these layout wrappers. */
.exhibition-hero { padding: clamp(48px, 5vw, 96px) 0 clamp(80px, 8vw, 154px); }
.hero-stage { position: relative; width: 100%; aspect-ratio: 6761 / 3550; isolation: isolate; }
.hero-piece { position: absolute; margin: 0; }
.hero-piece img { display: block; width: 100%; height: auto; }
.hero-scene { z-index: 0; left: 28.783%; top: 0; width: 71.217%; }
.hero-paper { z-index: 1; left: 10.45%; top: 21.4%; width: 23.428%; mix-blend-mode: multiply; }
.hero-title-one { z-index: 2; left: 0; top: 2.2%; width: 29.374%; mix-blend-mode: multiply; }
.hero-title-two { z-index: 3; left: 5.38%; top: 23.65%; width: 38.633%; mix-blend-mode: multiply; }
.hero-title-three { z-index: 4; left: 0.52%; top: 45.8%; width: 17.764%; mix-blend-mode: multiply; }
.hero-details { z-index: 5; left: 0; top: 86.7%; width: 26.49%; mix-blend-mode: multiply; }
.hero-english { z-index: 6; right: 0; top: 75.4%; width: 22.926%; mix-blend-mode: multiply; }
.motion-target { transform: translate3d(var(--motion-x, 0px), var(--motion-y, 0px), 0) rotate(var(--motion-rotate, 0deg)) scale(var(--motion-scale, 1)); opacity: var(--motion-opacity, 1); transform-origin: center; }

/* Sections and credits. Text remains live; counts come from site-data.js. */
section.block { padding-block: 0 clamp(70px, 8vw, 120px); border-top: 0; scroll-margin-top: 0; }
section.block > .wrap { border-top: 1px solid var(--rule); padding-top: 44px; }
.head { gap: 12px; margin-bottom: 36px; }
.head .section-index { font: 700 13px/1.5 var(--ui-font); color: var(--red); margin: 0 0 4px; }
.section-index span { padding-inline: 3px; }
.head h2 { font-size: clamp(34px, 2.2vw, 42px); font-weight: 400; line-height: 1.35; word-break: keep-all; letter-spacing: -.035em; }
.head p { font: 15px/1.8 var(--ui-font); color: #6e7874; letter-spacing: -.025em; max-width: 52em; }
.chips { gap: 8px; margin-bottom: 16px; }
.chip { border: 0; border-radius: 2px; box-shadow: none; background: #303938; color: #fff; font: 700 13px/1.35 var(--ui-font); padding: 8px 12px; min-height: 34px; gap: 6px; transition: background 160ms ease; }
.chip small { color: #c6cecc; font: 12px/1 var(--ui-font); }
.chip:hover { background: #535d5a; }
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); }
.chip[aria-pressed="true"] small { color: #fff; opacity: .7; }
.chip:active { transform: none; }
.group { padding: 0; }
.cards { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0 24px; }
#people .card { padding: 46px 18px 42px; min-height: 246px; border-radius: 0; background: transparent; }
#people .card:hover, #people .card:focus-visible { background: var(--sheet); }
.card-content { display: flex; flex-direction: column; align-items: center; width: 100%; }
#people .logo { height: 56px; margin-bottom: 32px; }
#people .logo img { max-width: min(162px, 100%); max-height: 56px; object-fit: contain; }
#people .logo .word { font-size: 22px; font-weight: 400; }
#people .logo .word.latin { font-size: 25px; font-weight: 700; }
#people .card .name { font-family: var(--f-display); font-size: 21px; font-weight: 400; line-height: 1.4; }
#people .card .role { font-size: 16px; color: #616b66; line-height: 1.6; margin-top: 5px; max-width: 24ch; word-break: keep-all; }
#people .card .tw { font-size: 14px; }
.group-label { margin-block: 20px 12px; }
.group-label .hint { font-size: 16px; }

/* Existing content beyond the supplied artboard follows the same type and rules. */
.zone { scroll-margin-top: calc(var(--header-height) + 28px); }
.shift-zone { padding-bottom: 0; }
.shift-zone + .zone { border-top: 0; padding-top: 28px; }
.space3d-frame, .sw-frame, .sw-photo img { border-radius: 0; }
.space3d p, .tw-map .cap, .sw-bar, .cal-legend { font-family: var(--ui-font); font-size: 15px; }
.sw-btn, .mini button { border-radius: 2px; }
.sw-photo { margin: 0 0 36px; }
.sw-frame { box-shadow: none; }
.mgrid { gap: 20px; }
.mach { border-radius: 0; }
.zone .part { color: var(--red-ink); }
.orgs { border-top-width: 1px; }
.org dt { font: 700 13px/1.5 var(--ui-font); color: var(--red); letter-spacing: 0; }
.org dd { font-weight: 400; }
.back-to-top { position: fixed; right: 32px; bottom: 30px; z-index: 20; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--red); text-decoration: none; transition: background 160ms ease, transform 160ms ease; }
.back-to-top:hover { background: #e5211a; transform: translateY(-3px); }
footer { border-color: var(--rule); padding-block: 32px 60px; }
footer .foot-actions { display: flex; flex-wrap: wrap; gap: 8px; }
footer .dl.dl-map { background: #fff; color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }
footer .dl.dl-map:hover { background: var(--red); color: #fff; }
footer .dl { border: 0; border-radius: 2px; background: var(--red); color: #fff; font: 700 13px/1.4 var(--ui-font); padding: 10px 15px; }
footer p.small { font-size: 14px; }
footer .foot-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; word-break: keep-all; }
footer .foot-msg { font-family: var(--f-display); font-size: 17px; color: var(--ink); }
footer .foot-copy { font-family: var(--f-display); font-size: 17px; color: var(--ink-2); }
@media (max-width: 640px) {
  footer .foot-note { flex-direction: column; gap: 6px; }
  footer .foot-msg, footer .foot-copy { font-size: 16px; }
}
.ov { z-index: 60; }
.sheet { background: #fff; }
.toast { z-index: 80; font-family: var(--ui-font); }


/* Readable details beyond the hero. Song Myung is reserved for headings. */
.back-to-top svg { width: 28px; height: 28px; }
.catalog-button > span { font-size: 16px; }
.steps b { font-family: var(--f-display); font-size: 23px; }
.steps span { font-size: 17px; }
.zone h3 { font-size: 30px; }
.zone .zd { font-size: 17px; }
.zone .part { font-size: 16px; }
.mach h4 { font-size: 22px; }
.mach dl, .mach .nt, .mach .sub { font-size: 13.5px; }
.sw-btn { font-size: 15px; min-height: 36px; padding: 8px 15px; }
.cal-nav button { font-size: 17px; }
.cal-nav button b { font-size: 28px; }
.cal-nav button small { font-size: 13px; }
.cal .dow { font-size: 15px; }
.day { min-height: 136px; }
.day .n { font-size: 17px; width: 30px; height: 30px; }
.pill { font-size: 13px; }
.pill time { font-size: 12px; }
.org dd { font-size: 21px; }
.org dd small { font-size: 15px; }
.sheet .x { font-size: 30px; min-width: 40px; min-height: 40px; }
.pf-links a { font-size: 15px; padding: 6px 14px; }

@media (max-width: 1100px) {
  .wrap { width: calc(100% - 80px); }
  .site-nav { gap: 23px; }
  .header-inner { gap: 20px; }
}
@media (max-width: 1024px) {
  :root { --header-height: 82px; }
  .header-inner { position: relative; gap: 16px; }
  .brand { flex-basis: 150px; margin-right: auto; }
  .menu-toggle { order: 3; display: inline-flex; align-items: center; gap: 9px; border: 0; padding: 10px 0 10px 5px; background: transparent; cursor: pointer; white-space: nowrap; font: 700 14px/1.3 var(--ui-font); }
  .menu-symbol { display: grid; gap: 5px; width: 20px; }
  .menu-symbol i { display: block; height: 1px; background: currentColor; transition: transform 160ms ease; }
  .menu-toggle[aria-expanded="true"] .menu-symbol i:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-symbol i:last-child { transform: translateY(-3px) rotate(-45deg); }
  .site-nav { display: none; position: absolute; top: 100%; left: -40px; right: -40px; padding: 12px 40px 24px; background: var(--header-bg); border-bottom: 1px solid #dce1df; }
  .site-header[data-menu-open] .site-nav { display: grid; gap: 2px; }
  .site-nav a { padding: 14px 0; font-size: 18px; }
  .site-nav a::after { width: 32px; bottom: 7px; }
  .head h2 { font-size: 32px; }
  .cards { gap: 0 12px; }
  #people .card { padding-inline: 10px; }
}
@media (max-width: 640px) {
  :root { --header-height: 76px; }
  .wrap { width: calc(100% - 40px); max-width: none; }
  .header-inner { gap: 12px; }
  .brand { flex-basis: 132px; }
  .catalog-button { padding: 9px 10px; min-height: 36px; font-size: 11px; gap: 3px; }
  .menu-toggle { font-size: 13px; }
  .site-nav { left: -20px; right: -20px; padding-inline: 20px; }
  .exhibition-hero { padding-top: 44px; padding-bottom: 58px; }
  /* Portrait artboard: same separate pieces, repositioned rather than shrunk to illegibility. */
  .hero-stage { aspect-ratio: 1 / 1.20; }
  .hero-scene { top: 29%; left: 12%; width: 88%; }
  .hero-paper { top: 10%; left: 14%; width: 30%; }
  .hero-title-one { top: 0; left: 0; width: 46%; }
  .hero-title-two { top: 13.5%; left: 6%; width: 60.5%; }
  .hero-title-three { top: 28.5%; left: 0; width: 28%; }
  .hero-details { top: 85%; left: 0; width: 49%; }
  .hero-english { top: 83%; right: 0; width: 32%; }
  section.block { padding-bottom: 64px; }
  section.block > .wrap { padding-top: 32px; }
  .head { gap: 10px; margin-bottom: 25px; }
  .head .section-index { font-size: 12px; }
  .head h2 { font-size: 30px; max-width: 19ch; }
  .head p { font-size: 14px; line-height: 1.8; }
  .chips { gap: 6px; margin-bottom: 12px; }
  .chip { min-height: 36px; font-size: 12px; padding: 8px 10px; }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 10px; }
  #people .card { min-height: 232px; padding: 34px 6px; }
  #people .logo { margin-bottom: 26px; height: 48px; }
  #people .logo img { max-width: min(132px,100%); max-height: 48px; }
  #people .logo .word { font-size: 18px; }
  #people .logo .word.latin { font-size: 23px; }
  #people .card .name { font-size: 19px; }
  #people .card .role { font-size: 14px; max-width: 21ch; }
  .back-to-top { width: 48px; height: 48px; right: 18px; bottom: 18px; }
  .mgrid { grid-template-columns: minmax(0,1fr); }
  .sw-bar { align-items: flex-start; flex-direction: column; gap: 12px; }
  footer .foot { padding-right: 40px; }
  .chip small { font-size: 11px; }
  .day { min-height: 78px; }
  .day .n { font-size: 15px; width: 26px; height: 26px; }
  .pill { font-size: 0; }
  .cal-nav button { font-size: 14px; padding-inline: 9px; }
  .cal-nav button b { font-size: 23px; }
  .cal-nav button small { font-size: 11px; }
  .mach dl, .mach .nt, .mach .sub { font-size: 13px; }
  .zone h3 { font-size: 27px; }
  .zone .zd { font-size: 15px; }
  .back-to-top svg { width: 26px; height: 26px; }
}
@media (max-width: 380px) {
  .brand { flex-basis: 112px; }
  .menu-toggle > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .menu-toggle { gap: 0; }
  .header-inner { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motion-target { transform: none !important; opacity: 1 !important; }
  .site-nav a::after, .menu-symbol i, .back-to-top, .chip, .card { transition: none; }
}

/* 함께한 긔계들: 구역마다 한 줄, 옆으로 넘기는 카드 (B안, 2026-11-01) */
.zone-row { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 18px; }
.zone-row .zt { flex: 1; min-width: 0; display: grid; gap: 6px; }
.zone h3 .zc { margin-left: 12px; font: 400 14px var(--ui-font); color: var(--ink-2); }
.rail-arrows { display: flex; gap: 6px; flex-shrink: 0; }
.rail-arrows[hidden] { display: none; }
.rail-arrows button { width: 42px; height: 42px; border: 1px solid var(--ink); background: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.rail-arrows button:hover { background: var(--ink); color: #fff; }
.rail-arrows button:disabled { opacity: .25; pointer-events: none; }
.mrail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.mcard { flex: 0 0 240px; scroll-snap-align: start; display: flex; flex-direction: column; min-height: 184px; padding: 18px 18px 16px; text-align: left; border: 0; cursor: pointer; color: var(--ink); font: inherit;
  background-color: #ececeb; background-image: radial-gradient(rgba(70,70,70,.2) .85px,transparent 1.2px),radial-gradient(rgba(70,70,70,.2) .85px,transparent 1.2px); background-size: 5px 5px; background-position: 0 0,2.5px 2.5px; transition: transform .15s ease; }
.mcard:hover { transform: translateY(-3px); }
.mcard:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.mcard .yr { font-size: 13px; color: var(--ink-2); }
.mcard .nm { margin-top: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); font: 400 21px/1.35 var(--f-display); word-break: keep-all; }
.mcard .ly { margin-top: 10px; font-size: 14px; }
.mcard .go { margin-top: auto; padding-top: 12px; font-size: 13px; color: var(--red-ink); }
.mcard.add-tile { align-items: center; justify-content: center; background: #fff; border: 1px dashed var(--ink-2); }
.md-zone { margin: 0; font-size: 14px; color: var(--red-ink); }
.md-name { margin: 6px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--ink); font: 400 28px/1.3 var(--f-display); }
.md-sub { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
.md-ph { margin-top: 14px; background: var(--sheet); }
.md-ph img { display: block; width: 100%; height: auto; }
.md-dl { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 6px 18px; margin: 16px 0 0; font-size: 15px; }
.md-dl dt { color: var(--ink-2); white-space: nowrap; }
.md-dl dd { margin: 0; overflow-wrap: anywhere; }
.md-note { margin: 14px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.md-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--rule); }
.md-nav button { border: 0; background: none; padding: 0; font: 14px var(--ui-font); color: var(--ink-2); cursor: pointer; text-align: left; }
.md-nav button:last-child { text-align: right; }
.md-nav button:hover { color: var(--red-ink); }
@media (max-width: 700px) {
  .rail-arrows { display: none !important; }
  .mcard { flex-basis: 72%; min-height: 170px; }
  .zone h3 .zc { font-size: 13px; }
}
/* 모두 같아진 자판: 벌식별 묶음 */
.msub + .msub { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--rule); }
.msub-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.msub-head h4 { flex: 1; margin: 0; font: 400 22px/1.3 var(--f-display); }
.msub-head h4 .zc { margin-left: 10px; font: 400 13px var(--ui-font); color: var(--ink-2); }
.msub-head .rail-arrows button { width: 36px; height: 36px; font-size: 16px; }
@media (max-width: 700px) { .msub-head h4 { font-size: 20px; } }
