/* ==========================================================================
   Juan Pablo Darmanin — portfolio
   Light editorial system: ivory ground, graphite text, one sans family (Manrope, self-hosted),
   photographs and film carry the page. Scale checked at 390 / 768 / 1440 px.
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.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;
}

:root {
  --ivory: #faf4ee;
  --sand: #efe9e0;
  --ink: #20211f;
  --muted: #5c5e58;
  --accent: #9a6746;
  --accent-ink: #7b4d2f;
  --rule: #d8d2c8;
  --card: #e4dfd5;

  --bg: var(--ivory);
  --fg: var(--ink);

  --f: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4.2vw, 72px);
  --max: 1320px;
  --bar-h: 64px;
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --sec-pad: clamp(56px, 8vw, 112px);

  --fs-body: clamp(1.0625rem, .3vw + 1rem, 1.125rem);
  --fs-small: .875rem;
  color-scheme: light;
}
@media (min-width: 900px) { :root { --bar-h: 76px; } }

.tone-light { --bg: var(--ivory); }
.tone-dark { --bg: var(--sand); }
.tone-light, .tone-dark { background: var(--bg); color: var(--fg); }

/* --------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--f);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-height: 100svh;
  display: flex; flex-direction: column;
}
main { flex: 1; }
img, video, picture, svg { display: block; max-width: 100%; }
img { height: auto; background-size: cover; background-repeat: no-repeat; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 2px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -64px; z-index: 100; padding: 12px 18px; background: var(--ink); color: var(--ivory); font-weight: 600; border-radius: 999px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* --------------------------------------------------------------- type */
.eyebrow, .crumb { font-size: var(--fs-small); font-weight: 600; letter-spacing: .01em; color: var(--accent-ink); margin-bottom: 14px; }
.crumb { color: var(--muted); font-weight: 500; }
.crumb a { text-decoration: none; }

.page-title, .hero__title, .proj__title, .cta__title, .feature__title, .next__title {
  font-weight: 600; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance;
}
.page-title { font-size: clamp(2.25rem, 4.2vw, 4rem); }
.sec-title { font-size: clamp(1.75rem, 2.4vw, 2.5rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; text-wrap: balance; }
.sec-label { margin-bottom: clamp(20px, 2.4vw, 32px); }
.page-head__lede { margin-top: 16px; max-width: 60ch; color: var(--muted); font-size: clamp(1.0625rem, .4vw + 1rem, 1.1875rem); line-height: 1.55; }
.meta-line { font-size: var(--fs-small); color: var(--muted); }

.prose { max-width: 62ch; }
.prose p + p { margin-top: 1em; }
.prose--lead { font-size: clamp(1.0625rem, .5vw + 1rem, 1.25rem); line-height: 1.6; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .55em; min-height: 44px;
  font-weight: 600; font-size: .9375rem; text-decoration: none; white-space: nowrap;
}
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .9375rem; line-height: 1; text-decoration: none; cursor: pointer;
  color: var(--ink); background: transparent; border: 1.5px solid var(--ink);
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--solid { background: var(--ink); color: var(--ivory); }
@media (hover: hover) {
  .link-arrow:hover::after { transform: translateX(4px); }
  .btn:hover { background: var(--ink); color: var(--ivory); }
  .btn--solid:hover { background: transparent; color: var(--ink); }
}

/* --------------------------------------------------------------- header */
.bar {
  position: sticky; top: 0; z-index: 50; height: var(--bar-h);
  display: flex; align-items: center; gap: 12px 24px;
  padding-inline: var(--gutter);
  background: color-mix(in srgb, var(--ivory) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
}
.bar__mark { margin-right: auto; font-weight: 700; font-size: .9375rem; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; padding: 10px 0; }
.bar__nav ul { display: flex; gap: clamp(8px, 1.2vw, 20px); list-style: none; padding: 0; margin: 0; }
.bar__nav a { display: flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 999px; font-size: .9375rem; font-weight: 500; text-decoration: none; color: var(--muted); transition: color .2s, background-color .2s; }
.bar__nav a[aria-current="page"] { color: var(--ink); font-weight: 600; background: color-mix(in srgb, var(--ink) 7%, transparent); }
@media (hover: hover) { .bar__nav a:hover { color: var(--ink); } }

.lang { display: inline-flex; margin: 0; padding: 3px; border: 1px solid var(--rule); border-radius: 999px; background: color-mix(in srgb, var(--ivory) 70%, #fff); }
.lang__btn { min-width: 44px; height: 38px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-size: .875rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); transition: background-color .2s, color .2s; }
.lang__btn[aria-pressed="true"] { background: var(--ink); color: var(--ivory); }
@media (hover: hover) { .lang__btn[aria-pressed="false"]:hover { color: var(--ink); } }
@media (max-width: 899px) { .lang { padding: 2px; } .lang__btn { min-width: 44px; height: 40px; } }

.bar__menu { display: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 999px; background: transparent; font-size: .9375rem; font-weight: 600; cursor: pointer; }

.menu {
  position: fixed; inset: var(--bar-h) 0 0 0; z-index: 45; background: var(--ivory); color: var(--ink);
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 24px var(--gutter) max(28px, env(safe-area-inset-bottom)); overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu ul { list-style: none; padding: 0; }
.menu nav a { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--rule); font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; text-decoration: none; }
.menu nav a[aria-current="page"] { color: var(--accent-ink); }
.menu__foot { margin-top: 28px; color: var(--muted); }

@media (max-width: 899px) {
  .bar__nav { display: none; }
  .bar__menu { display: inline-flex; align-items: center; }
}

.preview-bar { position: sticky; top: 0; z-index: 60; padding: 10px var(--gutter); background: var(--accent); color: #fff; font-size: var(--fs-small); font-weight: 600; }
.preview-bar a { margin-left: 1rem; }

/* --------------------------------------------------------------- sections */
.sec { padding-block: var(--sec-pad); }
.sec--hero, .sec--lens-scroll, .sec--fullscreen-image, .sec--fullscreen-video, .sec--featured-project, .sec--cta { padding-block: 0; }
.sec--hero + .sec { padding-top: var(--sec-pad); }
.tone-dark + .tone-dark, .tone-light + .tone-light { padding-top: calc(var(--sec-pad) * .5); }
.sec--hero + .tone-light, .sec--lens-scroll + .tone-light { padding-top: var(--sec-pad); }

.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
  margin-bottom: clamp(24px, 3vw, 40px);
}

/* hero: full-length figure in the background */
.hero { position: relative; }
.hero--figure {
  --fig-ratio: 720 / 964;
  min-height: min(calc(100svh - var(--bar-h)), 900px);
  display: flex; align-items: center; overflow-x: clip; background: var(--ivory);
}
.hero__in { position: relative; z-index: 2; padding-block: clamp(32px, 6vh, 72px); }
.hero__text { max-width: 36rem; }
.hero__kicker { margin-bottom: 18px; font-size: var(--fs-small); font-weight: 600; color: var(--accent-ink); }
.hero__title { font-size: clamp(2.25rem, 5vw, 4.5rem); }
.hero__intro { margin-top: 20px; max-width: 34rem; font-size: clamp(1.0625rem, .5vw + 1rem, 1.25rem); line-height: 1.55; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* The stage carries the geometry (no z-index: it must not isolate the figure's blend); ring below, figure above */
.hero__stage { position: absolute; bottom: 0; right: max(var(--gutter), calc((100% - var(--max)) / 2)); height: 100%; max-height: 900px; aspect-ratio: var(--fig-ratio); pointer-events: none; }
.hero__figure {
  position: absolute; inset: 0; z-index: 1; margin: 0; pointer-events: none;
  --fade: linear-gradient(to right, transparent 0, #000 13%, #000 87%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 5%, #000 93%, transparent 100%);
  -webkit-mask-image: var(--fade); mask-image: var(--fade);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mix-blend-mode: multiply; /* the media is graded so its backdrop is white: it prints onto the page colour */
}
.hero__figure picture, .hero__figure img, .hero__clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero__figure img { background: none !important; }
.hero__clip { opacity: 0; transition: opacity 1s var(--ease); }
.hero__clip.is-playing { opacity: 1; }
.motion-toggle {
  position: absolute; right: 12px; bottom: 28px; z-index: 3; pointer-events: auto;
  min-height: 44px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 999px;
  background: color-mix(in srgb, var(--ivory) 88%, #fff); font-size: .875rem; font-weight: 600; cursor: pointer;
}
.motion-toggle[hidden] { display: none; }
@media (hover: hover) { .motion-toggle:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); } }

@media (max-width: 899px) {
  .hero--figure { display: block; min-height: 0; }
  .hero__in { padding-block: 28px 0; }
  .hero__stage { position: relative; right: auto; bottom: auto; height: auto; max-height: none; width: min(76vw, 340px); margin: 8px 6vw 0 auto; }
}

/* hero: full-bleed image or video (legacy layout) */
.hero--cover { min-height: min(calc(100svh - var(--bar-h)), 900px); display: flex; align-items: flex-end; overflow: hidden; background: var(--sand); }
.hero--cover.hero--tall { min-height: min(calc(82svh - var(--bar-h)), 780px); }
.hero__media { position: absolute; inset: 0; }
.hero__media picture, .hero__media img, .hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__video.is-playing { opacity: 1; }
.hero--cover .hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(250, 244, 238, .94) 0%, rgba(250, 244, 238, .55) 32%, rgba(250, 244, 238, 0) 62%); }
.hero--cover .hero__text { position: relative; padding-block: clamp(32px, 6vw, 80px); }
.hero--type { align-items: center; }

/* lens sequence (scroll-driven video; falls back to a still) */
.lens { position: relative; }
.lens__sticky { display: flex; flex-direction: column; padding-block: clamp(40px, 6vw, 72px) 8px; background: var(--bg); /* the stage multiplies against this backdrop */ }
.lens__copy { position: relative; z-index: 2; }
.lens__copy > * { max-width: 34rem; }
.lens__text { margin-top: 14px; color: var(--muted); }
.lens__copy .link-arrow { margin-top: 6px; }
.lens__hint { display: none; margin-top: 10px; font-size: var(--fs-small); font-weight: 600; color: var(--accent-ink); }
.lens__stage {
  position: relative; margin: 12px auto 0; width: 100%; max-width: 1500px; aspect-ratio: 16 / 10;
  --fade: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: var(--fade); mask-image: var(--fade); -webkit-mask-composite: source-in; mask-composite: intersect;
  mix-blend-mode: multiply;
}
.lens__stage picture, .lens__stage img, .lens__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 62%; }
.lens__stage img { background: none !important; }
.lens__video { display: none; opacity: 0; transition: opacity .4s; }
.lens__video.is-ready { opacity: 1; }
/* scroll-driven mode (video on larger screens, frame sequence on phones): the stage stays pinned for one extra screen */
.lens__canvas { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .3s; }
.lens__canvas.is-ready { opacity: 1; }
.js .lens.is-live { height: 215svh; }
.js .lens.is-live .lens__sticky { position: sticky; top: var(--bar-h); height: calc(100svh - var(--bar-h)); overflow: clip; padding-top: clamp(24px, 5vh, 56px); padding-bottom: 0; }
.js .lens.is-live .lens__stage { flex: 1 1 auto; min-height: 0; aspect-ratio: auto; margin-top: 0; }
.js .lens.is-live .lens__hint { display: block; }
.js .lens.is-live.is-video .lens__video { display: block; }
.js .lens.is-live.is-frames .lens__canvas { display: block; }
@media (max-width: 767px) {
  .js .lens.is-live { height: 190svh; }
  .js .lens.is-live .lens__sticky { justify-content: center; padding-top: 0; }
  .js .lens.is-live .lens__stage { flex: none; aspect-ratio: 720 / 407; margin-top: 16px; }
}

/* full-bleed */
.full { position: relative; }
.full img, .full video { width: 100%; height: auto; max-height: 100svh; object-fit: cover; }
.full__cap { position: absolute; left: var(--gutter); bottom: 16px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--ivory) 88%, transparent); font-size: var(--fs-small); font-weight: 500; }

/* statement */
.statement { max-width: calc(var(--max) + 2 * var(--gutter)); }
.statement__text { font-size: clamp(1.5rem, 2.8vw, 2.5rem); font-weight: 500; line-height: 1.25; letter-spacing: -.02em; max-width: 30ch; text-wrap: balance; }
.statement .link-arrow { margin-top: 18px; }

/* --------------------------------------------------------------- empty state */
.empty {
  display: flex; align-items: flex-start; gap: 20px; padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid var(--rule); border-radius: calc(var(--radius) * 2); background: color-mix(in srgb, var(--sand) 55%, var(--ivory));
  max-width: 44rem;
}
.empty__mark { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); position: relative; margin-top: 2px; }
.empty__mark::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; border: 1.5px solid var(--accent); }
.empty__title { font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; }
.empty__text { margin-top: 6px; color: var(--muted); max-width: 46ch; }
.empty .link-arrow { margin-top: 6px; }
.empty--compact { padding: 22px 24px; }

/* --------------------------------------------------------------- project grid: 8+4, 6+6, 4+4+4 */
.tiles { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 32px); row-gap: clamp(36px, 4.4vw, 64px); align-items: start; }
.tile { grid-column: 1 / -1; min-width: 0; }
.tile__link { display: block; text-decoration: none; }
.tile__media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--card); aspect-ratio: 3 / 2; }
.tile__media picture, .tile__media img { width: 100%; height: 100%; }
.tile__media img { object-fit: cover; transition: transform .5s var(--ease); }
.tile__vid { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; }
.tile__vid video { width: 100%; height: 100%; object-fit: cover; }
.tile__vid.is-playing { opacity: 1; }
.tile__text { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; padding-top: 14px; }
.tile__title { font-size: clamp(1.125rem, 1vw + .9rem, 1.375rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.tile__meta { font-size: var(--fs-small); color: var(--muted); }
.tile[hidden] { display: none; }
@media (hover: hover) { .tile__link:hover img { transform: scale(1.02); } }
@media (min-width: 640px) {
  .tile--3, .tile--4 { grid-column: span 6; }
  .tile--5, .tile--6, .tile--7 { grid-column: span 6; }
  .tile--7 { grid-column: 4 / span 6; }
  .tile--1 { --h: clamp(280px, 30vw, 440px); }
}
@media (min-width: 1100px) {
  .tile--1 { grid-column: span 8; }
  .tile--2 { grid-column: span 4; }
  .tile--3, .tile--4 { grid-column: span 6; }
  .tile--5, .tile--6, .tile--7 { grid-column: span 4; }
  .tile--1 .tile__media, .tile--2 .tile__media { aspect-ratio: auto; height: clamp(380px, 31vw, 440px); }
  .tile--5 .tile__media, .tile--6 .tile__media, .tile--7 .tile__media { aspect-ratio: 4 / 5; }
}
@media (min-width: 640px) and (max-width: 1099px) {
  .tile--1 .tile__media { aspect-ratio: 16 / 10; }
  .tile--2 { grid-column: 1 / -1; }
  .tile--2 .tile__media { aspect-ratio: 16 / 10; }
}

/* hero: lens-scale ring behind the figure (the figure multiplies over it, so it shows through the white backdrop) */
.hero__ring { position: absolute; z-index: 0; left: 50%; top: 47%; width: 96%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(239, 233, 224, .95) 0 66%, rgba(239, 233, 224, 0) 66.4%); }
.hero__stage { --px: 0; --py: 0; }
.hero__ring { transform: translate(-50%, -50%) perspective(900px) rotateY(calc(var(--px) * 16deg)) rotateX(calc(var(--py) * -16deg)); transition: transform .35s var(--ease); }
.hero__figure { transform: translate3d(calc(var(--px) * -10px), calc(var(--py) * -6px), 0); transition: transform .35s var(--ease); }
.hero__ring::before, .hero__ring::after { content: ""; position: absolute; border-radius: 50%; }
.hero__ring::before { inset: 0; border: 1px solid rgba(154, 103, 70, .45); }
.hero__ring::after { inset: 4.5%; background: repeating-conic-gradient(from 0deg, rgba(32, 33, 31, .24) 0 .5deg, transparent .5deg 5deg);
  -webkit-mask: radial-gradient(circle closest-side, transparent 0 91%, #000 91.5% 98%, transparent 98.5%); mask: radial-gradient(circle closest-side, transparent 0 91%, #000 91.5% 98%, transparent 98.5%); }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .hero__ring::after { animation: ring-turn 36s linear infinite; }
  html:not([data-motion="off"]) .hero__ring { animation: ring-breathe 7s ease-in-out infinite; }
  html:not([data-motion="off"]) .hero__figure { animation: figure-float 6.5s ease-in-out infinite; }
  html:not([data-motion="off"]) .hero__stage.is-paused .hero__ring, html:not([data-motion="off"]) .hero__stage.is-paused .hero__ring::after, html:not([data-motion="off"]) .hero__stage.is-paused .hero__figure { animation-play-state: paused; }
  @keyframes ring-turn { to { transform: rotate(360deg); } }
  @keyframes ring-breathe { 50% { scale: 1.045; } }
  @keyframes figure-float { 50% { translate: 0 -7px; } }
}
.hero__kinds { display: flex; flex-wrap: wrap; gap: 6px 8px; list-style: none; padding: 0; margin-top: 28px; }
.hero__kinds li { padding: 5px 12px; border: 1px solid var(--rule); border-radius: 999px; font-size: var(--fs-small); font-weight: 500; color: var(--muted); }

/* project grid: never leave a hole in the last row */
@media (min-width: 1100px) {
  .tile:last-child.tile--1, .tile:last-child.tile--3, .tile:last-child.tile--5 { grid-column: 1 / -1; }
  .tile:last-child.tile--1 .tile__media, .tile:last-child.tile--3 .tile__media, .tile:last-child.tile--5 .tile__media { aspect-ratio: 21 / 9; height: auto; }
  .tile--5:nth-last-child(2), .tile--6:last-child { grid-column: span 6; }
  .tile--5:nth-last-child(2) .tile__media, .tile--6:last-child .tile__media { aspect-ratio: 3 / 2; }
}

/* --------------------------------------------------------------- project index list */
.pindex { list-style: none; padding: 0; border-bottom: 1px solid var(--rule); }
.pindex__row { border-top: 1px solid var(--rule); }
.pindex__link { display: grid; grid-template-columns: 5rem minmax(0, 1fr) auto; align-items: baseline; gap: 1.5rem; padding: clamp(16px, 1.8vw, 24px) 0; text-decoration: none; transition: opacity .3s; }
.pindex__year, .pindex__meta { font-size: var(--fs-small); color: var(--muted); }
.pindex__title { font-size: clamp(1.375rem, 2.2vw, 2rem); font-weight: 600; letter-spacing: -.02em; transition: transform .4s var(--ease); }
.pindex__meta { text-align: right; }
.pindex__thumb { display: none; }
@media (hover: hover) and (pointer: fine) {
  .pindex:has(.pindex__link:hover) .pindex__link { opacity: .4; }
  .pindex .pindex__link:hover, .pindex .pindex__link:focus-visible { opacity: 1; }
  .pindex__link:hover .pindex__title { transform: translateX(.2em); }
}
@media (max-width: 759px) {
  .pindex__link { grid-template-columns: 34vw minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 16px; row-gap: 6px; align-items: start; min-height: 100px; padding: 14px 0; }
  .pindex__thumb { display: block; grid-column: 1; grid-row: 1 / span 3; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
  .pindex__thumb picture, .pindex__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .pindex__year { grid-column: 2; grid-row: 1; }
  .pindex__title { grid-column: 2; grid-row: 2; font-size: 1.25rem; }
  .pindex__meta { grid-column: 2; grid-row: 3; text-align: left; }
}
.peek { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; width: clamp(220px, 21vw, 360px); opacity: 0; transform: translate3d(-999px, -999px, 0); transition: opacity .25s var(--ease); overflow: hidden; border-radius: var(--radius); box-shadow: 0 12px 40px rgba(32, 33, 31, .18); }
.peek.is-on { opacity: 1; }
.peek img, .peek video { width: 100%; height: 100%; object-fit: cover; }
.peek video { position: absolute; inset: 0; }

/* --------------------------------------------------------------- film reel */
.reel { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(16px, 2.2vw, 32px); }
.reel__item:first-child { grid-column: 1 / -1; }
.reel__link { display: block; text-decoration: none; }
.reel__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--card); }
.reel__media picture, .reel__media img { width: 100%; height: 100%; }
.reel__media img { object-fit: cover; transition: transform .5s var(--ease); }
.reel__vid { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; }
.reel__vid video { width: 100%; height: 100%; object-fit: cover; }
.reel__vid.is-playing { opacity: 1; }
.reel__media--player { aspect-ratio: auto; }
.reel__text { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; padding-top: 14px; }
.reel__title { font-size: clamp(1.125rem, 1vw + .9rem, 1.375rem); font-weight: 600; letter-spacing: -.015em; }
.reel__meta { font-size: var(--fs-small); color: var(--muted); }
@media (hover: hover) { .reel__link:hover img { transform: scale(1.02); } }
@media (max-width: 759px) { .reel { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- feature */
.feature__link { display: block; position: relative; text-decoration: none; }
.feature__media { position: relative; height: min(80svh, 56vw); min-height: 380px; overflow: hidden; background: var(--card); }
.feature__media picture, .feature__media img { width: 100%; height: 100%; }
.feature__media img { object-fit: cover; }
.feature__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(250, 244, 238, .95), rgba(250, 244, 238, 0) 55%); }
.feature__vid { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; z-index: 1; }
.feature__vid video { width: 100%; height: 100%; object-fit: cover; }
.feature__vid.is-playing { opacity: 1; }
.feature__text { position: absolute; inset: auto 0 0 0; z-index: 2; padding-bottom: clamp(24px, 4vw, 56px); max-width: none; }
.feature__title { font-size: clamp(2rem, 4vw, 3.5rem); margin: .2em 0 .3em; }
.feature__sub { font-size: clamp(1.0625rem, 1vw + .9rem, 1.25rem); max-width: 44ch; color: var(--muted); }

/* --------------------------------------------------------------- galleries */
.gal { list-style: none; padding: 0; }
.gal__link { display: block; cursor: zoom-in; overflow: hidden; border-radius: var(--radius); }
.gal__item img { width: 100%; }
.gal__cap { padding-top: 10px; font-size: var(--fs-small); color: var(--muted); }

.gal--editorial { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 32px); row-gap: clamp(32px, 5vw, 72px); padding-inline: var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; align-items: end; }
.gal--editorial .gal__item:nth-child(6n+1) { grid-column: 1 / span 8; }
.gal--editorial .gal__item:nth-child(6n+2) { grid-column: 9 / span 4; }
.gal--editorial .gal__item:nth-child(6n+3) { grid-column: 1 / span 5; align-self: start; }
.gal--editorial .gal__item:nth-child(6n+4) { grid-column: 6 / span 7; align-self: start; }
.gal--editorial .gal__item:nth-child(6n+5) { grid-column: 1 / -1; }
.gal--editorial .gal__item:nth-child(6n) { grid-column: 4 / span 6; }
.gal--editorial .gal__item.is-portrait:nth-child(6n+1) { grid-column: 2 / span 5; }
.gal--editorial .gal__item.is-portrait:nth-child(6n+5) { grid-column: 4 / span 6; }

.gal--masonry { columns: 3 280px; column-gap: clamp(16px, 2.2vw, 32px); padding-inline: var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; }
.gal--masonry .gal__item { break-inside: avoid; margin-bottom: clamp(16px, 2.2vw, 32px); }

.gal--horizontal { display: flex; gap: clamp(12px, 1.6vw, 24px); overflow-x: auto; padding: 0 var(--gutter) 18px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--muted) transparent; overscroll-behavior-x: contain; }
.gal--horizontal .gal__item { flex: 0 0 auto; scroll-snap-align: start; height: clamp(300px, 62vh, 760px); aspect-ratio: var(--ar); max-width: 88vw; }
.gal--horizontal .gal__link, .gal--horizontal picture { height: calc(100% - 30px); }
.gal--horizontal img { height: 100%; width: auto; object-fit: cover; }
@media (max-width: 759px) {
  .gal--editorial .gal__item:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .gal--horizontal .gal__item { height: 58svh; }
}

/* --------------------------------------------------------------- about teaser, clients, awards, quotes */
.about-teaser { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 32px); align-items: center; }
.about-teaser__img { grid-column: 1 / span 5; max-width: 460px; }
.about-teaser__img img { width: 100%; border-radius: var(--radius); }
.about-teaser__text { grid-column: 7 / span 6; display: grid; gap: 18px; justify-items: start; }
.about-teaser--text .about-teaser__text { grid-column: 1 / span 8; }
@media (max-width: 899px) {
  .about-teaser__img, .about-teaser__text, .about-teaser--text .about-teaser__text { grid-column: 1 / -1; }
  .about-teaser__img { max-width: 360px; }
  .about-teaser__text { margin-top: 28px; }
}

.clients { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: clamp(1.125rem, 1.4vw, 1.5rem); font-weight: 500; letter-spacing: -.01em; }
.awards { width: 100%; border-collapse: collapse; }
.awards td { padding: 16px 0; border-top: 1px solid var(--rule); vertical-align: baseline; }
.awards__year { width: 6rem; font-size: var(--fs-small); color: var(--muted); }
.awards__work { color: var(--muted); text-align: right; }
.awards tr:last-child td { border-bottom: 1px solid var(--rule); }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(32px, 4vw, 56px) clamp(16px, 2.2vw, 32px); }
.quote blockquote { font-size: clamp(1.25rem, 1.6vw, 1.5rem); font-weight: 500; line-height: 1.4; letter-spacing: -.01em; }
.quote blockquote p::before { content: "“"; }
.quote blockquote p::after { content: "”"; }
.quote__by { margin-top: 14px; font-size: var(--fs-small); color: var(--muted); }

.contact-band { display: grid; gap: 18px; justify-items: start; }
.contact-band__text { max-width: 46ch; color: var(--muted); }
.contact-band__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 6px; }
.contact-band__email, .contact-band__alt { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 1.0625rem; overflow-wrap: anywhere; text-underline-offset: .25em; }
.social-big { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 2rem; }
.social-big a { font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 600; letter-spacing: -.02em; text-decoration: none; }
@media (hover: hover) { .social-big a:hover { color: var(--accent-ink); } }

.cta { position: relative; padding-block: var(--sec-pad); overflow: hidden; }
.cta__media { position: absolute; inset: 0; }
.cta__media picture, .cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta__media::after { content: ""; position: absolute; inset: 0; background: rgba(250, 244, 238, .78); }
.cta__text { position: relative; display: grid; gap: 18px; justify-items: start; }
.cta__title { font-size: clamp(2rem, 3.6vw, 3.25rem); }
.cta__body { max-width: 46ch; color: var(--muted); }

/* --------------------------------------------------------------- page heads */
.page-head { padding-top: clamp(36px, 6vw, 88px); padding-bottom: clamp(24px, 3.4vw, 44px); }
.filters { display: flex; gap: 8px; margin-top: clamp(20px, 2.6vw, 32px); overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.filters::-webkit-scrollbar { display: none; }
.filters__btn { flex: none; min-height: 44px; padding: 0 18px; border: 1px solid var(--rule); border-radius: 999px; background: transparent; cursor: pointer; font-size: .9375rem; font-weight: 600; color: var(--muted); transition: background-color .2s, color .2s, border-color .2s; }
.filters__n { margin-left: .3em; font-weight: 500; }
.filters__btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
@media (hover: hover) { .filters__btn[aria-pressed="false"]:hover { border-color: var(--ink); color: var(--ink); } }
.filters__empty { margin-top: 28px; color: var(--muted); }
.work-body { padding-bottom: var(--sec-pad); }

.cat-head { position: relative; padding-top: clamp(36px, 6vw, 88px); padding-bottom: clamp(24px, 3.4vw, 44px); }
.cat-head--media { min-height: 52svh; display: flex; align-items: flex-end; padding-bottom: clamp(28px, 4vw, 56px); }
.cat-head__media { position: absolute; inset: 0; }
.cat-head__media picture, .cat-head__media img { width: 100%; height: 100%; object-fit: cover; }
.cat-head__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(250, 244, 238, .96), rgba(250, 244, 238, .35) 70%, rgba(250, 244, 238, .1)); }
.cat-head__vid { position: absolute; inset: 0; opacity: 0; transition: opacity 1s; }
.cat-head__vid video { width: 100%; height: 100%; object-fit: cover; }
.cat-head__vid.is-playing { opacity: 1; }
.cat-head__text { position: relative; }
.subnav { margin-bottom: clamp(24px, 3vw, 40px); }
.subnav ul { display: flex; flex-wrap: wrap; gap: 8px; }
.subnav a { display: flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--rule); border-radius: 999px; font-size: .9375rem; font-weight: 600; text-decoration: none; color: var(--muted); }
.subnav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
@media (hover: hover) { .subnav a:not([aria-current]):hover { border-color: var(--ink); color: var(--ink); } }
.cat-body { padding-bottom: var(--sec-pad); }

/* --------------------------------------------------------------- project page */
.proj__head { padding-top: clamp(28px, 4.4vw, 64px); padding-bottom: clamp(24px, 3vw, 44px); }
.proj__eyebrow { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-bottom: 18px; font-size: var(--fs-small); color: var(--muted); }
.proj__eyebrow a { text-decoration: none; font-weight: 600; }
.proj__back { display: inline-flex; align-items: center; min-height: 44px; margin-right: 10px; }
.proj__title { font-size: clamp(2.25rem, 4.6vw, 4rem); }
.proj__sub { margin-top: 16px; font-size: clamp(1.125rem, 1.4vw, 1.375rem); line-height: 1.45; max-width: 40ch; color: var(--muted); }
.proj__lead { max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.proj__lead img, .proj__lead .vid { width: 100%; max-height: 82svh; border-radius: var(--radius); }
.proj__lead img { object-fit: cover; }
.proj__info { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 32px); padding-block: clamp(40px, 6vw, 88px); }
.proj__info .meta { grid-column: 1 / span 4; }
.proj__desc { grid-column: 6 / span 7; display: grid; gap: 2rem; align-content: start; }
@media (max-width: 899px) { .proj__info .meta, .proj__desc { grid-column: 1 / -1; } .proj__desc { margin-top: 2rem; } }

.meta { display: grid; align-content: start; }
.meta > div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 12px 0; border-top: 1px solid var(--rule); }
.meta > div:last-child { border-bottom: 1px solid var(--rule); }
.meta dt { font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.meta dd { overflow-wrap: anywhere; }
.meta a { text-decoration-color: var(--rule); }
.meta--stack { width: 100%; max-width: 32rem; }

.credits { display: grid; gap: 6px; font-size: 1rem; }
.credits > div { display: grid; grid-template-columns: minmax(7rem, 34%) 1fr; gap: 1rem; }
.credits dt { font-size: var(--fs-small); font-weight: 600; color: var(--muted); }

.seq { display: grid; grid-template-columns: var(--gutter) repeat(12, minmax(0, 1fr)) var(--gutter); column-gap: clamp(10px, 1.8vw, 28px); row-gap: clamp(32px, 5vw, 80px); padding-bottom: var(--sec-pad); align-items: start; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; }
.seq__item { margin: 0; }
.seq__item img, .seq__item .vid { width: 100%; border-radius: var(--radius); }
.seq__link { display: block; cursor: zoom-in; }
.seq__cap { padding: 10px 0 0; font-size: var(--fs-small); color: var(--muted); }
.seq--full { grid-column: 2 / 14; }
.seq--wide { grid-column: 3 / 13; }
.seq--narrow.is-l { grid-column: 3 / 8; }
.seq--narrow.is-r { grid-column: 8 / 13; }
.seq--half.is-l { grid-column: 2 / 8; }
.seq--half.is-r { grid-column: 8 / 14; }
.seq--grid.is-l { grid-column: 2 / 8; }
.seq--grid.is-r { grid-column: 8 / 14; }
.seq--stack { grid-column: 3 / 13; }
.seq__text { grid-column: 1 / -1; display: flex; justify-content: center; }
.seq__text .prose { font-size: clamp(1.125rem, 1.4vw, 1.375rem); line-height: 1.55; }
.seq__item.is-draft { outline: 1px dashed var(--accent); outline-offset: 6px; opacity: .6; }
@media (max-width: 759px) {
  .seq { row-gap: 28px; }
  .seq--full, .seq--wide, .seq--narrow.is-l, .seq--narrow.is-r, .seq--half.is-l, .seq--half.is-r, .seq--stack, .seq--grid.is-l, .seq--grid.is-r { grid-column: 2 / -2; }
  .seq--half.is-l + .seq--half.is-r { margin-top: -12px; }
}

.next { border-top: 1px solid var(--rule); }
.next__link { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(16px, 4vw, 56px); padding-block: clamp(32px, 5vw, 64px); max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); text-decoration: none; }
.next__media { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--card); order: 2; }
.next__media picture, .next__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.next__text { display: grid; gap: 8px; }
.next__label { font-size: var(--fs-small); font-weight: 600; color: var(--accent-ink); }
.next__title { font-size: clamp(1.75rem, 3.4vw, 3rem); }
.next__link:not(:has(.next__media)) { grid-template-columns: 1fr; }
@media (hover: hover) { .next__link:hover img { transform: scale(1.02); } }
@media (max-width: 759px) { .next__link { grid-template-columns: 1fr; } .next__media { order: 0; } }

/* --------------------------------------------------------------- video */
.vid { position: relative; overflow: hidden; }
.vid video { width: 100%; height: 100%; object-fit: cover; background: transparent; }
.vid--embed picture, .vid--embed img { width: 100%; height: 100%; object-fit: cover; }
.vid--embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 14px; background: rgba(32, 33, 31, .12); border: 0; cursor: pointer; color: #fff; font-weight: 600; font-size: .9375rem; transition: background .3s; }
.vid__icon { width: 68px; height: 68px; border-radius: 50%; background: rgba(32, 33, 31, .7); display: grid; place-items: center; }
.vid__icon::before { content: ""; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.vid__label { text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
@media (hover: hover) { .vid__play:hover { background: rgba(32, 33, 31, .26); } }

/* --------------------------------------------------------------- about page */
.about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 32px); padding-top: clamp(32px, 5vw, 72px); padding-bottom: var(--sec-pad); align-items: start; }
.about__portrait { grid-column: 1 / span 5; position: sticky; top: calc(var(--bar-h) + 24px); }
.about__portrait img { width: 100%; border-radius: var(--radius); }
.about__text { grid-column: 7 / span 6; display: grid; gap: 22px; justify-items: start; }
.about__text .eyebrow { margin-bottom: -8px; }
.about__grid:not(:has(.about__portrait)) .about__text { grid-column: 1 / span 9; }
@media (max-width: 899px) {
  .about__portrait, .about__text, .about__grid:not(:has(.about__portrait)) .about__text { grid-column: 1 / -1; position: static; }
  .about__portrait { max-width: 380px; }
  .about__text { margin-top: 28px; }
}

/* --------------------------------------------------------------- contact page */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 32px); padding-top: clamp(32px, 5vw, 72px); padding-bottom: var(--sec-pad); }
.contact__intro { grid-column: 1 / span 5; display: grid; gap: 22px; align-content: start; }
.contact__form { grid-column: 7 / span 6; }
@media (max-width: 899px) { .contact__intro, .contact__form { grid-column: 1 / -1; } .contact__form { margin-top: 36px; } }

.field { display: grid; gap: 8px; margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: var(--fs-small); font-weight: 600; padding: 0; }
.field__opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--radius);
  background: #fff; color: var(--ink); font: inherit; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field [aria-invalid="true"] { border-color: #b3402a; }
.field__err { color: #a4361f; font-size: var(--fs-small); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 999px; font-size: .9375rem; font-weight: 500; background: #fff; transition: background .2s, color .2s, border-color .2s; }
.chip input:checked + span { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
@media (hover: hover) { .chip:hover span { border-color: var(--ink); } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 20px 22px; border: 1px solid var(--rule); border-radius: calc(var(--radius) * 2); background: color-mix(in srgb, var(--sand) 55%, var(--ivory)); margin-bottom: 24px; outline: none; }
.notice__title { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 6px; }
.notice--error { color: #a4361f; font-weight: 600; font-size: .9375rem; border-color: #e3b6aa; }

/* --------------------------------------------------------------- CTA band, error, footer */
.band { border-top: 1px solid var(--rule); background: var(--sand); }
.band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-block: clamp(36px, 5vw, 64px); }
.band__title { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 600; letter-spacing: -.025em; }

.err { padding-top: clamp(56px, 12vh, 140px); padding-bottom: var(--sec-pad); min-height: 60svh; }
.err .page-head__lede { margin-bottom: 28px; }
.err__links { display: flex; flex-wrap: wrap; gap: 12px; }

.foot { padding: clamp(36px, 4.4vw, 64px) 0 max(24px, env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); background: var(--ivory); color: var(--ink); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px; }
.foot__row + .foot__row { margin-top: 24px; }
.foot__name { font-weight: 700; letter-spacing: -.01em; }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 24px; list-style: none; padding: 0; font-size: .9375rem; color: var(--muted); }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
@media (hover: hover) { .foot__links a:hover { color: var(--ink); text-decoration: underline; } }
.foot__legal { font-size: var(--fs-small); color: var(--muted); }

/* --------------------------------------------------------------- lightbox */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(24, 24, 22, .96); color: #f2eee6; display: grid; grid-template-rows: 1fr auto; touch-action: pan-y; }
.lb[hidden] { display: none; }
.lb__stage { position: relative; display: flex; align-items: center; justify-content: center; padding: clamp(56px, 7vh, 80px) clamp(12px, 6vw, 110px) 8px; overflow: hidden; }
.lb__img { max-width: 100%; max-height: calc(100svh - 150px); width: auto; height: auto; object-fit: contain; transition: opacity .3s, transform .45s var(--ease); background-size: cover; }
.lb__img.is-loading { opacity: .35; }
.lb__cap { display: flex; gap: 1.4rem; padding: 14px var(--gutter) max(18px, env(safe-area-inset-bottom)); color: rgba(242, 238, 230, .8); min-height: 52px; font-size: .9375rem; }
.lb__count { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.lb__btn { position: absolute; background: none; border: 0; cursor: pointer; color: #fff; font-size: .9375rem; font-weight: 600; padding: 16px var(--gutter); min-height: 44px; }
.lb__close { top: 0; right: 0; padding-top: max(16px, env(safe-area-inset-top)); }
.lb__prev, .lb__next { top: 64px; bottom: 60px; width: 30%; display: flex; align-items: center; }
.lb__prev { left: 0; justify-content: flex-start; cursor: w-resize; }
.lb__next { right: 0; justify-content: flex-end; cursor: e-resize; }
.lb :focus-visible { outline-color: #fff; }
@media (max-width: 759px) {
  .lb__prev, .lb__next { top: auto; bottom: 0; height: 56px; width: auto; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .lb__cap { padding-right: 160px; }
  .lb__prev { left: auto; right: 72px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .lb__stage { padding: 8px 90px; }
  .lb__img { max-height: calc(100svh - 56px); }
  .lb__prev, .lb__next { top: 48px; bottom: 48px; height: auto; width: 90px; }
  .lb__prev { left: 0; right: auto; }
  .lb__cap { padding-right: var(--gutter); }
}

/* --------------------------------------------------------------- reveal & motion */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .7s var(--ease), transform .8s var(--ease); }
  .js .rv.is-in { opacity: 1; transform: none; }
  .menu:not([hidden]) li { animation: menu-in .5s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
  @keyframes menu-in { from { opacity: 0; transform: translate3d(0, 24%, 0); } }
  .hero__text > * { animation: fade-up .9s var(--ease) both; }
  .hero__text > :nth-child(2) { animation-delay: .06s; }
  .hero__text > :nth-child(3) { animation-delay: .12s; }
  .hero__text > :nth-child(4) { animation-delay: .18s; }
  @keyframes fade-up { from { opacity: 0; transform: translate3d(0, 14px, 0); } }
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* --------------------------------------------------------------- 3D carousel (optional section) */
.sec--carousel-3d { padding-block: 0; overflow-x: clip; }
.c3d__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.c3d__intro { margin-top: .9rem; color: var(--muted); max-width: 44ch; }
.c3d__ctl { display: flex; align-items: center; gap: 10px; }
.c3d__btn { width: 48px; height: 48px; border: 1.5px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; font-size: 1.1rem; transition: background .2s, color .2s; }
.c3d__btn:hover { background: var(--ink); color: var(--ivory); }
.c3d__count { margin-right: 6px; font-size: var(--fs-small); font-variant-numeric: tabular-nums; color: var(--muted); }
.c3d__ring { list-style: none; padding: 0; margin: 0; }
.c3d__link { display: block; text-decoration: none; }
.c3d__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--card); }
.c3d__img picture, .c3d__img img { width: 100%; height: 100%; object-fit: cover; }
.c3d__meta { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding-top: 12px; }
.c3d__title { font-size: 1.125rem; font-weight: 600; letter-spacing: -.015em; }
.c3d__sub { font-size: var(--fs-small); color: var(--muted); }
.c3d__hint { display: none; }
.c3d:not(.is-3d) { padding-block: var(--sec-pad); }
.c3d:not(.is-3d) .c3d__ctl { display: none; }
.c3d:not(.is-3d) .c3d__ring { display: flex; gap: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; padding: clamp(24px, 3vw, 40px) var(--gutter) 12px; }
.c3d:not(.is-3d) .c3d__card { flex: 0 0 min(72vw, 380px); scroll-snap-align: start; }
.c3d.is-3d { height: 240vh; }
.c3d.is-3d .c3d__sticky { position: sticky; top: var(--bar-h); height: calc(100svh - var(--bar-h)); display: flex; flex-direction: column; justify-content: center; gap: clamp(16px, 3vh, 40px); overflow: hidden; }
.c3d.is-3d .c3d__stage { perspective: 1500px; perspective-origin: 50% 40%; height: min(64svh, 620px); display: grid; place-items: center; touch-action: pan-y; cursor: grab; user-select: none; }
.c3d.is-3d .c3d__stage:active { cursor: grabbing; }
.c3d.is-3d .c3d__ring { position: relative; width: clamp(200px, 24vw, 380px); aspect-ratio: 4 / 5.6; transform-style: preserve-3d; will-change: transform; }
.c3d.is-3d .c3d__card { position: absolute; inset: 0; transform-style: preserve-3d; backface-visibility: hidden; -webkit-backface-visibility: hidden; opacity: calc(.2 + var(--f, 1) * .8); }
.c3d.is-3d .c3d__card img { -webkit-user-drag: none; }
.c3d.is-3d .c3d__meta { opacity: calc((var(--f, 1) - .85) * 6.6); }
.c3d.is-3d .c3d__hint { display: block; text-align: center; font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 639px) {
  .c3d.is-3d { height: 210vh; }
  .c3d.is-3d .c3d__ring { width: 58vw; }
  .c3d__head { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------- walking photographer (decorative rail) */
.walker { margin-block: clamp(8px, 2vw, 24px) clamp(20px, 3vw, 36px); }
.sec--photographer-walk { padding-block: clamp(8px, 2vw, 20px) 0; }
.walker__track { position: relative; height: 232px; border-bottom: 1px solid var(--rule); pointer-events: none; }
.walker__track::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 14px); opacity: .35; }
.walker__actor { position: absolute; left: 0; bottom: 0; width: 224px; height: 224px; will-change: transform; }
.walker__flip { position: absolute; inset: 0; transform-origin: 50% 100%; }
.walker__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; pointer-events: none; user-select: none; }
.walker__img[hidden] { display: none; }
.walker__spark { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff7e6; filter: blur(4px); opacity: 0; pointer-events: none; box-shadow: 0 0 14px 4px rgba(255, 240, 210, .9); }
.walker__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 44px; padding-top: 8px; }
.walker__caption { font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.walker__sound { margin-left: auto; min-height: 44px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 999px; background: transparent; font-size: .875rem; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s; }
.walker__sound[hidden] { display: none; }
.walker__sound[aria-pressed="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
@media (hover: hover) { .walker__sound:hover { border-color: var(--ink); } }
/* phones, reduced motion, Save-Data and "motion off": one still image, no animation, no flash, no sound */
.walker.is-static .walker__actor { left: 50%; margin-left: -112px; transform: none !important; }
.walker.is-static .walker__sound, .walker.is-static .walker__spark { display: none; }
@media (max-width: 540px) {
  .walker__sound { margin-left: 0; }
  .walker__track { height: 132px; }
  .walker__actor { width: 110px; height: 132px; }
  .walker.is-static .walker__actor { margin-left: -55px; }
}
/* in the hero: he paces along a ground line under the name and the description */
.walker--hero { --wh: 150px; margin: 22px 0 0; max-width: 36rem; }
.walker--hero .walker__track { height: var(--wh); }
.walker--hero .walker__actor { width: var(--wh); height: var(--wh); }
.walker--hero.is-static .walker__actor { left: 0; margin-left: 0; }
@media (max-width: 540px) { .walker--hero { --wh: 112px; margin-top: 14px; } }
/* walking on the album titles: the title line is the ground; the text always stays above him */
.gridwalk { position: relative; }
.gridwalk__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 44px; margin-bottom: 12px; }
.walker--titles { --wh: 168px; position: absolute; left: 0; right: 0; top: 0; height: 0; z-index: 2; margin: 0; pointer-events: none; }
.walker--titles .walker__track { position: absolute; left: 0; right: 0; bottom: 0; height: var(--wh); border: 0; }
.walker--titles .walker__track::after { display: none; }
.walker--titles .walker__actor { width: var(--wh); height: var(--wh); }
.walker--titles.is-static .walker__actor { left: auto; right: 4%; margin-left: 0; }
.tile__text { position: relative; z-index: 3; }
@media (max-width: 540px) { .walker--titles { --wh: 118px; } }
@media print { .walker { display: none; } }

@media print {
  .bar, .menu, .foot, .lb, .peek, .vid__play, .lang, .motion-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}
