/* =============================================================================
   AARON VAN DER BRUGGE — Design System v2.1
   Documentary · Editorial · Cinematic · Builder
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

/* =============================================================================
   DESIGN TOKENS
   v2.1: green-2 more present, green-pale lifted, line gains green tint,
         slightly reduced typography scale for hero
   ============================================================================= */
:root {
  /* Backgrounds */
  --bg:         #161714;
  --bg-2:       #1c1e19;
  --bg-3:       #222520;
  --bg-card:    #1f211c;
  --bg-hover:   #272920;

  /* Accent — muted forest / sage green
     v2.1: green-2 bumped from #799e71 → #7fad75 (more present, same character)
           green-pale lifted from #baccb5 → #c3d9bc */
  --green:      #5c7854;
  --green-2:    #7fad75;
  --green-3:    #3e5237;
  --green-pale: #c3d9bc;

  /* Text */
  --text:       #e0dbd3;
  --text-2:     #a09990;
  --text-3:     #68635e;

  /* Borders — v2.1: subtle green tint replaces pure white-alpha
     this creates a warmer, more atmospheric separation */
  --line:       rgba(72, 96, 64, 0.18);
  --line-2:     rgba(72, 96, 64, 0.30);

  /* Type */
  --f-display:  'Cormorant Garamond', Georgia, serif;
  --f-body:     'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-w:   1400px;
  --prose-w: 66ch;
  --gap:     clamp(1.5rem, 4vw, 3rem);
  --pad:     clamp(1.5rem, 5vw, 4rem);

  /* Easing */
  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* =============================================================================
   TYPOGRAPHY UTILITIES
   ============================================================================= */
.t-label {
  font-family: var(--f-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}

.t-label-green {
  font-family: var(--f-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-2);
}

/* =============================================================================
   LAYOUT
   ============================================================================= */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* =============================================================================
   NAVIGATION
   ============================================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(22, 23, 20, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1rem var(--pad);
  border-bottom-color: var(--line);
}

.nav-logo {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text);
  transition: color 0.3s;
}
.nav-logo:hover { color: var(--green-2); }
.nav-logo .mid {
  font-style: italic;
  font-weight: 300;
  color: var(--text-2);
  font-size: 0.95em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--green-2);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--green-2); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.nav-mobile.is-open { opacity: 1; pointer-events: all; }
.nav-mobile a {
  font-family: var(--f-display);
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 300;
  color: var(--text);
  transition: color 0.3s;
}
.nav-mobile a:hover { color: var(--green-2); }

/* =============================================================================
   SCROLL REVEAL
   ============================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-slow {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.reveal-slow.is-visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.42s; }
.reveal-delay-5 { transition-delay: 0.56s; }

/* =============================================================================
   HERO SECTION
   v2.1 typography changes:
   - name: font-weight 300 → 400 (less wispy, more builder-credible)
   - name: size reduced from 11.5rem max → 8.5rem max (less fashion campaign)
   - line-mid "van der": smaller ratio 0.42em → 0.34em, softer opacity
   - descriptor: "Builder of worlds" → "20+ years" (concrete, honest)
   - NEW: .hero-currently — documentary lower-third indicator
   ============================================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8rem var(--pad) 6rem;
}

.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.4;
  pointer-events: none;
}

/* v2.1: green glow more visible — rgba opacity 0.18 → 0.30 */
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 55% at 50% 105%, rgba(50, 74, 44, 0.30) 0%, transparent 65%),
    radial-gradient(ellipse 50% 35% at 15% 15%,  rgba(255,255,255,0.015) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1000px;
  width: 100%;
}

/* Documentary lower-third: pulsing location/role indicator */
.hero-currently {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.8s 0.15s var(--ease) both;
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-2);
  box-shadow: 0 0 0 2px rgba(127, 173, 117, 0.2);
  flex-shrink: 0;
  animation: statusPulse 3.5s ease-in-out infinite;
}

.hero-currently-text {
  font-family: var(--f-body);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}

.hero-eyebrow {
  font-family: var(--f-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 2rem;
  animation: fadeUp 0.8s 0.25s var(--ease) both;
}

/* v2.1: weight 300 → 400, max-size 11.5rem → 8.5rem */
.hero-name {
  font-family: var(--f-display);
  font-size: clamp(3.8rem, 9.5vw, 8.5rem);
  font-weight: 400;
  line-height: 0.93;
  letter-spacing: -0.02em;
  color: var(--text);
  animation: fadeUp 1s 0.38s var(--ease) both;
  margin-bottom: 2.5rem;
}

/* v2.1: ratio 0.42em → 0.34em, softer with opacity 0.68 */
.hero-name .line-mid {
  display: block;
  font-size: 0.34em;
  font-style: italic;
  font-weight: 300;
  color: var(--text-2);
  letter-spacing: 0.07em;
  line-height: 2.3;
  opacity: 0.68;
}

.hero-descriptor {
  font-family: var(--f-body);
  font-size: clamp(0.75rem, 1.1vw, 0.85rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  animation: fadeUp 0.8s 0.58s var(--ease) both;
  margin-bottom: 0.65rem;
}
.hero-descriptor span {
  display: inline-block;
  padding: 0 0.9rem;
  color: var(--text-3);
}

.hero-sub {
  font-family: var(--f-body);
  font-size: clamp(0.75rem, 1.1vw, 0.82rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-2);
  max-width: 52ch;
  margin: 0 auto 2.75rem;
  text-align: center;
  line-height: 1.75;
  animation: fadeUp 0.8s 0.70s var(--ease) both;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.78s var(--ease) both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--green);
  color: #e8ede6;
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.3s, transform 0.3s var(--ease);
}
.btn-primary:hover { background: var(--green-2); transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--text-2);
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.btn-ghost:hover { border-color: var(--green-2); color: var(--green-2); transform: translateY(-2px); }

.hero-tertiary-links {
  display: flex;
  gap: 0.35rem 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.25rem;
  animation: fadeUp 0.8s 0.86s var(--ease) both;
}
.hero-tertiary-links a {
  font-family: var(--f-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color 0.2s;
}
.hero-tertiary-links a:hover { color: var(--green-2); }
.hero-tertiary-links .tl-sep {
  font-size: 0.68rem;
  color: var(--text-3);
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeUp 0.8s 1.05s var(--ease) both;
  z-index: 1;
}
.hero-scroll span {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--green-3), transparent);
  animation: scrollPulse 2.2s infinite;
}

/* =============================================================================
   STATEMENT / ABOUT SECTION — Documentary Film Style
   v2.1: Full redesign from portrait-slot to cinematic establishing shot
   Horizontal film-strip image leads, text grid below.
   Drop in environmental/documentary photography when available.
   ============================================================================= */
.statement {
  border-top: 1px solid var(--line);
  overflow: hidden;
}

/* The "establishing shot" — full-width, film-still proportion */
.statement-film {
  position: relative;
  width: 100%;
  height: clamp(38vh, 50vh, 56vh);
  overflow: hidden;
  background: var(--bg-3);
}

.statement-film img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  /* Dark, desaturated — documentary not promo */
  filter: brightness(0.58) saturate(0.65);
  transition: transform 1s var(--ease);
}
.statement-film:hover img { transform: scale(1.015); }

/* Gradient fades image to background at bottom — seamless transition to text */
.statement-film-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(22, 23, 20, 0.08) 0%,
    rgba(22, 23, 20, 0.15) 45%,
    rgba(22, 23, 20, 0.72) 80%,
    var(--bg) 100%
  );
  pointer-events: none;
}

/* Caption bar at bottom of image — documentary lower-third */
.statement-film-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem var(--pad);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.statement-film-caption {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.statement-film-caption span {
  font-family: var(--f-body);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(224, 219, 211, 0.45);
}

.statement-film-sep { color: rgba(224, 219, 211, 0.2) !important; }

.statement-film-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-2);
  opacity: 0.7;
  flex-shrink: 0;
  display: block;
}

/* Photography direction note — for placeholder reference only */
.statement-film-note {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: rgba(224, 219, 211, 0.22);
  font-style: italic;
  align-self: flex-end;
}

/* Text body below the image */
.statement-body {
  padding: clamp(3rem, 6vw, 5rem) var(--pad);
  max-width: var(--max-w);
  margin: 0 auto;
}

.statement-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}

.statement-quote {
  font-family: var(--f-display);
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  font-weight: 300;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.01em;
}
.statement-quote em { font-style: italic; color: var(--green-pale); }

.statement-body-text {
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--text-2);
  margin-bottom: 1.25rem;
  max-width: 48ch;
}

.statement-facts {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.statement-fact {
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.statement-fact::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: var(--green-2);
  flex-shrink: 0;
}

/* =============================================================================
   WHAT I BUILD — Engineering capabilities summary
   Documentary chapter between About and first doc beat.
   Restrained two-column layout: capabilities left, achievement stats right.
   ============================================================================= */
.what-i-build {
  border-top: 1px solid var(--line);
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--pad);
}

.wib-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.wib-header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.wib-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}

.wib-capabilities {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.wib-cap {
  padding-left: 1.25rem;
  border-left: 1px solid var(--green-3);
}

.wib-cap-label {
  font-family: var(--f-body);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-2);
  display: block;
  margin-bottom: 0.3rem;
}

.wib-cap-desc {
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--text-2);
}

.wib-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.wib-stat-num {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}

.wib-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 0.3rem;
  line-height: 1.5;
  max-width: 28ch;
}

.wib-footer {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

/* =============================================================================
   WHY AARON — Career differentiator section
   Sticky left label + right-hand list of specific career facts.
   Sits between "What I Build" and the first doc beat / works grid.
   ============================================================================= */
.why-aaron {
  border-top: 1px solid var(--line);
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--pad);
}
.why-aaron-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}
.why-aaron-header {
  position: sticky;
  top: 5.5rem;
}
.why-aaron-intro {
  font-size: 0.83rem;
  line-height: 1.9;
  color: var(--text-3);
  margin-top: 0.75rem;
  max-width: 28ch;
}
.ya-facts {
  display: flex;
  flex-direction: column;
}
.ya-fact {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.ya-fact:last-child {
  border-bottom: 1px solid var(--line);
}
.ya-fact-cat {
  display: block;
  font-family: var(--f-body);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-2);
  margin-bottom: 0.45rem;
}
.ya-fact-text {
  font-size: 0.85rem;
  line-height: 1.85;
  color: var(--text-2);
}

/* =============================================================================
   WORKS SECTION
   ============================================================================= */
.works {
  padding: clamp(4rem, 8vw, 8rem) 0;
  border-top: 1px solid var(--line);
}

.works-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 var(--pad);
  margin-bottom: clamp(3rem, 6vw, 5rem);
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}
.works-header-left h2 {
  font-family: var(--f-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1;
}
.works-header-right {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-bottom: 0.3rem;
}

.work-feature {
  display: grid;
  grid-template-columns: 3fr 2fr;
  min-height: 55vh;
  border-top: 1px solid var(--line);
  transition: background 0.4s var(--ease);
  cursor: pointer; /* entire card is interactive */
}
.work-feature:nth-child(even) { grid-template-columns: 2fr 3fr; }
.work-feature:hover { background: var(--bg-hover); }

/* Focus ring on the card when keyboard user focuses the internal link */
.work-feature:has(.work-link:focus-visible) {
  outline: 1px solid var(--green-2);
  outline-offset: -2px;
}
.work-link:focus-visible { outline: none; } /* suppress default; card shows ring instead */

.work-visual {
  position: relative;
  overflow: hidden;
  background: var(--bg-3);
}
.work-feature:nth-child(even) .work-visual { order: 2; }

.work-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) saturate(0.82);
  transition: transform 0.9s var(--ease), filter 0.5s var(--ease);
}
.work-feature:hover .work-visual img {
  transform: scale(1.04);
  filter: brightness(0.95) saturate(0.88);
}

.work-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(22,23,20,0.28) 0%, transparent 55%);
  pointer-events: none;
}

.work-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 5rem);
}

.work-index {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.9rem;
}

.work-title {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}
.work-feature:hover .work-title { color: var(--green-pale); }

.work-meta {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  /* v2.1: green-2 now more visible in this context */
  color: var(--green-2);
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}
.work-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.work-meta span::before {
  content: '';
  display: block;
  width: 10px;
  height: 1px;
  background: var(--green-3);
}

.work-excerpt {
  font-size: 0.87rem;
  line-height: 1.85;
  color: var(--text-2);
  margin-bottom: 2rem;
  max-width: 42ch;
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-2);
  transition: gap 0.3s var(--ease), color 0.3s;
}
.work-link::after { content: '→'; transition: transform 0.3s var(--ease); }
.work-feature:hover .work-link::after { transform: translateX(4px); }

.works-view-all {
  display: flex;
  justify-content: flex-end;
  padding: 2rem var(--pad);
  border-top: 1px solid var(--line);
  max-width: var(--max-w);
  margin: 0 auto;
}
.works-view-all a {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-2);
  transition: color 0.3s, gap 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.works-view-all a:hover { color: var(--text); gap: 0.8rem; }

/* Continuation block — follows a doc-beat, no top border needed */
.works--cont {
  border-top: none;
  padding-top: 0;
}

/* =============================================================================
   WORKS META BAR — replaces .works-header in documentary layout
   Minimal editorial label strip, no large heading
   ============================================================================= */
.works-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--pad) 0;
  max-width: var(--max-w);
  margin: 0 auto 2.5rem;
  gap: 1rem;
}

.works-meta-bar-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.works-meta-count {
  font-family: var(--f-display);
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
}

.works-meta-bar-right {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* =============================================================================
   TEMPORAL ERA FILTERS — older work feels older via image treatment
   Applied as modifier class on .work-feature articles
   ============================================================================= */
/* Early era: warm sepia tint, desaturated — feels like a found photo */
.work-era-early .work-visual img {
  filter: brightness(0.76) saturate(0.60) sepia(0.10);
}
.work-era-early:hover .work-visual img {
  filter: brightness(0.88) saturate(0.72) sepia(0.05);
}

/* Mid era: neutral desaturated — documentary archive feel */
.work-era-mid .work-visual img {
  filter: brightness(0.80) saturate(0.70);
}
.work-era-mid:hover .work-visual img {
  filter: brightness(0.90) saturate(0.80);
}

/* Recent era: close to full fidelity but still cinematic */
.work-era-recent .work-visual img {
  filter: brightness(0.86) saturate(0.84);
}
.work-era-recent:hover .work-visual img {
  filter: brightness(0.94) saturate(0.90);
}

/* Current era: full cinematic presence */
.work-era-current .work-visual img {
  filter: brightness(0.90) saturate(0.90);
}
.work-era-current:hover .work-visual img {
  filter: brightness(0.97) saturate(0.96);
}

/* =============================================================================
   CHAPTER BREAK — cinematic full-width visual interlude between sections
   Reusable. Variants: default (21:9), --triptych, --silent (16:9)
   ============================================================================= */
.chapter-break {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 62vh;
  overflow: hidden;
  background: var(--bg-3);
  display: block;
}

/* The photographic layer */
.chapter-break__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.48) saturate(0.60);
  transition: transform 1.6s var(--ease);
  will-change: transform;
}

/* Slow zoom on scroll reveal */
.chapter-break.is-visible .chapter-break__image {
  transform: scale(1.03);
}

/* Edge vignette — deep at corners, transparent center */
.chapter-break__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,  rgba(22,23,20,0.55) 0%,  rgba(22,23,20,0.10) 40%, rgba(22,23,20,0.10) 60%, rgba(22,23,20,0.70) 100%),
    linear-gradient(to right,   rgba(22,23,20,0.28) 0%,  transparent 35%,         transparent 65%,          rgba(22,23,20,0.28) 100%);
  pointer-events: none;
}

/* Thin inner frame — film frame reference */
.chapter-break__frame {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,255,255,0.042);
  pointer-events: none;
  z-index: 2;
}

/* Text content — anchored bottom-left by default */
.chapter-break__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  z-index: 3;
}

.chapter-break__label {
  font-family: var(--f-body);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green-2);
  margin-bottom: 0.65rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s 0.2s var(--ease), transform 0.8s 0.2s var(--ease);
}

.chapter-break__title {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 5vw, 4.8rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--text);
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s 0.35s var(--ease), transform 1s 0.35s var(--ease);
}

.chapter-break__sub {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(224, 219, 211, 0.38);
  margin-top: 0.75rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s 0.52s var(--ease), transform 0.8s 0.52s var(--ease);
}

/* Reveal text when visible */
.chapter-break.is-visible .chapter-break__label,
.chapter-break.is-visible .chapter-break__title,
.chapter-break.is-visible .chapter-break__sub {
  opacity: 1;
  transform: translateY(0);
}

/* ---- TRIPTYCH variant — three equal panels, gap between ---- */
.chapter-break--triptych {
  aspect-ratio: 21 / 9;
  max-height: 56vh;
  display: flex;
  gap: 2px;
  background: #0e0f0c;
}

.triptych-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--bg-3);
}

.triptych-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform 1.6s var(--ease), filter 0.6s var(--ease);
  will-change: transform;
}

/* Panel 1 (oldest/earliest) — warmest, most aged */
.triptych-panel:nth-child(1) img {
  filter: brightness(0.52) saturate(0.48) sepia(0.14);
}
/* Panel 2 (mid) — neutral */
.triptych-panel:nth-child(2) img {
  filter: brightness(0.50) saturate(0.58);
}
/* Panel 3 (most recent) — slightly more present */
.triptych-panel:nth-child(3) img {
  filter: brightness(0.55) saturate(0.65);
}

/* Slow zoom per panel on reveal */
.chapter-break--triptych.is-visible .triptych-panel:nth-child(1) img { transform: scale(1.04); }
.chapter-break--triptych.is-visible .triptych-panel:nth-child(2) img { transform: scale(1.03); transition-delay: 0.12s; }
.chapter-break--triptych.is-visible .triptych-panel:nth-child(3) img { transform: scale(1.04); transition-delay: 0.24s; }

/* City name overlaid on each panel */
.triptych-panel__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1rem;
  background: linear-gradient(to top, rgba(22,23,20,0.75) 0%, transparent 100%);
  font-family: var(--f-body);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(224, 219, 211, 0.50);
  z-index: 3;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}

.chapter-break--triptych.is-visible .triptych-panel__label { opacity: 1; }
.chapter-break--triptych.is-visible .triptych-panel:nth-child(2) .triptych-panel__label { transition-delay: 0.15s; }
.chapter-break--triptych.is-visible .triptych-panel:nth-child(3) .triptych-panel__label { transition-delay: 0.30s; }

/* Triptych: strip of city names across the bottom-center */
.chapter-break--triptych .chapter-break__content {
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  z-index: 5;
  pointer-events: none;
}

/* ---- SILENT variant — pre-contact human moment, taller ---- */
.chapter-break--silent {
  aspect-ratio: 16 / 9;
  max-height: 70vh;
}

.chapter-break--silent .chapter-break__image {
  object-position: center 30%;
  filter: brightness(0.44) saturate(0.55);
}

.chapter-break--silent .chapter-break__content {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.chapter-break--silent .chapter-break__title {
  font-size: clamp(1.2rem, 3vw, 2.8rem);
  color: rgba(224, 219, 211, 0.55);
  font-style: italic;
}

/* ============================================================================= */

/* =============================================================================
   DOC BEAT — Full-bleed photographic moment
   Pure cinema. No labels. No identity text. No explanatory overlays.
   The photograph does the work. Placed between content as discovered moments.
   ============================================================================= */
.doc-beat {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 72vh;
  overflow: hidden;
  background: var(--bg-3);
  display: block;
}

.doc-beat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.50) saturate(0.60);
  transition: transform 2.2s var(--ease);
  will-change: transform;
}

/* Slow drift on scroll reveal — barely perceptible, just alive */
.doc-beat.is-visible img {
  transform: scale(1.025);
}

/* Edge vignette — depth, not decoration */
.doc-beat::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(22,23,20,0.45) 0%, transparent 22%,
                                transparent 72%, rgba(22,23,20,0.58) 100%),
    linear-gradient(to right,  rgba(22,23,20,0.14) 0%, transparent 18%,
                                transparent 82%, rgba(22,23,20,0.14) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Hairline inner frame — film gate, barely visible */
.doc-beat__frame {
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(255, 255, 255, 0.030);
  pointer-events: none;
  z-index: 2;
}

/* Factual caption — location/year only, bottom-left, barely there */
.doc-beat__caption {
  position: absolute;
  bottom: clamp(1rem, 2vw, 1.75rem);
  left: var(--pad);
  font-family: var(--f-body);
  font-size: 0.54rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(224, 219, 211, 0.22);
  z-index: 3;
  opacity: 0;
  transition: opacity 1.2s 0.8s var(--ease);
}
.doc-beat.is-visible .doc-beat__caption { opacity: 1; }

/* --- Variants --- */

/* Taller — 16:9, for broader environmental or city shots */
.doc-beat--tall {
  aspect-ratio: 16 / 9;
  max-height: 78vh;
}

/* Portrait — 4:3, for the closing human moment */
.doc-beat--portrait {
  aspect-ratio: 4 / 3;
  max-height: 82vh;
}
.doc-beat--portrait img {
  object-position: center 20%;
  filter: brightness(0.56) saturate(0.65);
}

/* Dark — for technically dramatic environments */
.doc-beat--dark img {
  filter: brightness(0.40) saturate(0.52);
}

/* =============================================================================
   PHOTO PLACEHOLDER — Design-time stand-in for future documentary photography
   Intentional, not temporary. Feels like a museum exhibit card or
   film production storyboard frame. Dark charcoal, grain texture, minimal type.
   Replace with <img> when the photograph is ready — no HTML restructuring needed.
   ============================================================================= */
.photo-placeholder {
  position: absolute;
  inset: 0;
  background: #171916;  /* lifted from #0f0f0d — less dead-black, same mood */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* SVG fractal noise grain — not a pattern, not a texture, just presence */
.photo-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.038'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.60;
  pointer-events: none;
}

/* Center content block */
.photo-placeholder__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

/* Frame number — green, tiny, caps, wide tracking */
.photo-placeholder__num {
  font-family: var(--f-body);
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--green-2);
  opacity: 0.70;
  display: block;
}

/* Photo title — Cormorant, large — clearly readable but still atmospheric */
.photo-placeholder__title {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 3.5vw, 3rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.1;
  color: var(--text);
  opacity: 0.42;
  letter-spacing: -0.01em;
}

/* Description — subtle but legible on most displays */
.photo-placeholder__desc {
  font-family: var(--f-body);
  font-size: 0.54rem;
  font-weight: 400;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--text-2);
  opacity: 0.28;
}

/* Location/year — bottom-left */
.photo-placeholder__loc {
  position: absolute;
  bottom: clamp(1rem, 2vw, 1.75rem);
  left: var(--pad);
  font-family: var(--f-body);
  font-size: 0.54rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.25;
  z-index: 2;
}

/* Suppress the doc-beat photo vignette — placeholder has its own treatment */
.doc-beat:has(.photo-placeholder)::after { display: none; }

/* =============================================================================
   PHOTO STATE SYSTEM
   Controls documentary beat content state via data-photo-state attribute.
   STATE 1 (default / omitted): placeholder visible, img hidden
   STATE 2 ("image"):           img visible, placeholder hidden, vignette restored
   STATE 3 ("hidden"):          entire beat removed from flow
   Usage: change data-photo-state="placeholder" → "image" or "hidden" per beat.
   No HTML structural changes required.
   ============================================================================= */

/* STATE 1 — PLACEHOLDER (default): hide the img if no state or explicit placeholder */
.doc-beat:not([data-photo-state="image"]) img {
  display: none;
}

/* STATE 2 — REAL PHOTO */
.doc-beat[data-photo-state="image"] .photo-placeholder {
  display: none;
}
.doc-beat[data-photo-state="image"] img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.50) saturate(0.60);
  transition: transform 2.2s var(--ease);
  will-change: transform;
}
.doc-beat[data-photo-state="image"].is-visible img {
  transform: scale(1.025);
}
/* Restore vignette when using a real photo (was suppressed by :has(.photo-placeholder)) */
.doc-beat[data-photo-state="image"]::after {
  display: block;
}

/* STATE 3 — HIDDEN: remove beat entirely, preserve surrounding spacing */
.doc-beat[data-photo-state="hidden"] {
  display: none;
}

/* =============================================================================
   SELECTED WORKS PAGE
   ============================================================================= */
.sw-page-hero {
  padding: clamp(8rem, 14vw, 11rem) var(--pad) clamp(3rem, 5vw, 4rem);
  max-width: var(--max-w);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.sw-page-title {
  font-family: var(--f-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
  margin-top: 1rem;
}

.sw-page-sub {
  font-size: 0.87rem;
  line-height: 1.9;
  color: var(--text-2);
  max-width: 56ch;
}

/* =============================================================================
   SKILLS PAGE — Six meaningful groups
   ============================================================================= */
.skills-page-hero {
  padding: clamp(8rem, 14vw, 11rem) var(--pad) clamp(3rem, 5vw, 4rem);
  max-width: var(--max-w);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.skills-page-title {
  font-family: var(--f-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
  margin-top: 1rem;
}

.skills-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--pad);
}

.skills-group {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--gap);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.skills-group-num {
  font-family: var(--f-display);
  font-size: 0.72rem;
  font-style: italic;
  color: var(--green-2);
  opacity: 0.7;
  display: block;
  margin-bottom: 0.5rem;
}

.skills-group-title {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
}

.skills-group-desc {
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-3);
  margin-top: 0.75rem;
  max-width: 24ch;
}

.skills-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.skills-item {
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--text-2);
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 0.35rem 0.85rem;
  transition: color 0.3s, border-color 0.3s;
}

.skills-item:hover {
  color: var(--green-pale);
  border-color: var(--green-3);
}

.skills-item--primary {
  color: var(--text);
  border-color: var(--line-2);
}

.skills-note {
  font-size: 0.78rem;
  line-height: 1.75;
  color: var(--text-3);
  max-width: var(--prose-w);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

/* =============================================================================
   SELECTED WORKS — Secondary projects grid
   Smaller cards for additional projects below the primary case studies
   ============================================================================= */
.sw-secondary {
  border-top: 1px solid var(--line);
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.sw-secondary-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.sw-secondary-label {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
}

.sw-secondary-label-sub {
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.sw-secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.sw-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: background 0.3s var(--ease), border-color 0.3s;
}
.sw-card:hover { background: var(--bg-hover); border-color: var(--line-2); }

.sw-card-visual {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-3);
}
.sw-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78) saturate(0.68);
  transition: transform 0.8s var(--ease), filter 0.4s;
}
.sw-card:hover .sw-card-visual img {
  transform: scale(1.04);
  filter: brightness(0.88) saturate(0.78);
}

.sw-card-content { padding: 1.75rem; }

.sw-card-period {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  display: block;
  margin-bottom: 0.5rem;
}

.sw-card-title {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.1;
  transition: color 0.3s;
}
.sw-card:hover .sw-card-title { color: var(--green-pale); }

.sw-card-meta {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-2);
  margin-bottom: 1rem;
}

.sw-card-excerpt {
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--text-2);
  margin-bottom: 1.5rem;
  max-width: 46ch;
}

@media (max-width: 768px) {
  .sw-secondary-grid { grid-template-columns: 1fr; }
}

/* =============================================================================
   JOURNEY / TIMELINE TEASER
   Three life-chapter groups: Origins · Building & Expansion · Reinvention
   Doc beats between groups are full-bleed siblings in the document flow.
   ============================================================================= */
.journey {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}

/* Continuation — no border after a doc-beat already separates visually */
.journey--cont {
  border-top: none;
}

.journey-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6.5rem) var(--pad);
}

/* Section-level header — sits once at opening of the first journey block */
.journey-section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.journey-section-header p {
  font-size: 0.84rem;
  line-height: 1.85;
  color: var(--text-2);
  max-width: 44ch;
  align-self: end;
}

/* Life-chapter label — "Origins", "Building & Expansion", "Reinvention" */
.journey-chapter-header {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.journey-chapter-label {
  font-family: var(--f-display);
  font-size: clamp(0.8rem, 1.3vw, 0.95rem);
  font-style: italic;
  color: var(--green-2);
  letter-spacing: 0.02em;
}
.journey-chapter-span {
  font-size: 0.60rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}

.journey-milestones {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* =============================================================================
   TIMELINE CTA — Bridge between journey and the closing portrait
   ============================================================================= */
.timeline-cta {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 5rem) var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.timeline-cta__text {
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 2.8vw, 2.2rem);
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.25;
  max-width: 42ch;
}
.timeline-cta__link {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-2);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: gap 0.3s var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
}
.timeline-cta__link:hover { gap: 1rem; }

/* v2.1: base border-left transparent so hover can slide it in */
.milestone {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  padding: 1.5rem 0 1.5rem 0;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  transition: padding-left 0.3s var(--ease), border-left-color 0.3s, background 0.3s;
  cursor: default;
}

/* v2.1: green left-border slides in on hover — clear identity accent */
.milestone:hover {
  padding-left: 1rem;
  border-left-color: var(--green-2);
  background: rgba(50, 74, 44, 0.06);
}

.milestone-year {
  font-family: var(--f-display);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--text-3);
  line-height: 1;
  padding-top: 0.15rem;
  transition: color 0.3s;
}
.milestone:hover .milestone-year { color: var(--green-2); }

.milestone-title {
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.milestone-desc {
  font-size: 0.79rem;
  line-height: 1.7;
  color: var(--text-3);
}

/* Major life/career turning points — visibly heavier than standard milestones */
.milestone--major {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.milestone--major .milestone-year {
  font-size: 2.1rem;
  color: var(--green-pale);
}
.milestone--major .milestone-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0;
}
.milestone--major .milestone-desc {
  font-size: 0.82rem;
  color: var(--text-2);
}
@media (max-width: 768px) {
  .milestone--major .milestone-year { font-size: 1.65rem; }
}

.journey-cta {
  display: flex;
  justify-content: flex-end;
  margin-top: 3rem;
}
.journey-cta a {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s var(--ease);
}
.journey-cta a:hover { gap: 0.9rem; }

/* =============================================================================
   CONTACT SECTION
   ============================================================================= */
.contact {
  padding: clamp(5rem, 10vw, 9rem) var(--pad);
  border-top: 1px solid var(--line);
}

.contact-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.contact-left h2 {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.contact-left p {
  font-size: 0.87rem;
  line-height: 1.9;
  color: var(--text-2);
  max-width: 44ch;
  margin-bottom: 2.5rem;
}

.contact-email {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  font-weight: 300;
  color: var(--text);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 1rem;
  transition: color 0.3s, border-color 0.3s;
}
.contact-email:hover { color: var(--green-2); border-color: var(--green-3); }

.contact-right { padding-top: 0.5rem; }

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-detail-label {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.contact-detail-value { font-size: 0.9rem; color: var(--text); }
.contact-detail a { transition: color 0.3s; }
.contact-detail a:hover { color: var(--green-2); }

/* =============================================================================
   FOOTER
   ============================================================================= */
.footer {
  padding: 2.5rem var(--pad);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.66rem; letter-spacing: 0.1em; color: var(--text-3); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--text-2); }

/* =============================================================================
   TIMELINE PAGE
   v2.1: Chapter sections gain large ghosted Roman numeral background
         (documentary chapter card technique)
   ============================================================================= */
.timeline-page { min-height: 100vh; }

.timeline-hero {
  padding: clamp(8rem, 15vw, 12rem) var(--pad) clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
  max-width: var(--max-w);
  margin: 0 auto;
}
.timeline-hero-label { margin-bottom: 1.5rem; }
.timeline-hero-title {
  font-family: var(--f-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  color: var(--text);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.timeline-hero-sub {
  font-size: 0.87rem;
  line-height: 1.9;
  color: var(--text-2);
  max-width: 55ch;
}

/* Chapter — v2.1: position:relative + overflow hidden for bg number */
.chapter {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 5rem) var(--pad) 0;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Large ghosted Roman numeral — documentary chapter card */
.chapter-bg-num {
  position: absolute;
  right: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--f-display);
  font-size: clamp(8rem, 22vw, 18rem);
  font-weight: 600;
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(127, 173, 117, 0.07);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.chapter-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.chapter-num {
  font-family: var(--f-display);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--green-2);
  white-space: nowrap;
}
.chapter-line { height: 1px; flex: 1; background: var(--line); }

.chapter-title {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.chapter-span {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-2);
}

/* Timeline entries */
.tl-entries {
  padding: 0 var(--pad);
  max-width: var(--max-w);
  margin: 0 auto;
}

.tl-entry {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--gap);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  transition: background 0.3s, padding-left 0.3s var(--ease), border-left-color 0.3s;
  padding-left: 0;
}

/* v2.1: mirror the milestone hover accent for consistency */
.tl-entry:hover {
  background: rgba(50, 74, 44, 0.05);
  padding-left: 0.75rem;
  border-left-color: var(--green-3);
}

.tl-year-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 0.3rem;
}
.tl-year {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--text-3);
  transition: color 0.3s;
}
.tl-entry:hover .tl-year { color: var(--green-2); }

/* v2.1: type tag uses green-2 for visual accent threading */
.tl-type {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-2);
  opacity: 0.75;
  margin-top: 0.4rem;
}

.tl-image-wrap {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-3);
  margin-bottom: 1.25rem;
}
.tl-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82) saturate(0.78);
  transition: transform 0.8s var(--ease), filter 0.5s;
}
.tl-entry:hover .tl-image-wrap img {
  transform: scale(1.04);
  filter: brightness(0.9) saturate(0.84);
}

.tl-title {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}
.tl-desc {
  font-size: 0.84rem;
  line-height: 1.85;
  color: var(--text-2);
  max-width: 58ch;
}

/* =============================================================================
   WORK PAGE (Case Study Template)
   ============================================================================= */
.work-page-hero {
  padding: clamp(7rem, 12vw, 10rem) var(--pad) clamp(3rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  max-width: var(--max-w);
  margin: 0 auto;
}
.work-page-category { margin-bottom: 2rem; }
.work-page-title {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 7vw, 7rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.work-page-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 2rem;
}
.work-page-meta-item { display: flex; flex-direction: column; gap: 0.2rem; }
.work-page-meta-label { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); }
.work-page-meta-value { font-size: 0.87rem; color: var(--text); }

.work-page-cover {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  background: var(--bg-3);
}
.work-page-cover img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.88) saturate(0.84); }

.work-page-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--pad);
}
.work-page-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--gap);
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}

.work-page-section-label {
  align-self: start;
  padding-top: 0.15rem;
}
.work-page-section-content h3 {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1rem;
}
.work-page-section-content p {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--text-2);
  max-width: var(--prose-w);
  margin-bottom: 1rem;
}
.work-page-section-content ul { display: flex; flex-direction: column; gap: 0.4rem; }
.work-page-section-content ul li {
  font-size: 0.87rem;
  line-height: 1.7;
  color: var(--text-2);
  padding-left: 1.25rem;
  position: relative;
}
.work-page-section-content ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.65em;
  width: 8px; height: 1px;
  background: var(--green-3);
}

.work-screenshots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 2rem 0;
}
.work-screenshots img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  filter: brightness(0.86) saturate(0.82);
  border: 1px solid var(--line);
  transition: filter 0.3s, transform 0.5s var(--ease);
}
.work-screenshots img:hover { filter: brightness(0.96); transform: scale(1.02); }

.work-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 2rem;
  transition: color 0.3s, gap 0.3s;
}
.work-nav-back:hover { color: var(--text-2); gap: 0.8rem; }

/* =============================================================================
   PROJECT METRICS STRIP
   Horizontal row of key numbers/outcomes. Cormorant italic numerals.
   Sits at the top of .work-page-body, immediately after the cover image.
   ============================================================================= */
.project-metrics {
  display: flex;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.75rem, 3.5vw, 2.5rem) 0;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.project-metric {
  flex: 1;
  padding: 0 clamp(1.25rem, 2.5vw, 2.25rem);
  border-left: 1px solid var(--line);
}
.project-metric:first-child {
  padding-left: 0;
  border-left: none;
}
.project-metric__num {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.project-metric__label {
  display: block;
  font-family: var(--f-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-3);
  line-height: 1.65;
}

/* =============================================================================
   GALLERY — screenshot grid interaction
   ============================================================================= */
.work-screenshots img {
  cursor: zoom-in;
}

/* Video thumbnail item — sits in the screenshot grid alongside images */
.gallery-video {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
}
.gallery-video img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: brightness(0.70) saturate(0.65);
  transition: filter 0.3s var(--ease);
  display: block;
  cursor: pointer;
}
.gallery-video:hover img {
  filter: brightness(0.86) saturate(0.82);
}
.gallery-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3rem;
  height: 3rem;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  transition: border-color 0.3s;
}
.gallery-video__play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 53%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid rgba(255, 255, 255, 0.75);
}
.gallery-video:hover .gallery-video__play {
  border-color: rgba(255, 255, 255, 0.85);
}

/* =============================================================================
   LIGHTBOX
   Full-screen viewer for screenshots and embedded video.
   Triggered by JS on .work-screenshots img and .gallery-video clicks.
   ============================================================================= */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease);
}
#lightbox.lb-open {
  opacity: 1;
  pointer-events: auto;
}
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 13, 11, 0.97);
  cursor: pointer;
}
.lb-stage {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 1280px);
  max-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img {
  display: none;
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.lb-video {
  display: none;
  width: min(90vw, 1024px);
  aspect-ratio: 16 / 9;
}
.lb-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.lb-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  border: 1px solid var(--line);
  border-radius: 0;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  background: rgba(22, 23, 20, 0.8);
}
.lb-close:hover { color: var(--text); border-color: var(--line-2); }
.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
}
.lb-prev { left: 0.5rem; }
.lb-next { right: 0.5rem; }
.lb-prev:hover, .lb-next:hover { color: var(--text); }
.lb-prev:disabled, .lb-next:disabled { opacity: 0.18; pointer-events: none; }
.lb-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-body);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  z-index: 2;
  white-space: nowrap;
}
body.lb-active { overflow: hidden; }

/* =============================================================================
   ANIMATIONS
   ============================================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* v2.1: status pulse for documentary lower-third dot */
@keyframes statusPulse {
  0%, 100% {
    opacity: 0.55;
    box-shadow: 0 0 0 2px rgba(127, 173, 117, 0.15);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 0 4px rgba(127, 173, 117, 0.25), 0 0 8px rgba(127, 173, 117, 0.2);
  }
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (min-width: 1600px) {
  :root { --pad: 5rem; }
}

@media (max-width: 1024px) {
  /* Statement — stack on tablet */
  .statement-body-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .work-feature,
  .work-feature:nth-child(even) { grid-template-columns: 1fr; min-height: auto; }
  .work-feature:nth-child(even) .work-visual { order: 0; }
  .work-visual { aspect-ratio: 16/10; height: auto; }
  .work-content { padding: 2.5rem; }

  .journey-section-header { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .wib-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .why-aaron-inner { grid-template-columns: 1fr; gap: 2rem; }
  .why-aaron-header { position: static; }

  /* Doc beats: reduce max-height on tablet */
  .doc-beat { max-height: 52vh; }
  .doc-beat--tall { max-height: 58vh; }
  .doc-beat--portrait { max-height: 64vh; }

  .tl-entry { grid-template-columns: 100px 1fr; gap: 1.5rem; }
  .work-page-section { grid-template-columns: 1fr; gap: 1rem; }

  /* Chapter breaks: reduce max-height on tablet */
  .chapter-break { max-height: 48vh; }
  .chapter-break--triptych { max-height: 44vh; }
  .chapter-break--silent { max-height: 56vh; }
}

@media (max-width: 768px) {
  :root { --pad: 1.25rem; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero-name { font-size: clamp(3.2rem, 14vw, 5.5rem); }
  .hero-actions { flex-direction: column; align-items: center; }

  .statement-film { height: clamp(32vh, 42vh, 50vh); }
  .statement-body-grid { gap: 2rem; }

  .works-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

  .milestone { grid-template-columns: 80px 1fr; gap: 1rem; }
  .milestone-year { font-size: 1.4rem; }
  .journey-section-header { grid-template-columns: 1fr; gap: 1rem; }
  .journey-chapter-header { flex-wrap: wrap; gap: 0.75rem; }
  .timeline-cta { flex-direction: column; align-items: flex-start; gap: 1.5rem; }

  /* Project metrics — 2 columns on mobile */
  .project-metrics { flex-wrap: wrap; }
  .project-metric {
    flex: 1 1 40%;
    padding: 1.25rem 1rem;
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
  }
  .project-metric:first-child { border-top: none; border-left: none; padding-left: 0; }
  .project-metric:nth-child(2) { border-top: none; }

  /* Doc beats on mobile */
  .doc-beat { aspect-ratio: 16 / 9; max-height: 44vh; }
  .doc-beat--tall { aspect-ratio: 16 / 9; max-height: 50vh; }
  .doc-beat--portrait { aspect-ratio: 3 / 4; max-height: 70vh; }
  .doc-beat__frame { inset: 7px; }

  .work-content { padding: 2rem 1.5rem; }

  .tl-entry { grid-template-columns: 1fr; gap: 1rem; }
  .tl-year-col { flex-direction: row; align-items: center; gap: 1rem; }

  .work-screenshots { grid-template-columns: 1fr 1fr; }

  .skills-group { grid-template-columns: 1fr; gap: 1.5rem; }
  .skills-group-desc { max-width: none; }

  .footer { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .hero-scroll { display: none; }
  .work-page-section { grid-template-columns: 1fr; }

  .chapter-bg-num { font-size: clamp(6rem, 28vw, 10rem); }

  /* Chapter breaks: stack triptych vertically on mobile */
  .chapter-break { max-height: 38vh; aspect-ratio: 16 / 9; }
  .chapter-break--triptych { flex-direction: column; aspect-ratio: 9 / 16; max-height: none; height: auto; }
  .chapter-break--triptych .triptych-panel { flex: none; height: 33.33%; aspect-ratio: 21 / 9; min-height: 140px; }
  .chapter-break--silent { max-height: 54vh; aspect-ratio: 4 / 3; }
  .chapter-break__frame { inset: 8px; }
  .chapter-break__title { font-size: clamp(1.4rem, 7vw, 2.6rem); }
  .works-meta-bar { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* =============================================================================
   MOBILE-ONLY POLISH — targeted improvements for screens ≤ 768px
   Desktop layout, spacing, grids, and tag counts are UNCHANGED.
   ============================================================================= */
@media (max-width: 768px) {

  /* ── 1. HERO CTA AREA ──────────────────────────────────────────────────────
     Tertiary links (Full Journey · Contact) are already in the burger nav.
     Hide them to reduce clutter. Two primary buttons are sufficient.         */
  .hero-tertiary-links { display: none; }

  /* ── 2. PHOTO PLACEHOLDER BEATS ───────────────────────────────────────────
     Large empty placeholder blocks interrupt scroll momentum.
     Hide them until real photography is swapped in.
     When data-photo-state is changed to "image" they appear automatically.   */
  .doc-beat[data-photo-state="placeholder"] { display: none; }

  /* ── 3. HOMEPAGE CONTENT DENSITY ──────────────────────────────────────────
     Reduce section padding so visitors reach project work faster.
     Hide the capability prose blocks (wib-capabilities) — the four stat
     numbers beneath them carry the signal on a small screen.                 */
  .statement-body  { padding-top: 2rem; padding-bottom: 2rem; }
  .what-i-build    { padding-top: 2rem; padding-bottom: 2rem; }
  .why-aaron       { padding-top: 2rem; padding-bottom: 2rem; }
  .wib-header      { margin-bottom: 1.25rem; }
  .wib-capabilities { display: none; }
  .wib-stats       { gap: 1.25rem; }

  /* ── 4. SKILLS PAGE TAG DENSITY ───────────────────────────────────────────
     Show the 6 strongest tags per group (primary tags listed first in HTML).
     Hide the secondary tag wall that reads as noise on a small screen.       */
  .skills-items .skills-item:nth-child(n+7) { display: none; }

  /* ── 5 & 6. PROJECT METRICS GRID — ALIGNMENT + BREATHING ROOM ─────────────
     Root cause: flex-based 2×2 grid has asymmetric padding-left (0 vs 1rem)
     and a stray left-border on item 3, making row 2 appear shifted right.
     Fix: switch to CSS Grid, normalise all cell padding, apply borders
     correctly per column.
     Also: increase per-cell padding and soften border colour for better
     visual balance on small screens.                                         */

  .project-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Soften outer borders slightly — content > structure on mobile */
    border-top: 1px solid rgba(72, 96, 64, 0.12);
    border-bottom: 1px solid rgba(72, 96, 64, 0.12);
  }

  /* Reset all items to a clean, equal baseline */
  .project-metric {
    padding: 1.5rem 1.25rem;
    border-left: none;
    border-top: 1px solid rgba(72, 96, 64, 0.12);
  }

  /* Row 1, Column 1 — no top border, no left border */
  .project-metric:nth-child(1) {
    padding-left: 1.25rem; /* override desktop padding-left: 0 */
    border-top: none;
    border-left: none;
  }

  /* Row 1, Column 2 — no top border, left separator */
  .project-metric:nth-child(2) {
    border-top: none;
    border-left: 1px solid rgba(72, 96, 64, 0.12);
  }

  /* Row 2, Column 1 — top border, no left border */
  .project-metric:nth-child(3) {
    border-left: none;
    border-top: 1px solid rgba(72, 96, 64, 0.12);
  }

  /* Row 2, Column 2 — top border + left separator */
  .project-metric:nth-child(4) {
    border-left: 1px solid rgba(72, 96, 64, 0.12);
    border-top: 1px solid rgba(72, 96, 64, 0.12);
  }

  /* Skills summary strip — extra vertical breathing room */
  .project-metric .project-metric__num {
    font-size: clamp(1.3rem, 5.5vw, 1.8rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-slow { opacity: 1; transform: none; transition: none; }
}
