/* ===================================================================
   CRISPAS OWINY ALEKAMOI — PERSONAL SITE V2
   Shared global stylesheet. One file, organized in layers:
   1. Reset            5. Nav
   2. Design tokens     6. Footer
   3. Typography        7. Buttons & links
   4. Layout primitives 8. Section header pattern / metadata / images
                        9. Motion & reveal system
                        10. Reduced motion
                        11. Focus states
                        12. Responsive
   =================================================================== */

/* ---------- 1. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--champagne); color: var(--obsidian); }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }

/* ---------- 2. DESIGN TOKENS (locked) ---------- */
:root {
  /* Color */
  --obsidian: #0B0B0A;
  --charcoal: #151514;
  --ivory: #F1EDE4;
  --ivory-soft: #CFC8BC;
  --graphite: #87837B;
  --champagne: #A89468;
  --champagne-dim: rgba(168,148,104,.14);
  --line: rgba(241,237,228,.07);
  --line-charcoal: rgba(241,237,228,.10);

  /* Type */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --wide: 1200px;
  --r: 2px;
  --gutter: clamp(24px, 5vw, 64px);

  /* Motion */
  --ease: cubic-bezier(.4,0,.2,1);
  --dur-ui: .28s;
  --dur-img: .7s;
}

/* ---------- 3. TYPOGRAPHY ---------- */
body {
  background: var(--obsidian);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  position: relative;
}

/* Film grain — subtle, fixed, non-interactive. Reinforces "cinematic"
   over "flat dark website." Carried over from the original site. */
body::after {
  content: '';
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 9998; opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) {
  body::after { display: none; }
}

/* Page-mood utility: default body is Obsidian; opt a page/section into Charcoal */
body.mood-charcoal { background: var(--charcoal); }
.panel-charcoal { background: var(--charcoal); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ivory); line-height: 1.1; }

/* Identity display — the name, used as the real <h1> on Home */
.display-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 7vw, 105px);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--ivory);
}

/* Positioning line / tagline */
.positioning {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(17px, 1.8vw, 22px);
  color: var(--ivory-soft);
}

/* Section headline */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.1;
}

/* Pull quotes / statements */
.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.35;
  color: var(--ivory);
}

p { font-weight: 300; color: var(--ivory-soft); }
p.lede { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.75; color: var(--ivory-soft); }

/* Metadata / captions / labels — Graphite tier */
.meta, .eyebrow, caption, .caption {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--graphite);
}
@media (max-width: 680px) {
  .meta, .eyebrow, caption, .caption { font-size: 11.5px; }
}

.eyebrow { color: var(--champagne); margin-bottom: 10px; display: block; }

/* ---------- 4. LAYOUT PRIMITIVES ---------- */
.container { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 140px) 0; }
main { display: block; padding-top: 76px; } /* offsets the fixed #nav so content never renders underneath it */

/* Fine-line dividers */
.rule { height: 1px; background: var(--line); border: none; }
.panel-charcoal .rule, .mood-charcoal .rule { background: var(--line-charcoal); }
.rule-accent { height: 1px; width: 64px; background: var(--champagne); border: none; }

/* Skip link (accessibility) */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--champagne); color: var(--obsidian);
  padding: 10px 18px; font-family: var(--sans); font-size: 13px; font-weight: 500;
  z-index: 10000; transition: top var(--dur-ui) var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 5. NAV ---------- */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
  height: 76px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  background: rgba(11,11,10,.7);
  backdrop-filter: blur(16px);
  transition: background var(--dur-ui) var(--ease), border-color var(--dur-ui) var(--ease);
}
#nav.scrolled { background: rgba(11,11,10,.92); border-bottom-color: var(--line); }

.nav-word {
  font-family: var(--serif); font-size: 18px; letter-spacing: .04em;
  color: var(--ivory); text-decoration: none; white-space: nowrap;
}

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-family: var(--sans); font-size: 10px; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ivory-soft); text-decoration: none;
  transition: color var(--dur-ui) var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ivory); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-studio {
  font-family: var(--sans); font-size: 10px; font-weight: 500;
  letter-spacing: .14em; color: var(--champagne); text-decoration: none;
  border: 1px solid rgba(168,148,104,.28); padding: 9px 18px; border-radius: var(--r);
  transition: border-color var(--dur-ui) var(--ease), background var(--dur-ui) var(--ease);
  white-space: nowrap;
}
.nav-studio:hover { border-color: var(--champagne); background: var(--champagne-dim); }

.nav-contact {
  font-family: var(--sans); font-size: 10px; font-weight: 500;
  letter-spacing: .14em; color: var(--obsidian); background: var(--champagne);
  padding: 10px 20px; border-radius: var(--r); text-decoration: none;
  transition: filter var(--dur-ui) var(--ease);
  white-space: nowrap;
}
.nav-contact:hover { filter: brightness(1.08); }

.burger {
  display: none; width: 32px; height: 32px; position: relative; z-index: 1100;
}
.burger span {
  position: absolute; left: 4px; right: 4px; height: 1px; background: var(--ivory);
  transition: transform var(--dur-ui) var(--ease), opacity var(--dur-ui) var(--ease);
}
.burger span:nth-child(1) { top: 12px; }
.burger span:nth-child(2) { top: 20px; }
.burger.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

#mobile-menu {
  position: fixed; top: 76px; right: 0; bottom: 0; left: 0; z-index: 1050;
  background: var(--obsidian);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 28px; padding: 0 var(--gutter);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--dur-ui) var(--ease), visibility var(--dur-ui) var(--ease), transform var(--dur-ui) var(--ease);
}
#mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
#mobile-menu a {
  font-family: var(--serif); font-size: clamp(28px, 8vw, 40px); color: var(--ivory);
  text-decoration: none;
}
#mobile-menu a[aria-current="page"] { color: var(--champagne); }
#mobile-menu .mob-actions { display: flex; gap: 20px; margin-top: 12px; }
#mobile-menu .mob-actions a { font-size: 14px; font-family: var(--sans); letter-spacing: .1em; text-transform: uppercase; }

.mobile-menu-close {
  position: absolute; top: 24px; right: var(--gutter);
  display: flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ivory-soft);
}
.mobile-menu-close:hover { color: var(--champagne); }

/* ---------- 6. FOOTER ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: clamp(56px, 8vw, 96px) 0 40px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
  margin-bottom: 56px;
}
.foot-sig-img { height: 40px; width: auto; opacity: .9; margin-bottom: 16px; }
.foot-col h4 {
  font-family: var(--sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--graphite); font-weight: 400; margin-bottom: 16px;
}
.foot-col a, .foot-col p {
  display: block; font-family: var(--sans); font-size: 14px; color: var(--ivory-soft);
  text-decoration: none; margin-bottom: 10px; font-weight: 300;
}
.foot-col a:hover { color: var(--champagne); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.foot-bottom p { font-size: 12px; color: var(--graphite); margin: 0; }
.foot-social { display: flex; gap: 20px; }
.foot-social a { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--graphite); text-decoration: none; }
.foot-social a:hover { color: var(--champagne); }

/* ---------- 7. BUTTONS & LINKS ---------- */
.btn-primary {
  display: inline-block; font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  background: var(--champagne); color: var(--obsidian);
  padding: 15px 32px; border-radius: var(--r); text-decoration: none;
  transition: filter var(--dur-ui) var(--ease);
}
.btn-primary:hover { filter: brightness(1.1); }

.btn-secondary {
  display: inline-block; font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--champagne); border: 1px solid rgba(168,148,104,.28);
  padding: 14px 32px; border-radius: var(--r); text-decoration: none;
  transition: border-color var(--dur-ui) var(--ease), background var(--dur-ui) var(--ease);
}
.btn-secondary:hover { border-color: var(--champagne); background: var(--champagne-dim); }

/* Arrow-gap inline link */
.lnk {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 13px; letter-spacing: .04em;
  color: var(--ivory-soft); text-decoration: none;
}
.lnk::after {
  content: '→'; display: inline-block; transition: transform var(--dur-ui) var(--ease);
}
.lnk:hover { color: var(--champagne); }
.lnk:hover::after { transform: translateX(4px); }

/* ---------- 8. SECTION HEADER / IMAGES ---------- */
.sec-head { margin-bottom: clamp(32px, 5vw, 56px); }

/* Cinematic still treatment (Filmography / Archive) */
.img-still {
  filter: brightness(.82) contrast(1.05);
  object-fit: cover; width: 100%; height: 100%;
}
/* Monochrome/tactile treatment (Graphite) */
.img-mono {
  filter: grayscale(1) contrast(1.08) brightness(.95);
  object-fit: cover; width: 100%; height: 100%;
}
.img-still { cursor: zoom-in; }
figcaption { margin-top: 10px; }

/* Lightbox (opens on tap/click of any gallery still) */
.lightbox-overlay {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2000;
  background: rgba(11,11,10,.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; padding: 40px;
  transition: opacity var(--dur-ui) var(--ease), visibility var(--dur-ui) var(--ease);
}
.lightbox-overlay.open { opacity: 1; visibility: visible; }
.lightbox-overlay img { max-width: 100%; max-height: 100%; object-fit: contain; filter: none; border-radius: var(--r); }
.lightbox-close {
  position: absolute; top: 20px; right: 24px; width: 44px; height: 44px;
  color: var(--ivory); font-size: 24px; line-height: 1; background: transparent;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { color: var(--champagne); }

.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  color: var(--ivory-soft); background: transparent;
}
.lightbox-nav:hover { color: var(--champagne); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-family: var(--sans); font-size: 12px; letter-spacing: .08em; color: var(--graphite);
}
@media (max-width: 680px) {
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
}

/* Reusable "structurally ready, content pending" state —
   for project dossiers / archive categories awaiting real material.
   Never fill this with invented content; it exists so a section can
   ship honestly incomplete rather than fabricated. */
.status-pending {
  display: inline-block; font-family: var(--sans); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--graphite);
  border: 1px solid var(--line); padding: 6px 14px; border-radius: var(--r);
}

/* ---------- 9. MOTION & REVEAL ---------- */
/* Progressive enhancement: content is visible by default. Only once
   JS successfully runs (html.js, set synchronously in <head>) do
   .rv elements start hidden and wait for the scroll observer. This
   way a failed/blocked script, an old browser, or a crawler that
   doesn't execute JS still sees full content — not a blank page. */
html.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js .rv.in { opacity: 1; transform: translateY(0); }
.rv.d1 { transition-delay: .08s; }
.rv.d2 { transition-delay: .16s; }
.rv.d3 { transition-delay: .24s; }
.rv.d4 { transition-delay: .32s; }

/* Photo hover — dissolve, not a UI bounce */
.hover-scale { overflow: hidden; }
.hover-scale img { transition: transform .7s var(--ease); }
.hover-scale:hover img { transform: scale(1.03); }

/* Incoming-page fade (multi-page "transition") */
body { animation: page-fade .5s var(--ease) both; }
@keyframes page-fade { from { opacity: 0; } to { opacity: 1; } }

/* Decorative cursor (desktop only, see main.js gating) */
#cur, #cur-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; border-radius: 50%; }
#cur { width: 6px; height: 6px; background: var(--champagne); }
#cur-ring { width: 32px; height: 32px; border: 1px solid rgba(168,148,104,.4); }

/* ---------- 10. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.js .rv { opacity: 1; transform: none; }
  #cur, #cur-ring { display: none; }
}
@media (pointer: coarse) {
  #cur, #cur-ring { display: none; }
}

/* ---------- Back to top ---------- */
#btt {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--charcoal); color: var(--ivory-soft);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-charcoal);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--dur-ui) var(--ease), transform var(--dur-ui) var(--ease), visibility var(--dur-ui) var(--ease), color var(--dur-ui) var(--ease);
}
#btt.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#btt:hover { color: var(--champagne); }
@media (max-width: 680px) { #btt { right: 16px; bottom: 16px; width: 40px; height: 40px; } }

/* ---------- 11. FOCUS STATES ---------- */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--champagne); outline-offset: 3px;
}

/* ---------- 12. RESPONSIVE ---------- */
@media (max-width: 960px) {
  .nav-links, .nav-actions .nav-studio { display: none; }
  .nav-actions .nav-contact { display: none; }
  .burger { display: block; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .section { padding: clamp(56px, 12vw, 90px) 0; }
}

/* ===================================================================
   HOME PAGE (Phase 2) — namespaced, page-specific.
   Global system above is untouched.
   =================================================================== */

/* ---------- Hero ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--gutter);
  align-items: stretch;
  min-height: calc(100vh - 76px);
  padding: 56px 0;
}
.hero-text { display: flex; flex-direction: column; justify-content: flex-end; }
.hero-text .eyebrow { margin-bottom: 18px; }
.hero-text .positioning { margin-top: 20px; }
.hero-links { display: flex; align-items: center; gap: 28px; margin-top: 40px; flex-wrap: wrap; }

.hero-image-field {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  min-height: 360px;
}
.hero-still-stack { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.hero-still-stack img {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; filter: brightness(.82) contrast(1.05);
  opacity: 0;
  animation: heroFade 25s ease-in-out infinite;
}
.hero-still-stack img:first-child { opacity: 1; } /* fallback if animations are unsupported */
.hero-still-stack img:nth-child(1) { animation-delay: 0s; }
.hero-still-stack img:nth-child(2) { animation-delay: 5s; }
.hero-still-stack img:nth-child(3) { animation-delay: 10s; }
.hero-still-stack img:nth-child(4) { animation-delay: 15s; }
.hero-still-stack img:nth-child(5) { animation-delay: 20s; }
@keyframes heroFade {
  0% { opacity: 0; }
  4% { opacity: 1; }
  20% { opacity: 1; }
  24% { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-still-stack img { animation: none; opacity: 0; }
  .hero-still-stack img:first-child { opacity: 1; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; padding: 32px 0 48px; }
  .hero-image-field { order: -1; min-height: 46vh; }
  .hero-text { padding-top: 32px; }
}

/* ---------- Selected Work ---------- */
.work-list { display: flex; flex-direction: column; gap: clamp(56px, 8vw, 96px); margin-top: clamp(40px, 6vw, 64px); }
.work-item { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.work-item.work-item--pending { grid-template-columns: 1fr; max-width: 60ch; }
.work-item:nth-of-type(2n) .work-media { order: 2; }
.work-media { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--r); }
.work-title { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.2vw, 44px); color: var(--ivory); margin: 10px 0 14px; }
.work-info .meta { display: block; margin-bottom: 4px; }
.work-info p.lede { margin: 14px 0 20px; max-width: 46ch; }

@media (max-width: 780px) {
  .work-item, .work-item:nth-of-type(2n) { grid-template-columns: 1fr; }
  .work-item:nth-of-type(2n) .work-media { order: 0; }
}

/* ---------- The Practice ---------- */
.practice-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px;
  margin: clamp(40px, 6vw, 56px) 0 clamp(32px, 5vw, 48px);
}
.practice-item .meta { display: block; margin-bottom: 10px; }
.practice-item h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin-bottom: 8px; }
.practice-item p { font-size: 14px; line-height: 1.6; }
@media (max-width: 780px) {
  .practice-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .practice-grid { grid-template-columns: 1fr; }
}

/* ---------- Archive preview ---------- */
.archive-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
  margin: clamp(40px, 6vw, 56px) 0 clamp(32px, 5vw, 48px);
}
.archive-grid figure { margin: 0; overflow: hidden; border-radius: var(--r); }
.archive-grid figcaption { padding: 2px 0 0; }
.arc-a { grid-column: span 3; grid-row: span 2; aspect-ratio: 4/5; }
.arc-b { grid-column: span 3; aspect-ratio: 16/10; }
.arc-c { grid-column: span 2; aspect-ratio: 1/1; }
.arc-d { grid-column: span 2; aspect-ratio: 3/4; }
.arc-e { grid-column: span 2; aspect-ratio: 1/1; }
@media (max-width: 780px) {
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .arc-a, .arc-b, .arc-c, .arc-d, .arc-e { grid-column: span 1; aspect-ratio: 4/5; }
}

/* ---------- Current Chapter ---------- */
.chapter-links { display: flex; gap: 32px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- Studio bridge ---------- */
.studio-bridge .eyebrow { color: var(--champagne); }
.studio-bridge h2 { max-width: 22ch; }
.studio-bridge .btn-secondary { margin-top: 32px; }

/* ---------- Closing frame ---------- */
.closing-frame { text-align: left; }
.closing-frame .pull-quote { max-width: 18ch; margin-bottom: 32px; }
.closing-links { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.closing-links a { font-family: var(--sans); font-size: 15px; color: var(--ivory-soft); text-decoration: none; }
.closing-links a:hover { color: var(--champagne); }
.closing-social { display: flex; gap: 24px; }
.closing-social .icon-link { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--graphite); text-decoration: none; }
.closing-social .icon-link:hover { color: var(--champagne); }

/* Icon-based contact links (email/phone) — replaces raw address/number text */
.icon-link { display: inline-flex; align-items: center; gap: 10px; }
.icon-link svg { flex-shrink: 0; }

/* ===================================================================
   ABOUT PAGE (Phase 3) — namespaced, page-specific.
   =================================================================== */
.about-bio-panel {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 64px);
  align-items: center;
  background: var(--charcoal);
  border-radius: var(--r);
  padding: clamp(28px, 4vw, 48px);
  margin-top: clamp(32px, 5vw, 48px);
}
.about-bio-portrait { overflow: hidden; border-radius: var(--r); aspect-ratio: 3/4; }
.about-bio-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-bio-text p.lede { color: var(--ivory-soft); margin-bottom: 24px; }
@media (max-width: 780px) {
  .about-bio-panel { grid-template-columns: 1fr; }
  .about-bio-portrait { max-width: 320px; }
}

.about-section { margin-top: clamp(56px, 8vw, 88px); padding-top: clamp(40px, 6vw, 56px); border-top: 1px solid var(--line); }
.about-section h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 16px; }

/* Full biography sub-page */
.bio-full p { max-width: 62ch; margin-bottom: 22px; }
.bio-full p:first-of-type { color: var(--ivory-soft); }

/* ===================================================================
   CRAFT PAGE — namespaced.
   =================================================================== */
.craft-list { margin-top: clamp(40px, 6vw, 56px); }
.craft-item { padding: clamp(28px, 4vw, 40px) 0; border-top: 1px solid var(--line-charcoal); }
.craft-item:last-child { border-bottom: 1px solid var(--line-charcoal); }
.craft-item h2 { font-size: clamp(24px, 2.8vw, 34px); margin-bottom: 8px; }
.craft-item p.lede { max-width: 60ch; margin-top: 10px; }

/* ===================================================================
   GRAPHITE PAGE — namespaced. Champagne is disabled entirely on this
   page per the locked design system (monochrome practice, kept
   deliberately distinct from the colour-graded filmmaking work).
   =================================================================== */
.graphite-page .lnk:hover { color: var(--ivory); }
.graphite-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 72px); margin-top: clamp(32px, 5vw, 48px); align-items: start; }
.graphite-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.graphite-gallery figure { margin: 0; aspect-ratio: 3/4; overflow: hidden; border-radius: var(--r); }
.graphite-works { margin-top: clamp(32px, 5vw, 44px); display: flex; flex-direction: column; gap: 20px; }
.gw-title { font-family: var(--serif); font-size: 19px; color: var(--ivory); }
.gw-sub { font-size: 13px; color: var(--ivory-soft); margin-top: 4px; max-width: 46ch; }
@media (max-width: 780px) {
  .graphite-layout { grid-template-columns: 1fr; }
}

/* ===================================================================
   EDUCATION PAGE — namespaced.
   =================================================================== */
.edu-timeline { margin-top: clamp(32px, 5vw, 48px); display: flex; flex-direction: column; gap: 20px; }
.edu-item { background: var(--charcoal); border-radius: var(--r); padding: clamp(24px, 4vw, 36px); display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; }
.edu-item .edu-year { font-family: var(--sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--champagne); margin-bottom: 6px; }
.edu-item .edu-inst { font-family: var(--serif); font-size: 18px; color: var(--ivory); }
.edu-item .edu-badge { display: inline-block; margin-top: 10px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--graphite); border: 1px solid var(--line-charcoal); padding: 4px 10px; border-radius: var(--r); }
.edu-item .edu-degree { font-family: var(--serif); font-size: 20px; color: var(--ivory); margin-bottom: 8px; }
.edu-item .edu-detail { font-size: 14px; color: var(--ivory-soft); line-height: 1.7; }
@media (max-width: 680px) { .edu-item { grid-template-columns: 1fr; } }

.edu-vision { margin-top: clamp(48px, 7vw, 72px); padding-top: clamp(40px, 6vw, 56px); border-top: 1px solid var(--line); }
.edu-vision-kicker { font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--champagne); margin-bottom: 14px; }

/* ===================================================================
   STUDIO BRIDGE PAGE — namespaced.
   =================================================================== */
.studio-services { display: flex; flex-wrap: wrap; gap: 10px; margin: clamp(24px, 4vw, 32px) 0 clamp(32px, 5vw, 40px); }
.svc-tag { font-family: var(--sans); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ivory-soft); border: 1px solid var(--line); padding: 8px 16px; border-radius: var(--r); }

/* ===================================================================
   FILMOGRAPHY PROJECT PAGES — namespaced.
   =================================================================== */
.project-hero-media { aspect-ratio: 16/9; overflow: hidden; border-radius: var(--r); margin: clamp(32px,5vw,48px) 0; }
.project-meta-row { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 16px; }

/* ===================================================================
   404 PAGE — namespaced.
   =================================================================== */
.err-404 { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: calc(70vh); }
.err-404 .err-code { font-family: var(--serif); font-size: clamp(80px, 14vw, 160px); color: var(--ivory); line-height: 1; }

/* ===================================================================
   MORE WORK cross-links (project pages)
   =================================================================== */
.more-work { margin-top: clamp(56px, 8vw, 88px); padding-top: clamp(32px, 5vw, 48px); border-top: 1px solid var(--line); }
.more-work-kicker { font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--graphite); margin-bottom: 20px; }
.more-work-links { display: flex; flex-direction: column; gap: 14px; }
.more-work-links a { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 26px); color: var(--ivory-soft); text-decoration: none; }
.more-work-links a:hover { color: var(--champagne); }
