/* ==========================================================================
   Zion Publishing House — design system v4 ("Modern Park Service")
   Palette is Colin's brand sheet, verbatim. Sturdy grotesk type, flat blocks
   of earth color, diamond motif, topo texture, layered ridge at the hero.
   Tune everything from the tokens below.
   ========================================================================== */

:root {
  /* Brand palette (from the ZPH color sheet) */
  --bark:      #403827;
  --forest:    #2E3E1B;
  --sandstone: #E4522B;
  --gold:      #D69820;
  --sand:      #CBBCA3;

  /* Derived surfaces and text */
  --bark-deep:   #2A251A;
  --forest-deep: #22301A;
  --sand-light:  #F1EBE0;
  --sand-mid:    #DDD2BE;
  --sand-line:   #BBAD92;
  --cream:       #F6F1E7;
  --paper-white: #FBF8F2;
  --ink:         #2A251A;
  --ink-2:       #4F4636;
  --ink-3:       #524838;
  --on-dark:     #F3EDE0;
  --on-dark-2:   #D6CDB9;
  --on-dark-3:   #B3A88F;
  --sandstone-ink: #B8401E;  /* AA-safe sandstone for text on sand-light */
  --gold-ink:      #855C10;  /* AA-safe gold for text on sand-light */
  --error: #B8401E;

  /* Type: one family, two widths */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --fs-display: clamp(2.5rem, 1.4rem + 4vw, 4.9rem);
  --fs-h1:      clamp(2.2rem, 1.5rem + 2.6vw, 3.7rem);
  --fs-h2:      clamp(1.7rem, 1.3rem + 1.7vw, 2.6rem);
  --fs-h3:      clamp(1.1rem, 1.05rem + .4vw, 1.35rem);
  --fs-lead:    clamp(1.02rem, 1rem + .3vw, 1.15rem);
  --fs-body:    1rem;
  --fs-small:   .875rem;

  /* Rhythm */
  --s-1: .5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem;
  --s-5: 3rem;  --s-6: 4rem; --s-7: 6rem;  --s-8: 8rem;
  --section-y: clamp(3.5rem, 2.5rem + 4.5vw, 6.5rem);
  --container: 75rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --radius: 6px;
  --radius-lg: 12px;
  --rule: 1px solid var(--sand-line);
  --rule-dark: 1px solid rgba(243, 237, 224, .16);
  --shadow-tile: 0 18px 30px -18px rgba(42, 37, 26, .45);
  --shadow-float: 0 24px 50px -26px rgba(42, 37, 26, .45);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-smooth: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 160ms; --t-med: 260ms; --t-slow: 650ms;
  --header-h: 84px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (min-width: 1800px) { html { font-size: 17px; } }
@media (min-width: 2300px) { html { font-size: 18px; } }
body {
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.6;
  color: var(--ink); background: var(--sand-light);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  padding-top: var(--header-h);
}
body.is-locked { overflow: hidden; }
img, picture, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font); font-weight: 700; line-height: 1.04;
  letter-spacing: -.02em; color: var(--bark); text-wrap: balance;
  font-variation-settings: "wdth" 82;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; font-variation-settings: "wdth" 90; letter-spacing: -.01em; }
p { max-width: 66ch; }
strong { font-weight: 600; }
::selection { background: var(--gold); color: var(--bark-deep); }
:focus-visible { outline: 3px solid var(--sandstone); outline-offset: 3px; border-radius: 3px; }
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 3000; background: var(--bark-deep); color: var(--on-dark); padding: .75rem 1.25rem; }
.skip-link:focus { left: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--text { max-width: 780px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type helpers ---------- */
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); }
.small { font-size: var(--fs-small); color: var(--ink-3); }
.link { color: var(--bark); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .2em; transition: color var(--t-fast); }
.link:hover { color: var(--sandstone-ink); }
.placeholder { background: var(--gold); color: var(--bark-deep); padding: 0 .3em; border-radius: 3px; }
.dia { display: inline-block; width: .5em; height: .5em; background: currentColor; transform: rotate(45deg); border-radius: 1px; vertical-align: middle; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 50px; padding: .85rem 1.6rem;
  font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none;
  border-radius: var(--radius); border: 2px solid transparent; white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(42, 37, 26, .55); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--cta { background: var(--gold); color: var(--bark-deep); border-color: var(--gold); }
.btn--cta:hover { background: #E6A72F; border-color: #E6A72F; }
.btn--primary { background: var(--forest); color: var(--on-dark); border-color: var(--forest); }
.btn--primary:hover { background: var(--forest-deep); border-color: var(--forest-deep); }
.btn--ghost { background: transparent; color: var(--bark); border-color: var(--bark); }
.btn--ghost:hover { background: var(--bark); color: var(--on-dark); }
.btn--ghost-light { background: transparent; color: var(--on-dark); border-color: rgba(243, 237, 224, .45); }
.btn--ghost-light:hover { border-color: var(--on-dark); background: rgba(243, 237, 224, .08); }
.btn--sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .95rem; }
.btn--cta::after, .btn--primary::after {
  content: ""; width: 1em; height: 1em; flex: none; margin-left: .1rem;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--t-med) var(--ease-out);
}
.btn--cta:hover::after, .btn--primary:hover::after { transform: translateX(4px); }
.btn--sm::after { display: none; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(42, 37, 26, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(243, 237, 224, .08);
  transition: background var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
}
.site-header.is-hidden { transform: translateY(-100%); }
@media (max-width: 1024px) { .site-header.is-scrolled .header-inner { height: var(--header-h); } .site-header.is-scrolled .brand img { height: 44px; } }
.site-header { transition: transform var(--t-med) var(--ease-out), background var(--t-med), border-color var(--t-med), box-shadow var(--t-med); }
.site-header.is-scrolled { background: rgba(42, 37, 26, .96); border-bottom-color: rgba(243, 237, 224, .12); box-shadow: 0 10px 30px -22px rgba(0, 0, 0, .6); }
.header-inner { max-width: 85rem; margin-inline: auto; padding: 0 var(--gutter); height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; transition: height var(--t-med); }
.site-header.is-scrolled .header-inner { height: 68px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 54px; width: auto; transition: height var(--t-med); }
.site-header.is-scrolled .brand img { height: 46px; }
@media (max-width: 640px) { .brand img { height: 44px; } .site-header.is-scrolled .brand img { height: 40px; } }
.brand .logo-dark { display: none; }
.brand .logo-light { display: block; }

.primary-nav { display: none; }
.primary-nav ul { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.2rem); }
.primary-nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--on-dark-2); padding: .5rem 0; position: relative; transition: color var(--t-fast); }
.primary-nav a:not(.btn):hover, .primary-nav a[aria-current="page"] { color: var(--on-dark); }
.primary-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sandstone); transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease-out); }
.primary-nav a:not(.btn):hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -.6rem; color: var(--on-dark); border-radius: var(--radius); }
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 890; background: var(--bark-deep); color: var(--on-dark);
  overflow-y: auto;
  padding: var(--s-2) var(--gutter) var(--s-4); display: flex; flex-direction: column;
  border: 0; box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .6);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out), visibility 0s var(--t-med);
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-nav:focus { outline: none; }
.mobile-nav a:not(.btn):focus:not(:focus-visible) { outline: none; }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav li { border: 0; }
.mobile-nav a:not(.btn) { display: block; padding: .95rem 0; text-decoration: none; font-size: 1.25rem; font-weight: 600; font-variation-settings: "wdth" 92; color: var(--on-dark); }
.mobile-nav a[aria-current="page"] { color: var(--gold); }
.mobile-nav .btn { margin-top: var(--s-4); width: 100%; }
.mobile-nav__foot { margin-top: auto; padding-top: var(--s-4); color: var(--on-dark-3); font-size: var(--fs-small); }
.mobile-nav__foot a { color: var(--on-dark-2); }
.site-header.menu-open { background: var(--bark-deep); border-bottom-color: transparent; }
.site-header.menu-open .nav-toggle { color: var(--on-dark); }
@media (min-width: 1025px) { .primary-nav { display: block; } .nav-toggle, .mobile-nav { display: none; } }

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 960; background: var(--sandstone); transform-origin: left; transform: scaleX(0); pointer-events: none; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section--sand { background: var(--paper-white); border-block: var(--rule); }
.section--sand-mid { background: var(--paper-white); border-block: var(--rule); }
.section--cream { background: var(--cream); }
.section--forest { background: var(--forest); color: var(--on-dark); }
.section--bark { background: var(--bark); color: var(--on-dark); }
.section--forest h1, .section--forest h2, .section--forest h3,
.section--bark h1, .section--bark h2, .section--bark h3 { color: var(--on-dark); }
.section--forest .lead, .section--bark .lead { color: var(--on-dark-2); }
.section--forest .small, .section--bark .small { color: var(--on-dark-3); }
.section--forest .link, .section--bark .link { color: var(--on-dark); }
.section--forest .link:hover, .section--bark .link:hover { color: var(--gold); }

.section-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }
.section-head h2 { max-width: 18ch; }
.section-head .lead { max-width: 56ch; }
.section-head__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-3); }
@media (min-width: 1025px) { .section-head--split { grid-template-columns: 1fr 1fr; align-items: end; } }

.split { display: grid; gap: var(--s-4); }
.split__head h2 { max-width: 14ch; }
.split__head .lead { margin-top: var(--s-3); }
.split__head .btn { margin-top: var(--s-4); }
@media (min-width: 1025px) {
  .split { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 7rem); align-items: start; }
  .split__head { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* Topographic texture (inline SVG data URI, tiled) */
.topo {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520'%3E%3Cg fill='none' stroke='%23403827' stroke-opacity='.13' stroke-width='1.2'%3E%3Cpath d='M-20 120c60-40 120-60 200-40s120 80 200 60 120-70 160-60'/%3E%3Cpath d='M-20 160c60-40 120-60 200-40s120 80 200 60 120-70 160-60'/%3E%3Cpath d='M-20 200c60-40 120-60 200-40s120 80 200 60 120-70 160-60'/%3E%3Cpath d='M-20 380c70 30 130 40 210 10s130-70 210-40 100 60 140 50'/%3E%3Cpath d='M-20 420c70 30 130 40 210 10s130-70 210-40 100 60 140 50'/%3E%3Cpath d='M-20 460c70 30 130 40 210 10s130-70 210-40 100 60 140 50'/%3E%3Cpath d='M300 290c30-30 80-40 120-20s60 60 100 60'/%3E%3Cpath d='M300 320c30-30 80-40 120-20s60 60 100 60'/%3E%3Cpath d='M20 260c30-20 70-20 100 0s50 40 90 30'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--bark-deep); color: var(--on-dark); padding-top: clamp(3rem, 6vw, 6rem); }
@media (min-width: 1441px) { .hero { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; } .hero .ridge { margin-top: auto; } }
.hero__media { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero__drift { position: absolute; inset: 0; transform-origin: 62% 45%; }
.hero.is-live .hero__drift { animation: heroDrift 60s ease-in-out 2.2s infinite alternate; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; opacity: 0; transform: scale(1.24); filter: blur(14px); will-change: transform, opacity, filter; }
.hero.is-live .hero__media img { animation: heroFocus 2.2s var(--ease-smooth) forwards; }
.hero.is-live .hero__media video { opacity: .55; transform: none; filter: none; }
.hero__media::after { content: ""; position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(90deg, rgba(42, 37, 26, .86) 0%, rgba(42, 37, 26, .58) 38%, rgba(42, 37, 26, .12) 72%, rgba(42, 37, 26, .3) 100%),
  linear-gradient(180deg, rgba(42, 37, 26, .5) 0%, rgba(42, 37, 26, 0) 30%, rgba(42, 37, 26, .92) 100%); }
@keyframes heroFocus { 0% { opacity: 0; transform: scale(1.24); filter: blur(14px); } 45% { opacity: .7; filter: blur(1px); } 100% { opacity: .7; transform: scale(1); filter: blur(0); } }
@keyframes heroDrift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.045) translate(-.8%, .6%); } }
.hero.hero--media .hero__glow { opacity: .35; }
.hero.hero--media .topo { opacity: .18; }
.hero__glow {
  position: absolute; z-index: 0; pointer-events: none; left: 50%; bottom: -10%; width: 140vw; max-width: 1800px; aspect-ratio: 2 / 1; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 100%, rgba(214, 152, 32, .55) 0%, rgba(228, 82, 43, .28) 28%, rgba(42, 37, 26, 0) 62%);
  animation: glow 14s ease-in-out infinite alternate;
}
@keyframes glow { from { transform: translateX(-52%) scale(1); opacity: .85; } to { transform: translateX(-48%) scale(1.06); opacity: 1; } }
.hero .topo { opacity: .5; filter: invert(1) sepia(1) saturate(4) hue-rotate(5deg); }
.hero h1 { color: var(--on-dark); }
.hero__kicker { color: var(--gold); }
.hero .hero__lead { color: var(--on-dark); font-size: clamp(1.1rem, 1.02rem + .4vw, 1.3rem); text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 10px 30px rgba(0, 0, 0, .35); }
.hero h1 { text-shadow: 0 2px 4px rgba(0, 0, 0, .35); }
.hero .hero__note { color: var(--on-dark-2); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.hero .btn--ghost { color: var(--on-dark); border-color: rgba(243, 237, 224, .45); }
.hero .btn--ghost:hover { background: rgba(243, 237, 224, .1); border-color: var(--on-dark); color: var(--on-dark); }
.display .book img { filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .5)) drop-shadow(0 3px 5px rgba(0, 0, 0, .3)); }
.hero__inner { position: relative; z-index: 1; display: grid; gap: var(--s-6); }
.hero__copy { max-width: 620px; }
.hero__kicker { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; font-size: var(--fs-small); color: var(--forest); margin-bottom: var(--s-3); }
.hero .hero__kicker { color: var(--gold); }
.hero__kicker .dia { color: var(--sandstone); }
.hero h1 { font-size: var(--fs-display); font-variation-settings: "wdth" 78; letter-spacing: -.025em; line-height: .98; }
.hero__lead { margin-top: var(--s-4); font-size: var(--fs-lead); color: var(--ink-2); max-width: 50ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.hero__note { margin-top: var(--s-2); font-size: var(--fs-small); color: var(--ink-3); }

/* Display header */
.display-wrap { position: relative; z-index: 1; }
.display-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: .75rem; margin-bottom: var(--s-3); border-bottom: 1px solid rgba(243, 237, 224, .16); font-size: var(--fs-small); color: var(--on-dark-2); }
.display-head strong { color: var(--on-dark); font-weight: 600; }
.display-head a { color: var(--on-dark-2); }
.display-head a:hover { color: var(--gold); }

/* Cover display: staggered gallery of the books */
.display { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.75rem, 2vw, 1.5rem); align-items: end; padding-bottom: 1rem; }
.display .book { display: block; text-decoration: none; }
.display .book img { width: 100%; height: auto; filter: drop-shadow(0 16px 18px rgba(42, 37, 26, .35)) drop-shadow(0 3px 4px rgba(42, 37, 26, .2)); transition: transform var(--t-med) var(--ease-out); }
.display .book:nth-child(2), .display .book:nth-child(5) { transform: translateY(-1.25rem); }
.display.is-ready.is-settled .book { transition-duration: 380ms; }
.display.is-ready .book:hover { transform: translateY(-12px) scale(1.04); }
.display.is-ready .book:nth-child(2):hover, .display.is-ready .book:nth-child(5):hover { transform: translateY(calc(-1.25rem - 12px)) scale(1.04); }
.display[data-animate] .book { opacity: 0; transform: translateY(16px); }
.display.is-ready .book { opacity: 1; transform: none; transition: opacity 1100ms var(--ease-smooth), transform 1100ms var(--ease-smooth); transition-delay: calc(var(--i, 0) * 220ms); }
@media (max-width: 1024px) { .display.is-ready .book { transition-duration: 700ms; transition-delay: calc(var(--i, 0) * 120ms); } .ridge.is-in .ridge__b1, .ridge.is-in .ridge__b2, .ridge.is-in .ridge__b3, .ridge.is-in .ridge__b4 { animation-duration: 1.1s; } }
.display.is-ready .book img { animation: bookFloat calc(5.2s + var(--i, 0) * .6s) ease-in-out calc(1.6s + var(--i, 0) * .35s) infinite alternate; }
@keyframes bookFloat { from { transform: translateY(0); } to { transform: translateY(-9px); } }
.display .book:hover img { animation-play-state: paused; }
.display.is-ready .book:nth-child(2), .display.is-ready .book:nth-child(5) { transform: translateY(-1.25rem); }
.hero__copy[data-animate] > * { opacity: 0; transform: translateY(22px); }
.hero__copy.is-ready > * { opacity: 1; transform: none; transition: opacity 1300ms var(--ease-smooth), transform 1300ms var(--ease-smooth); }
.hero__copy.is-ready > :nth-child(2) { transition-delay: 220ms; }
.hero__copy.is-ready > :nth-child(3) { transition-delay: 440ms; }
.hero__copy.is-ready > :nth-child(4) { transition-delay: 660ms; }
.hero__copy.is-ready > :nth-child(5) { transition-delay: 880ms; }
.display-head { opacity: 0; transition: opacity 1200ms var(--ease-smooth); }
.display-wrap.is-ready .display-head { opacity: 1; }
@media (min-width: 1025px) {
  .hero__inner { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
  .display { padding-bottom: 2rem; }
}

/* Ridge: layered mountains in the brand palette, closes the hero */
.ridge { position: relative; z-index: 1; display: block; width: 100%; height: clamp(90px, 14vw, 200px); margin-top: clamp(1rem, 3vw, 3rem); overflow: hidden; }
.ridge--parallax { will-change: transform; }
.ridge svg { width: 100%; height: 100%; display: block; }
.ridge path { transform-box: view-box; }
.ridge g { transform-box: view-box; }
.hero .ridge path { transform: translateX(-900px); opacity: 0; }
.ridge.is-in .ridge__b1 { animation: ridgeIn 1.8s var(--ease-smooth) .15s both; }
.ridge.is-in .ridge__b2 { animation: ridgeIn 1.8s var(--ease-smooth) .3s both; }
.ridge.is-in .ridge__b3 { animation: ridgeIn 1.8s var(--ease-smooth) .45s both; }
.ridge.is-in .ridge__b4 { animation: ridgeIn 1.8s var(--ease-smooth) .6s both; }
.hero.is-live .ridge__flow { animation: none; }
@keyframes ridgeIn { from { transform: translateX(-900px); opacity: 0; } 35% { opacity: 1; } to { transform: translateX(0); opacity: 1; } }
@keyframes ridgeFlow { from { transform: translateX(0); } to { transform: translateX(-720px); } }
.no-js .hero .ridge path { transform: none; opacity: 1; }
.ridge svg { width: 100%; height: 100%; display: block; }

/* Ticker (Onyx-style service strip) */
.ticker { background: var(--forest); color: var(--on-dark); overflow: hidden; padding: .85rem 0; border-block: 1px solid rgba(243, 237, 224, .1); }
.ticker__track { display: flex; width: max-content; gap: 2.5rem; animation: ticker 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; gap: 2.5rem; align-items: center; white-space: nowrap; font-weight: 600; font-size: .95rem; letter-spacing: .01em; }
.ticker__group .dia { color: var(--gold); width: .45em; height: .45em; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; width: auto; flex-wrap: wrap; } .ticker__group[aria-hidden] { display: none; } .ticker__group { flex-wrap: wrap; justify-content: center; width: 100%; } }

/* Stats strip */
.stats { background: var(--cream); border-bottom: var(--rule); }
.stats__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-left: var(--rule); }
.stats__row > li { padding: var(--s-4) var(--s-3); border-right: var(--rule); border-bottom: var(--rule); }
.stats__num { display: block; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); font-weight: 700; font-variation-settings: "wdth" 80; letter-spacing: -.02em; line-height: 1; color: var(--forest); font-variant-numeric: tabular-nums; }
.stats__num .dia { color: var(--sandstone); width: .3em; height: .3em; margin-left: .35rem; vertical-align: .35em; }
.stats__label { display: block; margin-top: .5rem; color: var(--ink-2); font-size: var(--fs-small); }
@media (min-width: 641px) { .stats__row { grid-template-columns: repeat(4, 1fr); } .stats__row > li { border-bottom: 0; } }

/* ---------- Work wall: books on colored tiles ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filters button {
  min-height: 42px; padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--sand-line);
  font-weight: 500; font-size: var(--fs-small); color: var(--ink-2);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.filters button:hover { border-color: var(--bark); color: var(--bark); }
.filters button[aria-pressed="true"] { background: var(--bark); border-color: var(--bark); color: var(--on-dark); }
.section--forest .filters button { border-color: rgba(243, 237, 224, .3); color: var(--on-dark-2); }
.section--forest .filters button:hover { border-color: var(--on-dark); color: var(--on-dark); }
.section--forest .filters button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--bark-deep); }

.wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
@media (min-width: 641px)  { .wall { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); } }
@media (min-width: 1025px) { .wall { grid-template-columns: repeat(4, 1fr); } }
.wall--3 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 641px) { .wall--3 { grid-template-columns: repeat(3, 1fr); } }
.tile { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.tile[hidden] { display: none; }
.tile__art {
  position: relative; aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; padding: 12%;
  background: var(--tile, var(--sand-mid)); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
.tile__art img { position: absolute; top: 12%; left: 12%; width: 76%; height: 76%; max-width: none; max-height: none; object-fit: contain; filter: drop-shadow(0 14px 16px rgba(42, 37, 26, .35)); transition: transform var(--t-med) var(--ease-out); }
.tile:hover .tile__art { transform: translateY(-8px); box-shadow: 0 32px 44px -22px rgba(42, 37, 26, .6); }
.tile:hover .tile__art img { transform: scale(1.06); }
.tile__meta { padding: var(--s-2) .25rem 0; }
.tile__meta h3 { font-size: 1.1rem; }
.tile__meta h3 a { text-decoration: none; color: inherit; transition: color var(--t-fast); }
.tile:hover .tile__meta h3 a { color: var(--sandstone-ink); }
.section--forest .tile:hover .tile__meta h3 a { color: var(--gold); }
a.tile__art { text-decoration: none; }
.tile__author { color: var(--ink-2); font-size: var(--fs-small); margin-top: .15rem; }
.tile__genre { display: inline-flex; align-items: center; gap: .4rem; margin-top: .5rem; font-size: .8rem; font-weight: 500; color: var(--ink-3); }
.tile__genre .dia { width: .4em; height: .4em; color: var(--sandstone); }
.tile__link { display: inline-block; margin-top: .5rem; font-size: var(--fs-small); }
.tile__tag { display: inline-block; margin-top: .5rem; font-size: .78rem; font-weight: 600; color: var(--sandstone-ink); }
/* Tile color rotation */
.wall > :nth-child(4n+1) .tile__art { --tile: var(--sand-mid); }
.wall > :nth-child(4n+2) .tile__art { --tile: var(--forest); }
.wall > :nth-child(4n+3) .tile__art { --tile: var(--sand); }
.wall > :nth-child(4n+4) .tile__art { --tile: var(--bark); }
.section--forest .tile__meta h3, .section--bark .tile__meta h3 { color: var(--on-dark); }
.section--forest .tile__author, .section--forest .tile__genre { color: var(--on-dark-2); }
.section--forest .tile__link { color: var(--on-dark); }
.section--forest .wall > :nth-child(4n+2) .tile__art { --tile: var(--bark); }
.section--forest .wall > :nth-child(4n+4) .tile__art { --tile: var(--forest-deep); }
.wall__empty { padding: var(--s-5) 0; color: var(--ink-3); }

/* ---------- Spotlight carousel ---------- */
.spot { position: relative; --slide-w: 86vw; }
@media (min-width: 641px)  { .spot { --slide-w: 72vw; } }
@media (min-width: 1025px) { .spot { --slide-w: min(60%, 46rem); } }
.spot__viewport { overflow: hidden; margin: 0 calc(-1 * var(--gutter)); padding: var(--s-2) 0 var(--s-3); touch-action: pan-y; cursor: grab; user-select: none; }
.spot__viewport:active { cursor: grabbing; }
.spot__viewport img { -webkit-user-drag: none; }
.spot__track { display: flex; gap: var(--s-4); will-change: transform; transition: transform 750ms var(--ease-smooth); }
.spot__track.no-anim { transition: none; }
.spot__slide { flex: 0 0 var(--slide-w); transform: scale(.9); opacity: .4; transition: transform 750ms var(--ease-smooth), opacity 750ms var(--ease-smooth); }
.spot__slide.is-active { transform: scale(1); opacity: 1; }
.spot__slide:not(.is-active) .feature { pointer-events: auto; cursor: pointer; }
.feature { display: grid; grid-template-columns: 1fr; text-decoration: none; color: inherit; background: var(--cream); border: 1px solid var(--sand-mid); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 18px 40px -24px rgba(42, 37, 26, .35); height: 100%; }
.feature__art { position: relative; background: var(--tile, var(--sand-mid)); aspect-ratio: 4 / 3; }
.feature__art img { position: absolute; top: 10%; left: 10%; width: 80%; height: 80%; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(42, 37, 26, .3)); transition: transform 900ms var(--ease-smooth); }
.spot__slide.is-active .feature:hover .feature__art img { transform: scale(1.04); }
.feature__body { padding: var(--s-3) var(--s-3) var(--s-4); display: flex; flex-direction: column; gap: .35rem; }
.feature__body h3 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.7rem); margin-top: .25rem; }
.feature__author { color: var(--ink-2); }
.feature__desc { color: var(--ink-2); font-size: .95rem; margin-top: .5rem; max-width: 40ch; }
.feature__body .case__cta { margin-top: auto; padding-top: var(--s-3); }
.spot__slide.is-active .feature:hover .case__cta { color: var(--sandstone-ink); }
@media (min-width: 641px) {
  .feature { grid-template-columns: 5fr 7fr; }
  .feature__art { aspect-ratio: auto; min-height: 100%; }
  .feature__body { padding: var(--s-4); }
}
.spot__controls { display: flex; align-items: center; justify-content: center; gap: var(--s-3); margin-top: var(--s-2); }
.spot__btn { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--sand-line); color: var(--bark); display: grid; place-items: center; transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast); }
.spot__btn:hover { background: var(--bark); border-color: var(--bark); color: var(--on-dark); }
.spot__btn svg { width: 20px; height: 20px; }
.spot__dots { display: flex; justify-content: center; gap: .3rem; }
.spot__dots button { width: 24px; height: 24px; display: grid; place-items: center; }
.spot__dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sand-line); transition: width var(--t-med) var(--ease-out), background var(--t-fast); }
.spot__dots button:hover::before { background: var(--bark); }
.spot__dots button[aria-current="true"]::before { width: 24px; border-radius: 4px; background: var(--sandstone); }

/* Strip mode: three visible, no dimming, cards flush left */
.spot--strip .spot__slide { flex: 0 0 100%; transform: none; opacity: 1; }
@media (min-width: 641px)  { .spot--strip .spot__slide { flex-basis: calc((100% - var(--s-4)) / 2); } }
@media (min-width: 1025px) { .spot--strip .spot__slide { flex-basis: calc((100% - 2 * var(--s-4)) / 3); } }
.spot--strip .spot__viewport { margin: 0; padding: var(--s-1) 0 var(--s-3); }
.spot--strip .review { height: 100%; }
.spot__btn--light { border-color: rgba(243, 237, 224, .35); color: var(--on-dark); }
.spot__btn--light:hover { background: var(--gold); border-color: var(--gold); color: var(--bark-deep); }
.spot__dots--light button::before { background: rgba(243, 237, 224, .3); }
.spot__dots--light button:hover::before { background: var(--on-dark); }
.spot__dots--light button[aria-current="true"]::before { background: var(--gold); }

/* Quick-view book card */
.modal--book .modal__card { width: min(100%, 780px); padding: 0; overflow: hidden; border-top: 0; }
.modal--book .modal__close { z-index: 5; width: 44px; height: 44px; top: .8rem; right: .8rem; background: var(--bark-deep); color: var(--on-dark); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5); }
.modal--book .modal__close:hover { background: var(--sandstone); color: var(--bark-deep); }
.modal--book .modal__close svg { width: 22px; height: 22px; }
.bookcard { display: grid; grid-template-columns: 38% 1fr; }
.bookcard__art { position: relative; background: var(--sand-mid); min-height: 200px; }
.bookcard__art img { position: absolute; top: 12%; left: 12%; width: 76%; height: 76%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(42, 37, 26, .25)); }
.bookcard__body { padding: clamp(1.1rem, 4vw, 2.5rem); }
.modal__close-text { display: none; }
@media (max-width: 640px) { .modal__close-text { display: inline-flex; } .modal--book .modal__actions .btn { flex: 1 1 100%; } .bookcard__body h2 { font-size: 1.3rem; padding-right: 2.4rem; } }
.bookcard__genre { font-size: .8rem; font-weight: 600; color: var(--sandstone-ink); display: inline-flex; align-items: center; gap: .4rem; }
.bookcard__genre .dia { width: .45em; height: .45em; }
.bookcard__body h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); margin-top: .4rem; padding-right: 2rem; }
.bookcard__author { color: var(--ink-2); margin-top: .2rem; }
.bookcard__body > p:not(.bookcard__genre):not(.bookcard__author) { margin-top: var(--s-3); color: var(--ink-2); }
.modal--book .modal__actions { margin-top: var(--s-4); }
@media (min-width: 641px) { .bookcard { grid-template-columns: 5fr 7fr; } .bookcard__art { min-height: 100%; } }

/* ---------- Case studies ---------- */
.cases { display: grid; gap: var(--s-4); }
@media (min-width: 641px) { .cases { grid-template-columns: repeat(3, 1fr); } }
.case { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--cream); box-shadow: 0 10px 24px -18px rgba(42, 37, 26, .25); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--sand-mid); transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out); }
.case:hover { transform: translateY(-8px); box-shadow: 0 34px 48px -24px rgba(42, 37, 26, .6); border-color: var(--gold); }
.case:hover .case__art img { transform: scale(1.06); }
.case:hover .case__cta { color: var(--sandstone-ink); }
.case__art { --art-h: clamp(220px, 22vw, 300px); height: var(--art-h); position: relative; background: var(--tile, var(--sand)); display: flex; align-items: center; justify-content: center; padding: 1.5rem; overflow: hidden; }
.case__art img { transition: transform 900ms var(--ease-smooth); }
.case__chip { position: absolute; top: 1rem; left: 1rem; z-index: 1; background: rgba(42, 37, 26, .78); color: var(--on-dark); font-size: .78rem; font-weight: 600; padding: .35rem .7rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .4rem; backdrop-filter: blur(6px); }
.case__chip .dia { color: var(--gold); width: .45em; height: .45em; }
.case__art img { max-height: calc(var(--art-h) - 3rem); width: auto; max-width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(42, 37, 26, .35)); }
.case__art--photo { padding: 0; }
.case__art--photo img { width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center 30%; filter: none; }
.case__art--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42, 37, 26, .15), rgba(42, 37, 26, 0) 40%); }
.case__body { padding: var(--s-3) var(--s-3) var(--s-4); display: grid; gap: .5rem; }
.case__genre { font-size: .8rem; font-weight: 600; color: var(--sandstone-ink); display: inline-flex; align-items: center; gap: .4rem; }
.case__body h3 { font-size: 1.35rem; }
.case__body p { color: var(--ink-2); font-size: .95rem; }
.case__cta { margin-top: .75rem; font-weight: 600; font-size: var(--fs-small); color: var(--bark); display: inline-flex; align-items: center; gap: .4rem; transition: color var(--t-fast); }
.case__cta::after { content: ""; width: 1em; height: 1em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.cases > :nth-child(3n+1) .case__art { --tile: var(--sand); }
.cases > :nth-child(3n+2) .case__art { --tile: var(--forest); }
.cases > :nth-child(3n+3) .case__art { --tile: var(--bark); }

/* Case-study detail */
.case-hero { display: grid; gap: var(--s-5); align-items: center; }
.case-hero__art { aspect-ratio: 4 / 5; max-width: 420px; background: var(--sand); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; padding: 10%; }
.case-hero__art img { max-height: 100%; height: auto; width: auto; filter: drop-shadow(0 10px 14px rgba(42, 37, 26, .22)); }
@media (min-width: 1025px) { .case-hero { grid-template-columns: 7fr 5fr; } .case-hero__art { justify-self: end; } }
.case-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3) var(--s-4); margin-top: var(--s-5); padding-top: var(--s-4); border-top: var(--rule); }
.case-facts dt { font-size: .8rem; font-weight: 600; color: var(--ink-3); }
.case-facts dd { font-weight: 600; color: var(--bark); margin-top: .2rem; }
@media (min-width: 641px) { .case-facts { grid-template-columns: repeat(4, 1fr); } }
.prose h2 { margin-top: var(--s-6); margin-bottom: var(--s-3); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 1.1em; }
.prose ul { margin-top: 1em; padding-left: 0; display: grid; gap: .5rem; }
.prose li { position: relative; padding-left: 1.4rem; color: var(--ink-2); }
.prose li::before { content: ""; position: absolute; left: .2rem; top: .6em; width: .45em; height: .45em; background: var(--sandstone); transform: rotate(45deg); }
.results { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-top: var(--s-4); }
@media (min-width: 641px) { .results { grid-template-columns: repeat(3, 1fr); } }
.results > div { background: var(--cream); border-radius: var(--radius-lg); padding: var(--s-3); border: 1px solid var(--sand-mid); }
.results dt { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); font-weight: 700; font-variation-settings: "wdth" 80; color: var(--forest); line-height: 1; }
.results dd { margin-top: .5rem; color: var(--ink-2); font-size: var(--fs-small); }

/* ---------- Video block ---------- */
.video-poster { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bark-deep); border-radius: var(--radius-lg); }
.video-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity var(--t-med), transform var(--t-slow) var(--ease-out); }
.video-poster:hover img { opacity: 1; transform: scale(1.02); }
.video-poster__play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; background: var(--sandstone); color: var(--bark-deep); display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .6); transition: transform var(--t-fast); }
.video-poster:hover .video-poster__play { transform: scale(1.06); }
.video-poster__play svg { width: 30px; height: 30px; margin-left: 4px; }
.video-poster__label { position: absolute; left: var(--s-3); right: var(--s-3); bottom: var(--s-3); color: var(--on-dark); font-weight: 600; text-align: left; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.video-poster__label span { display: block; font-weight: 400; font-size: var(--fs-small); color: var(--on-dark-2); }
.video-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42, 37, 26, 0) 55%, rgba(42, 37, 26, .85) 100%); pointer-events: none; }
.video-poster__play, .video-poster__label { z-index: 1; }
.video-poster--wide { box-shadow: var(--shadow-float); border: 1px solid rgba(243, 237, 224, .1); }
.video-poster--wide img { opacity: 1; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-float); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-fallback { margin-top: .75rem; font-size: var(--fs-small); color: var(--on-dark-3); }
.video-fallback a { color: var(--on-dark-2); }
.side-photos { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-top: var(--s-4); }
.side-photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: var(--radius-lg); }
.side-photos figcaption { margin-top: .5rem; font-size: var(--fs-small); color: var(--ink-3); }
.side-photos--stack { grid-template-columns: 1fr; gap: var(--s-4); }
.side-photos--stack img { aspect-ratio: 4 / 5; transition: transform var(--t-med) var(--ease-out); }
.side-photos--stack a:hover img { transform: translateY(-3px); }
.split__head--photos { position: static !important; }
.split--photos { align-items: start; }
@media (min-width: 1025px) { .split--photos { grid-template-columns: 4fr 8fr; gap: clamp(2.5rem, 5vw, 5rem); } }
.side-photos--stack { margin-top: 0; }
.video-poster--wide .video-poster__play { width: 96px; height: 96px; }
.video-poster--wide .video-poster__label { left: var(--s-4); bottom: var(--s-4); font-size: 1.15rem; }
@media (max-width: 640px) { .video-poster__play, .video-poster--wide .video-poster__play { width: 56px; height: 56px; } .video-poster__play svg { width: 22px; height: 22px; margin-left: 3px; } .video-poster--wide .video-poster__label { left: var(--s-3); bottom: var(--s-3); font-size: 1rem; } }
.modal__fallback { padding: .8rem 1rem; background: #000; color: var(--on-dark-3); font-size: var(--fs-small); }
.modal__fallback a { color: var(--on-dark); }
.video-grid { display: grid; gap: var(--s-4); }
@media (min-width: 1025px) { .video-grid { grid-template-columns: 7fr 5fr; align-items: center; } }

/* ---------- Icons (PNG slots; missing files remove themselves) ---------- */
.icon { display: block; width: 48px; height: 48px; object-fit: contain; margin-bottom: var(--s-3); }
.icon--sm { width: 32px; height: 32px; margin-bottom: .6rem; }
.has-icon::before { display: none !important; }

/* ---------- Steps ---------- */
.steps { display: grid; counter-reset: step; border-top: var(--rule); }
.step { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); column-gap: var(--s-2); row-gap: .35rem; padding: var(--s-4) 0; border-bottom: var(--rule); counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); grid-column: 1; grid-row: 1 / span 3; font-weight: 700; font-size: 1.4rem; line-height: 1; color: var(--sandstone-ink); padding-top: .2rem; font-variation-settings: "wdth" 80; }
.step > * { grid-column: 2; }
.step h3 { margin: 0; }
.step p { color: var(--ink-2); }
.section--forest .steps, .section--forest .step { border-color: rgba(243, 237, 224, .16); }
.section--forest .step::before { color: var(--gold); }
.section--forest .step p { color: var(--on-dark-2); }

/* Steps as a 4-up card row (home) */
.steps--row { border-top: 0; grid-template-columns: 1fr; gap: var(--s-3); }
.steps--row .step { background: var(--cream); border: 1px solid var(--sand-mid); border-radius: var(--radius-lg); padding: var(--s-3); grid-template-columns: 1fr; }
.steps--row .step { position: relative; display: block; padding-top: var(--s-4); }
.steps--row .step::before { position: absolute; top: 1rem; right: 1.1rem; font-size: 1rem; color: var(--ink-3); padding: 0; }
.steps--row .step p { margin-top: .4rem; }
.steps--row .step > * { grid-column: 1; }
.steps--row .step p { font-size: var(--fs-small); }
@media (min-width: 641px) { .steps--row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1025px) { .steps--row { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Phase stepper (process page) ---------- */
.phases { scroll-margin-top: calc(var(--header-h) + 1rem); }
.phases__rail { display: none; }
.phases__rail::-webkit-scrollbar { display: none; }
.phases__rail [role="tab"] { text-align: left; padding: 0 0 var(--s-3); margin-bottom: -1px; border-bottom: 3px solid transparent; color: var(--ink-2); display: grid; gap: .25rem; align-content: start; transition: color var(--t-fast), border-color var(--t-fast); }
.phases__rail { position: relative; }
.phases__dot { display: none; }
.phases__rail [role="tab"] { position: relative; }
.phases__rail [role="tab"]:hover .phases__dot { border-color: var(--bark); }
.phases__rail [aria-selected="true"] .phases__dot { background: var(--sandstone); border-color: var(--sandstone); transform: scale(1.2); }
.phases__big { display: block; font-size: clamp(3rem, 2rem + 4vw, 5.5rem); font-weight: 700; font-variation-settings: "wdth" 76; line-height: 1; color: var(--sandstone); letter-spacing: -.03em; margin: .5rem 0 .25rem; }
.split--phase .icon { width: 56px; height: 56px; margin-bottom: 0; opacity: .9; }
.split--phase .split__head { position: static; }
@media (min-width: 1025px) { .split--phase { grid-template-columns: 4fr 8fr; } .split--phase .split__head { position: sticky; top: calc(var(--header-h) + 2rem); } }
.trail { position: relative; }
.trail__step { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: var(--s-3); padding-bottom: var(--s-5); }
.trail__step::before { content: ""; position: absolute; left: 37px; top: 76px; bottom: 0; border-left: 2px dashed var(--sand-line); }
.trail__step:last-child::before { display: none; }
.trail__step:last-child { padding-bottom: 0; }
.trail__node { position: relative; width: 76px; height: 76px; border-radius: 50%; background: var(--cream); border: 2px solid var(--sand-line); display: grid; place-items: center; box-shadow: 0 8px 18px -12px rgba(42, 37, 26, .35); }
.trail__node .icon { width: 38px; height: 38px; margin: 0; grid-area: 1 / 1; }
.trail__fallback { grid-area: 1 / 1; font-weight: 700; font-size: 1.2rem; color: var(--sandstone-ink); font-variation-settings: "wdth" 80; }
.trail__node.has-icon .trail__fallback { display: none; }
.trail__body { padding-top: .6rem; }
.trail__num { display: block; font-size: .8rem; font-weight: 600; color: var(--sandstone-ink); letter-spacing: .02em; }
.trail__body h3 { margin-top: .2rem; font-size: 1.3rem; }
.trail__body p { margin-top: .45rem; color: var(--ink-2); max-width: 54ch; }
/* Phase intro row + horizontal trail on desktop */
.phase-intro { display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }
.phase-intro__title { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.phase-intro__title .icon { margin: 0; width: 52px; height: 52px; }
.phase-intro__title .phases__big { margin: 0; font-size: clamp(2.6rem, 2rem + 2.5vw, 4.2rem); }
.phase-intro__title h2 { font-size: var(--fs-h2); }
.phase-intro .lead { max-width: 60ch; }
@media (min-width: 1025px) {
  .phases { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
  .phases__rail { display: flex; flex-direction: column; gap: .35rem; border: 0; padding: .6rem; margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 1.5rem); overflow: visible; }
  .phases__rail::before { display: none; }
  .phases__rail [role="tab"] { padding: 1rem 1.1rem; border: 0; border-radius: var(--radius); color: var(--on-dark-2); margin: 0; gap: .15rem; transition: background var(--t-fast), color var(--t-fast); }
  .phases__rail [role="tab"]:hover { background: rgba(243, 237, 224, .08); color: var(--on-dark); }
  .phases__rail [role="tab"][aria-selected="true"] { background: var(--gold); color: var(--bark-deep); }
  .phases__rail [role="tab"][aria-selected="true"] .phases__num, .phases__rail [role="tab"][aria-selected="true"] .phases__meta { color: var(--bark-deep); }
  .phases__rail .phases__num { color: var(--gold); font-size: 1.1rem; }
  .phases__rail .phases__name { font-size: 1.1rem; }
  .phases__rail .phases__meta { color: var(--on-dark-3); }
  .phases__dot { display: none; }
  .phases__panels { min-width: 0; }
  .phases__panel { padding-top: 0; }
  .phase-intro { grid-template-columns: 1fr 1fr; align-items: end; }
  .trail--h { display: grid; grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); gap: var(--s-4); position: relative; padding-top: 0; }
  .trail--h::before { content: ""; position: absolute; top: 37px; left: calc(100% / var(--steps, 4) / 2); right: calc(100% / var(--steps, 4) / 2); border-top: 2px dashed var(--sand-line); z-index: 0; }
  .trail--h .trail__step { display: block; padding-bottom: 0; text-align: center; }
  .trail--h .trail__step::before { display: none; }
  .trail--h .trail__node { margin: 0 auto; position: relative; z-index: 1; }
  .trail--h .trail__body { padding-top: var(--s-3); }
  .trail--h .trail__body p { margin-inline: auto; }
}
.phases__nav { margin-top: var(--s-5); padding-top: var(--s-4); border-top: var(--rule); display: grid; gap: var(--s-2); }
@media (min-width: 641px) { .phases__nav { grid-template-columns: auto 1fr; align-items: center; } .phases__nav-meta { justify-content: flex-end; gap: var(--s-4); } }
.phases__nav-btns { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.phases__nav-meta { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); font-size: var(--fs-small); color: var(--ink-3); }
@media (min-width: 641px) { .phases__nav .phases__nav-meta { justify-content: flex-end; gap: var(--s-4); } }
.phases__rail [role="tab"]:hover { color: var(--bark); }
.phases__rail [role="tab"][aria-selected="true"] { color: var(--bark); border-bottom-color: var(--sandstone); }
.phases__num { font-weight: 700; font-size: 1.5rem; line-height: 1; color: var(--sandstone-ink); font-variation-settings: "wdth" 80; }
.phases__name { font-weight: 700; font-size: 1.2rem; line-height: 1.15; font-variation-settings: "wdth" 88; }
.phases__meta { font-size: var(--fs-small); color: var(--ink-3); }
.phases__panel { padding-top: var(--s-5); }
.phases__panel.is-in { animation: panelIn 380ms var(--ease-smooth) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.phases__panel.is-in .trail__step { animation: stepIn 520ms var(--ease-smooth) both; animation-delay: calc(120ms + var(--i, 0) * 90ms); }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.phases__panel h2 { font-size: var(--fs-h2); }
.phases__panel > .lead { margin-top: var(--s-2); max-width: 58ch; }
.steps--grid { display: grid; grid-template-columns: 1fr; gap: var(--s-3); border-top: 0; margin-top: var(--s-4); }
.steps--grid .step { position: relative; display: block; background: var(--cream); border: 1px solid var(--sand-mid); border-radius: var(--radius-lg); padding: var(--s-4) var(--s-3) var(--s-3); transition: border-color var(--t-fast), transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out); }

.steps--grid .step::before { position: absolute; top: 1rem; right: 1.1rem; font-size: 1rem; color: var(--ink-3); padding: 0; }
.steps--grid .step > * { grid-column: auto; }
.steps--grid .step p { margin-top: .4rem; }
.steps--grid .step:hover { border-color: var(--sand-line); }
.steps--grid .step h3 { font-size: 1.15rem; }
.steps--grid .step p { font-size: var(--fs-small); }
@media (min-width: 641px) { .steps--grid { grid-template-columns: 1fr 1fr; } }
.phases__nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-5); }
.phases__nav .small { margin-left: auto; }
.no-js .phases__panel { display: block !important; }
.no-js .phases__panel + .phases__panel { margin-top: var(--s-6); }

/* ---------- Points list ---------- */
.points { border-top: var(--rule); }
.points > li { padding: var(--s-4) 0; border-bottom: var(--rule); display: grid; gap: .5rem; }
.points h3 { font-size: 1.3rem; }
.points p { color: var(--ink-2); }
@media (min-width: 641px) { .points > li { grid-template-columns: 1fr 2fr; gap: var(--s-4); } }
.section--forest .points, .section--forest .points > li { border-color: rgba(243, 237, 224, .16); }
.section--forest .points p { color: var(--on-dark-2); }

/* Points as a compact grid */
.points--grid { border-top: 0; display: grid; grid-template-columns: 1fr; gap: var(--s-3); }
.points--grid > li { display: block; padding: var(--s-4); border: 1px solid var(--sand-mid); border-radius: var(--radius-lg); background: var(--cream); transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out); }

.points--grid > li::before { content: ""; display: block; width: 14px; height: 14px; background: var(--sandstone); transform: rotate(45deg); border-radius: 2px; margin: 0 0 var(--s-3) .2rem; }
.points--grid > li .icon { margin-bottom: var(--s-3); }
.points--grid h3 { font-size: 1.2rem; }
.points--grid p { margin-top: .6rem; font-size: 1rem; line-height: 1.55; }
@media (min-width: 641px) { .points--grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Reviews grid ---------- */
.reviews { display: grid; gap: var(--s-3); }
@media (min-width: 641px)  { .reviews { grid-template-columns: 1fr 1fr; gap: var(--s-4); } }
@media (min-width: 1025px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { position: relative; background: var(--forest-deep); border: 1px solid rgba(243, 237, 224, .1); border-radius: var(--radius-lg); padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-4); }
.review::before { content: "\201C"; position: absolute; top: .4rem; right: 1.2rem; font-size: 5rem; line-height: 1; color: var(--gold); opacity: .35; font-weight: 700; }
.review p { font-size: 1.05rem; line-height: 1.55; color: var(--on-dark); max-width: none; flex: 1; }
.review footer { display: flex; align-items: center; gap: .8rem; font-size: var(--fs-small); color: var(--on-dark-3); }
.review footer strong { display: block; color: var(--on-dark); font-weight: 600; }
.review__avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: var(--bark-deep); display: grid; place-items: center; font-weight: 700; font-size: .85rem; letter-spacing: .02em; }

/* ---------- Testimonials (JS carousel) ---------- */
.quotes { position: relative; }
.quotes__track { display: flex; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: var(--s-2); margin: 0 calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.quotes__track::-webkit-scrollbar { display: none; }
.quote { flex: 0 0 min(86%, 560px); scroll-snap-align: start; display: flex; flex-direction: column; padding: var(--s-4) 0 0; border-top: 2px solid var(--gold); }
.quote p { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.9rem); line-height: 1.3; font-weight: 500; font-variation-settings: "wdth" 92; letter-spacing: -.01em; color: var(--on-dark); max-width: none; min-height: 4.2em; text-wrap: pretty; }
.quote footer { margin-top: var(--s-4); color: var(--on-dark-3); font-size: var(--fs-small); display: flex; align-items: center; gap: .9rem; }
.quote footer strong { color: var(--on-dark); font-weight: 600; display: block; }
.quote__avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--bark-deep); display: grid; place-items: center; font-weight: 700; font-size: .9rem; letter-spacing: .02em; }
.quote__source { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; color: var(--on-dark-3); }
.quote__source .dia { color: var(--sandstone); width: .4em; height: .4em; }
.quotes__controls { display: flex; gap: .5rem; margin-top: var(--s-3); }
.quotes__controls button { width: 46px; height: 46px; border: 2px solid rgba(243, 237, 224, .35); border-radius: 50%; color: var(--on-dark); display: inline-flex; align-items: center; justify-content: center; transition: background var(--t-fast), border-color var(--t-fast); }
.quotes__controls button:hover { background: rgba(243, 237, 224, .1); border-color: var(--on-dark); }
.quotes__controls svg { width: 18px; height: 18px; }
.quotes--js .quotes__track { display: grid; overflow: visible; margin: 0 -48px; padding: 0 48px; scroll-snap-type: none; }
.quotes--js .quote { grid-area: 1 / 1; flex: none; width: 100%; opacity: 0; pointer-events: none; }
.quotes--js .quote.is-active { opacity: 1; pointer-events: auto; animation: quoteHold var(--quote-hold, 7000ms) var(--ease-out) both; }
.quotes--js .quote.is-leaving { animation: quoteOut 600ms var(--ease-out) both; }
.quotes--js .quote.is-leaving.from-right { animation-name: quoteOutRight; }
.quotes--js.is-paused .quote.is-active { animation-play-state: paused; }
@keyframes quoteHold { 0% { opacity: 0; transform: translateX(36px); } 10% { opacity: 1; transform: translateX(0); } 100% { opacity: 1; transform: translateX(-10px); } }
@keyframes quoteOut { to { opacity: 0; transform: translateX(-36px); } }
@keyframes quoteOutRight { to { opacity: 0; transform: translateX(36px); } }
.quotes__foot { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-3); }
.quotes__progress { flex: 1; height: 2px; background: rgba(243, 237, 224, .18); position: relative; overflow: hidden; }
.quotes__progress span { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.quotes__progress.is-running span { animation: quoteProgress var(--quote-hold, 7000ms) linear both; }
.quotes--js.is-paused .quotes__progress span { animation-play-state: paused; }
@keyframes quoteProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.quotes__dots { display: flex; gap: .5rem; }
.quotes__dots button { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
.quotes__dots button::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); background: rgba(243, 237, 224, .35); transition: background var(--t-fast), transform var(--t-fast); }
.quotes__dots button:hover::before { background: var(--on-dark-2); }
.quotes__dots button[aria-current="true"]::before { background: var(--gold); transform: rotate(45deg) scale(1.3); }

.pullquote { border-left: 3px solid var(--gold); padding-left: var(--s-3); }
.pullquote p { font-size: clamp(1.15rem, 1.05rem + .6vw, 1.5rem); line-height: 1.35; font-weight: 500; color: var(--bark); }
.pullquote footer { margin-top: var(--s-2); font-size: var(--fs-small); color: var(--ink-3); }
.pullquote footer strong { display: block; color: var(--ink-2); font-weight: 600; margin-bottom: .1rem; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4) var(--s-3); }
@media (min-width: 1025px) { .team { grid-template-columns: repeat(4, 1fr); } }
.person { display: grid; gap: .5rem; align-content: start; }
.person__photo { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand-mid); display: grid; place-items: center; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.person__initials { font-size: 2.4rem; font-weight: 700; color: var(--bark); opacity: .5; font-variation-settings: "wdth" 80; }
.person h3 { font-size: 1.15rem; margin-top: .5rem; }
.person__role { font-size: var(--fs-small); color: var(--ink-2); }
.person p:not(.person__role) { font-size: var(--fs-small); color: var(--ink-3); }

/* Founder block */
.founder { display: grid; gap: var(--s-5); align-items: start; }
.founder__photo { width: 100%; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-float); }
.founder__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.founder__caption { margin-top: var(--s-2); font-size: var(--fs-small); color: var(--ink-3); }
.founder__body h2 { margin-bottom: var(--s-3); }
.founder__body p + p { margin-top: 1.1em; }
.founder__body .btn { margin-top: var(--s-4); }
.founder__sig { margin-top: var(--s-4); font-weight: 700; font-size: 1.15rem; color: var(--bark); }
.founder__sig span { display: block; font-weight: 400; font-size: var(--fs-small); color: var(--ink-3); }
@media (min-width: 641px)  { .founder { grid-template-columns: 2fr 3fr; } }
@media (min-width: 1025px) { .founder { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 7rem); } }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-top: var(--s-4); }
.photo-pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.photo-pair figcaption { margin-top: .5rem; font-size: var(--fs-small); color: var(--ink-3); }

/* ---------- Investment facts ---------- */
.facts { display: grid; gap: var(--s-3); }
.facts > div { background: var(--cream); border: 1px solid var(--sand-mid); border-radius: var(--radius-lg); padding: var(--s-3); }
.facts dt { font-weight: 700; font-size: 1.2rem; color: var(--bark); font-variation-settings: "wdth" 90; }
.facts dd { margin-top: .4rem; color: var(--ink-2); font-size: var(--fs-small); }
@media (min-width: 641px) { .facts { grid-template-columns: 1fr 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: var(--rule); }
.faq details { border-bottom: var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 0; display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); font-weight: 600; font-size: 1.1rem; color: var(--bark); transition: color var(--t-fast); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--sandstone-ink); }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--t-med) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq details > div { padding: 0 0 1.4rem; color: var(--ink-2); max-width: 66ch; }
.faq details > div p + p { margin-top: .8em; }

/* ---------- Page hero (interior) ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(3rem, 5vw, 5.5rem) 0 clamp(2.5rem, 4vw, 4rem); border-bottom: var(--rule); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { margin-top: var(--s-3); max-width: 58ch; }
.page-hero--sand { background: var(--paper-white); border-bottom: var(--rule); }
.page-hero--book { background: var(--paper-white); border-bottom: var(--rule); }
.book-blurb { margin-top: var(--s-3); color: var(--ink); font-size: var(--fs-lead); line-height: 1.55; max-width: 52ch; }
.case-hero--book { align-items: center; }
.case-hero__art--book { max-width: 560px; width: 100%; height: clamp(360px, 38vw, 640px); aspect-ratio: auto; background: var(--sand-mid); padding: 8%; }
.case-hero__art--book img { height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(42, 37, 26, .22)); }
.book-photo { margin-top: var(--s-6); }
.book-photo img { width: 100%; border-radius: var(--radius-lg); }
.book-photo figcaption { margin-top: .6rem; font-size: var(--fs-small); color: var(--ink-3); }
@media (min-width: 1025px) { .case-hero--book { grid-template-columns: 6fr 6fr; } }
.page-hero--forest { background: var(--forest); color: var(--on-dark); border-bottom: 0; }
.page-hero--forest h1 { color: var(--on-dark); }
.page-hero--forest .lead { color: var(--on-dark-2); }
.page-hero--forest .topo { opacity: .35; filter: invert(1); }
.breadcrumb { display: flex; gap: .5rem; font-size: var(--fs-small); color: var(--ink-3); margin-bottom: var(--s-4); }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero--forest .breadcrumb, .page-hero--forest .breadcrumb a { color: var(--on-dark-3); }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s-3); }
.form__row { display: grid; gap: var(--s-3); }
@media (min-width: 641px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field label .opt { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .75rem .9rem; background: #fff; border: 1.5px solid var(--sand-line); border-radius: var(--radius); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23574D3B' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(214, 152, 32, .3); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); }
.field__hint { font-size: var(--fs-small); color: var(--ink-3); }
.field__error { font-size: var(--fs-small); color: var(--error); display: none; }
.field.is-invalid .field__error { display: block; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.form__foot .small { max-width: 40ch; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.apply-layout { display: grid; gap: var(--s-6); }
.apply-aside { align-self: start; }
.apply-aside h2 { font-size: 1.5rem; margin-bottom: var(--s-3); }
.apply-aside .step { padding: var(--s-3) 0; }
.apply-aside .step h3 { font-size: 1.05rem; }
.apply-aside .step p { font-size: var(--fs-small); }
.apply-aside .pullquote { margin-top: var(--s-5); }
.aside-photo { margin-bottom: var(--s-4); }
.aside-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 22%; border-radius: var(--radius-lg); }
.aside-photo figcaption { margin-top: .6rem; font-size: var(--fs-small); color: var(--ink-3); }
@media (min-width: 1025px) { .apply-layout { grid-template-columns: 7fr 4fr; gap: clamp(3rem, 6vw, 7rem); } .apply-aside { position: sticky; top: calc(var(--header-h) + 2rem); } }

/* ---------- CTA strip (mid-page nudge) ---------- */
.cta-strip { background: var(--forest); color: var(--on-dark); border-block: 1px solid rgba(243, 237, 224, .1); }
.cta-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding-block: var(--s-4); }
.cta-strip p { font-weight: 600; font-size: 1.05rem; max-width: none; }
.cta-strip p span { display: block; font-weight: 400; font-size: var(--fs-small); color: var(--on-dark-2); }
.phases__nav .link { font-size: var(--fs-small); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--bark-deep); color: var(--on-dark); padding-block: clamp(3.5rem, 6vw, 6rem); border-top: 6px solid var(--sandstone); }
.cta-band .topo { opacity: .35; filter: invert(1) sepia(1) saturate(4) hue-rotate(5deg); }
.cta-band .btn--ghost { color: var(--on-dark); border-color: rgba(243, 237, 224, .45); }
.cta-band .btn--ghost:hover { background: rgba(243, 237, 224, .1); border-color: var(--on-dark); color: var(--on-dark); }
.cta-band__trust { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: var(--s-3); font-size: var(--fs-small); color: var(--on-dark-3); }
.cta-band__trust span { display: inline-flex; align-items: center; gap: .5rem; }
.cta-band__trust .dia { color: var(--gold); width: .4em; height: .4em; }
.cta-band .container { position: relative; z-index: 1; display: grid; gap: var(--s-4); align-items: center; }
.cta-band h2 { color: var(--on-dark); max-width: 18ch; }
.cta-band p { color: var(--on-dark-2); margin-top: var(--s-3); font-size: var(--fs-lead); max-width: 48ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }

@media (min-width: 1025px) { .cta-band .container { grid-template-columns: 1fr auto; gap: var(--s-6); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bark-deep); color: var(--on-dark-2); padding: var(--s-7) 0 var(--s-5); font-size: var(--fs-small); position: relative; }
.footer-grid { display: grid; gap: var(--s-5); }
.footer-brand img { height: 42px; width: auto; }
.footer-brand p { margin-top: var(--s-3); max-width: 34ch; color: var(--on-dark-3); }
.footer-col h2 { font-size: .95rem; font-weight: 600; color: var(--on-dark); margin-bottom: var(--s-2); font-variation-settings: "wdth" 100; letter-spacing: 0; }
.footer-col li + li { margin-top: .5rem; }
.footer-col a { color: var(--on-dark-2); text-decoration: none; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { margin-top: var(--s-6); padding-top: var(--s-3); border-top: var(--rule-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); color: var(--on-dark-3); }
.footer-bottom .dia { color: var(--sandstone); margin-right: .4rem; }
@media (min-width: 641px)  { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1025px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; }
.notfound__art { width: min(100%, 320px); margin-bottom: var(--s-4); }
.notfound h1 { font-size: var(--fs-display); }
.notfound p { margin-top: var(--s-3); color: var(--ink-2); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: var(--gutter); opacity: 0; visibility: hidden; transition: opacity var(--t-med) var(--ease-out), visibility 0s var(--t-med); overflow-y: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) { .modal { place-items: start center; padding: 1rem; } }
.modal.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(42, 37, 26, .74); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal__card { position: relative; width: min(100%, 520px); background: var(--sand-light); color: var(--ink); padding: clamp(1.75rem, 4vw, 2.5rem); border-radius: var(--radius-lg); box-shadow: var(--shadow-float); border-top: 4px solid var(--sandstone); transform: translateY(12px) scale(.98); transition: transform var(--t-med) var(--ease-out); }
.modal.is-open .modal__card { transform: none; }
.modal__card h2 { font-size: 1.7rem; padding-right: 2.5rem; }
.modal__card p { margin-top: var(--s-2); color: var(--ink-2); }
.modal__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.modal__close { position: absolute; top: .9rem; right: .9rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); transition: background var(--t-fast); }
.modal__close:hover { background: var(--sand-mid); }
.modal__close svg { width: 20px; height: 20px; }
.modal--video .modal__card { width: min(100%, 960px); padding: 0; border-top: 0; background: #000; overflow: hidden; }
.modal--video .modal__close { color: #fff; z-index: 2; }
.modal--video .modal__close:hover { background: rgba(255, 255, 255, .15); }
.modal__video { aspect-ratio: 16 / 9; }
.modal__video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: 1.25rem; right: 1.25rem; left: 1.25rem; z-index: 1300; display: grid; gap: .6rem; pointer-events: none; }
@media (min-width: 641px) { .toasts { left: auto; width: 360px; } }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: .75rem; background: var(--bark-deep); color: var(--on-dark); padding: .9rem 1rem; border-radius: var(--radius); box-shadow: var(--shadow-float); border-left: 4px solid var(--gold); font-size: var(--fs-small); transform: translateY(12px); opacity: 0; transition: transform var(--t-med) var(--ease-out), opacity var(--t-med) var(--ease-out); }
.toast.is-in { transform: none; opacity: 1; }
.toast--error { border-left-color: var(--sandstone); }
.toast--success { border-left-color: #8DBB7C; }
.toast__close { margin-left: auto; color: var(--on-dark-3); width: 24px; height: 24px; display: grid; place-items: center; }
.toast__close:hover { color: var(--on-dark); }

/* ---------- Reveals ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
[data-stagger] > .reveal:nth-child(2) { transition-delay: 70ms; }
[data-stagger] > .reveal:nth-child(3) { transition-delay: 140ms; }
[data-stagger] > .reveal:nth-child(4) { transition-delay: 210ms; }
[data-stagger] > .reveal:nth-child(5) { transition-delay: 280ms; }
[data-stagger] > .reveal:nth-child(6) { transition-delay: 350ms; }
[data-stagger] > .reveal:nth-child(n+7) { transition-delay: 420ms; }
.no-js .reveal, .no-js .display[data-animate] .book, .no-js .hero__copy[data-animate] > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal, .display[data-animate] .book, .hero__copy[data-animate] > * { opacity: 1; transform: none; }
  .hero__glow { animation: none; }
  .hero__media img { opacity: .68; transform: none; filter: none; animation: none !important; }
  .hero__drift { animation: none !important; }
  .hero .ridge path, .hero .ridge g { transform: none; opacity: 1; animation: none !important; }
  .display.is-ready .book img { animation: none !important; }
  .display-head { opacity: 1; }
}
.no-js .hero__media img { opacity: .68; transform: none; filter: none; }
.no-js .display-head { opacity: 1; }
@media print {
  .site-header, .site-footer, .mobile-nav, .toasts, .modal, .scroll-progress { display: none; }
  .section--forest, .section--bark, .cta-band { background: #fff; color: #000; }
}

/* Accordion headers: hidden on desktop, the mobile control */
.phases__acc { display: none; }
@media (max-width: 1024px) {
  .phases__rail { display: none; }
  .phases__panel { display: block !important; border-top: var(--rule); }
  .phases__panel:last-child { border-bottom: var(--rule); }
  .phases__acc { display: grid; grid-template-columns: 2.2rem 1fr auto 1.4rem; align-items: center; gap: .6rem; width: 100%; text-align: left; padding: 1rem 0; background: var(--paper-white); position: sticky; top: var(--header-h); z-index: 20; scroll-margin-top: var(--header-h); border-bottom: 1px solid transparent; }
  .phases__acc[aria-expanded="true"] { border-bottom-color: var(--sand-line); }
  .phases__acc-num { font-weight: 700; color: var(--sandstone-ink); font-variation-settings: "wdth" 80; }
  .phases__acc-name { font-weight: 700; font-size: 1.05rem; color: var(--bark); }
  .phases__acc-meta { font-size: var(--fs-small); color: var(--ink-3); }
  .phases__acc-chev { width: 10px; height: 10px; border-right: 2px solid var(--bark); border-bottom: 2px solid var(--bark); transform: rotate(45deg); transition: transform var(--t-med) var(--ease-out); justify-self: center; }
  .phases__acc[aria-expanded="true"] .phases__acc-chev { transform: rotate(225deg); }
  .phases__body { padding: var(--s-3) 0 var(--s-5); }
  .phases__body[hidden] { display: none; }
  .phase-intro__title { display: none; }
  .phase-intro { margin-bottom: var(--s-4); }
  .phases__panel.is-in { animation: none; }
}

/* Desktop phase rail: hover states that stay readable; the active tab never changes on hover */
@media (min-width: 1025px) {
  .phases__rail [role="tab"], .phases__rail [role="tab"]:hover { color: var(--on-dark-2); }
  .phases__rail [role="tab"]:hover { background: rgba(243, 237, 224, .08); color: var(--on-dark); }
  .phases__rail [role="tab"]:hover .phases__num { color: var(--gold); }
  .phases__rail [role="tab"][aria-selected="true"], .phases__rail [role="tab"][aria-selected="true"]:hover { background: var(--gold); color: var(--bark-deep); }
  .phases__rail [role="tab"][aria-selected="true"] .phases__num, .phases__rail [role="tab"][aria-selected="true"]:hover .phases__num,
  .phases__rail [role="tab"][aria-selected="true"] .phases__meta, .phases__rail [role="tab"][aria-selected="true"]:hover .phases__meta { color: var(--bark-deep); }
}
