/* ============================================================
   JALAPENO VISION PHOTOGRAPHY — Design System
   Cinematic dark editorial. Full-bleed imagery, minimal type,
   warm ember accent. Built mobile-first.
   ============================================================ */

:root {
  color-scheme: dark;

  /* Palette */
  --bg: #0a0a09;
  --bg-elev: #131211;
  --bg-elev-2: #1b1a18;
  --ink: #f4f1ea;
  --ink-muted: #aca89e;
  --ink-faint: #8a8578; /* 5.4:1 against --bg — was 3.7:1, below WCAG AA for normal text */
  --accent: #c8632f;
  --accent-bright: #e07b3f;
  --accent-soft: rgba(200, 99, 47, 0.16);
  --line: rgba(244, 241, 234, 0.12);
  --line-soft: rgba(244, 241, 234, 0.07);
  --scrim: rgba(8, 8, 7, 0.5);
  --scrim-strong: rgba(6, 6, 5, 0.78);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --font-sans: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-hero: clamp(2.75rem, 3rem + 5vw, 7.5rem);
  --fs-h1: clamp(2.1rem, 1.7rem + 3vw, 4rem);
  --fs-h2: clamp(1.5rem, 1.3rem + 1.4vw, 2.4rem);
  --fs-h3: clamp(1.15rem, 1.05rem + 0.6vw, 1.5rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.4vw, 1.375rem);
  --fs-body: 1rem;
  --fs-small: 0.8125rem;
  --fs-micro: 0.6875rem;

  /* Spacing (8pt-derived, spacious for editorial/marketing) */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4.5rem;
  --sp-7: 6.5rem;
  --sp-8: 9rem;

  --container: 1360px;
  --container-narrow: 780px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 0.25s;
  --dur-med: 0.6s;
  --dur-slow: 1.1s;

  --z-nav: 100;
  --z-overlay: 200;
  --z-top: 300;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@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;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

img, video { max-width: 100%; display: block; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #0a0a09; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-3);
}
@media (min-width: 768px) { .container { padding-inline: var(--sp-5); } }

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--sp-3);
}
@media (min-width: 768px) { .container-narrow { padding-inline: var(--sp-5); } }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-bright);
  font-weight: 600;
}

.eyebrow--muted { color: var(--ink-muted); }

h1, .h1 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -0.01em; }
h2, .h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.01em; }
h3, .h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h3); line-height: 1.25; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-muted); font-weight: 400; }

.serif-italic { font-style: italic; }

/* ---------- Buttons / Links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.9em;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform 0.4s var(--ease-spring);
  min-height: 44px;
  touch-action: manipulation;
}
.btn:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: 0.1s; }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); color: var(--bg); }
.btn-ghost { color: var(--ink); }
.btn svg { width: 1em; height: 1em; transition: transform 0.4s var(--ease-spring); }
.btn:hover svg { transform: translateX(4px); }

.text-link {
  position: relative;
  padding-bottom: 0.2em;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.text-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: right;
  opacity: 0.35;
  transition: transform var(--dur-med) var(--ease-out);
}
.text-link:hover::after { transform: scaleX(1); transform-origin: left; opacity: 1; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2) var(--sp-3);
  transition: background var(--dur-med) var(--ease-out), padding var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
  border-bottom: 1px solid transparent;
}
@media (min-width: 768px) { .site-header { padding: var(--sp-3) var(--sp-5); } }

.site-header.is-scrolled {
  background: rgba(10, 10, 9, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: var(--line-soft);
  padding-block: var(--sp-1);
}

.brand-mark { display: inline-flex; align-items: center; }
.brand-mark img { height: 42px; width: auto; transition: height var(--dur-med) var(--ease-out); }
.is-scrolled .brand-mark img { height: 32px; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  z-index: var(--z-top);
  min-height: 44px;
  padding-inline: var(--sp-1);
}
.menu-toggle .menu-label {
  font-size: var(--fs-small);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}
.menu-toggle .burger {
  position: relative;
  width: 26px; height: 16px;
}
.menu-toggle .burger span {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--ink);
  transition: transform var(--dur-fast) var(--ease-in-out), opacity var(--dur-fast) var(--ease-in-out), top var(--dur-fast) var(--ease-in-out);
}
.menu-toggle .burger span:nth-child(1) { top: 0; }
.menu-toggle .burger span:nth-child(2) { top: 7px; }
.menu-toggle .burger span:nth-child(3) { top: 14px; }
.nav-open .menu-toggle .burger span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav-open .menu-toggle .burger span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle .burger span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* Full-screen nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-6) var(--sp-3);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-out), visibility 0s linear var(--dur-med);
}
.nav-open .nav-overlay { visibility: visible; opacity: 1; transition-delay: 0s; }

.nav-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(200, 99, 47, 0.14), transparent 55%);
  pointer-events: none;
}

.nav-list { display: flex; flex-direction: column; gap: var(--sp-1); }
.nav-list a {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.6rem + 4vw, 4.5rem);
  line-height: 1.15;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color var(--dur-fast) var(--ease-out);
  opacity: 0;
  transform: translateY(24px);
}
.nav-open .nav-list a { animation: navItemIn var(--dur-med) var(--ease-out) forwards; }
.nav-list a:hover, .nav-list a.is-current { color: var(--ink); }
.nav-list a.is-current { color: var(--accent-bright); }
@keyframes navItemIn { to { opacity: 1; transform: translateY(0); } }

.nav-meta {
  position: absolute;
  bottom: var(--sp-4);
  left: var(--sp-3);
  right: var(--sp-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  color: var(--ink-faint);
  font-size: var(--fs-small);
  letter-spacing: 0.05em;
}
@media (min-width: 768px) { .nav-meta { left: var(--sp-5); right: var(--sp-5); } }
.nav-meta a { color: var(--ink-muted); }
.nav-meta a:hover { color: var(--accent-bright); }

body.nav-open { overflow: hidden; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg-elev);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img, .hero-media .ph { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,7,0.15) 0%, rgba(8,8,7,0.1) 40%, rgba(8,8,7,0.85) 100%);
}
.hero-kenburns { animation: kenburns 22s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }

/* Keep the placeholder label clear of bottom-anchored hero copy: pin it as a small
   top-right corner badge instead of centering it, so it never collides with the
   title/subhead even when the hero grows taller than the viewport. */
.hero-media .ph-label {
  align-items: flex-start;
  justify-content: flex-end;
  flex-direction: row;
  gap: 0.5em;
  padding: var(--sp-3);
  text-align: right;
}
.hero-media .ph-label svg { width: 16px; height: 16px; margin-bottom: 0; flex-shrink: 0; }
.hero-media .ph-label span { font-size: var(--fs-micro); }

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 var(--sp-3) var(--sp-6);
}
@media (min-width: 768px) { .hero-content { padding: 0 var(--sp-5) var(--sp-7); } }

.hero-content .eyebrow { display: block; margin-bottom: var(--sp-2); }
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-hero);
  line-height: 0.98;
  letter-spacing: -0.015em;
  max-width: 16ch;
}
.hero-sub {
  margin-top: var(--sp-3);
  max-width: 46ch;
  color: var(--ink-muted);
  font-size: var(--fs-lead);
}
.hero-actions { margin-top: var(--sp-4); display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.scroll-cue {
  position: absolute;
  right: var(--sp-3);
  bottom: var(--sp-4);
  z-index: 1;
  display: none;
  align-items: center;
  gap: var(--sp-1);
  color: var(--ink-muted);
  font-size: var(--fs-micro);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
@media (min-width: 768px) { .scroll-cue { display: flex; right: var(--sp-5); } }
.scroll-cue .line { width: 1px; height: 48px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--accent-bright);
  animation: cueDrop 2.4s var(--ease-in-out) infinite;
}
@keyframes cueDrop { to { top: 100%; } }

/* Smaller page hero (non-home) */
.hero--page { min-height: 66vh; }
.hero--page .hero-title { font-size: var(--fs-h1); max-width: 20ch; }

/* Magazine-style hero: copy sits in the open sky at the top of the frame
   instead of anchoring to the bottom. Use this when the subject of the
   photo sits low/center in the composition, so bottom-anchored text
   would otherwise land on top of them. A light top scrim (not a full
   band) keeps the text legible while leaving the rest of the photo
   uncovered, the way a magazine cover line sits in open sky rather than
   over the subject's face. */
.hero--top { align-items: flex-start; }
.hero--top .hero-media::after {
  background: linear-gradient(180deg, rgba(8,8,7,0.7) 0%, rgba(8,8,7,0.4) 28%, rgba(8,8,7,0.05) 55%, rgba(8,8,7,0) 72%);
}
.hero--top .hero-content {
  padding-top: clamp(5.5rem, 3.5rem + 6vw, 8rem);
  padding-bottom: 0;
}
.hero--top .hero-content .eyebrow { margin-bottom: var(--sp-1); }
.hero--top .hero-title,
.hero--top .hero-sub,
.hero--top .eyebrow {
  text-shadow: 0 2px 20px rgba(6, 6, 5, 0.4);
}
/* A cover-line treatment, not a full masthead — compact enough to stay
   inside the sky on any photo where the subject sits mid-frame. */
.hero--top .hero-title {
  font-size: clamp(2rem, 1.6rem + 3vw, 3.75rem);
  max-width: 14ch;
}
.hero--top .hero-sub {
  max-width: 100%;
  font-size: var(--fs-body);
  margin-top: var(--sp-1);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.hero--top .hero-actions { margin-top: var(--sp-1); }
@media (max-width: 480px) {
  .hero--top .hero-actions .btn { padding: 0.7em 1.5em; font-size: 0.75rem; }
}

/* Same cover-line treatment as .hero--top, but anchored to the FOOT of
   the frame instead — for photos where the subject sits upper/mid and
   the foreground below them (ground, debris, shadow) is the clear,
   uncluttered space rather than the sky above. Kept deliberately small:
   this whole block has to fit in the foreground strip below the
   subject, which is a much shorter run than the open sky above them. */
.hero--cover-bottom .hero-media::after {
  background: linear-gradient(0deg, rgba(8,8,7,0.82) 0%, rgba(8,8,7,0.55) 20%, rgba(8,8,7,0.1) 45%, rgba(8,8,7,0) 62%);
}
.hero--cover-bottom .hero-content {
  padding-top: 0;
  padding-bottom: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
}
.hero--cover-bottom .hero-content .eyebrow { margin-bottom: 0.4em; }
.hero--cover-bottom .hero-title,
.hero--cover-bottom .hero-sub,
.hero--cover-bottom .eyebrow {
  text-shadow: 0 2px 20px rgba(6, 6, 5, 0.5);
}
.hero--cover-bottom .hero-title {
  font-size: clamp(1.4rem, 1.05rem + 2vw, 2.25rem);
  line-height: 1.05;
  max-width: 16ch;
}
.hero--cover-bottom .hero-sub {
  max-width: 46ch;
  font-size: var(--fs-micro);
  margin-top: 0.35em;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}
.hero--cover-bottom .hero-actions { margin-top: var(--sp-2); }
.hero--cover-bottom .hero-actions .btn { padding: 0.6em 1.25em; font-size: 0.72rem; }

/* Buttons detached from the top copy block and anchored near the floor of
   the frame instead — keeps them clear of a subject sitting mid-image,
   rather than crowding them right under the subhead. */
.hero-actions--floor {
  position: absolute;
  left: var(--sp-3);
  right: var(--sp-3);
  bottom: var(--sp-5);
  z-index: 1;
  margin-top: 0;
}
@media (min-width: 768px) {
  .hero-actions--floor { left: var(--sp-5); right: var(--sp-5); bottom: var(--sp-6); }
}
.hero-actions--floor .btn-ghost {
  background: rgba(8, 8, 7, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ============================================================
   REVEAL / SCROLL ANIMATION
   Three distinct treatments by content role — not one fade-up
   applied everywhere:
   - [data-reveal="fade"]   labels/eyebrows: pure opacity, no motion
   - [data-reveal]          prose/copy blocks: a quiet, short lift
   - [data-reveal="image"]  photography: a curtain lifts to reveal
                            the frame, echoing a slide advancing
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal="fade"] { transform: none; }

/* Note: clip-path lives on an INNER element, never on the observed
   [data-reveal="image"] target itself — clipping the observed element
   to zero visible area makes IntersectionObserver unable to ever detect
   it scrolling into view (a real, confirmed browser behavior). */
[data-reveal="image"] { opacity: 1; transform: none; }
[data-reveal="image"] .tile-media {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.05s var(--ease-out);
}
[data-reveal="image"].is-visible .tile-media { clip-path: inset(0 0 0 0); }
[data-reveal="image"].masonry-item img {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.05s var(--ease-out);
}
[data-reveal="image"].masonry-item.is-visible img { clip-path: inset(0 0 0 0); }

[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 55ms); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  [data-reveal="image"] .tile-media, [data-reveal="image"].masonry-item img { clip-path: none !important; }
  .hero-kenburns { animation: none; }
}

/* ============================================================
   SECTIONS / LAYOUT
   ============================================================ */
section { position: relative; }
.section { padding-block: var(--sp-7); }
.section--tight { padding-block: var(--sp-5); }
.section-head { max-width: 60ch; margin-bottom: var(--sp-5); }
/* Mobile: the desktop spacing scale is generous by design, but ported
   unchanged it reads as long stretches of empty black between content
   while scrolling. Tighten the rhythm without losing separation. */
@media (max-width: 719px) {
  .section { padding-block: var(--sp-6); }
  .section--tight { padding-block: var(--sp-4); }
  .section-head { margin-bottom: var(--sp-4); }
}
.section-head .eyebrow { display: block; margin-bottom: var(--sp-2); }

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

.grid { display: grid; gap: var(--sp-3); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile: a picker grid of full tiles (e.g. "Selected Work") becomes a
   swipeable filmstrip too, same reasoning as the masonry galleries —
   three stacked 4:5 tiles is a lot of scrolling just to see the choices. */
@media (max-width: 719px) {
  .grid-3:has(.tile) {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    gap: var(--sp-3);
    margin-inline: calc(-1 * var(--sp-3));
    padding-inline: var(--sp-3);
    padding-bottom: var(--sp-2);
    scrollbar-width: none;
  }
  .grid-3:has(.tile)::-webkit-scrollbar { display: none; }
  .grid-3:has(.tile) > .tile { flex: 0 0 78%; scroll-snap-align: start; }
}

/* ---------- Work / Travel index tiles ---------- */
.tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-elev);
}
.tile-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.tile-media img, .tile-media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.tile:hover .tile-media img, .tile:hover .tile-media .ph { transform: scale(1.06); }
.tile-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,7,0) 45%, rgba(8,8,7,0.9) 100%);
}
.tile-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--sp-3);
  z-index: 1;
}
.tile-caption .eyebrow { display: block; margin-bottom: var(--sp-1); }
.tile-caption h3 { color: var(--ink); }
.tile-arrow {
  position: absolute; top: var(--sp-2); right: var(--sp-2);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(244,241,234,0.35);
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform 0.5s var(--ease-spring);
}
.tile:hover .tile-arrow { background: var(--ink); border-color: var(--ink); transform: rotate(45deg) scale(1.08); }
.tile:hover .tile-arrow svg { color: var(--bg); }
.tile-arrow svg { width: 16px; height: 16px; }

/* Wide feature tile (home featured work) */
.tile--wide .tile-media { aspect-ratio: 16 / 10; }
@media (min-width: 900px) { .tile--wide .tile-media { aspect-ratio: 21 / 9; } }

/* ---------- Placeholder imagery (until real photos land) ---------- */
.ph {
  position: relative;
  display: block;
  width: 100%; height: 100%;
  min-height: 220px;
  background:
    radial-gradient(120% 90% at 15% 10%, rgba(244,241,234,0.06), transparent 60%),
    linear-gradient(155deg, var(--ph-a, #23201c) 0%, var(--ph-b, #100f0d) 65%, #0a0a09 100%);
  overflow: hidden;
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/></svg>");
}
.ph-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: var(--sp-1);
  text-align: center;
  padding: var(--sp-3);
}
.ph-label svg { width: 28px; height: 28px; opacity: 0.5; margin-bottom: var(--sp-1); }
.ph-label span {
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.42);
}
.ph--forest { --ph-a: #26302a; --ph-b: #11150f; }
.ph--snow { --ph-a: #2a3138; --ph-b: #0f1214; }
.ph--ember { --ph-a: #3a271c; --ph-b: #150f0b; }
.ph--dusk { --ph-a: #322a3a; --ph-b: #121016; }
.ph--stone { --ph-a: #2c2a26; --ph-b: #121110; }
.ph--ocean { --ph-a: #1f2e34; --ph-b: #0d1416; }

/* ============================================================
   ABOUT / TIMELINE
   ============================================================ */
.about-portrait { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: 4px; }
.about-portrait img, .about-portrait .ph { width: 100%; height: 100%; object-fit: cover; }

.timeline { border-top: 1px solid var(--line); }
.timeline-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-1) var(--sp-4);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) { .timeline-row { grid-template-columns: 140px 1fr; } }
.timeline-year {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--accent-bright);
}
.timeline-row h3 { margin-bottom: var(--sp-1); }
.timeline-row p { color: var(--ink-muted); max-width: 62ch; }

/* ============================================================
   PROJECT / DETAIL PAGES
   ============================================================ */
.statement {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: 1.35;
  font-weight: 400;
  max-width: 26ch;
}
.statement em { color: var(--accent-bright); font-style: italic; }

.prose { max-width: 68ch; color: var(--ink-muted); }
.prose p + p { margin-top: var(--sp-3); }
.prose strong { color: var(--ink); font-weight: 600; }

.meta-list { display: flex; flex-wrap: wrap; gap: var(--sp-4); padding-top: var(--sp-4); margin-top: var(--sp-4); border-top: 1px solid var(--line); }
.meta-item .eyebrow { display: block; margin-bottom: var(--sp-1); }
.meta-item p { color: var(--ink); font-size: var(--fs-small); }

/* ---------- Event / exhibition announcement card ---------- */
.event-card {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: var(--sp-4);
  background: linear-gradient(160deg, rgba(200, 99, 47, 0.08), transparent 60%);
}
@media (max-width: 640px) { .event-card { flex-direction: column; } }
.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--line);
  border-radius: 4px;
  text-align: center;
  flex-shrink: 0;
}
.event-date-month { font-size: var(--fs-small); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-bright); font-weight: 600; }
.event-date-day { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; margin-block: 0.15em; }
.event-date-year { font-size: var(--fs-micro); color: var(--ink-faint); letter-spacing: 0.08em; }

/* Mobile: a swipeable horizontal filmstrip (native scroll-snap), not a
   shrunk column — a stacked column of full-width photos is a lot of
   vertical scrolling on a phone for what is, in person, a gallery you'd
   flip through. Tablet/desktop keep the column masonry. */
.masonry {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  gap: var(--sp-2);
  margin-inline: calc(-1 * var(--sp-3));
  padding-inline: var(--sp-3);
  padding-bottom: var(--sp-2);
  height: 62vh;
  max-height: 520px;
  scrollbar-width: none;
}
.masonry::-webkit-scrollbar { display: none; }
.masonry-item {
  flex: 0 0 auto;
  height: 100%;
  scroll-snap-align: start;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
}
.masonry-item img, .masonry-item .ph { height: 100%; width: auto; max-width: 84vw; display: block; object-fit: cover; }

@media (min-width: 640px) {
  .masonry {
    display: block;
    columns: 2;
    overflow: visible;
    height: auto;
    max-height: none;
    margin-inline: 0;
    padding-inline: 0;
    padding-bottom: 0;
  }
  .masonry-item { height: auto; break-inside: avoid; margin-bottom: var(--sp-2); }
  .masonry-item img, .masonry-item .ph { width: 100%; height: auto; max-width: none; }
}
@media (min-width: 1024px) { .masonry { columns: 3; } }

/* Mobile: lead with the facts, not the full statement — a phone reader
   scans before committing to long-form copy. Desktop keeps source order. */
@media (max-width: 719px) {
  .project-intro { display: flex; flex-direction: column; }
  .project-intro > .meta-list {
    order: -1;
    margin-top: 0; padding-top: 0; border-top: none;
    margin-bottom: var(--sp-4); padding-bottom: var(--sp-4);
    border-bottom: 1px solid var(--line);
  }
  .project-intro > .grid { order: 1; }
}

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-h2);
  line-height: 1.3;
  max-width: 22ch;
  color: var(--ink);
  position: relative;
  padding-left: var(--sp-4);
  border-left: 2px solid var(--accent);
}

.next-project {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: var(--sp-5);
}
.next-project .eyebrow { display: block; margin-bottom: var(--sp-1); }
.next-project .arrow-circle {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease-out), transform 0.5s var(--ease-spring);
}
.next-project:hover .arrow-circle { background: var(--ink); transform: translateX(6px); }
.next-project:hover .arrow-circle svg { color: var(--bg); }

/* Mobile-only persistent "next" pill — a phone visitor gets a standing
   way to keep moving through the work without opening the full-screen
   menu or scrolling to the bottom; desktop relies on the menu + the
   in-page next-project block instead. Icon-only and corner-anchored so
   it never covers more than a letter or two of body text, and JS fades
   it out once the real next-project block is reachable (see main.js)
   so it never sits over the reading column while active. */
.mobile-next-pill {
  display: none;
  position: fixed;
  right: var(--sp-3);
  bottom: var(--sp-3);
  z-index: var(--z-nav);
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--ink);
  color: var(--bg);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.4s var(--ease-spring);
}
.mobile-next-pill .pill-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mobile-next-pill svg { width: 16px; height: 16px; }
.mobile-next-pill.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.mobile-next-pill:active { transform: scale(0.92); }
@media (max-width: 719px) {
  .mobile-next-pill { display: inline-flex; }
}

/* ============================================================
   CARDS: process / values / instagram strip
   ============================================================ */
.stat-row { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--sp-4); }
@media (min-width: 720px) { .stat-row { grid-template-columns: repeat(4,1fr); } }
.stat { border-top: 1px solid var(--line); padding-top: var(--sp-2); }
.stat .num { font-family: var(--font-display); font-size: var(--fs-h1); color: var(--ink); display: block; white-space: nowrap; }
@media (max-width: 480px) {
  .stat .num { font-size: clamp(1.4rem, 1.1rem + 4vw, 4rem); }
}
.stat .label { color: var(--ink-muted); font-size: var(--fs-small); }

/* ============================================================
   FORM (Contact)
   ============================================================ */
.field { margin-bottom: var(--sp-3); }
.field label {
  display: block;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--sp-1);
}
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  padding: 0.85em 0.1em;
  font-size: 1rem;
  min-height: 44px;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent-bright);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sp-2); }
@media (min-width: 640px) { .field-row { gap: 0 var(--sp-3); } }
.form-note { color: var(--ink-faint); font-size: var(--fs-small); margin-top: var(--sp-2); }
.form-status { margin-top: var(--sp-3); font-size: var(--fs-small); }
.form-status[data-state="success"] { color: #7fbf8e; }
.form-status[data-state="error"] { color: #e0765f; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: var(--sp-6) var(--sp-4);
}
.footer-top {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
  margin-bottom: var(--sp-6);
}
@media (min-width: 860px) { .footer-top { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-brand img { height: 44px; margin-bottom: var(--sp-2); }
.footer-brand p { color: var(--ink-muted); max-width: 34ch; }
.footer-col h4 {
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--sp-2);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6em; }
.footer-col a { color: var(--ink-muted); transition: color var(--dur-fast) var(--ease-out); }
.footer-col a:hover { color: var(--accent-bright); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  align-items: center; justify-content: space-between;
  color: var(--ink-faint); font-size: var(--fs-small);
  padding-top: var(--sp-4); border-top: 1px solid var(--line-soft);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.mt-1{margin-top:var(--sp-1)} .mt-2{margin-top:var(--sp-2)} .mt-3{margin-top:var(--sp-3)}
.mt-4{margin-top:var(--sp-4)} .mt-5{margin-top:var(--sp-5)} .mt-6{margin-top:var(--sp-6)}
.mb-1{margin-bottom:var(--sp-1)} .mb-2{margin-bottom:var(--sp-2)} .mb-3{margin-bottom:var(--sp-3)}
.mb-4{margin-bottom:var(--sp-4)} .mb-5{margin-bottom:var(--sp-5)}
.text-center{text-align:center}
.flex{display:flex} .items-center{align-items:center} .justify-between{justify-content:space-between}
.gap-2{gap:var(--sp-2)} .gap-3{gap:var(--sp-3)}
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: initial; } }
.show-mobile { display: initial; }
@media (min-width: 768px) { .show-mobile { display: none; } }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg);
  padding: 1em 1.4em; z-index: 999;
  border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; }

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

/* ============================================================
   MAGNETIC BUTTONS
   Buttons and circular arrow badges shift a few px toward the
   cursor as it approaches, using the same spring easing already
   defined on their hover transforms. JS drives the translate via
   inline style; snapping back on mouseleave uses that transition.
   Desktop pointer devices only, gated behind prefers-reduced-motion.
   ============================================================ */
.is-magnetic { transition: transform 0.5s var(--ease-spring); }
