@font-face {
  font-family: 'DaeguCatholicUniversity';
  src: url('/fonts/DaeguCatholicUniversity.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* tone: white (design default) */
  --bg: #ffffff;
  --ink: #0e0e0e;
  --mute: #8a8a8a;
  --line: rgba(0, 0, 0, .12);
  --card: #f2f2f2;

  --pad: clamp(20px, 4vw, 64px);
  --sans: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', sans-serif;
  --serif: 'Instrument Serif', serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.ko { font-family: var(--sans); word-break: keep-all; }
.acc {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ---------- reveal ---------- */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.2, .7, .2, 1);
}
.rv.in { opacity: 1; transform: none; }

/* ---------- header ---------- */
.hd {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--pad);
}
.hd::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;
}
.hd-logo img {
  width: 44px; height: 44px;
  object-fit: cover;
  border-radius: 50%;
}
.hd-nav {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hd-nav a { position: relative; padding: 6px 0; }
.hd-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
}
.hd-nav a:hover::after { transform: scaleX(1); }

/* ---------- hero ---------- */
.hero { padding: 120px var(--pad) 0; }
.hero-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.wordmark {
  font-family: 'DaeguCatholicUniversity', var(--sans);
  font-weight: normal;
  font-size: clamp(40px, 7vw, 120px);
  line-height: .9;
  letter-spacing: -.01em;
  margin: 3vw 0 0;
  display: flex;
  white-space: nowrap;
}
.wm-gap { flex: 0 0 .22em; }
.hero-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: clamp(32px, 4vw, 64px) 0 clamp(40px, 5vw, 80px);
  align-items: end;
}
.hero-ko {
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.35;
  margin: 0;
  word-break: keep-all;
}
.hero-roles {
  display: grid;
  gap: 10px;
  font-size: 14px;
}
.hero-roles div {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.hero-roles em { font-size: 22px; }
.hero-img {
  position: relative;
  margin: 0 calc(var(--pad) * -1);
  overflow: hidden;
}
.hero-img img {
  width: 100%;
  height: min(88vh, 62vw);
  object-fit: cover;
  object-position: 50% 60%;
}
.hero-cap {
  position: absolute;
  left: var(--pad);
  bottom: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #1b1a18;
  background: rgba(255, 255, 255, .7);
  padding: 6px 10px;
}

/* ---------- section head ---------- */
.sh {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: baseline;
  border-top: 1px solid var(--ink);
  padding-top: 16px;
  margin-bottom: clamp(40px, 5vw, 80px);
}
.sh-en {
  margin: 0;
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 76px);
  letter-spacing: -.04em;
  line-height: .95;
}
.sh-ko { font-size: 14px; color: var(--mute); }
.sh-right {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ---------- exhibit ---------- */
.works { padding: clamp(80px, 10vw, 160px) var(--pad) 0; }
.ex {
  position: relative;
  margin: 0 calc(var(--pad) * -1) clamp(80px, 10vw, 160px);
}
.ex-stick {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ex-track {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 56px);
  padding: 0 var(--pad);
  will-change: transform;
  height: 72vh;
}
.ex-fr {
  margin: 0;
  height: 100%;
  flex: 0 0 auto;
  cursor: zoom-in;
  display: flex;
  flex-direction: column;
}
.ex-fr img {
  height: calc(100% - 28px);
  width: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--card);
}
.ex-fr.wide img { aspect-ratio: 4 / 3; }
.ex-fr figcaption {
  padding-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ex-plaque {
  flex: 0 0 260px;
  align-self: flex-end;
  margin-bottom: 28px;
  border-left: 1px solid var(--ink);
  padding-left: 18px;
}
.ex-pno { font-family: var(--mono); font-size: 12px; }
.ex-plaque h3 {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1;
  margin: 14px 0 8px;
}
.ex-plaque p { margin: 0 0 18px; font-size: 13px; color: var(--mute); }
.ex-pcat {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
}
.ex-end {
  flex: 0 0 40vw;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 4vw;
}
.ex-end span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
}
.ex-end em { font-size: clamp(60px, 8vw, 140px); line-height: .9; }
.ex-bar {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 5vh;
  height: 1px;
  background: var(--line);
}
.ex-bar i {
  display: block;
  height: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}

/* scroll hint for small screens */
.ex-hint {
  display: none;
  position: absolute;
  left: var(--pad);
  bottom: calc(5vh - 26px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ---------- mobile horizontal works rails ---------- */
.mob-works { display: none; }
.mob-proj { margin-bottom: clamp(56px, 12vw, 90px); }
.mob-plaque {
  border-left: 1px solid var(--ink);
  padding-left: 14px;
  margin-bottom: 18px;
}
.mob-plaque .ex-pno { font-size: 11px; }
.mob-plaque h3 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin: 10px 0 6px;
}
.mob-plaque p { margin: 0 0 12px; font-size: 13px; color: var(--mute); }

/* the swipe lane: bleeds past the page padding, snaps one cut at a time */
.mob-rail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 0 calc(var(--pad) * -1);
  padding: 0 var(--pad);
  scrollbar-width: none;
}
.mob-rail::-webkit-scrollbar { display: none; }

.mob-shot {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: start;
  cursor: zoom-in;
}
/* filmstrip: every cut shares one height, width follows the photo's own ratio,
   so a 4:3 wide cut sits flush with the 3:4 portraits — no dead space below */
.mob-shot img {
  height: clamp(300px, 56vh, 470px);
  width: auto;
  max-width: none;
  object-fit: cover;
  background: var(--card);
}
.mob-shot figcaption {
  padding-top: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mute);
}

/* counter + progress + swipe affordance under each rail */
.mob-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
}
.mob-count b { color: var(--ink); font-weight: 500; }
.mob-prog {
  flex: 1;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.mob-prog i {
  display: block;
  height: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease-out;
}
.mob-swipe {
  opacity: .9;
  transition: opacity .4s ease;
}
.mob-proj[data-touched='1'] .mob-swipe { opacity: 0; }

/* ---------- about ---------- */
.about { padding: clamp(80px, 10vw, 160px) var(--pad) 0; }
.about-body {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  row-gap: clamp(48px, 6vw, 96px);
}
.about-lead {
  grid-column: 1 / 13;
  margin: 0;
  font-size: clamp(34px, 5.2vw, 88px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.08;
}
.about-name { grid-column: 1 / 8; display: grid; }
.nm {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.nm-k {
  font-family: var(--serif);
  font-style: italic;
  font-size: 40px;
  line-height: 1;
}
.nm-v { font-size: 15px; }
.about-cols {
  grid-column: 9 / 13;
  display: grid;
  gap: 32px;
  align-content: start;
}
.about-cols p {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.02em;
}

/* ---------- contact ---------- */
.contact { padding: clamp(100px, 12vw, 200px) var(--pad) clamp(60px, 8vw, 120px); }
.ct-mail {
  display: inline-flex;
  align-items: flex-start;
  gap: .2em;
  font-size: clamp(32px, 7.4vw, 140px);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
  transition: opacity .3s;
  word-break: break-all;
}
.ct-mail:hover { opacity: .55; }
.ct-mail .arrow { font-size: .45em; transition: transform .4s; }
.ct-mail:hover .arrow { transform: translate(6px, -6px); }
.ct-note {
  margin: clamp(24px, 3vw, 36px) 0 0;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}
.ct-list { margin-top: clamp(32px, 4vw, 56px); max-width: 520px; }
.ct-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.ct-row .val { word-break: break-all; }

/* ---------- footer ---------- */
.ft {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px var(--pad);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
}
.ft-logo { width: 36px; height: 36px; }
.ft a { margin-left: auto; color: var(--ink); }

/* ---------- lightbox ---------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: lbIn .3s ease;
}
.lb[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } }
.lb > img {
  max-width: 86vw;
  max-height: 80vh;
  object-fit: contain;
  cursor: default;
  animation: lbImg .5s cubic-bezier(.2, .7, .2, 1);
}
@keyframes lbImg { from { opacity: 0; transform: scale(.98); } }
.lb-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 20px var(--pad);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lb-top .ko { color: var(--mute); text-transform: none; letter-spacing: 0; }
.lb-top button { margin-left: auto; }
.lb button {
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  padding: 20px;
}
.lb-nav.prev { left: calc(var(--pad) - 20px); }
.lb-nav.next { right: calc(var(--pad) - 20px); }
.lb-count {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
}

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .hd-nav { gap: 18px; font-size: 11px; }
  .hero { padding-top: 100px; }
  .hero-sub { grid-template-columns: 1fr; }
  .hero-meta span:nth-child(3) { display: none; }
  .sh { grid-template-columns: 1fr; row-gap: 6px; }
  .sh-ko, .sh-right { grid-column: 2; }
  .about-name, .about-cols { grid-column: 1 / 13; }
  .nm { grid-template-columns: 100px 1fr; }
  .ft { flex-wrap: wrap; gap: 14px; }
  .lb-top .ko { display: none; }
  .lb-top { font-size: 11px; gap: 12px; }
}

/* phones: the gallery wall becomes a native horizontal swipe carousel */
@media (max-width: 760px) {
  /* the old vertical-stack markup stays in the tree but is never shown */
  .mob-works { display: none !important; }

  /* un-stick the exhibit: it now scrolls sideways on its own */
  .ex { display: block; height: auto !important; }
  .ex-stick {
    position: relative;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 8px 0 32px;
  }
  .ex-stick::-webkit-scrollbar { display: none; }
  .ex-track {
    height: 62vh;
    max-height: 560px;
    gap: 14px;
    width: max-content;
    transform: none !important;
  }
  .ex-fr,
  .ex-plaque {
    scroll-snap-align: start;
    scroll-margin-left: var(--pad);
  }
  .ex-plaque { flex: 0 0 200px; }
  .ex-plaque h3 { font-size: 26px; }
  .ex-end { flex: 0 0 70vw; }
  .ex-end em { font-size: 56px; }
  .ex-bar { display: none; }

  .hero-img img { height: 62vh; }
  .ct-mail { font-size: clamp(26px, 8.4vw, 48px); }
  .ct-row { grid-template-columns: 96px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .ex-track { will-change: auto; }
  .fr:hover .fr-img img, .ex-fr:hover img { transform: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (hover: hover) {
  .ex-fr img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
  .ex-fr:hover img { transform: scale(1.02); }
  .mob-shot:hover img { transform: scale(1.02); }
  .mob-shot img { transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
}
