/* ─────────────────────────────────────────────────────────────
   Geremia Anghinetti — Portfolio
   Hybrid editorial: warm paper + deep sea, serif display, grain.
   ───────────────────────────────────────────────────────────── */

:root {
  --paper: #EEEAE3;
  --paper-2: #E3DED5;
  --ink: #121212;
  --ink-2: #56524B;
  --line: rgba(18, 18, 18, .14);
  --deep: #0D1318;
  --deep-2: #151D23;
  --on-deep: #ECE8E1;
  --on-deep-2: #A3A7A9;
  --line-deep: rgba(236, 232, 225, .16);

  --serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(16px, 3.2vw, 48px);
  --section: clamp(96px, 14vw, 220px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);

  --z-grain: 90;
  --z-nav: 40;
  --z-menu: 35;
  --z-cursor: 95;
  --z-curtain: 100;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
::selection { background: var(--ink); color: var(--paper); }

:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; background: var(--ink); color: var(--paper);
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

/* ── Type primitives ─────────────────────────────────────── */
.label {
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 450;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.4;
}
.label__count { color: var(--ink-2); letter-spacing: .06em; }
.lead {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.7vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -.005em;
  text-wrap: pretty;
}
.link-line {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .6s var(--ease);
  padding-bottom: 2px;
}
.link-line:hover, .link-line:focus-visible { background-size: 100% 1px; }

/* SplitText line masks — padded so ascenders/descenders (g, y, p, accents)
   are never clipped mid-animation; masks are removed once the reveal ends. */
.split-line-mask { padding: .14em .06em .26em; margin: -.14em -.06em -.26em; }

/* ── Grain ───────────────────────────────────────────────── */
.grain {
  position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Curtain / loader ────────────────────────────────────── */
.curtain {
  position: fixed; inset: 0; z-index: var(--z-curtain);
  display: none;
  place-items: center;
  background: var(--deep);
  color: var(--on-deep);
  pointer-events: none;
}
.js .curtain { display: grid; animation: curtain-failsafe 0s linear 5s forwards; }
.curtain.is-done { display: none !important; }
@keyframes curtain-failsafe { to { visibility: hidden; } }
.curtain__mark {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -.01em;
}
.curtain__loader {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--gutter);
  display: none; justify-content: space-between; align-items: flex-end;
}
.curtain.is-loading .curtain__loader { display: flex; }
.curtain__count {
  font-family: var(--serif);
  font-size: clamp(4rem, 14vw, 12rem);
  line-height: .8;
  font-variant-numeric: tabular-nums;
}
.curtain__line {
  position: absolute; left: 0; right: 0; top: -24px; height: 1px;
  background: var(--line-deep);
}
.curtain__line i { display: block; height: 100%; background: var(--on-deep); transform-origin: left; transform: scaleX(0); }

/* ── Cursor (fine pointers only, toggled by JS) ─────────── */
.cursor {
  position: fixed; top: 0; left: 0; z-index: var(--z-cursor);
  width: 84px; height: 84px; margin: -42px 0 0 -42px;
  display: none; place-items: center;
  border-radius: 50%;
  background: var(--on-deep);
  color: var(--ink);
  pointer-events: none;
  transform: scale(.12);
  will-change: transform;
}
.has-cursor .cursor { display: grid; }
.has-cursor [data-cursor], .has-cursor [data-cursor] * { cursor: none; }
.cursor__label { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; opacity: 0; transition: opacity .2s; }
.cursor.is-active .cursor__label { opacity: 1; }
.cursor.is-hidden { opacity: 0; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px var(--gutter);
  color: var(--ink);
  transition: transform .7s var(--ease), color .4s;
}
.nav.is-dark { color: var(--on-deep); }
.nav.is-hidden { transform: translateY(-110%); }
.nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(13,19,24,.35), transparent);
  opacity: 0; transition: opacity .4s;
}
.nav.is-dark::before { opacity: 1; }
.nav__logo { display: inline-flex; align-items: baseline; gap: 14px; justify-self: start; }
.nav__mono { font-family: var(--serif); font-size: 1.75rem; line-height: 1; }
.nav__name { font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 450; }
.nav__links { display: flex; gap: clamp(24px, 4vw, 56px); font-size: .9375rem; }
.nav__end { justify-self: end; display: flex; align-items: center; gap: 20px; }
.nav__lang { font-size: .8125rem; letter-spacing: .14em; display: inline-flex; gap: 6px; padding: 12px 0; }
.nav__lang-sep, .nav__lang-other { opacity: .5; transition: opacity .3s; }
.nav__lang:hover .nav__lang-other { opacity: 1; }
.nav__burger { display: none; width: 44px; height: 44px; place-items: center; margin-right: -10px; }
.nav__burger-lines, .nav__burger-lines::after {
  display: block; width: 26px; height: 1px; background: currentColor; position: relative;
  transition: transform .5s var(--ease);
}
.nav__burger-lines { transform: translateY(-4px); }
.nav__burger-lines::after { content: ''; position: absolute; left: 0; top: 8px; }

@media (max-width: 860px) {
  .nav { grid-template-columns: 1fr auto; padding: 14px var(--gutter); }
  .nav__links, .nav__name { display: none; }
  .nav__burger { display: grid; }
}

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 96px var(--gutter) max(32px, env(safe-area-inset-bottom));
  background: var(--deep); color: var(--on-deep);
}
.menu[hidden] { display: none; }
.menu__links { display: flex; flex-direction: column; gap: 0; }
.menu__links a { display: flex; align-items: baseline; gap: 16px; overflow: hidden; }
.menu__num { font-size: .8125rem; letter-spacing: .1em; color: var(--on-deep-2); }
.menu__word { font-family: var(--serif); font-size: clamp(3.5rem, 16vw, 6rem); line-height: 1.02; display: inline-block; padding: .04em 0 .22em; }
.menu__foot { display: flex; justify-content: space-between; gap: 16px; font-size: .9375rem; color: var(--on-deep-2); flex-wrap: wrap; }
.menu__foot a { padding: 10px 0; }
body.menu-open .nav { color: var(--on-deep); }
body.menu-open .nav::before { opacity: 0; }
body.menu-open .nav__burger-lines { transform: translateY(0) rotate(45deg); }
body.menu-open .nav__burger-lines::after { transform: translateY(-8px) rotate(-90deg); }

/* ── Media ───────────────────────────────────────────────── */
.media {
  position: relative; overflow: hidden;
  aspect-ratio: var(--ar);
  background: var(--paper-2);
}
.media::before {
  content: ''; position: absolute; inset: -20px;
  background: var(--lqip) center / cover no-repeat;
  filter: blur(18px);
  transform: scale(1.05);
}
.media:has(img.is-loaded)::before { opacity: 0; transition: opacity .6s .9s; }
.media img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.js .media img { opacity: 0; transition: opacity 1s var(--ease); }
.js .media img.is-loaded { opacity: 1; }
.media--cover { position: absolute; inset: 0; aspect-ratio: auto; }
.media__zoom { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.has-cursor .media__zoom { cursor: none; }
[data-parallax] img { transform: scale(1.14); will-change: transform; }
.media--drawing { background: transparent; }
.media--drawing::before { display: none; }
.media--drawing img { mix-blend-mode: multiply; object-fit: contain; }

/* ── Hero (home) ─────────────────────────────────────────── */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  color: var(--on-deep); background: var(--deep);
  overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; }
.hero__slide.is-active { opacity: 1; }
.hero__slide .media { background: var(--deep); }
.hero__slide img { transform-origin: 50% 60%; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(13,19,24,.55) 0%, rgba(13,19,24,0) 26%),
    linear-gradient(to top, rgba(13,19,24,.78) 0%, rgba(13,19,24,.2) 45%, rgba(13,19,24,0) 70%);
}
.hero__inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) max(28px, env(safe-area-inset-bottom));
}
.hero__kicker { font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: clamp(8px, 1.5vw, 20px); }
.hero__name {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.5rem, 13vw, 17rem);
  line-height: .86; letter-spacing: -.025em;
  white-space: nowrap;
  margin-left: -.04em;
}
.hero__name > span { display: inline-block; }
.hero__bottom {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-top: clamp(20px, 3vw, 40px); padding-top: 18px;
  border-top: 1px solid var(--line-deep);
}
.hero__sub { font-size: .9375rem; max-width: 40ch; color: var(--on-deep); opacity: .85; }
.hero__control { display: flex; align-items: center; gap: 16px; }
.hero__pause { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-deep); border-radius: 50%; transition: background .3s; }
.hero__pause:hover { background: rgba(236,232,225,.12); }
.hero__pause svg { width: 12px; height: 12px; fill: currentColor; }
.hero__pause .i-play { display: none; }
.hero__pause.is-paused .i-pause { display: none; }
.hero__pause.is-paused .i-play { display: block; }
.hero__progress { display: flex; gap: 6px; }
.hero__progress span { width: 36px; height: 1px; background: var(--line-deep); overflow: hidden; }
.hero__progress i { display: block; height: 100%; background: var(--on-deep); transform: scaleX(0); transform-origin: left; }
.hero__captions { position: relative; min-width: 13.5em; height: 1.6em; font-size: .9375rem; }
.hero__caption { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.hero__caption.is-active { opacity: 1; visibility: visible; }
.hero__scroll {
  position: absolute; top: 50%; right: var(--gutter);
  writing-mode: vertical-rl;
  display: flex; align-items: center; gap: 14px;
  font-size: .75rem; letter-spacing: .16em; text-transform: uppercase;
  transform: translateY(-50%);
}
.hero__scroll i { width: 1px; height: 56px; background: var(--line-deep); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; inset: 0; background: var(--on-deep); animation: drip 2.4s var(--ease-in-out) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

@media (max-width: 860px) {
  .hero__name { white-space: normal; font-size: clamp(3.5rem, 19vw, 9rem); line-height: .84; }
  .hero__name > span { display: block; }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero__scroll { display: none; }
  .hero__control { width: 100%; }
  .hero__captions { min-width: 0; flex: 1; }
}
@media (max-width: 520px) {
  .hero__progress { display: none; }
}

/* ── Statement ───────────────────────────────────────────── */
.statement {
  padding: var(--section) var(--gutter);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--gutter);
}
.statement .label { grid-column: 1 / 3; padding-top: .9em; }
.statement__text {
  grid-column: 3 / 13;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.9vw, 5.25rem);
  line-height: 1.04; letter-spacing: -.015em;
  text-wrap: balance;
}
@media (max-width: 860px) {
  .statement { display: block; }
  .statement .label { margin-bottom: 24px; }
}

/* ── Work ────────────────────────────────────────────────── */
.work { border-top: 1px solid var(--line); }
.work__pin { position: relative; }
.work__track {
  display: flex; gap: clamp(28px, 4vw, 72px); align-items: flex-end;
  padding: clamp(96px, 12vw, 140px) var(--gutter) 64px;
}
.work__intro { flex: 0 0 auto; width: min(44vw, 720px); align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.is-horizontal .card:last-child { margin-right: var(--gutter); }
.work__word {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(6rem, 17vw, 20rem);
  line-height: .8; letter-spacing: -.04em;
  margin: auto 0 0 -.05em;
}
.work__hint { margin-top: 28px; max-width: 30ch; color: var(--ink-2); }
.card { flex: 0 0 auto; width: min(31vw, 56vh); }
.card__link { display: block; }
.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.card__media .media { transition: transform 1.4s var(--ease); }
.card__link:hover .card__media .media { transform: scale(1.05); }
.card__meta { display: flex; justify-content: space-between; margin-top: 18px; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; }
.card__num { color: var(--ink-2); }
.card__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.25rem, 3.4vw, 3.5rem); line-height: 1; margin-top: 10px; }
.card__sub { font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; color: var(--ink-2); margin-top: 6px; }
.work__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; height: 1px; background: var(--line); display: none; }
.work__bar i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.is-horizontal .work__pin { height: 100vh; overflow: hidden; }
.is-horizontal .work__track { height: 100%; width: max-content; padding-bottom: 88px; }
.is-horizontal .work__bar { display: block; }

@media (max-width: 1023px) {
  .work__track { flex-direction: column; align-items: stretch; gap: 72px; }
  .work__intro { width: auto; }
  .card { width: 100%; }
  .card__media { aspect-ratio: 4 / 4.6; }
}

/* ── About ───────────────────────────────────────────────── */
.about {
  padding: var(--section) var(--gutter);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--gutter);
}
.about__head { grid-column: 1 / 7; }
.about__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3rem, 7vw, 7.5rem); line-height: .92; letter-spacing: -.025em;
  margin-top: 24px; text-wrap: balance;
}
.about__body { grid-column: 7 / 13; display: grid; gap: 28px; align-self: end; }
.facts {
  grid-column: 1 / 13; margin-top: clamp(72px, 10vw, 140px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px var(--gutter);
}
.facts__col { border-top: 1px solid var(--line); padding-top: 20px; }
.facts__col ul { margin-top: 20px; display: grid; gap: 22px; }
.facts__col li { display: grid; gap: 2px; }
.facts__title { font-family: var(--serif); font-size: 1.625rem; line-height: 1.15; }
.facts__place { color: var(--ink-2); font-size: .9375rem; }
.facts__when { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.facts__desc { font-size: .9375rem; line-height: 1.5; margin-top: 6px; max-width: 36ch; }
.facts__spaced { margin-top: 44px; }
.facts .facts__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.facts__tags li { display: block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: .9375rem; }
@media (max-width: 1023px) {
  .about { display: block; }
  .about__body { margin-top: 40px; }
  .facts { grid-template-columns: 1fr; }
}

/* ── CV button ───────────────────────────────────────────── */
.cv-btn {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 52px; padding: 12px 22px;
  border: 1px solid var(--ink); border-radius: 999px;
  font-size: .9375rem; font-weight: 450;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.cv-btn__meta { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.cv-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .5s var(--ease); }
.cv-btn:hover, .cv-btn:focus-visible { background: var(--ink); color: var(--paper); }
.cv-btn:hover svg { transform: translateY(2px); }
.cv-btn--dark { border-color: var(--on-deep); }
.cv-btn--dark:hover, .cv-btn--dark:focus-visible { background: var(--on-deep); color: var(--deep); }
.contact__cv { margin-top: 28px; }

/* ── Contact ─────────────────────────────────────────────── */
.contact {
  background: var(--deep); color: var(--on-deep);
  padding: var(--section) var(--gutter) clamp(72px, 9vw, 120px);
}
.contact__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.25rem, 10vw, 11rem); line-height: .9; letter-spacing: -.03em;
  margin-top: 28px;
}
.contact__body { color: var(--on-deep-2); margin-top: 32px; max-width: 42ch; }
.contact__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px var(--gutter);
  margin-top: clamp(64px, 9vw, 128px);
}
.contact__item { border-top: 1px solid var(--line-deep); padding-top: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.contact__item .label { color: var(--on-deep-2); }
.contact__big { font-family: var(--serif); font-size: clamp(1.75rem, 2.6vw, 2.75rem); line-height: 1.1; overflow-wrap: anywhere; display: inline-block; }
.contact__copy {
  font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--line-deep); border-radius: 999px; padding: 10px 18px; min-height: 40px;
  transition: background .3s, color .3s;
}
.contact__copy:hover { background: var(--on-deep); color: var(--deep); }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--deep); color: var(--on-deep-2);
  padding: 28px var(--gutter) max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-deep);
  font-size: .875rem;
}
.footer__row { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.footer__row a { color: var(--on-deep); }
.footer__small { margin-top: 12px; font-size: .8125rem; }
[data-clock] { font-variant-numeric: tabular-nums; }

/* ── Project hero ────────────────────────────────────────── */
.phero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  background: var(--deep); color: var(--on-deep); overflow: hidden;
}
.phero__media { background: var(--deep); }
.phero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(13,19,24,.45) 0%, rgba(13,19,24,0) 30%),
    linear-gradient(to top, rgba(13,19,24,.75) 0%, rgba(13,19,24,0) 60%);
}
.phero__inner {
  position: absolute; inset: auto 0 0 0;
  padding: 0 var(--gutter) max(32px, env(safe-area-inset-bottom));
}
.phero__meta { display: flex; gap: 12px 32px; flex-wrap: wrap; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; }
.phero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(4.5rem, 17vw, 19rem); line-height: .82; letter-spacing: -.035em;
  margin: 16px 0 0 -.05em;
}
.phero__tagline { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.25; max-width: 34ch; margin-top: 20px; }
.phero__team { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line-deep); font-size: .9375rem; line-height: 1.5; }
.phero__team .label { color: var(--on-deep-2); margin-bottom: 8px; }
.phero__team-note { margin-top: 8px; font-size: .8125rem; color: var(--on-deep-2); }
@media (min-width: 861px) {
  .phero__inner { display: grid; grid-template-columns: 1fr auto; column-gap: var(--gutter); align-items: end; }
  .phero__inner > :not(.phero__team) { grid-column: 1; }
  .phero__team { grid-column: 2; grid-row: 1 / span 3; align-self: end; justify-self: end; min-width: 15rem; margin-bottom: .35em; }
}
@media (max-width: 860px) {
  .phero__team ul { display: flex; flex-wrap: wrap; column-gap: .9em; }
  .phero__team li:not(:last-child)::after { content: '·'; margin-left: .9em; color: var(--on-deep-2); }
}

/* ── Specs ───────────────────────────────────────────────── */
.specs { padding: clamp(40px, 6vw, 80px) var(--gutter) 0; }
.specs__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px var(--gutter); }
.specs__item { border-top: 1px solid var(--line); padding-top: 16px; }
.specs__item dt { font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.specs__item dd { font-family: var(--serif); font-size: clamp(1.375rem, 1.9vw, 1.75rem); line-height: 1.2; margin-top: 8px; }
@media (max-width: 1023px) { .specs__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .specs__list { grid-template-columns: 1fr; gap: 20px; } }

/* ── Project blocks ──────────────────────────────────────── */
.pbody { padding-bottom: var(--section); }
.pb { margin-top: clamp(24px, 3vw, 48px); }
.pb--text, .pb--chapter {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px var(--gutter);
  padding: 0 var(--gutter);
}
.pb--text { margin-top: var(--section); }
.pb--text .label { grid-column: 1 / 4; padding-top: .6em; }
.pb--text .lead { grid-column: 4 / 12; }
.pb--chapter { margin-top: var(--section); margin-bottom: clamp(32px, 4vw, 64px); align-items: end; }
.pb__num { grid-column: 1 / 3; font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2vw, 2rem); color: var(--ink-2); align-self: start; }
.pb__title { grid-column: 3 / 9; font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 7vw, 7.5rem); line-height: .9; letter-spacing: -.025em; }
.pb--chapter .pb__body { grid-column: 9 / 13; }
.pb__body { color: var(--ink-2); max-width: 42ch; }
.pb--full { padding: 0; }
.pb--pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 24px); padding: 0 var(--gutter); }
.pb--pair .media { aspect-ratio: 16 / 10.5; }
.pb--offset { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px var(--gutter); padding: 0 var(--gutter); align-items: end; }
.pb--offset.pb--right .media { grid-column: 5 / 13; grid-row: 1; }
.pb--offset.pb--right .pb__caption { grid-column: 1 / 4; grid-row: 1; }
.pb--offset.pb--left .media { grid-column: 1 / 9; }
.pb--offset.pb--left .pb__caption { grid-column: 10 / 13; }
.pb__caption { font-family: var(--serif); font-size: clamp(1.25rem, 1.7vw, 1.625rem); line-height: 1.25; }
.pb--tall { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px var(--gutter); padding: 0 var(--gutter); align-items: center; }
.pb--tall .media { grid-column: 2 / 7; max-height: 150vh; }
.pb--tall .pb__aside { grid-column: 8 / 12; }
.pb__subtitle { font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 4.4vw, 4.5rem); line-height: .95; letter-spacing: -.02em; margin-bottom: 24px; }
.pb--drawing {
  margin-top: var(--section);
  background: var(--paper-2);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px var(--gutter);
  padding: clamp(48px, 7vw, 112px) var(--gutter);
}
.pb--drawing .pb__aside { grid-column: 1 / 5; }
.pb--drawing .pb__aside .pb__body { margin-top: 16px; }
.pb--drawing .media { grid-column: 6 / 12; }

@media (max-width: 860px) {
  .pb--text, .pb--chapter, .pb--offset, .pb--tall, .pb--drawing { display: block; }
  .pb--text .label, .pb__num { display: block; margin-bottom: 16px; }
  .pb--chapter .pb__body { margin-top: 20px; }
  .pb--pair { grid-template-columns: 1fr; }
  .pb--offset .pb__caption { margin-top: 16px; }
  .pb--tall .pb__aside, .pb--drawing .media { margin-top: 32px; }
}

/* ── Next project ────────────────────────────────────────── */
.next { position: relative; background: var(--deep); color: var(--on-deep); }
.next__link { position: relative; display: block; height: 88vh; min-height: 480px; overflow: hidden; }
.next__media { transition: transform 1.6s var(--ease); }
.next__link:hover .next__media { transform: scale(1.04); }
.next__shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(13,19,24,.62), rgba(13,19,24,.35)); transition: opacity .6s; }
.next__link:hover .next__shade { opacity: .8; }
.next__inner { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 12px; padding: var(--gutter); }
.next__title { font-family: var(--serif); font-size: clamp(4.5rem, 15vw, 16rem); line-height: .85; letter-spacing: -.035em; }
.next__cat { font-family: var(--serif); font-size: clamp(1.125rem, 1.6vw, 1.5rem); }
.next__all { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; padding: 10px 0; }

/* ── Lightbox ────────────────────────────────────────────── */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--deep); color: var(--on-deep);
}
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: var(--deep); }
.lightbox__img { flex: 1; min-height: 0; width: 100%; object-fit: contain; padding: clamp(16px, 4vw, 56px) clamp(16px, 4vw, 56px) 0; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gutter) max(12px, env(safe-area-inset-bottom)); }
.lightbox__count { font-size: .875rem; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.lightbox__btns { display: flex; gap: 8px; }
.lightbox__btns button { width: 48px; height: 48px; border: 1px solid var(--line-deep); border-radius: 50%; font-size: 1.1rem; transition: background .3s; }
.lightbox__btns button:hover { background: rgba(236,232,225,.12); }
.has-cursor .lightbox { cursor: auto; }

/* ── 404 ─────────────────────────────────────────────────── */
.notfound {
  min-height: 100vh; min-height: 100svh;
  background: var(--deep); color: var(--on-deep);
  display: flex; flex-direction: column;
  padding: 22px var(--gutter) max(32px, env(safe-area-inset-bottom));
}
.notfound__logo { display: inline-flex; align-items: baseline; gap: 14px; align-self: flex-start; }
.notfound__main { margin-top: auto; }
.notfound .label { color: var(--on-deep-2); }
.notfound__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(4.5rem, 17vw, 18rem); line-height: .86; letter-spacing: -.035em;
  margin: 20px 0 0 -.05em;
}
.notfound__it { font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 5vw, 4.5rem); line-height: 1.1; color: var(--on-deep-2); }
.notfound__body { margin-top: 32px; max-width: 46ch; color: var(--on-deep-2); }
.notfound__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-parallax] img { transform: none; }
}
