/* ==========================================================================
   Mutindi Lydia Jacobs — Design System
   Law · Energy · Reform · Education
   ========================================================================== */

/* --- 1. Tokens ---------------------------------------------------------- */
:root {
  /* Brand palette (fixed by brand spec) */
  --gold:        #B08D57;
  --gold-deep:   #8A6D3B;   /* button/surface gold */
  --gold-text:   #7E6231;   /* small text on light surfaces — 4.9:1 on beige */
  --gold-onDark: #D9BC8C;   /* small text on brown/charcoal — 4.6:1 on brown */
  --brown:       #5C4A38;
  --beige:       #F4EDE1;
  --charcoal:    #3D3226;

  /* Derived surfaces */
  --beige-shade: #EAE0CE;
  --paper:       #FCF8F1;
  --brown-ink:   #46382A;
  --hairline:    rgba(92, 74, 56, 0.18);
  --hairline-soft: rgba(92, 74, 56, 0.10);
  --gold-wash:   rgba(176, 141, 87, 0.10);

  /* Type */
  --serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --fs-display: clamp(2.9rem, 6.2vw, 5.1rem);
  --fs-h1:      clamp(2.25rem, 4.4vw, 3.55rem);
  --fs-h2:      clamp(1.85rem, 3.1vw, 2.7rem);
  --fs-h3:      clamp(1.3rem, 1.9vw, 1.6rem);
  --fs-lead:    clamp(1.125rem, 1.5vw, 1.3rem);
  --fs-body:    1.0625rem;   /* 17px */
  --fs-sm:      0.9375rem;
  --fs-xs:      0.8125rem;

  /* Space */
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --wrap: 1240px;
  --wrap-narrow: 760px;
  --sec-y: clamp(4.5rem, 9vw, 8.5rem);
  --sec-y-tight: clamp(3rem, 5.5vw, 5rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- 2. Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--beige);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--brown);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brown); }

ul { margin: 0 0 1.15em; padding-left: 1.15em; }
li { margin-bottom: 0.4em; }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brown); color: var(--beige);
  padding: 0.75rem 1.25rem; font-size: var(--fs-sm);
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* --- 3. Layout ---------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--sec-y); }
.section--tight { padding-block: var(--sec-y-tight); }
.section--shade { background: var(--beige-shade); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--brown); color: rgba(244, 237, 225, 0.86); }
.section--ink h2, .section--ink h3 { color: var(--beige); }

.rule { height: 1px; background: var(--hairline); border: 0; margin: 0; }

.prose { max-width: 68ch; }
.prose p + h3 { margin-top: 1.8em; }

/* Section heading pattern: serif title with a short gold rule above it.
   The rule length encodes nothing but section start — used once per section. */
.sec-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); max-width: 62ch; }
.sec-head::before {
  content: ""; display: block; width: 54px; height: 2px;
  background: var(--gold); margin-bottom: 1.4rem;
}
.sec-head h2 { margin-bottom: 0.45em; }
.sec-head p { color: rgba(61, 50, 38, 0.78); font-size: var(--fs-lead); max-width: 54ch; }
.section--ink .sec-head p { color: rgba(244, 237, 225, 0.75); }

.sec-head--between {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; max-width: none; flex-wrap: wrap;
}
.sec-head--between > div { max-width: 46ch; }

/* --- 4. Type utilities -------------------------------------------------- */
.eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--gold-text);
  font-weight: 500;
  margin: 0 0 1.25rem;
}

.lead { font-size: var(--fs-lead); line-height: 1.6; color: rgba(61, 50, 38, 0.85); }

.meta {
  font-size: var(--fs-xs);
  color: rgba(61, 50, 38, 0.75);
  letter-spacing: 0.02em;
}

.cat {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.sample-chip {
  display: inline-block;
  font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-text); border: 1px solid var(--gold-deep);
  padding: 0.15rem 0.5rem; margin-bottom: 0.75rem;
}

/* --- 5. Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans);
  font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0.02em;
  padding: 0.95rem 1.85rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn--primary { background: var(--gold-deep); color: #FFFDF8; }
.btn--primary:hover { background: var(--brown); color: #FFFDF8; }

.btn--ghost { background: transparent; color: var(--brown); border-color: var(--hairline); }
.btn--ghost:hover { background: var(--brown); color: var(--beige); border-color: var(--brown); }

.btn--light { background: var(--beige); color: var(--brown); }
.btn--light:hover { background: var(--gold); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.link-more {
  display: inline-block;
  font-size: var(--fs-sm); font-weight: 500;
  color: var(--brown); text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.link-more:hover { color: var(--gold-text); border-color: var(--gold-deep); }

/* --- 6. Header / navigation -------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.site-header.is-solid {
  background: rgba(244, 237, 225, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom-color: var(--hairline);
}
.site-header--static { background: rgba(244, 237, 225, 0.94); border-bottom-color: var(--hairline); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; min-height: 78px;
}

.brand {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 500;
  color: var(--brown); text-decoration: none; letter-spacing: -0.01em;
  line-height: 1.1; flex-shrink: 0;
}
.brand span { display: block; font-family: var(--sans); font-size: 0.625rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep);
  margin-top: 3px; font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: var(--fs-sm); color: var(--brown); text-decoration: none;
  padding-block: 0.4rem; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta { flex-shrink: 0; }
.nav-toggle { display: none; }

@media (max-width: 1000px) {
  .nav-links, .nav > .nav-cta { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 0;
  }
  .nav-toggle span { display: block; height: 1.5px; width: 26px; background: var(--brown); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--beige);
  padding: 96px var(--gutter) 3rem;
  display: flex; flex-direction: column; justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.45s var(--ease);
  overflow-y: auto;
}
.mobile-menu[data-open="true"] { transform: translateY(0); }
.mobile-menu ul { list-style: none; margin: 0 0 2.5rem; padding: 0; }
.mobile-menu li { border-bottom: 1px solid var(--hairline-soft); margin: 0; }
.mobile-menu a {
  display: block; padding: 1rem 0;
  font-family: var(--serif); font-size: 1.6rem; color: var(--brown); text-decoration: none;
}
.mobile-menu .btn { width: 100%; }
@media (min-width: 1001px) { .mobile-menu { display: none; } }

/* --- 7. Hero ------------------------------------------------------------ */
.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem); }
.hero__grid {
  display: grid; grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2.5rem, 5vw, 5rem); align-items: center;
}
.hero__name {
  font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.03em;
  margin: 0 0 1.1rem;
}
.hero__statement {
  font-family: var(--serif); font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  line-height: 1.42; color: var(--brown-ink); font-style: italic;
  max-width: 26ch; margin: 0 0 1.4rem;
}
.hero__copy { max-width: 46ch; color: rgba(61, 50, 38, 0.8); margin-bottom: 2.2rem; }
.hero__figure { position: relative; }
.hero__figure::after {
  content: ""; position: absolute; inset: auto -18px -18px auto;
  width: 62%; height: 58%; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  pointer-events: none;
}

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { order: -1; }
  .hero__figure::after { inset: auto -10px -10px auto; }
}

/* Interior page hero */
.page-hero { padding-block: clamp(4.5rem, 8vw, 7.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { max-width: 20ch; margin-bottom: 0.5em; }
.page-hero .lead { max-width: 56ch; }

/* --- 8. Image placeholders --------------------------------------------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(176,141,87,0.07) 0 12px, transparent 12px 24px),
    var(--beige-shade);
  border: 1px solid var(--gold-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1.5rem; gap: 0.35rem;
  color: var(--gold-text);
  aspect-ratio: 4 / 3;
}
.ph__tag { font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.ph__note { font-size: var(--fs-xs); color: rgba(92, 74, 56, 0.85); max-width: 24ch; line-height: 1.4; }
.ph--portrait { aspect-ratio: 4 / 5; }
.ph--tall { aspect-ratio: 3 / 4; }
.ph--wide { aspect-ratio: 16 / 9; }
.ph--square { aspect-ratio: 1 / 1; }

/* --- 9. Credibility strip ---------------------------------------------- */
.credibility { border-block: 1px solid var(--hairline); background: var(--paper); }
.cred-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding-block: clamp(2.25rem, 4vw, 3.25rem);
}
.cred-item { padding-inline: clamp(0.75rem, 2vw, 1.75rem); }
.cred-item + .cred-item { border-left: 1px solid var(--hairline-soft); }
.cred-item:first-child { padding-left: 0; }
.cred-item:last-child { padding-right: 0; }
.cred-item strong {
  display: block; font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.3rem, 2vw, 1.75rem); color: var(--brown);
  line-height: 1.1; margin-bottom: 0.45rem; letter-spacing: -0.01em;
}
.cred-item span { font-size: var(--fs-xs); color: rgba(61,50,38,0.72); line-height: 1.45; display: block; }

@media (max-width: 900px) {
  .cred-grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 0; }
  .cred-item { padding-inline: 0 1.5rem; }
  .cred-item + .cred-item { border-left: 0; }
  .cred-item:nth-child(even) { border-left: 1px solid var(--hairline-soft); padding-left: 1.5rem; }
}

/* --- 10. Split editorial rows ------------------------------------------ */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem); align-items: center;
}
.split--40 { grid-template-columns: 0.85fr 1.15fr; }
.split--60 { grid-template-columns: 1.15fr 0.85fr; }
.split__body { max-width: 52ch; }
@media (max-width: 880px) {
  .split, .split--40, .split--60 { grid-template-columns: 1fr; }
  .split--flip .split__media { order: -1; }
}

/* --- 11. Article cards -------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.75rem, 3vw, 2.75rem); }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; }
.card .ph { margin-bottom: 1.35rem; }
.card__cat { margin-bottom: 0.6rem; }
.card h3 { font-size: 1.3rem; margin-bottom: 0.55rem; }
.card h3 a { color: inherit; text-decoration: none; background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size 0.35s var(--ease); padding-bottom: 2px; }
.card:hover h3 a { background-size: 100% 1px; }
.card p { font-size: var(--fs-sm); color: rgba(61,50,38,0.78); margin-bottom: 1rem; }
.card .meta { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--hairline-soft); }

/* --- 12. Pathways (Work With Me) ---------------------------------------- */
.pathways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.pathway {
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.2vw, 2rem);
  border-top: 2px solid var(--gold);
  border-right: 1px solid var(--hairline-soft);
  display: flex; flex-direction: column;
}
.pathway:last-child { border-right: 0; }
.pathway h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.pathway p { font-size: var(--fs-sm); color: rgba(61,50,38,0.78); margin-bottom: 1.5rem; }
.pathway .link-more { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) {
  .pathways { grid-template-columns: repeat(2, 1fr); }
  .pathway:nth-child(2n) { border-right: 0; }
}
@media (max-width: 560px) {
  .pathways { grid-template-columns: 1fr; }
  .pathway { border-right: 0; }
}

/* --- 13. Speaking list -------------------------------------------------- */
.speaking-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(244,237,225,0.22); }
.speaking-list li { margin: 0; border-bottom: 1px solid rgba(244,237,225,0.22); }
.speaking-item {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 1.5rem; align-items: baseline;
  padding-block: 1.4rem;
}
.speaking-item .year { font-family: var(--serif); font-size: 1.15rem; color: var(--gold-onDark); }
.speaking-item h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.speaking-item p { font-size: var(--fs-sm); margin: 0; color: rgba(244,237,225,0.7); }
.speaking-item .kind { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(244,237,225,0.72); }
@media (max-width: 700px) {
  .speaking-item { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* --- 14. Pull quotes / testimonials ------------------------------------- */
.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 4vw, 3.5rem); }
@media (max-width: 800px) { .quote-grid { grid-template-columns: 1fr; } }

.pullquote { border-top: 2px solid var(--gold); padding-top: 1.75rem; }
.pullquote blockquote {
  margin: 0 0 1.25rem; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.45; color: var(--brown);
}
.pullquote figcaption { font-size: var(--fs-sm); color: rgba(61,50,38,0.72); }
.pullquote figcaption strong { color: var(--brown); font-weight: 600; display: block; }

/* --- 15. Newsletter ----------------------------------------------------- */
.newsletter { background: var(--brown); color: rgba(244,237,225,0.85); }
.newsletter h2 { color: var(--beige); }
.newsletter__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 860px) { .newsletter__grid { grid-template-columns: 1fr; } }

.subscribe-form { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.subscribe-form label { flex: 1 1 260px; }
.subscribe-form input[type="email"] {
  width: 100%; background: transparent; border: 1px solid rgba(244,237,225,0.35);
  color: var(--beige); padding: 0.95rem 1.1rem; font-family: var(--sans); font-size: var(--fs-sm);
}
.subscribe-form input::placeholder { color: rgba(244,237,225,0.5); }
.subscribe-form input:focus-visible { outline-color: var(--gold); border-color: var(--gold); }
.list-choice { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.1rem; font-size: var(--fs-sm); }
.list-choice label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.list-choice input { accent-color: var(--gold); width: 16px; height: 16px; }

/* --- 16. Forms ---------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 500; color: var(--brown); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: var(--fs-body); color: var(--charcoal);
  background: var(--paper); border: 1px solid var(--hairline);
  padding: 0.85rem 1rem; width: 100%;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--gold-deep); }
.field-error { font-size: var(--fs-xs); color: #8C2F1E; min-height: 1.1em; }
.field[data-invalid="true"] input, .field[data-invalid="true"] select, .field[data-invalid="true"] textarea { border-color: #8C2F1E; }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: var(--fs-sm); margin-top: 1.25rem; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* --- 17. Hey Rafiki (softer register) ----------------------------------- */
.rafiki { background: var(--paper); }
.rafiki .sec-head::before { width: 90px; background: var(--gold-wash); border-top: 1px solid var(--gold); height: 3px; }
.rafiki-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.rafiki-strip .ph { border-radius: 3px; }
@media (max-width: 700px) { .rafiki-strip { grid-template-columns: 1fr 1fr; } .rafiki-strip > *:last-child { display: none; } }

.page-rafiki { --sec-y: clamp(5rem, 10vw, 9.5rem); }
.page-rafiki .ph { border-radius: 3px; }

/* --- 18. Courses -------------------------------------------------------- */
.course-list { display: grid; gap: 0; border-top: 1px solid var(--hairline); }
.course {
  display: grid; grid-template-columns: 0.9fr 1.6fr auto; gap: clamp(1.5rem, 3vw, 3rem);
  padding-block: clamp(2rem, 3.5vw, 3rem); border-bottom: 1px solid var(--hairline);
  align-items: start;
}
.course h3 { margin-bottom: 0.4rem; }
.course dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; margin: 1.25rem 0 0; font-size: var(--fs-sm); }
.course dt { color: rgba(61,50,38,0.78); }
.course dd { margin: 0; color: var(--brown); }
.course__action { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
@media (max-width: 880px) { .course { grid-template-columns: 1fr; } }

.waitlist-note {
  border: 1px solid var(--gold); padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--gold-wash); max-width: 60ch;
}

/* --- 19. Booking options ------------------------------------------------ */
.booking-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--hairline); }
.booking-option {
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 2.5vw, 2.25rem) clamp(1.75rem, 3vw, 2.5rem) 0;
  border-bottom: 1px solid var(--hairline);
}
.booking-option:nth-child(even) { padding-left: clamp(1.5rem, 2.5vw, 2.25rem); border-left: 1px solid var(--hairline); }
.booking-option dl { display: grid; grid-template-columns: 88px 1fr; gap: 0.3rem 1rem; font-size: var(--fs-sm); margin: 1.1rem 0 0; }
.booking-option dt { color: rgba(61,50,38,0.78); }
.booking-option dd { margin: 0; }
@media (max-width: 760px) {
  .booking-grid { grid-template-columns: 1fr; }
  .booking-option, .booking-option:nth-child(even) { padding-inline: 0; border-left: 0; }
}

.scheduler-embed {
  border: 1px solid var(--hairline); background: var(--paper);
  min-height: 620px; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
}
.scheduler-embed p { max-width: 44ch; color: rgba(61,50,38,0.8); font-size: var(--fs-sm); }

/* --- 20. Article template ----------------------------------------------- */
.article-head { max-width: 800px; margin-inline: auto; text-align: left; }
.article-head h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: 0.6em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center;
  padding-block: 1.1rem; border-block: 1px solid var(--hairline); font-size: var(--fs-sm); }
.article-body { max-width: 68ch; margin-inline: auto; font-size: 1.125rem; line-height: 1.75; }
.article-body h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 2.2em; }
.article-body blockquote {
  margin: 2.2rem 0; padding-left: 1.75rem; border-left: 2px solid var(--gold);
  font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.5; color: var(--brown);
}
.article-body figure { margin: 2.5rem 0; }
.article-body figcaption { font-size: var(--fs-xs); color: rgba(61,50,38,0.78); margin-top: 0.6rem; }
.share { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; font-size: var(--fs-sm); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  padding-block: 1.25rem; border-block: 1px solid var(--hairline); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.chips li { margin: 0; }
.chips a { font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--hairline); padding: 0.4rem 0.85rem; text-decoration: none; color: var(--brown); }
.chips a:hover, .chips a[aria-current="true"] { background: var(--brown); color: var(--beige); border-color: var(--brown); }
.search-field { display: flex; align-items: center; gap: 0.5rem; border: 1px solid var(--hairline); background: var(--paper); padding: 0.5rem 0.85rem; }
.search-field input { border: 0; background: transparent; font-family: var(--sans); font-size: var(--fs-sm); min-width: 200px; }
.search-field input:focus { outline: none; }

.pagination { display: flex; gap: 0.5rem; justify-content: center; list-style: none; padding: 0; margin: 3rem 0 0; }
.pagination li { margin: 0; }
.pagination a { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center;
  border: 1px solid var(--hairline); text-decoration: none; color: var(--brown); font-size: var(--fs-sm); }
.pagination a[aria-current="page"] { background: var(--brown); color: var(--beige); border-color: var(--brown); }

/* Featured article */
.featured { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 860px) { .featured { grid-template-columns: 1fr; } }

/* --- 21. Footer --------------------------------------------------------- */
.site-footer { background: var(--charcoal); color: rgba(244,237,225,0.72); padding-block: clamp(3.5rem, 6vw, 5.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); }
.site-footer h2, .site-footer h3 { color: var(--beige); }
.footer-brand { font-family: var(--serif); font-size: 1.6rem; color: var(--beige); margin: 0 0 0.5rem; }
.footer-tag { font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-onDark); }
.footer-col h3 { font-family: var(--sans); font-size: var(--fs-xs); letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(244,237,225,0.55); margin-bottom: 1.1rem; font-weight: 500; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: rgba(244,237,225,0.8); text-decoration: none; font-size: var(--fs-sm); }
.footer-col a:hover { color: var(--gold-onDark); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem;
  border-top: 1px solid rgba(244,237,225,0.16); font-size: var(--fs-xs);
}
.footer-bottom ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand-col { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* --- 22. Motion --------------------------------------------------------- */
/* One reveal per major section, not per element. */
[data-reveal] { opacity: 0; transform: translateY(18px); }
[data-reveal].is-in { opacity: 1; transform: none; transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }

.hero:not(.hero--cine) .hero__intro > * { opacity: 0; animation: rise 0.9s var(--ease) forwards; }
.hero:not(.hero--cine) .hero__intro > *:nth-child(1) { animation-delay: 0.05s; }
.hero:not(.hero--cine) .hero__intro > *:nth-child(2) { animation-delay: 0.15s; }
.hero:not(.hero--cine) .hero__intro > *:nth-child(3) { animation-delay: 0.25s; }
.hero:not(.hero--cine) .hero__intro > *:nth-child(4) { animation-delay: 0.35s; }
.hero:not(.hero--cine) .hero__intro > *:nth-child(5) { animation-delay: 0.45s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero:not(.hero--cine) .hero__intro > * { opacity: 1; }
}

/* --- 23. Print ---------------------------------------------------------- */
@media print {
  .site-header, .mobile-menu, .newsletter, .site-footer { display: none; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   24. CINEMATIC LAYER
   Scroll-driven motion, masked type reveals, cross-document page transitions.
   Everything here is additive and is switched off entirely by
   prefers-reduced-motion (see section 25).
   ========================================================================== */

:root {
  --ease-cine: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-slow: cubic-bezier(0.65, 0.05, 0.15, 1);
}

/* --- 24.1 Cross-document page transitions ------------------------------- */
@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: vt-out 0.32s var(--ease-cine) both;
}
::view-transition-new(root) {
  animation: vt-in 0.52s var(--ease-cine) both;
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

/* The wordmark persists across pages instead of blinking out. */
.brand { view-transition-name: brand; }

/* --- 24.2 Masked line reveals ------------------------------------------- */
/* A line of type sits inside a clipping box and rises into it.
   Used on headlines only — not on every paragraph. */
.mask { display: block; overflow: hidden; }
.mask > * {
  display: block;
  transform: translateY(115%);
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.is-in .mask > *,
.hero--cine .mask > *,
.hero--type .mask > * {
  transform: none;
  transition: transform 1.15s var(--ease-cine) var(--d, 0s);
}
.hero--cine .mask > *,
.hero--type .mask > * { transform: translateY(115%); animation: mask-rise 1.15s var(--ease-cine) var(--d, 0s) forwards; }
@keyframes mask-rise { to { transform: none; } }

/* Softer fade for supporting copy under a masked headline. */
.fade-up { opacity: 0; transform: translateY(20px); }
.is-in .fade-up,
.hero--cine .fade-up,
.hero--type .fade-up {
  animation: fade-up 1s var(--ease-cine) var(--d, 0s) forwards;
}
@keyframes fade-up { to { opacity: 1; transform: none; } }

/* --- 24.3 Cinematic hero ------------------------------------------------ */
.hero--cine {
  position: relative;
  min-height: min(94svh, 900px);
  display: flex;
  align-items: center;
  padding-block: clamp(5rem, 10vh, 8rem) clamp(4rem, 8vh, 6rem);
  overflow: hidden;
}

.hero--cine .hero__grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
  width: 100%;
}

/* Right column bleeds off the viewport edge — the frame stops being a box. */
.hero--cine .hero__figure {
  margin-right: calc(-1 * var(--gutter));
  position: relative;
}
.hero--cine .hero__figure::after { display: none; }

.hero__frame {
  position: relative;
  overflow: hidden;
  clip-path: inset(0 0 100% 0);
  animation: curtain 1.5s var(--ease-slow) 0.15s forwards;
  border-radius:12px;
}
@keyframes curtain { to { clip-path: inset(0 0 0 0); } }

.hero__frame > .ph {
  transform: scale(1.14);
  animation: kenburns 16s var(--ease-slow) 0.4s forwards;
}
@keyframes kenburns { to { transform: scale(1); } }

/* A gold hairline draws itself across the hero once, then stays. */
.hero__rule {
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  animation: draw 1.4s var(--ease-cine) 0.9s forwards;
  margin-bottom: 1.75rem;
}
@keyframes draw { to { transform: scaleX(1); } }

.hero__scroll {
  position: absolute; left: var(--gutter); bottom: clamp(1.5rem, 4vh, 2.75rem);
  display: flex; align-items: center; gap: 0.75rem;
  font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(61, 50, 38, 0.75);
  opacity: 0; animation: fade-up 0.9s var(--ease-cine) 1.9s forwards;
}
.hero__scroll i {
  display: block; width: 44px; height: 1px; background: var(--gold-deep);
  transform-origin: left; animation: nudge 2.6s var(--ease-slow) 2.6s infinite;
}
@keyframes nudge {
  0%, 70%, 100% { transform: scaleX(1); opacity: 1; }
  35% { transform: scaleX(0.45); opacity: 0.55; }
}

@media (max-width: 880px) {
  .hero--cine { min-height: 0; }
  .hero--cine .hero__grid { grid-template-columns: 1fr; }
  .hero--cine .hero__figure { margin-right: 0; margin-inline: calc(-1 * var(--gutter)); }
  .hero__scroll { display: none; }
}

/* --- 24.4 Scroll-driven parallax ---------------------------------------- */
/* Native scroll-driven animations: no scroll listeners, no jank.
   Browsers without support simply get the static composition. */
@supports (animation-timeline: view()) {
  .parallax {
    animation: parallax linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
    will-change: transform;
  }
  @keyframes parallax {
    from { transform: translate3d(0, 7%, 0); }
    to   { transform: translate3d(0, -7%, 0); }
  }

  .parallax--deep { animation-name: parallax-deep; }
  @keyframes parallax-deep {
    from { transform: translate3d(0, 12%, 0) scale(1.12); }
    to   { transform: translate3d(0, -8%, 0) scale(1.12); }
  }

  /* Sections settle into place as they enter, instead of popping. */
  .settle {
    animation: settle linear both;
    animation-timeline: view();
    animation-range: entry 5% entry 62%;
  }
  @keyframes settle {
    from { opacity: 0; transform: translate3d(0, 42px, 0); }
    to   { opacity: 1; transform: none; }
  }
  /* When native support exists, the JS reveal is redundant. */
  .settle[data-reveal] { opacity: initial; transform: initial; }

  /* Masked headings inside a settling section run on the same timeline.
     Without this they inherit .is-in (applied on load) and never animate. */
  .settle .mask > * {
    animation: mask-scroll 1s var(--ease-cine) both;
    animation-timeline: view();
    animation-range: entry 12% entry 68%;
    transition: none;
  }
  @keyframes mask-scroll {
    from { transform: translateY(115%); }
    to   { transform: none; }
  }
}

.parallax-window { overflow: hidden; }

/* --- 24.5 Full-bleed cinematic band ------------------------------------- */
.band {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  min-height: min(78svh, 720px);
  display: flex; align-items: flex-end;
  padding-block: clamp(3rem, 8vh, 6rem);
}
.band__media { position: absolute; inset: -12% 0; }
.band__media .ph {
  height: 100%; width: 100%; aspect-ratio: auto;
  border: 0; background:
    repeating-linear-gradient(135deg, rgba(176,141,87,0.16) 0 14px, transparent 14px 28px),
    var(--brown);
  color: var(--gold-onDark);
}
.band__media .ph__note { color: rgba(244, 237, 225, 0.75); }
.band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(61,50,38,0.92) 0%, rgba(61,50,38,0.55) 45%, rgba(61,50,38,0.25) 100%);
}
.band > .wrap { position: relative; z-index: 1; }
.band blockquote {
  margin: 0; max-width: 22ch;
  font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.12; letter-spacing: -0.02em; color: var(--beige);
}
.band figcaption { margin-top: 1.75rem; color: var(--gold-onDark); font-size: var(--fs-sm); }

/* --- 24.6 Media hover ---------------------------------------------------- */
.card .parallax-window { position: relative; }
.card .parallax-window .ph {
  transition: transform 1.1s var(--ease-cine), filter 0.7s var(--ease-cine);
}
.card:hover .parallax-window .ph,
.card:focus-within .parallax-window .ph { transform: scale(1.045); }

/* --- 24.7 Auto-hiding navigation ---------------------------------------- */
.site-header {
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease),
              transform 0.55s var(--ease-cine);
}
.site-header.is-hidden { transform: translateY(-102%); }

/* --- 24.8 Reading progress ---------------------------------------------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 200;
  background: var(--gold); transform: scaleX(0); transform-origin: 0 50%;
}
@supports (animation-timeline: scroll()) {
  .progress {
    animation: progress linear both;
    animation-timeline: scroll(root block);
  }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* --- 24.9 Sticky chapter ------------------------------------------------- */
/* The text column holds while its imagery scrolls past it. */
@media (min-width: 881px) {
  .chapter .split__body { position: sticky; top: 22vh; align-self: start; }
  .chapter .split { align-items: start; }
}

/* --- 25. REDUCED MOTION (overrides section 24 entirely) ------------------ */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }

  .mask > *, .fade-up { transform: none !important; opacity: 1 !important; animation: none !important; }
  .hero__frame { clip-path: none; animation: none; }
  .hero--type .mask > *, .hero--type .fade-up { transform: none !important; opacity: 1 !important; animation: none !important; }
  .hero__frame > .ph { transform: none; animation: none; }
  .hero__rule { transform: none; animation: none; }
  .hero__scroll { opacity: 1; animation: none; }
  .hero__scroll i { animation: none; }
  .parallax, .parallax--deep, .settle { animation: none !important; transform: none !important; opacity: 1 !important; }
  .progress { animation: none; transform: scaleX(0); }
  .site-header.is-hidden { transform: none; }
  .card:hover .parallax-window .ph { transform: none; }
  .chapter .split__body { position: static; }
}

/* ==========================================================================
   26. PHOTOGRAPHY
   .shot replaces .ph wherever a real image exists. Same aspect-ratio
   modifiers, same motion hooks, so the cinematic layer needs no changes.
   ========================================================================== */

.shot {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  background: var(--beige-shade);
}
.shot img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 28%;   /* keep faces out of the crop */
}
.shot--portrait { aspect-ratio: 4 / 5; }
.shot--tall     { aspect-ratio: 4 / 4.5; }
.shot--wide     { aspect-ratio: 16 / 9; }
.shot--square   { aspect-ratio: 1 / 1; }
.shot--free     { aspect-ratio: auto; }

/* Low-resolution sources are softened rather than left to look pixelated.
   Remove this once high-res photography is supplied. */
.shot--lowres img { filter: saturate(1.02) contrast(1.02); }

/* Motion hooks — mirror the .ph selectors from sections 24.3, 24.4 and 24.6 */
.hero__frame > .shot img {
  transform: scale(1.14);
  animation: kenburns 16s var(--ease-slow) 0.4s forwards;
}
.card .parallax-window .shot img {
  transition: transform 1.1s var(--ease-cine);
}
.card:hover .parallax-window .shot img,
.card:focus-within .parallax-window .shot img { transform: scale(1.045); }

.band__media .shot {
  height: 100%; width: 100%;
  aspect-ratio: auto; background: var(--charcoal);
}
.band__media .shot img { object-position: 50% 34%; }

@media (prefers-reduced-motion: reduce) {
  .hero__frame > .shot img { transform: none; animation: none; }
  .card:hover .parallax-window .shot img { transform: none; }
}

/* ==========================================================================
   27. HERO — INTERACTIVE LAYER
   Pointer-reactive portrait, per-character headline, rotating focus line,
   and a scroll-linked exit. All of it is progressive: without JS or pointer
   support the hero still reads as a finished composition.
   ========================================================================== */

.hero--cine { --px: 0; --py: 0; --mx: 50%; --my: 40%; }

/* --- 27.1 Pointer-following gold wash ----------------------------------- */
.hero__glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(520px circle at var(--mx) var(--my),
              rgba(176, 141, 87, 0.20), rgba(176, 141, 87, 0) 68%);
  opacity: 0;
  transition: opacity 0.7s var(--ease-cine);
}
.hero--cine[data-pointer="true"] .hero__glow { opacity: 1; }
.hero--cine > .wrap { position: relative; z-index: 1; }

/* --- 27.2 Per-character headline ---------------------------------------- */
.hero__name .word {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
  vertical-align: bottom;
}
.hero__name .ch {
  display: inline-block;
  transform: translateY(112%);
  animation: ch-rise 1s var(--ease-cine) calc(0.5s + var(--i, 0) * 0.028s) forwards;
}
@keyframes ch-rise { to { transform: none; } }

/* Each character drifts a touch against the pointer — the headline stops
   feeling like a flat block of type without becoming a novelty effect. */
.hero__name .ch {
  translate: calc(var(--px) * var(--w, 0) * 3px) 0;
  transition: translate 0.9s var(--ease-cine);
}

/* --- 27.3 Rotating focus line -------------------------------------------- */
.hero__now {
  display: flex; align-items: baseline; gap: 0.7rem;
  margin: 0 0 2rem;
  font-size: var(--fs-sm);
}
.hero__now-label {
  flex-shrink: 0;
  font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-text);
}
.hero__now-label::after {
  content: ""; display: inline-block; width: 22px; height: 1px;
  background: var(--gold); margin-left: 0.7rem; vertical-align: middle;
}
.rotator {
  position: relative; display: block; overflow: hidden;
  height: 1.6em; flex: 1 1 auto;
}
.rotator__item {
  position: absolute; inset: 0; white-space: nowrap;
  color: var(--brown); font-weight: 500;
  opacity: 0; transform: translateY(100%);
  transition: transform 0.75s var(--ease-cine), opacity 0.5s var(--ease-cine);
}
.rotator__item.is-active { opacity: 1; transform: none; }
.rotator__item.is-out { opacity: 0; transform: translateY(-100%); }

/* --- 27.4 Pointer-reactive portrait -------------------------------------- */
.hero__figure { perspective: 1400px; }

.hero__frame {
  transform: rotateY(calc(var(--px) * 2.4deg)) rotateX(calc(var(--py) * -2deg));
  transform-style: preserve-3d;
  transition: transform 0.85s var(--ease-cine);
}
/* Ken Burns moves to the wrapper so the image itself is free to track the
   pointer without the two transforms fighting. */
.hero__frame > .shot {
  transform: scale(1.14);
  animation: kenburns 16s var(--ease-slow) 0.4s forwards;
}
.hero__frame > .shot img {
  transform: none;
  animation: none;
  translate: calc(var(--px) * -16px) calc(var(--py) * -16px);
  transition: translate 0.9s var(--ease-cine);
}

/* Gold rule that counter-moves against the portrait, giving real depth. */
.hero__mark {
  position: absolute; z-index: 2; pointer-events: none;
  right: 6%; bottom: -14px; width: 58%; height: 46%;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  translate: calc(var(--px) * 14px) calc(var(--py) * 12px);
  transition: translate 0.9s var(--ease-cine);
  opacity: 0;
  animation: fade-up 1s var(--ease-cine) 1.5s forwards;
}

/* --- 27.5 Scroll-linked exit --------------------------------------------- */
@supports (animation-timeline: view()) {
  .hero--cine .hero__intro {
    animation: hero-lift linear both;
    animation-timeline: view();
    animation-range: exit 0% exit 85%;
  }
  @keyframes hero-lift {
    to { opacity: 0.12; transform: translateY(-52px); }
  }

  .hero--cine .hero__figure {
    animation: hero-sink linear both;
    animation-timeline: view();
    animation-range: exit 0% exit 100%;
  }
  @keyframes hero-sink {
    to { transform: translateY(46px) scale(0.965); opacity: 0.55; }
  }
}

@media (max-width: 880px) {
  .hero__mark { display: none; }
  .hero__frame { transform: none; }
}

/* --- 27.6 Reduced motion -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero__glow { display: none; }
  .hero__name .ch {
    transform: none !important; animation: none !important; translate: none !important;
  }
  .hero__frame,
  .hero__frame > .shot,
  .hero__frame > .shot img,
  .hero__mark { transform: none !important; animation: none !important; translate: none !important; }
  .hero__mark { opacity: 1; }
  .rotator { height: auto; }
  .rotator__item { position: relative; opacity: 1; transform: none; }
  .rotator__item:not(.is-active) { display: none; }
  .hero--cine .hero__intro,
  .hero--cine .hero__figure { animation: none !important; opacity: 1 !important; transform: none !important; }
}
