/* =====================================================================
   Marie Eksteen — Working Catalogue
   A typesetter's portfolio. Cream paper, ink, parallax.
   ===================================================================== */

:root {
  /* Grayscale base — warm-cool neutral, slight off-white to avoid clinical */
  --paper:        #FFFFFF;
  --cream:        #F4F4F2;   /* off-white page (was cream — kept var name for compat) */
  --cream-deep:   #E6E6E3;   /* light gray-stone */
  --cream-blush:  #ECECE9;   /* faint stone */
  --cream-rose:   #DEDEDB;   /* mid-light stone */
  --ink:          #131316;   /* near-black, ink */
  --ink-soft:     #3A3A3F;   /* charcoal */
  --noir:         #0A0A0C;   /* deep editorial black */
  --mulberry:     #1F1F23;   /* deep ink alt */
  --sepia:        #6F6F75;   /* mid gray */
  --sepia-light:  #9A9AA0;   /* lighter mid gray */
  --rule:         #D5D5D2;   /* hairline rule */
  --rule-light:   #B8B8B5;

  /* The colour: bright editorial pink. ONLY accent in the system. */
  --pink:         #FF1A75;
  --pink-deep:    #DB0E5E;   /* hover / emphasis */
  --pink-glow:    #FF4D94;   /* lighter, used very sparingly for halos */

  /* Old variable names still used throughout — alias them all to pink so the
     page stays consistent. Anything that was "rose / red / blush / gold /
     terracotta / peach" now reads as bright pink. */
  --red:          var(--pink);
  --rose:         var(--pink);
  --blush:        var(--pink-glow);
  --peach:        var(--pink);
  --gold:         var(--pink);
  --terracotta:   var(--pink-deep);

  --serif:        'Fraunces', 'EB Garamond', Georgia, serif;
  --display:      'Cormorant Garamond', 'Fraunces', Georgia, serif;  /* italic swash partner */
  --book:         'EB Garamond', Georgia, 'Times New Roman', serif;
  --mono:         'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;

  --gutter:       clamp(1.5rem, 4vw, 4.5rem);
  --section-pad:  clamp(7rem, 14vh, 14rem);
  --max:          1440px;
}

/* ------ Reset --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

html {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  /* Anchor links land below the fixed topbar */
  scroll-padding-top: 60px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--book);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  font-feature-settings: "kern", "liga", "onum", "calt";
  position: relative;
}

/* Paper-grain texture: a faint SVG noise wash sits above everything but stays
   below content via pointer-events: none. Adds tactile warmth to flat colours. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  /* Sit behind page content so the noise textures the backgrounds without
     creating multiply-blend artefacts on text edges. */
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.10  0 0 0 0 0.10  0 0 0 0 0.10  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

::selection { background: var(--pink); color: var(--cream); }

/* Global keyboard focus ring — visible on every focusable element by default.
   Component-specific focus rules below override where the global ring would
   clash (gallery items, lightbox nav, carousel arrows). */
*:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip-to-content link — first focusable element. Hidden until tabbed onto. */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.6rem 1.2rem;
  background: var(--pink);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 4px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 1rem;
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

/* ------ Topbar -------------------------------------------------------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: transparent;
  pointer-events: none;
  transition: background 0.6s ease, color 0.6s ease, border-color 0.6s ease;
  border-bottom: 1px solid transparent;
}
.topbar > * { pointer-events: auto; }
.topbar.is-stuck {
  background: rgba(244, 244, 242, 0.93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--rule);
}
.topbar__cat { color: var(--pink-deep); }
.topbar__title { font-style: italic; font-family: var(--serif); text-transform: none; letter-spacing: 0.02em; font-size: 14px; color: var(--sepia); }
.topbar__nav { display: flex; gap: 1.5rem; }
.topbar__nav a {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}
.topbar__nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.topbar__nav a:hover { color: var(--pink-deep); }
.topbar__nav a:hover::after,
.topbar__nav a.is-active::after { transform: scaleX(1); }
.topbar__nav a.is-active { color: var(--pink-deep); }

@media (max-width: 1100px) {
  .topbar__nav { gap: 1.1rem; }
}
@media (max-width: 880px) {
  .topbar__title { display: none; }
  .topbar__nav { gap: 0.8rem; font-size: 10px; letter-spacing: 0.10em; }
}
@media (max-width: 600px) {
  .topbar__nav { display: none; }
}

/* ------ Parallax wrapper --------------------------------------------- */
.parallax-bg {
  position: absolute;
  /* Generous vertical bleed — gives the photo room to drift at higher
     parallax speeds without exposing edges. */
  inset: -30% 0 -30% 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  /* Parallax images fade in slowly as their section scrolls into view —
     subtle but noticeable, so the user feels the effect as they arrive.
     The IntersectionObserver in main.js toggles .is-in when ~10% of the
     section enters the viewport from below. */
  opacity: 0;
  transition: opacity 1.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.parallax-bg.is-in,
.parallax-bg--cover {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .parallax-bg { opacity: 1; transition: none; }
}
.parallax-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.18);
  /* Desaturate to grayscale so all parallax photos echo the B&W cover photo —
     editorial magazine cohesion. The cover variant overrides this below. */
  filter: grayscale(1) contrast(1.05);
}
.parallax-bg--soft img { filter: grayscale(1) contrast(1) brightness(1.02); }

/* Photos visible but a touch more washed back. */
.parallax-bg__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 90% at 50% 50%, rgba(244, 244, 242, 0.68) 0%, rgba(244, 244, 242, 0.40) 100%),
    linear-gradient(180deg, rgba(244, 244, 242, 0.28) 0%, rgba(244, 244, 242, 0.36) 50%, rgba(244, 244, 242, 0.28) 100%);
}
.parallax-bg__veil--cream {
  background:
    radial-gradient(ellipse 70% 90% at 50% 50%, rgba(244, 244, 242, 0.74) 0%, rgba(244, 244, 242, 0.45) 100%),
    linear-gradient(180deg, rgba(244, 244, 242, 0.32) 0%, rgba(244, 244, 242, 0.42) 50%, rgba(244, 244, 242, 0.32) 100%);
}
/* Backwards-compat aliases for old class names */
.parallax-bg__veil--ink,
.parallax-bg__veil--ink-soft {
  background:
    radial-gradient(ellipse 70% 90% at 50% 50%, rgba(230, 230, 227, 0.62) 0%, rgba(230, 230, 227, 0.34) 100%),
    linear-gradient(180deg, rgba(230, 230, 227, 0.24) 0%, rgba(230, 230, 227, 0.32) 50%, rgba(230, 230, 227, 0.24) 100%);
}
/* Dark veil — for sections with a noir background (eg Contact). Keeps the
   parallax photo visible as a textured shadow without bleeding white into text. */
.parallax-bg__veil--noir {
  background:
    radial-gradient(ellipse 70% 90% at 50% 50%, rgba(10, 10, 12, 0.80) 0%, rgba(10, 10, 12, 0.60) 100%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.70) 0%, rgba(10, 10, 12, 0.55) 50%, rgba(10, 10, 12, 0.70) 100%);
}
/* Hero cover — keeps its dark vignette since the photo is B&W */
.parallax-bg__veil--cover {
  background:
    radial-gradient(ellipse 70% 80% at 60% 50%, rgba(10, 10, 12, 0.05) 0%, rgba(10, 10, 12, 0.45) 100%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.55) 0%, rgba(10, 10, 12, 0.10) 25%, rgba(10, 10, 12, 0.10) 65%, rgba(10, 10, 12, 0.78) 100%);
}
.parallax-bg__veil--hero { /* legacy — same as cover for safety */
  background:
    radial-gradient(ellipse 70% 80% at 60% 50%, rgba(10, 10, 12, 0.05) 0%, rgba(10, 10, 12, 0.45) 100%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.55) 0%, rgba(10, 10, 12, 0.10) 25%, rgba(10, 10, 12, 0.10) 65%, rgba(10, 10, 12, 0.78) 100%);
}

/* ====================================================================
   01 · HERO
   ==================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem var(--gutter) 4rem;
  color: var(--cream);
  background: var(--noir);
}

/* Cover variant — dark cinematic hero with the B&W photo of Marie */
.hero--cover { color: var(--cream); background: var(--noir); }

/* The cover photo fills the hero edge-to-edge. Object-position is anchored
   to the TOP so Marie's face stays in frame on every viewport — if cropping
   is needed it happens below the head, never above. */
.parallax-bg--cover {
  inset: 0;
}
.parallax-bg--cover img {
  object-fit: cover;
  object-position: center top;
  transform: none;
  filter: contrast(1.05) brightness(0.95);
}

.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1100px;
  width: 100%;
}

.hero__rule {
  width: 1px;
  height: 80px;
  background: var(--rose);
  opacity: 0.6;
  margin: 0 auto 2.5rem;
}

.hero__kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin: 0 0 3rem;
  color: var(--rose);
}

.hero__name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(4rem, 14vw, 11rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--cream);
  font-optical-sizing: auto;
  text-shadow: 0 2px 32px rgba(10, 10, 12, 0.7);
}
.hero__line { display: block; }
.hero__line--italic {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.06em;
  letter-spacing: -0.025em;
  margin-top: -0.04em;
  color: var(--blush);
}

.hero__role {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(244, 244, 242, 0.85);
  margin: 1.6rem auto 0;
  max-width: 700px;
}
.hero__amp {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.7em;
  text-transform: none;
  letter-spacing: 0;
  color: var(--rose);
  font-weight: 500;
}

/* Typeset ornament — used as a decorative break in the hero, between sections */
.fleuron {
  display: block;
  text-align: center;
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  color: var(--rose);
  line-height: 1;
  user-select: none;
}
.fleuron--hero {
  font-size: 2.6rem;
  margin: 2.6rem auto 1.8rem;
  color: var(--blush);
  opacity: 0.9;
}
.fleuron--break {
  font-size: 2rem;
  margin: 0 auto 2.2rem;
  color: var(--rose);
  opacity: 0.7;
}
.fleuron--break-light {
  color: var(--gold);
  opacity: 0.7;
}

/* Marie's portrait — base styles (currently unused; kept for future placement) */
.portrait {
  position: relative;
  margin: 0 0 2.2rem;
  width: clamp(140px, 18vw, 200px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 8px 30px -12px rgba(10, 10, 12, 0.25);
}
.portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.18) 0%, transparent 45%);
  pointer-events: none;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.95) contrast(1);
}

/* Hero variant — kept for backwards compat, now unused since the cover photo replaces it */
.portrait--hero {
  margin: 0 auto 2.4rem;
  width: clamp(120px, 14vw, 160px);
  border: 1px solid var(--pink);
  box-shadow:
    0 0 0 1px rgba(255, 26, 117, 0.20),
    0 0 0 9px rgba(255, 26, 117, 0.08),
    0 16px 40px -14px rgba(10, 10, 12, 0.45);
}

@media (max-width: 880px) {
  .portrait { margin-left: auto; margin-right: auto; }
}

.hero__sub {
  font-family: var(--book);
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: rgba(244, 244, 242, 0.80);
  margin: 2rem auto 0;
  max-width: 540px;
  line-height: 1.5;
}
.hero__sub em {
  font-style: normal;
  color: var(--blush);
  font-weight: 500;
}

.hero__hint {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 244, 242, 0.65);
}
.hero__hint-line {
  width: 1px;
  height: 50px;
  background: var(--rose);
  animation: hintPulse 2.5s ease-in-out infinite;
}
@keyframes hintPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%      { opacity: 0.9; transform: scaleY(1.1); }
}

/* ====================================================================
   Generic section
   ==================================================================== */
.section {
  position: relative;
  padding: var(--section-pad) var(--gutter);
  overflow: hidden;
  /* No min-height — section grows to fit its content. This standardises
     vertical spacing: every section gets the same top + bottom padding
     so short content (Schooling, Practice) doesn't leave a big empty
     viewport-tall gap below it. */
}
/* All sections are light grayscale. No more warm pink/peach overlays — visual
   variation now comes from clean stone-tone shifts and parallax photos. */
.section--hello,
.section--practice,
.section--words {
  background: var(--cream);
  color: var(--ink);
}
.section--career {
  background: var(--cream-blush);
  color: var(--ink);
}
.section--works,
.section--gallery {
  background: var(--cream-deep);
  color: var(--ink);
}
.section--contact {
  background: var(--cream);
  color: var(--ink);
}
.section--schooling {
  background: var(--cream-deep);
  color: var(--ink);
}

/* ------ Grid ---------------------------------------------------------- */
/* Symmetric three-column layout: 200px folio sidebar | content | 200px phantom.
   The phantom column on the right balances the sidebar so the content column
   sits at the visual centre of the page rather than offset right. */
.grid {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 200px;
  gap: clamp(2rem, 5vw, 6rem);
}

.grid__margin {
  position: sticky;
  top: 6rem;
  height: fit-content;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule);
  text-align: center;
}

/* Side-margin rule on every section now uses the same warm rule color */
.section .grid__margin { border-top-color: var(--rule); }

.grid__main {
  min-width: 0;
  text-align: center;
}
.grid__main--center {
  text-align: center;
}

@media (max-width: 880px) {
  .grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .grid__margin { position: static; padding-top: 0; border-top: none; display: flex; gap: 1.5rem; align-items: baseline; }
}

.folio {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin: 0 0 0.8rem;
  font-weight: 500;
}
/* The "light" modifiers used to mean "for dark backgrounds". On light sections
   they resolve to the same accent. On the dark Contact section they get
   scoped overrides below. */
.folio--light { color: var(--pink-deep); }
.folio-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.45;
  color: var(--sepia);
  margin: 0;
}
.folio-note--light { color: var(--sepia); }
/* Contact section — pink accents on the light book-photo background.
   Keep the photo's natural cream/white visible; pink does the colour work. */
.section--contact .folio--light { color: var(--pink); }
.section--contact .folio-note--light { color: var(--pink-deep); }
.section--contact .eyebrow--light { color: var(--pink); }
.section--contact .display--light { color: var(--pink-deep); }
.section--contact .display--light em { color: var(--pink); font-style: italic; }

/* ------ Typography helpers ------------------------------------------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  /* pink-deep on cream = ~4.4:1, passes WCAG AA for normal text;
     bright --pink at this size is below 4.5:1 */
  color: var(--pink-deep);
  margin: 0 0 1.5rem;
  font-weight: 500;
}
.eyebrow--light { color: var(--pink-deep); }

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 auto 3rem;
  color: var(--pink);
  max-width: 18ch;
}
.display em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  color: var(--pink-deep);
  letter-spacing: -0.015em;
}
.display--light { color: var(--pink); }
.display--light em { color: var(--pink-deep); }
.display--big {
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 0.95;
  margin-left: auto;
  margin-right: auto;
}

.prose {
  font-size: clamp(1.22rem, 1.5vw, 1.4rem);
  line-height: 1.65;
  color: var(--noir);
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
}
.prose p { margin: 0 0 1.4em; }
.prose p:last-child { margin-bottom: 0; }

.two-up {
  column-count: 1;
}
@media (min-width: 1100px) {
  .two-up {
    column-count: 2;
    column-gap: 3rem;
    column-rule: 1px solid var(--rule);
    max-width: none;
  }
  .two-up p { break-inside: avoid; }
}

.signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.45rem;
  color: var(--mulberry);
  letter-spacing: -0.005em;
}
.signature__line { flex: 0 0 60px; height: 1px; background: var(--rule-light); }

/* ====================================================================
   03 · CAREER (Timeline)
   ==================================================================== */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  text-align: left;
}
.timeline__entry {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule);
  transition: background 0.3s, padding 0.3s;
  position: relative;
}
.timeline__entry::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 4px rgba(255, 26, 117, 0.20);
  transform: translateX(-30px);
  opacity: 0;
  transition: opacity 0.4s, transform 0.4s;
}
.timeline__entry:hover::before { opacity: 1; transform: translateX(-12px); }
.timeline__entry:hover { background: rgba(19, 19, 22, 0.04); }

.timeline__year {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink-deep);
  padding-top: 0.4rem;
  font-weight: 500;
}
.timeline__body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
  color: var(--pink);
}
.timeline__org {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--noir);
  margin: 0 0 0.9rem;
}
.timeline__note {
  font-size: 1.2rem;
  line-height: 1.62;
  color: var(--noir);
  max-width: 62ch;
  margin: 0;
  font-weight: 500;
}
/* Collapsible block for long timeline entries (Maskew Miller).
   Default closed so the role's intro paragraph + project list dominate;
   reader expands when they want the full bullet detail. */
.timeline__details {
  margin-top: 0.9rem;
}
.timeline__details-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pink-deep);
  padding: 0.4rem 0;
  user-select: none;
}
.timeline__details-summary::-webkit-details-marker { display: none; }
.timeline__details-summary::before {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--pink-deep);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding-bottom: 1px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.timeline__details[open] > .timeline__details-summary::before {
  content: '−';
  background: var(--pink-deep);
  color: var(--cream);
}
.timeline__details-summary:hover::before {
  background: var(--pink-deep);
  color: var(--cream);
}
.timeline__details-cue {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 13px;
  color: var(--ink-soft);
}
.timeline__details[open] .timeline__details-cue { display: none; }

/* Bullet list inside a timeline body for roles with detailed responsibilities. */
.timeline__bullets {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  font-family: var(--book);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 62ch;
}
.timeline__bullets li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.4rem;
  border-top: 1px dotted var(--rule);
}
.timeline__bullets li:first-child { border-top: none; padding-top: 0.6rem; }
.timeline__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 6px;
  height: 1px;
  background: var(--pink);
}
.timeline__bullets li:first-child::before { top: 1.05rem; }

@media (max-width: 720px) {
  .timeline__entry { grid-template-columns: 1fr; gap: 0.6rem; padding: 2rem 0; }
}

/* ====================================================================
   04 · PRACTICE (Skills)
   ==================================================================== */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem 1.5rem;
  margin-top: 1rem;
}

.practice-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.8rem 1.6rem 2rem;
  grid-column: span 6;
  position: relative;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}
.practice-card--lead {
  grid-column: span 12;
  padding: 2.4rem 2.2rem;
  background: var(--noir);
  color: var(--cream);
  border-color: var(--noir);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 6px 18px -10px rgba(0, 0, 0, 0.40);
}
.practice-card--lead .practice-rank__name { color: var(--cream); }

@media (min-width: 720px) {
  .practice-card { grid-column: span 4; }
  .practice-card--lead { grid-column: span 12; }
}

.practice-card__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sepia);
  margin: 0 0 1.4rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--rule);
}
.practice-card--lead .practice-card__label {
  color: var(--pink);
  border-bottom-color: rgba(244, 244, 242, 0.18);
}
.practice-card__label--sub {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px dotted rgba(244, 244, 242, 0.18);
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

/* Client stamps — unified typographic logo plates. Every publisher gets
   the same hairline-bordered tile with their name in italic Cormorant.
   Reads as a coordinated 20-stamp set rather than a mix of brand logos. */
.client-stamps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.7rem;
  margin: 1.4rem 0 0;
}
.client-stamp {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 78px;
  padding: 0.8rem 0.8rem;
  border: 1px solid rgba(255, 26, 117, 0.45);
  border-radius: 4px;
  background: rgba(255, 26, 117, 0.04);
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.18;
  letter-spacing: -0.005em;
  color: var(--cream);
  cursor: default;
  user-select: none;
  transition: background 0.3s ease, border-color 0.3s ease,
              color 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.client-stamp:hover {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--noir);
  transform: translateY(-2px);
}

/* Image logos — unified to white silhouettes via filter so the dark card
   reads as a coordinated set. Compound logos that don't filter cleanly
   (Heinemann red box, Western Cape blue panel, etc.) use text stamps
   instead — see HTML for which are img vs text. */
.client-stamp img {
  display: block;
  max-height: 42px;
  max-width: 100%;
  width: auto;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.88;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.client-stamp:hover img {
  filter: brightness(0);
  opacity: 1;
}

@media (max-width: 720px) {
  .client-stamps { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.5rem; }
  .client-stamp { min-height: 64px; font-size: 0.92rem; padding: 0.6rem 0.6rem; }
  .client-stamp img { max-height: 32px; }
}

.practice-rank {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem 3rem;
}
@media (min-width: 880px) {
  .practice-rank { grid-template-columns: repeat(4, 1fr); }
}
.practice-rank li {
  display: flex;
  flex-direction: column;              /* stacked icon-over-name on the narrowest phones */
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  padding: 0.55rem 0;
  border-bottom: 1px dotted rgba(244, 244, 242, 0.18);
  font-family: var(--serif);
  min-width: 0;                        /* allow shrinking inside the grid cell */
  overflow: hidden;                    /* clip if a name still tries to escape */
}
@media (min-width: 400px) {
  .practice-rank li {
    flex-direction: row;               /* horizontal as soon as there's any room */
    text-align: left;
    gap: 0.55rem;
  }
}
@media (min-width: 1080px) {
  .practice-rank li { gap: 0.85rem; }
}
.practice-rank__name {
  font-size: 0.58rem;                  /* very small on the narrowest phones */
  color: var(--ink);
  line-height: 1.2;
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;             /* let "Adobe Acrobat" wrap rather than push the icon out */
  letter-spacing: 0.01em;
}
@media (min-width: 400px) {
  .practice-rank__name { font-size: 0.62rem; }
}
@media (min-width: 880px) {
  .practice-rank__name { font-size: 0.7rem; }
}
@media (min-width: 1080px) {
  .practice-rank__name { font-size: 1.05rem; }
}

/* Skill icons — small uniform tiles next to each ranked skill. Conceptual
   skills get monogram letters (L, GD, LD, Tt); Adobe apps get the trade
   conventional Id/Ac/Ai marks; Mac gets the actual Apple silhouette.
   All white-on-noir for visual cohesion. */
.skill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 1px solid rgba(244, 244, 242, 0.45);
  border-radius: 4px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--cream);
  background: rgba(244, 244, 242, 0.04);
  user-select: none;
}
.skill-icon--id,
.skill-icon--ac,
.skill-icon--ai {
  font-size: 11px;
  letter-spacing: -0.01em;
}
.skill-icon--apple {
  border: none;
  background: transparent;
  padding: 4px;
}
.skill-icon--apple img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.practice-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--ink-soft);
}
.practice-list li {
  border-bottom: 1px dotted var(--rule);
  padding: 0.1rem 0;
}
.practice-list li:last-child { border-bottom: none; }
.practice-list--prose li { font-style: italic; color: var(--sepia); }

/* ====================================================================
   05 · WORKS
   ==================================================================== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(224, 201, 189, 0.18);
  border: 1px solid rgba(224, 201, 189, 0.18);
  margin-top: 1rem;
}
@media (max-width: 880px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .works-grid { grid-template-columns: 1fr; }
}

.work {
  position: relative;
  padding: 2rem 1.8rem 2.2rem;
  background: var(--ink);
  transition: background 0.4s ease, transform 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 260px;
}
.work:hover {
  background:
    linear-gradient(135deg, rgba(110, 58, 78, 0.35) 0%, rgba(140, 56, 82, 0.18) 100%),
    var(--ink-soft);
}
.work:hover .work__title { color: var(--blush); }

.work__num {
  position: absolute;
  top: 1.1rem;
  right: 1.4rem;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.2em;
}
.work__client {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 239, 229, 0.5);
  margin: 0;
}
.work__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--cream);
  transition: color 0.4s ease;
}
.work__year {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  margin: 0;
  letter-spacing: 0.1em;
}
.work__note {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(247, 239, 229, 0.72);
  margin: auto 0 0;
  padding-top: 0.8rem;
  border-top: 1px dotted rgba(224, 201, 189, 0.18);
}
.work__note em {
  font-family: var(--serif);
  font-style: italic;
  color: rgba(247, 239, 229, 0.85);
}

.works-note {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 3rem auto 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 1rem;
  color: var(--sepia);
  text-align: center;
}

/* ====================================================================
   05b · GALLERY (photograph wall + lightbox)
   ==================================================================== */

.gallery-intro {
  font-family: var(--book);
  font-size: clamp(1.2rem, 1.45vw, 1.36rem);
  line-height: 1.6;
  color: var(--noir);
  max-width: 62ch;
  margin: -1rem auto 2.5rem;
  font-weight: 500;
}
.gallery-intro em {
  font-family: var(--display);
  font-style: italic;
  color: var(--red);
}

/* Uniform grid — every thumbnail is the same aspect, centered in its cell.
   The gallery itself is pulled out of grid__main and centred to the page,
   max-width capped at the container, so the wall reads as a centred grid
   instead of being offset by the 04 side-margin column. */
.gallery {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.4rem;
  max-width: var(--max);
  margin: 3rem auto 0;
  justify-content: center;
}

.gallery__item {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 3px 10px -4px rgba(0, 0, 0, 0.10),
    0 18px 40px -20px rgba(0, 0, 0, 0.18);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 0.5s ease;
  font-family: inherit;
  text-align: left;
  color: inherit;
}
.gallery__item::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--rule);
  border-radius: 4px;
  pointer-events: none;
  z-index: 3;
}
/* Persistent pink + badge top-right — signals the thumbnail opens a lightbox.
   Always visible at reduced opacity so the affordance is discoverable, then
   brightens + grows on hover/focus. */
.gallery__item::after {
  content: '+';
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2px;
  z-index: 4;
  opacity: 0.78;
  transform: scale(0.9);
  box-shadow: 0 2px 10px -2px rgba(255, 26, 117, 0.45);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
              background 0.3s ease;
  pointer-events: none;
}
.gallery__item:hover::after,
.gallery__item:focus-visible::after {
  opacity: 1;
  transform: scale(1.08);
  background: var(--pink-deep);
}
.gallery__item:hover,
.gallery__item:focus-visible {
  transform: translateY(-5px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 0 0 1px var(--pink),
    0 6px 16px -6px rgba(255, 26, 117, 0.40),
    0 28px 60px -22px rgba(0, 0, 0, 0.30);
  outline: none;
}
.gallery__item:focus-visible::before {
  border-color: var(--pink);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  /* Grayscale by default — colour reveals on hover/focus, signalling
     interactivity and tying the wall together as a B&W contact sheet. */
  filter: grayscale(1) contrast(1.02);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
              filter 0.5s ease;
}
.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.04);
  filter: grayscale(0) contrast(1);
}

.gallery__caption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.2rem 1.2rem 1.1rem;
  background:
    linear-gradient(180deg, transparent 0%, rgba(244, 244, 242, 0.70) 30%, rgba(244, 244, 242, 0.97) 100%);
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.gallery__item:hover .gallery__caption,
.gallery__item:focus-visible .gallery__caption {
  opacity: 1;
  transform: none;
}
.gallery__client {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--pink-deep);
}
.gallery__title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.gallery__year {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sepia);
}

/* Touch devices: caption always partly visible */
@media (hover: none) {
  .gallery__caption { opacity: 1; transform: none; }
}

/* ====================================================================
   LIGHTBOX
   ==================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vh, 4rem);
  background: rgba(10, 10, 12, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
body.lightbox-open { overflow: hidden; }

.lightbox__frame {
  position: relative;
  margin: 0;
  width: min(92vw, 1200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  transform: scale(0.96);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.lightbox.is-open .lightbox__frame { transform: none; }

/* Fixed-size stage — every image sits centered inside the same visual area
   regardless of its native aspect ratio, so the lightbox stops feeling
   jumpy as you flip between portraits, banners and squares. */
.lightbox__stage {
  width: 100%;
  height: 74vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  background: var(--paper);
  border-radius: 3px;
  box-shadow:
    0 20px 60px -10px rgba(0, 0, 0, 0.7),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.lightbox__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
  font-family: var(--mono);
  color: var(--cream);
  max-width: 60ch;
}
.lightbox__client {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.lightbox__title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  letter-spacing: -0.01em;
  color: var(--cream);
  text-transform: none;
}
.lightbox__year {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 244, 242, 0.55);
}
.lightbox__counter {
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--rose);
  margin-top: 0.4rem;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  top: 1.2rem;
  background: transparent;
  border: 1px solid rgba(244, 244, 242, 0.25);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  color: var(--cream);
  font-family: var(--display);
  font-weight: 300;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
  z-index: 510;
  padding: 0;
  user-select: none;
}
.lightbox__close { right: 1.2rem; }
.lightbox__close:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--cream);
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  font-size: 32px;
  font-family: var(--book);
  font-weight: 300;
}
.lightbox__nav--prev { left: 1.5rem; }
.lightbox__nav--next { right: 1.5rem; }
.lightbox__nav:hover {
  background: rgba(255, 26, 117, 0.12);
  border-color: var(--pink);
  color: var(--pink);
  transform: translateY(-50%) scale(1.05);
}

@media (max-width: 720px) {
  .lightbox__nav { width: 44px; height: 44px; font-size: 26px; }
  .lightbox__nav--prev { left: 0.6rem; }
  .lightbox__nav--next { right: 0.6rem; }
}

/* ====================================================================
   06 · WORDS (Quotes)
   ==================================================================== */
/* ====================================================================
   Words carousel — horizontal slide between testimonials, autoplay,
   pause on hover, arrow buttons + dot indicators
   ==================================================================== */
.words-carousel {
  position: relative;
  margin: 0 auto;
  max-width: 78ch;
  padding: 0 70px; /* breathing room for the absolute-positioned arrows */
}
.words-carousel__viewport {
  overflow: hidden;
  position: relative;
  width: 100%;
}
.words-carousel__track {
  display: flex;
  align-items: stretch;
  width: 100%;
  transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}
.words-carousel__track > .quote {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

/* Arrow buttons — pink-filled editorial stamps matching the gallery + badge */
.words-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--pink);
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  color: var(--cream);
  font-family: var(--display);
  font-style: normal;
  font-weight: 500;
  font-size: 30px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0 0 4px;
  user-select: none;
  z-index: 3;
  box-shadow:
    0 4px 14px -4px rgba(255, 26, 117, 0.45),
    0 0 0 1px rgba(255, 26, 117, 0.10);
  transition: background 0.25s ease, transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 0.25s ease;
}
.words-carousel__arrow--prev { left: 0; }
.words-carousel__arrow--next { right: 0; }
.words-carousel__arrow:hover,
.words-carousel__arrow:focus-visible {
  background: var(--pink-deep);
  transform: translateY(-50%) scale(1.1);
  box-shadow:
    0 8px 22px -4px rgba(219, 14, 94, 0.55),
    0 0 0 1px rgba(219, 14, 94, 0.20);
  outline: none;
}
.words-carousel__arrow:active {
  transform: translateY(-50%) scale(0.95);
}

@media (max-width: 720px) {
  .words-carousel { padding: 0 56px; }
  .words-carousel__arrow { width: 44px; height: 44px; font-size: 26px; }
}

.words-carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 2.4rem;
}
.words-carousel__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 26, 117, 0.25);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.words-carousel__dot:hover {
  background: rgba(255, 26, 117, 0.55);
  transform: scale(1.2);
}
.words-carousel__dot.is-active {
  background: var(--pink);
  transform: scale(1.3);
}
.words-carousel.is-paused .words-carousel__dot.is-active {
  /* Subtle inset glow when paused so the user feels their pause is registered */
  box-shadow: 0 0 0 3px rgba(255, 26, 117, 0.15);
}

.quote {
  margin: 0 0 4rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  position: relative;
}
.quote::before {
  content: '\201C';
  position: absolute;
  top: 1rem;
  left: 0.4rem;
  font-family: var(--serif);
  font-size: 8rem;
  line-height: 1;
  color: var(--rose);
  opacity: 0.55;
  font-style: italic;
  font-weight: 300;
}
.quote:last-child { margin-bottom: 0; }

.quote blockquote {
  margin: 0;
  padding-left: 2.5rem;
}
.quote blockquote p {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  line-height: 1.32;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--ink);
}
.quote blockquote em {
  font-style: italic;
  color: var(--red);
  font-weight: 500;
}

.quote figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-left: 2.5rem;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.quote__name { color: var(--ink); font-weight: 500; }
.quote__title { color: var(--sepia-light); }
.quote__org { color: var(--sepia-light); font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: 0.02em; font-size: 13px; }
.quote__rel {
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px dotted var(--rule);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
}

/* ====================================================================
   07 · SCHOOLING
   ==================================================================== */
.schooling {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 1rem;
}
@media (max-width: 880px) { .schooling { grid-template-columns: 1fr; } }

.school {
  padding: 2rem 1.8rem 2rem 0;
  border-right: 1px solid var(--rule);
}
.school:last-child { border-right: none; padding-right: 0; }
@media (max-width: 880px) {
  .school { border-right: none; border-bottom: 1px solid var(--rule); padding: 1.5rem 0; }
  .school:last-child { border-bottom: none; }
}

.school__year {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--red);
  margin: 0 0 0.8rem;
}
.school__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.65rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.35rem;
  color: var(--pink);
}
.school__qual {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--noir);
  margin: 0 0 0.9rem;
}
.school__detail {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--noir);
  margin: 0;
  font-weight: 500;
}

/* ====================================================================
   08 · CONTACT
   ==================================================================== */
.contact {
  max-width: 720px;
  margin: 4rem auto 0;
  border-top: 1px solid rgba(255, 26, 117, 0.45);
}
.contact__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: baseline;
  gap: 2rem;
  padding: 1.2rem 0.5rem;
  border-bottom: 1px solid rgba(255, 26, 117, 0.25);
  text-align: left;
  transition: background 0.3s, padding 0.3s, color 0.3s;
  cursor: pointer;
}
.contact__row:hover {
  background: rgba(255, 26, 117, 0.12);
  padding-left: 1.5rem;
}
.contact__row:hover .contact__value { color: var(--pink-deep); }
.contact__row--static { cursor: default; }
.contact__row--static:hover { background: transparent; padding-left: 0.5rem; }

.contact__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pink-deep);
}
.contact__value {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--pink-deep);
  letter-spacing: -0.01em;
  transition: color 0.3s;
}

.colophon {
  margin: 5rem auto 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--pink-deep);
  text-align: center;
}
.colophon em {
  font-style: normal;
  color: var(--pink);
}

/* ====================================================================
   Reveal-on-scroll
   ==================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.1s cubic-bezier(0.2, 0.7, 0.2, 1), transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

/* Gallery plates — fade-up with row stagger as each enters the viewport.
   Per-item delay is set inline via --reveal-delay (see main.js). The
   transition reuses transform so hover-lift still works after reveal. */
.gallery__item.gallery__item--reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.5s ease;
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.gallery__item.gallery__item--reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .gallery__item.gallery__item--reveal { opacity: 1; transform: none; }
  .parallax-bg img { transform: none !important; }
  .hero__hint-line { animation: none; }
  html { scroll-behavior: auto; }
}
