/* ==========================================================================
   OMID ARDALANI — PHOTOGRAPHY PORTFOLIO
   "Cinematic film-poster" art direction:
   Fraunces serif (roman + italic) · burnished bronze on near-black · warm ivory ink
   · tracked-caps micro-labels · hairline diamond rules · film grain · letterbox.
   Pure CSS, no build step. Mobile-first.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #05060a;
  --bg-soft: #0a0c12;
  --bg-raise: #0d0f16;

  --ink: #f3efe7;                          /* warm ivory */
  --ink-dim: rgba(243, 239, 231, 0.62);
  --ink-faint: rgba(243, 239, 231, 0.38);
  --line: rgba(243, 239, 231, 0.1);        /* structural hairlines */
  --hairline: rgba(243, 239, 231, 0.16);

  --bronze: #c9a064;                       /* burnished bronze accent */
  --bronze-bright: #ddb87e;
  --bronze-soft: rgba(201, 160, 100, 0.55);
  --bronze-faint: rgba(201, 160, 100, 0.16);
  --glow-bronze: rgba(201, 160, 100, 0.28);
  --ivory-warm: #efe6d3;                   /* italic display words */

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-billing: "Oswald", "Inter", system-ui, sans-serif;

  --header-h: 76px;
  --header-h-condensed: 58px;
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 3px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* NOTE: no `scroll-behavior: smooth` here — Lenis owns smooth scrolling.
   Stacking the two causes wheel-input lag / "page resists scrolling". */
html {
  -webkit-text-size-adjust: 100%;
}

body {
  background:
    radial-gradient(1000px 620px at 78% -12%, rgba(201, 160, 100, 0.055), transparent 60%),
    radial-gradient(900px 700px at -12% 38%, rgba(60, 48, 30, 0.1), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }

::selection { background: var(--bronze); color: var(--bg); }

/* Keyboard focus — clearly visible, bronze */
:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Custom cursor mode: hide the native cursor (JS adds .has-cursor on fine pointers only) */
html.has-cursor, html.has-cursor * { cursor: none !important; }

/* ---------- Utility ---------- */
.micro-label {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--ink-faint);
}

/* Sections breathe wide — generous dark wall between every chapter. */
.section { position: relative; padding: clamp(6rem, 13vw, 10.5rem) clamp(1.25rem, 5vw, 5rem); scroll-margin-top: var(--header-h); }
/* The threshold already sets the stage — the work section starts a touch sooner,
   so the marquee strip reads as the leader of the reel, not a wall. */
.work.section { padding-top: clamp(4.5rem, 9vw, 7.5rem); }

/* Section headers echo the hero's billing-block composition: centered,
   bronze tracked-caps kicker between hairlines, serif title with italic turn. */
.section-head {
  max-width: 1200px;
  margin: 0 auto clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}
.section-num {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 1.3rem;
  color: var(--bronze);
}
.section-num::before, .section-num::after {
  content: "";
  width: clamp(22px, 3.5vw, 48px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bronze-soft));
  flex: none;
}
.section-num::after { background: linear-gradient(90deg, var(--bronze-soft), transparent); }
.section-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 340;
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: 0.005em;
  color: var(--ink);
}
.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--ivory-warm);
}
.section-sub {
  margin: 1.2rem auto 0;
  max-width: 52ch;
  color: var(--ink-dim);
  font-size: 0.98rem;
}

.noscript-note { color: var(--ink-dim); padding: 1rem 0; }

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: none; /* shown only when JS is on */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
html.js .preloader { display: flex; }
/* !important needed to outrank `html.js .preloader` above */
.preloader.is-done { display: none !important; }

.preloader-inner { text-align: center; }
.preloader-name {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.45em;
  text-indent: 0.45em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.2rem;
}
.preloader-counter {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: clamp(4rem, 14vw, 7.5rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.preloader-counter sup {
  font-size: 0.24em;
  font-style: italic;
  color: var(--bronze);
  margin-left: 0.25em;
}

.preloader-bar {
  width: min(260px, 60vw);
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
#preloader-bar-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, rgba(201, 160, 100, 0.4), var(--bronze));
  transform: scaleX(0);
  transform-origin: left;
}

/* ==========================================================================
   GLOBAL CHROME — progress bar, cursor, starfield, grain
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 950;
  pointer-events: none;
}
#scroll-progress-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, rgba(201, 160, 100, 0.45), var(--bronze));
  box-shadow: 0 0 10px var(--glow-bronze);
  transform: scaleX(0);
  transform-origin: left;
}

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 990;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  will-change: transform;
}
html.has-cursor .cursor-dot, html.has-cursor .cursor-ring { opacity: 1; }
.cursor-dot {
  width: 5px; height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: var(--bronze);
  box-shadow: 0 0 10px var(--glow-bronze);
}
.cursor-ring {
  width: 36px; height: 36px;
  margin: -18px 0 0 -18px;
  border: 1px solid rgba(243, 239, 231, 0.4);
  transition: width 0.3s var(--ease-premium), height 0.3s var(--ease-premium),
              margin 0.3s var(--ease-premium), border-color 0.3s, background-color 0.3s;
}
.cursor-ring.is-hover {
  width: 60px; height: 60px;
  margin: -30px 0 0 -30px;
  border-color: var(--bronze-soft);
  background: rgba(201, 160, 100, 0.05);
}
.cursor-ring.is-media {
  width: 84px; height: 84px;
  margin: -42px 0 0 -42px;
  border-color: var(--bronze);
  background: rgba(201, 160, 100, 0.07);
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
  pointer-events: none; /* never intercept wheel / touch */
}

/* Living film grain over everything — same recipe as the hero poster */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 900;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  animation: grain-shift 0.9s steps(6) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-1.4%, 0.8%); }
  40% { transform: translate(1%, -1.2%); }
  60% { transform: translate(-0.8%, -1.5%); }
  80% { transform: translate(1.5%, 0.6%); }
  100% { transform: translate(0, 0); }
}

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 860; /* above the mobile-menu overlay so the hamburger stays tappable */
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  transition: height 0.45s var(--ease-premium), background-color 0.45s, border-color 0.45s,
              backdrop-filter 0.45s;
  border-bottom: 1px solid transparent;
}
.site-header.is-condensed {
  height: var(--header-h-condensed);
  background: rgba(5, 6, 10, 0.7);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  border-bottom-color: var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.logo-mark {
  width: 7px; height: 7px;
  background: var(--bronze);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--glow-bronze);
  flex: none;
}
.logo-text {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 340;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.main-nav {
  display: none;
  margin-left: auto;
  gap: 2.2rem;
}
.nav-link {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--ink-dim);
  transition: color 0.3s;
  padding: 0.4rem 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--bronze), transparent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-premium);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  display: none;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  text-indent: 0.1em;
  padding: 0.65rem 1.35rem;
  border: 1px solid rgba(243, 239, 231, 0.22);
  border-radius: 999px;
  background: rgba(243, 239, 231, 0.02);
  transition: border-color 0.35s, color 0.35s, box-shadow 0.35s, background-color 0.35s;
  will-change: transform;
}
.nav-cta:hover {
  border-color: var(--bronze-soft);
  color: var(--bronze-bright);
  box-shadow: 0 0 22px -4px var(--glow-bronze), inset 0 0 14px rgba(201, 160, 100, 0.06);
}
.nav-cta-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--bronze);
  box-shadow: 0 0 8px var(--glow-bronze);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

@media (min-width: 820px) {
  .main-nav { display: flex; }
  .nav-cta { display: inline-flex; }
  .hamburger { display: none !important; }
}

/* Hamburger */
.hamburger {
  margin-left: auto;
  width: 44px; height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 860;
}
.hamburger span {
  display: block;
  width: 22px; height: 1px;
  background: var(--ink);
  transition: transform 0.4s var(--ease-premium), opacity 0.3s;
}
body.nav-open .hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .hamburger span:nth-child(2) { opacity: 0; }
body.nav-open .hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 850;
  background: rgba(5, 6, 10, 0.93);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(2rem, 8vw, 4rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-premium), visibility 0s 0.45s;
}
body.nav-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s var(--ease-premium);
}
.mobile-link {
  display: block;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 330;
  font-size: clamp(2.6rem, 11vw, 3.8rem);
  line-height: 1.15;
  letter-spacing: 0.005em;
  padding: 0.45rem 0;
  color: var(--ink);
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.6s var(--ease-premium), opacity 0.6s, color 0.3s, font-style 0.3s;
}
.mobile-link:hover { color: var(--bronze-bright); font-style: italic; }
body.nav-open .mobile-link { transform: translateY(0); opacity: 1; }
body.nav-open .mobile-link:nth-child(1) { transition-delay: 0.08s; }
body.nav-open .mobile-link:nth-child(2) { transition-delay: 0.16s; }
body.nav-open .mobile-link:nth-child(3) { transition-delay: 0.24s; }
.mobile-menu-foot {
  margin-top: 3rem;
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ==========================================================================
   HERO — "Cinematic Film-Poster Cover"
   Full-bleed slow triptych · serif name overlay · letterbox · billing block.
   All "hidden until entrance" states are applied by JS (motion only), so the
   hero is fully visible with JS off or reduced motion on.
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
}

/* --- photography layers --- */
.hero-slides { position: absolute; inset: 0; z-index: 1; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity;
}
.hero-slide:first-child { opacity: 1; } /* no-JS / pre-entrance fallback */
.hero-slide img {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  will-change: transform;
  transform-origin: center center;
  /* cinematic grade */
  filter: saturate(0.82) contrast(1.07) brightness(0.78) sepia(0.06);
}
.hero-slide:nth-child(1) img { object-position: 50% 38%; }
.hero-slide:nth-child(2) img { object-position: 50% 42%; }
.hero-slide:nth-child(3) img {
  object-position: 42% 30%;
  filter: saturate(0.78) contrast(1.05) brightness(0.72) sepia(0.05);
}

/* --- soft light bloom: pulses gently while the stills dissolve (driven by JS) --- */
.hero-flash {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background: radial-gradient(ellipse 64% 52% at 50% 44%, rgba(243, 233, 210, 0.5), rgba(201, 160, 100, 0.12) 55%, transparent 75%);
  will-change: opacity;
}

/* --- color cast: cool shadows, like a print wash --- */
.hero-cast {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(14, 22, 38, 0.38) 0%, rgba(5, 6, 10, 0) 45%, rgba(30, 18, 8, 0.22) 100%);
  mix-blend-mode: multiply;
}

/* --- legibility scrims --- */
.hero-scrim { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero-scrim::before { /* vertical poster scrim */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(5, 6, 10, 0.72) 0%,
    rgba(5, 6, 10, 0.3) 22%,
    rgba(5, 6, 10, 0.18) 42%,
    rgba(5, 6, 10, 0.46) 64%,
    rgba(5, 6, 10, 0.88) 88%,
    #05060a 100%);
}
.hero-scrim::after { /* center glow-well for the title block */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 58% 46% at 50% 52%, rgba(5, 6, 10, 0.52) 0%, rgba(5, 6, 10, 0.18) 55%, rgba(5, 6, 10, 0) 78%);
}
.hero-vignette {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse 120% 100% at 50% 50%, rgba(5, 6, 10, 0) 55%, rgba(5, 6, 10, 0.55) 100%);
}

/* --- letterbox bars --- */
.hero-bar {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 8;
  height: clamp(10px, 1.6vh, 18px);
  background: #020308;
}
.hero-bar-top { top: 0; transform-origin: top; }
.hero-bar-bottom { bottom: 0; transform-origin: bottom; }

/* --- composition frame --- */
.hero-frame {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  padding: calc(var(--header-h) + 6px) clamp(24px, 4.5vw, 64px) clamp(28px, 4.5vh, 48px);
  pointer-events: none;
}
.hero-frame a, .hero-frame button { pointer-events: auto; }

/* --- top register --- */
.hero-regtop {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px;
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 400;
}
.hero-reg-item:first-child { text-align: left; }
.hero-reg-mid {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.hero-reg-mid::before, .hero-reg-mid::after {
  content: "";
  width: clamp(24px, 5vw, 72px);
  height: 1px;
  background: var(--hairline);
  flex: none;
}
.hero-reg-status {
  text-align: right;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--bronze);
  box-shadow: 0 0 8px var(--glow-bronze);
  animation: pulse 2.4s ease-in-out infinite;
  flex: none;
}

/* --- title block --- */
.hero-title-block { margin: auto 0; padding: 0 12px; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-body);
  font-size: clamp(10px, 0.85vw, 12.5px);
  font-weight: 400;
  letter-spacing: 0.46em;
  text-indent: 0.46em; /* optically recenter tracked caps */
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: clamp(18px, 3.2vh, 32px);
}
.hero-kicker::before, .hero-kicker::after {
  content: "";
  width: clamp(20px, 3vw, 44px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bronze-soft));
  flex: none;
}
.hero-kicker::after { background: linear-gradient(90deg, var(--bronze-soft), transparent); }

.hero-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 330;
  font-size: clamp(56px, 9.2vw, 138px);
  line-height: 1.02;
  letter-spacing: 0.005em;
  color: var(--ink);
  text-shadow: 0 2px 40px rgba(5, 6, 10, 0.55);
  text-transform: none;
}
.hero-line { display: inline-block; white-space: nowrap; }
.hero-line + .hero-line { margin-left: 0.24em; }
.hero-line-accent { font-style: italic; font-weight: 300; color: var(--ivory-warm); }
.hero-word { display: inline-block; }
.hero-char { display: inline-block; will-change: transform, opacity; }

.hero-rule {
  width: clamp(60px, 7vw, 104px);
  height: 1px;
  margin: clamp(20px, 3.4vh, 34px) auto clamp(18px, 3vh, 28px);
  background: linear-gradient(90deg, transparent, var(--bronze), transparent);
  position: relative;
}
.hero-rule::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 5px; height: 5px;
  background: var(--bronze);
  transform: translate(-50%, -50%) rotate(45deg);
}

.hero-tagline {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.55;
  letter-spacing: 0.015em;
  color: var(--ink-dim);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-row { margin-top: clamp(26px, 4.6vh, 42px); }

/* Sweep-fill pill — shared by the hero CTA and the contact submit button */
.hero-cta, .submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid rgba(243, 239, 231, 0.32);
  border-radius: 999px;
  padding: 17px 38px 17px 44px;
  position: relative;
  overflow: hidden;
  background: transparent;
  transition: color 0.45s ease, border-color 0.45s ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  will-change: transform;
}
.hero-cta::before, .submit-btn::before { /* fill sweep */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s cubic-bezier(0.77, 0, 0.18, 1);
  z-index: 0;
  border-radius: inherit;
}
.hero-cta > span, .submit-btn > span { position: relative; z-index: 1; }
.hero-cta-arrow {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 1px;
  background: currentColor;
  display: inline-block;
  transition: width 0.45s ease;
  flex: none;
}
.hero-cta-arrow::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.hero-cta:hover, .hero-cta:focus-visible,
.submit-btn:hover, .submit-btn:focus-visible {
  color: #0a0b10;
  border-color: var(--ink);
}
.hero-cta:hover::before, .hero-cta:focus-visible::before,
.submit-btn:hover::before, .submit-btn:focus-visible::before { transform: scaleX(1); }
.hero-cta:hover .hero-cta-arrow, .submit-btn:hover .hero-cta-arrow { width: 38px; }

/* --- bottom register --- */
.hero-regbottom {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
}
/* Minimal frame indicator — two small ticks, no text. Sits on the hero's
   bottom-right register, mirroring the padding of the composition frame. */
.hero-frame-dots {
  position: absolute;
  right: clamp(24px, 4.5vw, 64px);
  bottom: clamp(34px, 5vh, 56px);
  display: flex;
  align-items: center;
  gap: 9px;
}
.hero-tick {
  display: block;
  width: 14px;
  height: 1px;
  background: rgba(243, 239, 231, 0.26);
  transition: width 0.7s var(--ease-premium), background-color 0.7s, box-shadow 0.7s;
}
.hero-tick.is-active {
  width: 30px;
  background: var(--bronze);
  box-shadow: 0 0 8px var(--glow-bronze);
}

.hero-scroll-cue {
  justify-self: center;
  text-align: center;
  font-size: 9.5px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color 0.3s;
}
.hero-scroll-cue:hover { color: var(--ink-dim); }
.hero-scroll-text { display: block; }
.hero-scroll-line {
  display: block;
  width: 1px;
  height: 52px;
  margin: 14px auto 0;
  background: linear-gradient(180deg, var(--bronze-soft), transparent);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, transparent, var(--ink));
  animation: drip 2.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes drip { 0% { top: -100%; } 60%, 100% { top: 100%; } }

.hero-billing {
  display: none; /* removed from the composition to keep the hero clean */
  text-align: right;
  font-family: var(--font-billing);
  font-weight: 300;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 2;
}
.hero-billing b { font-weight: 400; color: var(--ink-dim); }

/* --- small screens: keep the poster composed --- */
@media (max-width: 760px) {
  .hero { min-height: 560px; }
  .hero-reg-mid, .hero-reg-status, .hero-billing { display: none; }
  .hero-regtop { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(44px, 13vw, 76px); }
  .hero-line { display: block; }
  .hero-line + .hero-line { margin-left: 0; }
  .hero-frame { padding: calc(var(--header-h) + 2px) 22px 24px; }
  .hero-frame-dots { right: 22px; bottom: 26px; }
  .hero-tick { width: 11px; }
  .hero-tick.is-active { width: 24px; }
}

/* ==========================================================================
   THRESHOLD — the title card between the hero and the work.
   A full-bleed parallax band of photography under a Fraunces italic
   statement; dark scrim keeps the type legible, edges dissolve into the page.
   A deep band of dark wall above AND below separates it decisively from the
   hero — it reads as its own intentional title-card, never glued to the
   poster above it.
   ========================================================================== */
.threshold {
  position: relative;
  overflow: hidden;
  /* the dark gap between the hero's letterbox bar and this card */
  margin-top: clamp(4rem, 10vh, 9rem);
  margin-bottom: clamp(2.5rem, 6vh, 5rem);
  min-height: clamp(440px, 82vh, 780px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg);
}
.threshold-media { position: absolute; inset: 0; z-index: 0; }
.threshold-media img {
  position: absolute;
  left: 0; top: -10%;
  width: 100%; height: 120%;
  object-fit: cover;
  object-position: 50% 58%;
  /* darker than the hero grade — the type is the subject here */
  filter: saturate(0.8) contrast(1.08) brightness(0.52) sepia(0.08);
  will-change: transform;
}
.threshold-scrim {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 64% 56% at 50% 50%, rgba(5, 6, 10, 0.55), rgba(5, 6, 10, 0.22) 58%, rgba(5, 6, 10, 0) 80%),
    linear-gradient(180deg, #05060a 0%, rgba(5, 6, 10, 0.32) 20%, rgba(5, 6, 10, 0.26) 76%, #05060a 100%);
}
.threshold-inner {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  padding: clamp(4.5rem, 12vh, 7rem) clamp(1.5rem, 6vw, 4rem);
}
.threshold-kicker {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--bronze);
  margin-bottom: clamp(1.6rem, 3.4vh, 2.4rem);
}
.threshold-kicker::before, .threshold-kicker::after {
  content: "";
  width: clamp(22px, 3.5vw, 48px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bronze-soft));
  flex: none;
}
.threshold-kicker::after { background: linear-gradient(90deg, var(--bronze-soft), transparent); }

.threshold-statement {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 330;
  font-size: clamp(1.7rem, 4.4vw, 3.7rem);
  line-height: 1.28;
  letter-spacing: 0.004em;
  color: var(--ink);
  max-width: 26ch;
  margin: 0 auto;
  text-shadow: 0 2px 40px rgba(5, 6, 10, 0.6);
}
.threshold-statement em {
  font-style: italic;
  font-weight: 300;
  color: var(--ivory-warm);
}
/* JS-split word masks for the title-card reveal */
.th-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.th-word { display: inline-block; will-change: transform; }
.th-word-em { font-style: italic; font-weight: 300; color: var(--ivory-warm); }

.threshold-rule {
  width: clamp(60px, 7vw, 104px);
  height: 1px;
  margin: clamp(1.8rem, 4vh, 2.6rem) auto clamp(1.4rem, 3vh, 2rem);
  background: linear-gradient(90deg, transparent, var(--bronze), transparent);
  position: relative;
}
.threshold-rule::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 5px; height: 5px;
  background: var(--bronze);
  transform: translate(-50%, -50%) rotate(45deg);
}
.threshold-foot { color: var(--ink-faint); }

/* ==========================================================================
   MARQUEE — refined into a thin film-leader strip between the threshold
   and the work. Quieter, smaller, slower: texture, not a headline.
   ========================================================================== */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
  background: rgba(243, 239, 231, 0.012);
}
.marquee-inner {
  display: inline-flex;
  align-items: center;
  gap: 2.6rem;
  white-space: nowrap;
  will-change: transform;
  animation: marquee-scroll 44s linear infinite;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(0.82rem, 1.6vw, 1rem);
  letter-spacing: 0.07em;
  color: rgba(243, 239, 231, 0.3);
}
.marquee-item:nth-child(4n + 1) { color: rgba(201, 160, 100, 0.48); }
.marquee-sep {
  color: var(--bronze);
  font-size: 0.58rem;
  opacity: 0.5;
  transform: rotate(0.001deg); /* crisp glyph rendering */
}

/* ==========================================================================
   WORK / GALLERY
   ========================================================================== */
/* Work section breathes a little wider than the text sections — the mosaic is the star. */
.work .section-head { max-width: 1280px; }

.filters {
  max-width: 1280px;
  margin: 0 auto 3.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding-bottom: 1.7rem;
  border-bottom: 1px solid var(--line);
}
.filter-btn {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  text-indent: 0.12em;
  color: var(--ink-dim);
  padding: 0.62rem 1.3rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: transparent;
  transition: color 0.3s, border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}
.filter-btn:hover { color: var(--ink); border-color: rgba(201, 160, 100, 0.45); }
.filter-btn.is-active {
  color: var(--bronze-bright);
  border-color: var(--bronze-soft);
  background: var(--bronze-faint);
  box-shadow: 0 0 22px -6px var(--glow-bronze), inset 0 0 12px rgba(201, 160, 100, 0.06);
}
.filter-count {
  opacity: 0.55;
  margin-left: 0.5em;
  font-size: 0.85em;
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: none;
}

/* The gallery wall: every photograph hangs as a FRAMED, MATTED, LABELLED print —
   ivory hairline frame, dark mat, bronze keyline on the image, and an always-visible
   caption plate beneath (title in Fraunces italic + plate № · gallery in tracked
   caps, sealed with the diamond signature). Equal prints, even rhythm, generous
   air between them. The wall is still sequenced by CONFIG.colorOrder
   (warm amber → green → blue → mist-grey): one continuous smear of color. */
.work-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.2rem;
}
@media (min-width: 720px) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3.2rem 2rem;
  }
}
@media (min-width: 1160px) {
  .work-grid {
    gap: 4.2rem 2.6rem;
  }
}

/* The button is an invisible hanger — the framed print inside it does the talking.
   (Hover lift lives on .work-item-inner so it never fights the inline transforms
   GSAP leaves on .work-item during the filter / reveal animations.) */
.work-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  text-align: center;
  background: none;
  border: none;
}
.work-item.is-hidden { display: none; }
.work-item:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 5px;
  border-radius: 2px;
}

/* The frame + mat — every grid print echoes the big wall-prints in miniature:
   a visible dark-bronze moulding (with a bevel catch-light), a slim ivory mat
   around the photograph, a dark fillet line at the window, and a real drop
   shadow lifting the print off the wall. */
.work-item-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.8);
  background: linear-gradient(140deg, #3c2d16 0%, #241a0d 36%, #33250f 64%, #1a1208 100%);
  padding: clamp(8px, 1.1vw, 13px);
  box-shadow:
    inset 1px 1px 2px rgba(255, 226, 170, 0.24),
    inset -1px -1px 2px rgba(0, 0, 0, 0.7),
    0 28px 52px -24px rgba(0, 0, 0, 0.95),
    0 2px 6px rgba(0, 0, 0, 0.5);
  transition: transform 0.6s var(--ease-premium), box-shadow 0.6s var(--ease-premium),
              border-color 0.45s;
}
.work-item:hover .work-item-inner,
.work-item:focus-visible .work-item-inner {
  transform: translateY(-6px);
  border-color: rgba(201, 160, 100, 0.55);
  box-shadow:
    inset 1px 1px 2px rgba(255, 226, 170, 0.3),
    inset -1px -1px 2px rgba(0, 0, 0, 0.7),
    0 40px 70px -26px rgba(0, 0, 0, 0.98),
    0 0 38px -12px var(--glow-bronze);
}

/* The print itself: same 3:2 window for every photo, set in a slim ivory mat
   with a dark fillet line, under a glass vignette */
.work-item-media {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 2;
  border: clamp(7px, 1vw, 12px) solid #e9e1cf; /* the mini mat board */
  background: var(--bg-raise);
  box-shadow: 0 0 0 1px rgba(15, 10, 4, 0.85); /* mat seam against the moulding */
}
.work-item-media::after { /* soft inner vignette — a print pressed under glass */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 30px rgba(2, 3, 8, 0.4), inset 0 0 0 1px rgba(40, 30, 16, 0.6);
}
.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* resting state matches the hero's cinematic grade */
  filter: saturate(0.7) contrast(1.06) sepia(0.05);
  transition: filter 0.9s var(--ease-premium), transform 1.5s var(--ease-premium);
}
.work-item:hover img, .work-item:focus-visible img {
  filter: saturate(1.05) contrast(1.05) sepia(0);
  transform: scale(1.05); /* slow, controlled zoom only — no scroll-tied parallax */
}

/* The caption plate — small, centered, always visible. A hairline rule with the
   diamond signature, the title in Fraunces italic, then № + gallery in micro caps. */
.work-item-plate {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 0.4rem 0.5rem;
}
.plate-rule {
  display: block;
  position: relative;
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bronze-soft), transparent);
}
.plate-rule::after { /* the recurring diamond signature mark */
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 4px; height: 4px;
  background: var(--bronze);
  transform: translate(-50%, -50%) rotate(45deg);
}
.work-item-title {
  display: block;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 340;
  font-size: clamp(0.78rem, 0.55rem + 0.6vw, 0.95rem);
  line-height: 1.35;
  letter-spacing: 0.015em;
  color: var(--ivory-warm);
  transition: color 0.4s;
}
.work-item:hover .work-item-title,
.work-item:focus-visible .work-item-title { color: var(--ink); }
.work-item-plateline {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.53rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  text-indent: 0.13em;
  white-space: nowrap;
}
.plate-no { color: var(--bronze); }
.plate-sep { color: var(--ink-faint); letter-spacing: 0; text-indent: 0; }
.plate-cat { color: var(--ink-faint); }

/* Touch devices: no hover grade shift — keep the prints a touch livelier at rest */
@media (hover: none) {
  .work-item img { filter: saturate(0.9) sepia(0.03); }
}

/* --------------------------------------------------------------------------
   FRAMED WALL-PRINTS — the four showpieces inside the grid flow. Each one is
   the photograph hung as a REAL museum print: a thick burnished dark-bronze
   moulding with bevelled edges (light catches the top-left, the bottom-right
   falls into shadow), a wide ivory mat board with a bevel-cut window and a
   dark fillet line around the image, the whole frame floating off the dark
   wall on a deep drop shadow under its own picture-light. A gallery
   wall-label sits beside (or beneath) the frame: cue, pull-quote in Fraunces
   italic, a short description of the exact moment, then the title, plate №
   and signature mark over a hairline rule. HUGE dark wall above and below —
   every print hangs alone. Rendered by JS from CONFIG.workInterludes; shown
   only in the "All" edit.
   -------------------------------------------------------------------------- */
.work-interlude {
  grid-column: 1 / -1;
  position: relative;
  /* the empty dark wall: each print breathes alone, far from the grid */
  margin: clamp(6rem, 14vh, 12rem) 0;
  display: grid;
  align-items: center;
  gap: clamp(2.4rem, 5vw, 5rem);
}
.work-interlude.is-hidden { display: none; }

@media (min-width: 940px) {
  .work-interlude:not(.work-interlude--center) {
    grid-template-columns: minmax(0, 13fr) minmax(0, 8fr);
  }
  .work-interlude--flip:not(.work-interlude--center) {
    grid-template-columns: minmax(0, 8fr) minmax(0, 13fr);
  }
  .work-interlude--flip .work-interlude-plate { order: 2; }
  .work-interlude--flip .work-interlude-copy {
    order: 1;
    align-items: flex-end;
    text-align: right;
  }
  .work-interlude--flip .work-interlude-cue { flex-direction: row-reverse; }
}

/* The centered variant: one commanding frame, the wall-label beneath it */
.work-interlude--center { justify-items: center; }
.work-interlude--center .work-interlude-plate { width: min(940px, 100%); }
.work-interlude--center .work-interlude-copy {
  align-items: center;
  text-align: center;
  max-width: 56ch;
}
/* symmetric hairlines either side of the centered cue */
.work-interlude--center .work-interlude-cue::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--bronze-soft);
  flex: none;
}

/* — the hung print — */
.work-interlude-plate {
  position: relative;
  width: 100%;
}
/* a soft picture-light pooling on the wall behind the frame */
.work-interlude-plate::before {
  content: "";
  position: absolute;
  inset: -16% 0 -12%;
  pointer-events: none;
  background: radial-gradient(ellipse 78% 62% at 50% 38%,
    rgba(243, 233, 210, 0.075), rgba(201, 160, 100, 0.03) 55%, transparent 78%);
}

/* THE FRAME — a thick, bevelled, burnished dark-bronze moulding.
   28px of moulding at desktop (clamped to 16px on a phone), faked into 3-D
   with layered inset bevels: warm light on the top-left arris, deep shadow on
   the bottom-right — then the whole frame hangs off the wall on a real
   40px/80px drop shadow. */
.work-interlude-frame {
  position: relative;
  padding: clamp(16px, 2vw, 28px); /* the moulding thickness */
  border: 1px solid rgba(0, 0, 0, 0.85);
  background:
    linear-gradient(135deg,
      #5d4722 0%, #2e2110 20%, #4c381b 40%, #1e150a 62%, #41301a 84%, #251a0d 100%);
  box-shadow:
    /* bevelled moulding: crisp arris + broad burnish */
    inset 2px 2px 3px rgba(255, 226, 170, 0.34),
    inset -2px -2px 3px rgba(0, 0, 0, 0.8),
    inset 6px 6px 12px rgba(255, 220, 160, 0.1),
    inset -6px -6px 12px rgba(0, 0, 0, 0.52),
    /* hung off the wall */
    0 40px 80px -30px rgba(0, 0, 0, 1),
    0 18px 38px -18px rgba(0, 0, 0, 0.9),
    0 2px 8px rgba(0, 0, 0, 0.65);
}
/* THE MAT — a wide ivory/cream board, ~60px at desktop (22px on a phone),
   recessed under the moulding's inner lip. */
.work-interlude-mat {
  position: relative;
  padding: clamp(22px, 4.4vw, 60px); /* the mat width */
  background: linear-gradient(160deg, #f4f0e6 0%, #eae3d1 55%, #ded5c0 100%);
  box-shadow:
    0 0 0 1px rgba(18, 12, 5, 0.9),            /* seam against the moulding  */
    inset 0 3px 7px rgba(0, 0, 0, 0.42),        /* lip shadow cast on the mat */
    inset 3px 0 6px rgba(0, 0, 0, 0.22),
    inset -2px -2px 5px rgba(0, 0, 0, 0.16);
}
/* the bevel-cut window: a pale 45° core strip, its cast shadow, then the
   thin dark fillet line where the mat meets the photograph */
.work-interlude-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--bg-raise);
  border: 1px solid rgba(62, 48, 26, 0.7);      /* the fillet */
  box-shadow:
    0 0 0 4px rgba(255, 253, 246, 0.9),         /* the bevel core */
    0 2px 4px 4px rgba(108, 95, 68, 0.5),       /* bevel cast shadow */
    inset 0 2px 10px rgba(0, 0, 0, 0.5);        /* print set into the window */
}
.work-interlude-media img {
  position: absolute;
  left: 0; top: -8%;
  width: 100%; height: 116%;
  object-fit: cover;
  /* the framed print stands alone — brighter than the old scrim-covered bands */
  filter: saturate(0.82) contrast(1.06) brightness(0.88) sepia(0.05);
  will-change: transform;
}
.work-interlude-media::after { /* glass vignette over the print */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 44px rgba(2, 3, 8, 0.4);
}

/* — the caption column — */
.work-interlude-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
  margin: 0;
  padding: 0.4rem 0.2rem;
}
.work-interlude-cue {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--bronze);
}
.work-interlude-cue::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--bronze-soft);
  flex: none;
}
.work-interlude-quote {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.55rem, 2.9vw, 2.6rem);
  line-height: 1.32;
  letter-spacing: 0.004em;
  color: var(--ink);
  max-width: 24ch;
  text-wrap: balance;
}
.work-interlude-rule {
  position: relative;
  width: clamp(54px, 6vw, 84px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bronze), transparent);
}
.work-interlude-rule::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 5px; height: 5px;
  background: var(--bronze);
  transform: translate(-50%, -50%) rotate(45deg);
}
.work-interlude-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.85;
  letter-spacing: 0.01em;
  color: var(--ink-dim);
  max-width: 46ch;
}
.work-interlude-meta {
  width: 100%;
  max-width: 46ch;
  margin-top: 0.4rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1.4rem;
}
.work-interlude-meta-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 340;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: var(--ivory-warm);
}
.work-interlude-meta-plate {
  font-family: var(--font-body);
  font-size: 0.56rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--bronze);
  white-space: nowrap;
}
.work-interlude--center .work-interlude-meta { justify-content: center; gap: 0.5rem 1.6rem; }

/* The signature mark — bronze diamonds flanking the italic monogram */
.sig-monogram {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 340;
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  color: var(--bronze);
}
.sig-monogram i {
  width: 4px; height: 4px;
  background: var(--bronze);
  transform: rotate(45deg);
  opacity: 0.85;
  flex: none;
}
.work-interlude--flip .sig-monogram { align-self: flex-end; }
.work-interlude--center .sig-monogram { align-self: center; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
}

/* Museum mat: hairline outer frame + inset bronze keyline */
.about-portrait-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background: var(--bg-raise);
}
.about-portrait-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201, 160, 100, 0.3);
  z-index: 2;
  pointer-events: none;
}
.about-portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 6, 10, 0.12), transparent 30%, transparent 68%, rgba(5, 6, 10, 0.45));
  pointer-events: none;
}
.about-portrait-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.05) sepia(0.06);
}
.about-figcaption {
  margin-top: 1rem;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.about-figcaption::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--bronze-soft);
  flex: none;
}

/* Bio set in the display serif — reads like an editorial deck */
.about-bio p {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  line-height: 1.78;
  letter-spacing: 0.005em;
  color: var(--ink-dim);
}
.about-bio p + p { margin-top: 1.4rem; }
.about-bio .bio-word { display: inline-block; }

/* The author's hand — a quiet signature closing the bio */
.about-signature {
  margin-top: 1.8rem;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  letter-spacing: 0.03em;
  color: var(--bronze-bright);
}
.about-signature em { color: var(--ivory-warm); }

/* Hairline diamond rule (replaces the old neon divider) */
.glow-divider {
  position: relative;
  height: 1px;
  margin: 2.8rem auto 2.8rem 0;
  width: min(300px, 70%);
  background: linear-gradient(90deg, var(--bronze-soft), transparent);
}
.glow-divider::after {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 5px; height: 5px;
  background: var(--bronze);
  transform: translate(0, -50%) rotate(45deg);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
}
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat-value {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: clamp(2.1rem, 4.2vw, 3rem);
  line-height: 1.1;
  color: var(--bronze);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.64rem;
  font-weight: 500;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 3.5rem;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(3rem, 6vw, 6rem); }
}

.contact-form { display: grid; gap: 1.6rem; }
.form-field { display: grid; gap: 0.55rem; }
.form-field label {
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--ink-faint);
}
.form-field input, .form-field textarea {
  font: inherit;
  color: var(--ink);
  background: rgba(243, 239, 231, 0.02);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.95rem 1.1rem;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
  resize: vertical;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--ink-faint); }
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--bronze-soft);
  box-shadow: 0 0 0 1px rgba(201, 160, 100, 0.3), 0 0 26px -8px var(--glow-bronze);
  background: rgba(201, 160, 100, 0.025);
}

.submit-btn { justify-self: start; }
.form-note { font-size: 0.85rem; color: var(--bronze-bright); min-height: 1.4em; }

.contact-aside { display: flex; flex-direction: column; }
.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 340;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  letter-spacing: 0.01em;
  margin: 0.8rem 0 0.9rem;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.35rem;
  align-self: start;
  transition: color 0.3s, border-color 0.3s;
  will-change: transform;
}
.contact-email:hover { color: var(--bronze-bright); border-color: var(--bronze-soft); }
.contact-phone {
  display: inline-block;
  align-self: start;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 340;
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  letter-spacing: 0.02em;
  margin: 0 0 2.6rem;
  color: var(--ink-dim);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.35rem;
  transition: color 0.3s, border-color 0.3s;
  will-change: transform;
}
.contact-phone:hover { color: var(--bronze-bright); border-color: var(--bronze-soft); }
.contact-social-label { margin-bottom: 1rem; }

.social-list { display: grid; gap: 0.7rem; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--ink-dim);
  padding: 0.35rem 0;
  transition: color 0.3s, letter-spacing 0.4s var(--ease-premium);
  will-change: transform;
}
.social-link::before {
  content: "→";
  color: var(--bronze);
  letter-spacing: 0;
  transition: transform 0.35s var(--ease-premium);
}
.social-link:hover { color: var(--ink); letter-spacing: 0.3em; }
.social-link:hover::before { transform: translateX(5px); }

.contact-closing {
  position: relative;
  margin-top: auto;
  padding-top: 3rem;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 300;
  font-size: 1.12rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--ink-faint);
}
.contact-closing::before {
  content: "";
  position: absolute;
  top: 1.6rem;
  left: 0;
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, var(--bronze-soft), transparent);
}
.closing-sig {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 340;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--bronze);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.8rem clamp(1.25rem, 5vw, 5rem) 2.4rem;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
/* The signature seal — hairlines closing on the bronze monogram */
.footer-sig {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 420px;
  margin: 0 auto 2.2rem;
}
.footer-sig-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--bronze-soft)); }
.footer-sig-line:last-child { background: linear-gradient(90deg, var(--bronze-soft), transparent); }
.footer-sig-diamond {
  width: 4px; height: 4px;
  background: var(--bronze);
  transform: rotate(45deg);
  flex: none;
  opacity: 0.85;
}
.footer-sig-mark {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 340;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  text-transform: none;
  color: var(--bronze);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
}
.footer-name { letter-spacing: 0.18em; }
.footer-tag { margin-right: auto; }
.footer-star { color: var(--bronze); }
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--ink-dim);
  transition: color 0.3s;
}
.back-to-top:hover { color: var(--bronze-bright); }
.back-to-top svg { transition: transform 0.35s var(--ease-premium); }
.back-to-top:hover svg { transform: translateY(-3px); }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 940;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-premium), visibility 0s 0.4s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s var(--ease-premium);
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 8, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
/* The stage rises and settles as the room dims — a projector coming up to speed. */
.lightbox-stage {
  position: relative;
  z-index: 1;
  max-width: min(1200px, 92vw);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  transform: scale(0.955) translateY(18px);
  transition: transform 0.55s var(--ease-premium);
}
.lightbox.is-open .lightbox-stage { transform: none; }
.lightbox-chrome {
  opacity: 0;
  transition: opacity 0.45s ease 0.18s;
}
.lightbox.is-open .lightbox-chrome { opacity: 1; }
#lightbox-img {
  max-width: 100%;
  max-height: calc(82vh - 4rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.95), 0 0 0 1px var(--hairline);
}
.lightbox-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 0.2rem 0;
}
#lightbox-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 340;
  font-size: 1.1rem;
  letter-spacing: 0.015em;
  color: var(--ivory-warm);
}
.lightbox-meta {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--bronze);
  text-align: right;
}

.lightbox-chrome { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.lightbox-chrome > * { pointer-events: auto; }
.lightbox-counter {
  position: absolute;
  top: 1.5rem;
  left: clamp(1.2rem, 4vw, 2.5rem);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}
.lightbox-btn {
  position: absolute;
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: rgba(5, 6, 10, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  transition: border-color 0.3s, box-shadow 0.3s, color 0.3s;
}
.lightbox-btn:hover {
  border-color: var(--bronze-soft);
  color: var(--bronze-bright);
  box-shadow: 0 0 20px -4px var(--glow-bronze);
}
.lightbox-prev { left: clamp(0.8rem, 3vw, 2.2rem); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: clamp(0.8rem, 3vw, 2.2rem); top: 50%; transform: translateY(-50%); }
.lightbox-close { top: 1.1rem; right: clamp(0.8rem, 3vw, 2.2rem); }

@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { top: auto; bottom: 1.2rem; transform: none; }
  .lightbox-prev { left: 1rem; }
  .lightbox-next { right: auto; left: 4.6rem; }
}

/* Lock page scroll while lightbox / mobile menu is open */
body.is-locked { overflow: hidden; }

/* ==========================================================================
   REDUCED MOTION — keep everything readable, kill the theatrics
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-inner { animation: none; }
  .grain { animation: none; }
  .hero-scroll-line::after { animation: none; }
  .cursor-dot, .cursor-ring { display: none; }
  /* Prints hang still: no hover zoom, no lift — frames and plates stay fully set. */
  .work-item img { transform: none !important; }
  .work-item-inner { transform: none !important; }
  /* Spread plates read statically: no parallax drift, type fully set. */
  .threshold-media img, .work-interlude-media img { transform: none !important; }
  .th-word { transform: none !important; }
  .lightbox-stage { transform: none; }
}
