/* VACUUM ARCHIVE — a museum-style catalogue on the archive's own black page. Single dark look on purpose. */
:root {
  --ink: #0d0d0c;      /* page */
  --plate: #191917;    /* behind images */
  --bone: #efede8;     /* main text */
  --mist: #bdb9b1;     /* secondary text, kept high-contrast for reading */
  --rule: #2e2d2a;     /* hairlines */
  --chrome: #c9ccd0;   /* silver accent */
  --display: "EB Garamond", "Garamond", "Times New Roman", serif;
  --body: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color-scheme: dark;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--bone); font-family: var(--body); font-size: 17px; line-height: 1.8; -webkit-font-smoothing: antialiased; word-break: keep-all; }
img, video { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--chrome); outline-offset: 4px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ink); }
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--ink) 90%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
header.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 16px; }
.mark { font-family: var(--display); letter-spacing: .3em; font-size: 16px; text-transform: uppercase; text-decoration: none; }
nav { display: flex; gap: 24px; font-family: var(--display); font-size: 17px; }
nav a { text-decoration: none; color: var(--mist); transition: color .2s; }
nav a:hover { color: var(--bone); }

/* hero: full-bleed runway video, the name sits on top of it */
.hero { position: relative; overflow: hidden; min-height: min(92svh, 920px); display: flex; align-items: flex-end; border-top: 0; }
.hero-clip { position: absolute; inset: 0; overflow: hidden; }
.hero-bg { background: var(--plate); position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.62); transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) scale(1.02); transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,13,12,.15) 0%, rgba(13,13,12,0) 35%, rgba(13,13,12,.9) 100%); pointer-events: none; }
.hero-in { position: relative; z-index: 1; width: 100%; padding-block: 120px 56px; }
.kicker { margin: 0 0 18px; font-family: var(--display); font-size: 18px; letter-spacing: .2em; text-transform: uppercase; color: var(--chrome); }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(72px, 15vw, 230px); line-height: .84; margin: 0; letter-spacing: -.02em; }
.hero h1 i { color: var(--chrome); }
.hero-foot { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(239,237,232,.25); }
.hero .lede { margin: 0; font-size: 18px; max-width: 26em; }
.now { text-decoration: none; font-family: var(--display); font-size: 22px; }
.now span { display: block; font-family: var(--body); font-size: 13px; color: var(--mist); }
.now:hover { color: var(--chrome); }

/* WebGL hero: the shader draws the video; the plain video stays as the fallback */
.hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.gl .hero-gl { display: block; }
.gl .hero-bg { visibility: hidden; }
.sx .hero-gl { transform: scale(calc(1 + var(--p, 0) * .3)); }

/* custom cursor (fine pointers only, added by JS) */
.cursor { display: none; }
.cur, .cur a, .cur button { cursor: none; }
.cur .cursor { display: grid; place-items: center; position: fixed; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 1px solid var(--bone); border-radius: 50%; pointer-events: none; z-index: 20; mix-blend-mode: difference; transition: width .35s cubic-bezier(.2,.7,.2,1), height .35s cubic-bezier(.2,.7,.2,1), margin .35s cubic-bezier(.2,.7,.2,1), background .35s; }
.cur .cursor::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: var(--bone); transform: translate(var(--dx, 0px), var(--dy, 0px)); }
.cursor span { font-family: var(--display); font-size: 13px; letter-spacing: .2em; color: var(--ink); opacity: 0; transition: opacity .2s; }
.cursor.link { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.cursor.view { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--bone); mix-blend-mode: normal; border-color: var(--bone); }
.cursor.view span { opacity: 1; }
.cursor.view::after { display: none; }

/* scroll transition (only when JS adds .sx): the hero pins, the video frame closes like an aperture, the name splits apart */
.sx .pin { height: 210svh; }
.sx .hero { position: sticky; top: 0; height: 100svh; min-height: 0; }
.sx .hero-clip { --q: var(--p, 0); clip-path: inset(calc(var(--q) * 16%) calc(var(--q) * 31%) calc(var(--q) * 16%) calc(var(--q) * 31%)); }
.sx .hero-bg { filter: grayscale(1) contrast(1.1) brightness(calc(.62 + var(--p, 0) * .3)); transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) scale(calc(1.02 + var(--p, 0) * .35)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.sx .hero::after { opacity: calc(1 - var(--p, 0) * 1.4); }
.sx .hero h1 span, .sx .hero h1 i { display: inline-block; will-change: transform; }
.sx .w1 { transform: translateX(calc(var(--p, 0) * -55vw)); }
.sx .w2 { transform: translateX(calc(var(--p, 0) * 55vw)); }
.sx .kicker, .sx .hero-foot { opacity: calc(1 - var(--p, 0) * 3); transform: translateY(calc(var(--p, 0) * 40px)); }
.sx .tile { opacity: 0; transform: translateY(70px); transition: opacity .9s ease, transform 1s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.sx .tile.in { opacity: 1; transform: none; }


section { border-top: 1px solid var(--rule); }
section > .wrap { padding-block: 80px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.sec-head h2 { font-family: var(--display); font-weight: 400; font-size: 48px; margin: 0; }
.sec-head span { font-size: 14px; color: var(--mist); }

/* index: Instagram-style grid */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.grid { row-gap: 28px; }
.tile { display: grid; gap: 10px; text-decoration: none; }
.ph { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--plate); }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tile:hover .ph img { transform: scale(1.03); }
.bars { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; gap: 3px; opacity: 0; transition: opacity .3s; }
.bars i { flex: 1; height: 2px; background: rgba(239,237,232,.35); }
.bars i.on { background: var(--bone); }
.tile:hover .bars, .tile:focus-visible .bars { opacity: 1; }
.cap { display: grid; gap: 2px; }
.cap b { font-family: var(--display); font-weight: 400; font-size: 15px; letter-spacing: .08em; color: var(--chrome); }
.cap small { font-size: 15px; line-height: 1.5; color: var(--mist); transition: color .3s; }
.tile:hover .cap small { color: var(--bone); }
.hint-m { display: none; }

/* about / collaborate */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 64px; }
.about blockquote { margin: 0; font-family: var(--display); font-style: italic; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.12; }
.about p { margin: 0 0 1em; max-width: 34em; }
.kit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.kit div { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 24px 20px; }
.kit b { display: block; font-family: var(--display); font-weight: 400; font-size: 46px; line-height: 1; font-variant-numeric: tabular-nums; }
.kit small { display: block; margin-top: 10px; font-size: 14px; color: var(--mist); }
.collab { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
.collab h4 { font-family: var(--display); font-weight: 500; font-size: 24px; margin: 0 0 8px; }
.collab p { margin: 0; color: var(--mist); }
.contact { margin: 48px 0 0; font-size: 18px; }
.contact a { color: var(--chrome); }

/* issue page */
.issue-head { padding-block: 48px 40px; }
.back { display: inline-block; text-decoration: none; color: var(--mist); font-size: 15px; margin-bottom: 36px; }
.back:hover { color: var(--bone); }
.acc { display: flex; gap: 20px; font-family: var(--display); font-size: 18px; color: var(--chrome); letter-spacing: .06em; }
.issue-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(48px, 8vw, 112px); line-height: .95; margin: 14px 0 0; text-wrap: balance; }
.who { color: var(--mist); font-size: 18px; margin: 16px 0 0; }
.issue-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 64px; align-items: start; padding-block: 8px 80px; }
.text { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); max-width: 34em; }
.text p { margin: 0 0 1.2em; }
.text .lede { font-size: 20px; line-height: 1.75; color: var(--bone); }
.text h3 { font-family: var(--display); font-weight: 500; font-size: 24px; margin: 32px 0 10px; }
.text ul { margin: 0 0 1.2em; padding-left: 1.1em; }
.text li { margin-bottom: .6em; }
.credits { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 13px; line-height: 1.7; color: var(--mist); }
.slides { display: grid; gap: 28px; }
.slide { margin: 0; }
.slide img, .slide video { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--plate); }
.slide figcaption { margin-top: 8px; font-family: var(--display); font-size: 15px; color: var(--mist); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-block: 40px 72px; border-top: 1px solid var(--rule); }
.pn { text-decoration: none; font-family: var(--display); font-size: 30px; line-height: 1.15; }
.pn span { display: block; font-family: var(--body); font-size: 14px; color: var(--mist); margin-bottom: 8px; }
.pn.next { text-align: right; grid-column: 2; }
.pn:hover { color: var(--chrome); }

footer { border-top: 1px solid var(--rule); }
footer .wrap { padding-block: 28px 44px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--mist); }
footer a { text-decoration: none; }
footer a:hover { color: var(--bone); }

/* fade-in for slides (visible at rest without JS) */
.js .slide { opacity: .001; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .slide.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .about, .issue-body { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .text { position: static; }
  .collab { grid-template-columns: minmax(0, 1fr); }
  .sx .hero-clip { clip-path: inset(calc(var(--q) * 18%) calc(var(--q) * 14%)); }
  .grid { gap: 3px; margin-inline: -20px; }
  .ph { cursor: pointer; }
  .bars { opacity: 1; left: 6px; right: 6px; top: 6px; gap: 2px; }
  .cap { display: none; }
  .hint-d { display: none; } .hint-m { display: inline; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  nav { gap: 14px; font-size: 15px; }
  .mark { font-size: 13px; letter-spacing: .22em; }
  section > .wrap { padding-block: 56px; }
  .kit b { font-size: 32px; }
  .kit div { padding: 18px 14px; }
  .pn { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .ph img { transition: none; }
  .js .slide { opacity: 1; transform: none; transition: none; }
}
