/* =================================================================
   LEVAN DACKSON — PHOTOGRAPHY PORTFOLIO
   Design system: "Contact Sheet"
   A darkroom duotone (ink/paper) with an amber + verdigris signal,
   built around the vernacular of film photography: contact sheets,
   viewfinder brackets, frame IDs, grain.
   ================================================================= */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/fraunces-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic; font-weight: 400; font-display: swap;
  src: url("/fonts/fraunces-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/fraunces-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic; font-weight: 500; font-display: swap;
  src: url("/fonts/fraunces-latin-500-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/fraunces-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic; font-weight: 600; font-display: swap;
  src: url("/fonts/fraunces-latin-600-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/inter-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
svg { display: block; }

/* ---------- Tokens ---------- */
:root {
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  /* Night print (default) — aged darkroom: bistre, brass, oxblood */
  --ink: #1a130f;
  --ink-soft: #241b15;
  --ink-lift: #2e231a;
  --paper: #efe3cb;
  --paper-dim: #a89173;
  --gold: #c39a56;
  --gold-soft: #d8b678;
  --wine: #8a3630;
  --sage: #62775f;
  --line: #3a2d20;
  --line-soft: #29200c;

  --bg: var(--ink);
  --bg-soft: var(--ink-soft);
  --bg-lift: var(--ink-lift);
  --fg: var(--paper);
  --fg-dim: var(--paper-dim);
  --accent: var(--gold);
  --accent-soft: var(--gold-soft);
  --accent-2: var(--wine);
  --border: var(--line);
  --border-soft: var(--line-soft);
  --grain-opacity: 0.055;
  --scrim: 17, 12, 9;

  --ease: cubic-bezier(.16,.8,.3,1);
  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);

  --container: 1400px;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --radius-pill: 999px;
  --radius-tag: 3px;

  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #ebdec3;
  --bg-soft: #e0d0ab;
  --bg-lift: #d5c298;
  --fg: #221809;
  --fg-dim: #6d5a3c;
  --accent: #8a6423;
  --accent-soft: #6d4d19;
  --accent-2: #6b2620;
  --border: #cfba8d;
  --border-soft: #ddcda3;
  --grain-opacity: 0.045;
  --scrim: 235, 222, 195;
  color-scheme: light;
}

* { scrollbar-color: var(--fg-dim) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
::selection { background: var(--accent); color: var(--ink); }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background .5s var(--ease), color .5s var(--ease);
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; height: 100vh; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }
em, .italic { font-style: italic; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--fg-dim); line-height: 1.6; max-width: 42ch; }

.mono { font-family: var(--font-mono); }

/* Skip link */
.skip-link {
  position: fixed; top: -100%; left: 1rem; z-index: 1000;
  background: var(--accent); color: var(--ink);
  padding: .75em 1.25em; border-radius: .3em;
  font-family: var(--font-mono); font-size: .8rem;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed; inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="180" height="180"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%25" height="100%25" filter="url(%23n)"/></svg>');
  background-size: 180px 180px;
}

/* ---------- Viewfinder corner brackets (signature motif) ----------
   Implemented as a ::after overlay (not a background-image on the
   host element) so it always paints above any child <img>/<video>
   regardless of DOM content. */
.vf {
  --vf-size: 20px;
  --vf-thick: 1.5px;
  --vf-color: var(--accent);
  --vf-inset: 0px;
  position: relative;
}
.vf::after {
  content: "";
  position: absolute;
  inset: var(--vf-inset);
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s var(--ease);
  background-image:
    linear-gradient(var(--vf-color), var(--vf-color)), linear-gradient(var(--vf-color), var(--vf-color)),
    linear-gradient(var(--vf-color), var(--vf-color)), linear-gradient(var(--vf-color), var(--vf-color)),
    linear-gradient(var(--vf-color), var(--vf-color)), linear-gradient(var(--vf-color), var(--vf-color)),
    linear-gradient(var(--vf-color), var(--vf-color)), linear-gradient(var(--vf-color), var(--vf-color));
  background-repeat: no-repeat;
  background-size:
    var(--vf-thick) var(--vf-size), var(--vf-size) var(--vf-thick),
    var(--vf-thick) var(--vf-size), var(--vf-size) var(--vf-thick),
    var(--vf-thick) var(--vf-size), var(--vf-size) var(--vf-thick),
    var(--vf-thick) var(--vf-size), var(--vf-size) var(--vf-thick);
  background-position:
    0 0, 0 0,
    100% 0, 100% 0,
    0 100%, 0 100%,
    100% 100%, 100% 100%;
}
.vf.vf-always::after { opacity: 1; }
.vf.vf-fade.is-active::after { opacity: 1; }
.vf:hover::after, .vf:focus-within::after { opacity: 1; }

/* =================================================================
   HEADER / NAV
   ================================================================= */
.site-header {
  position: fixed; inset-inline: 0; top: 0;
  z-index: 200;
  padding: clamp(.9rem, 2vw, 1.4rem) var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  transition: background .4s var(--ease), border-color .4s var(--ease), padding .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(var(--scrim), .82);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--border-soft);
}

.logo {
  font-family: var(--font-mono);
  font-size: .95rem;
  letter-spacing: .06em;
  display: flex; align-items: center; gap: .6em;
  flex: none;
  text-shadow: 0 1px 10px rgba(0,0,0,.4);
}
.logo .mark {
  width: 30px; height: 30px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1rem;
  position: relative;
}
.logo .mark::after {
  content: "";
  position: absolute; inset: 5px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: .6;
}

.nav-primary { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 2.75rem); }
.nav-links { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.25rem); }
.nav-links a {
  font-size: .88rem;
  letter-spacing: .02em;
  position: relative;
  padding-bottom: 2px;
  text-shadow: 0 1px 10px rgba(0,0,0,.4);
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: currentColor;
  transition: right .35s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }

.nav-utils { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
  flex: none;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,.35));
}
.icon-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.icon-btn svg { width: 17px; height: 17px; }

.theme-toggle .iris-blade { transition: r .45s var(--ease), fill .45s var(--ease); }
.theme-toggle .iris-ring { stroke: currentColor; }

.eq-bars { display: flex; align-items: flex-end; gap: 2.5px; height: 14px; }
.eq-bars span { width: 2.5px; background: currentColor; border-radius: 1px; height: 4px; transition: height .2s var(--ease); }
.sound-toggle.is-playing .eq-bars span { animation: eq 1.1s ease-in-out infinite; }
.sound-toggle.is-playing .eq-bars span:nth-child(1) { animation-delay: -.9s; }
.sound-toggle.is-playing .eq-bars span:nth-child(2) { animation-delay: -.5s; }
.sound-toggle.is-playing .eq-bars span:nth-child(3) { animation-delay: -1.3s; }
@keyframes eq {
  0%, 100% { height: 3px; }
  50% { height: 13px; }
}

.menu-toggle { display: none; }

/* Mobile nav overlay */
.mobile-nav {
  position: fixed; inset: 0; z-index: 300;
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: clamp(1.25rem,4vw,2rem);
  transform: translateY(-100%);
  transition: transform .55s var(--ease-in-out);
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; }
.mobile-nav-links { margin-top: auto; margin-bottom: auto; display: flex; flex-direction: column; gap: .3em; }
.mobile-nav-links a { font-family: var(--font-display); font-size: clamp(2.5rem,10vw,4rem); font-style: italic; color: var(--fg-dim); transition: color .3s var(--ease); }
.mobile-nav-links a:hover { color: var(--fg); }
.mobile-nav-foot { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .78rem; color: var(--fg-dim); letter-spacing: .05em; }

/* =================================================================
   HERO
   ================================================================= */
.hero {
  position: relative;
}
.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  --vf-inset: clamp(1rem, 3vw, 2rem);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(26,19,15,.7) 0%, rgba(26,19,15,.22) 30%, rgba(26,19,15,.35) 68%, rgba(26,19,15,.92) 100%);
}
[data-theme="light"] .hero-scrim {
  background:
    linear-gradient(180deg, rgba(26,19,15,.45) 0%, rgba(26,19,15,.1) 30%, rgba(26,19,15,.3) 68%, rgba(28,20,14,.88) 100%);
}

.hero-content {
  position: absolute; inset-inline: 0; top: 0; z-index: 2;
  padding-top: clamp(6rem, 16vh, 10rem);
  color: var(--paper);
}
.hero-eyebrow {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(239,227,203,.7);
  display: block; margin-bottom: 1.1em;
}
.hero-title {
  font-size: clamp(3.4rem, 12vw, 9.5rem);
  line-height: .92;
  letter-spacing: -0.015em;
  color: var(--paper);
}
.reveal-line { display: block; overflow: hidden; padding-bottom: .05em; }
.reveal-word {
  display: inline-block;
  transform: translateY(112%);
}
body.gate-done .reveal-word {
  animation: revealUp .95s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + .15s);
}
@keyframes revealUp { to { transform: translateY(0); } }

.hero-foot {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding-block: clamp(1.5rem, 4vh, 2.5rem);
  color: var(--paper);
}
.hero-meta { display: flex; gap: .75em; align-items: center; font-size: .9rem; color: rgba(239,227,203,.78); }
.hero-meta .dot { color: var(--accent); }

.scroll-cue {
  display: inline-flex; align-items: center; gap: .8em;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(239,227,203,.75);
}
.scroll-cue .line { width: 1px; height: 34px; background: rgba(239,227,203,.35); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--accent);
  animation: scrollLine 1.8s var(--ease-in-out) infinite;
}
@keyframes scrollLine { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

/* =================================================================
   REVEAL ON SCROLL
   ================================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
[data-reveal].is-in { opacity: 1; transform: translateY(0); }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 80ms); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .reveal-word { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* =================================================================
   SECTIONS — general
   ================================================================= */
.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section-tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border);
}
.section-head .heading-block { max-width: 62ch; }
.section-title {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin-top: .3em;
}
.section-tagline { color: var(--fg-dim); margin-top: .6em; font-size: clamp(1rem,1.6vw,1.15rem); max-width: 46ch; }
.section-count { font-family: var(--font-mono); font-size: .8rem; color: var(--fg-dim); letter-spacing: .04em; white-space: nowrap; padding-bottom: .3em; }

.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .9em 1.5em;
  border: 1px solid var(--border);
  border-radius: var(--radius-tag);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); transform: translateY(-2px); }
.btn-solid { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn-solid:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn svg { width: 13px; height: 13px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translate(2px,-2px); }

/* =================================================================
   INTRO / STATEMENT
   ================================================================= */
.statement {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1.22;
  max-width: 20ch;
}
.statement em { color: var(--accent); }
.statement-row { display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap; align-items: flex-start; }
.statement-tags {
  display: flex; flex-wrap: wrap; gap: .6em;
  font-family: var(--font-mono); font-size: .78rem; color: var(--fg-dim);
  margin-top: 2.2rem;
}
.statement-tags span { border: 1px solid var(--border); border-radius: var(--radius-tag); padding: .5em 1em; }
.statement-avail { text-align: right; font-size: .85rem; color: var(--fg-dim); max-width: 22ch; padding-top: .4em; }
.statement-avail .dot-live { display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--accent-2); margin-right:.6em; box-shadow:0 0 0 3px color-mix(in srgb, var(--accent-2) 25%, transparent); }

/* =================================================================
   GALLERY / FRAMES (contact-sheet grid)
   ================================================================= */
.frame {
  position: relative;
  break-inside: avoid;
  cursor: pointer;
  overflow: hidden;
  background: var(--bg-soft);
}
.frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease-out), filter .6s var(--ease);
  filter: saturate(.94) contrast(1.02);
}
.frame:hover img, .frame:focus-visible img { transform: scale(1.045); }
.frame figcaption {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1rem 1.1rem;
  background: linear-gradient(0deg, rgba(26,19,15,.85) 0%, rgba(26,19,15,0) 45%);
  opacity: 0; transition: opacity .45s var(--ease);
  color: var(--paper);
}
.frame:hover figcaption, .frame:focus-visible figcaption { opacity: 1; }
/* corner marks, painted above the image via the figcaption's own ::after */
.frame figcaption::after {
  content: "";
  position: absolute; inset: 12px;
  pointer-events: none;
  background-image:
    linear-gradient(var(--accent-soft), var(--accent-soft)), linear-gradient(var(--accent-soft), var(--accent-soft)),
    linear-gradient(var(--accent-soft), var(--accent-soft)), linear-gradient(var(--accent-soft), var(--accent-soft)),
    linear-gradient(var(--accent-soft), var(--accent-soft)), linear-gradient(var(--accent-soft), var(--accent-soft)),
    linear-gradient(var(--accent-soft), var(--accent-soft)), linear-gradient(var(--accent-soft), var(--accent-soft));
  background-repeat: no-repeat;
  background-size: 1.5px 14px, 14px 1.5px, 1.5px 14px, 14px 1.5px, 1.5px 14px, 14px 1.5px, 1.5px 14px, 14px 1.5px;
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
}
.frame-id { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; color: var(--amber-soft); margin-bottom: .3em; }
.frame-cap { font-size: .84rem; color: rgba(239,227,203,.92); max-width: 34ch; }

/* Preview mosaics (home page) — asymmetric editorial grid per category */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(64px, auto);
  gap: var(--gap);
}
.preview-grid .frame { border-radius: 2px; }
.preview-grid .p-a { grid-column: 1 / 4; grid-row: 1 / 7; }
.preview-grid .p-b { grid-column: 4 / 7; grid-row: 1 / 4; }
.preview-grid .p-c { grid-column: 4 / 6; grid-row: 4 / 7; }
.preview-grid .p-d { grid-column: 6 / 7; grid-row: 4 / 7; }

.preview-grid.count-3 .p-a { grid-column: 1 / 4; grid-row: 1 / 7; }
.preview-grid.count-3 .p-b { grid-column: 4 / 7; grid-row: 1 / 4; }
.preview-grid.count-3 .p-c { grid-column: 4 / 7; grid-row: 4 / 7; }

.category-block + .category-block { margin-top: clamp(4rem, 9vw, 7rem); }
.category-foot { display: flex; justify-content: flex-end; margin-top: clamp(1.5rem, 3vw, 2.25rem); }

/* Full gallery (work page) — CSS column masonry */
.gallery {
  columns: 4 260px;
  column-gap: var(--gap);
}
.gallery .frame { margin-bottom: var(--gap); width: 100%; }
.gallery .frame { display: block; }
.gallery .frame.is-hidden { display: none; }

@media (max-width: 1100px) { .gallery { columns: 3 220px; } }
@media (max-width: 720px) { .gallery { columns: 2 160px; } .gallery { column-gap: .6rem; } .gallery .frame { margin-bottom: .6rem; } }

/* =================================================================
   FILTER TABS
   ================================================================= */
.filters { display: flex; flex-wrap: wrap; gap: .6em; }
.filter-tab {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em;
  padding: .65em 1.1em;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  color: var(--fg-dim);
  transition: all .3s var(--ease);
}
.filter-tab .n { opacity: .55; margin-left: .5em; }
.filter-tab:hover { border-color: var(--fg-dim); color: var(--fg); }
.filter-tab.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filter-tab.is-active .n { opacity: .6; }

/* =================================================================
   LIGHTBOX
   ================================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(16, 11, 8, .97);
  color: #efe3cb;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility 0s linear .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.lightbox-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem clamp(1.25rem,4vw,2.5rem);
  font-family: var(--font-mono); font-size: .78rem; color: rgba(239,227,203,.62); letter-spacing: .05em;
}
.lightbox-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 clamp(1rem,6vw,5rem) clamp(1rem,4vw,2rem); min-height: 0; position: relative; }
.lightbox-stage figure { max-width: 100%; max-height: 100%; display:flex; flex-direction:column; align-items:center; gap: 1rem; }
.lightbox-stage img { max-width: 100%; max-height: 68vh; width: auto; object-fit: contain; }
.lightbox-cap { text-align: center; font-size: .92rem; color: rgba(239,227,203,.68); }
.lightbox-cap .frame-id { color: var(--amber-soft); margin-right: .8em; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(239,227,203,.16);
  display: grid; place-items: center;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
  color: #efe3cb;
}
.lightbox-nav:hover { border-color: var(--amber-soft); }
.lightbox-nav.prev { left: clamp(.5rem,3vw,2rem); }
.lightbox-nav.next { right: clamp(.5rem,3vw,2rem); }
.lightbox-nav svg { width: 16px; height: 16px; }
.lightbox-close { width: 38px; height: 38px; border: 1px solid rgba(239,227,203,.16); border-radius: 50%; display: grid; place-items: center; color: #efe3cb; transition: border-color .3s var(--ease); }
.lightbox-close:hover { border-color: var(--amber-soft); }

/* =================================================================
   ABOUT
   ================================================================= */
.about-grid { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: center; }
.about-media { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.about-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.94); }
.about-copy .statement { max-width: 16ch; margin-bottom: 1.1em; }
.about-copy p.lead { margin-bottom: 1.3em; }
.about-facts { margin-top: 2.2rem; display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem 2rem; }
.about-facts dt { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: .5em; }
.about-facts dd { font-size: .98rem; }

/* =================================================================
   MARQUEE
   ================================================================= */
.marquee { border-block: 1px solid var(--border); overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track span {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  padding: 1.1em 1.4em;
  white-space: nowrap;
  color: var(--fg-dim);
  display: inline-flex; align-items: center; gap: 1.4em;
}
.marquee-track span::after { content: "◆"; font-style: normal; font-size: .5em; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* =================================================================
   CONTACT
   ================================================================= */
.contact-grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 3rem; flex-wrap: wrap; }
.contact-email {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(2rem, 6vw, 4.2rem);
  line-height: 1.05;
  border-bottom: 1px solid var(--border);
  padding-bottom: .15em;
  transition: color .3s var(--ease), border-color .3s var(--ease);
  word-break: break-word;
}
.contact-email:hover { color: var(--accent); border-color: var(--accent); }
.contact-meta { display: flex; flex-direction: column; gap: .9rem; font-size: .92rem; color: var(--fg-dim); min-width: 200px; }
.contact-meta a { color: var(--fg); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), color .3s var(--ease); }
.contact-meta a:hover { border-color: var(--accent); color: var(--accent); }

/* =================================================================
   SOUND GATE — entry screen
   ================================================================= */
.sound-gate {
  position: fixed; inset: 0; z-index: 900;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 1; transition: opacity .65s var(--ease);
}
.sound-gate.is-leaving { opacity: 0; }
.sound-gate-frame {
  --vf-inset: clamp(1.25rem, 4vw, 2.5rem);
  --vf-size: 22px;
  position: relative;
  width: min(92vw, 900px);
  padding: clamp(2.5rem, 8vw, 5rem) 1rem;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  gap: clamp(2.5rem, 7vw, 4rem);
}
.sound-gate-frame.vf::after { opacity: 1; --vf-color: var(--line); }
.sound-gate-mark {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-family: var(--font-display); font-style: italic; font-size: 1.2rem;
  color: var(--paper-dim);
}
.sound-gate-main {
  display: flex; flex-direction: column;
  font-family: var(--font-display);
  color: var(--paper);
}
.sound-gate-main .sg { line-height: 1.15; white-space: nowrap; }
.sg-1 { font-size: clamp(1.9rem, 6vw, 3rem); align-self: flex-start; margin-left: 6%; color: var(--paper); }
.sg-2 { font-size: clamp(1.5rem, 4.6vw, 2.3rem); align-self: center; margin-left: 14%; color: var(--paper-dim); font-weight: 300; }
.sg-3 { font-size: clamp(1.15rem, 3.4vw, 1.6rem); align-self: center; margin-left: 24%; color: var(--paper-dim); font-weight: 300; }
.sg-4 { font-size: clamp(1.3rem, 4vw, 1.9rem); align-self: center; margin-right: 10%; color: var(--paper-dim); font-weight: 300; }
.sg-5 { font-size: clamp(2.1rem, 6.6vw, 3.3rem); align-self: flex-end; margin-right: 4%; font-style: italic; color: var(--accent); }
.sound-gate-skip {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--paper-dim);
  padding: .6em 1.2em;
  border: 1px solid var(--border);
  border-radius: var(--radius-tag);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.sound-gate-skip:hover { color: var(--paper); border-color: var(--paper-dim); }

@media (max-width: 640px) {
  .sg-1 { margin-left: 0; }
  .sg-2 { margin-left: 6%; }
  .sg-3 { margin-left: 12%; }
  .sg-4 { margin-right: 4%; }
  .sg-5 { margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sound-gate { transition: none; }
}

/* =================================================================
   FOOTER
   ================================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem var(--pad);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  font-family: var(--font-mono); font-size: .76rem; color: var(--fg-dim); letter-spacing: .04em;
}
.site-footer a { color: var(--fg-dim); transition: color .3s var(--ease); }
.site-footer a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 1.5rem; }
.back-to-top { display: inline-flex; align-items: center; gap: .5em; }
.back-to-top svg { width: 11px; height: 11px; }

/* =================================================================
   CURSOR (desktop, fine pointer only)
   ================================================================= */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 400;
  pointer-events: none;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  will-change: transform;
}
.cursor-dot { width: 5px; height: 5px; background: var(--accent); }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid var(--accent);
  transition: width .25s var(--ease), height .25s var(--ease), border-color .25s var(--ease), opacity .25s var(--ease);
  display: flex; align-items: center; justify-content: center;
}
.cursor-ring span {
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase;
  opacity: 0; transition: opacity .25s var(--ease); color: var(--accent); white-space: nowrap;
}
.cursor-ring.is-view { width: 62px; height: 62px; background: rgba(var(--scrim), .5); }
.cursor-ring.is-view span { opacity: 1; }
.cursor-ring.is-link { width: 44px; height: 44px; }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { aspect-ratio: 16/10; }
  .statement-row { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .statement-avail { text-align: left; }
}

@media (max-width: 760px) {
  .nav-links, .nav-utils .icon-btn:not(.menu-toggle) { display: none; }
  .menu-toggle { display: grid; }
  .preview-grid { grid-template-columns: repeat(2,1fr); grid-auto-rows: minmax(120px,auto); }
  .preview-grid .p-a, .preview-grid .p-b, .preview-grid .p-c, .preview-grid .p-d {
    grid-column: auto; grid-row: auto;
  }
  .preview-grid .frame { aspect-ratio: 4/5; }
  .about-facts { grid-template-columns: 1fr 1fr; }
  .contact-grid { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* Hero video: never crop on narrow screens — show the full uncropped
   frame at its native ratio, move title/meta below into normal flow. */
@media (max-width: 760px) {
  .hero-visual { min-height: auto; aspect-ratio: 16 / 9; }
  .hero-content {
    position: static;
    padding-top: clamp(2rem, 8vw, 3rem);
    padding-bottom: .5rem;
    color: var(--fg);
  }
  .hero-eyebrow { color: var(--fg-dim); }
  .hero-title { color: var(--fg); font-size: clamp(3rem, 15vw, 4.5rem); }
  .hero-foot {
    position: static;
    color: var(--fg);
    padding-block: .5rem clamp(2rem, 8vw, 3rem);
  }
  .hero-meta { color: var(--fg-dim); }
  .scroll-cue { color: var(--fg-dim); }
  .scroll-cue .line { background: var(--border); }
}
