/* =============================================================================
   BUJ MEDIA — Film & Photography Studio
   main.css  ·  hand-authored, no build step
   -----------------------------------------------------------------------------
   Contents
     01  Design tokens
     02  Reset & base
     03  Typography
     04  Layout primitives
     05  Utilities
     06  Film grain + vignette
     07  Curtain / page transition
     08  Header + primary nav
     09  Mobile menu
     10  Buttons & links
     11  Custom cursor
     12  Hero
     13  Section intro / eyebrow
     14  Work cards + featured grid
     15  Marquee
     16  Services
     17  Storytelling
     18  Testimonials
     19  Journal
     20  Contact CTA + footer
     21  Page: Work index (filters + grid)
     22  Page: Project detail
     23  Page: About
     24  Page: Journal (index + article)
     25  Page: Contact (form)
     26  Page: 404
     27  Reveal animations
     28  Reduced-motion & fine-tuning
========================================================================== */

/* 01 · DESIGN TOKENS ======================================================= */
:root {
  color-scheme: dark;

  /* palette — warm near-black + warm white + antique gold */
  --bg:            #0a0a0b;
  --bg-1:          #101012;
  --bg-2:          #17171a;
  --bg-3:          #1f1f23;
  --fg:            #f3efe6;
  --fg-2:          #b1aba1;   /* secondary text  · ~8:1 on --bg  */
  --fg-3:          #837c71;   /* meta / labels   · ~4.2:1 · use >=14px only */
  --line:          rgba(243, 239, 230, 0.12);
  --line-2:        rgba(243, 239, 230, 0.24);
  --gold:          #c8a15c;   /* ~7.1:1 on --bg */
  --gold-bright:   #e4c78a;   /* hovers + focus ring · ~10.5:1 */
  --gold-ink:      #0a0a0b;
  --danger:        #e97b73;
  --ok:           #86c193;

  /* typography */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --font-sans:    "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-hero:  clamp(2.85rem, 1.6rem + 6.2vw, 7rem);
  --fs-h1:    clamp(2.25rem, 1.5rem + 3.6vw, 4.25rem);
  --fs-h2:    clamp(1.7rem, 1.25rem + 2.1vw, 2.75rem);
  --fs-h3:    clamp(1.2rem, 1.05rem + 0.7vw, 1.55rem);
  --fs-lg:    clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  --fs-body:  1.0625rem;
  --fs-sm:    0.9rem;
  --fs-xs:    0.75rem;

  --lh-tight: 1.05;
  --lh-snug:  1.22;
  --lh-body:  1.65;
  --tracking-label: 0.16em;

  /* space scale (8pt based, generous for an editorial marketing site) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --s-8: 8rem;
  --s-section: clamp(4.5rem, 3rem + 7vw, 10rem);

  /* widths */
  --w-page: 1440px;
  --w-wide: 1720px;
  --w-text: 62ch;

  /* radius — kept nearly square for a cinematic feel */
  --r-xs: 2px;
  --r-sm: 3px;
  --r-md: 6px;
  --r-pill: 999px;

  /* motion */
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 180ms;
  --dur-2: 320ms;
  --dur-3: 620ms;
  --dur-4: 900ms;

  /* z-index scale */
  --z-grain: 2;
  --z-nav: 100;
  --z-cursor: 400;
  --z-menu: 500;
  --z-curtain: 700;

  --header-h: 78px;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (max-width: 720px) {
  :root { --header-h: 62px; }
}

/* 02 · RESET & BASE ====================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, picture, video, canvas, svg, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
img { background: var(--bg-2); }

input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

:target { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

::selection { background: var(--gold); color: var(--gold-ink); }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 999;
  padding: 0.75rem 1.1rem;
  background: var(--gold);
  color: var(--gold-ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--r-xs);
  transform: translateY(-160%);
  transition: transform var(--dur-2) var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

/* 03 · TYPOGRAPHY ======================================================= */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 380;
  font-optical-sizing: auto;
  line-height: var(--lh-snug);
  letter-spacing: -0.012em;
  color: var(--fg);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { text-wrap: pretty; }

.display {
  font-family: var(--font-display);
  font-weight: 360;
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}

.lede {
  font-family: var(--font-display);
  font-weight: 340;
  font-size: var(--fs-h2);
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.prose { max-width: var(--w-text); }
.prose p + p { margin-top: 1.35em; }
.prose p { color: var(--fg-2); }
.prose a {
  color: var(--fg);
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--dur-2) var(--ease);
}
.prose a:hover { background-size: 100% 2px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow--plain::before { display: none; }

.text-2 { color: var(--fg-2); }
.text-3 { color: var(--fg-3); }
.serif { font-family: var(--font-display); font-weight: 380; }
.nums { font-variant-numeric: tabular-nums; }

/* 04 · LAYOUT PRIMITIVES ================================================ */
.container {
  width: 100%;
  max-width: var(--w-page);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 0.5rem + 3vw, 3.5rem);
}
.container--wide { max-width: var(--w-wide); }
.container--text { max-width: calc(var(--w-text) + 6rem); }

.section { padding-block: var(--s-section); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.section--flush-top { padding-top: 0; }

.divider { height: 1px; background: var(--line); border: 0; }

.grid { display: grid; gap: var(--s-4); }
.stack > * + * { margin-top: var(--s-3); }
.stack-lg > * + * { margin-top: var(--s-5); }

/* 05 · UTILITIES ======================================================= */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }
.no-js\:show { display: none; }

/* 06 · FILM GRAIN + VIGNETTE =========================================== */
.fx-grain,
.fx-vignette {
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: var(--z-grain);
}
.fx-grain {
  opacity: 0.05;
  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.82' 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");
}
.fx-vignette {
  z-index: 1;
  background:
    radial-gradient(120% 80% at 50% 0%, transparent 55%, rgba(0, 0, 0, 0.35) 100%),
    radial-gradient(120% 90% at 50% 100%, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
}

/* 07 · CURTAIN / PAGE TRANSITION ====================================== */
.curtain {
  position: fixed;
  inset: 0;
  z-index: var(--z-curtain);
  display: grid;
  place-items: center;
  background: var(--bg);
  transform: translateY(0);
  transition: transform 0.85s var(--ease);
  will-change: transform;
}
.curtain[data-state="open"] { transform: translateY(-101%); }
.curtain[data-state="gone"] { display: none; }
.curtain__mark {
  font-family: var(--font-display);
  font-weight: 340;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem);
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: var(--fg);
  opacity: 0;
  animation: markIn 0.6s var(--ease) 0.05s forwards;
}
@keyframes markIn {
  from { opacity: 0; letter-spacing: 0.5em; text-indent: 0.5em; }
  to   { opacity: 1; }
}
html.no-js .curtain { display: none; }

/* 08 · HEADER + PRIMARY NAV ========================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--dur-3) var(--ease), border-color var(--dur-3) var(--ease), backdrop-filter var(--dur-3) var(--ease);
  border-bottom: 1px solid transparent;
}
/* Keeps the wordmark and nav legible over any hero frame before the solid
   state kicks in. Fades out once the header goes solid on scroll. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  transition: opacity var(--dur-3) var(--ease);
}
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.site-header__inner {
  width: 100%;
  max-width: var(--w-wide);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 0.5rem + 3vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--fg);
}
.wordmark img {
  display: block;
  height: 40px;
  width: auto;
  background: none;            /* transparent PNG — no placeholder fill */
}
@media (max-width: 720px) {
  .wordmark img { height: 30px; }
}

.primary-nav { display: flex; align-items: center; gap: clamp(1.5rem, 1rem + 1.5vw, 2.75rem); }
.primary-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 1rem + 1.5vw, 2.75rem);
  list-style: none;
  padding: 0;
}
.primary-nav__link {
  position: relative;
  font-size: var(--fs-sm);
  letter-spacing: 0.03em;
  color: var(--fg-2);
  padding-block: 0.4rem;
  transition: color var(--dur-2) var(--ease);
}
.primary-nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-2) var(--ease);
}
.primary-nav__link:hover,
.primary-nav__link:focus-visible { color: var(--fg); }
.primary-nav__link:hover::after,
.primary-nav__link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.primary-nav__link[aria-current="page"] { color: var(--fg); }
.primary-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--fg);
}
.nav-toggle__bars { position: relative; width: 26px; height: 12px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur-2) var(--ease), top var(--dur-2) var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 10px; }

@media (max-width: 900px) {
  .primary-nav__list, .primary-nav .btn { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* 09 · MOBILE MENU ================================================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--bg);
  padding: calc(var(--header-h) + 2rem) clamp(1.15rem, 0.5rem + 3vw, 3.5rem) 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease);
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.mobile-menu__link {
  display: block;
  font-family: var(--font-display);
  font-weight: 340;
  font-size: clamp(2rem, 1.4rem + 6vw, 3.4rem);
  letter-spacing: -0.01em;
  color: var(--fg);
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(18px);
}
.mobile-menu.is-open .mobile-menu__link {
  animation: menuLinkIn 0.5s var(--ease) forwards;
}
.mobile-menu.is-open .mobile-menu__link:nth-child(1) { animation-delay: 0.10s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { animation-delay: 0.16s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { animation-delay: 0.22s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { animation-delay: 0.28s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(5) { animation-delay: 0.34s; }
@keyframes menuLinkIn { to { opacity: 1; transform: translateY(0); } }
.mobile-menu__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: var(--fs-sm);
  color: var(--fg-2);
}
.mobile-menu__foot a:hover { color: var(--gold); }

/* Keep the header (and its toggle, now an X) above the full-screen menu
   so it stays operable while the menu is open. */
body.menu-open .site-header { z-index: calc(var(--z-menu) + 1); }
body.menu-open .site-header::before { opacity: 0; }
body.menu-open .nav-toggle__bars::before { top: 5px; transform: rotate(45deg); }
body.menu-open .nav-toggle__bars::after  { top: 5px; transform: rotate(-45deg); }

/* 10 · BUTTONS & LINKS ============================================= */
.btn {
  --btn-fg: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 46px;
  padding: 0.7rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--btn-fg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  background: transparent;
  transition: color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease),
              background-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
  will-change: transform;
}
.btn:hover { color: var(--gold-bright); border-color: var(--gold); }
.btn:active { transform: translateY(1px); }

.btn--solid {
  color: var(--gold-ink);
  background: var(--gold);
  border-color: var(--gold);
}
.btn--solid:hover { color: var(--gold-ink); background: var(--gold-bright); border-color: var(--gold-bright); }

.btn--lg { min-height: 54px; padding: 0.95rem 2rem; font-size: 0.86rem; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
}
.arrow-link svg { width: 18px; height: 10px; transition: transform var(--dur-2) var(--ease); }
.arrow-link:hover { color: var(--gold-bright); }
.arrow-link:hover svg { transform: translateX(6px); }

.underline-link {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size var(--dur-3) var(--ease), color var(--dur-2) var(--ease);
}
.underline-link:hover { background-size: 100% 1px; }

/* 11 · CUSTOM CURSOR ============================================== */
.cursor, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: var(--z-cursor);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease);
}
.cursor {
  width: 5px; height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: var(--gold-bright);
}
.cursor-ring {
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(243, 239, 230, 0.45);
  transition: width var(--dur-2) var(--ease), height var(--dur-2) var(--ease),
              margin var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease);
}
.cursor-ring__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  opacity: 0;
  transition: opacity var(--dur-1) var(--ease);
}
html.has-cursor.cursor-ready .cursor,
html.has-cursor.cursor-ready .cursor-ring { opacity: 1; }
html.has-cursor.cursor-view .cursor-ring {
  width: 84px; height: 84px;
  margin: -42px 0 0 -42px;
  background: rgba(200, 161, 92, 0.09);
  border-color: rgba(200, 161, 92, 0.5);
}
html.has-cursor.cursor-view .cursor-ring__label { opacity: 1; }
html.has-cursor.cursor-hover .cursor-ring { border-color: var(--gold); }
html.has-cursor .work-card,
html.has-cursor .showreel__trigger,
html.has-cursor .next-project { cursor: none; }

/* 12 · HERO ==================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: clip;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.05) brightness(0.62) saturate(0.85);
  transform: scale(1.08);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0.15) 35%, rgba(10,10,11,0.55) 75%, var(--bg) 100%);
}
.hero__inner {
  width: 100%;
  padding-bottom: clamp(3rem, 2rem + 6vw, 7rem);
  padding-top: calc(var(--header-h) + 3rem);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 340;
  font-size: var(--fs-hero);
  line-height: 0.98;
  letter-spacing: -0.022em;
  max-width: 16ch;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; will-change: transform; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1.5rem;
  margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  max-width: 46ch;
  color: var(--fg-2);
  font-size: var(--fs-lg);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: clamp(1.75rem, 1rem + 2vw, 2.75rem); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fg-3);
}
.scroll-cue__line { width: 1px; height: 46px; background: linear-gradient(var(--fg-3), transparent); overflow: hidden; }
.scroll-cue__line::after {
  content: "";
  display: block;
  width: 100%; height: 40%;
  background: var(--gold);
  animation: cueDrop 2.4s var(--ease-in-out) infinite;
}
@keyframes cueDrop {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(250%); }
}
@media (max-width: 600px) { .scroll-cue { display: none; } }

/* 13 · SECTION INTRO ========================================== */
.section-intro {
  display: grid;
  gap: 1.25rem;
  max-width: 46ch;
  margin-bottom: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}
.section-intro__title { font-size: var(--fs-h2); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
}
.section-head__title { font-size: var(--fs-h2); }

/* 14 · WORK CARDS + FEATURED GRID ============================ */
.featured { display: grid; gap: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.featured__row { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
@media (min-width: 860px) {
  .featured__row--two { grid-template-columns: 1fr 1fr; align-items: start; }
  .featured__row--offset .work-card:nth-child(2) { margin-top: clamp(3rem, 8vw, 7rem); }
}

.work-card { position: relative; display: block; color: inherit; }
.work-card__media {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xs);
  aspect-ratio: 4 / 5;
  background: var(--bg-2);
}
.work-card--wide .work-card__media { aspect-ratio: 5 / 4; }
.work-card--tall .work-card__media { aspect-ratio: 3 / 4; }
.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.18) contrast(1.05) brightness(0.9) saturate(0.88);
  transform: scale(1.01);
  transition: transform var(--dur-4) var(--ease), filter var(--dur-4) var(--ease);
}
.work-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(10, 10, 11, 0.45) 100%);
  opacity: 0.5;
  transition: opacity var(--dur-3) var(--ease);
}
.work-card:hover .work-card__media img,
.work-card:focus-visible .work-card__media img {
  transform: scale(1.05);
  filter: grayscale(0) contrast(1.03) brightness(1) saturate(1);
}
.work-card:hover .work-card__media::after { opacity: 0.25; }

.work-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 639px) {
  .work-card__meta { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
}
.work-card__title { font-size: var(--fs-h3); font-weight: 400; transition: color var(--dur-2) var(--ease); }
.work-card:hover .work-card__title { color: var(--gold-bright); }
.work-card__tag {
  flex-shrink: 0;
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fg-3);
}
.work-card__index {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--fg);
  mix-blend-mode: difference;
}

/* 15 · MARQUEE ============================================= */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: clamp(1.75rem, 1rem + 2vw, 2.75rem);
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: clamp(2.5rem, 5vw, 5rem);
  will-change: transform;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--font-display);
  font-weight: 340;
  font-size: clamp(1.1rem, 0.9rem + 1vw, 1.6rem);
  color: var(--fg-2);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
}
.marquee__item::after { content: "\2217"; color: var(--gold); font-size: 0.7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 16 · SERVICES ========================================== */
.services { display: grid; gap: 0; border-top: 1px solid var(--line); }
.service {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  border-bottom: 1px solid var(--line);
}
.service__num {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--gold);
}
.service__title { font-size: var(--fs-h2); margin-top: 0.35rem; }
.service__body { display: grid; gap: 1.5rem; align-content: start; }
.service__blurb { color: var(--fg-2); max-width: 52ch; }
.service__list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  color: var(--fg-2);
}
.service__list li { display: flex; gap: 0.7rem; align-items: baseline; }
.service__list li::before { content: "\2014"; color: var(--gold); flex-shrink: 0; }
@media (max-width: 720px) {
  .service { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* 17 · STORYTELLING ===================================== */
.showreel { position: relative; }
.showreel__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-xs);
  background: var(--bg-2);
}
.showreel__frame--vertical {
  aspect-ratio: 9 / 16;
  max-width: min(420px, 78vw);
  margin-inline: auto;
}
.showreel__frame img,
.showreel__frame iframe,
.showreel__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.showreel__frame video { background: #000; }
.showreel__frame img { filter: grayscale(0.2) contrast(1.05) brightness(0.7); }
.showreel__trigger {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--fg);
  background: rgba(10, 10, 11, 0.15);
  transition: background var(--dur-3) var(--ease);
}
.showreel__trigger:hover { background: rgba(10, 10, 11, 0.05); }
.showreel__play {
  display: grid;
  place-items: center;
  width: clamp(74px, 10vw, 108px);
  aspect-ratio: 1;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 45%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.showreel__trigger:hover .showreel__play { border-color: var(--gold); transform: scale(1.06); }
.showreel__play svg { width: 28%; height: 28%; fill: var(--fg); margin-left: 12%; }
.showreel__label {
  position: absolute;
  left: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fg-2);
}

/* 18 · TESTIMONIALS ==================================== */
.quote-block { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 3.5rem); max-width: 40ch; }
.quote-block__q {
  font-family: var(--font-display);
  font-weight: 320;
  font-size: var(--fs-h2);
  line-height: 1.34;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.quote-block__q::before { content: "\201C"; color: var(--gold); margin-right: 0.06em; }
.quote-block__q::after { content: "\201D"; color: var(--gold); }
.quote-block__cite {
  display: grid;
  gap: 0.2rem;
  font-style: normal;
  font-size: var(--fs-sm);
}
.quote-block__cite b { font-weight: 500; color: var(--fg); }
.quote-block__cite span { color: var(--fg-3); }
.quotes { display: grid; gap: clamp(3rem, 2rem + 5vw, 6rem); }
@media (min-width: 900px) {
  .quotes { grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 4rem); }
  .quote-block__q { font-size: var(--fs-h3); }
}

/* 19 · JOURNAL ======================================== */
.journal-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.journal-row {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr) 9rem;
  gap: 1.25rem clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  border-bottom: 1px solid var(--line);
  transition: background var(--dur-2) var(--ease);
}
.journal-row:hover { background: var(--bg-1); }
.journal-row__date { font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.journal-row__title { display: block; font-size: var(--fs-h3); font-weight: 400; transition: color var(--dur-2) var(--ease); }
.journal-row:hover .journal-row__title { color: var(--gold-bright); }
.journal-row__excerpt { display: block; margin-top: 0.5rem; color: var(--fg-2); font-size: var(--fs-sm); max-width: 60ch; }
.journal-row__thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-xs);
  margin-left: auto;
  width: 100%;
}
.journal-row__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.05) brightness(0.9);
  transition: transform var(--dur-4) var(--ease);
}
.journal-row:hover .journal-row__thumb img { transform: scale(1.05); }
@media (max-width: 820px) {
  .journal-row { grid-template-columns: 1fr; }
  .journal-row__thumb { display: none; }
}

/* 20 · CONTACT CTA + FOOTER ========================== */
.cta {
  position: relative;
  text-align: center;
  display: grid;
  gap: clamp(1.75rem, 1rem + 3vw, 2.75rem);
  justify-items: center;
}
.cta__title {
  font-family: var(--font-display);
  font-weight: 320;
  font-size: var(--fs-hero);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.cta__sub { color: var(--fg-2); max-width: 44ch; }

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) 2.5rem;
}
.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
}
.site-footer__mark {
  display: block;
  height: 46px;
  width: auto;
  background: none;
}
.site-footer__tag { margin-top: 1rem; color: var(--fg-2); max-width: 34ch; font-size: var(--fs-sm); }
.footer-col h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.7rem; font-size: var(--fs-sm); }
.footer-col a { color: var(--fg-2); }
.footer-col a:hover { color: var(--gold); }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  margin-top: clamp(2.5rem, 2rem + 3vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
  color: var(--fg-3);
}
.site-footer__base a { color: var(--fg-3); text-decoration: underline; }
.site-footer__base a:hover { color: var(--gold); }

/* 21 · PAGE: WORK INDEX ============================= */
.page-head { padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 5vw, 7rem)); }
.page-head__title {
  font-family: var(--font-display);
  font-weight: 330;
  font-size: var(--fs-hero);
  line-height: 1.0;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.page-head__sub { margin-top: 1.5rem; color: var(--fg-2); max-width: 52ch; font-size: var(--fs-lg); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.75rem;
  align-items: center;
  padding-block: 1.5rem;
  margin-top: clamp(2.5rem, 2rem + 3vw, 4rem);
  border-block: 1px solid var(--line);
}
.filter-btn {
  position: relative;
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  color: var(--fg-3);
  padding: 0.5rem 0;
  transition: color var(--dur-2) var(--ease);
}
.filter-btn::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0.15rem;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-2) var(--ease);
}
.filter-btn:hover { color: var(--fg); }
.filter-btn[aria-pressed="true"] { color: var(--fg); font-weight: 600; }
.filter-btn[aria-pressed="true"]::after { transform: scaleX(1); }
.filter-count { margin-left: auto; font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }

.work-grid {
  display: grid;
  gap: clamp(2rem, 1.5rem + 3vw, 4rem) clamp(1.5rem, 1rem + 2vw, 3rem);
  margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-grid > .span-2 { grid-column: 1 / -1; }
  .work-grid > .span-2 .work-card__media { aspect-ratio: 5 / 4; }
  .work-grid > .offset-down { transform: translateY(clamp(2rem, 6vw, 5rem)); }
}
.work-grid .work-card { opacity: 1; transition: opacity var(--dur-2) var(--ease); }
.work-grid .work-card.is-filtering { opacity: 0; }

.load-state { padding-block: 4rem; text-align: center; color: var(--fg-3); font-size: var(--fs-sm); }

/* 22 · PAGE: PROJECT DETAIL ======================== */
.project-head { padding-top: calc(var(--header-h) + clamp(2.5rem, 2rem + 4vw, 5rem)); }
.project-head__title {
  font-family: var(--font-display);
  font-weight: 330;
  font-size: var(--fs-hero);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-top: 1.25rem;
  max-width: 16ch;
}
.project-head__summary { margin-top: 1.75rem; max-width: 56ch; font-size: var(--fs-lg); color: var(--fg-2); }
.project-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
  margin-top: clamp(2.5rem, 2rem + 3vw, 3.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 700px) { .project-meta { grid-template-columns: repeat(4, 1fr); } }
.project-meta dt {
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 0.5rem;
}
.project-meta dd { font-size: var(--fs-sm); color: var(--fg); }

.project-hero {
  margin-top: clamp(2.5rem, 2rem + 4vw, 4.5rem);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--r-xs);
  background: var(--bg-2);
}
.project-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.12) contrast(1.04) brightness(0.92) saturate(0.9);
  transform: scale(1.06);
  will-change: transform;
}

.gallery { display: grid; gap: clamp(1rem, 0.5rem + 2vw, 2rem); margin-top: clamp(1rem, 0.5rem + 2vw, 2rem); }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--r-xs); background: var(--bg-2); }
.gallery__item img {
  width: 100%;
  object-fit: cover;
  filter: grayscale(0.12) contrast(1.04) brightness(0.94) saturate(0.92);
}
.gallery__item--full { grid-column: 1 / -1; }
.gallery__item--full img { aspect-ratio: 4 / 5; height: 100%; }
.gallery__item--wide { grid-column: 1 / -1; }
.gallery__item--wide img { aspect-ratio: 3 / 2; height: 100%; }
.gallery__item--half img { aspect-ratio: 4 / 5; height: 100%; }
.gallery__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.6rem clamp(0.9rem, 0.4rem + 1.6vw, 1.5rem) clamp(0.8rem, 0.5rem + 1vw, 1.15rem);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fg);
  background: linear-gradient(to top, rgba(10, 10, 11, 0.74), rgba(10, 10, 11, 0));
  pointer-events: none;
}
@media (min-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; }
}

/* ATHLETES ROSTER — single frames, no full case study yet ================ */
.athlete-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.75rem, 0.4rem + 1.2vw, 1.35rem);
}
@media (min-width: 640px) {
  .athlete-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .athlete-grid { grid-template-columns: repeat(4, 1fr); }
}
.athlete-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-xs);
  background: var(--bg-2);
}
.athlete-card--wide {
  grid-column: span 2;
  aspect-ratio: 5 / 3;
}
.athlete-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.45) contrast(1.06) brightness(0.92);
  transition: transform var(--dur-3) var(--ease);
}
.athlete-card:hover img { transform: scale(1.045); }
.athlete-card__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.4rem 1rem 0.85rem;
  background: linear-gradient(to top, rgba(10, 10, 11, 0.82), rgba(10, 10, 11, 0));
}
.athlete-card__name {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--fg);
}
.athlete-card__title {
  display: block;
  margin-top: 0.2rem;
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fg-3);
}

.credits {
  display: grid;
  gap: 0.9rem;
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  max-width: 40ch;
}
.credits__row { display: flex; justify-content: space-between; gap: 1.5rem; font-size: var(--fs-sm); }
.credits__row dt { color: var(--fg-3); }
.credits__row dd { color: var(--fg); text-align: right; }

.next-project {
  display: block;
  margin-top: clamp(4rem, 3rem + 5vw, 7rem);
  padding-block: clamp(2.5rem, 2rem + 4vw, 4.5rem);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  text-align: center;
}
.next-project__label { display: block; font-size: var(--fs-xs); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--fg-3); }
.next-project__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 330;
  font-size: var(--fs-h1);
  letter-spacing: -0.02em;
  margin-top: 0.75rem;
  transition: color var(--dur-2) var(--ease);
}
.next-project:hover .next-project__title { color: var(--gold-bright); }

/* 23 · PAGE: ABOUT =============================== */
.about-lede {
  padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 5vw, 7rem));
}
.about-lede__text {
  font-family: var(--font-display);
  font-weight: 320;
  font-size: var(--fs-h1);
  line-height: 1.24;
  letter-spacing: -0.015em;
  max-width: 22ch;
}
.about-cols { display: grid; gap: 2rem; }
@media (min-width: 820px) { .about-cols { grid-template-columns: 0.7fr 1.3fr; gap: clamp(2rem, 5vw, 5rem); } }
.about-cols__label { font-size: var(--fs-xs); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--fg-3); }

.team { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 3.5rem); }
@media (min-width: 700px) { .team { grid-template-columns: 1fr 1fr; } }
.team__portrait {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-xs);
  background: var(--bg-2);
}
.team__portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.06) brightness(0.9);
}
.team__name { font-size: var(--fs-h3); margin-top: 1.25rem; }
.team__role { color: var(--gold); font-size: var(--fs-sm); margin-top: 0.3rem; }
.team__bio { color: var(--fg-2); font-size: var(--fs-sm); margin-top: 0.75rem; max-width: 40ch; }

/* Founder / "meet your photographer" */
.founder { display: grid; gap: clamp(2rem, 1.5rem + 4vw, 4rem); align-items: start; }
@media (min-width: 880px) {
  .founder { grid-template-columns: 0.82fr 1.18fr; }
}
.founder__portrait {
  position: relative;
  aspect-ratio: 2528 / 2080;
  overflow: hidden;
  border-radius: var(--r-xs);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
}
.founder__portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) contrast(1.05) brightness(0.92);
}
.founder__portrait[data-empty] {
  border: 1px dashed var(--line-2);
}
.founder__portrait[data-empty]::before {
  content: "Aleks + camera";
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--fg-3);
}
.founder__portrait[data-empty]::after {
  content: "add assets/img/photos/aleks-portrait.jpg";
  position: absolute;
  inset: auto 1.25rem 1.25rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--fg-3);
}
.founder__name { font-size: var(--fs-h2); }
.founder__role { color: var(--gold); font-size: var(--fs-sm); letter-spacing: 0.04em; margin-top: 0.4rem; }
.founder__bio { margin-top: 1.75rem; max-width: 60ch; }
.founder__bio p { color: var(--fg-2); }
.founder__bio p + p { margin-top: 1.15em; }
.founder__quote {
  font-family: var(--font-display);
  font-weight: 320;
  font-size: var(--fs-h3);
  line-height: 1.4;
  color: var(--fg);
  border-left: 2px solid var(--gold);
  padding-left: 1.25rem;
  margin-top: 2rem;
}
.founder__sign {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--gold-bright);
  margin-top: 1.75rem;
}

.process { display: grid; gap: 0; border-top: 1px solid var(--line); }
.process__step {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  border-bottom: 1px solid var(--line);
}
.process__num { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--gold); }
.process__title { font-size: var(--fs-h3); }
.process__text { color: var(--fg-2); font-size: var(--fs-sm); margin-top: 0.6rem; max-width: 52ch; }

.recognition { display: grid; gap: 0; }
.recognition__row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.recognition__row span:first-child { color: var(--fg); }
.recognition__row span:last-child { color: var(--fg-3); font-variant-numeric: tabular-nums; }

/* 24 · PAGE: JOURNAL ARTICLE =================== */
.article-head { padding-top: calc(var(--header-h) + clamp(2.5rem, 2rem + 4vw, 5rem)); }
.article-head__eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.article-head__title {
  font-family: var(--font-display);
  font-weight: 330;
  font-size: var(--fs-h1);
  line-height: 1.12;
  letter-spacing: -0.018em;
  margin-top: 1.25rem;
  max-width: 20ch;
}
.article-cover {
  margin-top: clamp(2.5rem, 2rem + 4vw, 4rem);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--r-xs);
  background: var(--bg-2);
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.15) contrast(1.04) brightness(0.92); }
.article-body { max-width: var(--w-text); margin-top: clamp(2.5rem, 2rem + 4vw, 4rem); }
.article-body > * + * { margin-top: 1.5rem; }
.article-body p { color: var(--fg-2); }
.article-body h2 { font-size: var(--fs-h3); margin-top: 2.5rem; color: var(--fg); }
.article-body blockquote {
  font-family: var(--font-display);
  font-weight: 320;
  font-size: var(--fs-h3);
  line-height: 1.4;
  color: var(--fg);
  padding-left: 1.5rem;
  border-left: 2px solid var(--gold);
  margin-block: 2.5rem;
}
.article-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

/* 25 · PAGE: CONTACT =========================== */
.packages { display: grid; gap: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.package-group { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.package-group__label {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--gold);
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.package {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 1rem clamp(2rem, 5vw, 5rem);
  padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.package--compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.35rem clamp(1.25rem, 4vw, 2.5rem);
  padding-block: 0.95rem;
}
.package--compact .package__name { font-size: var(--fs-lg); }
.package__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem 0.9rem; align-content: start; }
.package__name { font-size: var(--fs-h3); font-weight: 400; }
.package--popular .package__name { color: var(--gold-bright); }
.package__price {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.package__head .package__price { margin-left: auto; }
.package--compact .package__price { font-size: var(--fs-lg); }
.package__badge {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  padding: 0.25rem 0.7rem;
}
.package__body { display: grid; gap: 1.1rem; align-content: start; }
.package__blurb { color: var(--fg-2); max-width: 52ch; }
.package__list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  font-size: var(--fs-sm);
  color: var(--fg-2);
}
.package__list li { display: flex; gap: 0.7rem; align-items: baseline; }
.package__list li::before { content: "\2014"; color: var(--gold); flex-shrink: 0; }
.packages__note {
  margin-top: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  max-width: 58ch;
  color: var(--fg-3);
  font-size: var(--fs-sm);
}
.packages__note--inquiry {
  margin-top: 0.75rem;
  color: var(--fg-2);
}
@media (max-width: 720px) {
  .package:not(.package--compact) { grid-template-columns: 1fr; gap: 0.5rem; }
  .package:not(.package--compact) .package__head { width: 100%; }
  .package:not(.package--compact) .package__head .package__price { margin-left: 0; }
}

.contact-grid { display: grid; gap: clamp(3rem, 2rem + 5vw, 6rem); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; } }

.contact-aside__title {
  font-family: var(--font-display);
  font-weight: 330;
  font-size: var(--fs-h1);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.contact-aside__text { margin-top: 1.5rem; color: var(--fg-2); max-width: 40ch; }
.contact-details { display: grid; gap: 1.5rem; margin-top: clamp(2rem, 1.5rem + 3vw, 3rem); }
.contact-details__block { border-left: 2px solid var(--line-2); padding-left: 1.1rem; }
.contact-details__block h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 0.5rem;
}
.contact-details__block a, .contact-details__block p { color: var(--fg); font-size: var(--fs-sm); }
.contact-details__block a:hover { color: var(--gold); }

.form { display: grid; gap: 1.75rem; }
.form__row { display: grid; gap: 1.75rem; }
@media (min-width: 620px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.55rem; }
.field label {
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.field label .req { color: var(--gold); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 1rem;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  color: var(--fg);
  font-size: var(--fs-sm);
  transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: var(--fg-3); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--gold); background: var(--bg-2); outline: none; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.field__help { font-size: var(--fs-xs); color: var(--fg-3); text-transform: none; letter-spacing: 0; }
.field__error { font-size: var(--fs-xs); color: var(--danger); text-transform: none; letter-spacing: 0.02em; min-height: 1em; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }

/* Contact page only: quiet underline fields instead of boxed ones — the
   single biggest visual element on this page, so worth its own considered
   treatment rather than the boxed style used elsewhere (gallery gate, admin
   logins), where a plainer utility feel is the right call. A muted line
   sits under every field at rest; a gold line draws itself in on focus,
   left to right, the same "whispers in" language as the eyebrow dash. */
.contact-grid .field input,
.contact-grid .field select,
.contact-grid .field textarea {
  background-color: transparent;
  background-image:
    linear-gradient(var(--gold), var(--gold)),
    linear-gradient(var(--line-2), var(--line-2));
  background-repeat: no-repeat, no-repeat;
  background-position: left bottom, left bottom;
  background-size: 0% 2px, 100% 1px;
  border: none;
  border-radius: 0;
  padding: 0.85rem 0.15rem;
  transition: background-size 0.5s var(--ease);
}
.contact-grid .field textarea { padding-top: 0.6rem; }
.contact-grid .field input:focus,
.contact-grid .field select:focus,
.contact-grid .field textarea:focus {
  background-size: 100% 2px, 100% 1px;
  background-color: transparent;
}
.contact-grid .field.has-error input,
.contact-grid .field.has-error select,
.contact-grid .field.has-error textarea {
  background-image:
    linear-gradient(var(--danger), var(--danger)),
    linear-gradient(var(--line-2), var(--line-2));
  background-size: 100% 2px, 100% 1px;
}

.form-summary {
  border: 1px solid var(--danger);
  border-radius: var(--r-xs);
  padding: 1rem 1.25rem;
  background: color-mix(in srgb, var(--danger) 10%, transparent);
}
.form-summary h2 { font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 600; color: var(--fg); }
.form-summary ul { margin: 0.6rem 0 0; padding-left: 1.1rem; font-size: var(--fs-sm); color: var(--fg-2); }
.form-summary a { color: var(--fg); text-decoration: underline; }

.form-success {
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  padding: clamp(2rem, 1.5rem + 3vw, 3rem);
  text-align: center;
}
.form-success h2 { font-size: var(--fs-h3); }
.form-success p { color: var(--fg-2); margin-top: 0.75rem; font-size: var(--fs-sm); }
.form-success__calendar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }
.form-success__calendar p { margin: 0; width: 100%; }

.form-status {
  margin-top: 1rem;
  font-size: var(--fs-sm);
  color: var(--fg-2);
  min-height: 1.2em;
}
.form-status:empty { margin-top: 0; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.faq { border-bottom: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--fg);
  transition: color var(--dur-2) var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex: none;
  width: 1.5rem;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gold);
  transition: transform var(--dur-2) var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--gold); }
.faq__answer { padding: 0 2.5rem 1.5rem 0; max-width: 56ch; color: var(--fg-2); }

/* Testimonials — a single quiet disclosure under the packages, not its own
   loud section. Reuses .faq__item for the summary/chevron/animation, since
   it's the same "click to reveal" shape either way. */
.testimonials-toggle {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.testimonials { padding-bottom: 2rem; display: grid; gap: 2rem; max-width: 60ch; }
.testimonial { border-left: 2px solid var(--line-2); padding-left: 1.5rem; }
.testimonial__quote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 320;
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--fg);
  font-style: italic;
}
.testimonial__quote::before { content: "\201C"; }
.testimonial__quote::after { content: "\201D"; }
.testimonial__by { margin-top: 0.85rem; font-size: var(--fs-sm); }
.testimonial__name { color: var(--gold); font-weight: 600; }
.testimonial__title { color: var(--fg-3); }
.testimonial__title::before { content: " \2014 "; }

/* 25b · PRIVATE GALLERY (client-facing) ==================== */
.pg-gate { max-width: 460px; margin-inline: auto; text-align: center; }
.pg-gate__icon { color: var(--gold); margin-bottom: 1.25rem; }
.pg-gate p { color: var(--fg-2); }
.pg-gate ul { margin-top: 1.5rem; text-align: left; color: var(--fg-2); padding-left: 1.2rem; }
.pg-gate ul li + li { margin-top: 0.4rem; }
.pg-gate form { margin-top: 2.25rem; display: grid; gap: 1rem; text-align: left; }
.pg-gate input {
  width: 100%; box-sizing: border-box; padding: 0.9rem 1.1rem;
  border-radius: var(--r-xs); border: 1px solid var(--line-2);
  background: var(--bg-1); color: var(--fg); font-size: 1.05rem;
  letter-spacing: 0.06em; text-transform: uppercase; text-align: center;
}
.pg-gate input:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.pg-error { color: var(--danger); font-size: var(--fs-sm); min-height: 1.2em; text-align: center; }
.pg-hint { margin-top: 1.5rem; font-size: var(--fs-sm); color: var(--fg-3); }
.pg-hint a { color: var(--fg-2); text-decoration: underline; }

.pg-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; }
.pg-head h1 { font-size: var(--fs-h2); }
.pg-head p { color: var(--fg-3); font-size: var(--fs-sm); }

.pg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem); }
@media (min-width: 640px) { .pg-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .pg-grid { grid-template-columns: repeat(4, 1fr); } }

.pg-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xs);
  overflow: hidden;
  background: var(--bg-2);
  border: 2px solid transparent;
  transition: border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.pg-photo__select {
  appearance: none; font: inherit; cursor: pointer;
  display: block; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; background: none;
}
.pg-photo__select img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-photo > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-photo.is-selected { border-color: var(--gold); }
.pg-photo__check {
  position: absolute; top: 0.6rem; right: 0.6rem;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(10, 10, 11, 0.55); border: 1.5px solid rgba(243, 239, 230, 0.55);
  display: grid; place-items: center;
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.pg-photo.is-selected .pg-photo__check { background: var(--gold); border-color: var(--gold); }
.pg-photo__check svg { width: 14px; height: 14px; fill: var(--gold-ink); opacity: 0; transition: opacity var(--dur-1) var(--ease); }
.pg-photo.is-selected .pg-photo__check svg { opacity: 1; }

.pg-photo__zoom {
  appearance: none; font: inherit; cursor: pointer;
  position: absolute; bottom: 0.6rem; left: 0.6rem;
  width: 32px; height: 32px; min-width: 44px; min-height: 44px;
  margin: -6px; padding: 6px;
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.55); border: 1.5px solid rgba(243, 239, 230, 0.55);
  color: var(--fg);
  display: grid; place-items: center;
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.pg-photo__zoom:hover, .pg-photo__zoom:focus-visible { background: rgba(10, 10, 11, 0.8); border-color: var(--gold); color: var(--gold); }
.pg-photo__zoom svg { width: 16px; height: 16px; pointer-events: none; }

.pg-photo__dl {
  appearance: none; font: inherit; cursor: pointer;
  position: absolute; top: 0.6rem; right: 0.6rem;
  width: 32px; height: 32px; min-width: 44px; min-height: 44px;
  margin: -6px; padding: 6px;
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.55); border: 1.5px solid rgba(243, 239, 230, 0.55);
  color: var(--fg);
  display: grid; place-items: center;
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.pg-photo__dl:hover, .pg-photo__dl:focus-visible { background: rgba(10, 10, 11, 0.8); border-color: var(--gold); color: var(--gold); }
.pg-photo__dl svg { width: 16px; height: 16px; pointer-events: none; }

.pg-lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6, 6, 7, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}
.pg-lightbox__figure { margin: 0; max-width: min(92vw, 1100px); max-height: 72vh; display: flex; }
.pg-lightbox__figure img { max-width: 100%; max-height: 72vh; object-fit: contain; border-radius: var(--r-xs); }
.pg-lightbox__close {
  appearance: none; font: inherit; cursor: pointer;
  position: absolute; top: max(1rem, env(safe-area-inset-top)); right: max(1rem, env(safe-area-inset-right));
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid var(--line-2); color: var(--fg);
  display: grid; place-items: center;
}
.pg-lightbox__close:hover { background: rgba(255,255,255,0.16); }
.pg-lightbox__nav {
  appearance: none; font: inherit; cursor: pointer;
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid var(--line-2); color: var(--fg);
  display: grid; place-items: center;
}
.pg-lightbox__nav:hover { background: rgba(255,255,255,0.16); border-color: var(--gold); color: var(--gold); }
.pg-lightbox__nav--prev { left: max(0.75rem, env(safe-area-inset-left)); }
.pg-lightbox__nav--next { right: max(0.75rem, env(safe-area-inset-right)); }
.pg-lightbox__bar {
  margin-top: 1.5rem; display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; justify-content: center;
}
.pg-lightbox__count { color: var(--fg-3); font-size: var(--fs-sm); }
#pg-lightbox-select.is-on { background: transparent; color: var(--gold); border: 1px solid var(--gold); }

@media (max-width: 640px) {
  .pg-lightbox__nav { width: 40px; height: 40px; }
  .pg-lightbox__nav--prev { left: 0.4rem; }
  .pg-lightbox__nav--next { right: 0.4rem; }
  .pg-lightbox__figure { max-height: 62vh; }
  .pg-lightbox__figure img { max-height: 62vh; }
}

.pg-toolbar {
  position: sticky; bottom: 1.25rem; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 2.5rem; padding: 1rem 1.5rem;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  border: 1px solid var(--line-2); border-radius: var(--r-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pg-toolbar__count { font-size: var(--fs-sm); color: var(--fg-2); }
.pg-toolbar__count b { color: var(--fg); font-family: var(--font-display); font-size: var(--fs-lg); }
.pg-note { margin-top: 1rem; font-size: var(--fs-xs); color: var(--fg-3); max-width: 60ch; }
.pg-ai-select {
  display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap;
  margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line);
}
.pg-ai-select__or { font-size: var(--fs-xs); color: var(--fg-3); }
.pg-ai-select .pg-note { flex-basis: 100%; margin-top: 0.5rem; }
.pg-state { text-align: center; padding: 4rem 1rem; color: var(--fg-2); }
.pg-state h2 { color: var(--fg); margin-bottom: 0.75rem; }

.pd-terms {
  display: flex; align-items: flex-start; gap: 0.75rem;
  margin-bottom: 1.75rem; padding: 1rem 1.25rem;
  background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--r-xs);
  color: var(--fg-2); font-size: var(--fs-sm); cursor: pointer;
}
.pd-terms input { margin-top: 0.2rem; width: 18px; height: 18px; min-width: 18px; accent-color: var(--gold); cursor: pointer; }
.pg-photo__dl:disabled, .pd-video__dl:disabled, #pd-download-all:disabled, #pg-lightbox-download:disabled {
  opacity: 0.35; cursor: not-allowed;
}

.pd-videos { display: grid; gap: 1.25rem; margin-bottom: 2rem; }
.pd-video { border-radius: var(--r-xs); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.pd-video video { width: 100%; max-height: 70vh; display: block; background: #000; }
.pd-video__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; flex-wrap: wrap; }
.pd-video__name { color: var(--fg-2); font-size: var(--fs-sm); word-break: break-word; }

/* 25b · ADMIN SHELL (sidebar) ================================
   One shared layout for every /admin page: a persistent sidebar (brand +
   nav + sign out) generated by assets/js/admin-nav.js, so adding or
   reordering a page never again means hand-editing links across 7 files.
   The sidebar mount renders brand-only until a page calls
   BUJ_ADMIN_NAV.showNav(isOwner) post-sign-in, and .hideNav() on sign out —
   never an empty gray box on the login screen. */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 224px; flex-shrink: 0; box-sizing: border-box;
  background: var(--bg-1); border-right: 1px solid var(--line);
  padding: 1.75rem 1.25rem; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar__brand { font-family: var(--font-display); font-size: 1.05rem; color: var(--fg); margin-bottom: 2.25rem; }
.admin-sidebar__brand span { display: block; font-family: var(--font-sans); font-size: var(--fs-xs); color: var(--fg-3); text-transform: uppercase; letter-spacing: var(--tracking-label); margin-top: 0.3rem; }
.admin-sidebar__nav { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; }
.admin-sidebar__link {
  display: block; padding: 0.6rem 0.75rem; border-radius: var(--r-xs);
  color: var(--fg-2); font-size: 0.88rem; text-decoration: none;
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.admin-sidebar__link:hover { background: var(--bg-2); color: var(--fg); }
.admin-sidebar__link.is-active { background: var(--bg-2); color: var(--gold); font-weight: 600; }
.admin-sidebar__footer { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.admin-sidebar__account {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.5rem 0.75rem; margin-bottom: 0.6rem;
  border-radius: var(--r-xs); text-decoration: none; color: var(--fg-2);
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.admin-sidebar__account:hover { background: var(--bg-2); color: var(--fg); }
.admin-sidebar__account.is-active { background: var(--bg-2); color: var(--gold); }
.admin-sidebar__account > span:last-child { display: flex; flex-direction: column; min-width: 0; gap: 0.1rem; }
.admin-sidebar__account-name {
  font-size: 0.84rem; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.admin-sidebar__account-role {
  font-size: 0.7rem; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.06em;
}
.admin-sidebar__signout {
  width: 100%; padding: 0.6rem 0.75rem; border-radius: var(--r-xs); border: 1px solid var(--line-2);
  background: none; color: var(--fg-3); font-size: 0.82rem; cursor: pointer;
  transition: border-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.admin-sidebar__signout:hover { border-color: var(--danger); color: var(--danger); }
.admin-main { flex: 1; min-width: 0; }

/* Admin headings use the same Space Grotesk as the rest of the page instead
   of the site's display serif (Fraunces) - lovely for the marketing site's
   editorial voice, but reads as formal/boxy for a workflow tool. The
   sidebar's brand wordmark (.admin-sidebar__brand, styled earlier above)
   is deliberately left in Fraunces as one small serif accent/brand anchor;
   everything functional around it goes sans. */
.admin-layout h1, .admin-layout h2, .admin-layout h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
}

@media (max-width: 860px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar {
    width: 100%; height: auto; position: static; box-sizing: border-box;
    border-right: none; border-bottom: 1px solid var(--line);
    flex-direction: row; align-items: center; flex-wrap: wrap; gap: 0.4rem 1rem; padding: 1rem 1.25rem;
  }
  .admin-sidebar__brand { margin-bottom: 0; margin-right: auto; }
  .admin-sidebar__nav { flex-direction: row; flex-wrap: wrap; flex: unset; gap: 0.2rem; }
  .admin-sidebar__footer { margin-top: 0; padding-top: 0; border-top: none; }
  .admin-sidebar__signout { width: auto; }
}

/* Small colored-initials identity badge — team chat, staff notes. */
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--line-2);
  color: var(--gold); font-family: var(--font-sans); font-size: 0.85rem; font-weight: 600;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar--sm { width: 24px; height: 24px; font-size: 0.68rem; }

/* Quiet, on-brand empty state — the same gold dash used before an .eyebrow
   label on the public site, not a generic icon. */
.admin-empty { text-align: center; padding: var(--s-5) var(--s-2); color: var(--fg-3); }
.admin-empty::before { content: ""; display: block; width: 28px; height: 1px; background: var(--gold); margin: 0 auto var(--s-3); opacity: 0.6; }
.admin-empty p { font-size: var(--fs-sm); margin: 0; }

/* Cmd+K global search — assets/js/admin-search.js */
.admin-search-overlay {
  position: fixed; inset: 0; background: rgba(4, 4, 5, 0.7); z-index: var(--z-menu);
  display: flex; align-items: flex-start; justify-content: center; padding-top: min(14vh, 120px);
}
.admin-search-modal {
  width: min(560px, 92vw); background: var(--bg-1); border: 1px solid var(--line-2);
  border-radius: var(--r-md); overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,0.55);
}
.admin-search-input {
  width: 100%; box-sizing: border-box; padding: 1.1rem 1.25rem; font-size: 1rem;
  background: none; border: none; border-bottom: 1px solid var(--line); color: var(--fg); font-family: inherit;
}
.admin-search-input:focus { outline: none; }
.admin-search-results { max-height: 50vh; overflow-y: auto; padding: 0.5rem; }
.admin-search-group__label { padding: 0.6rem 0.75rem 0.3rem; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--fg-3); }
.admin-search-result {
  display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 0.75rem; border-radius: var(--r-xs);
  cursor: pointer; color: var(--fg); font-size: 0.92rem;
}
.admin-search-result:hover, .admin-search-result.is-selected { background: var(--bg-2); }
.admin-search-result__meta { color: var(--fg-3); font-size: var(--fs-sm); white-space: nowrap; }
.admin-search-empty { padding: 1.75rem; text-align: center; color: var(--fg-3); font-size: var(--fs-sm); }
.admin-search-hint { padding: 0.6rem 1.25rem; border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--fg-3); display: flex; justify-content: space-between; }

/* Generic pill tab bar — dashboard notes (chat/personal), staff (accounts/
   payroll), anywhere else a page needs two or three switchable panels. */
.tab-bar { display: flex; gap: 0.4rem; margin-bottom: 1.25rem; }
.tab-btn {
  padding: 0.4rem 0.85rem; border-radius: var(--r-pill); border: 1px solid var(--line-2);
  background: none; color: var(--fg-3); font-size: 0.82rem; cursor: pointer;
  transition: border-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.tab-btn:hover { color: var(--fg); }
.tab-btn.is-active { background: var(--bg-2); border-color: var(--gold); color: var(--gold); }

/* Calendar — admin/calendar.html. Month grid built from galleries.shoot_date
   / delivery_date — shared by owner and staff, same RLS scoping as every
   other view onto public.galleries (owner sees all, staff sees their own). */
.cal-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.cal-nav { display: flex; align-items: center; gap: 0.75rem; }
.cal-month-label { font-family: var(--font-sans); font-weight: 600; font-size: 1.2rem; min-width: 160px; text-align: center; }
.cal-legend { display: flex; gap: 1.25rem; font-size: var(--fs-sm); color: var(--fg-3); }
.cal-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.cal-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.cal-weekday { background: var(--bg-1); color: var(--fg-3); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tracking-label); text-align: center; padding: 0.6rem 0; }
.cal-cell { background: var(--bg-1); min-height: 110px; padding: 0.5rem; box-sizing: border-box; display: flex; flex-direction: column; gap: 0.3rem; }
.cal-cell--empty { background: var(--bg); }
.cal-cell--today { background: var(--bg-2); }
.cal-cell__num { font-size: var(--fs-sm); color: var(--fg-3); }
.cal-cell--today .cal-cell__num { color: var(--gold); font-weight: 600; }
.cal-chip {
  display: block; font-size: 0.72rem; padding: 0.15rem 0.4rem; border-radius: var(--r-xs);
  text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal-chip--shoot { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.cal-chip--due { background: var(--bg-3); color: var(--fg-2); }
.cal-chip--blocked { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
.cal-cell--blocked { background: color-mix(in srgb, var(--danger) 6%, var(--bg-1)); }

/* Two-factor auth challenge — assets/js/admin-mfa.js. Same overlay/modal
   pattern as the crop prompt (25b) and Cmd+K search, blocking full-screen
   until verified since this gates every admin page, not just one form. */
.mfa-overlay {
  position: fixed; inset: 0; background: rgba(4, 4, 5, 0.85); z-index: var(--z-menu);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.mfa-modal {
  width: min(360px, 92vw); background: var(--bg-1); border: 1px solid var(--line-2);
  border-radius: var(--r-md); box-shadow: 0 24px 70px rgba(0,0,0,0.55);
  padding: 1.75rem; text-align: center;
}
.mfa-modal h2 { font-family: var(--font-sans); font-weight: 600; font-size: 1.1rem; margin: 0 0 0.4rem; }
.mfa-modal p { color: var(--fg-3); font-size: var(--fs-sm); margin: 0 0 1.25rem; line-height: 1.5; }
.mfa-modal input {
  width: 100%; box-sizing: border-box; padding: 0.8rem 1rem; border-radius: var(--r-xs);
  border: 1px solid var(--line-2); background: var(--bg); color: var(--fg); font-size: 1.4rem;
  text-align: center; letter-spacing: 0.3em; font-variant-numeric: tabular-nums;
}
.mfa-modal input:focus-visible { border-color: var(--gold); outline: none; }
.mfa-error { color: var(--danger); font-size: var(--fs-sm); min-height: 1.2em; margin-top: 0.75rem !important; }
.mfa-actions { display: flex; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }

/* Pipeline board — admin/pipeline.html. Read-only columns pulled from each
   stage's own existing status field (inquiries/galleries/invoices) — not a
   new unified state machine, just one view across three tables that were
   previously only visible as separate lists. */
.pipeline-board { display: flex; gap: 1.25rem; overflow-x: auto; padding-bottom: 1rem; align-items: flex-start; }
.pipeline-col { flex: 0 0 260px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem; }
.pipeline-col__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.pipeline-col__title { font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem; color: var(--fg); }
.pipeline-col__count { font-size: var(--fs-xs); color: var(--fg-3); background: var(--bg-2); border-radius: var(--r-pill); padding: 0.15rem 0.55rem; }
.pipeline-cards { display: flex; flex-direction: column; gap: 0.6rem; min-height: 40px; }
.pipeline-card {
  display: block; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-xs);
  padding: 0.7rem 0.85rem; text-decoration: none; color: inherit;
  transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.pipeline-card:hover { border-color: var(--line-2); background: var(--bg-3); }
.pipeline-card__name { display: block; font-size: 0.88rem; color: var(--fg); margin-bottom: 0.25rem; }
.pipeline-card__meta { display: block; font-size: var(--fs-xs); color: var(--fg-3); }
.pipeline-col-empty { color: var(--fg-3); font-size: var(--fs-xs); text-align: center; padding: 1rem 0; }

/* Reports tab — admin/clients.html. Summary cards + a plain CSS bar chart,
   no charting library: this project has no external JS dependency beyond
   the Supabase SDK, and six bars a month don't need one. */
.rp-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.rp-card {
  background: var(--bg-2); border: none; border-radius: 12px;
  padding: 1.1rem 1.25rem;
}
.rp-card__label { display: block; font-size: var(--fs-xs); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--fg-3); margin-bottom: 0.5rem; }
.rp-card__value { display: block; font-family: var(--font-sans); font-weight: 600; font-size: 1.4rem; color: var(--fg); }
.rp-chart { display: flex; align-items: flex-end; gap: 1.5rem; height: 180px; padding: 0 0.5rem; border-bottom: 1px solid var(--line); }
.rp-bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 0.4rem; }
.rp-bar-pair { display: flex; align-items: flex-end; gap: 0.3rem; height: 100%; }
.rp-bar { width: 16px; border-radius: 3px 3px 0 0; min-height: 2px; }
.rp-bar--revenue { background: var(--gold); }
.rp-bar--expense { background: var(--fg-3); opacity: 0.55; }
.rp-bar-label { font-size: var(--fs-xs); color: var(--fg-3); }
.rp-legend { display: flex; gap: 1.25rem; margin-top: 1rem; font-size: var(--fs-sm); color: var(--fg-3); }
.rp-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.rp-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

/* Avatar crop prompt — assets/js/profile-admin.js. Same overlay/modal
   pattern as the Cmd+K search (25b), so it reads as one design system. */
.pf-crop-overlay {
  position: fixed; inset: 0; background: rgba(4, 4, 5, 0.7); z-index: var(--z-menu);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.pf-crop-modal {
  width: min(420px, 92vw); background: var(--bg-1); border: 1px solid var(--line-2);
  border-radius: var(--r-md); box-shadow: 0 24px 70px rgba(0,0,0,0.55);
  padding: 1.75rem; text-align: center;
}
.pf-crop-modal h2 { font-family: var(--font-sans); font-weight: 600; font-size: 1.1rem; margin: 0 0 0.4rem; }
.pf-crop-modal p { color: var(--fg-3); font-size: var(--fs-sm); margin: 0 0 1.25rem; line-height: 1.5; }
.pf-crop-canvas {
  width: 220px; height: 220px; border-radius: 50%; border: 1px solid var(--line-2);
  background: var(--bg-2); touch-action: none; cursor: grab;
}
.pf-crop-canvas:active { cursor: grabbing; }
.pf-crop-modal input[type="range"] { width: 100%; margin-top: 1.25rem; accent-color: var(--gold); }
.pf-crop-actions { display: flex; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }

/* 25c · GALLERY ADMIN ======================================= */
.ga-shell { max-width: 1100px; margin-inline: auto; padding: clamp(2rem, 1.5rem + 3vw, 4rem) clamp(1.25rem, 0.5rem + 3vw, 2rem); }
/* Every admin page's views (login/blocked/main/etc.) all use this class and
   toggle between them via the `hidden` attribute in JS - going from
   display:none to displayed re-triggers a plain CSS animation (unlike
   `transition`, which wouldn't fire from a display:none start), so this
   gives whichever view just got un-hidden a quick fade-in instead of
   abruptly popping into view once the page's async session check
   resolves. That abrupt pop was the second half of the "flashy" feeling on
   top of the between-page cross-fade - this smooths the other half. */
.ga-shell { animation: ga-shell-fade-in 0.28s ease; }
@keyframes ga-shell-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.ga-login {
  max-width: 380px; margin: 4rem auto; text-align: center;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: clamp(2rem, 1.5rem + 2vw, 2.75rem) clamp(1.5rem, 1rem + 2vw, 2.25rem);
}
.ga-login form { margin-top: 2rem; display: grid; gap: 1rem; text-align: left; }
.ga-login input {
  width: 100%; box-sizing: border-box; padding: 0.8rem 1rem;
  border-radius: var(--r-xs); border: 1px solid var(--line-2);
  background: var(--bg); color: var(--fg); font-size: 0.95rem;
  transition: border-color var(--dur-2) var(--ease);
}
.ga-login input:focus-visible { border-color: var(--gold); outline: none; }
.ga-error { color: var(--danger); font-size: var(--fs-sm); min-height: 1.2em; }

.ga-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.ga-topbar h1 { font-size: var(--fs-h3); }
.ga-btn {
  padding: 0.65rem 1.1rem; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--bg-1); color: var(--fg); font-size: 0.85rem; cursor: pointer;
  transition: border-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.ga-btn:hover { border-color: var(--gold); color: var(--gold); background: var(--bg-2); }
.ga-btn--solid { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); font-weight: 600; }
.ga-btn--solid:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--gold-ink); }
.ga-btn--danger:hover { border-color: var(--danger); color: var(--danger); }

.ga-new-form { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2rem; }
.ga-new-form input {
  flex: 1; min-width: 200px; padding: 0.7rem 1rem; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--bg-1); color: var(--fg); font-size: 0.9rem;
  transition: border-color var(--dur-2) var(--ease);
}
.ga-new-form input:focus-visible { border-color: var(--gold); outline: none; }

.ga-scan-drop {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  padding: 2rem 1.5rem; margin-bottom: 2rem; text-align: center;
  border: 1px dashed var(--line-2); border-radius: 10px;
  color: var(--fg-3); font-size: 0.9rem;
  transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.ga-scan-drop.is-drag { border-color: var(--gold); background: var(--bg-1); }
.ga-scan-drop.is-busy { opacity: 0.55; pointer-events: none; }
.ga-scan-row { flex-direction: column; align-items: stretch; gap: 0.75rem; }
.ga-scan-row .ga-new-form { margin-bottom: 0; }
.ga-scan-row select {
  flex: 1; min-width: 140px; padding: 0.7rem 1rem; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--bg-1); color: var(--fg); font-size: 0.9rem;
}

.ga-list { display: grid; gap: 0.75rem; }
.ga-row {
  appearance: none; font: inherit; color: inherit; background: var(--bg-2); text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  width: 100%; padding: 1rem 1.25rem; border: none; border-radius: 12px;
  cursor: pointer; transition: background var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.ga-row:hover, .ga-row:focus-visible { background: var(--bg-3); }
.ga-row__name { font-family: var(--font-sans); font-weight: 600; font-size: 1rem; }
.ga-row__meta { display: flex; align-items: center; gap: 1rem; font-size: var(--fs-sm); color: var(--fg-3); }
.ga-code { font-family: ui-monospace, SFMono-Regular, monospace; letter-spacing: 0.05em; color: var(--gold); }

/* Real pills, not just colored text — the background/border tint derives
   automatically from whatever color each status variant sets, via
   currentColor, so a new status only ever needs one line. */
.ga-status {
  display: inline-flex; align-items: center; text-transform: uppercase; font-size: var(--fs-xs);
  letter-spacing: var(--tracking-label); padding: 0.22rem 0.65rem; border-radius: var(--r-pill);
  border: 1px solid currentColor; background: color-mix(in srgb, currentColor 14%, transparent);
  white-space: nowrap;
}
.ga-presence-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ga-presence-dot--online { background: var(--ok); }
.ga-presence-dot--offline { background: var(--danger); }
.ga-presence-label { font-size: var(--fs-xs); color: var(--fg-3); }
.ga-status--active { color: var(--ok); }
.ga-status--finalized { color: var(--gold); }
.ga-status--archived { color: var(--fg-3); }
.ga-status--pending { color: var(--fg-3); }
.ga-status--deposit_paid { color: var(--ok); }
.ga-status--confirmed { color: var(--gold); }
.ga-status--balance_charged { color: var(--ok); }
.ga-status--declined, .ga-status--refunded { color: var(--danger); }
.ga-status--manual { color: var(--fg-3); }
.ga-status--draft { color: var(--fg-3); }
.ga-status--sent { color: var(--gold); }
.ga-status--paid { color: var(--ok); }
.ga-status--void { color: var(--fg-3); }
.ga-status--overdue { color: var(--danger); }

.ga-log-list { display: grid; gap: 0.6rem; }
.ga-log-entry {
  background: var(--bg-1);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 0.85rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-xs);
}
.ga-log-entry__action { font-size: 0.92rem; }
.ga-log-entry__detail { color: var(--fg-3); font-size: var(--fs-sm); flex: 1; }
.ga-log-entry__time { color: var(--fg-3); font-size: var(--fs-xs); white-space: nowrap; }

.ga-raw-list { display: grid; gap: 0.6rem; }
.ga-raw-item {
  background: var(--bg-1);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 0.85rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-xs);
}
.ga-raw-item__name { font-size: 0.92rem; word-break: break-word; }
.ga-raw-item__actions { display: flex; gap: 0.6rem; flex-shrink: 0; }

.ia-fields { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 2rem; }
.ia-field { display: grid; gap: 0.4rem; }
.ia-field label { font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-2); }
.ia-field .ia-value { font-size: 0.95rem; color: var(--fg); word-break: break-word; }
.ia-field input, .ia-field textarea {
  width: 100%; box-sizing: border-box; padding: 0.7rem 1rem; border-radius: var(--r-xs);
  border: 1px solid var(--line-2); background: var(--bg-1); color: var(--fg); font-size: 0.9rem; font-family: inherit;
  transition: border-color var(--dur-2) var(--ease);
}
.ia-field input:focus-visible, .ia-field textarea:focus-visible { border-color: var(--gold); outline: none; }
.ia-field textarea { min-height: 90px; resize: vertical; }
.ia-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 0.5rem; }
.ia-note { color: var(--fg-3); font-size: var(--fs-sm); }

.ga-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.ga-back {
  appearance: none; font: inherit; background: none; border: 0; padding: 0; display: inline-block;
  color: var(--fg-3); font-size: var(--fs-sm); cursor: pointer;
}
.ga-back:hover, .ga-back:focus-visible { color: var(--fg); }

.ga-drop {
  border: 1px dashed var(--line-2); border-radius: var(--r-xs);
  padding: 2.5rem 1.5rem; text-align: center; color: var(--fg-2); margin-bottom: 2rem;
}
.ga-drop input { display: block; margin: 1rem auto 0; }
.ga-progress { margin-top: 1rem; font-size: var(--fs-sm); color: var(--fg-2); }

.ga-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.75rem; }
.ga-thumb { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-xs); overflow: hidden; background: var(--bg-2); }
.ga-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
button.ga-thumb {
  appearance: none; font: inherit; cursor: pointer; padding: 0; margin: 0; border: 0; width: 100%; display: block;
}
button.ga-thumb:hover, button.ga-thumb:focus-visible { outline: 2px solid var(--danger); outline-offset: 2px; }
.ga-thumb__badge {
  position: absolute; inset: auto 0 0 0; padding: 0.35rem; text-align: center;
  font-size: 0.65rem; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600;
}
.ga-thumb.is-selected .ga-thumb__badge { background: var(--gold); color: var(--gold-ink); }
.ga-thumb.is-pending .ga-thumb__badge { background: rgba(10, 10, 11, 0.7); color: var(--fg-3); }
.ga-thumb.is-armed .ga-thumb__badge { background: var(--danger); color: #fff; }
.ga-thumb.is-armed { outline: 2px solid var(--danger); outline-offset: -2px; }

.ga-thumb--video {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 1rem; text-align: center; background: var(--bg-3);
}
.ga-thumb--video .ga-thumb__video-icon { color: var(--gold); }
.ga-thumb--video .ga-thumb__filename {
  font-size: var(--fs-xs); color: var(--fg-3); word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.ga-finalize {
  margin-top: 2.5rem; padding: 1.5rem; border: 1px solid var(--line-2); border-radius: var(--r-xs);
  background: var(--bg-1);
}
.ga-finalize p { color: var(--fg-2); font-size: var(--fs-sm); margin-bottom: 1rem; }

/* 26 · PAGE: 404 ============================= */
.error-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 3rem) 1.5rem 3rem;
}
.error-page__code {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(5rem, 3rem + 14vw, 12rem);
  line-height: 1;
  color: var(--gold);
}
.error-page__msg { font-size: var(--fs-h3); margin-top: 1rem; }
.error-page__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.5rem; }

/* 27 · REVEAL ANIMATIONS ==================== */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  }
  html.js [data-reveal="fade"] { transform: none; }
  html.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
  html.js [data-reveal-stagger] > * {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  html.js [data-reveal-stagger].is-visible > * { opacity: 1; transform: none; }
  html.js [data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0.04s; }
  html.js [data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 0.10s; }
  html.js [data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 0.16s; }
  html.js [data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 0.22s; }
  html.js [data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 0.28s; }
  html.js [data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 0.34s; }

  /* Photography gets a slow, considered settle-in scale on first reveal,
     distinct from the plain text fade above — applied to each photo's crop
     frame rather than the <img> itself, so it never fights that image's own
     independent hover-zoom (a different element, same effect composes fine). */
  html.js [data-reveal] .work-card__media,
  html.js [data-reveal] .journal-row__thumb,
  html.js [data-reveal].founder__portrait {
    transform: scale(1.06);
    transition: transform 1.3s var(--ease);
  }
  html.js [data-reveal].is-visible .work-card__media,
  html.js [data-reveal].is-visible .journal-row__thumb,
  html.js [data-reveal].is-visible.founder__portrait {
    transform: scale(1);
  }

  /* Eyebrow dash draws itself in just after its label starts to appear. */
  html.js [data-reveal].eyebrow::before { width: 0; transition: width 0.6s var(--ease) 0.15s; }
  html.js [data-reveal].is-visible.eyebrow::before { width: 28px; }

  html.js .hero__title .line > span { transform: translateY(110%); }
  html.js .hero.is-ready .hero__title .line > span {
    transform: translateY(0);
    transition: transform 1s var(--ease);
  }
  html.js .hero.is-ready .hero__title .line:nth-child(2) > span { transition-delay: 0.08s; }
  html.js .hero.is-ready .hero__title .line:nth-child(3) > span { transition-delay: 0.16s; }
  html.js .hero__meta, html.js .hero__actions { opacity: 0; transform: translateY(16px); }
  html.js .hero.is-ready .hero__meta,
  html.js .hero.is-ready .hero__actions {
    opacity: 1; transform: none;
    transition: opacity 0.9s var(--ease) 0.35s, transform 0.9s var(--ease) 0.35s;
  }
}

/* 28 · REDUCED MOTION & FINE-TUNING ======== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .marquee__track { animation: none; transform: none; flex-wrap: wrap; white-space: normal; justify-content: center; }
  .hero__media img, .hero__media video { transform: none; }
  .scroll-cue__line::after { animation: none; }
  .curtain { display: none; }
}

/* Print — give them something usable if they print an enquiry or article */
@media print {
  .site-header, .mobile-menu, .curtain, .fx-grain, .fx-vignette,
  .cursor, .cursor-ring, .scroll-cue, .marquee { display: none !important; }
  body { background: #fff; color: #111; }
  * { color: #111 !important; }
}
