/* paulmorr.is — "Darkroom": a quiet, warm-black gallery that lets the photographs carry the colour.
   Type: Newsreader (display) + Figtree (text). Accent: the Wink camera's apricot, used sparingly. */

/* ---------- Fonts (self-hosted, latin + latin-ext) ---------- */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300 500; font-display: swap; src: url("../fonts/newsreader-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; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300 500; font-display: swap; src: url("../fonts/newsreader-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300 500; font-display: swap; src: url("../fonts/newsreader-italic-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; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300 500; font-display: swap; src: url("../fonts/newsreader-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/figtree-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; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/figtree-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: italic; font-weight: 400 600; font-display: swap; src: url("../fonts/figtree-italic-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; }
/* Metric-matched fallbacks (computed from the font files) so text doesn't jump when the web fonts land */
@font-face { font-family: "Figtree Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans"); size-adjust: 100.31%; ascent-override: 94.71%; descent-override: 24.92%; line-gap-override: 0%; }
@font-face { font-family: "Newsreader Fallback"; src: local("Times New Roman"), local("Times"), local("Liberation Serif"); size-adjust: 106.77%; ascent-override: 68.84%; descent-override: 24.82%; line-gap-override: 0%; }

/* ---------- Tokens ---------- */
:root {
  --bg: #0e0d0c;
  --bg-2: #141311;
  --bg-3: #1b1917;
  --bg-4: #24211e;
  --line: rgba(243, 238, 231, 0.1);
  --line-2: rgba(243, 238, 231, 0.2);
  --text: #f3eee7;
  --text-2: #c8c0b5;
  --text-3: #9b9288;
  --accent: #efa27f;
  --accent-ink: #1b120d;
  --danger: #ff9d8c;
  --ok: #9fd7ab;
  --serif: "Newsreader", "Newsreader Fallback", Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Figtree Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1440px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --header-h: 76px;
  --gap: clamp(6px, 0.75vw, 12px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
}
@media (max-width: 860px) { :root { --header-h: 64px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); scroll-padding-top: calc(var(--header-h) + 1rem); scrollbar-gutter: stable; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text-2);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
html.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
button { font: inherit; color: inherit; }
main { display: block; outline: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: fixed; z-index: 100; left: 1rem; top: 1rem; padding: 0.7rem 1.1rem; border-radius: 999px;
  background: var(--text); color: var(--bg); font-weight: 600; font-size: 0.875rem; transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }
.icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Type ---------- */
.eyebrow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0 0.9rem; margin: 0 0 1.4rem;
  font: 600 0.75rem/1.3 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3);
}
.eyebrow__num { display: inline-flex; align-items: center; gap: 0.9rem; color: var(--accent); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.eyebrow__num::after { content: ""; width: 2.5rem; height: 1px; background: var(--line-2); }
.eyebrow__count { display: inline-flex; align-items: center; gap: 0.9rem; letter-spacing: 0.14em; }
.eyebrow__count::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.eyebrow--on-photo { color: rgba(255, 255, 255, 0.94); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.page-title {
  font: 300 clamp(3rem, 7.2vw, 6.75rem)/0.98 var(--serif); letter-spacing: -0.025em; color: var(--text);
  text-wrap: balance; max-width: 16ch;
}
.section-title { font: 300 clamp(2.25rem, 4.4vw, 3.9rem)/1.04 var(--serif); letter-spacing: -0.018em; color: var(--text); text-wrap: balance; }
.amp { font-style: italic; font-weight: 300; color: var(--accent); padding-inline: 0.04em; }
.page-lede, .section-lede { max-width: 38rem; margin-top: 1.15rem; font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.prose p { max-width: 36rem; text-wrap: pretty; }
.prose p + p { margin-top: 1.15em; }
.prose--long { font-size: 1.125rem; line-height: 1.75; }
.empty { padding: 3rem 0; color: var(--text-3); font-size: 1.0625rem; }
.empty a { color: var(--text); border-bottom: 1px solid var(--line-2); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem; min-height: 3.125rem; padding: 0 1.6rem;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer; white-space: nowrap;
  font: 600 0.9375rem/1 var(--sans); letter-spacing: 0.01em;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn .icon { width: 1.05rem; height: 1.05rem; stroke-width: 1.8; transition: transform 0.35s var(--ease); }
.btn--solid { background: var(--text); color: #17140f; }
.btn--ghost, .btn--outline { border-color: rgba(243, 238, 231, 0.32); color: var(--text); }
@media (hover: hover) {
  .btn:hover .icon { transform: translateX(3px); }
  .btn--solid:hover { background: #fff; }
  .btn--ghost:hover, .btn--outline:hover { border-color: var(--text); background: rgba(243, 238, 231, 0.06); }
}
.btn[disabled] { opacity: 0.6; cursor: progress; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0; white-space: nowrap;
  font: 600 0.8125rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text);
  border-bottom: 1px solid var(--line-2); transition: border-color 0.25s, color 0.25s;
}
.link-arrow .icon { width: 1rem; height: 1rem; stroke-width: 1.8; transition: transform 0.35s var(--ease); }
@media (hover: hover) { .link-arrow:hover { border-color: var(--accent); } .link-arrow:hover .icon { transform: translateX(3px); } }
.icon-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid transparent; background: none; color: var(--text); cursor: pointer; transition: border-color 0.25s, background-color 0.25s, color 0.25s; }
.icon-btn--line { border-color: var(--line-2); }
@media (hover: hover) { .icon-btn--line:hover { border-color: var(--text); background: rgba(243, 238, 231, 0.05); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: rgba(14, 13, 12, 0.88); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.3) blur(16px); backdrop-filter: saturate(1.3) blur(16px);
  transition: background-color 0.4s, border-color 0.4s;
}
.site-header--overlay { position: fixed; inset: 0 0 auto 0; background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header--overlay.is-scrolled { background: rgba(14, 13, 12, 0.88); border-color: var(--line); -webkit-backdrop-filter: saturate(1.3) blur(16px); backdrop-filter: saturate(1.3) blur(16px); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.logo { display: inline-flex; align-items: center; color: var(--text); flex: none; }
.logo__svg { height: 30px; width: auto; }
@media (max-width: 860px) { .logo__svg { height: 26px; } }
.nav__list { display: flex; align-items: center; gap: clamp(1.4rem, 2.6vw, 2.6rem); list-style: none; margin: 0; padding: 0; }
.nav__link { position: relative; display: inline-block; padding: 0.55rem 0; font: 500 0.9375rem/1 var(--sans); letter-spacing: 0.01em; color: var(--text-2); transition: color 0.2s; }
.site-header--overlay:not(.is-scrolled) .nav__link { color: rgba(255, 255, 255, 0.86); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.nav__link[aria-current="page"], .site-header--overlay:not(.is-scrolled) .nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -0.3rem; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
@media (hover: hover) { .nav__link:hover, .site-header--overlay:not(.is-scrolled) .nav__link:hover { color: #fff; } }
.menu-btn { display: none; align-items: center; gap: 0.7rem; height: 2.75rem; padding: 0 0.25rem 0 0.9rem; margin-right: -0.25rem; border: 0; border-radius: 999px; background: none; cursor: pointer; color: var(--text); font: 600 0.75rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; }
.menu-btn__icon { display: grid; gap: 6px; width: 22px; }
.menu-btn__icon span { display: block; height: 1.5px; border-radius: 2px; background: currentColor; }
.menu-btn__icon span:last-child { width: 14px; justify-self: end; }
@media (max-width: 860px) { .nav { display: none; } .menu-btn { display: inline-flex; } }

/* Phone menu: a full-screen modal dialog */
.menu {
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--bg); color: var(--text); overflow: visible;
}
.menu::backdrop { background: rgba(0, 0, 0, 0.6); }
.menu[open] { animation: menu-in 0.35s var(--ease); }
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }
.menu__inner { height: 100%; display: flex; flex-direction: column; padding: 0 var(--gutter) max(2rem, env(safe-area-inset-bottom)); overflow-y: auto; outline: none; }
.menu__top { flex: none; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.menu__close { margin-right: -0.6rem; }
.menu__close .icon { width: 1.5rem; height: 1.5rem; }
.menu__list { list-style: none; margin: clamp(1.5rem, 7vh, 4rem) 0 2rem; padding: 0; display: grid; gap: 0.2rem; }
.menu__link { display: flex; align-items: baseline; gap: 1.1rem; padding: 0.4rem 0; font: 300 clamp(1.6rem, min(11vw, 8.5vh), 3.25rem)/1.12 var(--serif); letter-spacing: -0.015em; color: var(--text); }
.menu__link[aria-current="page"] { color: var(--accent); }
.menu__num { min-width: 1.6rem; font: 600 0.75rem/1 var(--sans); letter-spacing: 0.12em; color: var(--text-3); }
.menu__social { display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; list-style: none; margin: auto 0 0; padding: 1.75rem 0 0; border-top: 1px solid var(--line); font-weight: 500; color: var(--text-2); }

@media (max-height: 520px) {
  .menu__list { margin: 0.25rem 0 1rem; gap: 0; }
  .menu__link { padding: 0.15rem 0; }
  .menu__social { padding-top: 1rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; display: grid; grid-template-rows: 1fr auto; min-height: max(min(580px, 100svh), min(100svh, 1100px)); color: #fff; background: var(--bg-2); overflow: hidden; }
.hero--plain { min-height: max(520px, 78svh); background: radial-gradient(120% 90% at 20% 0%, #2a211b 0%, var(--bg) 60%); }
.hero__media { position: absolute; inset: 0; z-index: -2; background: var(--c, var(--bg-2)); }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) { .hero__img { animation: hero-in 1.8s var(--ease) both; } }
@keyframes hero-in { from { opacity: 0; transform: scale(1.035); } to { opacity: 1; transform: none; } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  /* measured: keeps the eyebrow, title and lede at WCAG AA over every landscape-shaped photo (tools/hero-contrast.mjs) */
  background:
    linear-gradient(180deg, rgba(10, 9, 8, 0.55) 0%, rgba(10, 9, 8, 0) 22%),
    linear-gradient(0deg, rgba(10, 9, 8, 0.9) 0%, rgba(10, 9, 8, 0.66) 42%, rgba(10, 9, 8, 0.22) 68%, rgba(10, 9, 8, 0) 84%),
    linear-gradient(90deg, rgba(10, 9, 8, 0.5) 0%, rgba(10, 9, 8, 0.12) 50%, rgba(10, 9, 8, 0) 70%);
}
@media (max-aspect-ratio: 4/5) {   /* tall screens: the text block sits mid-photo, so the shade reaches higher */
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(10, 9, 8, 0.55) 0%, rgba(10, 9, 8, 0) 18%),
      linear-gradient(0deg, rgba(10, 9, 8, 0.94) 0%, rgba(10, 9, 8, 0.8) 45%, rgba(10, 9, 8, 0.45) 66%, rgba(10, 9, 8, 0) 86%);
  }
}
.hero__body { align-self: end; padding-top: calc(var(--header-h) + 3rem); padding-bottom: clamp(2.25rem, 6vh, 4.25rem); }
.hero__title { font: 300 clamp(3rem, min(9.2vw, 14.5vh), 8.75rem)/0.92 var(--serif); letter-spacing: -0.03em; max-width: 11ch; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4); }
.hero__lede { max-width: 33rem; margin-top: 1.5rem; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.55; color: rgba(255, 255, 255, 0.92); text-wrap: pretty; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.25rem; }
.hero .btn--ghost { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.hero__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1.6rem; }
.hero__foot::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); max-width: calc(var(--wrap) - 2 * var(--gutter)); margin-inline: auto; transform: translateY(-1.15rem); height: 1px; background: rgba(255, 255, 255, 0.2); }
.hero__foot { position: relative; }
.hero__credit { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.7); letter-spacing: 0.02em; }
.hero__credit-title { font: italic 400 1.0625rem/1 var(--serif); color: #fff; }
.hero__credit-sep { margin: 0 0.35rem; opacity: 0.6; }
.hero__scroll { margin-left: auto; display: inline-flex; align-items: center; gap: 0.8rem; padding: 0.5rem 0; font: 600 0.6875rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); }
.hero__scroll-line { width: 2.75rem; height: 1px; background: currentColor; }
@media (hover: hover) { .hero__scroll:hover { color: #fff; } }
@media (max-width: 640px) { .hero__credit { display: none; } .hero__actions .btn { flex: 1 1 auto; } }
@media (max-height: 520px) {   /* phones on their side: everything up to the buttons fits the first screen */
  .hero__body { padding-top: calc(var(--header-h) + 0.5rem); padding-bottom: 1rem; }
  .hero .eyebrow { margin-bottom: 0.6rem; }
  .hero__lede { margin-top: 0.7rem; }
  .hero__actions { margin-top: 1rem; }
  .hero__actions .btn { min-height: 2.75rem; flex: 0 1 auto; }
  .hero__foot { padding-bottom: 0.75rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(5rem, 10vw, 9rem); }
.section--follow { padding-top: 0; }
.section--gallery { padding-top: 0; }
.section--about-page { padding-top: clamp(1.5rem, 4vw, 3.5rem); }
.section--band { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1.75rem 3rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head__text { max-width: 44rem; }
.section-cta { display: flex; justify-content: center; margin-top: clamp(3rem, 6vw, 4.5rem); }
.page-head { padding-top: clamp(4rem, 9vw, 7.5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
@media (max-height: 800px) {   /* laptops and phones on their side: get to the photos sooner */
  .page-head { padding-top: clamp(2.25rem, 7vh, 4.5rem); padding-bottom: clamp(1.75rem, 4vh, 2.75rem); }
  .page-title { font-size: clamp(2.5rem, min(7.2vw, 12vh), 6.75rem); }
  .page-lede { margin-top: 0.75rem; }
  .filters { margin-top: 1.5rem; }
}

/* ---------- Justified gallery ---------- */
.jg { --row: 210px; display: flex; flex-wrap: wrap; gap: var(--gap); margin: 0; padding: 0; list-style: none; }
@media (min-width: 641px) { .jg { --row: 260px; } }
@media (min-width: 1101px) { .jg { --row: 340px; } }
.jg::after { content: ""; flex-grow: 1000000000; }   /* the last row keeps its natural height */
.jg__item {
  position: relative; min-width: 0; overflow: hidden; border-radius: 2px;
  flex-grow: calc(var(--ar) * 1000); flex-basis: calc(var(--ar) * var(--row)); aspect-ratio: var(--ar);
  background: var(--c, var(--bg-3)) var(--lqip, none) center / cover no-repeat;
}
.jg__item[hidden] { display: none; }
.jg.is-laid .jg__item { flex: none; width: var(--w); height: var(--h); aspect-ratio: auto; }
.js .jg:not(.is-laid) { opacity: 0; animation: pm-show 0s 1.2s forwards; }   /* never stays hidden if the script fails */
.jg.is-laid { opacity: 1; transition: opacity 0.4s; }
@keyframes pm-show { to { opacity: 1; } }
.tile { position: absolute; inset: 0; display: block; overflow: hidden; cursor: zoom-in; border-radius: inherit; }
.tile:focus-visible { outline-offset: -3px; }
.tile__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity 0.7s ease; }
.js .tile__img:not(.is-loaded) { opacity: 0; animation: pm-show 0s 4s forwards; }
.tile__cap {
  position: absolute; inset: auto 0 0 0; display: grid; gap: 0.3rem; padding: 3rem 1.15rem 1rem;
  background: linear-gradient(to top, rgba(8, 7, 6, 0.78), rgba(8, 7, 6, 0)); color: #fff;
  opacity: 0; transform: translateY(8px); transition: opacity 0.35s, transform 0.5s var(--ease); pointer-events: none;
}
.tile__title { font: 400 1.25rem/1.15 var(--serif); letter-spacing: -0.005em; }
.tile__meta { font: 600 0.6875rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.tile__meta:empty { display: none; }
@media (hover: hover) {
  .tile:hover .tile__img { transform: scale(1.025); }
  .tile:hover .tile__cap { opacity: 1; transform: none; }
}
.tile:focus-visible .tile__cap { opacity: 1; transform: none; }

/* A single photo: shown large, with its caption set beside it */
.spotlight { display: grid; grid-template-columns: auto minmax(14rem, 1fr); align-items: end; gap: clamp(2rem, 5vw, 5rem); }
.spotlight .jg { display: block; }
.spotlight .jg::after { content: none; }
.spotlight .jg__item, .spotlight .jg.is-laid .jg__item { width: min(calc(var(--ar) * min(36rem, 72vh)), 60vw); max-width: 100%; height: auto; aspect-ratio: var(--ar); }
.spotlight__cap { padding-bottom: 0.5rem; max-width: 26rem; }
.spotlight__kicker { font: 600 0.75rem/1.3 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); }
.spotlight__title { margin-top: 0.9rem; font: italic 300 clamp(2rem, 3.4vw, 3rem)/1.05 var(--serif); color: var(--text); }
.spotlight__meta { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.9rem; color: var(--text-2); }
.spotlight__meta .icon { width: 1.1rem; height: 1.1rem; color: var(--accent); }
@media (max-width: 700px) { .spotlight { grid-template-columns: minmax(0, 1fr); } .spotlight .jg__item, .spotlight .jg.is-laid .jg__item { width: min(100%, calc(var(--ar) * 70vh)); } }

/* ---------- Filters (portfolio) ---------- */
.filters { margin-top: clamp(2.25rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.filters__list { display: flex; gap: clamp(1.4rem, 3vw, 2.4rem); margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.filters__list::-webkit-scrollbar { display: none; }
.filter { display: inline-flex; align-items: baseline; gap: 0.5rem; padding: 0.95rem 0 0.85rem; margin-bottom: -1px; border-bottom: 2px solid transparent; white-space: nowrap; font: 500 0.9375rem/1 var(--sans); color: var(--text-3); transition: color 0.2s, border-color 0.2s; }
.filter__n { font-size: 0.75rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.filter[aria-current="true"] { color: var(--text); border-color: var(--accent); }
@media (hover: hover) { .filter:hover { color: var(--text); } }
.filter:focus-visible { outline-offset: -2px; }

/* ---------- Split (about) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: clamp(2.75rem, 7vw, 7.5rem); }
.split--about { align-items: start; }
.split--solo { grid-template-columns: minmax(0, 1fr); }
.split__text .section-title { margin-bottom: 1.6rem; }
.split__text .link-arrow { margin-top: 2.25rem; }
.split__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.5rem; }
.portrait { position: relative; margin: 0 1.5rem 1.5rem 0; }
.portrait img { position: relative; z-index: 1; width: 100%; height: auto; border-radius: 2px; background: var(--c, var(--bg-3)); }
.portrait::after { content: ""; position: absolute; inset: 1.5rem -1.5rem -1.5rem 1.5rem; border: 1px solid var(--line-2); border-radius: 2px; }
.split--about .portrait { position: sticky; top: calc(var(--header-h) + 2rem); }
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split .portrait { max-width: 30rem; }
  .split--about .portrait { position: relative; top: 0; }
}
.about-more { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.about-more li { background: var(--c); border-radius: 2px; overflow: hidden; }
.about-more img { width: 100%; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.75rem, 7vw, 7.5rem); align-items: start; }
.contact__links { display: grid; gap: 0.9rem; margin: 2.25rem 0 0; padding: 0; list-style: none; }
.contact__links a { display: inline-flex; align-items: center; gap: 0.85rem; color: var(--text); font-weight: 500; transition: color 0.2s; }
.contact__links .icon { width: 1.35rem; height: 1.35rem; color: var(--accent); }
@media (hover: hover) { .contact__links a:hover { color: var(--accent); } }
.contact__links--about { margin-top: 2.25rem; }
@media (max-width: 960px) { .contact { grid-template-columns: minmax(0, 1fr); } }

.form { position: relative; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1.25rem; }
.field--full { grid-column: 1 / -1; }
.field__label { display: block; margin-bottom: 0.6rem; font: 600 0.75rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.field__input {
  display: block; width: 100%; min-height: 3.25rem; padding: 0.85rem 1rem; border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--bg-3); color: var(--text); font: 400 1rem/1.5 var(--sans);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s; -webkit-appearance: none; appearance: none;
}
.field__input--area { min-height: 11rem; resize: vertical; }
@media (hover: hover) { .field__input:hover { border-color: rgba(243, 238, 231, 0.32); } }
.field__input:focus { outline: none; border-color: var(--accent); background: var(--bg-4); box-shadow: 0 0 0 3px rgba(239, 162, 127, 0.2); }
.field.is-invalid .field__input { border-color: var(--danger); }
.field__error { margin-top: 0.5rem; font-size: 0.8125rem; line-height: 1.4; color: var(--danger); }
.field__error:empty { display: none; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 2rem; }
.form__note { font-size: 0.8125rem; color: var(--text-3); }
.form__status:empty { display: none; }
.form__status { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.75rem; padding: 1rem 1.25rem; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-3); color: var(--text); font-size: 0.9375rem; line-height: 1.5; }
.form__status img { width: 2.5rem; height: 2.5rem; flex: none; }
.form__status.is-ok { border-color: rgba(159, 215, 171, 0.45); }
.form__status.is-error { border-color: rgba(255, 157, 140, 0.5); }
.form__status.is-info { border-color: rgba(239, 162, 127, 0.5); }
/* Turnstile: invisible unless Cloudflare asks for a click, then it sits just above the Send button */
.form__check { max-width: 100%; }
.form__check.is-shown { margin-top: 1.75rem; }
.form__nojs { margin-top: 1.75rem; color: var(--text-2); font-size: 0.875rem; }
.form__note a { color: inherit; text-decoration: underline; text-decoration-color: rgba(243, 238, 231, 0.35); text-underline-offset: 0.2em; }
@media (hover: hover) { .form__note a:hover { color: var(--text); text-decoration-color: currentColor; } }
.form__status strong { font-weight: 600; }
@media (max-width: 560px) { .form__grid { grid-template-columns: minmax(0, 1fr); } .form__foot .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; align-items: start; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.logo--footer .logo__svg { height: 34px; }
.site-footer__tag { margin-top: 1.1rem; color: var(--text-3); }
.site-footer__nav ul { display: grid; grid-template-columns: repeat(2, max-content); gap: 0.7rem 3rem; margin: 0; padding: 0; list-style: none; }
.site-footer__nav a { color: var(--text-2); transition: color 0.2s; }
@media (hover: hover) { .site-footer__nav a:hover { color: var(--text); } }
.site-footer__social { display: flex; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem 2rem; padding-top: 1.75rem; font-size: 0.8125rem; color: var(--text-3); }
.to-top { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--text-2); }
.to-top .icon { width: 1rem; height: 1rem; }
@media (hover: hover) { .to-top:hover { color: var(--text); } }
@media (max-width: 760px) { .site-footer__top { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Lightbox ---------- */
.lb {
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: #080706; color: var(--text); overflow: hidden; outline: none;
}
.lb::backdrop { background: rgba(0, 0, 0, 0.7); }
.lb[open] { animation: lb-in 0.3s ease; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb__stage { position: absolute; inset: 4.25rem clamp(1rem, 6vw, 6.5rem) 5.75rem; margin: 0; display: grid; place-items: center; touch-action: pinch-zoom; }
.lb__img { display: block; max-width: none; border-radius: 2px; background: var(--c, #1a1817) var(--lqip, none) center / cover no-repeat; transition: opacity 0.3s ease; user-select: none; -webkit-user-select: none; }
.lb__img.is-swapping { opacity: 0; }
.lb__cap { position: fixed; left: clamp(1rem, 6vw, 6.5rem); right: clamp(1rem, 6vw, 6.5rem); bottom: 1.6rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.35rem 1rem; }
.lb__title { font: italic 400 1.375rem/1.2 var(--serif); color: #fff; }
.lb__meta { font: 600 0.6875rem/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.lb__count { position: fixed; top: 1.55rem; left: clamp(1rem, 6vw, 6.5rem); font: 600 0.75rem/1 var(--sans); letter-spacing: 0.16em; color: var(--text-3); font-variant-numeric: tabular-nums; }
.lb__btn { position: fixed; display: grid; place-items: center; width: 3rem; height: 3rem; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(14, 13, 12, 0.6); color: var(--text); cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
@media (hover: hover) { .lb__btn:hover { border-color: var(--text); background: rgba(243, 238, 231, 0.08); } }
.lb__btn .icon { width: 1.25rem; height: 1.25rem; }
.lb__close { top: 0.85rem; right: clamp(0.75rem, 2vw, 1.5rem); }
.lb__nav { top: 50%; margin-top: -1.5rem; }
.lb__nav--prev { left: clamp(0.5rem, 1.6vw, 1.75rem); }
.lb__nav--next { right: clamp(0.5rem, 1.6vw, 1.75rem); }
.lb__nav[hidden] { display: none; }
@media (max-width: 700px) {
  .lb__stage { inset: 3.75rem 0 7.5rem; }
  .lb__nav { top: auto; bottom: 1.1rem; margin: 0; }
  .lb__nav--prev { left: auto; right: 4.4rem; }
  .lb__nav--next { right: 1rem; }
  .lb__cap { left: 1rem; right: 9rem; bottom: 1.45rem; flex-direction: column; }
  .lb__count { left: 1rem; }
}

@media (max-height: 520px) {
  .lb__stage { inset: 0.5rem 4.5rem; }
  .lb__count { top: 0.7rem; left: 1rem; }
  .lb__close { top: 0.4rem; right: 0.5rem; }
  .lb__nav { top: 50%; bottom: auto; margin-top: -1.5rem; }
  .lb__nav--prev { left: 0.5rem; right: auto; }
  .lb__nav--next { right: 0.5rem; }
  .lb__cap { left: 4.75rem; right: 4.75rem; bottom: 0.9rem; flex-direction: row; text-shadow: 0 1px 10px #000; }
}

/* ---------- 404 ---------- */
.notfound { display: grid; min-height: calc(100svh - var(--header-h) - 14rem); place-items: center; padding-block: 5rem; text-align: center; }
.notfound__inner { display: grid; justify-items: center; }
.notfound__wink { width: 7.5rem; height: auto; margin-bottom: 2.25rem; }
.notfound .page-lede { margin-inline: auto; }
.notfound .split__actions { justify-content: center; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
}
