/* ==========================================================================
   Manvarth Charitable Trust — v4 design system
   Cormorant Garamond + Work Sans. Cream paper, forest, saffron.
   Sections: tokens / reset / type / layout utilities / header / footer /
             buttons + links / motifs / components / page-specific / responsive
   ========================================================================== */


/* ==========================================================================
   1. TOKENS
   ========================================================================== */

:root {
  /* type */
  --display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* colour */
  --saffron: #D4782A;
  --saffron-deep: #B8611C;
  --saffron-ink: #9A4F12;    /* saffron for small text on cream (5.3:1) */
  --saffron-light: #E9B77C;
  --saffron-soft: #F6E3CB;
  --forest: #2E5A42;
  --forest-deep: #1F3F2E;
  --forest-soft: #E1EAE0;
  --cream: #F6F0E4;
  --paper: #FBF7EF;
  --cream-deep: #EDE4D3;
  --ink: #1E2721;
  --ink-soft: #4B564E;
  --line: #D9CFBC;
  --line-strong: #B9AC93;

  /* text on dark */
  --on-dark: #F3EEE3;
  --on-dark-soft: rgba(243, 238, 227, .72);
  --rule-dark: rgba(243, 238, 227, .18);

  /* metrics */
  --container: 1180px;
  --gutter: 24px;
  --header-h: 84px;

  /* motion */
  --t: .2s ease;

  /* motifs — sun-ray arc (56x28) and winding path, as data URIs */
  --motif-sun: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 28' fill='none' stroke='%23D4782A' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M21 26a7 7 0 0 1 14 0'/%3E%3Cpath d='M18.5 26h19'/%3E%3Cpath d='M17.9 23.3 13 22M19.3 20.2 15.1 17.4M21.6 17.7 18.6 13.7M24.6 16.1 23 11.3M28 15.5V10.5M31.4 16.1 33 11.3M34.4 17.7 37.4 13.7M36.7 20.2 40.9 17.4M38.1 23.3 43 22'/%3E%3C/svg%3E");
  --motif-sun-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 28' fill='none' stroke='%23E9B77C' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M21 26a7 7 0 0 1 14 0'/%3E%3Cpath d='M18.5 26h19'/%3E%3Cpath d='M17.9 23.3 13 22M19.3 20.2 15.1 17.4M21.6 17.7 18.6 13.7M24.6 16.1 23 11.3M28 15.5V10.5M31.4 16.1 33 11.3M34.4 17.7 37.4 13.7M36.7 20.2 40.9 17.4M38.1 23.3 43 22'/%3E%3C/svg%3E");
  --motif-path: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12' fill='none' stroke='%23D4782A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M2 9C6 9 6 3 10 3S14 9 18 9 22 3 26 3s4 6 8 6 4-4 4-4'/%3E%3C/svg%3E");
  --motif-path-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12' fill='none' stroke='%23E9B77C' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M2 9C6 9 6 3 10 3S14 9 18 9 22 3 26 3s4 6 8 6 4-4 4-4'/%3E%3C/svg%3E");
  --motif-sweep: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none' fill='none' stroke='%23E9B77C' stroke-width='2'%3E%3Cpath d='M-10 232C140 232 150 68 300 88s220 152 380 82S900 46 1040 108s140 92 170 74'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}


/* ==========================================================================
   2. RESET
   ========================================================================== */

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

html {
  background: var(--cream);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* paper grain, fixed behind the content */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .038;
  background-image: var(--grain);
}

img, picture, video { max-width: 100%; }
img { display: block; height: auto; border: 0; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--forest); text-decoration: none; }

button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

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

::selection { background: var(--saffron-soft); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* ==========================================================================
   3. TYPE
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.005em;
}

h1 { font-size: clamp(3rem, 7vw, 6rem); line-height: .98; }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: 1.04; }
h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.12; }
h4 { font-size: 1.35rem; line-height: 1.2; }

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

.lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.tagline,
.display-italic {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1.2;
  color: var(--forest);
}

.num-big {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  line-height: 1;
  color: var(--forest-deep);
}
.num-big--accent { color: var(--saffron); }

.small,
.smallcaps {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.label-caps {
  font-family: var(--body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

em { font-style: italic; }
strong { font-weight: 600; }

.on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--on-dark); }
.on-dark .lead, .on-dark p { color: var(--on-dark-soft); }


/* ==========================================================================
   4. LAYOUT UTILITIES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--tone { background: var(--cream-deep); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--forest-deep); color: var(--on-dark); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--on-dark); }
.section--dark p { color: var(--on-dark-soft); }
.section--line-top { border-top: 1px solid var(--line); }

.measure { max-width: 62ch; }
.measure--narrow { max-width: 46ch; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 40px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

.stack > * + * { margin-top: 20px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head h2 { max-width: 20ch; }
.section-head p { color: var(--ink-soft); margin-top: 20px; max-width: 58ch; }

.divider { border-top: 1px solid var(--line); }
.hidden { display: none; }


/* ==========================================================================
   5. HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
/* the logo file carries the emblem above a "MANVARTH" wordmark; the wordmark is
   clipped away so the mark reads cleanly beside the typographic wordmark */
.brand img {
  flex: none;
  position: relative;
  top: 4px;
  width: 56px;
  height: 56px;
  object-fit: contain;
  clip-path: inset(9% 15% 24% 15%);
  margin: 0 -8px 0 -8px;
}
.brand__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: .02em;
  color: var(--forest-deep);
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links > li { position: relative; }
.nav__links a {
  font-family: var(--body);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  transition: color var(--t);
}
.nav__links a:hover { color: var(--saffron-deep); }

.nav__links > li:not(.nav__cta) > a.active { color: var(--ink); }
.nav__links > li:not(.nav__cta) > a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--saffron);
}

.nav__cta a.btn { padding: 11px 20px; }

.nav__toggle {
  display: none;
  padding: 10px;
  margin-right: -10px;
  border-radius: 3px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  transition: background var(--t);
}

/* transparent-over-hero variant (index.html) */
.site-header--over {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  background: transparent;
  border-bottom-color: transparent;
}
.site-header--over .brand__name { color: var(--on-dark); }
.site-header--over .brand img { filter: brightness(0) invert(1); }
.site-header--over .nav__links a { color: var(--on-dark); }
.site-header--over .nav__links a:hover { color: var(--saffron-light); }
.site-header--over .nav__links > li:not(.nav__cta) > a.active::after { background: var(--saffron-light); }
.site-header--over .nav__toggle span { background: var(--on-dark); }

.site-header--over.is-stuck {
  background: var(--cream);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 var(--line);
}
.site-header--over.is-stuck .brand__name { color: var(--forest-deep); }
.site-header--over.is-stuck .brand img { filter: none; }
.site-header--over.is-stuck .nav__links a { color: var(--ink); }
.site-header--over.is-stuck .nav__links a:hover { color: var(--saffron-deep); }
.site-header--over.is-stuck .nav__links > li:not(.nav__cta) > a.active::after { background: var(--saffron); }
.site-header--over.is-stuck .nav__toggle span { background: var(--ink); }


/* ==========================================================================
   6. FOOTER
   ========================================================================== */

.site-footer {
  background: var(--forest-deep);
  color: var(--on-dark);
  border-top: 1px solid var(--rule-dark);
  padding: 76px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.footer-brand img {
  flex: none;
  position: relative;
  top: 4px;
  width: 58px;
  height: 58px;
  object-fit: contain;
  clip-path: inset(9% 15% 24% 15%);
  margin: 0 -9px 0 -9px;
  filter: brightness(0) invert(1);
  opacity: .92;
}
.footer-brand span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: .02em;
  color: var(--on-dark);
}
.footer-col--brand p {
  color: var(--on-dark-soft);
  font-size: 15px;
  max-width: 34ch;
}

.footer-col h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--on-dark);
  margin-bottom: 16px;
}
.footer-col ul li + li { margin-top: 10px; }
.footer-col ul li,
.footer-col ul li a {
  font-family: var(--body);
  font-size: 15px;
  color: var(--on-dark);
  opacity: .8;
  transition: opacity var(--t);
}
.footer-col ul li a:hover { opacity: 1; }

.footer-col--note p {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--on-dark);
  opacity: .85;
  max-width: 22ch;
}
.footer-col--note .motif-sun { margin-bottom: 16px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-dark);
  font-size: 13px;
  color: var(--on-dark);
  opacity: .6;
}
.footer-bottom .footer-credit { max-width: 62ch; }


/* ==========================================================================
   7. BUTTONS AND LINKS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 1.5px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
}

.btn--primary {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--cream);
}
.btn--primary:hover { background: var(--saffron-deep); border-color: var(--saffron-deep); }

.btn--outline {
  background: transparent;
  border-color: var(--forest);
  color: var(--forest);
}
.btn--outline:hover { background: var(--forest-soft); }

.btn--outline-light {
  background: transparent;
  border-color: var(--on-dark);
  color: var(--on-dark);
}
.btn--outline-light:hover { background: var(--on-dark); color: var(--forest-deep); }

/* inline text links */
.prose a:not(.btn):not(.readmore),
p a:not(.btn):not(.readmore),
.deflist a:not(.btn):not(.readmore) {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line-strong);
  transition: color var(--t), text-decoration-color var(--t);
}
.prose a:not(.btn):not(.readmore):hover,
p a:not(.btn):not(.readmore):hover,
.deflist a:not(.btn):not(.readmore):hover {
  color: var(--saffron-deep);
  text-decoration-color: var(--saffron-deep);
}

.on-dark p a:not(.btn),
.cta__body p a:not(.btn),
.band p a:not(.btn) {
  color: var(--saffron-light);
  text-decoration-color: rgba(233, 183, 124, .5);
}
.on-dark p a:not(.btn):hover,
.cta__body p a:not(.btn):hover,
.band p a:not(.btn):hover { color: var(--on-dark); text-decoration-color: var(--on-dark); }

/* "read more" link with a growing saffron rule */
.readmore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--forest);
  transition: color var(--t);
}
.readmore::after {
  content: "";
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--saffron);
  transition: width var(--t);
}
.readmore:hover { color: var(--saffron-deep); }
.readmore:hover::after { width: 36px; }

.readmore--light { color: var(--on-dark); }
.readmore--light::after { background: var(--saffron-light); }
.readmore--light:hover { color: var(--saffron-light); }


/* ==========================================================================
   8. MOTIFS
   ========================================================================== */

.motif-sun {
  display: block;
  width: 56px;
  height: 28px;
  background: var(--motif-sun) center / contain no-repeat;
}
.motif-sun--light { background-image: var(--motif-sun-light); }

.motif-path {
  display: block;
  width: 40px;
  height: 12px;
  background: var(--motif-path) center / contain no-repeat;
}
.motif-path--light { background-image: var(--motif-path-light); }

/* the large faint sweep used behind dark bands */
.has-sweep { position: relative; overflow: hidden; }
.has-sweep::before {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  top: 50%;
  height: 320px;
  transform: translateY(-50%);
  background: var(--motif-sweep) center / 100% 100% no-repeat;
  opacity: .18;
  pointer-events: none;
}


/* ==========================================================================
   9. COMPONENTS
   ========================================================================== */

/* --- 9.1 .marker ------------------------------------------------------- */

.marker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.marker__num {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--saffron);
  flex: none;
}
.marker__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--ink-soft);
}
.marker__label::before {
  content: "";
  display: block;
  flex: none;
  width: 28px;
  height: 1px;
  background: var(--line-strong);
}
.marker--plain .marker__label::before { display: none; }

/* on dark grounds the hairline becomes the 40px winding path */
.marker--light .marker__label,
.band .marker__label,
.quote-band .marker__label,
.cta__body .marker__label,
.section--dark .marker__label { color: rgba(243, 238, 227, .8); }

.marker--light .marker__num,
.band .marker__num,
.quote-band .marker__num,
.cta__body .marker__num,
.section--dark .marker__num { color: var(--saffron-light); }

.marker--light .marker__label::before,
.band .marker__label::before,
.quote-band .marker__label::before,
.cta__body .marker__label::before,
.section--dark .marker__label::before {
  width: 40px;
  height: 12px;
  background: var(--motif-path-light) center / contain no-repeat;
}
.marker--light.marker--plain .marker__label::before,
.band .marker--plain .marker__label::before { display: none; }


/* --- 9.2 .divider--sun -------------------------------------------------- */

.divider--sun {
  position: relative;
  height: 1px;
  background: var(--line);
  margin: 0;
  border: 0;
}
.divider--sun::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 34px;
  background: var(--cream) var(--motif-sun) center / 56px 28px no-repeat;
}
.section--tone .divider--sun::after { background-color: var(--cream-deep); }
.section--paper .divider--sun::after { background-color: var(--paper); }


/* --- 9.3 .page-head ----------------------------------------------------- */

.page-head {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  font-family: var(--body);
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 26px;
  letter-spacing: .01em;
}
.breadcrumb a { color: var(--ink-soft); transition: color var(--t); }
.breadcrumb a:hover { color: var(--saffron-deep); }
.breadcrumb span { opacity: .55; padding: 0 6px; }

.page-head h1 { max-width: 14ch; }
.page-head .lead { margin-top: 26px; max-width: 52ch; }
.page-head .marker { margin-bottom: 20px; }

.page-head--photo .page-head__inner { display: grid; gap: 44px; }
.page-head--photo .page-head__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  outline: 1px solid var(--line);
  outline-offset: -1px;
}


/* --- 9.4 .spread -------------------------------------------------------- */

.spread {
  display: grid;
  gap: 44px;
  align-items: start;
}
/* Stacked (under 900px): the photo always comes first. */
.spread__media { order: -1; }
.spread__media img {
  width: 100%;
  border-radius: 2px;
  object-fit: cover;
  outline: 1px solid var(--line);
  outline-offset: -1px;
}
.spread__body > .marker:first-child { margin-top: 4px; }
.spread__body h2 + p,
.spread__body h2 + .lead { margin-top: 24px; }
.spread__body p + p { margin-top: 0; }


/* --- 9.5 .ledger -------------------------------------------------------- */

.ledger { display: block; }

.ledger__rows { border-bottom: 1px solid var(--line); }

.ledger__row {
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-areas:
    "thumb num"
    "thumb title"
    "thumb text";
  column-gap: 18px;
  row-gap: 8px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  color: inherit;
  transition: background var(--t);
}
a.ledger__row:hover { background: rgba(217, 207, 188, .22); }
a.ledger__row:hover .ledger__title { color: var(--saffron-deep); }

.ledger__num {
  grid-area: num;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--saffron);
}
.ledger__thumb {
  grid-area: thumb;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 2px;
  align-self: start;
  outline: 1px solid var(--line);
  outline-offset: -1px;
}
.ledger__title {
  grid-area: title;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.15;
  color: var(--ink);
  transition: color var(--t);
}
.ledger__text {
  grid-area: text;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* sticky media column */
.ledger--with-media { display: block; }
.ledger__media { display: none; }
.ledger__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  outline: 1px solid var(--line);
  outline-offset: -1px;
  transition: opacity var(--t);
}
.ledger__media img.is-out { opacity: 0; }
.ledger__media figcaption {
  margin-top: 14px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* on dark grounds */
.band .ledger__row,
.section--dark .ledger__row { border-top-color: var(--rule-dark); }
.band .ledger__rows,
.section--dark .ledger__rows { border-bottom-color: var(--rule-dark); }
.band .ledger__title,
.section--dark .ledger__title { color: var(--on-dark); }
.band .ledger__text,
.section--dark .ledger__text { color: var(--on-dark-soft); }
.band .ledger__num,
.section--dark .ledger__num { color: var(--saffron-light); }


/* --- 9.6 .facts --------------------------------------------------------- */

.facts {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts__item {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.facts__item:first-child { border-top: 0; }
.facts__num {
  font-family: var(--display);
  font-weight: 500;
  font-size: 3rem;
  line-height: 1;
  color: var(--forest-deep);
  display: block;
}
.facts__label {
  display: block;
  margin-top: 10px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.facts--sun { margin-top: 34px; }
.facts--sun::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1px;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 34px;
  background: var(--cream) var(--motif-sun) center / 56px 28px no-repeat;
}


/* --- 9.7 .band ---------------------------------------------------------- */

.band {
  position: relative;
  padding: 104px 0;
  color: var(--on-dark);
  overflow: hidden;
  background: var(--forest-deep);
}
.band__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      rgba(20, 44, 31, .62) 0%,
      rgba(20, 44, 31, .4) 36%,
      rgba(20, 44, 31, .08) 64%),
    rgba(31, 63, 46, .74);
}
.band > .container { position: relative; z-index: 1; }
.band h1, .band h2, .band h3, .band h4 { color: var(--on-dark); }
.band p { color: rgba(243, 238, 227, .88); }
.band .lead { color: rgba(243, 238, 227, .88); }

.band__grid { display: grid; gap: 48px; align-items: center; }


/* --- 9.8 .quote-band ---------------------------------------------------- */

.quote-band {
  position: relative;
  background: var(--forest-deep);
  color: var(--on-dark);
  padding: 104px 0;
  overflow: hidden;
  text-align: center;
}
.quote-band > .container { position: relative; z-index: 1; }
.quote-band blockquote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  line-height: 1.22;
  max-width: 26ch;
  margin: 0 auto;
  color: var(--on-dark);
}
.quote-band cite {
  display: block;
  margin-top: 32px;
  font-family: var(--body);
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--saffron-light);
}
.quote-band .motif-sun { margin: 0 auto 30px; }


/* --- 9.9 .cta ----------------------------------------------------------- */

.cta {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--forest-deep);
}
.cta__media { position: relative; min-height: 320px; }
.cta__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta__body {
  position: relative;
  overflow: hidden;
  background: var(--forest-deep);
  color: var(--on-dark);
  padding: 64px var(--gutter);
  display: flex;
  align-items: center;
}
.cta__inner { position: relative; z-index: 1; width: 100%; max-width: 560px; }
.cta__body h2 { color: var(--on-dark); }
.cta__body h2 + p { margin-top: 22px; }
.cta__body p { color: var(--on-dark-soft); }
.cta__note {
  margin-top: 26px;
  font-size: 15px;
  color: var(--on-dark-soft);
}


/* --- 9.10 .deflist ------------------------------------------------------ */

.deflist { border-top: 1px solid var(--line); }
.deflist__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.deflist__year {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--saffron-ink);
}
.deflist__body h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--ink);
}
.deflist__note {
  margin-top: 6px;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.section--dark .deflist,
.band .deflist { border-top-color: var(--rule-dark); }
.section--dark .deflist__item,
.band .deflist__item { border-bottom-color: var(--rule-dark); }
.section--dark .deflist__year,
.band .deflist__year { color: var(--saffron-light); }
.section--dark .deflist__body h4,
.band .deflist__body h4 { color: var(--on-dark); }
.section--dark .deflist__note,
.band .deflist__note { color: var(--on-dark-soft); }


/* --- 9.11 .figure ------------------------------------------------------- */

.figure { margin: 0; }
.figure img {
  width: 100%;
  border-radius: 2px;
  object-fit: cover;
  outline: 1px solid var(--line);
  outline-offset: -1px;
}
.figure figcaption {
  position: relative;
  margin-top: 18px;
  padding-top: 16px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--ink-soft);
  text-align: left;
}
.figure figcaption::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 4px;
  background: var(--saffron);
}
.figure--wide { width: 100%; }
.figure--inset { max-width: 520px; }

.band .figure img,
.section--dark .figure img { outline-color: var(--rule-dark); }
.band .figure figcaption,
.section--dark .figure figcaption { color: var(--on-dark); }
.band .figure figcaption::before,
.section--dark .figure figcaption::before { background: var(--saffron-light); }


/* --- 9.12 .photo-grid --------------------------------------------------- */

.photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--cream-deep);
  cursor: pointer;
}
.photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}
.photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateY(101%);
  transition: transform .25s ease;
  background: rgba(31, 63, 46, .85);
  color: var(--on-dark);
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.35;
  padding: 14px 18px;
}
.photo:hover figcaption,
.photo:focus-within figcaption { transform: translateY(0); }
.photo .zoom { display: none; }


/* --- 9.13 .prose -------------------------------------------------------- */

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.6em; }
.prose h3, .prose h4 { margin-top: 2.2em; }
.prose h3 + p, .prose h4 + p { margin-top: .7em; }
.prose ul { margin-top: 1.1em; }
.prose ul li {
  position: relative;
  padding-left: 26px;
  margin-top: .5em;
  color: var(--ink-soft);
}
.prose ul li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--saffron);
}
.prose ol { margin-top: 1.1em; counter-reset: p-ol; }
.prose ol li {
  position: relative;
  padding-left: 30px;
  margin-top: .5em;
  counter-increment: p-ol;
  color: var(--ink-soft);
}
.prose ol li::before {
  content: counter(p-ol);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--display);
  color: var(--saffron);
}


/* --- 9.14 .toc ---------------------------------------------------------- */

.toc { display: none; }
.toc__title {
  font-family: var(--body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.toc ul { border-left: 1px solid var(--line); }
.toc li a {
  display: block;
  padding: 8px 0 8px 16px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink-soft);
  transition: color var(--t), border-color var(--t);
}
.toc li a:hover { color: var(--ink); }
.toc li a.active {
  color: var(--ink);
  border-left-color: var(--saffron);
}


/* --- 9.15 mobile nav panel ---------------------------------------------- */
/* (see responsive overrides for the < 900px panel behaviour) */


/* --- 9.16 lightbox ------------------------------------------------------ */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(19, 28, 22, .93);
  padding: 6vh 6vw;
}
.lightbox.open { display: grid; place-items: center; }
.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 2px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}
.lightbox__cap {
  position: absolute;
  bottom: 3vh;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0 24px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--on-dark);
}
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--on-dark);
  font-size: 1.8rem;
  line-height: 1;
  transition: background var(--t);
}
.lightbox__close:hover { background: rgba(243, 238, 227, .14); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 1px solid rgba(243, 238, 227, .35);
  color: var(--on-dark);
  font-size: 1.5rem;
  line-height: 1;
  transition: background var(--t), border-color var(--t);
}
.lightbox__nav:hover { background: rgba(243, 238, 227, .14); border-color: var(--on-dark); }
.lightbox__nav.prev { left: 14px; }
.lightbox__nav.next { right: 14px; }


/* ==========================================================================
   10. PAGE-SPECIFIC BLOCKS
   Agents 2–4 keep their page rules in assets/founder.css, assets/pages-a.css
   and assets/pages-b.css. Only home-page (index.html) blocks live here.
   ========================================================================== */

/* --- home hero ---------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 88vh;
  overflow: hidden;
  background: var(--forest-deep);
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(24, 50, 36, .58) 0%,
      rgba(24, 50, 36, .46) 7%,
      rgba(24, 50, 36, .18) 14%,
      rgba(24, 50, 36, 0) 22%),
    linear-gradient(to right,
      rgba(24, 50, 36, .74) 0%,
      rgba(24, 50, 36, .52) 32%,
      rgba(24, 50, 36, .16) 52%,
      rgba(24, 50, 36, 0) 66%),
    linear-gradient(to top,
      rgba(31, 63, 46, .85) 0%,
      rgba(31, 63, 46, .62) 20%,
      rgba(31, 63, 46, .3) 38%,
      rgba(31, 63, 46, 0) 55%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 128px;
  padding-bottom: 56px;
}
.hero__copy { max-width: 100%; }
.hero .marker { margin-bottom: 24px; }
.hero .marker__label { color: rgba(243, 238, 227, .9); }
.hero .marker__num { color: var(--saffron-light); }
.hero .marker__label::before { background: var(--saffron-light); }
.hero h1 {
  color: var(--on-dark);
  font-size: clamp(3.2rem, 7.6vw, 6.6rem);
  line-height: .93;
  max-width: 12ch;
  text-wrap: balance;
}
.hero__tagline {
  margin-top: 20px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.2;
  color: var(--saffron-light);
}
.hero__lead {
  margin-top: 18px;
  max-width: 44ch;
  color: rgba(243, 238, 227, .82);
  font-size: 1.05rem;
  line-height: 1.6;
}
.hero .actions { margin-top: 28px; }

/* --- home: staggered photo trio ----------------------------------------- */

.trio { display: grid; gap: 18px; }
.trio img {
  width: 100%;
  border-radius: 2px;
  object-fit: cover;
  outline: 1px solid var(--line);
  outline-offset: -1px;
}
.trio__stack { display: grid; gap: 18px; }
.trio__stack img { aspect-ratio: 4 / 3; }
.trio__tall img { aspect-ratio: 4 / 3; }

/* --- home: "who we are" spread ------------------------------------------ */

.home-who .spread__media img { aspect-ratio: 4 / 5; }


/* ==========================================================================
   11. RESPONSIVE OVERRIDES
   ========================================================================== */

/* ---- < 900px: mobile navigation panel ---------------------------------- */
@media (max-width: 899px) {
  :root { --header-h: 68px; }

  .nav__toggle { display: block; }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height .25s ease, visibility .25s;
  }
  .nav__links.open {
    max-height: 80vh;
    overflow-y: auto;
    visibility: visible;
  }
  .nav__links > li { border-top: 1px solid var(--line); }
  .nav__links > li:first-child { border-top: 0; }
  .nav__links > li > a {
    display: block;
    padding: 16px var(--gutter);
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.6rem;
    color: var(--ink);
  }
  .nav__links > li:not(.nav__cta) > a.active { color: var(--saffron-deep); }
  .nav__links > li:not(.nav__cta) > a.active::after { display: none; }
  .nav__cta { padding: 18px var(--gutter) 22px; }
  .nav__cta a.btn { display: inline-flex; padding: 13px 22px; }

  .site-header--over .nav__links { background: var(--cream); }
  .site-header--over .nav__links > li > a { color: var(--ink); }
  .site-header--over .nav__links > li:not(.nav__cta) > a.active { color: var(--saffron-deep); }
  .site-header--over .nav__cta .btn--primary {
    background: var(--saffron);
    border-color: var(--saffron);
    color: var(--cream);
  }
}

/* ---- >= 480px ---------------------------------------------------------- */
@media (max-width: 479px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .section { padding: 48px 0; }
  .band, .quote-band { padding: 64px 0; }
  .site-footer { padding: 56px 0 28px; }
  .btn { padding: 14px 20px; font-size: 12px; }
  .actions { gap: 10px; }
  .actions .btn { flex: 1 1 100%; }
}

/* ---- >= 720px ---------------------------------------------------------- */
@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts__item {
    padding: 34px 30px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .facts__item:first-child { border-left: 0; padding-left: 0; }
  .facts--4 { grid-template-columns: repeat(2, 1fr); }
  .facts--4 .facts__item:nth-child(-n+2) { border-top: 0; }
  .facts--4 .facts__item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts--4 .facts__item:nth-child(n+3) { border-top: 1px solid var(--line); }

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

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

  .deflist__item { grid-template-columns: 84px 1fr; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 40px; }

  .trio { grid-template-columns: 1fr 1.08fr; align-items: start; }
  .trio__tall { margin-top: 40px; }
  .trio__tall img { aspect-ratio: 3 / 4.3; height: 100%; }
}

/* ---- >= 900px ---------------------------------------------------------- */
@media (min-width: 900px) {
  .section { padding: 96px 0; }
  .section--tight { padding: 72px 0; }

  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }

  .page-head { padding: 88px 0 56px; }
  .page-head--photo .page-head__inner {
    grid-template-columns: 7fr 5fr;
    gap: 56px;
    align-items: center;
  }

  .spread { gap: 64px; }
  .spread--media-left { grid-template-columns: 5fr 7fr; }
  .spread--media-left .spread__media { grid-column: 1; grid-row: 1; }
  .spread--media-left .spread__body { grid-column: 2; grid-row: 1; }
  .spread--media-right { grid-template-columns: 5fr 7fr; }
  .spread--media-right .spread__body { grid-column: 1; grid-row: 1; }
  .spread--media-right .spread__media { grid-column: 2; grid-row: 1; }
  .spread--balanced { grid-template-columns: 1fr 1fr; }
  .spread--centred { align-items: center; }

  .ledger__row {
    grid-template-columns: 72px 1fr 1.6fr;
    grid-template-areas: "num title text";
    column-gap: 28px;
    align-items: start;
  }
  .ledger__thumb { display: none; }
  .ledger__text { padding-top: 4px; }

  .ledger--with-media {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 64px;
    align-items: start;
  }
  .ledger--with-media .ledger__media { display: block; position: sticky; top: 124px; }

  .band { padding: 112px 0; }
  .band__grid { grid-template-columns: 1fr 1fr; gap: 56px; }

  .cta { grid-template-columns: 1fr 1fr; }
  .cta__media { min-height: 520px; }
  .cta__body { padding: 88px 56px; justify-content: flex-start; }
  .cta__inner { max-width: 520px; }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.1fr; gap: 40px; }

  .figure--inset {
    float: right;
    width: 44%;
    max-width: 520px;
    margin: 6px 0 32px 32px;
  }

  .hero__inner { padding-top: 132px; padding-bottom: 60px; }
}

/* ---- >= 1100px --------------------------------------------------------- */
@media (min-width: 1100px) {
  .toc {
    display: block;
    position: sticky;
    top: 108px;
    align-self: start;
  }
  .with-toc {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 72px;
    align-items: start;
  }
  .deflist--2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 56px;
    border-top: 1px solid var(--line);
  }
  .deflist--2col .deflist__item:nth-child(-n+2) { border-top: 0; }
  .section--dark .deflist--2col,
  .band .deflist--2col { border-top-color: var(--rule-dark); }

  .ledger--with-media { grid-template-columns: 1fr 420px; gap: 72px; }
}

/* ---- >= 1240px: bleed spreads ------------------------------------------ */
@media (min-width: 1240px) {
  .spread--bleed.spread--media-left .spread__media { margin-left: -48px; }
  .spread--bleed.spread--media-right .spread__media { margin-right: -48px; }
}

/* ---- < 720px: home hero on phones ---------------------------------------
   The portrait crop puts the faces in the upper half; keep the copy below
   them and deepen the bottom scrim so the type reads over bright areas. */
@media (max-width: 719px) {
  .hero {
    min-height: 100svh;
    min-height: 100vh;
  }
  .hero__img { object-position: 50% 12%; }
  .hero::after {
    background:
      linear-gradient(to bottom,
        rgba(24, 50, 36, .55) 0%,
        rgba(24, 50, 36, .25) 10%,
        rgba(24, 50, 36, 0) 20%),
      linear-gradient(to top,
        rgba(31, 63, 46, .96) 0%,
        rgba(31, 63, 46, .90) 30%,
        rgba(31, 63, 46, .72) 46%,
        rgba(31, 63, 46, .30) 62%,
        rgba(31, 63, 46, 0) 76%);
  }
  .hero__inner { padding-top: 44vh; padding-bottom: 36px; }
  .hero h1 { font-size: clamp(2.6rem, 11.5vw, 3.2rem); }
  .hero__tagline { font-size: 1.3rem; }
  .hero__lead { font-size: 1rem; }
}
