/* ==========================================================================
   Soyeon Shin — site styles
   ========================================================================== */

/* ---------- Fonts (self-hosted: no Google requests, GDPR-friendly) ---------- */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/instrument-serif-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/instrument-serif-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/instrument-serif-latin-400-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/instrument-serif-latin-ext-400-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/inter-tight-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/inter-tight-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/inter-tight-latin-wght-italic.woff2) format("woff2-variations"); }

/* ---------- Tokens ---------- */
:root {
  --paper: #f1eee8;
  --paper-2: #e7e2d9;
  --ink: #121212;
  --ink-2: #3b3936;
  --muted: #7a756d;
  --line: rgba(18, 18, 18, .14);
  --accent: #b8432a;          /* warm vermilion, used sparingly on hover */
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 3.2vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --header-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { padding-inline: var(--gutter); max-width: 1680px; margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; }
.skip:focus { left: 8px; }

.eyebrow {
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1.2em; font-weight: 500;
}

/* Underline that draws in on hover */
.u-link { position: relative; display: inline-block; }
.u-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.u-link:hover::after, .u-link:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* Pill buttons with fill-from-bottom hover */
.pill {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: .7em;
  padding: .85em 1.35em; border: 1px solid var(--ink); border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: .01em;
  transition: color .45s var(--ease);
}
.pill::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: translateY(101%); border-radius: inherit; transition: transform .5s var(--ease);
}
.pill:hover, .pill:focus-visible { color: var(--paper); }
.pill:hover::before, .pill:focus-visible::before { transform: translateY(0); }
.pill span:last-child { transition: transform .5s var(--ease); }
.pill:hover span:last-child { transform: translateX(4px); }
.pill--ghost { border-color: var(--line); }

/* Typographic placeholder for projects without a cover */
.placeholder {
  width: 100%; height: 100%; min-height: 220px; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); text-align: center; padding: 2rem;
  font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3vw, 48px); line-height: 1;
}
.placeholder--sm { min-height: 0; aspect-ratio: 4/3; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
  color: var(--ink);
  transition: transform .6s var(--ease), color .4s, background-color .4s;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-solid { background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.is-home .site-header.on-dark { color: var(--paper); }

.brand__name { font-family: var(--serif); font-size: 26px; letter-spacing: -.01em; line-height: 1; }
.nav { display: flex; gap: clamp(18px, 2.4vw, 40px); font-size: 14px; font-weight: 500; }
.nav a { position: relative; overflow: hidden; display: inline-block; height: 1.4em; }
/* rolling text hover: the label slides up and a copy slides in */
.nav a span { display: inline-block; transition: transform .5s var(--ease); }
.nav a span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; font-family: var(--serif); font-style: italic; font-size: 1.15em; font-weight: 400; }
.nav a:hover span, .nav a:focus-visible span { transform: translateY(-100%); }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: -10px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: currentColor; transform: translateY(-50%); }
.nav a[aria-current="page"] { overflow: visible; }
.nav a[aria-current="page"] span { transform: none; }
.nav a[aria-current="page"] span::after { display: none; }

.menu-btn { display: none; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; position: relative; z-index: 61; }
.menu-btn__icon { width: 22px; height: 10px; position: relative; }
.menu-btn__icon i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-btn__icon i:first-child { top: 0; }
.menu-btn__icon i:last-child { top: 8px; }
.menu-open .menu-btn__icon i:first-child { top: 4px; transform: rotate(45deg); }
.menu-open .menu-btn__icon i:last-child { top: 4px; transform: rotate(-45deg); }
.menu-open .site-header { color: var(--paper) !important; background: transparent !important; backdrop-filter: none; transform: none; }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--gutter) 28px;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a { font-family: var(--serif); font-size: clamp(44px, 12vw, 80px); line-height: 1.02; opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.menu__nav a.menu__sub { font-family: var(--sans); font-size: 15px; line-height: 2; padding-left: 4px; color: rgba(241,238,232,.6); }
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(1) { transition-delay: .12s } .menu.is-open .menu__nav a:nth-child(2) { transition-delay: .17s }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: .22s } .menu.is-open .menu__nav a:nth-child(4) { transition-delay: .25s }
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: .28s } .menu.is-open .menu__nav a:nth-child(6) { transition-delay: .31s }
.menu.is-open .menu__nav a:nth-child(7) { transition-delay: .36s } .menu.is-open .menu__nav a:nth-child(8) { transition-delay: .41s }
.menu__foot { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: rgba(241,238,232,.75); }

@media (max-width: 760px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: #0d0d0d; color: var(--paper); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: hero-zoom 2.4s var(--ease) .1s forwards; }
@keyframes hero-zoom { to { transform: scale(1); } }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 50%, rgba(0,0,0,.55) 100%); }
.hero__content { position: absolute; inset: auto var(--gutter) clamp(28px, 6vh, 64px) var(--gutter); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(72px, 15.5vw, 260px); line-height: .84; letter-spacing: -.035em; }
.hero__title .line { display: block; overflow: hidden; padding: .04em .12em .24em 0; margin-bottom: -.09em; }
.hero__title .line--indent { padding-left: .55em; }
.hero__meta { text-align: right; font-size: 14px; line-height: 1.5; padding-bottom: .9em; }
.hero__meta p { margin: 0; }
.hero__scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(241,238,232,.8); }
.hero__scroll i { width: 1px; height: 36px; background: rgba(241,238,232,.35); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--paper); animation: scrollcue 1.8s var(--ease-in-out) infinite; }
@keyframes scrollcue { to { top: 100%; } }
@media (min-width: 761px) { .hero__scroll { display: flex; } }
@media (max-width: 760px) {
  .hero__content { flex-direction: column; align-items: flex-start; }
  .hero__meta { text-align: left; padding-bottom: 0; }
}

/* Split-letter entrance (letters are wrapped by JS) */
.split .ch { display: inline-block; transform: translateY(135%); transition: transform 1.1s var(--ease); }
.is-loaded .split .ch { transform: none; }

/* ---------- Statement ---------- */
.statement { padding-block: clamp(90px, 16vh, 200px) clamp(60px, 10vh, 120px); }
.statement__text {
  font-family: var(--serif); font-size: clamp(32px, 4.6vw, 76px); line-height: 1.04; letter-spacing: -.02em;
  margin: 0 0 .9em; max-width: 1250px;
}
.statement__text .w { transition: opacity .6s var(--ease), color .6s; opacity: .14; }
.statement__text .w.on { opacity: 1; }
.no-js .statement__text .w, .reduced .statement__text .w { opacity: 1; }

/* ---------- Section heads ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: clamp(32px, 6vh, 72px); border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.section-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 96px); line-height: .95; letter-spacing: -.025em; }
.page-head { padding-top: calc(var(--header-h) + clamp(48px, 12vh, 140px)); padding-bottom: clamp(32px, 6vh, 64px); }
.page-title { margin: 0 0 .5em; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 9vw, 150px); line-height: .9; letter-spacing: -.035em; max-width: 14ch; }

/* ---------- Featured grid ---------- */
.selected { padding-bottom: clamp(80px, 14vh, 180px); }
.feature-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: clamp(56px, 10vh, 120px); align-items: start; }
.feature { display: block; position: relative; }
.feature__media { position: relative; overflow: hidden; background: var(--paper-2); }
.feature__media img, .feature__media .placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .8s var(--ease); }
.feature__media::after { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: 0; transition: opacity .6s var(--ease); }
.feature:hover .feature__media img { transform: scale(1.045); }
.feature-grid:has(.feature:hover) .feature:not(:hover) .feature__media img { filter: grayscale(.85) brightness(.95); }
.feature__info { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; margin-top: 14px; align-items: baseline; }
.feature__num { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; grid-row: span 2; }
.feature__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.2vw, 36px); line-height: 1.05; letter-spacing: -.01em; transition: transform .6s var(--ease), color .4s; }
.feature:hover .feature__title { transform: translateX(8px); font-style: italic; }
.feature__meta { font-size: 13px; color: var(--muted); }

.feature--0 { grid-column: 1 / span 8; } .feature--0 .feature__media { aspect-ratio: 16/10; }
.feature--1 { grid-column: 9 / span 4; margin-top: 22vh; } .feature--1 .feature__media { aspect-ratio: 4/5; }
.feature--2 { grid-column: 2 / span 5; } .feature--2 .feature__media { aspect-ratio: 4/5; }
.feature--3 { grid-column: 7 / span 6; margin-top: 14vh; } .feature--3 .feature__media { aspect-ratio: 3/2; }
.feature--4 { grid-column: 1 / span 12; } .feature--4 .feature__media { aspect-ratio: 21/9; }
.feature--5 { grid-column: 4 / span 6; } .feature--5 .feature__media { aspect-ratio: 3/2; }
@media (max-width: 760px) {
  .feature-grid { row-gap: 48px; }
  .feature[class*="feature--"] { grid-column: 1 / -1; margin-top: 0; }
  .feature--1, .feature--5 { grid-column: 3 / -1 !important; }
  .feature--2 { grid-column: 1 / span 10 !important; }
  .feature[class*="feature--"] .feature__media { aspect-ratio: 4/3; }
  .feature--1 .feature__media, .feature--2 .feature__media { aspect-ratio: 4/5; }
}

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 22px; background: var(--paper); }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__group span { font-family: var(--serif); font-size: clamp(26px, 3vw, 46px); white-space: nowrap; padding-inline: .45em; transition: color .3s, font-style .3s; }
.marquee__group span:not(.marquee__dot):hover { font-style: italic; color: var(--accent); }
.marquee__dot { font-size: .5em !important; color: var(--muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Category index ---------- */
.cats { padding-block: clamp(80px, 14vh, 180px); }
.cat-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cat-row {
  position: relative; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px;
  padding: clamp(14px, 2.4vh, 26px) 12px; border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), padding .6s var(--ease);
}
.cat-row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); }
.cat-row:hover, .cat-row:focus-visible { color: var(--paper); padding-inline: 28px; }
.cat-row:hover::before, .cat-row:focus-visible::before { transform: scaleY(1); }
.cat-row__name { font-family: var(--serif); font-size: clamp(40px, 7.5vw, 124px); line-height: .95; letter-spacing: -.03em; transition: transform .6s var(--ease); }
.cat-row:hover .cat-row__name { font-style: italic; }
.cat-row__count { font-size: 13px; font-variant-numeric: tabular-nums; opacity: .7; }
.cat-row__arrow { font-size: clamp(22px, 2.4vw, 36px); transform: translateX(-12px) rotate(-45deg); opacity: 0; transition: transform .6s var(--ease), opacity .4s; }
.cat-row:hover .cat-row__arrow { transform: none; opacity: 1; }

/* Floating image that follows the cursor over lists */
.hover-preview {
  position: fixed; left: 0; top: 0; z-index: 30; width: clamp(220px, 22vw, 360px); aspect-ratio: 4/5;
  pointer-events: none; overflow: hidden; border-radius: 2px;
  opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.85); transition: opacity .35s var(--ease), transform .5s var(--ease);
  background: var(--paper-2) center/cover no-repeat; will-change: transform;
}
.hover-preview.is-on { opacity: 1; }
@media (hover: none), (max-width: 760px) { .hover-preview { display: none; } }

/* ---------- About (home) ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 6vw, 100px); align-items: end; padding-bottom: clamp(100px, 16vh, 200px); }
.about__img { overflow: hidden; }
.about__img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 60% 30%; }
.about__lead { font-family: var(--serif); font-size: clamp(26px, 2.8vw, 44px); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 1.1em; }
.about__links { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: clamp(80px, 16vh, 180px) 0 28px; }
.footer__inner { padding-inline: var(--gutter); max-width: 1680px; margin-inline: auto; }
.footer .eyebrow { color: rgba(241,238,232,.55); }
.footer__mail { display: inline-block; font-family: var(--serif); font-size: clamp(56px, 11vw, 190px); line-height: .9; letter-spacing: -.035em; margin-bottom: clamp(60px, 12vh, 140px); }
.footer__mail-line { display: block; }
.footer__mail em { color: var(--paper); transition: color .5s; }
.footer__mail .arrow { display: inline-block; font-family: var(--sans); font-size: .45em; vertical-align: middle; transition: transform .7s var(--ease); }
.footer__mail:hover em { color: #e98b6f; }
.footer__mail:hover .arrow { transform: translateX(.35em) rotate(-45deg); }
.footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; font-size: 15px; padding-bottom: 60px; border-bottom: 1px solid rgba(241,238,232,.15); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 22px; font-size: 13px; color: rgba(241,238,232,.6); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Projects index ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: .6em 1.1em; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s;
}
.filter sup { font-size: .7em; opacity: .6; margin-left: 2px; }
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.index-list { list-style: none; margin: 0 0 clamp(80px, 14vh, 160px); padding: 0; border-top: 1px solid var(--line); }
.index-item { border-bottom: 1px solid var(--line); transition: opacity .4s var(--ease); }
.index-item.is-hidden { display: none; }
.index-item.is-entering { animation: rowin .6s var(--ease) both; }
@keyframes rowin { from { opacity: 0; transform: translateY(12px); } }
.index-row {
  display: grid; grid-template-columns: 70px minmax(0, 1.2fr) minmax(0, 1fr) 140px 30px; align-items: center; gap: 20px;
  padding: 20px 6px; transition: padding .55s var(--ease), color .3s;
}
.index-row__year { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.index-row__thumb { display: none; }
.index-row__title { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 42px); line-height: 1.02; letter-spacing: -.015em; transition: transform .55s var(--ease); }
.index-row__sub { font-size: 13.5px; color: var(--muted); }
.index-row__cat { font-size: 13px; text-align: right; }
.index-row__arrow { text-align: right; opacity: 0; transform: translateX(-10px); transition: opacity .35s, transform .55s var(--ease); }
.index-row:hover .index-row__title { transform: translateX(14px); font-style: italic; }
.index-row:hover .index-row__arrow { opacity: 1; transform: none; }
.index-list:has(.index-row:hover) .index-row:not(:hover) { color: color-mix(in srgb, var(--ink) 35%, transparent); }
@media (max-width: 900px) {
  .index-row { grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-areas: "thumb title arrow" "thumb meta meta"; gap: 4px 16px; padding: 16px 0; }
  .index-row__thumb { display: block; grid-area: thumb; overflow: hidden; }
  .index-row__thumb img { width: 96px; aspect-ratio: 4/3; object-fit: cover; }
  .index-row__title { grid-area: title; font-size: 24px; }
  .index-row__year { grid-area: meta; }
  .index-row__year::after { content: " · " attr(data-cat); }
  .index-row__sub { display: none; }
  .index-row__cat { display: none; }
  .index-row__arrow { grid-area: arrow; opacity: .5; transform: none; }
}

/* ---------- Project page ---------- */
.project__head { padding-top: calc(var(--header-h) + clamp(40px, 9vh, 110px)); }
.back { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.project__title { margin: 0 0 .45em; font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 8.5vw, 150px); line-height: .9; letter-spacing: -.035em; max-width: 16ch; hyphens: auto; }
.project__facts { display: flex; flex-wrap: wrap; gap: 16px 56px; margin: 0 0 clamp(32px, 6vh, 64px); padding-top: 18px; border-top: 1px solid var(--line); }
.project__facts dt { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.project__facts dd { margin: 0; font-size: 15px; }
.project__cover { margin: 0; overflow: hidden; height: min(88vh, 62vw); }
.project__cover img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.project__body { padding-block: clamp(60px, 12vh, 140px) clamp(40px, 8vh, 100px); display: grid; grid-template-columns: repeat(12, 1fr); }
.project__text { grid-column: 4 / span 7; }
@media (max-width: 900px) { .project__text { grid-column: 1 / -1; } }

.prose { font-size: clamp(16px, 1.15vw, 19px); line-height: 1.6; }
.prose p { margin: 0 0 1.1em; }
.prose > p:first-child { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 34px); line-height: 1.18; letter-spacing: -.01em; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--line); transition: text-decoration-color .3s; }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul { padding-left: 1.1em; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 1.9em; line-height: 1.05; margin: 1.6em 0 .5em; }
.prose--lead > p { font-family: var(--serif); font-size: clamp(22px, 1.9vw, 30px); line-height: 1.22; letter-spacing: -.005em; }
.prose--lead > p:not(:first-child) { font-family: var(--sans); font-size: clamp(16px, 1.1vw, 18px); line-height: 1.6; letter-spacing: 0; color: var(--ink-2); }
.prose--narrow { max-width: 680px; padding-bottom: 120px; }
.prose--narrow > p:first-child { font-family: var(--sans); font-size: inherit; }

/* Click-to-load video */
.project__videos { display: grid; gap: clamp(24px, 4vh, 48px); padding-bottom: clamp(60px, 10vh, 120px); }
.video { position: relative; aspect-ratio: 16/9; background: var(--ink); overflow: hidden; }
.video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.video:hover .video__poster { opacity: .7; transform: scale(1.03); }
.video__play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: var(--paper); }
.video__icon { width: clamp(72px, 9vw, 120px); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(241,238,232,.7); position: relative; transition: transform .6s var(--ease), background-color .4s; }
.video__icon::after { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-left: 16px solid currentColor; border-top: 10px solid transparent; border-bottom: 10px solid transparent; transition: border-left-color .4s; }
.video:hover .video__icon { transform: scale(1.1); background: var(--paper); }
.video:hover .video__icon::after { border-left-color: var(--ink); }
.video__label { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 32px); }
.video__note { position: absolute; left: 16px; bottom: 12px; margin: 0; font-size: 11px; color: rgba(241,238,232,.55); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Gallery (masonry via columns) */
.gallery { columns: 2; column-gap: var(--gutter); padding-bottom: clamp(60px, 10vh, 120px); }
.gallery--photos { columns: 3; }
.gallery__item { break-inside: avoid; margin: 0 0 var(--gutter); }
.gallery__btn { display: block; width: 100%; overflow: hidden; cursor: zoom-in; }
.gallery__btn img { width: 100%; transition: transform 1.1s var(--ease), opacity .6s; }
.gallery__btn:hover img { transform: scale(1.035); }
.gallery__item figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
@media (max-width: 900px) { .gallery--photos { columns: 2; } }
@media (max-width: 600px) { .gallery, .gallery--photos { columns: 1; } }

/* Next project */
.next { padding-bottom: clamp(80px, 14vh, 160px); }
.next__link { display: block; border-top: 1px solid var(--line); padding-top: 24px; }
.next__title { display: block; font-family: var(--serif); font-size: clamp(44px, 8vw, 140px); line-height: .95; letter-spacing: -.035em; transition: transform .7s var(--ease); }
.next__title .arrow { display: inline-block; font-family: var(--sans); font-size: .4em; vertical-align: middle; transition: transform .7s var(--ease); }
.next__link:hover .next__title { transform: translateX(16px); font-style: italic; }
.next__link:hover .arrow { transform: translateX(10px); }

/* ---------- Info page ---------- */
.info-hero { padding-top: calc(var(--header-h) + clamp(48px, 10vh, 120px)); display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 6vw, 110px); align-items: start; padding-bottom: clamp(60px, 12vh, 140px); }
.info-hero__img { margin: 0; overflow: hidden; position: sticky; top: calc(var(--header-h) + 24px); }
.info-hero__img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 60% 30%; }
.info-contact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
@media (max-width: 900px) { .info-hero { grid-template-columns: 1fr; } .info-hero__img { position: static; order: -1; } }

.cv { padding-bottom: clamp(80px, 14vh, 160px); }
.cv .section-title { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 0; }
.cv__block { display: grid; grid-template-columns: 3fr 9fr; gap: var(--gutter); padding-block: 36px; border-bottom: 1px solid var(--line); }
.cv__heading { margin: 0; font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(26px, 2.4vw, 38px); line-height: 1; position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
.cv__list { list-style: none; margin: 0; padding: 0; }
.cv__item { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); transition: padding .5s var(--ease), background-color .4s; }
.cv__item:last-child { border-bottom: 0; }
.cv__item:hover { padding-left: 10px; background: color-mix(in srgb, var(--paper-2) 60%, transparent); }
.cv__year { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.cv__text em { font-family: var(--serif); font-size: 1.12em; }
@media (max-width: 760px) { .cv__block { grid-template-columns: 1fr; } .cv__heading { position: static; } .cv__item { grid-template-columns: 64px 1fr; } }

.notfound { min-height: 70vh; }

/* ---------- Custom cursor (desktop only) ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none;
  width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%;
  background: var(--ink); color: var(--paper); display: grid; place-items: center;
  font-size: 12px; font-weight: 500; letter-spacing: .04em;
  transform: translate3d(-200px, -200px, 0) scale(0); transition: transform .45s var(--ease), opacity .3s;
}
.cursor.is-on { opacity: 1; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(12,12,12,.96); color: var(--paper); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; opacity: 0; transition: opacity .35s var(--ease); }
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__stage { margin: 0; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 0; }
.lightbox__stage img { max-height: calc(100svh - 140px); max-width: 100%; width: auto; object-fit: contain; transition: opacity .3s, transform .5s var(--ease); }
.lightbox__stage img.is-swapping { opacity: 0; transform: scale(.98); }
.lightbox__stage figcaption { font-size: 13px; color: rgba(241,238,232,.6); margin-top: 12px; }
.lightbox__close { position: absolute; top: 18px; right: var(--gutter); font-size: 14px; }
.lightbox__prev, .lightbox__next { font-size: 26px; height: 100%; opacity: .6; transition: opacity .3s; }
.lightbox__prev:hover, .lightbox__next:hover { opacity: 1; }
.lightbox__count { position: absolute; left: var(--gutter); top: 20px; font-size: 13px; color: rgba(241,238,232,.6); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .lightbox { grid-template-columns: 0 1fr 0; } .lightbox__prev, .lightbox__next { position: absolute; bottom: 14px; height: auto; padding: 10px 18px; } .lightbox__prev { left: 0; } .lightbox__next { right: 0; } }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal--img { clip-path: inset(8% 0 0 0); transform: none; transition: clip-path 1.4s var(--ease), opacity .8s var(--ease); }
.js .reveal--img.is-in { clip-path: inset(0 0 0 0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal--img { opacity: 1; transform: none; clip-path: none; }
  .split .ch { transform: none; }
  .marquee__track { animation: none; }
}
