/* ---- self-hosted fonts: Fraunces (display) · Work Sans (body) · Amiri (arabic) ---- */
/* Amiri 400 normal arabic */
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/amiri-400-arabic-202e96cd72.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* Amiri 400 normal latin-ext */
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/amiri-400-latin-ext-5ed9bd83f2.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Amiri 400 normal latin */
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/amiri-400-latin-967a6925cf.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Amiri 700 normal arabic */
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/amiri-700-arabic-b2ed812649.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* Amiri 700 normal latin-ext */
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/amiri-700-latin-ext-0bf419550c.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Amiri 700 normal latin */
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/amiri-700-latin-64a948bf1b.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Fraunces 500 italic latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/fraunces-500i-latin-ext-2c1b78332c.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fraunces 500 italic latin */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/fraunces-500i-latin-b5c27de09d.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Fraunces 600 italic latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/fraunces-600i-latin-ext-2c1b78332c.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fraunces 600 italic latin */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/fraunces-600i-latin-b5c27de09d.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Fraunces 500 normal latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/fraunces-500-latin-ext-cab03ef6e7.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fraunces 500 normal latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/fraunces-500-latin-8ca9c2a4cc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Fraunces 600 normal latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/fraunces-600-latin-ext-cab03ef6e7.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fraunces 600 normal latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/fraunces-600-latin-8ca9c2a4cc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Fraunces 700 normal latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/fraunces-700-latin-ext-cab03ef6e7.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fraunces 700 normal latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/fraunces-700-latin-8ca9c2a4cc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* WorkSans 400 normal latin-ext */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/worksans-400-latin-ext-7ebe4aa206.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* WorkSans 400 normal latin */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/worksans-400-latin-d745e17331.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* WorkSans 500 normal latin-ext */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/worksans-500-latin-ext-7ebe4aa206.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* WorkSans 500 normal latin */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/worksans-500-latin-d745e17331.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* WorkSans 600 normal latin-ext */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/worksans-600-latin-ext-7ebe4aa206.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* WorkSans 600 normal latin */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/worksans-600-latin-d745e17331.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Strength & Spirituality — design system
   Emerald & Ink: white #FFFFFF canvas · forest #0B3B2E · ink #17181A
   emerald #0DA678 primary · orange spark #FF6B35 (ladder rungs, dark eyebrow
   dot, stat numbers only) · pale tint bands #F4F8F5
   ========================================================================== */

:root {
  --cream: #FFFFFF;
  --navy: #0B3B2E;
  --ink: #17181A;
  --accent: #0DA678;
  --accent-deep: #0B8A63;
  --accent-text: #0A855D; /* AA-safe emerald for small text & white-label buttons (4.64:1) */
  --spark: #FF6B35;
  --spark-ink: #C24E1B;
  --muted: #5A615E;
  --line: #E7ECE8;
  --head: #121212;

  /* 8pt spacing scale */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 48px;
  --s8: 64px;
  --s10: 80px;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Work Sans', -apple-system, system-ui, sans-serif;
  --arabic: 'Amiri', 'Geeza Pro', 'Traditional Arabic', 'Noto Naskh Arabic', serif;

  --paper: #ffffff;
  --paper-warm: #F4F8F5;
  /* Reading surfaces (owner direction): pale-green paper behind long text */
  --paper-mint: #F4F8F5;
  --paper-line: #E2EAE4;
  /* Same idea on dark chapters: translucent white paper, cream text */
  --paper-dark: rgba(255, 255, 255, 0.045);
  --paper-dark-line: rgba(255, 255, 255, 0.09);
  --radius: 4px;
  --card-radius: 12px;
  --card-shadow: 0 1px 2px rgba(23, 24, 26, 0.04);
  --wrap: 68rem;
  --measure: 68ch;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  color: var(--head);
  line-height: 1.22;
  margin: 0;
}

p {
  margin: 0 0 var(--s2);
}

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

a {
  color: var(--accent-text);
}

a:hover {
  color: var(--navy);
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s2);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: #fff;
  padding: var(--s1) var(--s2);
  border-radius: 0 0 var(--radius) 0;
}

.skip:focus {
  left: 0;
  color: #fff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Arabic terms: fallback stack + RTL isolation */
.arabic {
  font-family: var(--arabic);
  direction: rtl;
  unicode-bidi: isolate;
  font-size: 1.3em;
  color: var(--head);
}

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */

/* Sticky solid header — 100% opaque cream, hairline, soft shadow.
   No transparency games (skill §1, adapted to the house palette). */
.site-head {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(11, 59, 46, 0.12);
  background: var(--cream);
  box-shadow: 0 4px 20px rgba(11, 59, 46, 0.06);
}

.site-head__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s1) var(--s3);
  padding-block: var(--s2);
}

/* Right end of the header: inline nav (desktop) + the drawer hamburger
   (every viewport — the drawer is the full-sections menu). */
.site-head__side {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-left: auto;
}

.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--head);
}

.brand__amp {
  color: var(--accent-text);
  font-style: italic;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s2);
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--muted);
  padding-block: 8px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--navy);
}

.site-nav a[aria-current='page'] {
  color: var(--navy);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* Hamburger → full-sections drawer. 44px tap target; JS wires the toggle,
   so without JS the button stays hidden and the inline nav still shows. */

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--head);
  cursor: pointer;
}

html.js .menu-btn {
  display: inline-flex;
}

.menu-btn:hover {
  border-color: var(--accent);
  color: var(--accent-text);
}

.menu-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.menu-btn[aria-expanded='true'] {
  border-color: var(--accent);
  color: var(--accent-text);
}

/* --------------------------------------------------------------------------
   Mobile bottom navigation — app-like primary nav below 720px only.
   Desktop keeps the header nav; the bar never renders there.
   -------------------------------------------------------------------------- */

.bottom-nav {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 900;
  display: none;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid rgba(11, 59, 46, 0.12);
  box-shadow: 0 -4px 20px rgba(11, 59, 46, 0.06);
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.bottom-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 3.5rem; /* 56px — comfortably above the 44px tap-target floor */
  padding: 7px 2px 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.bottom-nav__icon {
  width: 20px;
  height: 20px;
}

.bottom-nav__link svg path,
.bottom-nav__link svg rect,
.bottom-nav__link svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.bottom-nav__link[aria-current='page'] {
  color: #0da678; /* owner spec: emerald #0DA678, filled icon state */
}

.bottom-nav__link[aria-current='page'] svg .shape-fill {
  fill: currentColor;
}

/* Content clearance: nothing sits under the bar on mobile (the footer email
   form included — the padding lives below it in the scroll flow). */
@media (max-width: 719px) {
  .bottom-nav {
    display: block;
  }

  body {
    padding-bottom: calc(3.5rem + env(safe-area-inset-bottom));
  }
}

/* --------------------------------------------------------------------------
   Full-sections drawer — frosted glass over a light scrim: the website stays
   clearly visible behind it. Slides in from the right on every viewport.
   -------------------------------------------------------------------------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 1200; /* above the sticky header (1000) and the bottom bar (900) */
  pointer-events: none;
}

.menu.is-open {
  pointer-events: auto;
}

/* Light scrim: 25% ink + a whisper of blur — see-through, not a wall. */
.menu__scrim {
  position: absolute;
  inset: 0;
  background: rgba(23, 24, 26, 0.25);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu.is-open .menu__scrim {
  opacity: 1;
}

.menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 88vw);
  display: flex;
  flex-direction: column;
  background: #ffffff; /* solid fallback where backdrop-filter is unsupported */
  box-shadow: -12px 0 40px rgba(23, 24, 26, 0.12);
  transform: translateX(103%);
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .menu__panel {
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

.menu.is-open .menu__panel {
  transform: none;
}

.menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding: var(--s1) var(--s1) var(--s1) var(--s2);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.menu__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--head);
  margin: 0;
}

.menu__close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--head);
  cursor: pointer;
}

.menu__close:hover {
  border-color: var(--accent);
  color: var(--accent-text);
}

.menu__close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.menu__nav {
  flex: 1;
  overflow-y: auto;
  padding: var(--s2);
  overscroll-behavior: contain;
}

.menu__top {
  list-style: none;
  margin: 0 0 var(--s3);
  padding: 0;
}

.menu__top a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--head);
  font-weight: 600;
  font-size: 1.02rem;
}

.menu__top a:hover {
  color: var(--accent-text);
  background: rgba(13, 166, 120, 0.06);
}

.menu__top a[aria-current='page'] {
  color: var(--accent-text);
  background: rgba(13, 166, 120, 0.09);
}

.menu__group {
  margin-bottom: var(--s3);
}

.menu__group-head {
  margin: 0 0 var(--s1);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}

.menu__group-head a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--head);
  text-decoration: none;
}

.menu__group-head a:hover {
  color: var(--accent-text);
}

.menu__group-head a[aria-current='page'] {
  color: var(--accent-text);
}

/* Current section lights even when a subpage (e.g. a principle) is open */
.menu__group.is-section .menu__group-head a {
  color: var(--accent-text);
}

.menu__sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu__sub a {
  display: flex;
  align-items: center;
  gap: var(--s1);
  min-height: 44px;
  padding: 4px 10px;
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
}

.menu__sub a:hover {
  color: var(--accent-text);
  background: rgba(13, 166, 120, 0.06);
}

/* Current page's section/principle: emerald marker */
.menu__sub a[aria-current='page'] {
  border-left-color: var(--accent);
  background: rgba(13, 166, 120, 0.09);
  color: var(--accent-text);
  font-weight: 600;
}

.menu__n {
  flex: 0 0 auto;
  min-width: 1.6rem;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--accent-text);
}

.menu__days {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--muted);
}

.menu__stage-label {
  padding: var(--s2) 10px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.menu__panel .menu__capture {
  flex-shrink: 0;
  margin: 0;
  padding: var(--s2);
  padding-bottom: calc(var(--s2) + env(safe-area-inset-bottom));
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.6);
  max-width: none;
}

/* Body scroll lock while the drawer is open (html + body for iOS Safari) */
html.menu-open,
html.menu-open body {
  overflow: hidden;
}

/* Mobile header: inline nav collapses away (the bottom bar + drawer take
   over); without JS the nav reverts to the wrapping list so links remain
   reachable. */
@media (max-width: 719px) {
  html.js .site-nav {
    display: none;
  }

  .site-head__row {
    flex-wrap: nowrap;
  }
}

/* --------------------------------------------------------------------------
   Buttons & links (≤2 primary CTAs per viewport)
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: var(--s1) var(--s3);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: var(--accent-text);
  color: #fff;
}

.btn--primary:hover {
  background: #097c56;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px var(--accent);
}

.btn--quiet {
  color: var(--navy);
  border-color: var(--line);
  background: transparent;
}

.btn--quiet:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.text-link {
  color: var(--accent-text);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  font-weight: 500;
  background: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  padding: 0;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
}

.text-link:hover {
  color: var(--navy);
}

/* --------------------------------------------------------------------------
   Hero — calm, type-led, no image, ≤60vh
   -------------------------------------------------------------------------- */

.hero {
  display: flex;
  align-items: center;
  min-height: min(52vh, 30rem);
  padding-block: var(--s8) var(--s6);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, var(--paper-warm) 100%);
}

.hero__kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-text);
  margin: 0 0 var(--s2);
}

.hero__title {
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  line-height: 1.08;
  max-width: 16ch;
  margin-bottom: var(--s2);
}

.hero__sub {
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: var(--s4);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
}

/* Sub-page heads */

.page-head {
  padding-block: var(--s6) var(--s4);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, var(--paper-warm) 100%);
}

.page-head__kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-text);
  margin: 0 0 var(--s1);
}

.page-head h1 {
  font-size: clamp(2.2rem, 7.5vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: var(--s2);
}

.page-head__sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 56ch;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Sections & shared type
   -------------------------------------------------------------------------- */

.block {
  padding-block: var(--s6);
}

.block--flush-top {
  padding-top: var(--s4);
}

.sec-title {
  font-size: clamp(1.6rem, 5.5vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: var(--s3);
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 60ch;
}

/* Tiny muted caption (dates, places, kickers) */
.caption {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 4.5vw, 2rem);
  line-height: 1.3;
  color: var(--head);
  border-left: 4px solid var(--accent);
  padding-left: var(--s3);
  margin: var(--s4) 0;
  max-width: 36ch;
}

.pull cite {
  display: block;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-style: normal;
  color: var(--muted);
  margin-top: var(--s1);
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--head);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  background: var(--paper-warm);
  text-decoration: none;
}

.badge:hover {
  border-color: var(--accent);
  color: var(--accent-text);
}

/* --------------------------------------------------------------------------
   Image bands — calm photography accents; type stays king.
   Standalone figures only: never behind text, never under links.
   -------------------------------------------------------------------------- */

.img-band {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--s2);
}

.img-band img {
  display: block;
  width: 100%;
  height: clamp(180px, 32vw, 300px);
  object-fit: cover;
  border-radius: var(--s2);
}

.img-band--slim img {
  height: clamp(140px, 22vw, 180px);
}

.img-band--thin img {
  height: clamp(120px, 18vw, 160px);
}

/* Cinematic treatment: bottom fade into the paper + a soft vignette.
   Decorative only — no content sits above the band. */
.img-band::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--s2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, 0.55) 100%);
  box-shadow: inset 0 0 42px rgba(11, 59, 46, 0.22);
  pointer-events: none;
}

/* Placement margins where the bands live */
.jstage .img-band {
  margin-bottom: var(--s2);
}

.p-body .img-band {
  margin-bottom: var(--s4);
}

.beat .img-band {
  margin-top: var(--s2);
}

.creds .img-band {
  margin-top: var(--s3);
}

/* --------------------------------------------------------------------------
   Stage strip component
   -------------------------------------------------------------------------- */

.stage-strip {
  list-style: none;
  margin: 0 0 var(--s3);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
}

.stage-strip__item {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s1);
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-warm);
  text-decoration: none;
  font-size: 0.92rem;
}

.stage-strip__item:hover {
  border-color: var(--accent);
}

.stage-strip__n {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--accent-text);
}

.stage-strip__name {
  color: var(--head);
  font-weight: 600;
}

.stage-strip__days {
  color: var(--muted);
  font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   Numbered principle cards
   -------------------------------------------------------------------------- */

.pgrid {
  display: grid;
  gap: var(--s2);
}

.pcard {
  display: block;
  text-decoration: none;
  background: var(--paper-mint);
  border: 1px solid var(--paper-line);
  border-radius: var(--card-radius);
  padding: var(--s3);
  box-shadow: var(--card-shadow);
  transition: border-color 0.15s ease;
}

.pcard:hover {
  border-color: var(--accent);
}

.pcard__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(3rem, 9vw, 4rem);
  line-height: 1;
  color: var(--accent);
  margin-bottom: var(--s1);
}

.pcard__title {
  font-size: 1.2rem;
  color: var(--head);
  margin-bottom: 6px;
}

.pcard__essence {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.45;
  margin: 0;
}

.stage-group {
  margin-bottom: var(--s6);
  scroll-margin-top: var(--s8);
}

.stage-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s1) var(--s2);
  border-bottom: 2px solid var(--navy);
  padding-bottom: var(--s1);
  margin-bottom: var(--s3);
}

.stage-group__name {
  font-size: 1.35rem;
}

.stage-group__days {
  color: var(--accent-text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-group__focus {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 var(--s1);
  max-width: var(--measure);
}

/* --------------------------------------------------------------------------
   Principle page anatomy
   -------------------------------------------------------------------------- */

.p-head {
  padding-block: var(--s6) var(--s4);
  border-bottom: 1px solid var(--line);
}

.p-head__num {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 12vw, 5.5rem);
  line-height: 1;
  color: var(--accent);
}

.p-head__title {
  font-size: clamp(1.9rem, 6vw, 2.9rem);
  line-height: 1.12;
  margin: var(--s1) 0;
}

.p-head__essence {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 4.5vw, 2rem);
  line-height: 1.3;
  color: var(--head);
  border-left: 4px solid var(--accent);
  padding-left: var(--s3);
  max-width: 34ch;
  margin: var(--s3) 0 var(--s2);
}

.p-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s1) var(--s2);
}

.p-body {
  padding-block: var(--s4) var(--s6);
}

.psec {
  max-width: var(--measure);
  margin-bottom: var(--s5);
}

.psec > h2 {
  font-size: clamp(1.45rem, 4.5vw, 1.9rem);
  line-height: 1.2;
  margin-bottom: var(--s2);
}

.psec p {
  margin-bottom: var(--s2);
}

.psec ul,
.psec ol {
  margin: 0 0 var(--s2);
  padding-left: var(--s3);
}

.psec li {
  margin-bottom: var(--s1);
}

.psec blockquote,
.watch-card blockquote {
  margin: 0;
  padding: var(--s2) var(--s3);
  border-left: 3px solid var(--accent);
  background: var(--paper-warm);
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--head);
}

.psec blockquote em {
  color: var(--muted);
}

.psec[data-sec='podcast']:not(.prose-card) {
  border-top: 1px solid var(--line);
  padding-top: var(--s3);
}

/* Start-Small ladder — large numbered rung steps */

.ladder {
  list-style: none;
  margin: var(--s3) 0;
  padding: 0;
}

.ladder__rung {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s3) 0;
  border-bottom: 1px dashed var(--line);
}

.ladder__rung:last-child {
  border-bottom: 0;
}

.ladder__n {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--spark);
  border-radius: 50%;
  background: var(--spark);
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
}

.ladder__action {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  line-height: 1.35;
  color: var(--head);
  padding-top: 4px;
  max-width: 46ch;
}

/* Prev / next */

.pnav {
  display: grid;
  gap: var(--s2);
  border-top: 1px solid var(--line);
  padding-top: var(--s4);
  max-width: var(--measure);
}

.pnav a {
  display: block;
  text-decoration: none;
  padding: var(--s2) var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.pnav a:hover {
  border-color: var(--accent);
}

.pnav__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 4px;
}

.pnav__title {
  font-family: var(--serif);
  color: var(--head);
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Reading surfaces — pale-mint paper cards behind long text (owner direction).
   Light pages get --paper-mint + a --paper-line hairline; dark chapters get a
   translucent white card with cream text. Heroes, stats rows, ladders, nav,
   footer, image bands and pull-quote essence lines stay untouched.
   -------------------------------------------------------------------------- */

.prose-card {
  background: var(--paper-mint);
  border: 1px solid var(--paper-line);
  border-radius: var(--card-radius);
  padding: var(--s3);
  box-shadow: var(--card-shadow);
  max-width: 66ch;
  line-height: 1.7;
}

.prose-card p {
  margin-bottom: 1em;
}

/* A quote inside a mint card lifts to a white panel so it still reads */
.prose-card blockquote {
  background: var(--paper);
}

/* Story beat prose cards sit under the poster title + period */
.beat .prose-card {
  margin-top: var(--s2);
}

/* Text cards inside dark chapters (espresso bands, dark story beats) */
[data-theme='espresso'] .prose-card {
  background: var(--paper-dark);
  border-color: var(--paper-dark-line);
  box-shadow: none;
}

@media (max-width: 719px) {
  .prose-card {
    padding: var(--s2);
  }
}

/* --------------------------------------------------------------------------
   Journey page
   -------------------------------------------------------------------------- */

/* Journey stages render as full-bleed chapters (bone/espresso alternate);
   the .wrap inside the markup keeps the measure. */
.jstage {
  padding-block: var(--s6);
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--s8);
}

.jstage:first-of-type {
  border-top: 0;
  padding-top: var(--s4);
}

.jstage[data-theme='espresso'] {
  border-top-color: var(--cream-line);
}

.jstage__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s1) var(--s2);
  margin-bottom: var(--s2);
}

.jstage__num {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 9vw, 3.8rem);
  line-height: 1;
  color: var(--accent);
}

.jstage__name {
  font-size: clamp(1.4rem, 5vw, 2rem);
  line-height: 1.15;
}

.jstage__days {
  color: var(--muted);
  font-size: 0.85rem;
}

.jstage__focus {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  line-height: 1.35;
  color: var(--head);
  max-width: 30ch;
}

.plist {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin: var(--s2) 0 0;
  padding: 0;
}

.plist a,
.plist__missing {
  display: inline-block;
  font-size: 0.9rem;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-warm);
  text-decoration: none;
  color: var(--head);
}

.plist a:hover {
  border-color: var(--accent);
  color: var(--accent-text);
}

.plist__missing {
  color: var(--muted);
  font-style: italic;
}

.plist__num {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--accent-text);
  margin-right: 4px;
}

/* Week cards */

.weeks {
  display: grid;
  gap: var(--s2);
}

.week-card {
  border: 1px solid var(--paper-line);
  border-left: 4px solid var(--navy);
  border-radius: var(--card-radius);
  background: var(--paper-mint);
  box-shadow: var(--card-shadow);
  padding: var(--s2) var(--s3);
}

.week-card__why {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.week-card__n {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-text);
}

.week-card__habit {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  line-height: 1.3;
  color: var(--head);
  margin: var(--s1) 0 var(--s1);
}

/* Fridge card — printable */

/* Fridge card — printable; on screen it reads as a card pinned to the fridge:
   a slight tilt + layered shadow (skill §7, light touch; nothing else tilts) */
.fridge {
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  background: var(--paper);
  padding: var(--s3);
  max-width: 34rem;
  transform: rotate(1.2deg);
  box-shadow:
    0 1px 2px rgba(11, 59, 46, 0.1),
    0 12px 28px rgba(11, 59, 46, 0.16);
}

.fridge__title {
  font-family: var(--serif);
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1rem;
  color: var(--head);
  border-bottom: 2px solid var(--line);
  padding-bottom: var(--s1);
  margin-bottom: var(--s2);
}

.fridge__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fridge__list li + li {
  border-top: 1px dashed var(--line);
}

.fridge__list label {
  display: flex;
  gap: var(--s2);
  align-items: flex-start;
  padding: var(--s2) 0;
  cursor: pointer;
}

.fridge__list input[type='checkbox'] {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 4px;
  accent-color: var(--accent);
}

.fridge__label {
  font-weight: 700;
  color: var(--head);
}

.fridge__start {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.92rem;
  margin-top: 2px;
}

.fridge__foot {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: var(--s2) 0 0;
}

/* --------------------------------------------------------------------------
   Story — poster beats: big statement + tiny muted caption
   -------------------------------------------------------------------------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.beat {
  border-top: 1px solid var(--line);
  padding: var(--s3) 0;
}

.beat:last-child {
  border-bottom: 1px solid var(--line);
}

.beat__period {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 var(--s1);
}

.beat__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 6vw, 2.2rem);
  line-height: 1.18;
  margin: 0;
  max-width: 24ch;
}

.beat__flag {
  display: inline-block;
  margin-left: var(--s1);
  font-size: 0.68rem;
  color: var(--muted);
  border: 1px dashed var(--muted);
  border-radius: 999px;
  padding: 0 8px;
  vertical-align: middle;
}

/* Closing inheritance line */
.inheritance {
  text-align: center;
  padding-block: var(--s6);
}

.inheritance__line {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 8vw, 3.2rem);
  line-height: 1.15;
  color: var(--head);
  margin: 0 0 var(--s2);
}

.inheritance cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
}

.creds {
  border-top: 1px solid var(--line);
  padding-top: var(--s3);
  max-width: var(--measure);
}

.creds__line {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 var(--s1);
}

.creds__line strong {
  color: var(--head);
}

.creds__fine {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Books
   -------------------------------------------------------------------------- */

.book-grid {
  display: grid;
  gap: var(--s3);
}

.book-card {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  border: 1px solid var(--paper-line);
  border-radius: var(--card-radius);
  background: var(--paper-mint);
  box-shadow: var(--card-shadow);
  padding: var(--s3);
}

.book-card__summary {
  margin: 0;
  line-height: 1.7;
}

/* The notify form lifts to white so it reads on the mint card */
.book-card .capture {
  background: var(--paper);
}

.book-card__status {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.status--published {
  color: var(--head);
}

.status--out-of-print {
  color: var(--muted);
}

.status--forthcoming {
  color: var(--accent-text);
}

.book-card__title {
  font-size: 1.3rem;
}

.book-card__meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.book-card .btn,
.book-card .text-link {
  align-self: flex-start;
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   Watch — filter chips + oEmbed facades
   -------------------------------------------------------------------------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin-bottom: var(--s3);
}

.chip {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-warm);
  color: var(--head);
  cursor: pointer;
}

.chip:hover {
  border-color: var(--accent);
}

.chip[aria-pressed='true'] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.watch-grid {
  display: grid;
  gap: var(--s3);
}

.watch-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--paper-line);
  border-radius: var(--card-radius);
  background: var(--paper-mint);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

/* Stage badges lift to white so they read on the mint card */
.watch-card .badge {
  background: var(--paper);
}

.watch-card__body {
  padding: var(--s2);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.watch-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 var(--s1);
}

.watch-card__meta .badge {
  font-size: 0.66rem;
  padding: 1px 8px;
}

.watch-card__title {
  font-size: 1.05rem;
  margin-bottom: var(--s1);
}

.watch-card__note {
  font-size: 0.85rem;
  color: var(--accent-text);
  margin: 0 0 var(--s1);
}

.watch-card blockquote {
  margin-top: var(--s2);
  font-size: 0.98rem;
}

/* Click-to-play facade */

.facade {
  position: relative;
  background: #000;
  cursor: pointer;
}

.facade img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: 0;
}

.facade-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(11, 59, 46, 0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.facade-play__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  font-size: 1.15rem;
  padding-left: 5px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.facade:hover .facade-play__circle,
.facade-play:focus-visible .facade-play__circle {
  transform: scale(1.06);
  background: var(--accent);
  color: #fff;
}

.facade-iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
}

/* --------------------------------------------------------------------------
   Coaching — offers
   -------------------------------------------------------------------------- */

.offer-grid {
  display: grid;
  gap: var(--s3);
}

.offer-card {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  border: 1px solid var(--paper-line);
  border-left: 4px solid var(--accent);
  border-radius: var(--card-radius);
  background: var(--paper-mint);
  box-shadow: var(--card-shadow);
  padding: var(--s3);
  text-decoration: none;
}

.offer-card:hover {
  border-color: var(--accent);
  border-left-color: var(--accent);
}

.offer-card__channel {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--muted);
}

.offer-card__title {
  font-size: 1.3rem;
}

.offer-card__desc {
  margin: 0;
  line-height: 1.7;
}

.offer-card__cta {
  margin-top: auto;
  padding-top: var(--s1);
  color: var(--accent-text);
  font-weight: 600;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Email capture (footer + inline notify forms)
   -------------------------------------------------------------------------- */

.capture {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-warm);
  padding: var(--s3);
  max-width: 30rem;
}

.capture__label {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--head);
  margin-bottom: var(--s1);
}

.capture__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
}

.capture input[type='email'] {
  flex: 1 1 14rem;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.capture__note {
  color: var(--muted);
  font-size: 0.8rem;
  margin: var(--s1) 0 0;
}

.site-foot {
  margin-top: var(--s6);
  border-top: 1px solid var(--line);
  background: var(--paper-warm);
  padding-block: var(--s6);
}

.site-foot__line {
  color: var(--muted);
  font-size: 0.9rem;
  margin: var(--s4) 0 0;
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.nf {
  text-align: center;
  padding-block: var(--s8) var(--s6);
}

.nf__code {
  font-family: var(--serif);
  font-size: clamp(4rem, 16vw, 7rem);
  line-height: 1;
  color: var(--accent);
  margin-bottom: var(--s2);
}

.nf__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s2);
  margin-top: var(--s3);
}

/* --------------------------------------------------------------------------
   Poster statements — big stacked lines for top-level pages
   -------------------------------------------------------------------------- */

.poster-lines {
  margin: 0 0 var(--s2);
}

.poster-line {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 7vw, 2.6rem);
  line-height: 1.18;
  color: var(--head);
  margin: 0 0 var(--s2);
}

.poster-line--accent {
  color: var(--accent);
}

.poster-line:last-child {
  margin-bottom: 0;
}

/* Home stage list — name + tiny line, poster rhythm */
.stage-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stage-list li {
  border-top: 1px solid var(--line);
}

.stage-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.stage-list__link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s1) var(--s3);
  padding: var(--s2) 0;
  text-decoration: none;
}

.stage-list__n {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 1.4rem;
}

.stage-list__name {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 4.5vw, 1.8rem);
  color: var(--head);
}

.stage-list__line {
  flex-basis: 100%;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

@media (min-width: 720px) {
  .stage-list__line {
    flex-basis: auto;
    margin-left: auto;
  }
}

/* --------------------------------------------------------------------------
   Home mirror block (poster version)
   -------------------------------------------------------------------------- */

.mirror__link {
  display: inline-block;
  margin-top: var(--s2);
}

/* --------------------------------------------------------------------------
   Mobile tap targets — lift anything tight to the 44px floor
   -------------------------------------------------------------------------- */

@media (max-width: 719px) {
  /* Watch filter chips */
  .chip {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 18px;
  }

  /* Journey principle pills */
  .plist a,
  .plist__missing {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 14px;
  }

  /* Footer/inline email inputs already inherit 17.5px body type — above the
     16px iOS no-zoom floor; nothing to fix there. */
}

/* --------------------------------------------------------------------------
   Grids at ≥720px (mobile-first single column above)
   -------------------------------------------------------------------------- */

@media (min-width: 720px) {
  .wrap {
    padding-inline: var(--s3);
  }

  .pgrid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s3);
  }

  .weeks {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s3);
  }

  .book-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .watch-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pnav {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .pgrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .watch-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Motion & print
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .site-head,
  .site-foot,
  .skip,
  .no-print,
  .bottom-nav,
  .menu {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .fridge {
    max-width: none;
    border-width: 2px;
    transform: none;
    box-shadow: none;
  }
}


/* ---- display polish for Fraunces ---- */
.display-xl, .hero-title, .poster-line {
  letter-spacing: -0.015em;
}
.kicker, .stage-tag, .nav-link {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   Cinematic system — safina-cinematic-builder adapted to the house palette
   (emerald #0DA678 plays the "coral" role; espresso = deep forest #0B3B2E;
    spark #FF6B35 reserved for ladder rungs, dark eyebrow dot, stat numbers)
   ========================================================================== */

:root {
  --espresso: #0B3B2E;
  --cream-white: #FAFDFB;
  --cream-soft: rgba(250, 253, 251, 0.78);
  --cream-line: rgba(250, 253, 251, 0.16);
  --accent-bright: #17C08C; /* emerald lifted for dark ground, 5.3:1 on forest */
}

/* --------------------------------------------------------------------------
   1. Kinetic scroll reveals (skill §2 — entrance only, never gates visibility)
   Hidden only when JS is live and motion is allowed; reduced-motion or
   no-JS sees everything immediately.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  html.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-delay-1 { transition-delay: 0.12s; }
  .reveal-delay-2 { transition-delay: 0.24s; }
  .reveal-delay-3 { transition-delay: 0.36s; }
}

/* --------------------------------------------------------------------------
   2. Eyebrows with the signature glowing accent dot (skill §4)
   Kickers stay concrete (the journey, the stage, the library) — never
   "SECTION 01" meta-labels.
   -------------------------------------------------------------------------- */

.hero__kicker,
.page-head__kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 var(--s2);
  color: var(--accent-text);
}

.hero__kicker::before,
.page-head__kicker::before,
.eyebrow::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent);
}

/* --------------------------------------------------------------------------
   3. Directional arrow buttons (skill §5) — ↗ rides the primary CTA only;
   quiet/ghost buttons and text links stay plain.
   -------------------------------------------------------------------------- */

.btn--primary::after {
  content: '↗';
  margin-left: 0.6em;
  font-size: 1.05rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.btn--primary:hover::after,
.btn--primary:focus-visible::after {
  transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   4. Multi-chapter color shift (skill §6) — data-theme chapters
   -------------------------------------------------------------------------- */

[data-theme='espresso'] {
  position: relative;
  background: var(--espresso);
  color: var(--cream-white);
}

/* Film grain veil — inline SVG noise at ~4%, espresso chapters only */
[data-theme='espresso']::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
}

[data-theme='bone'] {
  background: var(--cream);
}

[data-theme='espresso'] h1,
[data-theme='espresso'] h2,
[data-theme='espresso'] h3,
[data-theme='espresso'] h4 {
  color: var(--cream-white);
}

[data-theme='espresso'] .caption,
[data-theme='espresso'] .jstage__days {
  color: var(--cream-soft);
}

[data-theme='espresso'] a {
  color: var(--accent-bright);
}

[data-theme='espresso'] a:hover {
  color: var(--cream-white);
}

/* Eyebrow text lifts emerald on the dark ground; the glowing dot sparks orange */
[data-theme='espresso'] .eyebrow {
  color: var(--accent-bright);
}

[data-theme='espresso'] .eyebrow::before {
  background: var(--spark);
  box-shadow: 0 0 8px var(--spark);
}

/* Journey stage numbers / poster accents on espresso */
[data-theme='espresso'] .jstage__num,
[data-theme='espresso'] .stage-list__n {
  color: var(--accent-bright);
}

[data-theme='espresso'] .jstage__focus,
[data-theme='espresso'] .stage-list__name,
[data-theme='espresso'] .poster-line {
  color: var(--cream-white);
}

[data-theme='espresso'] .stage-list li {
  border-top-color: var(--cream-line);
}

[data-theme='espresso'] .stage-list li:last-child {
  border-bottom-color: var(--cream-line);
}

[data-theme='espresso'] .stage-list__line {
  color: var(--cream-soft);
}

/* Principle pills and image bands inside a dark chapter */
[data-theme='espresso'] .plist a,
[data-theme='espresso'] .plist__missing {
  border-color: rgba(250, 253, 251, 0.24);
  background: rgba(250, 253, 251, 0.05);
  color: var(--cream-white);
}

[data-theme='espresso'] .plist a:hover {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
}

[data-theme='espresso'] .plist__num {
  color: var(--accent-bright);
}

[data-theme='espresso'] .img-band::after {
  background: linear-gradient(180deg, rgba(11, 59, 46, 0) 62%, rgba(11, 59, 46, 0.5) 100%);
}

[data-theme='espresso'] .psec blockquote,
[data-theme='espresso'] .beat blockquote {
  background: rgba(250, 253, 251, 0.06);
  color: var(--cream-white);
  border-left-color: var(--accent-bright);
}

[data-theme='espresso'] .psec blockquote em {
  color: var(--cream-soft);
}

/* --------------------------------------------------------------------------
   5. Home stats row — quiet count-up tickers (skill §3)
   Static end-values ship in the HTML; JS only animates the journey.
   -------------------------------------------------------------------------- */

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s6);
  margin: 0 0 var(--s5);
}

.stat__num {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 9vw, 3.2rem);
  line-height: 1;
  color: var(--spark);
}

.stat__label {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-soft);
}

/* --------------------------------------------------------------------------
   6. Slow Ken Burns — home mosque band only, once, reduced-motion safe
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .img-band--kenburns img {
    animation: kenburns 14s ease-out forwards;
  }
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

/* --------------------------------------------------------------------------
   7. Principle page — the soul section goes dark (full-bleed chapter)
   -------------------------------------------------------------------------- */

.psec-band {
  padding-block: var(--s5) var(--s6);
}

.psec-band .psec {
  margin-bottom: 0;
}

/* continuation of the body column after the dark chapter */
.p-body--cont {
  padding-top: var(--s4);
}

/* Story — the Zambia beat breaks out of the measure into a dark chapter */
.beat--dark {
  margin-inline: calc(50% - 50vw);
  padding: var(--s5) calc(50vw - 50%) var(--s6);
  border-top-color: var(--cream-line);
}

.beat--dark .beat__period {
  color: var(--cream-soft);
}

/* the dark band is its own separator — no hairline directly under it */
.beat--dark + li.beat {
  border-top: 0;
}

/* --------------------------------------------------------------------------
   8. Watch — one espresso band before the footer
   -------------------------------------------------------------------------- */

.watch-close__line {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 5.5vw, 2.1rem);
  line-height: 1.25;
  color: var(--cream-white);
  max-width: 30ch;
  margin: 0 0 var(--s3);
}

/* Emerald CTAs pop on the forest ground: bright emerald chip, deep-forest label
   (label 5.3:1, chip-vs-ground 5.3:1 — both clear AA) */
[data-theme='espresso'] .btn--primary {
  background: var(--accent-bright);
  color: var(--espresso);
}

[data-theme='espresso'] .btn--primary:hover {
  background: #35d69f;
  color: var(--espresso);
  box-shadow: 0 12px 28px -10px rgba(13, 166, 120, 0.55);
}

/* ---- story beat text: demoted reading detail under the poster statement ---- */
.beat__text.prose-card {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #3A423E;
  max-width: 60ch;
  padding: 14px 18px;
  border-radius: 10px;
}
[data-theme='espresso'] .beat__text.prose-card { color: rgba(250,253,251,0.82); }

/* ---- hero video: 10s silent loop of Sa'ad, whole card links to /watch/ ---- */
.hero__video {
  display: block;
  margin: var(--s5) auto 0;
  max-width: 640px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px -18px rgba(23, 24, 26, 0.28);
  text-decoration: none;
}
.hero__video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0B3B2E;
}
.hero__video-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--paper-mint);
  border-top: 1px solid var(--paper-line);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #3A423E;
}
.hero__video-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  animation: heroDot 2.4s ease-in-out infinite;
}
@keyframes heroDot { 0%,100% {opacity: 1;} 50% {opacity: 0.35;} }
@media (prefers-reduced-motion: reduce) {
  .hero__video-dot { animation: none; }
}

/* ---- principle library: title-primary cards, tiny № + stage chip ---- */
.pcard__meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 6px;
}
.pcard__no {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; color: var(--muted);
}
.pcard__stage {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--accent-text, #0A855D);
  background: #E7F4EE; border: 1px solid #D3E9DF;
  border-radius: 999px; padding: 2px 9px;
}
.pcard__title { font-size: clamp(1.25rem, 4vw, 1.6rem); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s4); }
.chip {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600;
  color: #3A423E; background: var(--paper-mint);
  border: 1px solid var(--paper-line); border-radius: 999px;
  padding: 7px 14px; cursor: pointer; min-height: 36px;
}
.chip--active { background: var(--accent-text, #0A855D); border-color: var(--accent-text, #0A855D); color: #fff; }
