/* =========================================================
   MUKUDORI — style
   ========================================================= */
:root {
  --y: #FBCD2F;
  --y-deep: #E9B800;
  --ink: #12110E;
  --ink-2: #1C1B17;
  --paper: #FFF7DC;
  --muted: rgba(18, 17, 14, .55);
  --line: rgba(18, 17, 14, .18);
  --line-y: rgba(251, 205, 47, .22);
  --gut: clamp(16px, 2.4vw, 36px);
  --ease: cubic-bezier(.76, 0, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --f-display: 'Inter Tight', 'Pretendard Variable', sans-serif;
  --f-serif: 'Instrument Serif', 'Pretendard Variable', serif;
  --f-body: 'Pretendard Variable', 'Inter Tight', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: var(--y);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
::selection { background: var(--ink); color: var(--y); }

@media (hover: hover) and (pointer: fine) {
  body, a, button { cursor: none; }
}

/* ---------- section label ---------- */
.section-label {
  font-family: var(--f-display);
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  display: flex; gap: .8em; align-items: center;
}
.section-label span { opacity: .55; }
.section-label--y { color: var(--y); }

.big-title {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(64px, 15.5vw, 260px);
  line-height: .82; letter-spacing: -.055em;
  display: flex; align-items: flex-start; gap: .1em;
  margin-top: .15em;
}
.big-title sup { font-size: .16em; letter-spacing: 0; font-weight: 600; margin-top: .4em; }
.big-title--y { color: var(--y); }

.split-chars { display: inline-block; white-space: nowrap; }
.split-chars .ch { display: inline-block; overflow: hidden; vertical-align: top; line-height: .9; padding-bottom: .02em; }
.split-chars .ch > span { display: inline-block; will-change: transform; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--y);
  display: grid; place-items: center;
}
.loader__img { width: min(34vw, 260px); aspect-ratio: 3 / 4; overflow: hidden; background: var(--ink); }
.loader__img img { width: 100%; height: 100%; object-fit: cover; }
.loader__count {
  position: absolute; right: var(--gut); bottom: calc(var(--gut) - .12em);
  font-family: var(--f-display); font-weight: 900; line-height: .8;
  font-size: clamp(90px, 20vw, 320px); letter-spacing: -.06em;
}
.loader__label {
  position: absolute; left: var(--gut); top: var(--gut);
  font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: .08em;
}

/* ---------- curtain ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 150; pointer-events: none;
  background: var(--y);
  clip-path: inset(100% 0 0 0);
  display: grid; place-items: center;
}
.curtain__label {
  font-family: var(--f-display); font-weight: 900; letter-spacing: -.05em;
  font-size: clamp(48px, 11vw, 180px); line-height: .9; color: var(--ink);
}

/* ---------- cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--ink);
  display: grid; place-items: center;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background .3s;
  mix-blend-mode: normal;
}
.cursor__label {
  font-family: var(--f-display); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); opacity: 0; transition: opacity .2s;
  white-space: nowrap;
}
.cursor.is-hover { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: transparent; border: 1.5px solid currentColor; color: var(--ink); }
.cursor.is-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--y); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.on-dark { background: var(--y); }
.cursor.on-dark.is-hover { background: transparent; color: var(--y); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 24px;
  padding: 18px var(--gut);
  font-family: var(--f-display); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink);
  mix-blend-mode: normal;
  transition: color .4s, transform .6s var(--ease);
}
.nav.is-dark { color: var(--y); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { font-weight: 900; font-size: 18px; letter-spacing: -.02em; justify-self: start; display: inline-block; }
.nav__logo sup { font-size: .5em; }
.nav__role { opacity: .7; }
.nav__links { display: flex; gap: 28px; justify-self: end; }
.nav__links a { position: relative; overflow: hidden; display: inline-block; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__time { display: flex; align-items: center; gap: 8px; min-width: 110px; justify-content: flex-end; }
.nav__time i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.nav__burger { display: none; width: 40px; height: 40px; position: relative; }
.nav__burger span { position: absolute; left: 8px; right: 8px; height: 2px; background: currentColor; transition: transform .5s var(--ease); }
.nav__burger span:first-child { top: 15px; } .nav__burger span:last-child { top: 23px; }
.menu-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--y);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 90px var(--gut) 40px;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease);
}
.menu a { font-family: var(--f-display); font-weight: 900; font-size: 17vw; line-height: .9; letter-spacing: -.05em; }
.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu-open .nav { color: var(--y); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  padding: 110px var(--gut) 0;
  display: grid;
  grid-template-columns: 1fr minmax(220px, 26vw) 1fr;
  grid-template-rows: 1fr auto;
  gap: 0 var(--gut);
  overflow: hidden;
}
.hero__meta { align-self: start; max-width: 360px; }
.hero__kicker { font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); display: inline-block; }
.hero__lead { margin-top: 22px; font-size: clamp(17px, 1.5vw, 22px); font-weight: 600; line-height: 1.45; letter-spacing: -.02em; }
.hero__card {
  grid-column: 2; grid-row: 1; align-self: center; justify-self: center;
  width: 100%; max-width: 380px; aspect-ratio: 3 / 4;
  position: relative; overflow: hidden; background: var(--ink);
  transform-origin: 50% 100%;
}
.hero__flip { position: absolute; inset: 0; }
.hero__flip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.hero__flip img.on { opacity: 1; }
.hero__card-tag {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  background: var(--y); color: var(--ink); padding: 3px 8px;
  font-family: var(--f-display); font-size: 11px; font-weight: 700; letter-spacing: .06em;
}
.hero__side { grid-column: 3; justify-self: end; align-self: center; text-align: right; display: grid; gap: 22px; font-weight: 600; font-size: 15px; line-height: 1.35; }
.hero__side em { font-size: 1.15em; }
.hero__title {
  grid-column: 1 / -1; grid-row: 2;
  font-family: var(--f-display); font-weight: 900;
  font-size: 18.6vw; line-height: .78; letter-spacing: -.065em;
  margin: 0 -.04em -.06em; white-space: nowrap;
  text-align: center;
}
.hero__scroll {
  position: absolute; right: var(--gut); top: 50%;
  writing-mode: vertical-rl; font-family: var(--f-display); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  display: none;
}

/* ---------- marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; border-block: 1.5px solid var(--ink); }
.marquee--ink { background: var(--ink); color: var(--y); border-color: var(--ink); }
.marquee__track { display: inline-flex; align-items: center; gap: 36px; padding: 16px 0; will-change: transform; }
.marquee__track span { font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 3.2vw, 46px); letter-spacing: -.03em; text-transform: uppercase; }
.marquee__track i { font-style: normal; font-size: clamp(18px, 2.4vw, 34px); }

/* ---------- manifesto ---------- */
.manifesto { background: var(--ink); color: var(--y); padding: 130px var(--gut) 160px; position: relative; }
.manifesto .section-label { color: var(--y); }
.manifesto__text {
  margin-top: 50px;
  font-size: clamp(30px, 5.4vw, 92px); font-weight: 800; line-height: 1.12; letter-spacing: -.045em;
  word-break: keep-all;
}
.manifesto__text p + p { margin-top: .25em; }
.manifesto__text p:nth-child(2) { padding-left: 8vw; }
.manifesto__text p:nth-child(3) { padding-left: 16vw; }
.manifesto__text { position: relative; } /* offsetParent for char measuring */
.manifesto__text .w { display: inline-block; opacity: .14; transition: opacity .1s; }
.manifesto__text .c { display: inline-block; transform-origin: 50% 60%; will-change: transform; }
.manifesto__text .mk { position: relative; display: inline-block; white-space: nowrap; isolation: isolate; margin: 0 .1em 0 .14em; transition: color .5s var(--ease) .15s; }
.manifesto__text .mk::before {
  content: ''; position: absolute; z-index: -1;
  inset: .08em -.14em .02em;
  background: var(--y);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .9s var(--ease);
}
.manifesto__text .mk.on { color: var(--ink); }
.manifesto__text .mk.on::before { transform: scaleX(1); }
.manifesto__text .mk .w { transition: opacity .3s; }
.manifesto__text .mk.on .w { opacity: 1 !important; }
.manifesto__text .hl { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }

.about { margin-top: 180px; display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--gut); align-items: center; }
.about__imgs { position: relative; height: clamp(420px, 56vw, 760px); }
.about__img { position: absolute; overflow: hidden; }
.about__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.about__img--a { width: 64%; aspect-ratio: 1 / 1; left: 0; top: 0; }
.about__img--b { width: 50%; aspect-ratio: 1 / 1; right: 2%; bottom: 0; outline: 10px solid var(--ink); }
.about__body { max-width: 560px; }
.about__name { margin-top: 26px; font-size: clamp(44px, 6vw, 96px); font-weight: 800; letter-spacing: -.05em; line-height: .95; }
.about__name em { display: block; font-size: .7em; letter-spacing: -.02em; margin-top: .1em; }
.about__role { margin-top: 18px; font-weight: 600; opacity: .7; }
.about__intro { margin-top: 34px; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.75; color: var(--paper); word-break: keep-all; }
.about__facts { margin-top: 40px; border-top: 1px solid var(--line-y); }
.about__facts div { display: grid; grid-template-columns: 120px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line-y); }
.about__facts dt { font-family: var(--f-display); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .6; padding-top: 3px; }
.about__facts dd { color: var(--paper); font-weight: 500; }

/* ---------- works ---------- */
.works { padding: 140px var(--gut) 120px; }
.works__head { margin-bottom: 70px; }
.works__list { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw var(--gut); }
.work { display: block; position: relative; }
.work:nth-child(2n) { margin-top: 18vw; }
.work__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink); clip-path: inset(0 0 0 0); transition: clip-path .9s var(--ease); }
.work:hover .work__media { clip-path: inset(2.5% 2.5% 2.5% 2.5%); }
.work__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.2s var(--ease-out); }
.work:hover .work__media img { transform: scale(1.02); }
.work__peek { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); opacity: 0; transition: opacity .5s; pointer-events: none; }
.work__peek img { width: 100%; height: 100%; object-fit: cover; transform: none !important; }
.work__no {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--f-display); font-weight: 800; font-size: 13px; letter-spacing: .06em;
  background: var(--y); color: var(--ink); padding: 3px 8px;
}
.work__info { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; padding-top: 18px; border-bottom: 1.5px solid var(--ink); padding-bottom: 16px; }
.work__title { font-family: var(--f-display); font-weight: 900; font-size: clamp(36px, 5.2vw, 88px); line-height: .9; letter-spacing: -.055em; }
.work__title small { display: block; font-family: var(--f-body); font-size: clamp(16px, 1.4vw, 22px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; }
.work__tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 220px; }
.tag { font-family: var(--f-display); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border: 1.5px solid currentColor; border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.work__arrow { position: absolute; right: 14px; top: 14px; z-index: 2; width: 56px; height: 56px; border-radius: 50%; background: var(--y); display: grid; place-items: center; font-size: 22px; transform: scale(0) rotate(-45deg); transition: transform .6s var(--ease-out); }
.work:hover .work__arrow { transform: scale(1) rotate(0); }

/* ---------- archive ---------- */
.archive { background: var(--ink); color: var(--y); padding: 140px 0 120px; overflow: hidden; }
.archive__head { padding: 0 var(--gut); }
.archive__desc { margin-top: 26px; color: var(--paper); max-width: 520px; font-size: 17px; }
.archive__desc a { color: var(--y); border-bottom: 1px solid var(--y); }

.hscroll { margin-top: 70px; height: 66vh; position: relative; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.hscroll img { -webkit-user-drag: none; pointer-events: none; }
.hscroll__track { display: flex; gap: var(--gut); height: 100%; width: max-content; will-change: transform; align-items: center; }
.hscroll.is-drag .hcard img { transform: scale(.96); }
.hcard { height: 100%; flex: none; position: relative; overflow: hidden; background: var(--ink-2); }
.hcard:nth-child(3n+2) { height: 78%; }
.hcard:nth-child(3n) { height: 88%; align-self: flex-end; }
.hcard img { height: 100%; width: auto; max-width: none; object-fit: cover; transition: transform 1s var(--ease-out); }
.hcard:hover img { transform: scale(1.05); }
.hcard__no { position: absolute; left: 10px; top: 10px; font-family: var(--f-display); font-size: 11px; font-weight: 700; background: var(--y); color: var(--ink); padding: 2px 7px; }

.grid { columns: 4 260px; column-gap: 14px; padding: 120px var(--gut) 0; }
.grid__item { break-inside: avoid; margin-bottom: 14px; position: relative; overflow: hidden; background: var(--ink-2); display: block; width: 100%; }
.grid__item img { width: 100%; height: auto; transition: transform 1s var(--ease-out), opacity .6s; opacity: 0; }
.grid__item img.loaded { opacity: 1; }
.grid__item:hover img { transform: scale(1.04); }
.grid__item::after { content: attr(data-no); position: absolute; left: 8px; bottom: 8px; font-family: var(--f-display); font-size: 11px; font-weight: 700; color: var(--ink); background: var(--y); padding: 2px 7px; transform: translateY(150%); transition: transform .5s var(--ease-out); }
.grid__item:hover::after { transform: none; }
.grid__item.is-hidden { display: none; }
.archive__more { text-align: center; margin-top: 50px; }
.pill {
  display: inline-flex; align-items: center; gap: 14px;
  border: 1.5px solid currentColor; border-radius: 99px; padding: 16px 30px;
  font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: .02em;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease);
}
.pill::before { content: ''; position: absolute; inset: 0; background: var(--y); transform: translateY(101%); transition: transform .5s var(--ease); z-index: -1; border-radius: inherit; }
.pill:hover { color: var(--ink); }
.pill:hover::before { transform: none; }
.pill--ink::before { background: var(--ink); }
.pill--ink:hover { color: var(--y); }

/* ---------- history ---------- */
.history { padding: 140px var(--gut) 120px; }
.history__list { list-style: none; margin-top: 70px; border-top: 1.5px solid var(--ink); }
.history__item {
  display: grid; grid-template-columns: 140px 1.4fr 1fr 1fr; gap: var(--gut); align-items: baseline;
  padding: 28px 0; border-bottom: 1.5px solid var(--ink); position: relative; isolation: isolate;
}
.history__item::before { content: ''; position: absolute; inset: 0 calc(var(--gut) * -1); background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); z-index: -1; }
.history__item:hover { color: var(--y); }
.history__item:hover::before { transform: scaleY(1); transform-origin: top; }
.history__year { font-family: var(--f-display); font-weight: 800; font-size: 18px; }
.history__title { font-size: clamp(22px, 2.6vw, 40px); font-weight: 800; letter-spacing: -.04em; line-height: 1.15; }
.history__place { font-weight: 600; }
.history__note { opacity: .7; font-size: 15px; }

/* ---------- contact ---------- */
.contact { position: relative; padding: 0 var(--gut) 120px; overflow: hidden; }
.contact__strip { margin: 0 calc(var(--gut) * -1) 120px; overflow: hidden; }
.contact__strip-track { display: flex; gap: 10px; width: max-content; will-change: transform; }
.contact__strip-track img { height: 30vh; width: auto; flex: none; filter: grayscale(1) contrast(1.05); mix-blend-mode: multiply; transition: filter .5s; }
.contact__strip-track img:hover { filter: none; mix-blend-mode: normal; }
.contact__line { margin-top: 40px; font-size: clamp(40px, 7.5vw, 130px); font-weight: 800; letter-spacing: -.055em; line-height: 1.02; word-break: keep-all; }
.contact__line em { letter-spacing: -.02em; }
.contact__mail {
  display: inline-block; margin-top: 70px;
  font-family: var(--f-display); font-weight: 900; font-size: clamp(30px, 6.4vw, 112px); letter-spacing: -.055em; line-height: 1;
  border-bottom: .06em solid var(--ink); padding-bottom: .05em; word-break: break-all;
}
.contact__links { margin-top: 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 1.5px solid var(--ink); }
.contact__link { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; border-bottom: 1.5px solid var(--ink); gap: 20px; }
.contact__link + .contact__link { padding-left: var(--gut); border-left: 1.5px solid var(--ink); }
.contact__link b { font-family: var(--f-display); font-size: clamp(26px, 3vw, 44px); font-weight: 900; letter-spacing: -.04em; display: block; line-height: 1; }
.contact__link span { font-size: 14px; opacity: .65; }
.contact__link i { font-style: normal; font-size: 28px; transition: transform .5s var(--ease-out); }
.contact__link:hover i { transform: translate(6px, -6px) rotate(0); }

.footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px var(--gut); background: var(--ink); color: var(--y); font-family: var(--f-display); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- project view ---------- */
.project {
  position: fixed; inset: 0; z-index: 120; background: var(--ink); color: var(--y);
  visibility: hidden; clip-path: inset(100% 0 0 0);
}
.project.is-open { visibility: visible; }
.project__scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; }
.project__close {
  position: fixed; top: 16px; right: var(--gut); z-index: 3;
  width: 58px; height: 58px; border-radius: 50%; background: var(--y);
}
.project__close span { position: absolute; left: 18px; right: 18px; top: 28px; height: 2px; background: var(--ink); transform: rotate(45deg); }
.project__close span + span { transform: rotate(-45deg); }
.p-hero { min-height: 88svh; display: grid; grid-template-columns: 1fr; gap: var(--gut); padding: 100px var(--gut) 60px; align-items: stretch; }
.p-hero { position: relative; overflow: hidden; isolation: isolate; }
.p-hero::before { /* legibility veil over the collage */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 30% 70%, rgba(18,17,14,.25), rgba(18,17,14,.7)),
    linear-gradient(to top, rgba(18,17,14,.75), rgba(18,17,14,.15) 60%);
}
.p-hero__bg {
  position: absolute; inset: -40px; z-index: -2;
  /* every row is exactly 1/3 of the box, so 3 rows fill it; overflow rows are clipped */
  display: grid; grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: calc(100% / 3); grid-auto-flow: dense; overflow: hidden;
  filter: blur(9px) saturate(1.15) brightness(.78);
  transform-origin: 50% 40%; will-change: transform;
}
.p-hero__bg span { overflow: hidden; min-height: 0; }
.p-hero__bg span.big { grid-column: span 2; grid-row: span 2; }
.p-hero__bg span.tall { grid-row: span 2; }
.p-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.p-hero__left { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.p-hero__no { font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.p-hero__title { font-family: var(--f-display); font-weight: 900; font-size: clamp(56px, 11vw, 200px); letter-spacing: -.065em; line-height: .82; margin-top: 18px; }
.p-hero__ko { font-size: clamp(26px, 3.4vw, 56px); font-weight: 800; letter-spacing: -.04em; margin-top: 20px; color: var(--paper); }
/* about the work: large cover on the left, facts + copy on the right */
.p-intro {
  display: grid; grid-template-columns: minmax(280px, .85fr) 1.15fr; gap: clamp(36px, 7vw, 130px);
  padding: 110px var(--gut) 120px; align-items: center;
}
.p-intro__thumb { position: relative; max-width: 620px; width: 100%; }
.p-intro__plate {
  position: absolute; inset: 0; background: var(--y);
  transform: translate(22px, 22px) scaleY(0); transform-origin: 50% 100%;
  transition: transform 1s var(--ease);
}
.p-intro__frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-2);
  clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease) .3s;
  box-shadow: 0 40px 90px rgba(0,0,0,.5);
}
.p-intro__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.32) rotate(-4deg); transition: transform 2.2s var(--ease-out) .3s; }
.p-intro__chip {
  position: absolute; left: -10px; top: 26px; z-index: 2; background: var(--ink); color: var(--y);
  padding: 6px 12px; font-family: var(--f-display); font-weight: 800; font-size: 13px; letter-spacing: .08em;
  opacity: 0; transform: translateX(-20px); transition: opacity .6s 1.1s, transform .8s var(--ease-out) 1.1s;
}
.p-intro.in .p-intro__plate { transform: translate(22px, 22px) scaleY(1); }
.p-intro.in .p-intro__frame { clip-path: inset(0 0 0 0); }
.p-intro.in .p-intro__frame img { transform: none; }
.p-intro.in .p-intro__chip { opacity: 1; transform: none; }
.p-facts { display: flex; gap: clamp(28px, 5vw, 80px); margin-top: 34px; padding: 20px 0; border-block: 1px solid var(--line-y); }
.p-facts dt { font-family: var(--f-display); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.p-facts dd { margin-top: 6px; color: var(--paper); font-weight: 700; font-size: 18px; }
.p-intro__desc { margin-top: 40px; white-space: pre-line; font-size: clamp(20px, 2vw, 30px); line-height: 1.55; font-weight: 600; letter-spacing: -.03em; color: var(--paper); word-break: keep-all; }
.p-intro .pill { margin-top: 40px; }
/* reveal inside project view */
.p-reveal { opacity: 0; transform: translateY(50px); transition: opacity 1s var(--ease-out) var(--d, 0s), transform 1.2s var(--ease-out) var(--d, 0s); }
.p-reveal.in { opacity: 1; transform: none; }

.p-sec-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 var(--gut); margin-bottom: 40px; }
.p-count { font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }

/* about extras */
.p-hash { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 30px; }
.p-hash li { font-weight: 600; font-size: 15px; opacity: .75; }
.p-warn { margin-top: 26px; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--y); letter-spacing: 0; }
.p-warn i { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--y); color: var(--ink); display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 13px; }

/* story showcase (light paper section with a curved top that flattens on scroll) */
.p-show {
  --curve: 18vw;
  position: relative; background: var(--paper); color: var(--ink);
  padding: 100px 0 90px; margin-top: 20px;
  border-radius: 50% 50% 0 0 / var(--curve) var(--curve) 0 0;
}
.p-show .section-label { color: var(--ink); }
.ink-defs { position: absolute; width: 0; height: 0; }
.chap {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 90px); align-items: center;
  padding: 44px var(--gut); position: relative; overflow: hidden; isolation: isolate;
}
.chap + .chap { border-top: 1px solid var(--line); }
.chap--flip .chap__stage { order: 2; }
/* ink that bleeds out from the card; blobs are scaled from JS */
.chap__ink { position: absolute; inset: 0; z-index: -1; pointer-events: none; filter: url(#ink-edge); }
.chap__ink i { position: absolute; left: 25%; top: 50%; border-radius: 50%; background: var(--ink); transform: translate(-50%, -50%) scale(0); }
.chap__ink i:nth-child(2) { margin: -4% 0 0 2.5%; background: #1d1b16; }
.chap__ink i:nth-child(3) { margin: 4% 0 0 -2.5%; background: #24211a; }
/* the playing card */
.chap__stage { position: relative; display: grid; justify-items: center; gap: 18px; perspective: 1400px; padding: 10px 0; }
.card {
  position: relative; width: clamp(210px, 19vw, 290px); aspect-ratio: 5 / 7;
  transform-style: preserve-3d; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  opacity: 0; translate: 0 60px; rotate: -6deg;
  transition: opacity .9s var(--ease-out), translate 1.2s var(--ease-out), rotate 1.4s var(--ease-out);
}
.chap.in .card { opacity: 1; translate: 0 0; rotate: 0deg; }
.card.is-drag { cursor: grabbing; }
.card:focus-visible { outline: 2px solid var(--y); outline-offset: 8px; border-radius: 16px; }
.card__face {
  position: absolute; inset: 0; border-radius: 16px; padding: 10px; overflow: hidden;
  background: #fbf7ec; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 26px 50px -18px rgba(0,0,0,.45);
}
.card__face img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; pointer-events: none; }
.card__face::after { /* thin inner frame line */
  content: ''; position: absolute; inset: 5px; border-radius: 12px; border: 1px solid rgba(18,17,14,.18); pointer-events: none;
}
.card__back { transform: rotateY(180deg); background: var(--y); }
.card__back::after { border-color: rgba(18,17,14,.35); }
.card__idx {
  position: absolute; left: 18px; top: 18px; z-index: 1; min-width: 30px; padding: 3px 6px; text-align: center;
  background: var(--y); color: var(--ink); border-radius: 4px;
  font-family: var(--f-display); font-weight: 800; font-size: 12px; letter-spacing: .04em;
}
.card__back .card__idx { background: var(--ink); color: var(--y); }
.card__idx--end { left: auto; top: auto; right: 18px; bottom: 18px; transform: rotate(180deg); }
.chap__hint {
  font-family: var(--f-display); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  opacity: .5; transition: color .5s, opacity .5s;
}
.chap.is-inked .chap__hint { color: var(--y); opacity: .85; }
.chap__no { font-family: var(--f-display); font-weight: 800; font-size: 14px; letter-spacing: .06em; }
.chap__no i { font-style: normal; opacity: .45; }
.chap__en {
  margin-top: 14px; font-family: var(--f-display); font-weight: 900;
  font-size: clamp(38px, 4.8vw, 84px); line-height: .88; letter-spacing: -.05em; word-break: break-word;
}
.chap__ko { margin-top: 18px; font-size: clamp(20px, 1.9vw, 30px); font-weight: 800; letter-spacing: -.04em; }
.chap__ko::before { content: ''; display: inline-block; width: .9em; height: .9em; margin-right: .4em; vertical-align: -.08em; background: var(--y); border-radius: 50%; }
.chap__text { margin-top: 14px; max-width: 30em; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.8; font-weight: 500; color: rgba(18,17,14,.78); word-break: keep-all; }
.chap__points { list-style: none; margin-top: 24px; border-top: 1px solid var(--line); max-width: 32em; }
.chap__points li { padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 15px; transition: padding .5s var(--ease-out), background .4s; }
.chap__points li:hover { padding-left: 12px; background: var(--y); }
.p-show + .p-chars { padding-top: 120px; }
@media (max-width: 1024px) {
  .chap { grid-template-columns: 1fr; gap: 30px; padding-block: 40px; }
  .chap--flip .chap__stage { order: 0; }
  .card { width: clamp(200px, 46vw, 270px); }
}

/* characters */
.p-chars { padding: 30px 0 120px; }
.p-chars__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; padding: 0 var(--gut); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.p-chars__row::-webkit-scrollbar { display: none; }
.p-chars__row { user-select: none; -webkit-user-select: none; }
.p-chars__row img { -webkit-user-drag: none; pointer-events: none; }
.p-char { scroll-snap-align: start; position: relative; }
.p-char__img { aspect-ratio: 3 / 4.4; background: var(--y); overflow: hidden; position: relative; }
.p-char__img::before { /* soft halo behind the figure */
  content: ''; position: absolute; left: 50%; top: 22%; width: 80%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.55), transparent 65%);
}
.p-char__img img { position: absolute; left: 50%; bottom: -4%; height: 104%; width: auto; max-width: none; transform: translateX(-50%); transition: transform 1s var(--ease-out), filter .6s; filter: drop-shadow(0 18px 24px rgba(0,0,0,.25)); }
.p-char:hover .p-char__img img { transform: translateX(-50%) scale(1.06) translateY(-2%); }
.p-chars__row:hover .p-char:not(:hover) .p-char__img img { filter: grayscale(1) brightness(.85); }
.p-char figcaption { display: flex; align-items: baseline; gap: 12px; padding-top: 14px; font-size: clamp(20px, 1.8vw, 28px); font-weight: 800; letter-spacing: -.03em; color: var(--paper); border-bottom: 1px solid var(--line-y); padding-bottom: 12px; }
.p-char figcaption span { font-family: var(--f-display); font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--y); }

/* director's note */
.p-note { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--gut); padding: 100px var(--gut) 130px; border-top: 1px solid var(--line-y); }
.p-note blockquote p { white-space: pre-line; font-family: var(--f-body); font-size: clamp(19px, 1.7vw, 26px); line-height: 1.7; font-weight: 500; color: var(--paper); word-break: keep-all; }
.p-note cite { display: block; margin-top: 28px; font-style: normal; font-family: var(--f-serif); font-size: 22px; color: var(--y); }

/* reviews */
.p-reviews { padding: 110px 0 130px; background: var(--y); color: var(--ink); overflow: hidden; }
.p-reviews .section-label--y { color: var(--ink); }
.rv-feat { padding: 0 var(--gut); margin-bottom: 80px; max-width: 1300px; }
.rv-feat blockquote { font-size: clamp(28px, 3.8vw, 64px); font-weight: 800; line-height: 1.2; letter-spacing: -.045em; word-break: keep-all; }
.rv-feat figcaption { margin-top: 26px; font-family: var(--f-display); font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.rv-row { overflow: hidden; padding: 6px 0; }
.rv-row + .rv-row { margin-top: 12px; }
.rv-track { display: flex; gap: 12px; width: max-content; animation: rv-slide var(--dur, 40s) linear infinite; }
.rv-row--rev .rv-track { animation-direction: reverse; }
.rv-row:hover .rv-track { animation-play-state: paused; }
@keyframes rv-slide { to { transform: translateX(calc(-50% - 6px)); } }
.rv {
  width: clamp(260px, 26vw, 380px); flex: none;
  background: var(--ink); color: var(--paper); padding: 26px 26px 22px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  transition: transform .5s var(--ease-out);
}
.rv:hover { transform: translateY(-6px) rotate(-1deg); }
.rv p { font-size: 16px; line-height: 1.65; font-weight: 500; word-break: keep-all; }
.rv p::before { content: '“'; display: block; font-family: var(--f-serif); font-size: 46px; line-height: .6; color: var(--y); margin-bottom: 8px; }
.rv footer { display: flex; justify-content: space-between; font-family: var(--f-display); font-size: 12px; letter-spacing: .04em; opacity: .7; }
.rv footer b { color: var(--y); }

/* scenes + credits */
.p-shots { padding-top: 120px; }
.p-credits { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--gut); padding: 120px var(--gut) 0; }
.p-credits dl { border-top: 1px solid var(--line-y); }
.p-credits dl div { display: grid; grid-template-columns: 180px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line-y); }
.p-credits dt { font-family: var(--f-display); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .6; padding-top: 3px; }
.p-credits dd { color: var(--paper); font-weight: 600; }

.p-gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; padding: 0 var(--gut); }
.p-gallery a { display: block; aspect-ratio: 2 / 3; overflow: hidden; background: var(--ink-2); }
.p-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
@media (max-width: 640px) { .p-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.p-gallery a:hover img { transform: scale(1.04); }
.p-next { display: block; margin-top: 120px; padding: 90px var(--gut) 110px; background: var(--y); color: var(--ink); position: relative; overflow: hidden; }
.p-next small { font-family: var(--f-display); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.p-next b { display: block; font-family: var(--f-display); font-weight: 900; font-size: clamp(56px, 12vw, 220px); line-height: .85; letter-spacing: -.065em; margin-top: 14px; transition: transform .8s var(--ease-out); }
.p-next:hover b { transform: translateX(2vw); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 180; background: rgba(12, 11, 9, .96); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: min(92vw, 1400px); max-height: 86vh; object-fit: contain; transform: scale(.96); transition: transform .5s var(--ease-out); }
.lightbox.is-open .lightbox__img { transform: none; }
.lightbox__close { position: absolute; top: 20px; right: var(--gut); color: var(--y); font-family: var(--f-display); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--y); color: var(--y); font-size: 20px; transition: background .3s, color .3s; }
.lightbox__nav:hover { background: var(--y); color: var(--ink); }
.lightbox__prev { left: var(--gut); } .lightbox__next { right: var(--gut); }
.lightbox__count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: var(--y); font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: .08em; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__role, .nav__links, .nav__time { display: none; }
  .nav__burger { display: block; }
  .hero { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto; padding-top: 90px; }
  .hero__meta { grid-column: 1 / -1; }
  .hero__card { grid-column: 1; grid-row: 2; max-width: 300px; justify-self: start; margin: 30px 0; }
  .hero__side { grid-column: 2; grid-row: 2; }
  .hero__title { grid-row: 3; }
  .about { grid-template-columns: 1fr; margin-top: 110px; }
  .history__item { grid-template-columns: 90px 1fr; }
  .history__place, .history__note { grid-column: 2; }
  .p-hero { grid-template-columns: 1fr; align-items: start; }
  .p-hero__bg { grid-template-columns: repeat(4, 1fr); grid-auto-rows: calc(100% / 4); }
  .p-intro { grid-template-columns: 1fr; padding-block: 70px; }
  .p-intro__thumb { max-width: 440px; }
  .p-note, .p-credits { grid-template-columns: 1fr; }
  .p-chars__row { grid-auto-columns: minmax(180px, 42%); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .hero { grid-template-columns: 1.5fr 1fr; }
  .hero__card { max-width: none; width: 100%; }
  .hero__side { gap: 14px; font-size: 14px; }
  .manifesto { padding: 90px var(--gut) 100px; }
  .manifesto__text p:nth-child(n) { padding-left: 0; }
  .works { padding-top: 100px; }
  .works__list { grid-template-columns: 1fr; gap: 70px; }
  .work:nth-child(2n) { margin-top: 0; }
  .work__info { grid-template-columns: 1fr; }
  .work__tags { justify-content: flex-start; }
  .hscroll { height: 56vh; }
  .grid { columns: 2 140px; column-gap: 8px; padding-top: 70px; }
  .grid__item { margin-bottom: 8px; }
  .contact__link + .contact__link { padding-left: 0; border-left: 0; }
  .contact__strip-track img { height: 20vh; }
  .footer { flex-direction: column; gap: 6px; }
  .footer__mid { display: none; }
  .lightbox__nav { top: auto; bottom: 14px; transform: none; width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
