/*
Theme Name: Coherent Warrior
Theme URI: https://coherentwarrior.com
Author: Infintech Designs
Description: Custom theme for Coherent Warrior — returning high-performing humans from survival mode to coherence. The scroll performs the brand promise: dark survival register dawns into light coherence register.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: coherentwarrior
*/

/* ============================================================
   TOKENS (STYLE-GUIDE.md — pre-approved)
   ============================================================ */
:root {
  --pine-ink: #1C211B;
  --umber: #2E2A20;
  --cedar: #3C4A3E;
  --lichen: #75806E;
  --bone: #F3EFE7;
  --parchment: #E9E2D2;
  --bronze: #A0703C;
  --bronze-deep: #8B5A26;
  --ember-clay: #7E4A38;
  --ink: #26231C;
  --ink-soft: #5F5A4D;
  --bone-soft: #C9B186;       /* small accent text on dark grounds (AA) */
  --bone-dim: rgba(243, 239, 231, 0.72);

  --font-display: 'Fraunces', 'Libre Caslon Text', Georgia, serif;
  --font-body: 'Public Sans', 'Helvetica Neue', sans-serif;

  --size-hero: clamp(64px, 11vw, 168px);
  --size-h2: clamp(36px, 5vw, 64px);
  --size-h3: clamp(24px, 2.6vw, 34px);
  --size-body: 17px;
  --track-eyebrow: 0.16em;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 28px;
  --space-4: 48px;
  --space-5: 80px;
  --space-6: clamp(96px, 14vh, 180px);

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 2px;
  --breath-cycle: 5.5s;
}

/* ============================================================
   BASE / RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background: var(--pine-ink);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 480; margin: 0 0 0.5em; }
p { margin: 0 0 1.2em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--bronze-deep); outline-offset: 3px; }
.section--dark :focus-visible, .site-footer :focus-visible { outline-color: var(--bone-soft); }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ============================================================
   RESPONSIVE FOUNDATION (mobile-first; breakpoints 480/768/1080)
   ============================================================ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: 1440px; }

.grid-12 { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 768px) {
  .grid-12 { grid-template-columns: repeat(12, 1fr); gap: var(--space-3) var(--space-3); }
  .col-5 { grid-column: span 5; }
  .col-7 { grid-column: span 7; }
  .col-4 { grid-column: span 4; }
  .col-8 { grid-column: span 8; }
  .col-6 { grid-column: span 6; }
  .col-12 { grid-column: 1 / -1; }
}

/* Fluid type is set in tokens; global media is fluid by default (img rule above). */

/* ============================================================
   SECTION REGISTERS — the dawn arc (dark → light down the page)
   ============================================================ */
.sec { position: relative; padding-block: var(--space-6); overflow: clip; }

.sec--night   { background: var(--pine-ink); color: var(--bone); }
.sec--predawn { background: var(--umber); color: var(--bone); }
.sec--dusk    { background: var(--cedar); color: var(--bone); }
.sec--dawn    { background: var(--parchment); color: var(--ink); }
.sec--day     { background: var(--bone); color: var(--ink); }

/* Long crossfade bands between registers */
.sec--blend-up::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: clamp(120px, 22vh, 260px);
  background: linear-gradient(to bottom, var(--blend-from, var(--pine-ink)), transparent);
  pointer-events: none;
}

/* Dark sections: heavier type gravity. Light: release. */
.sec--night h1, .sec--night h2, .sec--predawn h2, .sec--dusk h2 { font-weight: 560; line-height: 1.04; }
.sec--dawn h2, .sec--day h2 { font-weight: 420; line-height: 1.14; }
.sec--night p, .sec--predawn p, .sec--dusk p { color: var(--bone-dim); }
.sec--dawn p, .sec--day p { color: var(--ink-soft); }

/* Grain on dark sections only (feTurbulence tile, 4%) */
.sec--night::after, .sec--predawn::after, .sec--dusk::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Topographic contour motif behind section headers */
.sec__topo {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.03; overflow: hidden;
}
.sec--dawn .sec__topo, .sec--day .sec__topo { opacity: 0.05; }
.sec__topo svg { width: 100%; height: 100%; }

/* ============================================================
   TYPOGRAPHY COMPONENTS
   ============================================================ */
.eyebrow {
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  letter-spacing: var(--track-eyebrow); text-transform: uppercase;
  display: block; margin-bottom: var(--space-3);
}
@media (min-width: 768px) { .eyebrow { font-size: 15px; } }
.sec--night .eyebrow, .sec--predawn .eyebrow, .sec--dusk .eyebrow { color: var(--bone-soft); }
.sec--dawn .eyebrow, .sec--day .eyebrow { color: var(--ember-clay); }

.display-hero {
  font-size: var(--size-hero); line-height: 0.96; letter-spacing: -0.015em;
  font-weight: 540; margin: 0;
}
.display-hero em, .h2 em, h2 em { font-style: italic; font-weight: 420; }
.h2 { font-size: var(--size-h2); }
.h3 { font-size: var(--size-h3); }
.lead { font-size: clamp(19px, 2vw, 23px); line-height: 1.6; font-weight: 300; }

.pullquote {
  font-family: var(--font-display); font-style: italic; font-weight: 420;
  font-size: clamp(24px, 3vw, 38px); line-height: 1.35; color: var(--ember-clay);
}
.sec--night .pullquote, .sec--predawn .pullquote, .sec--dusk .pullquote { color: var(--bone-soft); }

.rule-hair { border: 0; height: 1px; background: var(--lichen); opacity: 0.45; margin-block: var(--space-4); }

/* ============================================================
   BUTTONS (AA verified pairings only)
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 17px; font-weight: 600; line-height: 1.2;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  padding: 18px 34px; border-radius: var(--radius); cursor: pointer;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  border: 1px solid transparent;
}
.btn--primary { background: var(--bronze-deep); color: var(--bone); }     /* 5.1:1 */
.btn--primary:hover { background: var(--ember-clay); color: var(--bone); }
.btn--ghost-dark { background: transparent; color: var(--bone); border-color: rgba(243,239,231,0.4); }
.btn--ghost-dark:hover { border-color: var(--bone-soft); color: var(--bone-soft); }
.btn--ghost-light { background: transparent; color: var(--ink); border-color: rgba(38,35,28,0.35); }
.btn--ghost-light:hover { border-color: var(--ember-clay); color: var(--ember-clay); }

/* Signature moment 2 — BREATH-PACED CTA (5.5s resonance cycle) */
.btn--breath { position: relative; }
.btn--breath::after {
  content: ""; position: absolute; inset: -7px; border-radius: 4px;
  border: 1px solid currentColor; opacity: 0.45; pointer-events: none;
  animation: breath var(--breath-cycle) ease-in-out infinite;
}
@keyframes breath {
  0%, 100% { transform: scale(1); opacity: 0.45; }
  50%      { transform: scale(1.07); opacity: 0.12; }
}
@media (prefers-reduced-motion: reduce) {
  .btn--breath::after { animation: none; transform: scale(1.035); opacity: 0.28; }
}

/* ============================================================
   SIGNATURE 1 — THE REGULATION LINE (desktop ≥1080 only)
   ============================================================ */
.regulation-rail {
  position: fixed; top: 0; left: 6.5%; height: 100vh; width: 40px;
  z-index: 40; pointer-events: none; display: none;
}
@media (min-width: 1080px) { .regulation-rail { display: block; } }
.regulation-rail svg { height: 100%; width: 100%; overflow: visible; }
.regulation-rail path {
  fill: none; stroke-width: 1; vector-effect: non-scaling-stroke;
  transition: opacity 1.2s ease;
}
.regulation-rail .rl-trace { stroke: var(--bone-soft); opacity: 0.55; }
.regulation-rail .rl-sine  { stroke: var(--bronze-deep); opacity: 0; }
.regulation-rail .rl-flat  { stroke: var(--bronze-deep); opacity: 0; }
body[data-register="light"] .regulation-rail .rl-trace { opacity: 0; }
body[data-register="light"] .regulation-rail .rl-sine  { opacity: 0.5; }
body[data-register="calm"]  .regulation-rail .rl-trace,
body[data-register="calm"]  .regulation-rail .rl-sine  { opacity: 0; }
body[data-register="calm"]  .regulation-rail .rl-flat  { opacity: 0.55; }
body[data-register="calm"]  .regulation-rail .rl-flat,
.regulation-rail .rl-flat { stroke: var(--bone-soft); }

/* ============================================================
   SIGNATURE 4 — ROMAN-NUMERAL INDEX (editorial TOC, not cards)
   ============================================================ */
.numeral-index { display: grid; gap: 0; }
.numeral-index__row {
  display: grid; grid-template-columns: minmax(80px, 140px) 1fr;
  align-items: baseline; padding-block: clamp(20px, 3vh, 34px);
  border-bottom: 1px solid rgba(117, 128, 110, 0.35);
}
.numeral-index__row:first-child { border-top: 1px solid rgba(117, 128, 110, 0.35); }
.numeral-index__num {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(40px, 5.5vw, 76px); line-height: 1; color: var(--bronze);
  transform: translateY(0.06em);
}
.numeral-index__label {
  font-family: var(--font-display); font-weight: 440;
  font-size: clamp(20px, 2.4vw, 30px); line-height: 1.3;
}
@media (max-width: 479px) {
  .numeral-index__row { grid-template-columns: 64px 1fr; }
}

/* Numbered editorial markers (01–04 services) */
.svc-row { display: grid; gap: var(--space-2); padding-block: var(--space-4); border-bottom: 1px solid rgba(117,128,110,0.3); }
.svc-row:first-of-type { border-top: 1px solid rgba(117,128,110,0.3); }
@media (min-width: 768px) { .svc-row { grid-template-columns: 120px 1fr 1.2fr; align-items: baseline; } }
.svc-row__num {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(30px, 3.4vw, 48px); color: var(--bronze); line-height: 1;
}
.svc-row__title { font-family: var(--font-display); font-size: clamp(21px, 2.2vw, 28px); font-weight: 480; margin: 0; }
.svc-row__desc { margin: 0; }

/* ============================================================
   IMAGERY TREATMENT
   ============================================================ */
.img-duotone { position: relative; overflow: hidden; border-radius: var(--radius); }
.img-duotone img { filter: grayscale(1) contrast(1.02); width: 100%; object-fit: cover; }
.img-duotone::after {
  content: ""; position: absolute; inset: 0;
  background: var(--cedar); mix-blend-mode: multiply; opacity: 0.85;
}
.img-warm { overflow: hidden; border-radius: var(--radius); }
.img-warm img { filter: sepia(0.12) saturate(0.92) contrast(0.98); width: 100%; object-fit: cover; }

/* Overlap moment: image + headline share grid cells */
.overlap { position: relative; }
@media (min-width: 768px) {
  .overlap__media { grid-column: 6 / 13; grid-row: 1; }
  .overlap__text  { grid-column: 1 / 8;  grid-row: 1; z-index: 2; align-self: center; }
  .overlap__text--right { grid-column: 6 / 13; }
  .overlap__media--left { grid-column: 1 / 8; }
}

/* ============================================================
   CARDS / LISTS (editorial, 2px radius max)
   ============================================================ */
.ledger {
  border: 1px solid rgba(117,128,110,0.4); border-radius: var(--radius);
  padding: var(--space-4);
}
.sec--night .ledger, .sec--predawn .ledger { background: var(--umber); border-color: rgba(117,128,110,0.3); }
.sec--day .ledger, .sec--dawn .ledger { background: rgba(233,226,210,0.5); }
.ledger__heading {
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  letter-spacing: var(--track-eyebrow); text-transform: uppercase;
  margin-bottom: var(--space-3); display: block;
}
.ledger ul li {
  font-family: var(--font-display); font-size: clamp(19px, 2vw, 24px);
  padding-block: 10px; border-bottom: 1px solid rgba(117,128,110,0.25);
}
.ledger ul li:last-child { border-bottom: 0; }

.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-row span {
  font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 9px 16px; border: 1px solid rgba(117,128,110,0.5); border-radius: var(--radius);
}

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}
.site-nav.is-scrolled { background: rgba(28, 33, 27, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter); max-width: 1440px; margin-inline: auto;
}
@media (min-width: 768px) { .site-nav__inner { padding-block: 24px; } }
@media (min-width: 1080px) { .site-nav__inner { padding-block: 18px; } }
.site-nav__logo {
  font-family: var(--font-display); font-size: 28px; font-weight: 540;
  color: var(--bone); text-decoration: none; letter-spacing: 0.01em; line-height: 1;
  display: inline-flex; align-items: center; min-height: 44px;
}
@media (min-width: 768px) { .site-nav__logo { font-size: 36px; } }
.site-nav__links { display: none; align-items: center; gap: 34px; }
@media (min-width: 1080px) { .site-nav__links { display: flex; } }
.site-nav__links a:not(.btn) {
  font-size: 17px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--bone-dim); text-decoration: none; transition: color 0.3s ease;
}
.site-nav__links a:not(.btn):hover { color: var(--bone-soft); }
.site-nav__links .btn { padding: 14px 26px; font-size: 16px; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
  background: none; border: 0; min-width: 44px; min-height: 44px;
  padding: 10px; cursor: pointer;
}
@media (min-width: 1080px) { .nav-toggle { display: none; } }
.nav-toggle span { width: 26px; height: 1.5px; background: var(--bone); transition: transform 0.35s ease, opacity 0.35s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
body.menu-open .nav-toggle span { background: var(--ink); }

/* Mobile menu: full-screen bone overlay, Fraunces links, staggered entry */
.mobile-menu {
  position: fixed; inset: 0; z-index: 80; background: var(--bone);
  display: flex; flex-direction: column; justify-content: center; padding: var(--gutter);
  opacity: 0; visibility: hidden; transition: opacity 0.45s ease, visibility 0.45s ease;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }
.mobile-menu a {
  font-family: var(--font-display); font-size: clamp(34px, 9vw, 56px); font-weight: 460;
  color: var(--ink); text-decoration: none; padding-block: 14px;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
body.menu-open .mobile-menu a { opacity: 1; transform: none; }
body.menu-open .mobile-menu a:nth-child(1) { transition-delay: 0.08s; }
body.menu-open .mobile-menu a:nth-child(2) { transition-delay: 0.18s; }
body.menu-open .mobile-menu a:nth-child(3) { transition-delay: 0.28s; }
body.menu-open .mobile-menu a:nth-child(4) { transition-delay: 0.38s; }
body.menu-open .mobile-menu a:nth-child(5) { transition-delay: 0.48s; }
body.menu-open .mobile-menu a:nth-child(6) { transition-delay: 0.58s; }
.mobile-menu .mobile-menu__cta { color: var(--ember-clay); font-style: italic; }
@media (prefers-reduced-motion: reduce) {
  .mobile-menu a { transition: opacity 0.3s ease; transform: none; }
}

/* Sticky mobile bottom CTA bar (after 80% first-viewport scroll) */
.mobile-cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--pine-ink); padding: 12px var(--gutter);
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; justify-content: center;
  transform: translateY(110%); transition: transform 0.45s ease;
}
.mobile-cta-bar.is-visible { transform: none; }
.mobile-cta-bar .btn { width: 100%; max-width: 420px; justify-content: center; padding: 15px 20px; }
@media (min-width: 1080px) { .mobile-cta-bar { display: none; } }

/* ============================================================
   SIGNATURE 5 — FOOTER AS DEBRIEF
   ============================================================ */
.site-footer {
  background: var(--pine-ink); color: var(--bone); min-height: 62vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: clip; padding-top: var(--space-5);
}
.site-footer::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.site-footer__debrief { padding-block: var(--space-5); position: relative; z-index: 2; }
.site-footer__eyebrow { color: var(--bone-soft); }
.site-footer__contact {
  font-family: var(--font-display); font-weight: 440;
  font-size: clamp(26px, 4.6vw, 58px); color: var(--bone); text-decoration: underline;
  text-decoration-color: var(--bronze); text-decoration-thickness: 1px; text-underline-offset: 0.18em;
  transition: text-decoration-color 0.35s ease, color 0.35s ease;
  overflow-wrap: anywhere;
  display: inline-flex; align-items: center; min-height: 44px;
}
.site-footer__contact:hover { color: var(--bone-soft); text-decoration-color: var(--bone-soft); }
.site-footer__ring {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--bone-soft);
  opacity: 0.6; margin-bottom: var(--space-4);
  animation: breath var(--breath-cycle) ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .site-footer__ring { animation: none; } }
.site-footer__map {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px;
  padding-block: var(--space-3);
  border-top: 1px solid rgba(117,128,110,0.3); position: relative; z-index: 2;
}
.site-footer__map a {
  font-size: 15px; font-weight: 500; letter-spacing: var(--track-eyebrow); text-transform: uppercase;
  color: var(--bone-dim); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px;
}
.site-footer__map a:hover { color: var(--bone-soft); }
.site-footer__legal { font-size: 15px; color: var(--bone-dim); margin: 0; padding-bottom: var(--space-3); position: relative; z-index: 2; }
/* inline email links: expand tap area to 44px without shifting layout */
.cta-direct a { display: inline-block; padding-block: 12px; margin-block: -12px; }
.site-footer__wordmark {
  font-family: var(--font-display); font-weight: 560; line-height: 0.9;
  font-size: clamp(56px, 10.5vw, 190px); letter-spacing: -0.02em;
  color: var(--bone); opacity: 0.97; margin: 0; position: relative; z-index: 2;
  padding-bottom: var(--space-4);
}
.site-footer__wordmark em { font-style: italic; font-weight: 420; color: var(--bone-soft); }

/* ============================================================
   REVEALS (≤24px travel, 600–700ms, stagger 100–140ms)
   ============================================================ */
.rv { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.12s; } .rv-d2 { transition-delay: 0.24s; } .rv-d3 { transition-delay: 0.36s; }

/* Above-the-fold reveals must NOT wait for JS (first paint / LCP).
   Hero, inner-page heroes, and the recognition strip animate in via pure CSS
   on load; the JS IntersectionObserver still drives everything below. */
@keyframes rvIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero .rv, .page-hero .rv, .recognition .rv {
  animation: rvIn 0.65s ease both;
  transition: none;
}
.hero .rv-d1, .page-hero .rv-d1, .recognition .rv-d1 { animation-delay: 0.12s; }
.hero .rv-d2, .page-hero .rv-d2, .recognition .rv-d2 { animation-delay: 0.24s; }
.hero .rv-d3, .page-hero .rv-d3, .recognition .rv-d3 { animation-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; animation: none; }
}

/* Staged entry (600–900ms, no loader) */
body { opacity: 1; }
body.entering .site-main { animation: pageIn 0.8s ease both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body.entering .site-main { animation: none; } }

/* ============================================================
   UTILITIES
   ============================================================ */
.measure { max-width: 62ch; }
.measure-narrow { max-width: 46ch; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack-lg > * + * { margin-top: var(--space-4); }
.text-center-mobile { text-align: left; }
@media (max-width: 767px) {
  .sec { padding-block: clamp(72px, 11vh, 110px); }
  .site-footer { min-height: 55vh; }
}

/* ============================================================
   HOME LAYOUT (theme-owned; KSES strips <style> from content)
   CINEMATIC FULL-BLEED HERO — imagery leads, text layers over.
   main.js swaps .hero__media img → video; both are covered here.
   ============================================================ */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: flex-end;
  padding-top: 18vh; padding-bottom: clamp(120px, 18vh, 200px);
}
.hero__media { position: absolute; inset: 0; margin: 0; z-index: 0; }
.hero__media .img-duotone {
  position: absolute; inset: 0; width: 100%; margin: 0; border-radius: 0;
}
.hero__media .img-duotone img,
.hero__media .img-duotone video.hero-video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* Scrim: heavier left + bottom. Stops chosen so the combined alpha under
   the copy block keeps bone >= 4.5:1 even against a pure-white frame. */
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top,
      rgba(28,33,27,0.95) 0%, rgba(28,33,27,0.85) 30%,
      rgba(28,33,27,0.60) 52%, rgba(28,33,27,0.15) 78%, rgba(28,33,27,0.38) 100%),
    linear-gradient(100deg,
      rgba(28,33,27,0.85) 0%, rgba(28,33,27,0.62) 38%,
      rgba(28,33,27,0.18) 70%, rgba(28,33,27,0) 100%);
}
.hero__content { position: relative; z-index: 2; width: 100%; }
.hero__copy { max-width: 680px; }
.hero .display-hero { font-size: clamp(60px, 8.5vw, 122px); }
.hero__copy .lead { max-width: 34ch; }
.problem-cards { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
@media (min-width: 768px) { .problem-cards { grid-template-columns: 5fr 7fr; } }
.different__grid { display: grid; gap: var(--space-4); }
@media (min-width: 768px) { .different__grid { grid-template-columns: 6fr 5fr; align-items: stretch; } }
/* Atmosphere image bleeds off-grid to the viewport edge — no frame */
.different__media { position: relative; margin-inline: calc(50% - 50vw); }
.different__media .img-duotone { border-radius: 0; height: 100%; min-height: 300px; }
.different__media .img-duotone img { height: 100%; min-height: 300px; position: absolute; inset: 0; }
@media (min-width: 768px) {
  .different__media { margin-inline: 0 calc(50% - 50vw); }
  .different__media .img-duotone { min-height: clamp(420px, 62vh, 660px); }
}
.different__list li {
  font-family: var(--font-display); font-size: clamp(20px, 2.3vw, 28px); line-height: 1.4;
  padding: 14px 0 14px 0; border-bottom: 1px solid rgba(243,239,231,0.18);
}
.different__list li:first-child { border-top: 1px solid rgba(243,239,231,0.18); }
.who__roles { display: flex; flex-wrap: wrap; gap: 0 0.6em; margin: var(--space-4) 0; }
.who__roles span {
  font-family: var(--font-display); font-weight: 440; font-size: clamp(26px, 3.6vw, 52px);
  line-height: 1.25; color: var(--ink);
}
.who__roles span::after { content: " \00B7"; color: var(--bronze-deep); }
.who__roles span:last-child::after { content: ""; }
.who__list li { padding: 12px 0; border-bottom: 1px solid rgba(117,128,110,0.3); font-size: 18px; }
.who__list li:first-child { border-top: 1px solid rgba(117,128,110,0.3); }
/* ABOUT BAND — full-bleed photo (Gary anchored left of frame), bone panel
   overlapping from the right so his figure stays visible at scale */
.about-band { position: relative; background: var(--parchment); }
.about-band__media { position: absolute; inset: 0; overflow: hidden; }
.about-band__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 18% 20%;
  filter: grayscale(1) contrast(1.04);
}
.about-band__media::after {
  content: ""; position: absolute; inset: 0;
  background: var(--cedar); mix-blend-mode: multiply; opacity: 0.6;
}
.about-band__panel {
  position: relative; z-index: 2; background: var(--bone);
  max-width: 660px; padding: clamp(28px, 4vw, 56px);
  border-radius: var(--radius);
  box-shadow: 0 32px 70px rgba(28, 33, 27, 0.28);
}
@media (min-width: 768px) { .about-band__panel { margin-left: auto; } }
@media (max-width: 767px) {
  /* mobile: let Gary's figure breathe above the panel; keep his face in frame */
  .about-band { padding-top: clamp(220px, 42vh, 360px); }
  .about-band__media img { object-position: 32% 10%; }
}
.final-cta { text-align: left; }
.final-cta .h2 { max-width: 16ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }

/* Mobile: hero/primary CTAs go full-width so the primary action
   is unmistakable and above the fold */
@media (max-width: 480px) {
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   RECOGNITION STRIP (home, directly after hero — night register)
   Three locked symptom phrases on umber cards, cedar hairline.
   ============================================================ */
.recognition { padding-top: 0; position: relative; z-index: 3; overflow: visible; }
/* Overlap moment #1: the card trio rides up over the hero photo's bottom edge */
.recognition__grid { display: grid; gap: var(--space-3); margin-top: -80px; }
@media (min-width: 768px) { .recognition__grid { grid-template-columns: repeat(3, 1fr); } }
.recognition__card {
  position: relative; overflow: hidden;
  background: var(--umber); border: 1px solid var(--cedar);
  border-radius: var(--radius); padding: var(--space-4) var(--space-3);
  box-shadow: 0 28px 60px rgba(12, 14, 11, 0.45);
}
.recognition__card::before { /* faint grayscale photo wash (opacity capped at 0.10 to hold AA) */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url('assets/img/atmo-dusk-horizon.jpg') center 28% / cover no-repeat;
  filter: grayscale(1); opacity: 0.10;
}
.recognition__card:nth-child(2)::before { background-position: center 55%; }
.recognition__card:nth-child(3)::before { background-position: center 82%; }
.recognition__card > * { position: relative; z-index: 1; }
.recognition__card .eyebrow { margin-bottom: var(--space-2); }
.recognition__quote {
  font-family: var(--font-display); font-style: italic; font-weight: 420;
  font-size: clamp(24px, 2vw, 28px); line-height: 1.35;
  color: var(--bone); margin: 0;
}
.recognition__line {
  font-family: var(--font-body); font-size: 17px; color: var(--bone-dim);
  margin: var(--space-4) 0 0;
}

/* ============================================================
   INNER-PAGE LAYOUTS (moved from content — same KSES reason as
   HOME LAYOUT above). Shared base + per-page namespaced blocks.
   ============================================================ */

/* Shared inner-page hero (about/services/contact: 56vh; the-work/book add --tall) */
.page-hero { min-height: 56vh; display: flex; align-items: flex-end; padding-top: 20vh; }
.page-hero--tall { min-height: 60vh; padding-top: 22vh; }
.page-hero h1 { font-size: clamp(44px, 7vw, 104px); line-height: 1.0; letter-spacing: -0.015em; font-weight: 540; margin: 0 0 0.3em; }

/* Photo hero variants — echo the home cinematic language on inner pages */
.page-hero--photo, .page-hero--figure { position: relative; min-height: 64vh; }
.page-hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--pine-ink); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-hero__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.page-hero--photo .container, .page-hero--figure .container,
.page-hero--photo .container--wide, .page-hero--figure .container--wide { position: relative; z-index: 2; }
.page-hero--photo .lead, .page-hero--figure .lead { max-width: 36ch; }
/* keep display glyphs inside the heavily-scrimmed left zone (AA over imagery) */
.page-hero--photo h1 { max-width: 16ch; }
.page-hero--figure h1 { font-size: clamp(40px, 5.4vw, 78px); max-width: 620px; }

/* atmosphere variant: cedar-duotone cover + AA scrim */
.page-hero--photo .page-hero__media img { filter: grayscale(1) contrast(1.02); }
.page-hero--photo .page-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: var(--cedar); mix-blend-mode: multiply; opacity: 0.5;
}
.page-hero--photo .page-hero__scrim {
  background:
    linear-gradient(to top,
      rgba(28,33,27,0.95) 0%, rgba(28,33,27,0.82) 36%,
      rgba(28,33,27,0.42) 68%, rgba(28,33,27,0.42) 100%),
    linear-gradient(100deg,
      rgba(28,33,27,0.85) 0%, rgba(28,33,27,0.55) 40%, rgba(28,33,27,0.12) 78%);
}

/* figure variant (About): dark-vignetted portrait anchored right, merges into pine-ink */
.page-hero--figure .page-hero__media img { object-position: 70% 18%; opacity: 0.55; }
@media (min-width: 768px) {
  .page-hero--figure .page-hero__media img {
    width: 56%; margin-left: 44%; object-position: center 18%; opacity: 1;
  }
}
.page-hero--figure .page-hero__scrim {
  background:
    linear-gradient(to top, rgba(28,33,27,0.92) 0%, rgba(28,33,27,0.35) 38%, rgba(28,33,27,0.05) 70%),
    linear-gradient(to right, rgba(28,33,27,1) 32%, rgba(28,33,27,0.6) 52%, rgba(28,33,27,0.08) 78%);
}

/* ---- About (story/return/advocate/principles/family) ---- */
.story__grid { display: grid; gap: var(--space-4); }
@media (min-width: 768px) {
  .story__grid { grid-template-columns: repeat(12, 1fr); align-items: end; }
  .story__media { grid-column: 1 / 7; position: relative; z-index: 1; }
  .story__body { grid-column: 6 / 13; padding-left: var(--space-4); padding-bottom: var(--space-3); }
}
.story__media .img-duotone img { height: clamp(320px, 52vh, 560px); }
.advocate__grid { display: grid; gap: var(--space-4); }
@media (min-width: 768px) {
  .advocate__grid { grid-template-columns: 7fr 5fr; align-items: center; }
}
.return__grid { display: grid; gap: var(--space-4); }
@media (min-width: 768px) {
  .return__grid { grid-template-columns: 5fr 7fr; align-items: center; }
  .return__body { padding-left: var(--space-3); }
}
.return__media .img-warm img { height: clamp(280px, 44vh, 460px); }
.principle { display: grid; gap: var(--space-2); padding-block: var(--space-4); border-bottom: 1px solid rgba(117,128,110,0.3); }
.principle:first-of-type { border-top: 1px solid rgba(117,128,110,0.3); }
@media (min-width: 768px) { .principle { grid-template-columns: 120px 1fr; align-items: start; } }
.principle__num { font-family: var(--font-display); font-style: italic; font-size: clamp(40px, 5vw, 72px); color: var(--bronze); line-height: 1; }
.principle__title { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 32px); font-weight: 480; margin: 0 0 0.3em; }
.principle p { margin: 0; }
.family-figure { margin: var(--space-4) 0 0; max-width: 320px; }
.family-figure figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 0.6em; letter-spacing: 0.02em; }
.family-figure .img-warm img { height: auto; }

/* ---- Services (svc-detail/format/not-list) ---- */
.svc-detail { display: grid; gap: var(--space-2); padding-block: var(--space-5); border-bottom: 1px solid rgba(117,128,110,0.3); }
.svc-detail:first-of-type { border-top: 1px solid rgba(117,128,110,0.3); }
@media (min-width: 768px) { .svc-detail { grid-template-columns: 140px 5fr 6fr; align-items: start; } }
.svc-detail__num { font-family: var(--font-display); font-style: italic; font-size: clamp(40px, 5vw, 72px); color: var(--bronze); line-height: 1; }
.svc-detail__title { font-family: var(--font-display); font-size: clamp(24px, 2.8vw, 36px); font-weight: 480; margin: 0; }
.svc-detail__for { font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-top: var(--space-2); display: block; }
.sec--dawn .svc-detail__for, .sec--day .svc-detail__for { color: var(--ink-soft); }
.format-grid { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
@media (min-width: 768px) { .format-grid { grid-template-columns: repeat(3, 1fr); } }
.format-grid h3 { font-size: 20px; margin-bottom: 0.4em; }
.format-grid p { margin: 0; font-size: 16px; }
.not-list li { font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 27px); padding: 14px 0; border-bottom: 1px solid rgba(117,128,110,0.3); }
.not-list li:first-child { border-top: 1px solid rgba(117,128,110,0.3); }

/* ---- The Work (tenets/survival/integrate) ---- */
.tenet { display: grid; gap: var(--space-2); padding-block: var(--space-5); border-bottom: 1px solid rgba(117,128,110,0.3); }
.tenet:first-of-type { border-top: 1px solid rgba(117,128,110,0.3); }
@media (min-width: 768px) { .tenet { grid-template-columns: 120px 5fr 6fr; align-items: start; } }
.tenet__num { font-family: var(--font-display); font-style: italic; font-size: clamp(40px, 5vw, 72px); color: var(--bronze); line-height: 1; }
.tenet__title { font-family: var(--font-display); font-size: clamp(24px, 2.8vw, 36px); font-weight: 480; margin: 0; }
.tenet__body p { margin: 0 0 0.9em; }
.tenet__body p:last-child { margin-bottom: 0; }
.survival__grid { display: grid; gap: var(--space-4); }
@media (min-width: 768px) { .survival__grid { grid-template-columns: 7fr 5fr; align-items: center; } }
.survival__media { position: relative; }
.integrate__grid { display: grid; gap: var(--space-4); }
@media (min-width: 768px) { .integrate__grid { grid-template-columns: 5fr 7fr; align-items: center; } }

/* ---- Book (status/themes/media) ---- */
.book-status { display: inline-block; font-size: 14px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-dim); margin-top: var(--space-3); }
.themes__grid { display: grid; gap: var(--space-5); margin-top: var(--space-5); }
@media (min-width: 768px) { .themes__grid { grid-template-columns: repeat(12, 1fr); } }
.themes__row { display: grid; gap: var(--space-2); }
@media (min-width: 768px) {
  .themes__row { grid-column: 1 / 13; grid-template-columns: 140px 1fr; align-items: start; }
}
.themes__num { font-family: var(--font-display); font-style: italic; font-size: clamp(40px, 5vw, 72px); color: var(--bronze); line-height: 1; }
.themes__title { font-family: var(--font-display); font-size: clamp(26px, 3vw, 40px); font-weight: 480; margin: 0 0 0.4em; }
.media__grid { display: grid; gap: var(--space-4); }
@media (min-width: 768px) {
  .media__grid { grid-template-columns: repeat(12, 1fr); align-items: center; }
  .media__media { grid-column: 1 / 7; }
  .media__body { grid-column: 7 / 13; padding-left: var(--space-4); }
}
.media__list li { padding: 12px 0; border-bottom: 1px solid rgba(117,128,110,0.3); font-size: 18px; }
.media__list li:first-child { border-top: 1px solid rgba(117,128,110,0.3); }

/* ---- Contact (apply note/next steps/direct line) ---- */
.apply-note { font-size: 16px; color: var(--ink-soft); max-width: 46ch; margin-top: var(--space-3); }
.next-row { display: grid; gap: var(--space-2); padding-block: var(--space-4); border-bottom: 1px solid rgba(117,128,110,0.3); }
.next-row:first-of-type { border-top: 1px solid rgba(117,128,110,0.3); }
@media (min-width: 768px) { .next-row { grid-template-columns: 96px 1fr; align-items: baseline; } }
.next-row__num { font-family: var(--font-display); font-style: italic; font-size: clamp(30px, 3.4vw, 48px); color: var(--bronze); line-height: 1; }
.next-row__body p { margin: 0; font-size: 18px; }
.next-row__body p:first-child { font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 27px); margin-bottom: 0.3em; }
.cta-direct { font-size: 16px; color: var(--bone-soft); margin-top: var(--space-3); }
.cta-direct a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; }
