/* ==========================================================================
   Atla — portfolio
   A minimal, color-forward portfolio: a dark canvas of open space, with each
   project occupying a full screen flooded in its own deep, earthy hero color.

   Editorial layer (Option A redesign): self-hosted Fraunces (display serif,
   with an italic accent) + Inter (UI/captions/meta), a fine film-grain
   overlay, a secure inline-icon system, an oversized "View" cursor on
   fine-pointer devices, and a monochrome->colour hover helper. All of it is
   strict-CSP clean: stylesheet only, no inline styles/scripts, self-hosted.

   Cascade: fonts -> reset -> tokens -> typography -> layout -> intro
            -> panels -> nav -> contact -> editorial helpers (sprite/icon/
            grain/cursor/hover) -> utilities -> motion/responsive.
   No inline styles or scripts anywhere (strict Content Security Policy).
   ========================================================================== */

/* ---- Self-hosted variable fonts (OFL) ---------------------------------- */
/* Paths are RELATIVE TO THIS FILE (assets/css/), so ../fonts/. style-src 'self'
   permits the stylesheet; font-src 'self' permits the woff2 fetches. A single
   variable axis (weight 100–900) covers the whole type system; font-display:
   swap keeps the LCP display text painting immediately with the fallback. */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  scroll-padding-block-start: 5rem;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
:where(h1, h2, h3, p) { overflow-wrap: break-word; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* ---- Tokens ------------------------------------------------------------ */
:root {
  --bg: #0a0a0b;            /* canvas (near-black)        */
  --bg-elev: #101013;
  --panel: #15151a;        /* elevated surface (tiles, chips, lightbox UI)  */
  --ink: #f2ece1;          /* warm cream — text on the dark canvas */
  --ink-dim: #a89f8f;
  --ink-mute: #6f675b;
  --on-color: #f2ece1;     /* warm cream — text on an earth-tone panel */
  --hair: rgb(255 255 255 / 0.12);
  --hair-soft: rgb(255 255 255 / 0.07);

  /* Accent palette (the existing earth tones — reused by the editorial layer
     for italic display accents, custom-cursor tint, link underlines, etc.) */
  --accent: #a0572c;       /* vivid teal — the photography hub accent */
  --accent-wine: #7c3b2d;  /* wine / rose-earth — the mobile-tiles accent */

  /* Type system — self-hosted Fraunces (editorial DISPLAY serif, with an
     italic accent) + Inter (UI / captions / meta). --font-sans now resolves
     to Inter so every existing rule that uses it is upgraded in place; the
     system stack remains as the swap fallback. --font-serif / --font-ui are
     the explicit editorial aliases the pages + lightbox reach for. */
  --font-serif: "Fraunces", Georgia, "Times New Roman", "Times", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-ui: var(--font-sans);
  --font-display: var(--font-serif);
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;

  --container: 80rem;
  --gutter: clamp(1.25rem, 0.8rem + 3vw, 4rem);

  /* Fluid type scale */
  --step--1: clamp(0.8rem, 0.76rem + 0.2vw, 0.95rem);
  --step-0:  clamp(1rem, 0.94rem + 0.3vw, 1.15rem);
  --step-1:  clamp(1.2rem, 1.04rem + 0.6vw, 1.6rem);
  --step-2:  clamp(1.5rem, 1.2rem + 1.2vw, 2.4rem);
  --step-intro: clamp(2.2rem, 1.2rem + 4.6vw, 5.5rem);
  --step-title: clamp(2.8rem, 1.5rem + 6.4vw, 8.5rem);

  --dur: 0.55s;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;        /* Fraunces/Inter optical axes follow size */
}

a { color: inherit; text-underline-offset: 0.18em; }

/* ---- Typography (editorial) ------------------------------------------- */
/* Headings are set in Fraunces — the editorial display serif — and pick up
   its optical-size axis automatically. Body / UI text stays in Inter via the
   body rule above. Existing components that hard-set their own family keep
   working; this just gives un-classed headings the right voice. */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 500;
  letter-spacing: -0.02em;
}
/* The signature italic accent: <em>/.is-accent inside display text leans into
   Fraunces' italic and tints toward the active accent colour. CSP-safe — the
   accent is themed by setting --accent (default) or --c on an ancestor. */
em.is-accent,
.display-accent {
  font-style: italic;
  font-weight: 400;
  color: color-mix(in oklab, var(--ink) 80%, var(--accent));
}
@supports not (color: color-mix(in oklab, #000 50%, #fff)) {
  em.is-accent,
  .display-accent { color: var(--ink-dim); }
}

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

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* ---- Skip link --------------------------------------------------------- */
.skip-link {
  position: fixed;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 200;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  border-radius: 8px;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ---- Fixed header (legible over any color via blend) ------------------- */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 2vh, 1.6rem) var(--gutter);
  color: #fff;
  mix-blend-mode: difference;       /* stays readable over dark OR brilliant */
  pointer-events: none;             /* let panels scroll; re-enable on links */
}
.site-header a, .site-header button { pointer-events: auto; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--step-1);
  letter-spacing: 0.01em;
  text-decoration: none;
}
.brand__mark { inline-size: 1.4rem; block-size: 1.4rem; }
.header__meta {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---- Shared section inner --------------------------------------------- */
.screen { position: relative; scroll-snap-align: start; }
.screen__inner {
  min-block-size: 100svh;
  max-inline-size: var(--container);
  margin-inline: auto;
  padding-block: clamp(6rem, 13vh, 11rem);
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.8rem, 0.4rem + 1vw, 1.6rem);
}
.kicker {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---- Intro ------------------------------------------------------------- */
.intro { background: var(--bg); color: var(--ink); }
.intro .kicker { color: var(--ink-dim); }
.intro__title {
  font-family: var(--font-serif);
  font-size: var(--step-intro);
  font-weight: 400;          /* Fraunces reads its scale best on the light side */
  line-height: 1.0;
  letter-spacing: -0.02em;
  max-inline-size: 18ch;
}
.intro__lead {
  font-size: var(--step-1);
  color: var(--ink-dim);
  max-inline-size: 46ch;
}
.scroll-cue {
  position: absolute;
  inset-block-end: clamp(1.5rem, 4vh, 3rem);
  inset-inline-start: var(--gutter);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.scroll-cue__line {
  inline-size: 2.5rem; block-size: 1px; background: currentColor;
  transform-origin: left;
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0%,100% { transform: scaleX(0.4); opacity: 0.5; } 50% { transform: scaleX(1); opacity: 1; } }

/* ---- Project panels (the brilliant hero colors) ----------------------- */
/* "Vibrant & shiny" earth-tone heroes: a glossy radial sheen lifts a light
   highlight out of the top-left, settles to the base color where the text
   sits (contrast preserved), then deepens into the far corner. The flat
   line is a fallback for browsers without color-mix(); both are CSP-safe
   (stylesheet only, no inline styles). */
.panel {
  color: var(--on-color);
  background: var(--c);
  background:
    radial-gradient(140% 120% at 18% 12%,
      color-mix(in oklab, var(--c) 72%, #fff 28%) 0%,
      var(--c) 44%,
      color-mix(in oklab, var(--c) 86%, #000 14%) 100%);
}
.panel__num {
  position: absolute;
  inset-block-start: clamp(4.5rem, 10vh, 7.5rem);
  inset-inline-end: var(--gutter);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 1;
  color: rgb(236 229 216 / 0.14);    /* decorative, aria-hidden */
  user-select: none;
}
.panel__cat {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.panel__title {
  font-family: var(--font-serif);
  font-size: var(--step-title);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.025em;
}
.panel__desc {
  font-size: var(--step-1);
  max-inline-size: 38ch;
}
.panel__meta {
  margin-block-start: clamp(0.5rem, 1vw, 1rem);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
}

/* Project hero colors — set as a custom property per section (no inline styles) */
.panel--northbound   { --c: #7c3b2d; }  /* terracotta / clay    */
.panel--salt         { --c: #855128; }  /* burnt sienna / amber */
.panel--field-notes  { --c: #6f5a1d; }  /* dark ochre / mustard */
.panel--atlas        { --c: #4a5526; }  /* moss / olive         */
.panel--kinetics     { --c: #3f4a26; }  /* deep pine-teal       */
.panel--frequencies  { --c: #5a3e28; }  /* aubergine / plum     */
.panel--galleries    { --c: #a0572c; }  /* vivid teal (the photography hub) */
.panel--travel       { --c: #9a5b22; }  /* bronze amber         */
.panel--resources    { --c: #4a5a2a; }  /* vivid emerald        */

/* ---- Galleries hub: two big cards into the DSLR map / mobile tiles ---- */
.gallery-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.6rem);
  margin-block-start: clamp(1rem, 2vw, 2rem);
  max-inline-size: 62rem;
}
@media (min-width: 48rem) { .gallery-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 60rem) { .gallery-cards { grid-template-columns: repeat(3, 1fr); } }
.gallery-card {
  --card: var(--c);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2.2rem);
  border-radius: 16px;
  text-decoration: none;
  color: var(--on-color);
  background: rgb(0 0 0 / 0.18);
  border: 1px solid rgb(236 229 216 / 0.22);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08);
  transition: transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.28;
  background: radial-gradient(120% 140% at 100% 0%,
    color-mix(in oklab, var(--card) 70%, #fff 30%), transparent 60%);
  transition: opacity var(--dur) var(--ease);
}
.gallery-card--dslr   { --card: #a0572c; }
.gallery-card--mobile { --card: #7c3b2d; }
.gallery-card--lists  { --card: #6f5a1d; }
.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-4px);
  background: rgb(0 0 0 / 0.28);
  border-color: rgb(236 229 216 / 0.42);
}
.gallery-card:hover::before,
.gallery-card:focus-visible::before { opacity: 0.46; }
.gallery-card__kicker {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.82;
}
.gallery-card__title {
  font-family: var(--font-serif);
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.gallery-card__desc { font-size: var(--step-0); max-inline-size: 34ch; opacity: 0.92; }
.gallery-card__cue {
  margin-block-start: 0.4rem;
  font-size: var(--step-1);
  transition: transform var(--dur) var(--ease);
}
.gallery-card:hover .gallery-card__cue,
.gallery-card:focus-visible .gallery-card__cue { transform: translateX(0.4rem); }

/* ---- Link lists (travel guides / web resources) ---------------------- */
.linklist {
  list-style: none;
  padding: 0;
  margin-block-start: clamp(1rem, 2vw, 1.8rem);
  display: grid;
  gap: 0.75rem;
  max-inline-size: 48rem;
}
.linklist__item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: clamp(0.85rem, 0.6rem + 1vw, 1.2rem) clamp(1rem, 0.7rem + 1vw, 1.4rem);
  border-radius: 12px;
  background: rgb(0 0 0 / 0.16);
  border: 1px solid rgb(236 229 216 / 0.18);
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.linklist__item:hover,
.linklist__item:focus-within {
  background: rgb(0 0 0 / 0.26);
  border-color: rgb(236 229 216 / 0.38);
  transform: translateX(3px);
}
.linklist__item--hint {
  background: none;
  border: 1px dashed rgb(236 229 216 / 0.22);
  color: var(--on-color);
  opacity: 0.7;
  font-family: var(--font-mono);
  font-size: var(--step--1);
}
.linklist__link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.9rem;
  text-decoration: none;
  color: var(--on-color);
}
.linklist__name { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
.linklist__name::after { content: " \2197"; font-size: 0.72em; opacity: 0.7; }
.linklist__note,
.linklist__sub {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--on-color);
  opacity: 0.78;
}
.linklist__sub { text-decoration: none; width: max-content; max-width: 100%; }
.linklist__sub:hover { opacity: 1; text-decoration: underline; }

/* ---- Section dot navigation (pointer devices) ------------------------- */
.dots {
  position: fixed;
  z-index: 60;
  inset-inline-end: clamp(0.9rem, 1.6vw, 1.6rem);
  inset-block-start: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  color: #fff;
  mix-blend-mode: difference;
}
.dots__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}
.dots__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(0.4rem);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.dots__dot {
  inline-size: 0.7rem;
  block-size: 0.7rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.dots__link:hover .dots__label,
.dots__link:focus-visible .dots__label { opacity: 1; transform: none; }
.dots__link:hover .dots__dot { transform: scale(1.3); }
.dots__link[aria-current="true"] .dots__dot { background: currentColor; transform: scale(1.3); }

/* ---- Contact ----------------------------------------------------------- */
.contact { background: var(--bg); color: var(--ink); }
.contact .kicker { color: var(--ink-dim); }
.contact__title {
  font-family: var(--font-serif);
  font-size: var(--step-intro);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.0;
  max-inline-size: 16ch;
}
.contact__email {
  font-size: var(--step-2);
  font-weight: 600;
  text-decoration-color: var(--hair);
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.colophon {
  position: absolute;
  inset-block-end: clamp(1.5rem, 4vh, 3rem);
  inset-inline: var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-mute);
}

/* ==========================================================================
   Editorial helpers — shared by the gallery pages and the lightbox
   (the secure icon system, film grain, custom cursor, mono->colour hover).
   ========================================================================== */

/* ---- Secure inline-icon system ---------------------------------------- */
/* Each page pastes the sprite's <symbol> defs into a hidden, off-flow holder
   right inside <body>; this rule keeps that holder out of layout + the a11y
   tree. Icons are then used via <svg class="icon"><use href="#i-NAME"></svg>,
   inheriting currentColor with no fetch-timing gap. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex: none;             /* never let flex layouts squash an icon */
  pointer-events: none;
}
/* A couple of glyphs read better as solid fills; opt in per use site. */
.icon--fill { fill: currentColor; stroke: none; }

/* ---- Film-grain overlay ----------------------------------------------- */
/* A fixed, non-interactive texture lifted over the whole canvas. The noise is
   a tiny self-hosted inline-SVG data-URI — allowed here because it lives in
   the stylesheet (style-src 'self'), not in an inline style attribute. Very
   low opacity + overlay blend keeps it a whisper, never a wash. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Monochrome -> colour hover helper -------------------------------- */
/* A reusable photographic treatment: images rest desaturated + slightly dimmed,
   then bloom to full colour on hover/focus with a gentle scale. Apply .hover-bloom
   to the interactive container; .hover-bloom__img to the <img> it reveals. */
.hover-bloom { overflow: hidden; }
.hover-bloom__img {
  filter: grayscale(0.4) brightness(0.9) contrast(1.02);
  transform: scale(1.01);
  transition: filter var(--dur) var(--ease),
              transform calc(var(--dur) * 1.4) var(--ease);
}
.hover-bloom:hover .hover-bloom__img,
.hover-bloom:focus-visible .hover-bloom__img,
.hover-bloom:focus-within .hover-bloom__img {
  filter: none;
  transform: scale(1.045);
}

/* ---- Oversized custom "View" cursor (fine pointers only) -------------- */
/* Hidden by default + on coarse/touch pointers (so taps keep the OS cursor).
   JS positions .cursor by setting --cx/--cy via the CSSOM and toggles
   .is-view over interactive photo targets. Pure CSS owns the look. */
.cursor { display: none; }
@media (pointer: fine) {
  .cursor {
    position: fixed;
    inset-block-start: 0;
    inset-inline-start: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--ink);
    mix-blend-mode: difference;     /* legible over any hero colour or photo */
    pointer-events: none;
    transform: translate(var(--cx, -100px), var(--cy, -100px)) translate(-50%, -50%);
    transition: width 0.3s var(--ease), height 0.3s var(--ease),
                background-color 0.3s var(--ease);
  }
  .cursor__label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bg);
    opacity: 0;
    transition: opacity 0.25s var(--ease);
  }
  .cursor.is-view { width: 74px; height: 74px; }
  .cursor.is-view .cursor__label { opacity: 1; }
  /* While the big cursor is active over the grid, hide the OS one. JS adds
     .cursor-active to <body> so the swap is scoped + reversible. */
  body.cursor-active,
  body.cursor-active a,
  body.cursor-active button { cursor: none; }
}

/* ---- Utilities --------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  inline-size: 1px; block-size: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.flow > * + * { margin-block-start: var(--flow, 1.2rem); }

/* ---- Reveal-on-enter (enhancement; safe without JS) ------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---- Responsive: hide dot-nav on small screens (keep the space open) -- */
@media (max-width: 47.999rem) {
  .dots { display: none; }
  .header__meta { display: none; }
}

/* ---- Reduced motion ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  /* The mono->colour bloom drops its scale (colour shift still allowed), and
     the custom cursor stops both growing and easing toward the pointer. */
  .hover-bloom__img { transform: none; }
  .hover-bloom:hover .hover-bloom__img,
  .hover-bloom:focus-visible .hover-bloom__img,
  .hover-bloom:focus-within .hover-bloom__img { transform: none; }
  .cursor { display: none !important; }
  body.cursor-active,
  body.cursor-active a,
  body.cursor-active button { cursor: auto; }
}

/* ==========================================================================
   Multi-page chrome — shared top navigation, per-page hero, content blocks,
   and the shared contact footer. Used by the five top-level pages
   (Photography / Web Design / Accomplishments / Career / Giving Back) and the
   photography sub-pages. Earth tones only; strict-CSP (classes only).
   ========================================================================== */

/* ---- Top navigation --------------------------------------------------- */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-block-end: 1px solid var(--hair);
}
.topnav__inner {
  max-inline-size: var(--container); margin-inline: auto;
  padding: 0.6rem var(--gutter);
  display: flex; align-items: center; gap: 0.6rem 1rem; flex-wrap: wrap;
}
.topnav__brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-serif); font-weight: 600; font-size: 1.2rem;
  letter-spacing: -0.01em; text-decoration: none; color: var(--ink);
}
.topnav__mark { inline-size: 1.05rem; block-size: 1.05rem; color: var(--accent); }
.topnav__nav { display: flex; gap: 0.15rem; flex-wrap: wrap; margin-inline-start: auto; }
.topnav__link {
  position: relative; text-decoration: none; color: var(--ink-dim);
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.01em;
  padding: 0.45rem 0.72rem; border-radius: 8px; white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.topnav__link:hover, .topnav__link:focus-visible { color: var(--ink); background: var(--hair-soft); }
.topnav__link.is-current { color: var(--ink); }
.topnav__link.is-current::after {
  content: ""; position: absolute; left: 0.72rem; right: 0.72rem; bottom: 0.18rem;
  height: 2px; border-radius: 2px; background: var(--accent);
}
@media (max-width: 52rem) {
  .topnav__nav {
    margin-inline-start: 0; inline-size: 100%; flex-wrap: nowrap;
    overflow-x: auto; scrollbar-width: thin; gap: 0.1rem;
    padding-block-end: 0.15rem;
  }
}

/* ---- Per-page hero ----------------------------------------------------- */
.page-hero {
  max-inline-size: var(--container); margin-inline: auto;
  padding: clamp(2.4rem, 6vw, 5.5rem) var(--gutter) clamp(1.4rem, 4vw, 2.6rem);
}
.page-hero__kicker {
  font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-block-end: 0.7rem;
}
.page-hero__title {
  font-family: var(--font-serif); font-weight: 470; line-height: 0.98;
  letter-spacing: -0.02em; font-size: var(--step-title);
  margin-block: 0 0.8rem; max-inline-size: 18ch;
}
.page-hero__title em { font-style: italic; color: var(--accent); }
.page-hero__lead { font-size: var(--step-1); color: var(--ink-dim); max-inline-size: 48rem; }

/* ---- Generic page sections + content blocks --------------------------- */
.page-section { max-inline-size: var(--container); margin-inline: auto; padding: clamp(1.4rem, 4vw, 2.8rem) var(--gutter); }
.page-section__title { font-family: var(--font-serif); font-weight: 520; font-size: var(--step-2); letter-spacing: -0.01em; }
.page-section__desc { color: var(--ink-dim); max-inline-size: 48rem; margin-block-start: 0.4rem; }
.page-section__head { margin-block-end: 1.2rem; }

/* feature cards (reuses .gallery-cards grid; this is a neutral variant) */
.card-grid {
  display: grid; gap: clamp(1rem, 2vw, 1.6rem); margin-block-start: 1.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  --card: var(--accent);
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: clamp(1.2rem, 1rem + 1vw, 1.8rem);
  border-radius: 16px; text-decoration: none; color: var(--ink);
  background: rgb(0 0 0 / 0.18); border: 1px solid var(--hair);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.22;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in oklab, var(--card) 70%, #fff 30%), transparent 60%);
  transition: opacity var(--dur) var(--ease);
}
a.card:hover, a.card:focus-visible { transform: translateY(-2px); border-color: var(--hair); }
a.card:hover::before, a.card:focus-visible::before { opacity: 0.4; }
.card__kicker { font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-dim); }
.card__title { font-family: var(--font-serif); font-weight: 560; font-size: var(--step-1); }
.card__desc { color: var(--ink-dim); font-size: var(--step-0); }
.card__meta { color: var(--ink-mute); font-size: var(--step--1); font-family: var(--font-mono); margin-block-start: auto; }

/* placeholder note for sections still to be filled */
.fill-note {
  border: 1px dashed rgb(255 255 255 / 0.2); border-radius: 12px;
  padding: 1rem 1.15rem; color: var(--ink-mute); background: var(--hair-soft);
  font-size: var(--step--1); margin-block-start: 1.2rem;
}
.fill-note code { font-family: var(--font-mono); color: var(--ink-dim); }

/* timeline (Career) */
.timeline { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.timeline__item { border-inline-start: 2px solid var(--hair); padding-inline-start: 1.1rem; }
.timeline__when { font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent); }
.timeline__role { font-family: var(--font-serif); font-weight: 560; font-size: var(--step-1); margin-block: 0.1rem; }
.timeline__org { color: var(--ink-dim); font-size: var(--step--1); }

/* a simple labelled link list (reuses .linklist where present) */
.causes { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 0.9rem; }

/* ---- Shared contact footer -------------------------------------------- */
.site-foot { border-block-start: 1px solid var(--hair); margin-block-start: clamp(2rem, 5vw, 4rem); }
.site-foot__inner {
  max-inline-size: var(--container); margin-inline: auto; padding: 1.6rem var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1.4rem;
}
.site-foot__email { font-family: var(--font-serif); font-size: var(--step-1); color: var(--ink); text-decoration: none; }
.site-foot__email:hover { color: var(--accent); }
.site-foot__social { display: flex; gap: 1rem; margin-inline-start: auto; }
.site-foot__social a { color: var(--ink-dim); text-decoration: none; font-size: var(--step--1); }
.site-foot__social a:hover { color: var(--ink); }
.site-foot__legal { color: var(--ink-mute); font-size: var(--step--1); inline-size: 100%; }
