/* ============================================================
   Meg Kendall — Design Tokens
   Extracted from Meg Kendall Website.dc.html (and confirmed
   consistent across the earlier Portfolio.dc.html drafts in the
   same design export).
   ============================================================ */

:root {
  /* ---- Color: surfaces ---- */
  --color-bg:            #D7D0C5; /* page background / cream */
  --color-bg-alt:        #C7C0B0; /* alternating section background */
  /* Darkened from the original #85764F so cream text ("What I'm Working
     On" list) reads at AA contrast (4.6:1) — see --color-text-brand
     below for the separate, further-darkened variant used when this
     brand brown sits as small TEXT on a light background instead. */
  --color-bg-brand:      #776946;
  --color-bg-deep:       #676637; /* "Core Beliefs" section bg */

  /* ---- Color: text ---- */
  --color-text:          #3B3A26; /* primary body text */
  --color-text-muted:    #57573D; /* secondary / de-emphasized text */
  --color-heading:       #676637; /* section headings on light bg (large text only, passes AA large-text 3:1) */
  --color-light:         #EFEADF; /* light text on dark bg */
  --color-light-alt:     #F2EDE2; /* light text on brand-brown bg */

  /* ---- Color: accents (decorative use — dots, borders, backgrounds.
     NOT for text on a light surface; see the *-text variants below) ---- */
  --color-accent-gold:   #C99214; /* gold — bullets, dividers, emphasis */
  --color-accent-rust:   #BB6126; /* rust — pull-quote border, decorative */
  --color-accent-sage:   #A1B1A3; /* sage — decorative accents on dark bg */
  --color-accent-moss:   #7C8E80; /* moss — decorative accents on dark bg */

  /* ---- Color: text-safe accent variants ----
     The accents above fail WCAG AA (4.5:1) as small text on the Stone
     backgrounds — measured as low as 1.5:1. These are darkened (for
     light backgrounds) or lightened (for dark backgrounds) versions of
     the same hues, used anywhere the accent color is the actual text
     color rather than a decorative dot/border. All verified ≥4.5:1
     against both --color-bg and --color-bg-alt (light-bg variants) or
     --color-bg-deep (dark-bg variants). */
  --color-accent-gold-text:    #63480A; /* gold text on light bg */
  --color-accent-gold-on-dark: #F7E0AD; /* gold text on bg-deep */
  --color-accent-rust-text:    #773E18; /* rust text on light bg */
  --color-accent-sage-text:    #435044; /* sage text on light bg */
  --color-accent-sage-on-dark: #DEE4DF; /* sage text on bg-deep */
  --color-accent-moss-text:    #455047; /* moss text on light bg */
  --color-text-brand:          #554B32; /* brand-brown text/links on light bg */

  /* ---- Color: links & selection ---- */
  --color-link:          var(--color-text-brand);
  --color-link-hover:    var(--color-accent-rust-text);
  --color-selection-bg:  var(--color-accent-gold);
  --color-selection-text:#2B2A1A;

  /* ---- Color: borders (brand color at low opacity) ---- */
  --color-border:        rgba(133, 118, 79, 0.33);  /* #85764F55 */
  --color-border-soft:   rgba(133, 118, 79, 0.27);  /* #85764F44 */
  --color-border-faint:  rgba(133, 118, 79, 0.15);  /* #85764F26 */
  --color-border-light:  rgba(242, 237, 226, 0.2);  /* #F2EDE233 on brand bg */

  /* ---- Typography: families ---- */
  --font-heading: 'Cormorant Garamond', serif; /* display headings + pull-quotes */
  --font-body:    'Poppins', sans-serif;       /* body copy, labels, UI text */
  --font-accent:  'Lora', serif;                /* italic accents (titles, quotes) */

  /* ---- Typography: fluid sizes ---- */
  --fs-hero:      clamp(56px, 10vw, 128px);
  --fs-h2-lg:     clamp(38px, 5vw,  58px);
  --fs-h2-md:     clamp(34px, 5vw,  52px);
  --fs-quote:     clamp(22px, 3vw,  30px);
  --fs-body-lg:   clamp(16px, 1.6vw, 19px);

  /* ---- Typography: fixed sizes ---- */
  --fs-body:      17px;
  --fs-body-md:   18px;
  --fs-body-sm:   16px;
  --fs-caption:   15px;
  --fs-small:     14px;
  --fs-label:     13px;
  --fs-label-sm:  11px;
  --fs-tag:       10px;

  /* ---- Typography: weights ---- */
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold:600;
  --fw-bold:    700;

  /* ---- Typography: line-height ---- */
  --lh-tight:   0.95;
  --lh-snug:    1.3;
  --lh-normal:  1.5;
  --lh-relaxed: 1.6;
  --lh-loose:   1.75;
  --lh-looser:  1.85;

  /* ---- Typography: letter-spacing ---- */
  --ls-heading:   0.06em;
  --ls-hero:      0.04em;
  --ls-label:     0.2em;
  --ls-label-lg:  0.28em;
  --ls-label-xl:  0.32em;

  /* ---- Spacing scale (as used across the design) ---- */
  --space-1:   8px;
  --space-2:  12px;
  --space-3:  14px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  28px;
  --space-8:  32px;
  --space-9:  36px;
  --space-10: 40px;
  --space-11: 48px;
  --space-12: 56px;
  --space-13: 64px;
  --space-14: 72px;
  --space-15: 90px;
  --space-16: 110px;
  --space-17: 120px;
  --space-18: 130px;

  /* Responsive horizontal section gutter used everywhere */
  --gutter-x: clamp(24px, 6vw, 96px);

  /* ---- Container widths ---- */
  --container-xl: 1180px;
  --container-lg: 1000px;
  --container-md: 820px;
  --container-sm: 760px;

  /* ---- Radii ---- */
  --radius-sm: 3px;
  --radius-md: 4px;
}

/* ============================================================
   Base / reset
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

/* Scroll fade-ins — progressive enhancement only. The hidden state is
   scoped under body.fade-in-ready, a class the script adds ONLY when
   IntersectionObserver exists and the visitor hasn't asked for reduced
   motion — so if JS fails to load, or motion is disabled, every
   section is simply visible from the start with no hidden/stuck
   content. Slow (1.1s) and a small rise, in keeping with a calm,
   editorial feel rather than anything bouncy. */
body.fade-in-ready section {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.1s ease-out, transform 1.1s ease-out;
}
body.fade-in-ready section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Belt-and-suspenders: even if the class ends up applied, honor
   reduced-motion at the CSS layer too. */
@media (prefers-reduced-motion: reduce) {
  body.fade-in-ready section {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

/* Anchor targets land with breathing room below the fixed nav instead
   of jamming the section heading against it. */
#top,
#the-journey,
#climate-hub-highlights,
#portfolio,
#core-beliefs,
#beyond-work {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  overflow-x: hidden;
}

::selection {
  background: var(--color-selection-bg);
  color: var(--color-selection-text);
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover { color: var(--color-link-hover); }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: var(--fw-medium);
  margin: 0;
}

p { margin: 0; }

ul, ol, dl { margin: 0; padding: 0; list-style: none; }
li { display: block; }
dd { margin: 0; }

img { max-width: 100%; display: block; }

/* ============================================================
   SITE NAV — slim, sticky utility bar
   ============================================================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-3) var(--gutter-x);
  background: rgba(215, 208, 197, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--color-border);
}

.site-nav-logo {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}
.site-nav-logo img {
  height: 30px;
  width: auto;
  transition: opacity 0.25s ease;
}
.site-nav-logo:hover img { opacity: 0.7; }

.site-nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-9);
}

.site-nav-links a {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-text);
}
.site-nav-links a:hover { color: var(--color-accent-rust-text); }

.site-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}
.site-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
}

@media (max-width: 768px) {
  .site-nav-toggle { display: flex; }

  .site-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: var(--space-2) var(--gutter-x) var(--space-6);
    box-shadow: 0 4px 10px rgba(59, 58, 38, 0.12);
  }
  .site-nav-links.is-open { display: flex; }

  .site-nav-links li {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border-faint);
  }
  .site-nav-links li:last-child { border-bottom: none; }
}

/* ============================================================
   Section rhythm — shared vertical/horizontal spacing
   ============================================================ */

header,
section {
  padding: var(--space-16) var(--gutter-x);
}

section > h2 {
  font-size: var(--fs-h2-lg);
  letter-spacing: var(--ls-heading);
  text-transform: uppercase;
  color: var(--color-heading);
  margin-bottom: var(--space-14);
}

/* Section max-widths (content columns), matching the source design */
#at-a-glance,
#climate-hub-highlights,
#clients-partners,
#portfolio,
#formative-media {
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
}

#what-im-working-on { max-width: var(--container-lg); margin-left: auto; margin-right: auto; }

#lifeview-milestones,
#core-beliefs {
  max-width: var(--container-md);
  margin-left: auto;
  margin-right: auto;
}

/* Alternating section backgrounds from the source design */
#lifeview-milestones {
  background: var(--color-bg-alt);
  max-width: none;
}
#lifeview-milestones > * {
  max-width: var(--container-md);
  margin-left: auto;
  margin-right: auto;
}

/* The Journey and Beyond Work: a full-bleed background color, with the
   section pinned to the same 1180px/centered grid as every other
   section (via ::before for the color, so the box used for alignment
   isn't full-width). The text column inside is narrower (760px) and
   horizontally CENTERED within that shared grid — matching the visual
   weight of the wider sections around it — while the text itself
   remains left-aligned (paragraphs were never text-align:center). */
#the-journey,
#beyond-work {
  position: relative;
  z-index: 0;
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
}
#the-journey::before,
#beyond-work::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--color-bg-alt);
  z-index: -1;
}
#the-journey > *,
#beyond-work > * {
  max-width: var(--container-sm);
  margin-left: auto;
  margin-right: auto;
}

#what-im-working-on { background: var(--color-bg-brand); max-width: none; }
#what-im-working-on > * { max-width: var(--container-lg); margin-left: auto; margin-right: auto; }

#core-beliefs { background: var(--color-bg-deep); max-width: none; padding: var(--space-18) var(--gutter-x); }
#core-beliefs > * { max-width: var(--container-md); margin-left: auto; margin-right: auto; }

#at-a-glance { padding-top: var(--space-17); padding-bottom: var(--space-17); }

/* ============================================================
   HERO
   ============================================================ */

header {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--space-13);
  padding-bottom: var(--space-15);
  background-image:
    linear-gradient(180deg, rgba(59,58,38,0.35) 0%, rgba(30,29,18,0.82) 100%),
    url('uploads/pexels-cottonbro-studio-4272625.jpg');
  background-size: cover;
  background-position: center;
}

header > * { position: relative; max-width: 920px; }

header p:first-of-type {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  letter-spacing: var(--ls-label-lg);
  text-transform: uppercase;
  color: var(--color-accent-sage);
  margin-bottom: var(--space-9);
}

header h1 {
  font-size: var(--fs-hero);
  letter-spacing: var(--ls-hero);
  text-transform: uppercase;
  color: var(--color-light);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-5);
}

header p:last-of-type {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-loose);
  color: var(--color-light);
  max-width: 680px;
}

/* ============================================================
   AT A GLANCE
   ============================================================ */

#at-a-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  column-gap: var(--space-13);
}

#at-a-glance > h2 { grid-column: 1 / -1; }
#at-a-glance > h3:nth-of-type(1) { grid-column: 1; grid-row: 2; }
#at-a-glance > ul       { grid-column: 1; grid-row: 3; }
#at-a-glance > h3:nth-of-type(2) { grid-column: 2; grid-row: 2; }
#at-a-glance > dl       { grid-column: 2; grid-row: 3; }

#at-a-glance h3 {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-accent-rust-text);
  border-bottom: 1px solid var(--color-border-soft);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-7);
}

#at-a-glance ul li {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border-faint);
}

.edu-mark {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--color-accent-sage-text);
  font-size: 20px;
  flex-shrink: 0;
}

.edu-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.edu-title {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--fs-body-sm);
  color: var(--color-text);
}

.edu-status {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-tag);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-accent-gold-text);
}

#at-a-glance dt {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-caption);
  color: var(--color-text);
  padding-top: var(--space-4);
  margin-bottom: var(--space-1);
}

#at-a-glance dd {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border-faint);
}

/* ============================================================
   THE JOURNEY
   ============================================================ */

#the-journey h2 { margin-bottom: var(--space-11); }

#the-journey img {
  border-radius: var(--radius-md);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 22%;
  width: 320px;
  float: right;
  margin: 0 0 var(--space-7) var(--space-7);
}

#the-journey > p {
  font-family: var(--font-body);
  font-size: var(--fs-body-md);
  line-height: var(--lh-looser);
  color: var(--color-text);
  margin-bottom: var(--space-8);
}
#the-journey > p:last-of-type { margin-bottom: var(--space-11); }

#the-journey blockquote {
  margin: 0;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: var(--fs-quote);
  line-height: var(--lh-normal);
  color: var(--color-accent-rust-text);
  border-left: 3px solid var(--color-accent-gold);
  padding-left: var(--space-7);
}
#the-journey blockquote p { margin: 0; font-size: inherit; font-family: inherit; color: inherit; }

/* ============================================================
   CLIMATE HUB HIGHLIGHTS
   ============================================================ */

#climate-hub-highlights h2 { margin-bottom: var(--space-11); }

#climate-hub-highlights p {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  line-height: var(--lh-loose);
  color: var(--color-text);
  max-width: var(--container-sm);
  margin-bottom: var(--space-12);
}

#climate-hub-highlights ul:first-of-type {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-11);
}

#climate-hub-highlights ul:first-of-type li {
  flex: 1 1 220px;
  border: 1px solid var(--color-border);
  padding: var(--space-9) var(--space-7);
  text-align: center;
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-text);
}

#climate-hub-highlights ul:first-of-type li::before {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin: 0 auto var(--space-5);
  background: var(--color-accent-gold);
}
#climate-hub-highlights ul:first-of-type li:nth-child(2)::before { background: var(--color-accent-sage); }
#climate-hub-highlights ul:first-of-type li:nth-child(3)::before { background: var(--color-accent-rust); }

#climate-hub-highlights ul:last-of-type {
  max-width: var(--container-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

#climate-hub-highlights ul:last-of-type li {
  position: relative;
  padding-left: var(--space-7);
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  line-height: var(--lh-loose);
  color: var(--color-text);
}

#climate-hub-highlights ul:last-of-type li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-heading); /* olive #676637 — same brand green used for section headings / Core Beliefs bg */
}

/* ============================================================
   LOGO BAR
   ============================================================ */

#clients-partners {
  padding-top: var(--space-12);
  padding-bottom: var(--space-16);
  border-top: 1px solid var(--color-border-faint);
}

#clients-partners h2 {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label-lg);
  text-transform: uppercase;
  color: var(--color-text-brand);
  text-align: center;
  margin-bottom: var(--space-9);
}

#clients-partners ul {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  justify-items: center;
  gap: var(--space-9) var(--space-7);
}

#clients-partners img {
  height: 46px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* ============================================================
   WHAT I'M WORKING ON
   ============================================================ */

#what-im-working-on h2 {
  color: var(--color-light-alt);
  font-size: var(--fs-h2-md);
  margin-bottom: var(--space-12);
}

#what-im-working-on ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px var(--space-10);
}

#what-im-working-on li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border-light);
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  color: var(--color-light-alt);
  position: relative;
  padding-left: var(--space-6);
}

#what-im-working-on li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--color-accent-gold);
  font-size: var(--fs-small);
}

/* ============================================================
   PORTFOLIO
   ============================================================ */

#portfolio ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

#portfolio li {
  flex: 1 1 260px;
  border: 1px solid var(--color-border);
  padding: var(--space-10);
}

#portfolio p {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-text-brand);
  margin-bottom: var(--space-2);
}

#portfolio li {
  transition: border-color 0.3s ease;
}
#portfolio li:has(a:hover) { border-color: var(--color-accent-rust-text); }

#portfolio a {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--color-text);
  display: inline-block;
  transition: color 0.25s ease;
}
#portfolio a:hover { color: var(--color-accent-rust-text); }

/* ============================================================
   LIFEVIEW MILESTONES
   ============================================================ */

#lifeview-milestones h2 { margin-bottom: var(--space-13); }

#lifeview-milestones ol {
  border-left: 2px solid var(--color-border);
  padding-left: var(--space-9);
  display: flex;
  flex-direction: column;
  gap: 34px;
}

#lifeview-milestones li {
  position: relative;
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-relaxed);
  color: var(--color-text);
}

#lifeview-milestones li::before {
  content: '';
  position: absolute;
  left: -42px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-accent-gold);
}

/* ============================================================
   CORE BELIEFS (Worldview)
   ============================================================ */

#core-beliefs h2 {
  color: var(--color-light);
  text-align: center;
  margin-bottom: var(--space-14);
}

#core-beliefs ul {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

#core-beliefs li {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--fs-quote);
  line-height: var(--lh-normal);
  text-align: center;
  color: var(--color-light);
}

#core-beliefs li:nth-child(2n) { color: var(--color-accent-sage-on-dark); }
#core-beliefs li:last-child { color: var(--color-accent-gold-on-dark); line-height: var(--lh-relaxed); }

/* ============================================================
   FORMATIVE MEDIA
   ============================================================ */

#formative-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  column-gap: var(--space-12);
}

#formative-media > h2 { grid-column: 1 / -1; }
#formative-media > h3:nth-of-type(1) { grid-column: 1; grid-row: 2; }
#formative-media > ul:nth-of-type(1) { grid-column: 1; grid-row: 3; }
#formative-media > h3:nth-of-type(2) { grid-column: 2; grid-row: 2; }
#formative-media > ul:nth-of-type(2) { grid-column: 2; grid-row: 3; }
#formative-media > h3:nth-of-type(3) { grid-column: 3; grid-row: 2; }
#formative-media > ul:nth-of-type(3) { grid-column: 3; grid-row: 3; }

#formative-media h3 {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label-lg);
  text-transform: uppercase;
  color: var(--color-accent-rust-text);
  margin-bottom: var(--space-6);
}

#formative-media ul li {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  line-height: var(--lh-relaxed);
  color: var(--color-text);
  padding: var(--space-1) 0;
}

#formative-media em {
  font-family: var(--font-accent);
  font-style: italic;
}

/* ============================================================
   BEYOND WORK
   ============================================================ */

#beyond-work h2 { margin-bottom: var(--space-11); text-align: center; }

#beyond-work p {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  line-height: var(--lh-looser);
  color: var(--color-text);
  margin-bottom: var(--space-7);
}

/* Poem carousel — one poem shown at a time, advanced manually.
   Deliberately no auto-rotation: these are meant to be read, and a
   timed carousel fights the reader's own pace. */
.poem-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}

.poem-carousel-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  width: 100%;
}

.poem-carousel-track ul {
  position: relative;
  width: 100%;
  max-width: 460px;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poem-carousel-slide {
  display: none;
  width: 100%;
  text-align: center;
}
.poem-carousel-slide.is-active { display: block; }

.poem-carousel-slide img {
  display: inline-block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 460px;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(59, 58, 38, 0.18);
}

.poem-carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.poem-carousel-btn:hover {
  color: var(--color-accent-rust-text);
  border-color: var(--color-accent-rust-text);
}

.poem-carousel-dots {
  display: flex;
  gap: var(--space-1);
}
.poem-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--color-border);
  cursor: pointer;
  transition: background-color 0.25s ease;
}
.poem-carousel-dot:hover { background: var(--color-accent-rust-text); }
.poem-carousel-dot.is-active { background: var(--color-accent-gold); }

.photo-pair {
  display: flex;
  justify-content: center;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}

.photo-pair img {
  width: 240px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.floral-chicory {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--color-accent-moss-text);
}

.floral-goldenrod {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--color-accent-gold-text);
}

#beyond-work p:last-of-type {
  margin-top: var(--space-12);
  margin-bottom: 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 22px;
  color: var(--color-text-brand);
  text-align: right;
}

/* ============================================================
   PHOTO STRIP
   ============================================================ */

#photo-strip {
  padding: var(--space-8) 0;
  background: var(--color-text);
}

#photo-strip ul {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  overflow-x: auto;
}

#photo-strip img {
  width: 150px;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

/* ============================================================
   FOOTER — quiet closing bar
   ============================================================ */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  padding: var(--space-15) var(--gutter-x);
  background: var(--color-bg-alt);
}

.site-footer-logo {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}
.site-footer-logo img {
  height: 30px;
  width: auto;
  transition: opacity 0.25s ease;
}
.site-footer-logo:hover img { opacity: 0.7; }

.site-footer-links {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.site-footer-links a { color: var(--color-text-muted); }
.site-footer-links a:hover { color: var(--color-accent-rust-text); }

/* ============================================================
   RESPONSIVE — tablet (≤860px)
   Multi-column sections that don't have room for their full grid
   collapse here; the nav's own hamburger breakpoint (768px) sits
   inside this range.
   ============================================================ */

@media (max-width: 860px) {
  /* Formative Media: 3 explicit columns need ~900px+ to breathe.
     Drop the explicit grid placement and let Books / Music / Podcast
     stack in natural document order. */
  #formative-media { display: block; }
  #formative-media > h3,
  #formative-media > ul {
    grid-column: auto;
    grid-row: auto;
  }
  #formative-media h3:not(:first-of-type) { margin-top: var(--space-11); }

  /* Logo bar: 5 fixed columns get cramped — step down to 3. */
  #clients-partners ul { grid-template-columns: repeat(3, 1fr); }

  /* Poem carousel: the fixed 460px stage is wider than the column
     at this size. */
  .poem-carousel-track ul { max-width: 380px; min-height: 380px; }
  .poem-carousel-slide img { max-height: 380px; }
}

/* ============================================================
   RESPONSIVE — mobile (≤600px)
   ============================================================ */

@media (max-width: 600px) {
  /* Tighter vertical rhythm — the desktop section padding (110–130px)
     turns into a lot of empty scrolling on a small screen. */
  header,
  section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }
  #at-a-glance { padding-top: var(--space-12); padding-bottom: var(--space-12); }
  #core-beliefs { padding-top: var(--space-14); padding-bottom: var(--space-14); }
  header { padding-top: var(--space-11); padding-bottom: var(--space-12); }

  section > h2 { margin-bottom: var(--space-10); }

  /* At a Glance: same fix as Formative Media above — drop the
     explicit 2-column placement and stack Education above Work. */
  #at-a-glance { display: block; }
  #at-a-glance > h3,
  #at-a-glance > ul,
  #at-a-glance > dl {
    grid-column: auto;
    grid-row: auto;
  }
  #at-a-glance h3:not(:first-of-type) { margin-top: var(--space-11); }

  /* The Journey portrait: a 320px float leaves almost no room for
     text beside it on a phone — drop the float and run it full-width
     above the copy instead. */
  #the-journey img {
    float: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto var(--space-8);
  }

  /* Logo bar: 3 columns is still tight under ~400px — go to 2. */
  #clients-partners ul { grid-template-columns: repeat(2, 1fr); }

  /* Beyond Work photo pair: let the two photos wrap instead of
     forcing them to squeeze into one row. */
  .photo-pair { flex-wrap: wrap; }
  .photo-pair img { width: 45%; max-width: 200px; }

  /* Poem carousel: shrink the stage further, and let the image wrap
     onto its own row with the prev/next buttons below it instead of
     squeezing everything into one cramped line. */
  .poem-carousel-track {
    flex-wrap: wrap;
    justify-content: center;
  }
  .poem-carousel-track ul {
    order: 1;
    flex: 1 1 100%;
    max-width: 100%;
    min-height: 300px;
  }
  .poem-carousel-slide img { max-height: 340px; }
  .poem-carousel-prev { order: 2; }
  .poem-carousel-next { order: 3; }

  /* Footer: stack and center instead of the desktop side-by-side row. */
  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: var(--space-6);
    padding-top: var(--space-13);
    padding-bottom: var(--space-13);
  }
}
