﻿/* ═══════════════════════════════════════════════════════
   RESET
═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ═══════════════════════════════════════════════════════
   DESIGN TOKENS  —  Warm Editorial Palette
   Each color has a deliberate role.

   Linen      #FFF9F3  primary backgrounds
   Cafe Noir  #443223  headings, important text
   Weathered  #A08670  secondary text, body copy
   Deep Olive #44422D  buttons, nav active, CTAs
   Latte      #DBC4A5  sticky notes, bubbles, cards
   Mauve      #755151  key accents, highlights, selection
   Clockwork  #72583E  chapter labels, dividers, graphic elements
   Cedar      #7C7960  alternate section tints, overlays
═══════════════════════════════════════════════════════ */
:root {
  /* Palette: Linen · Khaki · Camel · Cocoa · Espresso (warm neutral browns only) */
  --bg:        #F5F1EA;  /* Linen — page background */
  --white:     #FBF8F2;  /* light linen — cards, nav */
  --ink:       #4A342A;  /* Espresso — headings / primary text */
  --mid:       #7D5A44;  /* Cocoa — body copy */
  --light:     #B2967D;  /* Camel — meta / tertiary text */
  --border:    #D7C9B8;  /* Khaki — lines */
  --accent:    #7D5A44;  /* Cocoa — links, buttons, CTAs */
  --mauve:     #7D5A44;  /* Cocoa — accents / highlights */
  --clockwork: #B2967D;  /* Camel — labels, dividers */
  --cedar:     #B2967D;  /* Camel — section tints, eyebrows */
  --dark:      #4A342A;  /* Espresso */
  --sticky:    #D7C9B8;  /* Khaki — notes */
  --stkink:    #4A342A;  /* Espresso */
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'Montserrat', -apple-system, sans-serif;
  --hand:      'Caveat', cursive;
  --mascot-bg: #0C0F15;  /* near-black to match mascot image bg */
}

/* Dark mode removed — site is always light. */

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  /* clip, not hidden: hidden creates a scroll container that breaks
     position:sticky (mascot panel, CV sidebar); clip only cuts overflow */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  animation: pageFadeIn 0.45s ease both;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
═══════════════════════════════════════════════════════ */
#progress {
  position: fixed; top: 0; left: 0; z-index: 1000;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--clockwork) 0%, var(--mauve) 100%);
  transition: width 0.06s linear;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 1.6rem;
  padding: 1.4rem 5%;
}
/* Background + blur live on a pseudo-element, NOT on #nav itself:
   backdrop-filter on #nav would make it the containing block for
   position:fixed children — breaking the mobile menu overlay. */
#nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,249,243,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(68,50,35,0.08);
  opacity: 0; transition: opacity 0.5s ease;
  pointer-events: none;
}
.nav-links { flex: 1; justify-content: center; }
#nav.scrolled::before, #nav.solid::before { opacity: 1; }
.nav-logo {
  font-family: var(--serif);
  font-weight: 500; font-size: 1.15rem;
  letter-spacing: 0.03em; color: var(--ink);
}
.nav-links {
  display: flex; gap: 2.8rem; list-style: none; align-items: center;
}
.nav-links a {
  font-size: 0.66rem; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mid); transition: color 0.22s;
  padding: 0.6rem 0.5rem; margin: -0.6rem -0.5rem;
  display: inline-block;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-cta {
  font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  padding: 0.55rem 1.4rem;
  border: 1px solid rgba(68,66,45,0.3);
  transition: all 0.25s ease;
}
.nav-cta:hover { background: var(--accent); color: var(--bg); }

/* Theme toggle button */
.theme-btn { display: none !important; }

/* ═══════════════════════════════════════════════════════
   SCENE CHARACTER SYSTEM  (Mrazek-Tomas gallery approach)
   The mascot stands at the BOTTOM of each section —
   like a character in an art gallery looking up at the work.
   position: absolute inside sections. Part of the scene,
   not floating above it. Mouse-parallax makes it feel alive.
═══════════════════════════════════════════════════════ */
.scene-char {
  position: absolute;
  bottom: 0;
  z-index: 5;
  pointer-events: none;
  will-change: transform;
}

.scene-char img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 30px rgba(68,50,35,0.20));
  user-select: none;
  transition: opacity 0.38s ease, transform 0.42s cubic-bezier(.25,.46,.45,.94);
}

/* Speech — appears above the character on section enter */
.scene-speech {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  white-space: nowrap;
  background: rgba(255,252,248,0.88);
  color: var(--ink);
  font-family: var(--hand);
  font-size: 0.9rem;
  line-height: 1.3;
  padding: 0.42rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(.25,.46,.45,.94);
  max-width: 240px;
  text-align: center;
}
.scene-speech::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--border);
}
.scene-char.speech-on .scene-speech {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
body[data-page="contact"] .scene-speech {
  background: rgba(44,26,16,0.85);
  color: rgba(255,249,243,0.75);
  border-color: rgba(219,196,165,0.15);
}
body[data-page="contact"] .scene-speech::after {
  border-top-color: rgba(44,26,16,0.85);
}

/* Size / position variants */
.scene-char--hero    { right: 7%;  width: clamp(170px, 19vw, 280px); }
.scene-char--gallery { right: 5%;  width: clamp(120px, 13vw, 190px); }
.scene-char--page    { right: 5%;  width: clamp(110px, 11vw, 170px); }
.scene-char--contact { right: 7%;  width: clamp(150px, 16vw, 240px); }

/* Gallery section: extra bottom padding so character doesn't
   overlap project cards. Gallery floor line creates depth. */
.gallery-scene {
  position: relative;
  overflow: visible;
  padding-bottom: 2rem;
}
.gallery-scene > .sw { position: relative; z-index: 1; }
.gallery-scene::after {
  content: none;
}

/* Sections that hold scene characters need position:relative */
#work-grid,
#about-section,
#skills,
#experience-section,
#vol,
#contact-section {
  position: relative;
}

@media (max-width: 900px) { .scene-char { display: none; } }

/* ═══════════════════════════════════════════════════════
   SIDE DOTS NAVIGATION  (Clockwork)
   Right-side section dots for home page storytelling.
═══════════════════════════════════════════════════════ */
.side-dots {
  position: fixed;
  right: 1.6rem; top: 50%;
  transform: translateY(-50%);
  z-index: 88;
  display: flex; flex-direction: column;
  align-items: center; gap: 0.55rem;
}
.sdot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  position: relative;
  transition: background 0.35s ease, transform 0.35s ease;
}
.sdot::before {
  content: attr(data-label);
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 0.52rem; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mid); white-space: nowrap;
  opacity: 0; transition: opacity 0.2s;
}
.side-dots:hover .sdot::before { opacity: 1; }
.sdot.active {
  background: var(--mauve);
  transform: scale(1.7);
}
@media (max-width: 1100px) { .side-dots { display: none; } }

/* ═══════════════════════════════════════════════════════
   CHAPTER BACKGROUND NUMBERS  (Cafe Noir, very faint)
   Editorial signposting behind sections.
═══════════════════════════════════════════════════════ */
.chapter-bg {
  position: relative; overflow: hidden;
}
.chapter-bg-num {
  position: absolute;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(12rem, 28vw, 26rem);
  line-height: 1;
  color: rgba(68,50,35,0.035);
  top: -5%; right: -3%;
  user-select: none; pointer-events: none;
  z-index: 0; letter-spacing: -0.02em;
}

/* ═══════════════════════════════════════════════════════
   CHAPTER LABELS  (Clockwork)
   Small uppercase chapter markers used across all pages.
═══════════════════════════════════════════════════════ */
.chapter-label {
  font-family: var(--sans);
  font-size: 0.56rem; font-weight: 500;
  letter-spacing: 0.36em; text-transform: uppercase;
  color: var(--clockwork);
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1rem;
}
.chapter-label::before {
  content: '';
  display: block; width: 28px; height: 1px;
  background: var(--clockwork);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   LINE REVEAL  (Mike Matas scroll storytelling)
   Wrap text lines: <span class="lr"><span>Text</span></span>
═══════════════════════════════════════════════════════ */
.line-reveal .lr {
  display: block;
  overflow: hidden;
  line-height: 1.08;
}
.line-reveal .lr > span {
  display: block;
  transform: translateY(108%);
  transition: transform 1.05s cubic-bezier(.77,0,.18,1);
  will-change: transform;
}
.line-reveal.in .lr > span           { transform: translateY(0); }
.line-reveal.in .lr:nth-child(1) > span { transition-delay: 0s; }
.line-reveal.in .lr:nth-child(2) > span { transition-delay: 0.1s; }
.line-reveal.in .lr:nth-child(3) > span { transition-delay: 0.2s; }
.line-reveal.in .lr:nth-child(4) > span { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════════════════
   SECTION HELPERS
═══════════════════════════════════════════════════════ */
.sw    { padding: 3.5rem 5%; max-width: 1720px; margin-left: auto; margin-right: auto; }
.sw-sm { padding: 2.5rem 5%; max-width: 1480px; margin-left: auto; margin-right: auto; }

.eyebrow {
  font-size: 0.58rem; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--cedar); display: block; margin-bottom: 1.2rem;
}
.sec-heading {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1.08;
}
.sec-rule {
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--clockwork), var(--border));
  margin: 1.2rem 0 2rem;
  transition: width 1.1s cubic-bezier(.77,0,.175,1);
}
.sec-rule.in { width: 36px; }

.text-link {
  font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-bottom: 1px solid rgba(68,66,45,0.2);
  padding-bottom: 0.1rem;
  transition: gap 0.2s, border-color 0.2s, color 0.2s;
}
.text-link:hover { gap: 0.85rem; border-color: var(--mauve); color: var(--mauve); }

/* ═══════════════════════════════════════════════════════
   INNER PAGE HEADER
═══════════════════════════════════════════════════════ */
.page-hdr {
  padding: 6.5rem 5% 2.5rem;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-hdr-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  position: relative; z-index: 1;
}
.page-hdr-note {
  font-size: 0.62rem; font-weight: 300;
  letter-spacing: 0.1em; color: var(--light);
}

/* ═══════════════════════════════════════════════════════
   STICKY NOTES  (Latte)
═══════════════════════════════════════════════════════ */
.sticky {
  background: var(--sticky);
  font-family: var(--hand);
  font-size: 0.95rem; line-height: 1.52;
  color: var(--stkink);
  padding: 0.85rem 1rem 1.1rem;
  box-shadow: 2px 4px 18px rgba(68,50,35,0.12);
  display: inline-block; max-width: 195px;
  position: relative;
}
.sticky::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 14px;
  background: rgba(68,50,35,0.04);
}
.stk-lbl {
  font-family: var(--sans); font-size: 0.52rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(68,50,35,0.35);
  display: block; margin-bottom: 0.28rem;
}
.sr1 { transform: rotate(-2deg); }
.sr2 { transform: rotate(1.6deg); }
.sr3 { transform: rotate(2.4deg); }
.sr4 { transform: rotate(-1deg); }

/* ═══════════════════════════════════════════════════════
   MINI FOOTER
═══════════════════════════════════════════════════════ */
.site-footer {
  padding: 2rem 5%;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.8rem;
}
.site-footer-copy {
  font-size: 0.58rem; font-weight: 300;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--light);
}
.site-footer-links { display: flex; gap: 1.8rem; }
.site-footer-links a {
  font-size: 0.58rem; font-weight: 300;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--light); transition: color 0.2s;
}
.site-footer-links a:hover { color: var(--ink); }

/* ═══════════════════════════════════════════════════════
   HERO  (index.html)
   Full-viewport, cinematic, mascot prominent.
═══════════════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 8% 4rem 8%;
  position: relative; overflow: hidden;
}

.hero-left { padding-top: 0; max-width: 100%; }
.hero-eyebrow {
  font-size: 0.58rem; font-weight: 500;
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--cedar); display: block; margin-bottom: 1rem;
}
.hero-content { max-width: 100%; }
/* V1 hierarchy: name (one line) → role subtitle → specialties → bio */
.hero-name {
  font-family: var(--serif);
  font-weight: 300;
  /* capped so "Kanika Kadam" stays on one line inside the home 50% column */
  font-size: clamp(2.6rem, 4.4vw, 4.6rem);
  line-height: 0.95; letter-spacing: -0.015em; color: var(--ink);
  margin-bottom: 0.9rem;
  white-space: nowrap;
}
.hero-name .ln2 { color: var(--clockwork); }
.hero-role-main {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(1.05rem, 1.9vw, 1.5rem);
  color: var(--ink); margin-bottom: 1.6rem; line-height: 1.3;
}
.hero-role-main .hero-role-dim { font-style: normal; color: var(--mid); font-family: var(--sans); font-size: 0.82em; letter-spacing: 0.02em; }
.hero-meta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.hero-role  { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cedar); }
.hero-sep   { width: 1px; height: 20px; background: var(--border); flex-shrink: 0; }
.hero-loc   { font-size: 0.7rem; font-weight: 400; letter-spacing: 0.06em; color: var(--light); }

/* Mobile-only profile chip — hidden on desktop (cinematic mascot shows there) */
.hero-chip { display: none; }

.hero-right {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 2rem;
  padding-top: 7rem;
}
.hero-photo {
  width: 100%; max-width: 310px;
  aspect-ratio: 3/4;
  object-fit: cover; object-position: center top;
  display: block;
}

.hero-bio {
  font-size: 0.82rem; font-weight: 300;
  line-height: 1.9; color: var(--mid);
  max-width: 405px; margin-top: 1.4rem;
}
.hero-bio-year {
  color: var(--mauve); font-weight: 500;
  letter-spacing: 0.02em; white-space: nowrap;
}

/* Scroll cue bottom-left */
.hero-scroll {
  position: absolute; bottom: 3rem; left: 5%;
  display: flex; align-items: center; gap: 1rem;
}
.scroll-track {
  width: 44px; height: 1px; background: var(--border);
  overflow: hidden; position: relative;
}
.scroll-track::after {
  content: ''; position: absolute; top: 0;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, var(--clockwork), var(--mauve));
  animation: trackSlide 2.2s ease-in-out infinite;
}
@keyframes trackSlide { 0% { left: -50%; } 100% { left: 150%; } }
.scroll-label {
  font-size: 0.58rem; font-weight: 400;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--light);
}

/* Hero load animations */
.hero-eyebrow  { animation: fadeUp 0.9s cubic-bezier(.25,.46,.45,.94) 0.1s both; }
.hero-name      { animation: fadeUp 0.9s cubic-bezier(.25,.46,.45,.94) 0.24s both; }
.hero-role-main { animation: fadeUp 0.9s cubic-bezier(.25,.46,.45,.94) 0.36s both; }
.hero-meta      { animation: fadeUp 0.9s cubic-bezier(.25,.46,.45,.94) 0.42s both; }
.hero-bio      { animation: fadeUp 0.9s cubic-bezier(.25,.46,.45,.94) 0.52s both; }
.hero-scroll   { animation: fadeUp 0.9s cubic-bezier(.25,.46,.45,.94) 0.62s both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════
   STORY SPLIT — Inner pages (work, about, experience)
   Same philosophy as home-split: sticky character left,
   scrollable content right. Character stays through the
   full page scroll — always present, never decorative.
═══════════════════════════════════════════════════════ */
.story-split {
  display: block;
}
.story-left {
  display: none;
}
.story-char-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 8%;
  animation: charFloat 5s ease-in-out infinite;
}
@keyframes charFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-9px); }
}
.story-char-img {
  width: 100%;
  max-width: 400px;
  max-height: 80vh;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 24px 44px rgba(68,50,35,0.18));
  transition: opacity 0.38s ease;
  user-select: none; pointer-events: none;
}
.story-char-speech {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  white-space: nowrap;
  background: rgba(255,252,248,0.92);
  color: var(--ink);
  font-family: var(--hand);
  font-size: 0.9rem;
  padding: 0.38rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  margin-bottom: 8px;
  z-index: 2;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(.25,.46,.45,.94);
}
.story-char-speech.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.story-right {
  min-height: 100vh;
}

/* Story header: first block in story-right — full-height intro */
.story-hdr {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6.5rem 5% 2.5rem;
  min-height: 40vh;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.story-hdr .sec-heading {
  font-size: clamp(3rem, 6vw, 5.5rem);
}
.story-hdr-lede {
  margin-top: 1.6rem; max-width: min(64ch, 60vw);
  font: 300 1rem/1.9 var(--sans); color: var(--mid);
}
@media (max-width: 720px) { .story-hdr-lede { max-width: 100%; font-size: 0.9rem; } }

/* ═══════════════════════════════════════════════════════
   CURRICULUM VITAE PAGE
═══════════════════════════════════════════════════════ */
/* Embedded résumé view */
.cv-embed-wrap { max-width: 1000px; margin: 0 auto; padding: 9rem 5% 5rem; }
.cv-embed-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.2rem;
}
.cv-embed-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.9rem, 4vw, 3rem); color: var(--ink);
  margin: 0.5rem 0 0.3rem; line-height: 1.05;
}
.cv-embed-sub {
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--mid); margin: 0;
}
.cv-download {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.5rem; background: transparent; color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 2rem; text-decoration: none; white-space: nowrap;
  font: 500 0.64rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  transition: background 0.25s ease, transform 0.22s ease, color 0.25s ease;
}
.cv-download:hover { background: rgba(125,90,68,0.1); transform: translateY(-2px); }
.cv-download svg { width: 15px; height: 15px; }
.cv-frame {
  width: 100%; max-width: 860px; margin: 0 auto;
  aspect-ratio: 210 / 297; background: #B2967D;
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(53,47,40,0.14);
}
.cv-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.cv-fullscreen-link {
  display: block; text-align: center; margin: 1.6rem auto 0;
  font-size: 0.7rem; letter-spacing: 0.04em; color: var(--mauve);
  text-decoration: none;
}
.cv-fullscreen-link:hover { text-decoration: underline; }
@media (max-width: 780px) {
  /* A4 ratio is unreadable at phone width — give the frame a viewport
     height instead; the résumé inside scrolls within the frame */
  .cv-frame { aspect-ratio: auto; height: 76vh; height: 76dvh; }
  .cv-download { width: 100%; justify-content: center; }
  .cv-embed-wrap { padding-top: 7rem; }
}

.cv-hero {
  padding: 9rem 5% 3rem;
  border-bottom: 1px solid var(--border);
}
.cv-hero-inner { max-width: 900px; margin: 0 auto; }
.cv-name {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1; color: var(--ink);
  margin: 1rem 0 0.9rem; letter-spacing: -0.01em;
}
.cv-role {
  font: 300 0.95rem/1.5 var(--sans); color: var(--mid);
  letter-spacing: 0.02em; margin: 0 0 1.4rem;
}
.cv-contact {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem;
  font: 400 0.72rem/1 var(--sans); letter-spacing: 0.04em;
}
.cv-contact a { color: var(--clockwork); transition: color 0.2s; }
.cv-contact a:hover { color: var(--mauve); }
.cv-dot { color: var(--mid); opacity: 0.5; }

.cv-doc { max-width: 900px; margin: 0 auto; padding: 1rem 5% 4rem; }
.cv-section {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 2.5rem; padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}
.cv-section--end { border-bottom: none; }
.cv-section-label {
  font: 500 0.6rem/1.6 var(--sans); letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink);
}
.cv-section-label span {
  display: block; font-family: var(--serif);
  font-size: 1.5rem; font-weight: 300; font-style: italic;
  color: var(--mid); margin-bottom: 0.4rem; letter-spacing: 0;
}
.cv-section-body { min-width: 0; }
.cv-lede {
  font: 300 0.95rem/1.9 var(--sans); color: var(--ink);
  margin: 0; max-width: 56ch;
}
.cv-doc .exp-item:first-child { padding-top: 0; }
.cv-doc .skills-cols { border-top: none; margin-top: 0; }
.cv-cta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-top: 1.6rem;
  font: 500 0.66rem/1 var(--sans); letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--mauve);
  border-bottom: 1px solid var(--mauve); padding-bottom: 0.3rem;
  transition: gap 0.22s;
}
.cv-cta:hover { gap: 1rem; }

@media (max-width: 760px) {
  .cv-section { grid-template-columns: 1fr; gap: 1.2rem; padding: 2.2rem 0; }
  .cv-section-label span { display: inline-block; margin: 0 0.5rem 0 0; font-size: 1.1rem; }
  .cv-hero { padding-top: 7rem; }
}

/* ═══════════════════════════════════════════════════════
   HOME CINEMATIC LAYOUT
   Left: sticky character panel — scroll-driven zoom (2.5→1).
   Right: content scrolls. Replicates mrazek-tomas pattern.
═══════════════════════════════════════════════════════ */
#home-cinematic {
  display: grid;
  grid-template-columns: 50% 50%;
  align-items: start;
}
#char-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 7vh;
}
#char-para { /* receives subtle horizontal parallax via JS */ }
#char-zoom {
  transform-origin: top center;
  transform: scale(2.5);
  will-change: transform;
}
#hc-main {
  height: 84vh;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 30px 64px rgba(68,50,35,0.18));
  transition: opacity 0.45s ease;
  user-select: none; pointer-events: none;
}
/* (speech bubble removed — element no longer exists) */

/* ═══════════════════════════════════════════════════════
   INNER PAGE SPLIT HEADER
   Two-column: character left, page title right.
═══════════════════════════════════════════════════════ */
.page-split {
  display: grid;
  grid-template-columns: 44% 56%;
  min-height: 55vh;
}
.page-split-left {
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 8% 2rem;
  overflow: hidden;
  min-height: 55vh;
}
.page-split-char {
  width: 100%;
  max-width: 360px;
  max-height: 60vh;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 20px 40px rgba(68,50,35,0.16));
  user-select: none; pointer-events: none;
}
.page-split-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6.5rem 8% 2.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-split-right .sec-heading {
  font-size: clamp(3rem, 6vw, 5.5rem);
}

/* ═══════════════════════════════════════════════════════
   EDITORIAL INTRO BAND  — full-viewport quote moment
═══════════════════════════════════════════════════════ */
.editorial-band {
  /* transparent so the AI paper texture shows through (was a flat cream block) */
  background: transparent;
  border-top: 1px solid var(--border);
  padding: 4.5rem 10% 5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}
.editorial-inner {
  max-width: 92%;
  transition: transform 0.9s cubic-bezier(.23,1,.32,1), opacity 0.7s ease;
}
/* When the mascot vanishes, glide the quote to the viewport centre.
   --quote-shift is measured precisely in JS; -25vw is a pre-JS fallback. */
.editorial-band.is-centered .editorial-inner {
  transform: translateX(var(--quote-shift, -25vw)) scale(1.08);
}
.editorial-ornament {
  display: block;
  font-size: 0.9rem;
  color: var(--mauve);
  letter-spacing: 0.45em;
  margin-bottom: 2.8rem;
  opacity: 0.7;
}
.editorial-statement {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  /* sized so each half ("Design is the space between" /
     "what exists and what could") fits on one line inside the
     home 50% column instead of wrapping to four rows */
  font-size: clamp(1.5rem, 2.9vw, 3rem);
  line-height: 1.28;
  color: var(--ink);
  border-left: 2px solid var(--clockwork);
  padding-left: 1.8rem;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.editorial-statement em { color: var(--mauve); font-style: normal; }
.editorial-meta {
  margin-top: 2.4rem;
  padding-left: 1.8rem;
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ═══════════════════════════════════════════════════════
   FEATURED WORK  (index.html — full-width horizontal gallery)
═══════════════════════════════════════════════════════ */
#featured {
  /* warm sand band so Recent Projects reads as its own zone, not floating white */
  background: #D7C9B8;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0 1rem;
  overflow: hidden;
}
.feat-intro { padding-bottom: 2.5rem; }
.feat-intro-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 0.6rem;
}
.feat-intro-sub {
  margin-top: 1rem; max-width: 520px;
  font-size: 0.84rem; font-weight: 300; line-height: 1.8; color: var(--mid);
}

/* ── Discipline marquee (auto-scrolling group cards w/ subcards) ── */
.disc-marquee {
  overflow: hidden; padding: 0.5rem 0 4.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.disc-track {
  display: flex; gap: 1.6rem; width: max-content;
  animation: discScroll 60s linear infinite;
}
.disc-marquee:hover .disc-track { animation-play-state: paused; }
@keyframes discScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .disc-track { animation: none; } }

.disc-card {
  flex-shrink: 0; width: 340px;
  background: #FBF8F2; border: 1px solid rgba(68,50,35,0.08);
  border-radius: 14px; padding: 1.4rem 1.4rem 1.1rem;
  display: flex; flex-direction: column;
  box-shadow: 0 6px 24px rgba(68,50,35,0.06);
}
.disc-head {
  display: flex; align-items: baseline; gap: 0.7rem;
  padding-bottom: 1rem; margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.disc-num {
  font-family: var(--serif); font-size: 0.9rem; color: var(--mauve); font-weight: 500;
}
.disc-name {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.15rem; color: var(--ink); margin: 0; flex: 1;
}
.disc-count {
  font-size: 0.56rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--mid); white-space: nowrap;
}
.disc-subs { display: flex; flex-direction: column; gap: 0.55rem; }
.disc-sub {
  display: flex; align-items: center; gap: 0.85rem;
  text-decoration: none; color: inherit;
  padding: 0.4rem; border-radius: 9px;
  transition: background 0.25s ease;
}
.disc-sub:hover { background: #D7C9B8; }
.disc-sub-img {
  width: 66px; height: 66px; flex-shrink: 0;
  border-radius: 9px; overflow: hidden; background: var(--border); display: block;
}
.disc-sub-img img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease; }
.disc-sub:hover .disc-sub-img img { transform: scale(1.07); }
.disc-sub-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.disc-sub-cat {
  font-size: 0.54rem; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--mauve);
}
.disc-sub-title {
  font-size: 0.86rem; font-weight: 400; color: var(--ink); line-height: 1.3;
}
.feat-track-outer {
  overflow-x: scroll;
  overflow-y: visible;
  scrollbar-width: none;
  padding: 0.5rem 8% 4.5rem;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}
.feat-track-outer::-webkit-scrollbar { display: none; }
.feat-track-outer.is-grabbing {
  cursor: grabbing;
  user-select: none;
}
.feat-track {
  display: flex;
  gap: 2rem;
  width: max-content;
}
.feat-full-card {
  display: block;
  width: 24vw;
  min-width: 260px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(52px);
  transition:
    opacity 0.75s cubic-bezier(.23,1,.32,1) calc(var(--card-i, 0) * 0.15s),
    transform 0.75s cubic-bezier(.23,1,.32,1) calc(var(--card-i, 0) * 0.15s);
}
.feat-full-card.in {
  opacity: 1;
  transform: translateY(0);
}
.ffc-img {
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--border);
  position: relative;
}
.ffc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.85s cubic-bezier(.23,1,.32,1);
  will-change: transform;
}
.feat-full-card:hover .ffc-img img { transform: scale(1.05); }
.ffc-veil {
  position: absolute;
  inset: 0;
  background: rgba(44,26,16,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s ease;
}
.ffc-veil span {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}
.feat-full-card:hover .ffc-veil { background: rgba(68,50,35,0.45); }
.feat-full-card:hover .ffc-veil span { opacity: 1; transform: translateY(0); }
.ffc-meta {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.2rem 0 0;
}
.ffc-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 300;
  line-height: 1;
  color: var(--border);
  flex-shrink: 0;
  user-select: none;
}
.ffc-text { flex: 1; }
.ffc-cat {
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cedar);
  display: block;
  margin-bottom: 0.35rem;
}
.ffc-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.6vw, 1.5rem);
  line-height: 1.25;
  color: var(--ink);
}
.feat-drag-hint {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0 8% 3.5rem;
  opacity: 0.4;
}
.feat-drag-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.feat-drag-txt {
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mid);
  white-space: nowrap;
}

/* Home about band — Cedar background */
#home-about { background: #7D5A44; }
#home-about .sw-sm { padding-top: 2.6rem; padding-bottom: 3rem; }
.home-about-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 4rem; align-items: center;
  padding: 0.8rem 0; border-top: 1px solid rgba(255,249,243,0.15);
  position: relative; z-index: 1;
}
.home-about-grid .home-about-body { max-width: 760px; }
#home-about .chapter-label { color: rgba(255,249,243,0.55); }
#home-about .chapter-bg-num { color: rgba(255,249,243,0.06); }
.home-about-stat {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.05; color: rgba(255,249,243,0.96);
}
.home-about-stat em { color: rgba(255,249,243,0.55); }
.home-about-body {
  font-size: 0.86rem; font-weight: 300;
  line-height: 1.95; color: rgba(255,249,243,0.7); margin-bottom: 1.6rem;
}

/* Closing CTA band on home */
#home-cta { background: var(--bg); }
#home-cta .sw-sm { padding-top: 5rem; padding-bottom: 5rem; text-align: center; }
.home-cta-head {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.1;
  color: var(--ink); margin: 0.4rem 0 2rem;
}
.home-cta-head em { font-style: italic; color: var(--mauve); }
.home-cta-row {
  display: flex; align-items: center; justify-content: center;
  gap: 1.8rem; flex-wrap: wrap;
}
.home-cta-btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.95rem 2.2rem; border-radius: 2rem;
  background: var(--ink); color: var(--bg);
  font: 500 0.68rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  transition: background 0.25s ease, transform 0.22s ease;
}
.home-cta-btn:hover { background: var(--mauve); transform: translateY(-2px); }
.home-cta-btn span { transition: transform 0.22s ease; }
.home-cta-btn:hover span { transform: translateX(4px); }

/* Mauve accent band between featured and about */
.mauve-rule {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--mauve) 20%, var(--clockwork) 80%, transparent 100%);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════
   WORK GRID  (work.html)
═══════════════════════════════════════════════════════ */
.work-filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.2rem;
}
.wf-chip {
  font: 500 0.62rem/1 var(--sans);
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.6rem 1.05rem; border: 1px solid var(--border);
  border-radius: 2rem; background: transparent; color: var(--mid);
  cursor: pointer; transition: color 0.22s, background 0.22s, border-color 0.22s;
}
.wf-chip:hover { color: var(--ink); border-color: var(--mid); }
.wf-chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
#work-grid { background: var(--white); }
.project-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
  position: relative; z-index: 1;
}

.project-card { cursor: pointer; }
.proj-img {
  aspect-ratio: 3/2;
  overflow: hidden; background: var(--border); position: relative;
}
.proj-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s cubic-bezier(.25,.46,.45,.94);
}
.project-card:hover .proj-img img { transform: scale(1.06); }
.proj-veil {
  position: absolute; inset: 0;
  background: rgba(68,50,35,0);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.4s ease;
}
.proj-veil-label {
  font-size: 0.64rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--bg); opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}
.project-card:hover .proj-veil { background: rgba(68,50,35,0.46); }
.project-card:hover .proj-veil-label { opacity: 1; transform: translateY(0); }
.proj-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: #E4D9C8; min-height: 280px;
}
.proj-ph-label {
  font-size: 0.56rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--border);
}
.proj-meta {
  padding: 0.65rem 0 0.2rem;
  display: grid; grid-template-columns: 1fr auto;
  align-items: baseline; gap: 0.5rem;
}
.proj-cat {
  font-size: 0.56rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--light); display: block; margin-bottom: 0.26rem;
}
.proj-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  line-height: 1.2; color: var(--ink);
}
.proj-yr {
  font-size: 0.62rem; font-weight: 300;
  color: var(--light); white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════
   INLINE CASE STUDY  (work.html — expands below grid)
═══════════════════════════════════════════════════════ */
#project-cs {
  display: none;
  width: 100%;
  background: var(--bg);
  border-top: 1.5px solid var(--ink);
}
#project-cs.open { display: block; }
.cs-topbar {
  position: sticky; top: 0; z-index: 50;
  padding: 0.9rem 4%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.cs-topbar-num {
  font: 400 0.52rem/1 var(--sans);
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--mid);
}
#cs-close {
  font: 500 0.52rem/1 var(--sans);
  letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--ink); color: var(--bg);
  border: none; padding: 0.55rem 1.4rem;
  cursor: pointer;
  transition: background 0.22s;
}
#cs-close:hover { background: var(--mauve); }

/* ═══════════════════════════════════════════════════════
   MODAL  (Full-screen takeover — slides up from bottom)
═══════════════════════════════════════════════════════ */
#modal {
  position: fixed; inset: 0; z-index: 200;
  visibility: hidden; pointer-events: none;
}
#modal.open { visibility: visible; pointer-events: all; }

#modal-bg {
  position: absolute; inset: 0;
  background: rgba(20,10,5,0.45);
  opacity: 0;
  transition: opacity 0.35s ease;
}
#modal.open #modal-bg { opacity: 1; }

#modal-panel {
  position: absolute; inset: 0;
  background: var(--bg);
  transform: translateY(100%);
  transition: transform 0.68s cubic-bezier(.23,1,.32,1) 0.05s;
  display: block;
  will-change: transform;
}
.modal-pres {
  position: absolute; inset: 0;
  overflow-y: auto; overscroll-behavior: contain;
}
#modal.open #modal-panel { transform: translateY(0); }

/* Floating close + project number — fixed so always visible while scrolling */
.modal-top {
  position: fixed; top: 1.4rem; right: 1.6rem;
  z-index: 220;
  display: flex; align-items: center; gap: 1rem;
  pointer-events: none;
}
#modal.open .modal-top,
#vol-modal.open .modal-top { pointer-events: all; }
.modal-num {
  font-size: 0.54rem; font-weight: 400;
  letter-spacing: 0.22em; color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.4s ease 0.55s;
}
#modal.open .modal-num,
#vol-modal.open .modal-num { opacity: 1; }
#modal-close, #vol-modal-close {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
  transition: background 0.22s, transform 0.3s cubic-bezier(.23,1,.32,1);
}
#modal-close:hover, #vol-modal-close:hover {
  background: var(--mauve); transform: rotate(90deg) scale(1.08);
}

/* LEFT COLUMN: sticky cover image */
.modal-cover-col {
  position: relative; height: 100vh; overflow: hidden;
  background: var(--dark);
}
#m-cover-section,
#vm-cover-section {
  position: absolute; inset: 0;
}
.modal-cover-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transform: scale(1.12);
  transition: transform 1.2s cubic-bezier(.23,1,.32,1) 0.18s;
}
#modal.open .modal-cover-img,
#vol-modal.open .modal-cover-img { transform: scale(1); }
.modal-cover-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, transparent 50%, var(--bg) 100%),
    linear-gradient(to top, rgba(15,8,3,0.7) 0%, transparent 55%);
}
.modal-cover-meta {
  position: absolute; bottom: 3rem; left: 2.4rem; right: 1.5rem;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s ease 0.52s, transform 0.5s cubic-bezier(.23,1,.32,1) 0.52s;
}
#modal.open .modal-cover-meta,
#vol-modal.open .modal-cover-meta { opacity: 1; transform: translateY(0); }
.m-cover-cat {
  display: block;
  font-size: 0.5rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-bottom: 0.55rem;
  font-family: var(--sans); font-weight: 400;
}
.m-cover-title {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2.5rem); line-height: 1.18;
  color: rgba(255,255,255,0.92);
}

/* RIGHT COLUMN: scrollable content */
.modal-content-col {
  height: 100vh; overflow-y: auto;
  overscroll-behavior: contain;
}

/* Staggered entrance — each section fades up on modal open */
.modal-hdr {
  padding: 5.5rem 10% 2.2rem;
  border-bottom: 1px solid var(--border);
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.6s ease 0.36s, transform 0.6s cubic-bezier(.23,1,.32,1) 0.36s;
}
#vol-modal .modal-hdr { padding: 5.5rem 3rem 2.2rem; }
#modal.open .modal-hdr,
#vol-modal.open .modal-hdr { opacity: 1; transform: translateY(0); }
#m-case-study {
  padding: 0 10% 0.5rem;
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.6s ease 0.48s, transform 0.6s cubic-bezier(.23,1,.32,1) 0.48s;
}
#modal.open #m-case-study { opacity: 1; transform: translateY(0); }
.modal-stk-row {
  padding: 2rem 10%; display: flex; justify-content: flex-end;
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.6s ease 0.56s, transform 0.6s cubic-bezier(.23,1,.32,1) 0.56s;
}
#modal.open .modal-stk-row,
#vol-modal.open .modal-stk-row { opacity: 1; transform: translateY(0); }
#m-photos-section {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.6s ease 0.62s, transform 0.6s cubic-bezier(.23,1,.32,1) 0.62s;
}
#modal.open #m-photos-section { opacity: 1; transform: translateY(0); }
#m-video-section {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.6s ease 0.68s, transform 0.6s cubic-bezier(.23,1,.32,1) 0.68s;
}
#modal.open #m-video-section { opacity: 1; transform: translateY(0); }

/* Content typography */
#m-cat, #vm-cat {
  font-size: 0.58rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--cedar); display: block; margin-bottom: 0.8rem;
}
#m-title, #vm-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.12; color: var(--ink); margin-bottom: 1rem;
}
#m-desc, #vm-desc {
  font-size: 0.84rem; font-weight: 300;
  line-height: 1.95; color: var(--mid); max-width: 580px; margin-bottom: 1.2rem;
}
#m-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.m-tag {
  font-size: 0.56rem; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mid); border: 1px solid var(--border);
  padding: 0.18rem 0.65rem;
}
.modal-sec-lbl {
  font-size: 0.54rem; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--light); display: block;
  padding: 2rem 10% 0.8rem;
  border-top: 1px solid var(--border);
}
#vol-modal .modal-sec-lbl { padding-left: 3rem; padding-right: 3rem; }
.modal-cover-ph {
  width: 100%; height: 100%;
  background: var(--sticky);
  display: flex; align-items: center; justify-content: center;
}
.modal-cover-ph span {
  font-size: 0.58rem; font-family: var(--sans);
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--border);
}
.cs-row {
  display: grid; grid-template-columns: 145px 1fr;
  gap: 2rem; padding: 1.8rem 0;
  border-bottom: 1px solid var(--border);
}
.cs-row:last-child { border-bottom: none; }
.cs-label {
  font-size: 0.56rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cedar); padding-top: 0.15rem; flex-shrink: 0;
}
.cs-body {
  font-family: var(--sans); font-size: 0.8rem;
  font-weight: 300; line-height: 1.9; color: var(--ink); margin: 0;
}
#m-photos {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem; padding: 0 10% 0.5rem;
}
#vm-photos {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem; padding: 0 3rem 0.5rem;
}
#m-photos img, #vm-photos img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  cursor: pointer; transition: opacity 0.2s;
}
#m-photos img:hover, #vm-photos img:hover { opacity: 0.8; }
.modal-video-wrap { padding: 0 10% 0.5rem; }
#vol-modal .modal-video-wrap { padding-left: 3rem; padding-right: 3rem; }
.modal-video-wrap video { width: 100%; display: block; outline: none; }

/* ═══════════════════════════════════════════════════════
   INLINE CASE STUDY  —  PORTFOLIO DOCUMENT  (work.html)
═══════════════════════════════════════════════════════ */

/* Page shell — tinted background, cards centred in it */
#cs-content {
  background: #E4D9C8;
  padding: 2.4rem clamp(0.6rem,4%,5rem) 5rem;
  display: flex; flex-direction: column;
  align-items: center; gap: 1.6rem;
}

/* ── Standalone project page (curved-table.html etc.) ── */
.proj-page-bar {
  padding: 1.4rem 4%;
  margin-top: 4.2rem;            /* clears the fixed nav */
  background: var(--bg);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.proj-page-num {
  font: 400 0.52rem/1 var(--sans);
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--mid);
}
.proj-page-back {
  font: 500 0.52rem/1 var(--sans);
  letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--ink); color: var(--bg);
  padding: 0.6rem 1.4rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: background 0.22s, gap 0.22s;
}
.proj-page-back:hover { background: var(--mauve); gap: 0.85rem; }
.proj-page-next {
  display: flex; justify-content: center;
  padding: 3rem 4% 5rem; background: #E4D9C8;
}
.proj-page-next a {
  font: 500 0.6rem/1 var(--sans);
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--mauve);
  display: inline-flex; align-items: center; gap: 0.6rem;
  border-bottom: 1px solid var(--mauve); padding-bottom: 0.3rem;
  transition: gap 0.22s;
}
.proj-page-next a:hover { gap: 1rem; }

/* Reveal animation */
.pres-r {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(.23,1,.32,1);
}
.pres-r.pv { opacity: 1; transform: translateY(0); }

/* Base card */
.pcard {
  width: 100%; max-width: 1040px;
  background: var(--bg);
  box-shadow: 0 2px 20px rgba(68,50,35,0.08), 0 0 0 1px rgba(68,50,35,0.05);
  overflow: hidden;
}

/* ── CARD 1: INTRO — left text / right main image ── */
.pcard-intro {
  display: grid; grid-template-columns: 44% 56%;
  min-height: 320px;
}
.pcard-intro-body {
  padding: 3rem 2.8rem 2.4rem;
  display: flex; flex-direction: column;
  justify-content: space-between;
}
.pcard-intro-text { display: flex; flex-direction: column; gap: 1.3rem; }
.pcard-eyebrow {
  font: 500 0.52rem/1 var(--sans);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mid); display: block;
}
.pcard-title {
  font: 300 clamp(1.6rem,2.8vw,2.6rem)/1.1 var(--serif);
  color: var(--ink); margin: 0; letter-spacing: -0.02em;
}
.pcard-desc {
  font: 300 0.82rem/1.85 var(--sans);
  color: var(--mid); margin: 0;
}
.pcard-brief {
  padding-top: 1.4rem; border-top: 1px solid rgba(68,50,35,0.1);
}
.pcard-label {
  display: block; font: 500 0.5rem/1 var(--sans);
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 0.85rem;
}
.pcard-brief-body {
  font: 300 0.82rem/1.85 var(--sans);
  color: var(--ink); margin: 0;
}
.pcard-intro-foot {
  margin-top: 2rem; display: flex; flex-direction: column; gap: 1.2rem;
}
.pcard-thumbs { display: flex; gap: 8px; }
.pcard-thumbs img {
  flex: 1; min-width: 0; height: auto; max-height: 100px;
  object-fit: cover; display: block; cursor: pointer;
  transition: opacity 0.22s;
}
.pcard-thumbs img:hover { opacity: 0.8; }
.pcard-year {
  font: 500 0.5rem/1 var(--sans);
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--mid);
}
.pcard-intro-img {
  background: var(--bg); display: flex;
  align-items: center; justify-content: center; padding: 2rem;
}
.pcard-intro-img img {
  width: 72%; height: auto; object-fit: contain;
  display: block; background-color: var(--bg);
}
.pcard-intro-img--lg img { width: 88%; }
/* Right column: big image on top, thumbnails beneath it */
.pcard-intro-img-col {
  display: flex; flex-direction: column; background: var(--bg);
}
.pcard-intro-img-col .pcard-intro-img { flex: 1; }
.pcard-intro-img-col .pcard-thumbs {
  gap: 8px; padding: 0 2rem 2rem;
}
.pcard-intro-img-col .pcard-thumbs img {
  flex: 1; min-width: 0; width: 0;
  height: 130px; max-height: none; aspect-ratio: auto;
  object-fit: cover; border-radius: 7px;
}

/* ── CARD 2/3: SECTION — text | collage or collage | text ── */
.pcard-sec {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.pcard-sec-text { padding: 3rem 2.8rem; }
.pcard-sec:not(.pcard-sec--flip) .pcard-sec-text {
  border-right: 1px solid rgba(68,50,35,0.1);
}
.pcard-sec--flip .pcard-sec-text {
  border-left: 1px solid rgba(68,50,35,0.1);
}
.pcard-body {
  font: 300 0.82rem/1.92 var(--sans);
  color: var(--ink); margin: 0;
}

/* Document frame — charts/renders shown whole, capped to a standard height */
.pc-doc {
  background: var(--bg); line-height: 0;
  display: flex; justify-content: center; align-items: center;
  gap: 1rem; padding: 1.2rem 2rem;
}
@media (max-width: 700px) { .pc-doc { flex-direction: column; } }
.pc-doc img {
  max-width: 100%; max-height: 440px; width: auto; height: auto;
  object-fit: contain; display: block;
  cursor: pointer; transition: opacity 0.22s; border-radius: 7px;
}
.pc-doc img:hover { opacity: 0.84; }

/* Fit grid — images shown whole (no crop); columns sized to aspect ratios so
   a row fills the width at equal height with no gaps. 1 column = full-width. */
.pc-fit {
  display: grid; gap: 3px; background: var(--sticky); line-height: 0;
  align-items: stretch;
}
.pc-fit img {
  /* height 100% + cover: cells stretch to the tallest, so auto-height
     images would otherwise be stretched out of proportion */
  width: 100%; height: 100%; object-fit: cover; display: block;
  cursor: pointer; transition: opacity 0.22s;
}
.pc-fit img:hover { opacity: 0.84; }
@media (max-width: 700px) { .pc-fit { grid-template-columns: 1fr !important; } }

/* Vertical stack — one wide photo on top, two side-by-side below (fills cell) */
.pc-vstack {
  display: flex; flex-direction: column; gap: 3px;
  height: 100%; background: var(--sticky); line-height: 0;
}
.pc-vstack-top { flex: 1; min-height: 0; }
.pc-vstack-top img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; cursor: pointer; transition: opacity 0.22s;
}
.pc-vstack-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.pc-vstack-bottom img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  display: block; cursor: pointer; transition: opacity 0.22s;
}
.pc-vstack img:hover { opacity: 0.84; }
/* standalone (full-width card) variant — fixed aspects, no parent height needed */
.pc-vstack--auto { height: auto; }
.pc-vstack--auto .pc-vstack-top { flex: none; }
.pc-vstack--auto .pc-vstack-top img { height: auto; aspect-ratio: 16/9; }
/* bottom row: columns sized to each photo's aspect ratio so both fill the
   width at equal height — no cropping and no negative space */
.pc-vstack--auto .pc-vstack-bottom {
  display: grid; grid-template-columns: 1.776fr 0.74fr; gap: 3px;
  background: var(--sticky);
}
.pc-vstack--auto .pc-vstack-bottom img {
  /* cover, not fill: grid rows stretch both cells to equal height, and
     fill would distort whichever photo doesn't match its column ratio */
  width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover;
  display: block;
}
@media (max-width: 700px) {
  .pc-vstack--auto .pc-vstack-bottom { grid-template-columns: 1fr; }
}

/* ── NO-CROP image groups — show full images, card grows to fit ── */
.pc-nocrop {
  display: flex; gap: 3px; align-items: flex-start;
  background: var(--bg); line-height: 0;
}
.pc-nocrop img {
  flex: 1; min-width: 0; width: 0; height: auto;
  object-fit: contain; display: block;
  cursor: pointer; transition: opacity 0.22s;
}
.pc-nocrop img:hover { opacity: 0.84; }
.pc-nocrop--1 img { flex: none; width: 100%; }
@media (max-width: 700px) {
  .pc-nocrop { flex-direction: column; }
  .pc-nocrop img { width: 100%; }
}

/* Single photo capped to viewport so it fits on one screen */
.pc-screen {
  background: var(--bg); line-height: 0;
  display: flex; justify-content: center; align-items: center;
  padding: 0.5rem 2rem 2rem;
}
.pc-screen img {
  max-height: 72vh; max-width: 100%; width: auto; height: auto;
  object-fit: contain; display: block;
  cursor: pointer; transition: opacity 0.22s; border-radius: 7px;
}
.pc-screen img:hover { opacity: 0.84; }

/* Larger 2-up grid — taller cells for portrait photos */
.pc-duo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
  background: var(--sticky); line-height: 0;
}
.pc-duo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  display: block; cursor: pointer; transition: opacity 0.22s;
}
.pc-duo img:hover { opacity: 0.84; }
@media (max-width: 700px) { .pc-duo { grid-template-columns: 1fr; } }

/* ── PHOTO COLLAGES ── */
.pc {
  background: var(--sticky); line-height: 0; overflow: hidden;
}
.pc img {
  display: block; cursor: pointer;
  transition: opacity 0.22s;
}
.pc img:hover { opacity: 0.84; }

/* Final product — equal 3-up grid sized for portrait phone photos */
.pc-final {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px;
  background: var(--sticky); line-height: 0;
}
.pc-final img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  display: block; cursor: pointer; transition: opacity 0.22s;
}
.pc-final img:hover { opacity: 0.84; }
@media (max-width: 700px) {
  .pc-final { grid-template-columns: 1fr 1fr; }
}

/* CAD renders — equal 3-up grid sized for landscape renders */
.pc-cad {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px;
  background: var(--sticky); line-height: 0;
}
.pc-cad img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  display: block; cursor: pointer; transition: opacity 0.22s;
}
.pc-cad img:hover { opacity: 0.84; }
@media (max-width: 700px) {
  .pc-cad { grid-template-columns: 1fr 1fr; }
}

/* transparent PNG variant — background matches card, images use contain + padding */
.pc--sketch {
  background: var(--bg); padding: 2.4rem; line-height: normal;
  display: flex; align-items: center;
}
.pc--sketch.pc-2 { gap: 1.6rem; }
.pc--sketch img {
  flex: 1; width: 0; min-width: 0;
  aspect-ratio: auto; height: auto;
  object-fit: contain; max-height: 340px;
  background-color: var(--bg);
}
.pc--sketch-single {
  justify-content: center; padding: 3rem;
}
.pc--sketch-single img {
  width: 100%; height: auto; max-height: 420px;
  aspect-ratio: auto; object-fit: contain;
  flex: none; background-color: var(--bg);
}

/* full uncropped sketch card */
.pcard-sketch-full {
  background: var(--bg); padding: 3rem 4rem;
  display: flex; justify-content: center; align-items: center;
}
.pcard-sketch-full img {
  width: 100%; height: auto; max-width: 760px;
  object-fit: contain; display: block;
  cursor: pointer; transition: opacity 0.22s;
}
.pcard-sketch-full img:hover { opacity: 0.84; }

/* sketch-top + 2-photo-bottom stacked layout */
.pc-stack { display: flex; flex-direction: column; gap: 3px; background: var(--sticky); }
.pc-stack .pc-stack-top {
  width: 100%; background: var(--bg);
  line-height: 0;
}
.pc-stack .pc-stack-top img {
  width: 100%; height: auto; object-fit: contain;
  display: block; cursor: pointer; transition: opacity 0.22s;
}
.pc-stack .pc-stack-top img:hover { opacity: 0.84; }
.pc-stack .pc-stack-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.pc-stack .pc-stack-bottom img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  display: block; cursor: pointer; transition: opacity 0.22s;
}
.pc-stack .pc-stack-bottom img:hover { opacity: 0.84; }

/* fill-height variant — for images inside a stretched column, drops aspect-ratio */
.pc--fill { align-self: stretch; height: 100%; }
.pc--fill img { width: 100%; height: 100%; aspect-ratio: unset; object-fit: cover; }
.pc--fill.pc-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }

/* 1 photo — full width, 16:9 */
.pc-1 img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* 2 photos — side by side, each 4:3 */
.pc-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.pc-2 img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* 3 photos — large left (spans 2 rows) + 2 stacked right, container 4:3 */
.pc-3 { display: grid; grid-template-columns: 60% 40%; grid-template-rows: 1fr 1fr; gap: 3px; aspect-ratio: 4/3; }
.pc-3 img:first-child { grid-row: 1 / 3; width: 100%; height: 100%; object-fit: cover; }
.pc-3 img:not(:first-child) { width: 100%; height: 100%; object-fit: cover; }

/* 4 photos — 2×2 grid, each 1:1 square */
.pc-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.pc-4 img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }

/* 5+ photos — 16:9 feature top + 4:3 thumbnail strip */
.pc-n { display: flex; flex-direction: column; gap: 3px; }
.pc-feat { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; cursor: pointer; transition: opacity 0.22s; }
.pc-feat:hover { opacity: 0.84; }
.pc-strip { display: flex; gap: 3px; }
.pc-strip img { flex: 1; min-width: 0; aspect-ratio: 4/3; object-fit: cover; }

/* ── VIDEO ── */
.pcard-video {
  padding: 2.8rem; background: var(--dark);
}
.pcard-video .pcard-label { color: rgba(255,249,243,0.48); }
.pcard-vid-el { width: 100%; max-height: 70vh; display: block; outline: none; margin-top: 1rem; }

/* ── CARD 6: OUTCOME ── */
.pcard-outcome { padding: 3rem 2.8rem; background: var(--sticky); }

/* ── CARD 7: QUOTE ── */
.pcard-quote {
  padding: clamp(3.5rem,7vh,5.5rem) clamp(2rem,8%,4.5rem);
  background: var(--ink);
  display: flex; align-items: center;
}
.pcard-quote blockquote {
  font: italic 300 clamp(1.1rem,2.4vw,1.9rem)/1.58 var(--serif);
  color: rgba(255,249,243,0.9); margin: 0; max-width: 760px;
  quotes: none;
}
.pcard-quote blockquote::before,
.pcard-quote blockquote::after { content: ''; }

/* ── CARD 8: END ── */
.pcard-end { padding: 2.8rem; }
.pcard-reflection {
  font: italic 300 0.85rem/1.9 var(--serif);
  color: var(--mid); margin: 0 0 2rem; max-width: 580px;
}
.pcard-tags {
  display: flex; flex-wrap: wrap; gap: 0.45rem 0.65rem;
  padding-top: 2rem; border-top: 1px solid rgba(68,50,35,0.1);
}
.pcard-tag {
  font: 500 0.5rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mid); border: 1px solid rgba(68,50,35,0.18);
  padding: 0.4rem 0.85rem;
}

/* ── FURNITURE CURVED TABLE CARDS ── */
.pcard-needs-list { display: flex; flex-direction: column; gap: 0; margin-top: 1.2rem; }
.pcard-need {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 0.75rem 0; border-bottom: 1px solid rgba(68,50,35,0.07);
}
.pcard-need strong {
  font: 500 0.58rem/1 var(--sans); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink);
}
.pcard-need span { font: 300 0.8rem/1.65 var(--sans); color: var(--mid); }

.pcard-audience { padding: 3rem 2.8rem; }
.pcard-audience-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin-top: 1.4rem; border-top: 1px solid rgba(68,50,35,0.1); }
.pcard-aud-item { padding: 1.6rem 1.8rem 1.6rem 0; border-right: 1px solid rgba(68,50,35,0.08); }
.pcard-aud-item:last-child { border-right: none; padding-right: 0; padding-left: 1.8rem; }
.pcard-aud-item:nth-child(2) { padding-left: 1.8rem; }
.pcard-aud-item h4 { font: 400 0.9rem/1.3 var(--serif); color: var(--ink); margin: 0 0 0.6rem; }
.pcard-aud-item p { font: 300 0.78rem/1.8 var(--sans); color: var(--mid); margin: 0; }

.pcard-tech-mat { display: grid; grid-template-columns: 1fr 1fr; }
.pcard-tech-col { display: flex; flex-direction: column; }
.pcard-tech-col--right { border-left: 1px solid rgba(68,50,35,0.1); }
.pcard-tech-text { padding: 2.8rem 2.8rem 1.6rem; flex: 1; }
.pcard-tech-img { background: var(--sticky); line-height: 0; }
.pcard-tech-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; cursor: pointer; transition: opacity 0.22s; }
.pcard-tech-img img:hover { opacity: 0.84; }

.pcard-cad-slide { display: grid; grid-template-columns: 38% 62%; align-items: start; }
.pcard-cad-slide-text { padding: 3rem 2.8rem; border-right: 1px solid rgba(68,50,35,0.1); }
.pcard-cad-slide-img { background: var(--sticky); line-height: 0; }
.pcard-cad-slide-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; cursor: pointer; transition: opacity 0.22s; }
.pcard-cad-slide-img img:hover { opacity: 0.84; }

.pcard-slide-full { }
.pcard-label--pad { display: block; padding: 1.6rem 2.8rem 0.8rem; }
.pcard-slide-full-img { background: var(--sticky); line-height: 0; }
.pcard-slide-full-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; cursor: pointer; transition: opacity 0.22s; }
.pcard-slide-full-img img:hover { opacity: 0.84; }

/* ── CAPSTONE CUSTOM CARDS ── */
.pcard-sec-h {
  font: 300 clamp(1.1rem,1.9vw,1.55rem)/1.3 var(--serif);
  color: var(--ink); margin: 0 0 1.1rem; letter-spacing: -0.01em;
}
.pcard-body + .pcard-body { margin-top: 0.9rem; }
.pcard-tag-row {
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; margin-top: 1.4rem;
}

/* Requirements card */
.pcard-reqs { padding: 3rem 2.8rem; }
.pcard-reqs-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border-top: 1px solid rgba(68,50,35,0.1);
  margin-top: 1.4rem;
}
.pcard-req-item {
  display: flex; flex-direction: column; gap: 0.3rem;
  padding: 1rem 1.2rem 1rem 0;
  border-bottom: 1px solid rgba(68,50,35,0.08);
}
.pcard-req-item:nth-child(odd) { padding-right: 2rem; border-right: 1px solid rgba(68,50,35,0.08); }
.pcard-req-item:nth-child(even) { padding-left: 2rem; }
.pcard-req-item strong {
  font: 500 0.58rem/1 var(--sans); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink);
}
.pcard-req-item span {
  font: 300 0.8rem/1.65 var(--sans); color: var(--mid);
}

/* Concepts card */
.pcard-concepts { padding: 3rem 2.8rem; }
.pcard-concepts-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 0;
  margin-top: 1.4rem; border-top: 1px solid rgba(68,50,35,0.1);
}
.pcard-concept {
  padding: 1.8rem 1.8rem 1.8rem 0;
  border-right: 1px solid rgba(68,50,35,0.08);
}
.pcard-concept:last-child { border-right: none; padding-right: 0; padding-left: 1.8rem; }
.pcard-concept:nth-child(2) { padding-left: 1.8rem; }
.pcard-concept-num {
  display: block; font: 500 0.48rem/1 var(--sans);
  letter-spacing: 0.28em; color: var(--mid); margin-bottom: 0.65rem;
}
.pcard-concept h4 {
  font: 400 0.88rem/1.3 var(--serif); color: var(--ink); margin: 0 0 0.7rem;
}
.pcard-concept p {
  font: 300 0.78rem/1.8 var(--sans); color: var(--mid); margin: 0;
}
.pcard-concept--selected {
  background: rgba(68,50,35,0.03);
}
.pcard-concept--selected h4 em {
  display: block; font: 500 0.46rem/1 var(--sans);
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--clockwork);
  margin-top: 0.3rem; font-style: normal;
}

/* CAD card */
.pcard-cad {
  display: grid; grid-template-columns: 1fr 1fr; align-items: start;
}
.pcard-cad-col {
  padding: 3rem 2.8rem; border-right: 1px solid rgba(68,50,35,0.1);
}
.pcard-cad-renders {
  background: var(--sticky); display: flex; flex-direction: column; gap: 3px; line-height: 0;
}
.pcard-cad-renders img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  display: block; cursor: pointer; transition: opacity 0.22s;
}
.pcard-cad-renders img:hover { opacity: 0.84; }
.pcard-cad-list {
  list-style: none; margin: 1.4rem 0 0; padding: 0;
  border-top: 1px solid rgba(68,50,35,0.1); padding-top: 1.2rem;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.pcard-cad-list li {
  font: 300 0.78rem/1.5 var(--sans); color: var(--mid);
  padding-left: 0.9rem; position: relative;
}
.pcard-cad-list li::before {
  content: '—'; position: absolute; left: 0; color: rgba(68,50,35,0.3);
}
.pcard-cad-list li strong { color: var(--ink); font-weight: 500; }

/* Mobile */
@media (max-width: 700px) {
  #cs-content { padding: 1.2rem 0.4rem 4rem; gap: 1rem; }
  .pcard-intro { grid-template-columns: 1fr; min-height: auto; }
  .pcard-intro-body { border-right: none; border-bottom: 1px solid rgba(68,50,35,0.1); }
  .pcard-intro-img { min-height: 240px; }
  .pcard-title { font-size: clamp(1.5rem,6vw,2.4rem); }
  .pcard-sec { grid-template-columns: 1fr; }
  .pcard-sec:not(.pcard-sec--flip) .pcard-sec-text { border-right: none; border-bottom: 1px solid rgba(68,50,35,0.1); }
  .pcard-sec--flip { display: flex; flex-direction: column; }
  .pcard-sec--flip .pcard-sec-text { border-left: none; border-top: 1px solid rgba(68,50,35,0.1); order: 1; }
  .pcard-sec--flip .pc { order: -1; }
  .pc-2, .pc-4 { grid-template-columns: 1fr 1fr; }
  .pc-3 { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .pc-3 img:first-child { grid-row: auto; grid-column: 1 / -1; max-height: 200px; }
  .pcard-reqs-grid { grid-template-columns: 1fr; }
  .pcard-req-item:nth-child(odd) { border-right: none; padding-right: 0; }
  .pcard-req-item:nth-child(even) { padding-left: 0; }
  .pcard-concepts-grid { grid-template-columns: 1fr; }
  .pcard-concept { border-right: none; padding: 1.4rem 0; border-bottom: 1px solid rgba(68,50,35,0.08); }
  .pcard-concept:last-child { padding-left: 0; }
  .pcard-concept:nth-child(2) { padding-left: 0; }
  .pcard-cad { grid-template-columns: 1fr; }
  .pcard-cad-col { border-right: none; border-bottom: 1px solid rgba(68,50,35,0.1); }
  .pcard-audience-grid { grid-template-columns: 1fr; }
  .pcard-aud-item { border-right: none; padding: 1.2rem 0; border-bottom: 1px solid rgba(68,50,35,0.08); }
  .pcard-aud-item:last-child { padding-left: 0; }
  .pcard-aud-item:nth-child(2) { padding-left: 0; }
  .pcard-tech-mat { grid-template-columns: 1fr; }
  .pcard-tech-col--right { border-left: none; border-top: 1px solid rgba(68,50,35,0.1); }
  .pcard-cad-slide { grid-template-columns: 1fr; }
  .pcard-cad-slide-text { border-right: none; border-bottom: 1px solid rgba(68,50,35,0.1); }
}

/* Card click: burst particles */
.modal-burst {
  position: fixed; pointer-events: none; z-index: 190;
  font-size: 0.9rem; color: var(--clockwork);
  opacity: 1; line-height: 1;
  transition: transform 0.7s cubic-bezier(.23,1,.32,1),
              opacity 0.45s ease 0.18s;
}
/* Card launching state */
.project-card.launching .card-inner,
.vol-card.launching .card-inner {
  transform: rotateY(180deg);
  transition: transform 0.2s cubic-bezier(.23,1,.32,1) !important;
}

/* ═══════════════════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════════════════ */
#lb {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(44,26,16,0.97);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
#lb.open { opacity: 1; visibility: visible; }
#lb img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
#lb-x {
  position: absolute; top: 1.4rem; right: 1.4rem;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,249,243,0.1); color: var(--bg); font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
#lb-x:hover { background: rgba(255,249,243,0.22); }

/* ═══════════════════════════════════════════════════════
   ABOUT  (about.html)
═══════════════════════════════════════════════════════ */
#about-section { background: var(--bg); }
.about-grid {
  display: grid; grid-template-columns: 0.6fr 1.4fr;
  gap: 4rem; align-items: start;
}
.about-img-col { position: relative; }
.about-img {
  width: 100%; height: auto; display: block;
}
.about-stk { position: absolute; bottom: -1.2rem; right: -1.5rem; }
.about-body p {
  font-size: 0.88rem; font-weight: 300;
  line-height: 1.95; color: var(--mid); margin-bottom: 1.1rem;
}
.about-body p:last-child { margin-bottom: 0; }
.about-details {
  margin-top: 2.8rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem;
}
.d-lbl {
  font-size: 0.54rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--cedar); display: block; margin-bottom: 0.28rem;
}
.d-val { font-size: 0.8rem; font-weight: 300; color: var(--ink); line-height: 1.55; }

/* ═══════════════════════════════════════════════════════
   SKILLS  (about.html)  — Mauve background
═══════════════════════════════════════════════════════ */
#skills { background: var(--cedar); }
#skills .chapter-label,
#skills .eyebrow { color: rgba(255,249,243,0.55); }
#skills .chapter-bg-num { color: rgba(255,249,243,0.06); }
#skills .sec-heading,
#skills .sk-col-title { color: rgba(255,249,243,0.96); }
#skills .sk-list li { color: rgba(255,249,243,0.75); }
#skills .sk-col { border-right-color: rgba(255,249,243,0.14); }
#skills .skills-cols { border-top-color: rgba(255,249,243,0.14); }
#skills .sk-col-title { border-bottom-color: rgba(255,249,243,0.14); }
#skills .sk-list li::before { color: rgba(255,249,243,0.45); }
.skills-cols {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.sk-col {
  padding: 2.5rem 2.5rem 2.5rem 0;
  border-right: 1px solid var(--border);
}
.sk-col:last-child  { border-right: none; padding-left: 2.5rem; padding-right: 0; }
.sk-col:nth-child(2){ padding-left: 2.5rem; }
.sk-col-title {
  font-size: 0.58rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink);
  margin-bottom: 1.4rem; padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.sk-list { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.sk-list li {
  font-size: 0.8rem; font-weight: 300;
  color: var(--mid); padding-left: 0.9rem; position: relative;
}
.sk-list li::before {
  content: '–'; position: absolute; left: 0;
  color: var(--cedar);
}

/* ═══════════════════════════════════════════════════════
   EXPERIENCE  (experience.html)
   Clockwork period color. Mauve company names.
═══════════════════════════════════════════════════════ */
#experience-section { background: var(--bg); }
.exp-item {
  display: grid; grid-template-columns: 190px 1fr; gap: 3rem;
  padding: 2rem 0; border-top: 1px solid var(--border);
}
.exp-item:last-child { border-bottom: 1px solid var(--border); }
.exp-period {
  font-size: 0.68rem; font-weight: 300;
  letter-spacing: 0.06em; color: var(--clockwork); padding-top: 0.2rem;
}
.exp-role { font-size: 0.9rem; font-weight: 400; color: var(--ink); margin-bottom: 0.15rem; }
.exp-co {
  font-size: 0.74rem; color: var(--mauve);
  letter-spacing: 0.04em; margin-bottom: 0.55rem; display: block;
}
.exp-detail {
  font-size: 0.8rem; font-weight: 300;
  color: var(--mid); line-height: 1.82;
}

/* ═══════════════════════════════════════════════════════
   VOLUNTEERING  (experience.html)
═══════════════════════════════════════════════════════ */
#vol { background: var(--white); }
.vol-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.vol-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
  margin-bottom: 1.1rem; background: var(--border); transition: opacity 0.3s;
}
.vol-item:hover .vol-img { opacity: 0.86; }
.vol-ph {
  width: 100%; aspect-ratio: 4/3; background: #E4D9C8;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem;
}
.vol-name { font-size: 0.88rem; font-weight: 400; color: var(--ink); margin-bottom: 0.18rem; }
.vol-org {
  font-size: 0.63rem; letter-spacing: 0.1em;
  color: var(--cedar); margin-bottom: 0.5rem; display: block;
}
.vol-desc { font-size: 0.76rem; font-weight: 300; color: var(--mid); line-height: 1.78; }

/* ═══════════════════════════════════════════════════════
   CONTACT  (contact.html)  — light canvas
═══════════════════════════════════════════════════════ */
#contact-section {
  background: var(--bg);
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.contact-inner { max-width: 760px; width: 100%; }
.contact-eye {
  font-size: 0.58rem; font-weight: 400;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--mid); display: block; margin-bottom: 1.5rem;
}
.contact-head {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 1.05; color: var(--ink); margin-bottom: 1.2rem;
}
.contact-head em { font-style: italic; color: var(--mauve); }
.contact-sub {
  font-size: 0.8rem; font-weight: 300;
  color: var(--mid); line-height: 1.9; margin-bottom: 3.5rem;
}
.contact-links { display: flex; flex-direction: column; }
.cl {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem; font-weight: 300;
  color: var(--light);
  transition: color 0.22s;
}
.cl:first-child { border-top: 1px solid var(--border); }
.cl:hover { color: var(--mauve); }
.cl-icon {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: border-color 0.22s, background 0.22s;
}
.cl:hover .cl-icon { border-color: var(--mauve); background: rgba(125,90,68,0.12); }
.cl-icon svg { width: 14px; height: 14px; fill: currentColor; }
.cl-label { flex: 1; }
.cl-meta {
  font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mid);
}
.cl:hover .cl-meta { color: var(--ink); }
.cl-arrow { font-size: 0.9rem; opacity: 0; transform: translateX(-6px); transition: opacity 0.2s, transform 0.2s; }
.cl:hover .cl-arrow { opacity: 0.5; transform: translateX(0); }
.contact-foot {
  margin-top: 3.5rem;
  font-size: 0.56rem; font-weight: 300;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mid);
}

/* ═══════════════════════════════════════════════════════
   STANDALONE VOLUNTEER PAGE  (beyond/*.html)
═══════════════════════════════════════════════════════ */
#vol-page { background: var(--bg); min-height: 100vh; }
.vp-inner { max-width: 820px; margin: 0 auto; padding: 9rem 5% 5rem; }
.vp-back {
  display: inline-block; margin-bottom: 2.4rem;
  font-size: 0.66rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mid); text-decoration: none;
  transition: color 0.22s;
}
.vp-back:hover { color: var(--mauve); }
.vp-num {
  font-family: var(--serif); font-size: 0.9rem; color: var(--mauve);
  display: block; margin-bottom: 0.8rem;
}
.vp-cat {
  font-size: 0.6rem; font-weight: 500; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--mid); display: block; margin-bottom: 0.7rem;
}
.vp-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05;
  color: var(--ink); margin: 0 0 2rem;
}
.vp-meta {
  display: flex; flex-wrap: wrap; gap: 2.5rem;
  padding: 1.4rem 0; margin-bottom: 2rem;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.vp-meta-lbl {
  display: block; font-size: 0.54rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--mid);
  margin-bottom: 0.35rem;
}
.vp-meta-val { font-size: 0.84rem; color: var(--ink); }
.vp-desc {
  font-size: 0.96rem; font-weight: 300; line-height: 1.85;
  color: var(--ink); margin: 0 0 2.5rem;
}
#vol-page .cs-row { margin-bottom: 1.8rem; }
#vol-page .cs-label {
  display: block; font-size: 0.56rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--mauve);
  margin-bottom: 0.6rem;
}
#vol-page .cs-body {
  font-size: 0.84rem; font-weight: 300; line-height: 1.9; color: var(--mid); margin: 0;
}
.vp-photos {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin-top: 3rem;
}
.vp-photos img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 7px; cursor: pointer; display: block;
  transition: opacity 0.22s ease;
}
.vp-photos img:hover { opacity: 0.85; }
@media (max-width: 640px) { .vp-photos { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════
   SCROLL REVEAL  (all classes)
═══════════════════════════════════════════════════════ */
.rv {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.95s cubic-bezier(.25,.46,.45,.94),
              transform 0.95s cubic-bezier(.25,.46,.45,.94);
}
.rv.in { opacity: 1; transform: none; }

.rv-img {
  opacity: 0; transform: scale(0.96);
  transition: opacity 1.1s ease, transform 1.1s ease;
}
.rv-img.in { opacity: 1; transform: none; }

.rv-left {
  opacity: 0; transform: translateX(-28px);
  transition: opacity 0.9s cubic-bezier(.25,.46,.45,.94),
              transform 0.9s cubic-bezier(.25,.46,.45,.94);
}
.rv-left.in { opacity: 1; transform: none; }

.rv-right {
  opacity: 0; transform: translateX(28px);
  transition: opacity 0.9s cubic-bezier(.25,.46,.45,.94),
              transform 0.9s cubic-bezier(.25,.46,.45,.94);
}
.rv-right.in { opacity: 1; transform: none; }

.rv-clip {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s cubic-bezier(.77,0,.175,1);
}
.rv-clip.in { clip-path: inset(0 0 0% 0); }

/* Stagger delays */
.stg > *:nth-child(1) { transition-delay: 0s;    }
.stg > *:nth-child(2) { transition-delay: 0.09s; }
.stg > *:nth-child(3) { transition-delay: 0.18s; }
.stg > *:nth-child(4) { transition-delay: 0.27s; }
.stg > *:nth-child(5) { transition-delay: 0.36s; }
.stg > *:nth-child(6) { transition-delay: 0.45s; }
.stg > *:nth-child(7) { transition-delay: 0.54s; }
.stg > *:nth-child(8) { transition-delay: 0.63s; }

/* ═══════════════════════════════════════════════════════
   HAMBURGER NAV TOGGLE
═══════════════════════════════════════════════════════ */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  width: 32px; height: 32px;
  background: none; border: none;
  cursor: pointer; padding: 2px 0;
  color: var(--ink);
  position: relative; z-index: 201;
  flex-shrink: 0;
}
.nav-burger span {
  display: block; height: 1.5px;
  background: currentColor; border-radius: 1px;
  transition: transform 0.32s cubic-bezier(.23,1,.32,1),
              opacity 0.22s ease, width 0.22s ease;
}
.nav-burger span:nth-child(1) { width: 22px; }
.nav-burger span:nth-child(2) { width: 13px; }
.nav-burger span:nth-child(3) { width: 22px; }
.nav-burger.open span:nth-child(1) { width: 20px; transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { width: 20px; transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile-only CTA inside the overlay */
.nav-cta-mob { display: none; }

/* Touch: tapped state slides the panel in (mirrors hover) */
.project-card:not(.vol-card).tapped .card-back { transform: translateX(0); }
.project-card:not(.vol-card).tapped .card-front { transform: translateX(-6%) scale(0.97); }
/* Vol cards still use flip */
.vol-card.tapped .card-inner { transform: rotateY(180deg); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */

/* ── Tablet (≤ 980px) ── */
@media (max-width: 980px) {
  .page-split { display: block; }
  .page-split-left { display: none; }
  .page-split-right { min-height: auto; padding: 6.5rem 5% 2.5rem; border-bottom: 1px solid var(--border); }

  /* Narrower char panel on tablet — still split, just tighter */
  #home-cinematic { grid-template-columns: 38% 62%; }
  #home-content { width: 100%; }
  /* Centre offset computed precisely in JS via --quote-shift */
  .editorial-band.is-centered .editorial-inner { transform: translateX(var(--quote-shift, -19vw)) scale(1.06); }
  #hero { padding: 7rem 5% 4rem; }
  .hero-name .ln2 { padding-left: 0; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-stk { display: none; }
  .feat-full-card { width: 44vw; }
  .home-about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-cols { grid-template-columns: 1fr 1fr; }
  .sk-col:nth-child(3) { grid-column: span 2; border-right: none; padding-left: 0; border-top: 1px solid var(--border); }
  .exp-item { grid-template-columns: 1fr; gap: 0.4rem; }
  .vol-grid { grid-template-columns: 1fr 1fr; }
}

/* ── NAV: hamburger + full-screen overlay (phones AND tablets) ── */
@media (max-width: 920px) {
  #nav { padding: 1rem 5%; gap: 1rem; }
  .nav-logo { font-size: 1rem; position: relative; z-index: 201; }
  .nav-burger { display: flex; margin-left: auto; }
  .nav-cta { display: none; }

  .nav-links {
    position: fixed; top: 0; left: 0; right: 0;
    height: 100vh; height: 100dvh;
    flex-direction: column; justify-content: center; align-items: center;
    gap: 1.4rem;
    background: var(--bg);
    transform: translateX(100%);
    transition: transform 0.42s cubic-bezier(.23,1,.32,1);
    z-index: 200;
    overscroll-behavior: contain;
  }
  .nav-links.mobile-open { transform: translateX(0); }
  .nav-links li a {
    font-family: var(--serif); font-weight: 400;
    font-size: 1.6rem; letter-spacing: 0.02em;
    text-transform: none; color: var(--ink);
    padding: 0.4rem 1rem; margin: 0;
  }
  .nav-links li a.active, .nav-links li a:hover { color: var(--mauve); }
  .nav-cta-mob { display: block; margin-top: 0.8rem; }
  .nav-cta-mob a {
    border: 1px solid var(--mauve); color: var(--mauve);
    border-radius: 2rem; padding: 0.8rem 2rem;
    font-size: 1.05rem; letter-spacing: 0.04em;
  }
}

/* ── Mobile (≤ 620px) ── */
@media (max-width: 620px) {

  /* ── HOME (mobile): drop the cinematic zooming mascot entirely.
     Show a simple square avatar + name chip at the top of the hero. */
  #home-cinematic { display: flex; flex-direction: column; }
  #char-panel { display: none; }

  #home-content { width: 100%; }
  #hero { padding: 6.5rem 7% 3rem; min-height: auto; }
  .hero-content { max-width: 100%; }

  .hero-chip {
    display: flex; align-items: center; gap: 0.9rem;
    margin-bottom: 2rem;
  }
  .hero-chip-av {
    width: 66px; height: 66px; flex-shrink: 0;
    border-radius: 16px; background: var(--white);
    border: 1px solid var(--border); overflow: hidden;
    display: flex; align-items: flex-end; justify-content: center;
  }
  .hero-chip-av img { width: 118%; height: auto; display: block; }
  .hero-chip-text { display: flex; flex-direction: column; gap: 0.15rem; }
  .hero-chip-name { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); line-height: 1.1; }
  .hero-chip-role { font-size: 0.6rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cedar); }
  /* chip carries the identity on mobile — hide the large name/subtitle */
  .hero-name, .hero-role-main { display: none; }
  .hero-meta { margin-top: 0; }
  .hero-bio { font-size: 0.82rem; line-height: 1.85; margin-top: 1.4rem; }

  /* Editorial */
  .editorial-band { padding: 5rem 8% 6rem; }
  .editorial-statement { font-size: clamp(1.25rem, 5.2vw, 1.7rem); }
  /* Stacked layout is already full-width — no centre shift */
  .editorial-band.is-centered .editorial-inner { transform: none; }

  /* Featured — discipline carousel */
  .feat-intro { padding-bottom: 1.8rem; }
  .feat-intro-row { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .feat-intro-sub { font-size: 0.8rem; }
  .disc-marquee { padding: 0.5rem 0 3rem; }
  .disc-track { gap: 1rem; animation-duration: 42s; }
  .disc-card { width: 82vw; max-width: 320px; padding: 1.2rem; }
  .disc-name { font-size: 1.05rem; }
  .feat-full-card { width: 72vw; min-width: 220px; }
  .feat-track-outer { padding: 0.5rem 6% 3rem; }

  /* Work & Volunteer grids */
  .project-grid { grid-template-columns: 1fr; }
  .vol-grid { grid-template-columns: 1fr; }

  /* Skills */
  .skills-cols { grid-template-columns: 1fr; }
  .sk-col:nth-child(2), .sk-col:nth-child(3) { grid-column: 1; }

  /* About */
  .about-details { grid-template-columns: 1fr; }
  .home-about-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* Contact: keep long emails/URLs inside the viewport */
  .cl { gap: 0.85rem; font-size: 0.8rem; }
  .cl-label { min-width: 0; overflow-wrap: anywhere; }
  .cl-meta { display: none; }
  .contact-inner { padding-left: 6%; padding-right: 6%; }

  /* Project modal: single column, no cover */
  #modal-panel { display: block; }
  #modal-panel .modal-content-col { height: 100vh; }
  .modal-hdr { padding: 2.4rem 5% 1.8rem; }
  #m-case-study { padding-left: 5%; padding-right: 5%; }
  .modal-stk-row { padding-left: 5%; padding-right: 5%; }
  #m-photos { grid-template-columns: 1fr 1fr; padding-left: 5%; padding-right: 5%; }
  .modal-sec-lbl { padding-left: 5%; padding-right: 5%; }
  .modal-video-wrap { padding-left: 5%; padding-right: 5%; }
  /* Vol modal: stack cover above content */
  #vol-modal-panel {
    grid-template-columns: 1fr;
    grid-template-rows: 42vw 1fr;
    overflow-y: auto;
  }
  #vol-modal .modal-cover-col { height: 42vw; min-height: 180px; }
  #vol-modal .modal-content-col { height: auto; overflow-y: visible; }
  #vol-modal .modal-hdr { padding: 2.4rem 1.4rem 1.8rem; }
  #vol-modal .modal-sec-lbl { padding-left: 1.4rem; padding-right: 1.4rem; }
  #vm-photos { grid-template-columns: 1fr 1fr; padding-left: 1.4rem; padding-right: 1.4rem; }
  #vm-learnings-section { padding-left: 1.4rem; padding-right: 1.4rem; }
  .cs-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .modal-cover-meta { bottom: 1.2rem; left: 1.4rem; }
  .page-hdr { padding-top: 7rem; }
  .chapter-bg-num { font-size: 40vw; }
  .card-back-cta { opacity: 0.8; }
}

/* ── Very small phones (≤ 380px) ── */
@media (max-width: 380px) {
  #char-panel { height: 50vh; max-height: 300px; }
  #hc-main { height: 62vh; max-height: 380px; }
  .hero-name { font-size: clamp(2.6rem, 14vw, 3.8rem) !important; }
  .disc-card { width: 86vw; }
}

/* ═══════════════════════════════════════════════════════
   CUSTOM CURSOR  — dot + spotlight glow
═══════════════════════════════════════════════════════ */
@media (hover: hover) {
  * { cursor: none !important; }
}
.cursor-dot, .cursor-glow {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none; will-change: transform;
}
.cursor-dot {
  width: 7px; height: 7px;
  background: var(--clockwork);
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  transition: width 0.18s ease, height 0.18s ease,
              margin 0.18s ease, background 0.18s, opacity 0.2s;
}
.cursor-glow { display: none !important; }
/* hover over interactive element */
body.cur-link .cursor-dot {
  width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px;
  background: var(--mauve);
}
body.cur-link .cursor-glow {
  background: radial-gradient(circle, rgba(125,90,68,0.14) 0%, rgba(125,90,68,0) 70%);
}
/* click */
body.cur-click .cursor-dot {
  width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; opacity: 0.5;
}
body.cur-click .cursor-glow { opacity: 0.4; }
@media (hover: none) { .cursor-dot, .cursor-glow { display: none !important; } }

/* ═══════════════════════════════════════════════════════
   FLIP CARDS  (work.html project grid)
═══════════════════════════════════════════════════════ */
/* ── PROJECT CARDS (non-vol): maroon panel slides in from right ── */
.project-card:not(.vol-card) { position: relative; overflow: hidden; }
.project-card:not(.vol-card) .card-inner { position: relative; }
/* Image side shifts + shrinks slightly left as the panel slides in */
.project-card:not(.vol-card) .card-front {
  position: relative;
  transition: transform 0.55s cubic-bezier(.23, 1, .32, 1);
}
.project-card:not(.vol-card):hover .card-front { transform: translateX(-6%) scale(0.97); }
/* Maroon panel — covers ~56% of the card from the right */
.project-card:not(.vol-card) .card-back {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 56%;
  background: var(--mauve);          /* Mauve — #755151 */
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.6rem; overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.55s cubic-bezier(.23, 1, .32, 1);
  box-shadow: -18px 0 40px rgba(44,26,16,0.18);
  z-index: 2;
}
.project-card:not(.vol-card):hover .card-back { transform: translateX(0); }

/* ── VOL CARDS: keep the flip ── */
.vol-card { perspective: 1200px; }
.vol-card .card-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(.23, 1, .32, 1);
}
.vol-card:hover .card-inner { transform: rotateY(180deg); }
.vol-card .card-front, .vol-card .card-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.vol-card .card-back {
  position: absolute; inset: 0;
  transform: rotateY(180deg);
  background: var(--mauve);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.6rem; overflow: hidden;
}
.card-back-cat {
  font-size: 0.5rem; font-weight: 500; letter-spacing: 0.26em;
  text-transform: uppercase; color: rgba(255,249,243,0.55);
  margin-bottom: 0.5rem; display: block;
}
.card-back-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.1rem, 1.8vw, 1.55rem);
  line-height: 1.18; color: rgba(255,249,243,0.96); margin-bottom: 0.65rem;
}
.card-back-desc {
  font-size: 0.73rem; font-weight: 300; line-height: 1.7;
  color: rgba(255,249,243,0.62); margin-bottom: 0.8rem;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden; flex: 1;
}
.card-back-yr {
  font-size: 0.54rem; letter-spacing: 0.18em;
  color: rgba(255,249,243,0.35); margin-bottom: 0.75rem; display: block;
}
.card-back-cta {
  font-size: 0.57rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,249,243,0.9);
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-bottom: 1px solid rgba(255,249,243,0.45);
  padding-bottom: 0.12rem; align-self: flex-start;
  transition: gap 0.2s, color 0.2s;
}
/* Disable old zoom+veil on hover */
.project-card:hover .proj-img img { transform: none !important; }
/* Mobile / touch — disable slide panel, restore veil */
@media (hover: none) {
  .card-front { transform: none !important; }
  .card-back { display: none; }
  .card-front .proj-veil { display: flex !important; }
}

/* ═══════════════════════════════════════════════════════
   NAV ENHANCEMENTS
═══════════════════════════════════════════════════════ */
.nav-links a { position: relative; }
.nav-links a::after {
  content: ''; position: absolute; bottom: 0.42rem; left: 0.5rem; right: 0.5rem;
  margin: 0 auto; width: 0; height: 1px; background: var(--mauve);
  transition: width 0.3s cubic-bezier(.77,0,.175,1);
}
.nav-links a:hover::after, .nav-links a.active::after { width: calc(100% - 1rem); }
.nav-logo { transition: color 0.22s; }
.nav-logo:hover { color: var(--mauve); }

/* ═══════════════════════════════════════════════════════
   FEATURED CARDS  — enhanced hover (index.html)
═══════════════════════════════════════════════════════ */
.feat-meta { transition: transform 0.32s cubic-bezier(.25,.46,.45,.94); }
.feat-card:hover .feat-meta { transform: translateX(5px); }

/* ═══════════════════════════════════════════════════════
   MISC INTERACTIONS
═══════════════════════════════════════════════════════ */
.sticky {
  transition: transform 0.28s cubic-bezier(.25,.46,.45,.94), box-shadow 0.28s;
}
.sticky:hover {
  transform: rotate(0deg) scale(1.04) !important;
  box-shadow: 4px 10px 28px rgba(68,50,35,0.2);
}
.sk-list li { transition: color 0.18s, padding-left 0.2s; }
.sk-list li:hover { color: var(--ink); padding-left: 1.4rem; }
.exp-item { transition: border-color 0.25s; }
.exp-item:hover { border-color: var(--clockwork); }
.nav-cta { transition: all 0.25s ease, transform 0.18s ease; }
.nav-cta:hover { transform: translateY(-1px); }
.text-link::after {
  content: '↗'; font-size: 0.7em; opacity: 0;
  display: inline-block; transform: translateX(-4px) translateY(2px);
  transition: opacity 0.2s, transform 0.2s;
}
.text-link:hover::after { opacity: 1; transform: translateX(0) translateY(0); }

/* ═══════════════════════════════════════════════════════
   SPACING REDUCTIONS
═══════════════════════════════════════════════════════ */
.story-hdr { min-height: 28vh; }
.contact-sub { margin-bottom: 2.2rem; }
.contact-foot { margin-top: 2.2rem; }
.project-grid { gap: 1.2rem; }

/* ═══════════════════════════════════════════════════════
   VOLUNTEER FLIP CARDS  — photo on back face
═══════════════════════════════════════════════════════ */
.vol-grid { gap: 1.2rem; }
.vol-card .card-back { padding: 0; }
.vol-back-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.vol-back-overlay {
  position: relative; z-index: 1;
  margin-top: auto;
  padding: 2.5rem 1.4rem 1.4rem;
  background: linear-gradient(to top, rgba(44,26,16,0.9) 0%, transparent 100%);
}
.vol-back-overlay .card-back-cat  { color: rgba(255,249,243,0.36); }
.vol-back-overlay .card-back-title { font-size: clamp(1rem, 1.7vw, 1.4rem); }
.vol-back-overlay .card-back-cta  { margin-top: 0.6rem; }

/* ═══════════════════════════════════════════════════════
   VOLUNTEER MODAL  (mirrors project modal — full-screen)
═══════════════════════════════════════════════════════ */
#vol-modal {
  position: fixed; inset: 0; z-index: 200;
  visibility: hidden; pointer-events: none;
}
#vol-modal.open { visibility: visible; pointer-events: all; }
#vol-modal-panel {
  position: absolute; inset: 0;
  background: var(--bg);
  transform: translateY(100%);
  transition: transform 0.68s cubic-bezier(.23,1,.32,1) 0.05s;
  display: grid;
  grid-template-columns: 42% 58%;
  will-change: transform;
}
#vol-modal.open #vol-modal-panel { transform: translateY(0); }
.vm-meta-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem; margin: 1.4rem 0;
  border-top: 1px solid var(--border); padding-top: 1.2rem;
}
.vm-meta-label {
  font-size: 0.52rem; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--cedar); display: block; margin-bottom: 0.3rem;
}
.vm-meta-val {
  font-size: 0.8rem; font-weight: 300; color: var(--ink); line-height: 1.5;
}
#vm-learnings-section {
  padding: 0 3rem 0.5rem;
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.6s ease 0.48s, transform 0.6s cubic-bezier(.23,1,.32,1) 0.48s;
}
#vol-modal.open #vm-learnings-section { opacity: 1; transform: translateY(0); }
#vm-photos-section {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.6s ease 0.62s, transform 0.6s cubic-bezier(.23,1,.32,1) 0.62s;
}
#vol-modal.open #vm-photos-section { opacity: 1; transform: translateY(0); }
@media (max-width: 620px) {
  #vm-learnings-section { padding-left: 1.4rem; padding-right: 1.4rem; }
  #vm-photos { grid-template-columns: 1fr 1fr; padding-left: 1.4rem; padding-right: 1.4rem; }
  .vm-meta-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   SUBTLE ROUNDED CORNERS  — a little curve on the boxes
═══════════════════════════════════════════════════════ */
.pcard,
.project-card,
.ffc-img,
.proj-img,
.about-img,
.sticky,
.cl,
.pcard-sketch-full,
.pc-stack,
.pcard-tag,
.nav-cta,
.proj-page-back,
.proj-page-bar,
#cs-close,
.cv-cta,
.vol-card .card-front,
.vol-card .card-back,
.pc-1 img,
.pc-feat { border-radius: 7px; }

/* ═══════════════════════════════════════════════════════
   AI MODE  — glass / holographic skin  (data-mode="ai")
   + the Human/AI toggle button (all pages)
═══════════════════════════════════════════════════════ */

/* ── Toggle button ── */
.mode-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: none; border: none; cursor: pointer; padding: 0.3rem 0.2rem;
  flex-shrink: 0; font: 500 0.56rem/1 var(--sans);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--mid);
}
.mode-toggle .mt-opt { transition: color 0.25s; }
.mode-toggle .mt-human { color: var(--ink); }
.mode-toggle .mt-ai { color: var(--mid); }
.mode-toggle.is-ai .mt-human { color: var(--mid); }
.mode-toggle.is-ai .mt-ai { color: #7d5a44; }
.mt-track {
  width: 34px; height: 18px; border-radius: 10px; position: relative;
  background: var(--border); transition: background 0.3s;
}
.mode-toggle.is-ai .mt-track {
  background: linear-gradient(90deg, #7d5a44, #d7c9b8);
}
.mt-thumb {
  position: absolute; top: 2px; left: 2px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform 0.3s cubic-bezier(.23,1,.32,1);
}
.mode-toggle.is-ai .mt-thumb { transform: translateX(16px); }
@media (max-width: 920px) {
  .mode-toggle { margin-left: auto; margin-right: 0.4rem; }
  .mode-toggle .mt-opt { display: none; }
}

/* Photos/blocks that should not appear in AI mode */
:root[data-mode="ai"] .ai-hide { display: none !important; }

/* Two-up image row that collapses to a single full-width image in AI mode
   (e.g. the stress-ball brainstorm boards → one combined mascot board) */
:root[data-mode="ai"] .pc--ai-solo { grid-template-columns: 1fr !important; }
:root[data-mode="ai"] .pc--ai-solo img:nth-child(2) { display: none; }

/* AI foldable hero: crop the full-figure carry render to frame the case */
:root[data-mode="ai"] .pcard-intro-img--casecrop img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 50%;
  border-radius: 6px;
}

/* ── Glass skin ── */
:root[data-mode="ai"] {
  --accent: #7d5a44;
  --mauve:  #b2967d;
  --cedar:  #b2967d;
  /* Handwritten display type — body copy stays on --sans for readability */
  --serif:  'Caveat', cursive;
}

/* Caveat is lighter/tighter than Cormorant — give it ink and breathing room */
:root[data-mode="ai"] h1,
:root[data-mode="ai"] h2,
:root[data-mode="ai"] h3,
:root[data-mode="ai"] h4,
:root[data-mode="ai"] .pcard-title,
:root[data-mode="ai"] .pcard-sec-h,
:root[data-mode="ai"] .hero-name,
:root[data-mode="ai"] .cv-name,
:root[data-mode="ai"] .cv-embed-title,
:root[data-mode="ai"] .proj-title,
:root[data-mode="ai"] .home-cta-head,
:root[data-mode="ai"] .home-about-stat,
:root[data-mode="ai"] blockquote {
  font-weight: 500;
  letter-spacing: 0.01em;
}
:root[data-mode="ai"] body {
  /* soft crumpled-paper texture (inline SVG, no external asset) + warm glow */
  background-color: #f5f1ea;
  background-image:
    radial-gradient(1100px 760px at 12% -12%, rgba(125,90,68,0.12), transparent 60%),
    radial-gradient(900px 900px at 50% 120%, rgba(178,150,125,0.10), transparent 60%),
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><filter id='c'><feTurbulence type='fractalNoise' baseFrequency='0.009 0.011' numOctaves='5' seed='11' stitchTiles='stitch'/><feDiffuseLighting surfaceScale='1.5' diffuseConstant='1.05' lighting-color='%23f0e9dc'><feDistantLight azimuth='235' elevation='55'/></feDiffuseLighting></filter><rect width='600' height='600' filter='url(%23c)'/></svg>");
  background-size: auto, auto, 520px 520px;
  background-repeat: no-repeat, no-repeat, repeat;
  background-attachment: fixed, fixed, fixed;
  background-blend-mode: multiply, multiply, normal;
}

/* let the paper texture flow through big solid-bg panels on home */
:root[data-mode="ai"] #char-panel,
:root[data-mode="ai"] .editorial-band { background: transparent; }

/* frosted nav */
:root[data-mode="ai"] #nav::before {
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  opacity: 1;
  box-shadow: 0 1px 0 rgba(125,90,68,0.18);
}

/* glass card surfaces — kept fairly opaque so text stays readable */
:root[data-mode="ai"] .disc-card,
:root[data-mode="ai"] .project-card .card-front,
:root[data-mode="ai"] .project-card .card-back,
:root[data-mode="ai"] .cl,
:root[data-mode="ai"] .cv-frame {
  background: linear-gradient(160deg, rgba(255,255,255,0.82), rgba(245,241,234,0.72));
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid rgba(125,90,68,0.28);
  box-shadow: 0 10px 38px rgba(125,90,68,0.16),
              inset 0 1px 0 rgba(255,255,255,0.7);
}
/* glass-card text → mauve in AI mode */
:root[data-mode="ai"] .project-card .proj-meta,
:root[data-mode="ai"] .project-card .card-back,
:root[data-mode="ai"] .card-back-cat,
:root[data-mode="ai"] .card-back-title,
:root[data-mode="ai"] .card-back-desc,
:root[data-mode="ai"] .card-back-yr,
:root[data-mode="ai"] .card-back-cta,
:root[data-mode="ai"] .proj-cat,
:root[data-mode="ai"] .proj-title,
:root[data-mode="ai"] .disc-name,
:root[data-mode="ai"] .disc-num,
:root[data-mode="ai"] .disc-count,
:root[data-mode="ai"] .disc-sub-cat,
:root[data-mode="ai"] .disc-sub-title { color: #7d5a44; }

/* the Recent Projects band → softly tinted, still readable */
:root[data-mode="ai"] #featured {
  background: rgba(245,241,234,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(125,90,68,0.2);
  border-bottom: 1px solid rgba(125,90,68,0.2);
}
:root[data-mode="ai"] #home-about {
  background-color: #7d5a44;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='680' height='680'><filter id='c2'><feTurbulence type='fractalNoise' baseFrequency='0.006 0.009' numOctaves='6' seed='11' stitchTiles='stitch'/><feDiffuseLighting surfaceScale='3' diffuseConstant='1.05' lighting-color='%23a8a8a8'><feDistantLight azimuth='235' elevation='52'/></feDiffuseLighting></filter><rect width='680' height='680' filter='url(%23c2)'/></svg>");
  background-size: 620px 620px;
  background-repeat: repeat;
  background-blend-mode: overlay;
}
:root[data-mode="ai"] .disc-sub:hover { background: rgba(125,90,68,0.1); }

/* accents */
:root[data-mode="ai"] .cv-download:hover {
  background: rgba(125,90,68,0.1);
  box-shadow: none;
}
/* Get in Touch: outlined, no fill */
:root[data-mode="ai"] .home-cta-btn {
  background: transparent;
  border: 1px solid #7d5a44;
  color: #7d5a44;
  box-shadow: none;
}
:root[data-mode="ai"] .home-cta-btn:hover {
  background: rgba(125,90,68,0.10);
  color: #4a342a;
  box-shadow: none;
}
/* About band accent text → white (readable on the light-brown band) */
:root[data-mode="ai"] #home-about .text-link,
:root[data-mode="ai"] #home-about .eyebrow { color: rgba(255,252,248,0.92); }
:root[data-mode="ai"] #home-about .text-link::after { background: rgba(255,252,248,0.55); }
:root[data-mode="ai"] .hero-name { color: #4a342a; }
:root[data-mode="ai"] .hero-role-main .hero-role-dim,
:root[data-mode="ai"] .hero-role { color: #7d5a44; }
:root[data-mode="ai"] .mauve-rule {
  background: linear-gradient(90deg, transparent, #7d5a44 30%, #d7c9b8 80%, transparent);
}

/* an unobtrusive "AI MODE" chip in the hero */
:root[data-mode="ai"] .hero-content::before {
  content: "✦ AI MODE";
  display: inline-block; margin-bottom: 1rem;
  font: 500 0.56rem/1 var(--sans); letter-spacing: 0.28em;
  color: #7d5a44;
  padding: 0.4rem 0.8rem; border-radius: 2rem;
  border: 1px solid rgba(125,90,68,0.4);
  background: rgba(125,90,68,0.08);
}
@media (prefers-reduced-motion: no-preference) {
  :root[data-mode="ai"] .disc-track { animation-duration: 48s; }
}

/* ═══════════════════════════════════════════════════════
   LINE-WRAP PASS  — headings wrap evenly and use the full
   row before dropping a line; body text avoids orphan words
═══════════════════════════════════════════════════════ */
.sec-heading, .contact-head, .home-cta-head, .cv-embed-title,
.vp-title, .pcard-title, .pcard-sec-h, .pcard-concept h4,
.disc-name, .proj-title, .card-back-title, .hero-role-main,
.exp-role, .d-val, .editorial-statement {
  text-wrap: balance;
}
.hero-bio, .story-hdr-lede, .feat-intro-sub, .home-about-body,
.contact-sub, .cv-embed-sub, .vp-desc, .vp-meta-val,
.about-body p, .cv-lede, .exp-detail,
.pcard-desc, .pcard-body, .pcard-brief-body, .card-back-desc,
.disc-sub-title, .cs-body {
  text-wrap: pretty;
}

/* Anchor offset so the fixed nav never hides a section heading */
#hero, #featured, #home-about, #home-cta, #work-grid, #about-section,
#skills, #experience-section, #vol, #contact-section, .story-hdr {
  scroll-margin-top: 5rem;
}
