/* ===== art&music house — exhibition site ===== */
@import "fonts.css";

:root {
  /* ink / neutral scale (warm) */
  --ink-900: #17150f;
  --ink-800: #26231b;
  --ink-700: #3a362c;
  --ink-500: #6b6558;
  --ink-400: #8d8778;
  --ink-300: #b4ae9f;

  /* sand / paper */
  --sand-base: #e8e1d3;
  --sand-deep: #ddd4c2;
  --paper: #f4f0e7;
  --paper-hi: #faf7f0;
  --white: #ffffff;

  /* accents (used very sparingly) */
  --tan: #c9b48f;
  --hair: rgba(23, 21, 15, 0.14);
  --hair-soft: rgba(23, 21, 15, 0.08);

  /* semantic */
  --bg: var(--sand-base);
  --surface: var(--paper);
  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --line: var(--hair);

  /* type */
  --serif: "Cormorant Garamond", "Noto Serif KR", Georgia, serif; /* @kind font */
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; /* @kind font */

  /* spacing */
  --gutter: clamp(20px, 5vw, 88px); /* @kind spacing */
  --maxw: 1360px; /* @kind spacing */

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1); /* @kind other */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; transition: opacity 0.35s var(--ease); }
a:hover { opacity: 0.55; }

img { display: block; max-width: 100%; }

::selection { background: var(--ink-900); color: var(--sand-base); }

/* ---- type primitives ---- */
.display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.serif { font-family: var(--serif); font-weight: 400; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lede { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-700); font-weight: 300; }

/* ---- layout ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

.rule { height: 1px; background: var(--line); border: 0; }

/* ---- buttons ---- */
.btn {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--ink-900);
  background: transparent;
  color: var(--ink-900);
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), opacity 0.3s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--ink-900); color: var(--sand-base); opacity: 1; }
.btn:active { transform: scale(0.97); }
.btn svg { width: 15px; height: 15px; }

.btn--solid { background: var(--ink-900); color: var(--sand-base); }
.btn--solid:hover { background: var(--ink-700); color: var(--sand-base); }

.btn--ghost { border-color: var(--hair); }
.btn--sm { padding: 10px 16px; font-size: 11px; }

/* ---- links inline ---- */
.link-underline {
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--ink-900);
  padding-bottom: 2px;
  transition: gap 0.35s var(--ease), opacity 0.35s var(--ease);
}
.link-underline:hover { opacity: 1; gap: 14px; }

/* ---- reveal on load ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); animation: rise 0.9s var(--ease) forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---- toast ---- */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(20px);
  background: var(--ink-900); color: var(--sand-base);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  padding: 13px 22px; border-radius: 999px; z-index: 200;
  opacity: 0; pointer-events: none; transition: all 0.5s var(--ease);
  display: flex; align-items: center; gap: 10px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--ink-300); border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }

/* ===== scroller (owns scroll so header can react) ===== */
.scroller { height: 100vh; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; }

/* ===== wordmark ===== */
.wm { display: flex; align-items: center; background: none; border: 0; cursor: pointer; padding: 0; color: var(--ink-900); transition: opacity .3s var(--ease); }
.wm:hover { opacity: .6; }
.wm__logo { height: 44px; width: auto; display: block; }

/* ===== header ===== */
.hdr { position: sticky; top: 0; z-index: 100; padding: 22px 0; transition: background .5s var(--ease), padding .4s var(--ease), border-color .5s var(--ease); border-bottom: 1px solid transparent; }
.hdr--solid { background: rgba(232,225,211,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 15px 0; border-bottom-color: var(--hair-soft); }
.hdr__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hdr__nav { display: flex; align-items: center; gap: 16px; }
.hdr__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-400); }

/* ===== section head ===== */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 52px; }

/* ===== hero ===== */
.hero { padding: clamp(60px, 11vw, 150px) 0 clamp(50px, 8vw, 100px); }
.hero__meta { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 34px; margin-bottom: clamp(30px, 6vw, 68px); border-bottom: 1px solid var(--line); }
.hero__title { font-size: clamp(74px, 20vw, 300px); position: relative; }
.hero__pre { display: block; font-size: clamp(18px, 2.6vw, 34px); font-style: italic; font-weight: 300; color: var(--ink-500); letter-spacing: 0; margin-bottom: .12em; margin-left: .04em; }
.hero__title em { font-style: italic; font-weight: 400; }
.hero__intro { max-width: 620px; margin-top: clamp(34px, 6vw, 66px); margin-left: auto; }

/* ===== concepts ===== */
.concepts { padding: clamp(50px, 8vw, 100px) 0; }
.concepts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.concept { background: var(--bg); padding: clamp(28px, 3vw, 48px) clamp(22px, 2.4vw, 40px) clamp(38px, 4vw, 60px); display: flex; flex-direction: column; min-height: 340px; transition: background .5s var(--ease); }
.concept:hover { background: var(--paper); }
.concept__no { font-size: 15px; color: var(--ink-400); font-weight: 500; letter-spacing: .1em; }
.concept__en { font-size: clamp(46px, 5vw, 76px); margin: auto 0 .18em; font-weight: 300; }
.concept__ko { font-size: 17px; font-weight: 500; margin-bottom: 12px; }
.concept__desc { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; max-width: 30ch; }
.concept__go { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; color: var(--ink-700); transition: gap .35s var(--ease), opacity .3s var(--ease); }
.concept:hover .concept__go { gap: 12px; }
.concept__go svg { width: 13px; height: 13px; }

/* ===== artists grid ===== */
.artists { padding: clamp(50px, 8vw, 100px) 0; }
.artists__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 40px) clamp(16px, 2vw, 32px); }
.acard { display: block; text-align: left; background: none; border: 0; cursor: pointer; padding: 0; color: inherit; opacity: 0; transform: translateY(16px); animation: rise .8s var(--ease) forwards; }
.acard__img { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--sand-deep); }
.acard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s var(--ease); filter: grayscale(1) contrast(1.02); }
.acard:hover .acard__img img { transform: scale(1.05); filter: grayscale(.5) contrast(1.04); }
.acard__concept { position: absolute; top: 14px; left: 14px; background: rgba(232,225,211,.9); backdrop-filter: blur(6px); padding: 6px 11px; border-radius: 999px; color: var(--ink-800); }
.acard__meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-top: 16px; }
.acard__name { font-size: 21px; font-weight: 500; }
.acard__title { font-size: 14px; color: var(--text-muted); margin-top: 2px; }
.acard__go { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--hair); display: grid; place-items: center; transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease); }
.acard:hover .acard__go { background: var(--ink-900); color: var(--sand-base); transform: translateX(3px); }

/* ===== visit ===== */
.visit { padding: clamp(60px, 9vw, 120px) 0; background: var(--ink-900); color: var(--sand-base); }
.visit .eyebrow { color: var(--ink-300); }
.visit__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.visit__title { font-size: clamp(40px, 5.5vw, 82px); margin: 22px 0 44px; color: var(--paper-hi); }
.visit__list { display: flex; flex-direction: column; gap: 24px; margin-bottom: 44px; }
.visit__list > div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: baseline; padding-bottom: 22px; border-bottom: 1px solid rgba(232,225,211,.14); }
.visit__list dd { font-size: 16px; color: var(--sand-base); }
.visit__list dd.serif { font-size: 22px; }
.visit__en { display: block; font-size: 13px; color: var(--ink-300); margin-top: 3px; }
.visit__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.visit .btn { border-color: rgba(232,225,211,.35); color: var(--sand-base); }
.visit .btn:hover { background: var(--sand-base); color: var(--ink-900); }
.visit .btn--solid { background: var(--sand-base); color: var(--ink-900); border-color: var(--sand-base); }
.visit .btn--solid:hover { background: var(--paper-hi); }
.visit__map { position: relative; aspect-ratio: 5/4; overflow: hidden; border-radius: 2px; display: block; }
.visit__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.1) brightness(.96); transition: filter .6s var(--ease); }
.visit__map:hover iframe { filter: grayscale(.4) contrast(1.05); }
.visit__map:hover { opacity: 1; }
.visit__mappin { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; background: var(--ink-900); color: var(--sand-base); display: grid; place-items: center; pointer-events: none; box-shadow: 0 8px 30px rgba(0,0,0,.3); }

/* ===== footer ===== */
.ftr { background: var(--paper); padding: clamp(56px, 8vw, 110px) 0 40px; }
.ftr__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: 48px; }
.ftr__big { font-size: clamp(66px, 11vw, 150px); line-height: .8; font-style: italic; }
.ftr__mark .eyebrow { margin-top: 16px; }
.ftr__contact { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; }
.ftr__email { font-size: clamp(24px, 3vw, 38px); font-style: italic; border-bottom: 1px solid var(--ink-900); padding-bottom: 4px; }
.ftr__socials { display: flex; gap: 10px; }
.soc { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--hair); border-radius: 999px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; transition: background .4s var(--ease), color .4s var(--ease); }
.soc:hover { background: var(--ink-900); color: var(--sand-base); opacity: 1; }
.ftr__bot { display: flex; justify-content: space-between; padding-top: 28px; }

/* ===== artist detail ===== */
.ad__back { padding-top: 30px; }
.ad__backbtn { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; border-color: var(--hair); background: none; cursor: pointer; }
.ad-head { padding: clamp(30px, 5vw, 64px) 0 clamp(50px, 8vw, 100px); }
.ad-head__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.ad-head__concept { display: block; margin-bottom: 22px; }
.ad-head__name { font-size: clamp(54px, 8vw, 120px); }
.ad-head__en { font-size: 18px; font-style: italic; color: var(--ink-500); margin-top: 8px; }
.ad-head__work { margin-top: clamp(34px, 5vw, 56px); max-width: 46ch; }
.ad-head__wtitle { font-size: 24px; }
.ad-head__medium { margin: 8px 0 22px; }
.ad-head__statement { font-size: 16px; line-height: 1.72; color: var(--ink-700); }
.share-btn { margin-top: 30px; }
.ad-head__fig { position: sticky; top: 100px; }
.ad-head__fig img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(1) contrast(1.03); background: var(--sand-deep); }
.ad-head__fig figcaption { margin-top: 12px; text-align: right; }

/* ===== media ===== */
.media { padding: clamp(50px, 7vw, 90px) 0; background: var(--paper); }
.media__stage { display: grid; grid-template-columns: 1fr; gap: 16px; }
.media__main { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--ink-800); }
.media__main img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); }
.media__play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: rgba(23,21,15,.28); border: 0; cursor: pointer; transition: background .4s var(--ease); }
.media__play:hover { background: rgba(23,21,15,.42); }
.media__play.is-playing { background: rgba(23,21,15,.12); }
.media__playbtn { width: 74px; height: 74px; border-radius: 50%; background: rgba(244,240,231,.94); color: var(--ink-900); display: grid; place-items: center; padding-left: 4px; transition: transform .4s var(--ease); }
.media__play:hover .media__playbtn { transform: scale(1.08); }
.media__play.is-playing .media__playbtn { transform: scale(.9); opacity: .85; }
.media__playlabel { color: var(--paper-hi); }
.media__caption { position: absolute; left: 16px; bottom: 14px; color: var(--paper-hi); background: rgba(23,21,15,.5); padding: 5px 12px; border-radius: 999px; }
.media__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mthumb { position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--sand-deep); border: 0; padding: 0; cursor: pointer; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .3s var(--ease); }
.mthumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: transform .6s var(--ease); }
.mthumb:hover img { transform: scale(1.06); }
.mthumb.is-active { outline-color: var(--ink-900); }
.mthumb__play { position: absolute; inset: 0; margin: auto; width: 30px; height: 30px; border-radius: 50%; background: rgba(244,240,231,.92); color: var(--ink-900); display: grid; place-items: center; padding-left: 2px; }

/* ===== process ===== */
.process { padding: clamp(50px, 8vw, 100px) 0; }
.process__head { align-items: flex-end; }
.process__sub { font-size: 14px; color: var(--text-muted); margin-top: 8px; }
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1vw, 16px); }
.ptile { position: relative; aspect-ratio: 13/16; overflow: hidden; background: var(--sand-deep); }
.ptile img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.02); transition: transform .7s var(--ease), filter .5s var(--ease); }
.ptile:hover img { transform: scale(1.05); filter: grayscale(.4); }
.ptile figcaption { position: absolute; left: 10px; bottom: 8px; font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--paper-hi); text-shadow: 0 1px 4px rgba(0,0,0,.5); }

/* ===== footnote ===== */
.footnote { padding: clamp(40px, 6vw, 80px) 0; }
.footnote__row { display: grid; grid-template-columns: 40px 1fr; gap: 8px; max-width: 760px; padding: 30px 0; border-top: 1px solid var(--ink-900); border-bottom: 1px solid var(--line); }
.footnote__mark { font-size: 28px; line-height: 1; color: var(--ink-700); }
.footnote__text { font-size: 15px; line-height: 1.75; color: var(--ink-700); font-style: italic; font-family: var(--serif); letter-spacing: 0; }

/* ===== next artist ===== */
.nextart { width: 100%; background: var(--ink-900); color: var(--sand-base); border: 0; cursor: pointer; padding: clamp(40px, 6vw, 80px) 0; transition: background .5s var(--ease); }
.nextart:hover { background: var(--ink-800); opacity: 1; }
.nextart .eyebrow { color: var(--ink-300); }
.nextart__row { display: flex; align-items: center; gap: 24px; }
.nextart__name { font-size: clamp(40px, 6vw, 84px); color: var(--paper-hi); margin-left: 4px; font-style: italic; }
.nextart__go { margin-left: auto; width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(232,225,211,.4); display: grid; place-items: center; transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease); }
.nextart:hover .nextart__go { transform: translateX(6px); background: var(--sand-base); color: var(--ink-900); }

/* ===== responsive ===== */
@media (max-width: 900px) {
  .concepts__grid, .artists__grid, .media__thumbs { grid-template-columns: repeat(2, 1fr); }
  .visit__grid, .ad-head__grid { grid-template-columns: 1fr; }
  .ad-head__fig { position: static; }
  .process__grid { grid-template-columns: repeat(3, 1fr); }
  .hdr__nav { display: none; }
}
@media (max-width: 560px) {
  .concepts__grid, .artists__grid, .process__grid, .media__thumbs { grid-template-columns: 1fr 1fr; }
  .concept { min-height: 260px; }
  .ftr__top { flex-direction: column; align-items: flex-start; }
  .ftr__contact { align-items: flex-start; }
  .process__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .visit__list > div { grid-template-columns: 90px 1fr; }
}
