/* ==========================================================================
   Noa Arden — Photographer portfolio
   Palette: ink / bone / paper + safelight accent. Type: Instrument Serif,
   Inter Tight, Geist Mono.
   ========================================================================== */

:root {
  --ink: #0e0e0d;
  --ink-2: #181816;
  --bone: #ece7df;
  --paper: #f3efe8;
  --muted: #8d887f;
  --accent: #e2542b;
  --line-d: rgba(236, 231, 223, 0.16);
  --line-l: rgba(14, 14, 13, 0.14);

  --serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --gutter: clamp(16px, 2.4vw, 36px);
  --max: 1680px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
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 {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  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, dl, dd, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
em { font-style: italic; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.5; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 20px; }
.section--light { background: var(--paper); color: var(--ink); }

.h-section {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 8.4vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
}
.h-section em, .about__title em, .contact__title em { color: var(--accent); }

/* split-text line masks (added by JS) */
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-w > span { display: inline-block; will-change: transform; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 15px 22px; border-radius: 999px;
  border: 1px solid currentColor;
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out), border-color .4s var(--ease-out);
}
.btn span[aria-hidden] { transition: transform .4s var(--ease-out); }
.btn:hover span[aria-hidden] { transform: translateX(4px); }
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--solid-light { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn--solid-light:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--accent { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn--accent:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }

.link-arrow {
  display: inline-flex; gap: 8px; align-items: center;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em;
  padding-bottom: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.link-arrow:hover { background-size: 0 1px; background-position: 100% 100%; }

.round-btn {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--line-l);
  display: inline-grid; place-items: center; font-size: 18px;
  transition: background-color .3s, color .3s, border-color .3s;
}
.round-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.img-wrap { position: relative; overflow: hidden; background: var(--ink-2); }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Grain, cursor, curtain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  width: 200%; height: 200%;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -2%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.cursor {
  position: fixed; top: 0; left: 0; z-index: 120; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--bone);
  mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background-color .3s;
  opacity: 0;
}
.cursor.is-visible { opacity: 1; }
.cursor__label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; mix-blend-mode: normal; background: var(--accent); }
.cursor.is-label .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

.curtain {
  position: fixed; inset: 0; z-index: 150; background: var(--ink);
  transform: translateY(100%);
  pointer-events: none;
}
.curtain::after {
  content: 'Noa Arden'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 4vw, 3.5rem); color: var(--bone); opacity: .9;
}
.curtain.is-covering { transform: translateY(0); }
.curtain.is-in { transform: translateY(0); transition: transform .7s var(--ease); pointer-events: all; }
.curtain.is-out { transform: translateY(-100%); transition: transform .9s var(--ease); }
.no-js .curtain { display: none; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200; background: var(--ink); color: var(--bone);
  display: none;
}
.js .page-home .preloader.is-running { display: block; }
.preloader__stack {
  position: absolute; left: 50%; top: 50%;
  width: clamp(180px, 20vw, 300px); aspect-ratio: 4 / 5;
  transform: translate(-50%, -50%);
}
.preloader__stack img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(100% 0 0 0);
}
.preloader__meta {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 24px;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase;
}
.preloader__count {
  position: absolute; right: var(--gutter); bottom: 10px;
  font-family: var(--serif); font-size: clamp(5rem, 16vw, 15rem); line-height: .8;
  font-variant-numeric: tabular-nums;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  color: #fff; mix-blend-mode: difference;
  transition: transform .6s var(--ease);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { font-family: var(--serif); font-size: 26px; line-height: 1; letter-spacing: -0.01em; justify-self: start; }
.nav__logo sup { font-family: var(--mono); font-size: 9px; vertical-align: super; margin-left: 2px; }
.nav__links { display: flex; gap: 30px; }
.nav__links a, .nav__meta, .nav__burger {
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em;
}
.nav__links a { position: relative; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__meta { justify-self: end; display: flex; align-items: center; gap: 8px; margin: 0; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #3fd07a; box-shadow: 0 0 0 0 rgba(63, 208, 122, .6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63, 208, 122, .55); } 70% { box-shadow: 0 0 0 8px rgba(63, 208, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 208, 122, 0); } }
.nav__burger { display: none; justify-self: end; padding: 10px 0; }

.menu {
  position: fixed; inset: 0; z-index: 99; background: var(--ink); color: var(--bone);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease);
  visibility: hidden;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  font-family: var(--serif); font-size: clamp(3rem, 14vw, 6rem); line-height: 1.02;
  border-bottom: 1px solid var(--line-d); display: flex; align-items: baseline; gap: 14px;
}
.menu__links a span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.menu__foot { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--muted); }
.menu__foot a { color: var(--bone); }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; background: var(--ink);
}
.hero__frame {
  position: absolute; inset: 0;
  clip-path: inset(24% 33% 22% 33%);
  will-change: clip-path;
}
.hero__zoom { position: absolute; inset: 0; transform: scale(1.18); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.hero__media img.is-active { opacity: 1; }
.hero__cover { position: absolute; inset: 0; background: var(--ink); transform-origin: 50% 0; transform: scaleY(0); }
.js .page-home .hero__cover { transform: scaleY(1); }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.05) 40%, rgba(0,0,0,.45)); opacity: 0; }

.hero__title {
  position: absolute; inset: 0; pointer-events: none;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(6rem, 22vw, 26rem); line-height: 0.8; letter-spacing: -0.035em;
  color: var(--bone); mix-blend-mode: difference;
}
.hero__line { position: absolute; display: block; overflow: hidden; padding: 0 0.04em 0.06em; }
.hero__line > span { display: block; }
.hero__line--1 { left: calc(var(--gutter) - 0.06em); top: calc(var(--nav-h) + 1vh); }
.hero__line--2 { right: calc(var(--gutter) - 0.02em); bottom: 3vh; font-style: italic; }

.hero__side { position: absolute; top: 50%; transform: translateY(-50%); max-width: min(24vw, 290px); font-size: 15px; line-height: 1.45; color: var(--bone); }
.hero__side--l { left: var(--gutter); }
.hero__side--r { right: var(--gutter); text-align: right; }
.hero__caption { position: absolute; left: var(--gutter); bottom: 4vh; display: flex; flex-direction: column; gap: 6px; color: var(--bone); }
.hero__scroll span { display: inline-block; animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.hero__after {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(90vw, 1100px); text-align: center;
  font-family: var(--serif); font-size: clamp(2.4rem, 5.6vw, 6.2rem); line-height: 0.98; letter-spacing: -0.02em;
  color: #fff; opacity: 0; pointer-events: none;
}
.hero__after em { color: var(--accent); }

/* ---------- Intro ---------- */
.intro { padding: clamp(100px, 16vw, 220px) 0 clamp(90px, 12vw, 170px); }
.intro__statement {
  font-family: var(--serif); font-size: clamp(2.1rem, 5.1vw, 5.6rem); line-height: 1.02; letter-spacing: -0.02em;
  max-width: 17em; text-indent: 2.2em;
}
.intro__statement em { color: var(--accent); }
.intro__statement .rw { opacity: 1; }
.js .intro__statement .rw { opacity: .14; }
.intro__foot { margin-top: clamp(50px, 7vw, 100px); display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.intro__note { max-width: 420px; color: #4b4842; }
.intro__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Work (horizontal) ---------- */
.work { position: relative; background: var(--ink); }
.work__pin { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding: calc(var(--nav-h) + 28px) 0 64px; overflow: hidden; }
.work__head { display: grid; grid-template-columns: auto 1fr minmax(240px, 340px); align-items: end; gap: 20px 40px; }
.work__count { color: var(--muted); padding-bottom: 14px; }
.work__lede { color: rgba(236, 231, 223, .7); font-size: 15px; padding-bottom: 10px; }
.work__viewport { flex: 1; display: flex; align-items: center; margin-top: 36px; }
.work__track {
  display: flex; align-items: center; gap: clamp(28px, 4vw, 72px);
  padding: 0 var(--gutter); will-change: transform;
}
.wcard { flex: none; display: flex; flex-direction: column; gap: 14px; }
.wcard__info { width: 0; min-width: 100%; flex-wrap: wrap; }
.wcard__media { position: relative; overflow: hidden; background: var(--ink-2); }
.wcard--P .wcard__media { height: clamp(260px, calc(100svh - 460px), 600px); aspect-ratio: 4 / 5; }
.wcard--L .wcard__media { height: clamp(200px, calc((100svh - 460px) * .74), 440px); aspect-ratio: 3 / 2; }
.wcard:nth-child(even) { transform: translateY(3vh); }
.wcard:nth-child(3n) { transform: translateY(-3vh); }
.wcard__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease-out), filter .8s; }
.wcard:hover .wcard__media img { transform: scale(1); }
.wcard__num {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  font-family: var(--mono); font-size: 11px; color: #fff; mix-blend-mode: difference;
}
.wcard__info { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.wcard__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.2vw, 2.4rem); line-height: 1; }
.wcard__title em { font-style: italic; }
.wcard__meta { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.wcard--end { align-self: center; width: clamp(240px, 24vw, 360px); aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line-d); display: grid; place-items: center; text-align: center; transition: background-color .5s var(--ease-out), color .5s var(--ease-out); transform: none !important; }
.wcard--end:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.wcard--end span { font-family: var(--serif); font-size: clamp(2rem, 3vw, 3rem); line-height: 1; }
.wcard--end small { display: block; margin-top: 10px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
.work__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; height: 1px; background: var(--line-d); }
.work__progress span { position: absolute; inset: 0; background: var(--bone); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Archive / Index ---------- */
.archive { padding: clamp(100px, 12vw, 180px) 0; position: relative; }
.archive__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 70px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .03em;
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-l);
  transition: background-color .3s, color .3s, border-color .3s;
}
.filter sup { font-size: 9px; margin-left: 3px; opacity: .6; }
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.archive__row {
  display: grid; grid-template-columns: 64px 2.3fr 1.5fr 1fr 110px; align-items: center; gap: 20px;
  padding: 22px 0; border-top: 1px solid var(--line-l);
  position: relative;
}
.archive__row--head { color: var(--muted); padding: 0 0 14px; border-top: 0; }
.archive__row:not(.archive__row--head)::before {
  content: ''; position: absolute; inset: 0 calc(var(--gutter) * -1);
  background: var(--ink); transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .5s var(--ease); z-index: 0;
}
.archive__row > * { position: relative; z-index: 1; transition: color .4s var(--ease), transform .5s var(--ease); }
.archive__row:not(.archive__row--head):hover::before { transform: scaleY(1); transform-origin: 50% 0; }
.archive__row:not(.archive__row--head):hover > * { color: var(--paper); }
.archive__row:hover .archive__title { transform: translateX(14px); }
.archive__row .archive__title { font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 3.4rem); line-height: 1; letter-spacing: -0.01em; }
.archive__row .archive__num, .archive__row .archive__cat, .archive__row .archive__year { font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.archive__row .archive__client { font-size: 15px; color: #4b4842; }
.archive__row .archive__year { text-align: right; }
.archive__row.is-hidden { display: none; }
.archive__rows { border-bottom: 1px solid var(--line-l); }

.archive__preview {
  position: fixed; top: 0; left: 0; z-index: 60; pointer-events: none;
  width: clamp(220px, 19vw, 320px); aspect-ratio: 4 / 5;
  overflow: hidden; opacity: 0; transform: scale(.6);
  transition: opacity .35s, transform .5s var(--ease-out);
}
.archive__preview.is-visible { opacity: 1; transform: scale(1); }
.archive__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transition: clip-path .6s var(--ease); }
.archive__preview img.is-active { clip-path: inset(0 0 0 0); }

/* ---------- About ---------- */
.about { padding: 0 0 clamp(100px, 12vw, 180px); }
.about__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(30px, 6vw, 110px); align-items: start; }
.about__portrait { aspect-ratio: 4 / 5; position: sticky; top: calc(var(--nav-h) + 20px); }
.about__portrait img { height: 118%; margin-top: -9%; }
.about__portrait figcaption { position: absolute; left: 14px; bottom: 12px; color: #fff; mix-blend-mode: difference; }
.about__body { padding-top: clamp(0px, 4vw, 60px); }
.about__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 5.2vw, 5.4rem); line-height: .96; letter-spacing: -0.02em; margin-bottom: clamp(30px, 4vw, 50px); }
.about__text { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; color: #4b4842; margin-bottom: 36px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(70px, 9vw, 130px); border-top: 1px solid var(--line-l); }
.stats__item { padding: 24px 20px 0 0; border-right: 1px solid var(--line-l); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; }
.stats__item + .stats__item { padding-left: 20px; }
.stats__item:last-child { border-right: 0; }
.stats dd { font-family: var(--serif); font-size: clamp(3.6rem, 7vw, 7.4rem); line-height: .85; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stats dt { color: var(--muted); }

.about__lists { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: clamp(30px, 4vw, 70px); margin-top: clamp(70px, 8vw, 120px); }
.plain-list li { padding: 12px 0; border-top: 1px solid var(--line-l); font-size: 16px; }
.plain-list--split li { display: flex; justify-content: space-between; gap: 16px; }
.plain-list--split .mono { color: var(--muted); }

/* ---------- Services ---------- */
.services { padding: clamp(100px, 12vw, 180px) 0; }
.services__head { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(50px, 6vw, 90px); }
.services__lede { color: rgba(236, 231, 223, .7); max-width: 420px; justify-self: end; }
.acc { border-top: 1px solid var(--line-d); }
.acc:last-child { border-bottom: 1px solid var(--line-d); }
.acc__btn {
  width: 100%; text-align: left;
  display: grid; grid-template-columns: 70px 1fr auto 44px; align-items: center; gap: 20px;
  padding: clamp(18px, 2vw, 28px) 0;
}
.acc__num { color: var(--muted); }
.acc__title { font-family: var(--serif); font-size: clamp(2.2rem, 4.8vw, 4.8rem); line-height: 1; letter-spacing: -0.015em; transition: transform .5s var(--ease), color .3s; }
.acc__btn:hover .acc__title { transform: translateX(12px); }
.acc__btn[aria-expanded="true"] .acc__title { font-style: italic; color: var(--accent); }
.acc__price { color: rgba(236, 231, 223, .75); }
.acc__icon { position: relative; width: 44px; height: 44px; border: 1px solid var(--line-d); border-radius: 50%; }
.acc__icon::before, .acc__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1px; background: currentColor; transform: translate(-50%, -50%); transition: transform .5s var(--ease); }
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__btn[aria-expanded="true"] .acc__icon::after { transform: translate(-50%, -50%) rotate(0); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.acc__panel > .acc__inner { overflow: hidden; min-height: 0; }
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__inner { display: grid; grid-template-columns: 70px 1.3fr 1fr 260px; gap: 20px; }
.acc__inner > p { grid-column: 2; max-width: 460px; color: rgba(236, 231, 223, .78); padding-bottom: 32px; }
.acc__inner .tick-list { padding-bottom: 32px; }
.acc__img { aspect-ratio: 4 / 3; margin-bottom: 32px; }
.tick-list li { padding: 8px 0; border-top: 1px solid var(--line-d); display: flex; gap: 10px; }
.tick-list li::before { content: '✺'; color: var(--accent); }

.process { margin-top: clamp(80px, 10vw, 150px); }
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.process__grid li { border-top: 1px solid var(--bone); padding-top: 18px; }
.process__grid .mono { color: var(--muted); }
.process__grid h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3vw, 3rem); line-height: 1; margin: 40px 0 14px; }
.process__grid p { color: rgba(236, 231, 223, .7); font-size: 15px; max-width: 300px; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: clamp(40px, 6vw, 90px) 0; border-bottom: 1px solid var(--line-l); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__group span { font-family: var(--serif); font-size: clamp(3.4rem, 9vw, 10rem); line-height: 1; letter-spacing: -0.02em; white-space: nowrap; padding: 0 .3em; }
.marquee__group i { font-style: normal; color: var(--accent); font-size: clamp(2rem, 4vw, 4rem); animation: spin 8s linear infinite; display: inline-block; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Quotes ---------- */
.quotes { padding: clamp(90px, 11vw, 160px) 0; }
.quotes__stage { display: grid; }
.quote { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s; }
.quote.is-active { opacity: 1; visibility: visible; }
.quote blockquote { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 4.6rem); line-height: 1.04; letter-spacing: -0.015em; max-width: 21em; }
.quote figcaption { margin-top: 36px; display: flex; flex-direction: column; gap: 4px; }
.quote figcaption strong { font-weight: 500; }
.quote figcaption .mono { color: var(--muted); }
.quotes__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid var(--line-l); }
.quotes__nav div { display: flex; gap: 10px; }

/* ---------- Contact ---------- */
.contact { padding: clamp(110px, 13vw, 200px) 0 clamp(80px, 9vw, 130px); }
.contact__title { font-family: var(--serif); font-weight: 400; font-size: clamp(3.6rem, 11vw, 12.5rem); line-height: .86; letter-spacing: -0.035em; max-width: 9.5em; }
.contact__mail {
  display: inline-flex; gap: 12px; margin-top: clamp(30px, 4vw, 50px);
  font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 3.6vw, 3.6rem); line-height: 1.1;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat;
  transition: background-size .6s var(--ease), color .3s;
  padding-bottom: 4px; word-break: break-word;
}
.contact__mail:hover { background-size: 100% 2px; color: var(--accent); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 7vw, 130px); margin-top: clamp(70px, 8vw, 120px); padding-top: 40px; border-top: 1px solid var(--line-d); }
.contact__info { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 24px; align-content: start; }
.contact__info .eyebrow { margin-bottom: 10px; }
.contact__info p:not(.eyebrow) { font-size: 16px; }
.contact__info a:hover { color: var(--accent); }
.socials li { padding: 2px 0; }

.form { display: flex; flex-direction: column; gap: 28px; }
.form__chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form__chips legend { padding: 0; margin-bottom: 14px; }
.form__chips label { position: relative; cursor: pointer; }
.form__chips input { position: absolute; opacity: 0; pointer-events: none; }
.form__chips span {
  display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-d);
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .03em;
  transition: background-color .3s, color .3s, border-color .3s;
}
.form__chips label:hover span { border-color: var(--bone); }
.form__chips input:checked + span { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.form__chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field .mono { color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 18px; color: var(--bone); background: transparent;
  border: 0; border-bottom: 1px solid var(--line-d); border-radius: 0;
  padding: 10px 0 12px; outline: none; transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--bone) 50%), linear-gradient(135deg, var(--bone) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.field select option { color: var(--ink); }
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(236, 231, 223, .32); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--bone); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--accent); }
.form__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__status { color: var(--muted); }
.form__status.is-success { color: #3fd07a; }
.form__status.is-error { color: var(--accent); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--bone); padding-top: 40px; border-top: 1px solid var(--line-d); overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.footer__links a:hover, .footer__top-link:hover { color: var(--accent); }
.footer__word {
  font-family: var(--serif); font-size: min(29.5vw, 520px); line-height: .78; letter-spacing: -0.045em;
  white-space: nowrap; margin: 6vw 0 0 -0.04em; text-align: center;
}
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0 22px; color: var(--muted); border-top: 1px solid var(--line-d); margin-top: 2vw; }

/* ==========================================================================
   Project page
   ========================================================================== */
.page-project main { padding-top: calc(var(--nav-h) + 6vh); }
.p-hero { padding-bottom: clamp(40px, 6vw, 80px); }
.p-back { display: inline-block; margin-bottom: clamp(40px, 7vw, 90px); color: var(--muted); transition: color .3s; }
.p-back:hover { color: var(--bone); }
.p-title { font-family: var(--serif); font-weight: 400; font-size: clamp(3.8rem, 13vw, 15rem); line-height: .84; letter-spacing: -0.035em; }
.p-title em { color: var(--accent); }
.p-meta { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line-d); padding-top: 18px; }
.p-meta dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.p-meta dd { font-size: 15px; }
.p-cover { height: 92vh; height: 92svh; min-height: 420px; }
.p-cover img { height: 120%; margin-top: -10%; }
.p-cover--P { height: auto; min-height: 0; width: min(calc(100% - var(--gutter) * 2), 78svh); aspect-ratio: 4 / 5; margin: 0 auto; }
.p-intro { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding-top: clamp(80px, 10vw, 150px); padding-bottom: clamp(60px, 8vw, 120px); }
.p-lead { font-family: var(--serif); font-size: clamp(2rem, 3.8vw, 3.8rem); line-height: 1.04; letter-spacing: -0.015em; }
.p-body { margin-top: 30px; max-width: 560px; color: rgba(236, 231, 223, .72); }

.p-gallery { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 44px); padding-bottom: clamp(80px, 10vw, 150px); }
.g-row { display: grid; gap: clamp(20px, 3vw, 44px); }
.g-row--full .g-item { aspect-ratio: 3 / 2; }
.g-row--inset { grid-template-columns: 1fr 3fr; }
.g-row--inset .g-item { grid-column: 2; aspect-ratio: 3 / 2; }
.g-row--inset.is-flip { grid-template-columns: 3fr 1fr; }
.g-row--inset.is-flip .g-item { grid-column: 1; }
.g-row--pair { grid-template-columns: 1fr 1fr; align-items: start; }
.g-row--pair .g-item { aspect-ratio: 4 / 5; }
.g-row--pair .g-item:nth-child(2) { margin-top: clamp(40px, 10vw, 160px); }
.g-row--single { grid-template-columns: 1fr 1fr; align-items: end; }
.g-row--single .g-item { aspect-ratio: 4 / 5; }
.g-row--single .g-note { padding: 0 0 10px; color: var(--muted); }
.g-row--single.is-flip .g-item { order: 2; }
.g-item { cursor: zoom-in; }
.g-item img { transition: transform 1.2s var(--ease-out); }
.g-item:hover img { transform: scale(1.03); }

.p-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 40px; padding-bottom: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line-d); }
.p-cta .eyebrow { margin: 0; }

.p-next { position: relative; display: block; height: 80vh; min-height: 460px; overflow: hidden; color: #fff; }
.p-next__media { position: absolute; inset: 0; }
.p-next__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); filter: brightness(.55); transition: transform 1.4s var(--ease-out), filter .8s; }
.p-next:hover .p-next__media img { transform: scale(1); filter: brightness(.7); }
.p-next__text { position: absolute; left: 0; right: 0; bottom: 5vh; }
.p-next__title { font-family: var(--serif); font-size: clamp(3.6rem, 12vw, 14rem); line-height: .86; letter-spacing: -0.035em; margin-top: 10px; }
.p-next__title em { font-style: italic; }

.lightbox { position: fixed; inset: 0; z-index: 140; background: rgba(8, 8, 7, .96); display: grid; place-items: center; padding: 70px var(--gutter); }
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.lightbox__count { position: absolute; left: var(--gutter); top: 24px; }
.lightbox__close { position: absolute; right: var(--gutter); top: 24px; }
.lightbox__close:hover { color: var(--accent); }
.lightbox__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-d); font-size: 18px; transition: background-color .3s, color .3s; }
.lightbox__arrow:hover { background: var(--bone); color: var(--ink); }
.lightbox__arrow--prev { left: var(--gutter); }
.lightbox__arrow--next { right: var(--gutter); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav__links { gap: 20px; }
  .acc__inner { grid-template-columns: 70px 1fr 1fr; }
  .acc__img { display: none; }
  .about__text { grid-template-columns: 1fr; }
  .archive__row { grid-template-columns: 50px 2fr 1.3fr 1fr 90px; }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav__links, .nav__meta { display: none; }
  .nav__burger { display: block; }
  body.menu-open .nav { mix-blend-mode: normal; color: var(--bone); }

  .hero__side { display: none; }
  .hero__frame { clip-path: inset(28% 9% 27% 9%); }
  .hero__title { font-size: 30vw; }
  .hero__line--1 { top: calc(var(--nav-h) + 3vh); }
  .hero__line--2 { bottom: 4vh; }
  .hero__caption { bottom: auto; top: calc(74% + 12px); left: 9%; }
  .hero__scroll { display: none; }

  .work__pin { min-height: 0; padding: clamp(90px, 14vw, 130px) 0 60px; }
  .work__head { grid-template-columns: 1fr; gap: 12px; }
  .work__count, .work__lede { padding-bottom: 0; }
  .work__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-top: 40px; }
  .work__viewport::-webkit-scrollbar { display: none; }
  .work__track { align-items: flex-start; gap: 16px; }
  .wcard { scroll-snap-align: center; transform: none !important; }
  .wcard--P .wcard__media, .wcard--L .wcard__media { height: auto; width: 76vw; aspect-ratio: 4 / 5; }
  .wcard--end { width: 60vw; }
  .work__progress { display: none; }

  .archive__row { grid-template-columns: 34px 1fr auto; gap: 12px; padding: 18px 0; }
  .archive__row--head { display: none; }
  .archive__client, .archive__cat { display: none; }

  .about__grid { grid-template-columns: 1fr; }
  .about__portrait { position: relative; top: 0; max-width: 520px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats__item { padding: 20px 16px 20px 0 !important; border-bottom: 1px solid var(--line-l); }
  .stats__item:nth-child(2n) { border-right: 0; padding-left: 16px !important; }
  .about__lists { grid-template-columns: 1fr; }

  .services__head { grid-template-columns: 1fr; }
  .services__lede { justify-self: start; }
  .acc__btn { grid-template-columns: 34px 1fr 40px; gap: 12px; }
  .acc__price { grid-column: 2; grid-row: 2; }
  .acc__icon { grid-column: 3; grid-row: 1 / span 2; width: 40px; height: 40px; }
  .acc__inner { grid-template-columns: 34px 1fr; gap: 12px; }
  .acc__inner > p, .acc__inner .tick-list { grid-column: 2; }
  .acc__inner > p { padding-bottom: 10px; }
  .process__grid { grid-template-columns: 1fr 1fr; gap: 40px 20px; }

  .contact__grid { grid-template-columns: 1fr; }

  .p-meta { grid-template-columns: 1fr 1fr; }
  .p-intro { grid-template-columns: 1fr; gap: 10px; }
  .g-row--inset, .g-row--inset.is-flip { grid-template-columns: 1fr; }
  .g-row--inset .g-item, .g-row--inset.is-flip .g-item { grid-column: 1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .intro__statement { text-indent: 0; }
  .form__row { grid-template-columns: 1fr; }
  .contact__info { grid-template-columns: 1fr; gap: 24px; }
  .process__grid { grid-template-columns: 1fr; }
  .process__grid h3 { margin-top: 20px; }
  .g-row--pair { grid-template-columns: 1fr; }
  .g-row--pair .g-item:nth-child(2) { margin-top: 0; }
  .g-row--single, .g-row--single.is-flip { grid-template-columns: 1fr; }
  .g-row--single .g-item { order: 0 !important; }
  .footer__bottom { flex-direction: column; gap: 4px; }
  .quotes__nav .round-btn { width: 48px; height: 48px; }
  .lightbox__arrow { top: auto; bottom: 20px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
}
