/* CHAPTER PLANNING + DEVELOPMENT — chapterpd.com */
:root {
  --sage: #7F8F7A;
  --sage-deep: #6a7a66;
  --gray-l: #D1D3D4;
  --slate: #5B5F62;
  --paper: #F4F4F2;
  --ink: #1A1A1A;
  --ink-soft: #232323;
  --max: 1200px;
  --head: 'Oswald', 'Trade Gothic Next Condensed', sans-serif;
  --body: 'IBM Plex Sans Condensed', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.65;
  overflow-x: clip;
  transition: background-color 0.9s ease;
}
body.on-paper { background: var(--paper); }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- type ---------- */
h1,h2,h3,.display { font-family: var(--head); text-transform: uppercase; font-weight: 600; line-height: 1.04; letter-spacing: 0.04em; }
.display { font-size: clamp(3rem, 8.5vw, 7rem); font-weight: 700; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.35rem; letter-spacing: 0.06em; }
.eyebrow { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.32em; font-size: 0.78rem; font-weight: 500; color: var(--sage); }
.lede { font-size: 1.12rem; max-width: 620px; }

/* ---------- layout ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { position: relative; padding: 110px 0; }
.section-tight { padding: 70px 0; }

/* color chapters — JS toggles data-theme as sections enter */
.chapter { transition: color 0.7s ease; }
[data-theme="paper"] { color: var(--ink); }
[data-theme="dark"] { color: var(--paper); }
.bg-layer { position: fixed; inset: 0; z-index: -2; background: var(--ink); transition: background-color 1s ease; }
body[data-bg="paper"] .bg-layer { background: var(--paper); }
body[data-bg="sage"]  .bg-layer { background: var(--sage); }
body[data-bg="dark"]  .bg-layer { background: var(--ink); }

/* topo pattern layer — a BRAND DEVICE, not the default wallpaper.
   Sections opt in via data-topo="soft" | "on". Everything else is plain
   cream / plain sage / plain black / photography. */
.topo-fixed {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: url('assets/logos/topo-white.svg') center/cover no-repeat;
  transition: opacity 0.9s ease, background-image 0s;
}
body[data-bg="paper"] .topo-fixed,
body[data-bg="sage"]  .topo-fixed { background-image: url('assets/logos/topo-dark.svg'); }

/* subtle contour */
body[data-topo="soft"] .topo-fixed { opacity: 0.06; }
body[data-bg="paper"][data-topo="soft"] .topo-fixed { opacity: 0.09; }
body[data-bg="sage"][data-topo="soft"]  .topo-fixed { opacity: 0.08; }
/* full contour */
body[data-topo="on"] .topo-fixed { opacity: 0.13; }
body[data-bg="paper"][data-topo="on"] .topo-fixed { opacity: 0.17; }
body[data-bg="sage"][data-topo="on"]  .topo-fixed { opacity: 0.15; }

/* ---------- nav ---------- */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}
header.nav.scrolled { background: rgba(26,26,26,0.88); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,0.07); }
body[data-bg="paper"] header.nav.scrolled,
body[data-bg="sage"] header.nav.scrolled { background: rgba(244,244,242,0.9); box-shadow: 0 1px 0 rgba(26,26,26,0.08); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; height: 76px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 30px; width: auto; }
.nav-logo .logo-dark { display: none; }
body[data-bg="paper"] .nav-logo .logo-dark, body[data-bg="sage"] .nav-logo .logo-dark { display: block; }
body[data-bg="paper"] .nav-logo .logo-white, body[data-bg="sage"] .nav-logo .logo-white { display: none; }
nav.links { display: flex; gap: 36px; align-items: center; }
nav.links a { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.82rem; font-weight: 500; opacity: 0.75; transition: opacity 0.25s; color: var(--paper); }
body[data-bg="paper"] nav.links a, body[data-bg="sage"] nav.links a { color: var(--ink); }
nav.links a:hover, nav.links a.active { opacity: 1; }
nav.links a.active { border-bottom: 2px solid var(--sage); padding-bottom: 3px; }
.nav-cta { border: 1px solid var(--sage); color: var(--sage) !important; padding: 9px 22px; opacity: 1 !important; transition: background 0.3s, color 0.3s !important; }
.nav-cta:hover { background: var(--sage); color: var(--ink) !important; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 26px; height: 2px; margin: 6px 0; background: currentColor; transition: transform 0.3s, opacity 0.3s; }
.mobile-menu { position: fixed; inset: 0; z-index: 89; background: var(--ink); display: flex; flex-direction: column; justify-content: center; padding: 0 32px; gap: 8px; opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--head); text-transform: uppercase; font-size: 2.4rem; font-weight: 600; color: var(--paper); padding: 10px 0; letter-spacing: 0.05em; }
.mobile-menu a.active { color: var(--sage); }

/* ---------- flow video placeholder ---------- */
.flow-slot {
  position: relative; overflow: hidden; background: var(--ink-soft);
  border: 1px dashed rgba(127,143,122,0.55);
  display: flex; align-items: center; justify-content: center;
}
.flow-slot::before {
  content: ''; position: absolute; inset: 0;
  background: url('assets/logos/topo-white.svg') center/cover no-repeat;
  opacity: 0.12;
}
@keyframes drift { from { background-position: 0 0; } to { background-position: 700px 350px; } }
.flow-slot .slot-label { position: relative; text-align: center; padding: 24px; }
.flow-slot .slot-label .tag { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.7rem; color: var(--sage); display: block; margin-bottom: 8px; }
.flow-slot .slot-label .name { font-family: var(--head); text-transform: uppercase; font-size: 1.1rem; letter-spacing: 0.08em; color: rgba(244,244,242,0.85); }
.flow-slot .slot-label .desc { font-size: 0.8rem; color: rgba(244,244,242,0.5); max-width: 380px; margin: 6px auto 0; }
.flow-hero { position: absolute; inset: 0; border: 0; }
.flow-slot.has-video { border-style: solid; border-color: rgba(127,143,122,0.25); }
.flow-slot.has-video .slot-label, .flow-slot.has-video::before { display: none; }
.flow-hero .slot-label { position: absolute; top: 96px; right: 28px; text-align: right; }
.flow-hero .slot-label .desc { margin: 6px 0 0 auto; }
@media (max-width: 900px) { .flow-hero .slot-label { top: 86px; right: 16px; max-width: 62vw; } }
.flow-16x9 { aspect-ratio: 16/9; border-radius: 6px; }
.flow-tall { aspect-ratio: 4/5; border-radius: 6px; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: flex-end; padding: 0 0 12vh; overflow: hidden; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,26,26,0.92) 8%, rgba(26,26,26,0.35) 45%, rgba(26,26,26,0.55)); pointer-events: none; }
.hero-content { position: relative; }
.hero .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero .word span { display: inline-block; transform: translateY(110%); animation: rise 0.9s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes rise { to { transform: translateY(0); } }
.hero-logo { height: clamp(54px, 8vw, 96px); width: auto; margin-bottom: 34px; }
/* Review V2: nav logo + hero lockup stacked on phones — keep just the nav one */
@media (max-width: 640px) { .hero-logo { display: none; } }
.hero-sub { margin-top: 26px; font-size: 1.15rem; color: var(--gray-l); max-width: 560px; }
.hero-ctas { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.85rem; font-weight: 500; padding: 15px 34px; border: 1px solid transparent; cursor: pointer; transition: all 0.3s; display: inline-block; }
.btn-sage { background: var(--sage); color: var(--ink); }
.btn-sage:hover { background: var(--paper); }
.btn-line { border-color: rgba(244,244,242,0.5); color: var(--paper); }
.btn-line:hover { border-color: var(--paper); background: rgba(244,244,242,0.08); }
[data-theme="paper"] .btn-line { border-color: rgba(26,26,26,0.4); color: var(--ink); }
[data-theme="paper"] .btn-line:hover { border-color: var(--ink); background: rgba(26,26,26,0.05); }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font-family: var(--head); letter-spacing: 0.35em; font-size: 0.65rem; text-transform: uppercase; color: rgba(244,244,242,0.55); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translate(-50%,0);} 50% { transform: translate(-50%,8px);} }

/* ---------- chapter numbers ---------- */
.chapter-no { font-family: var(--head); font-weight: 700; font-size: clamp(4rem, 10vw, 8rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--sage); opacity: 0.85; }
[data-theme="paper"] .chapter-no { -webkit-text-stroke: 1px var(--sage-deep); }

/* ---------- cards & grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; }
.card {
  padding: 34px 28px; border: 1px solid rgba(127,143,122,0.35);
  background: rgba(26,26,26,0.25); backdrop-filter: blur(3px);
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1), border-color 0.3s, background 0.3s;
}
.card:hover { transform: translateY(-6px); border-color: var(--sage); }
[data-theme="paper"] .card { background: rgba(255,255,255,0.65); border-color: rgba(91,95,98,0.25); }
[data-theme="paper"] .card:hover { border-color: var(--sage-deep); }
.card h3 { margin-bottom: 12px; overflow-wrap: anywhere; }
.card p, .card li { font-size: 0.95rem; color: inherit; opacity: 0.82; }
.card ul { list-style: none; margin-top: 12px; }
.card li { padding-left: 18px; position: relative; margin-bottom: 5px; }
.card li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; background: var(--sage); }
.num-badge { font-family: var(--head); font-weight: 700; color: var(--sage); font-size: 1rem; letter-spacing: 0.1em; margin-bottom: 10px; display: block; }

/* pillars marquee */
.pillars { position: relative; z-index: 1; background: var(--ink); color: var(--paper); border-top: 1px solid rgba(127,143,122,0.35); border-bottom: 1px solid rgba(127,143,122,0.35); padding: 26px 0; overflow: hidden; }
.pillars-track { display: flex; gap: 64px; white-space: nowrap; animation: marquee 30s linear infinite; width: max-content; }
.pillars-track span { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.25em; font-size: 1rem; opacity: 0.75; }
.pillars-track span em { font-style: normal; color: var(--sage); }
@keyframes marquee { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* stats */
.stat-num { font-family: var(--head); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.4rem); color: var(--sage); line-height: 1; }
.stat-label { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.75rem; opacity: 0.7; margin-top: 8px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.12s; } .reveal-d2 { transition-delay: 0.24s; } .reveal-d3 { transition-delay: 0.36s; }

/* page hero (subpages) */
.page-hero { min-height: 62svh; display: flex; align-items: flex-end; padding-bottom: 60px; overflow: hidden; }

/* project columns */
.proj-cols { columns: 2; column-gap: 40px; font-size: 0.92rem; }
.proj-cols li { break-inside: avoid; padding: 7px 0 7px 18px; position: relative; list-style: none; opacity: 0.85; border-bottom: 1px solid rgba(127,143,122,0.18); }
.proj-cols li::before { content: ''; position: absolute; left: 0; top: 1.05em; width: 7px; height: 7px; background: var(--sage); }
.proj-cols li b { font-weight: 600; }

/* footer */
footer { background: var(--ink); color: var(--paper); padding: 70px 0 40px; position: relative; overflow: hidden; }
footer::before { content:''; position: absolute; inset: 0; background: url('assets/logos/topo-white.svg') center/cover no-repeat; opacity: 0.08; }
.foot-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-grid img { height: 34px; width: auto; margin-bottom: 16px; }
.foot-label { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.25em; font-size: 0.72rem; color: var(--sage); margin-bottom: 14px; }
.foot-grid a { display: block; padding: 4px 0; opacity: 0.8; transition: opacity 0.25s, color 0.25s; }
.foot-grid a:hover { opacity: 1; color: var(--sage); }
.foot-bottom { position: relative; margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(244,244,242,0.12); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.8rem; opacity: 0.6; }

/* big CTA */
.big-cta { text-align: center; }
.big-cta .display { font-size: clamp(2.6rem, 7vw, 5.4rem); }

@media (max-width: 900px) {
  nav.links { display: none; }
  .burger { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .proj-cols { columns: 1; }
  .foot-grid { grid-template-columns: 1fr; }
  section { padding: 78px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* CONTRAST FIXES — sage sections: sage-on-sage text was invisible */
body[data-bg="sage"] .stat-num { color: var(--paper); }
body[data-bg="sage"] .eyebrow { color: var(--ink); }
body[data-bg="sage"] .chapter-no { -webkit-text-stroke-color: rgba(26,26,26,0.35); }
body[data-bg="sage"] .card h3, body[data-bg="sage"] .num-badge { color: var(--ink); }
body[data-bg="sage"] a:not(.btn), body[data-bg="sage"] .lede { color: var(--ink); }
body[data-bg="sage"] .nav-cta { color: var(--ink) !important; border-color: var(--ink); }
body[data-bg="sage"] .pillars-track span em { color: var(--paper); }

/* SCROLL-SCRUB MORPH SECTION */
.scrub-morph { height: 280svh; position: relative; padding: 0; }
.morph-pin { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; background: #161616; }
/* full-bleed cover: mobile browser chrome hiding/showing must never reveal the section before/after a morph */
.scrub-morph { background: #161616; }
.morph-layer video { background: #161616; }
.morph-layer { position: absolute; inset: 0; background-size: cover; background-position: center; will-change: transform, opacity; }
.morph-layer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.layer-b { opacity: 0; }
.morph-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,26,26,0.55), rgba(26,26,26,0.15) 40%, rgba(26,26,26,0.6)); pointer-events: none; }
.morph-copy { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.morph-copy .copy { grid-area: 1/1; will-change: transform, opacity; }
.morph-copy .copy-b { opacity: 0; }
.morph-copy h2 { color: var(--paper); margin-top: 14px; }
.morph-progress { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); width: 120px; height: 2px; background: rgba(244,244,242,0.25); }
.morph-progress span { display: block; height: 100%; width: 0%; background: var(--sage); }
@media (prefers-reduced-motion: reduce) {
  .scrub-morph { height: auto; }
  .morph-pin { position: relative; height: 70svh; }
  .layer-b, .copy-b { opacity: 1; }
  .layer-a, .copy-a { opacity: 0; }
}

/* HERO SCRUB — content parallax + video zoom on scroll */
.hero-content, .hero .flow-hero { will-change: transform, opacity; }
.morph-layer.layer-c, .morph-copy .copy-c { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .layer-c, .copy-c { opacity: 1; }
  .scrub-morph[data-video-c] .layer-b, .scrub-morph[data-video-c] .copy-b { opacity: 0; }
}

/* CTA BANNER — logo + slogan over video */
.big-cta .cta-logo { height: 92px; width: auto; margin: 0 auto 8px; display: block; }
.cta-tagline { margin-top: 34px; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.34em; font-size: 0.82rem; color: var(--paper); opacity: 0.85; }
.cta-tagline em { font-style: normal; color: var(--sage); }
.morph-layer.layer-d, .morph-copy .copy-d { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .scrub-morph[data-video-d] .layer-d, .scrub-morph[data-video-d] .copy-d { opacity: 1; }
  .scrub-morph[data-video-d] .layer-b, .scrub-morph[data-video-d] .copy-b,
  .scrub-morph[data-video-d] .layer-c, .scrub-morph[data-video-d] .copy-c { opacity: 0; }
}

/* MOBILE POLISH */
@media (max-width: 640px) {
  .morph-copy { padding: 0 22px; }
  .morph-copy h2.display { font-size: clamp(1.9rem, 8.5vw, 2.6rem); line-height: 1.1; }
  .big-cta .cta-logo { height: 64px; }
  .cta-tagline { letter-spacing: 0.22em; font-size: 0.74rem; }
  .morph-progress { width: 90px; bottom: 26px; }
}


/* BRAND UI CHROME — kill default blue highlights/bars */
::selection { background: rgba(127,143,122,0.9); color: #1A1A1A; }
::-moz-selection { background: rgba(127,143,122,0.9); color: #1A1A1A; }
html { -webkit-tap-highlight-color: rgba(127,143,122,0.2); scrollbar-color: #7F8F7A #1A1A1A; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #1A1A1A; }
::-webkit-scrollbar-thumb { background: #5B5F62; border-radius: 6px; border: 2px solid #1A1A1A; }
::-webkit-scrollbar-thumb:hover { background: #7F8F7A; }
/* scrollbar has to stay readable when the page flips to cream/sage */
html[data-bg="paper"], html[data-bg="sage"] { scrollbar-color: #5B5F62 #E6E4DE; }
html[data-bg="paper"] ::-webkit-scrollbar-track,
html[data-bg="sage"]  ::-webkit-scrollbar-track { background: #E6E4DE; }
html[data-bg="paper"] ::-webkit-scrollbar-thumb,
html[data-bg="sage"]  ::-webkit-scrollbar-thumb { background: #7F8F7A; border-color: #E6E4DE; }
html[data-bg="paper"] ::-webkit-scrollbar-thumb:hover,
html[data-bg="sage"]  ::-webkit-scrollbar-thumb:hover { background: #5B5F62; }

/* ALWAYS-VISIBLE READ PROGRESS — the native bar auto-hides on macOS, so the
   site carries its own hairline indicator that re-colors with the background. */
.readbar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; background: rgba(244,244,242,0.14); transition: background-color 0.9s ease; }
.readbar i { display: block; height: 100%; width: 0; background: var(--sage); transform-origin: 0 50%; transition: background-color 0.9s ease; }
body[data-bg="paper"] .readbar, body[data-bg="sage"] .readbar { background: rgba(26,26,26,0.12); }
body[data-bg="paper"] .readbar i, body[data-bg="sage"] .readbar i { background: #4A5A46; }
@media (max-width: 640px) { .readbar { height: 3px; } }
input, textarea { caret-color: #7F8F7A; accent-color: #7F8F7A; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid #7F8F7A; outline-offset: 2px; }
input:-webkit-autofill, input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 40px #232323 inset; -webkit-text-fill-color: #F4F4F2; transition: background-color 9999s;
}

/* MOBILE MORPH — shorter scrub distance so stages arrive faster and feel intentional */
@media (max-width: 640px) {
  .scrub-morph { height: 220svh !important; }
  .scrub-morph[data-video-c] { height: 280svh !important; }
  .scrub-morph[data-video-d] { height: 300svh !important; }
  .morph-progress { width: 110px; height: 3px; }
}

/* MORPH CAPTION TYPOGRAPHY — balanced two-line breaks, tighter rhythm (editor change request #1) */
.morph-copy h2.display { line-height: 1.04; letter-spacing: 0.01em; text-wrap: balance; }
.morph-copy .eyebrow { margin-bottom: 6px; }
@media (min-width: 641px) { .morph-copy h2.display { font-size: clamp(3rem, 6.5vw, 5.2rem); } }

/* TRANSITION-ZONE LEGIBILITY — paper-theme sections visible while body bg is still dark */
body[data-bg="dark"] [data-theme="paper"] { color: var(--paper); }
[data-theme="paper"] .card { color: var(--ink); } /* cards have light backgrounds — keep ink text always */
body[data-bg="dark"] [data-theme="paper"] .chapter-no { -webkit-text-stroke-color: rgba(244,244,242,0.3); }

/* ============================================================
   LANCE REVIEW V1 — CONTRAST PASS
   His most repeated note (7 markups): small sage labels sitting
   on top of bright cinematic video "aren't easily seen" / "get lost".
   Fix: legible chip treatment wherever a label sits over footage.
   ============================================================ */
.morph-copy .eyebrow,
.page-hero .eyebrow,
.hero .eyebrow,
.big-cta .eyebrow {
  color: #F4F4F2;
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(244,244,242,0.28);
  background: rgba(26,26,26,0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-shadow: 0 1px 10px rgba(0,0,0,0.55);
}
.morph-copy .eyebrow { margin-bottom: 16px; }
@media (max-width: 640px) {
  .morph-copy .eyebrow, .page-hero .eyebrow, .hero .eyebrow, .big-cta .eyebrow {
    font-size: 0.66rem; letter-spacing: 0.24em; padding: 5px 11px;
  }
}

/* NAV over bright footage — Lance: "gets slightly lost in the background",
   "maybe too hard to see/use?". A top scrim keeps it readable on any hero. */
header.nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(26,26,26,0.72), rgba(26,26,26,0));
  transition: opacity 0.5s ease;
}
header.nav.scrolled::before { opacity: 0; }
body[data-bg="paper"] header.nav::before,
body[data-bg="sage"]  header.nav::before {
  background: linear-gradient(180deg, rgba(244,244,242,0.85), rgba(244,244,242,0));
}
/* the START A CONVERSATION button was the specific "gets lost" target */
.nav-cta {
  background: rgba(127,143,122,0.22);
  border-color: rgba(244,244,242,0.55) !important;
  color: #F4F4F2 !important;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.nav-cta:hover { background: var(--sage); color: #1A1A1A !important; }
body[data-bg="paper"] .nav-cta, body[data-bg="sage"] .nav-cta {
  background: #1A1A1A; border-color: #1A1A1A !important; color: #F4F4F2 !important;
}
body[data-bg="paper"] .nav-cta:hover, body[data-bg="sage"] .nav-cta:hover { background: var(--sage); color: #1A1A1A !important; }

/* TYPOGRAPHY CONSISTENCY — Lance asked 3x whether adjacent paragraphs were
   meant to differ. They weren't. One lede size, one body size, one family. */
.lede + p, .lede ~ p { font-size: 1.02rem; line-height: 1.75; opacity: 0.82; }
.intro-copy p { font-family: var(--body); letter-spacing: 0; }
.intro-copy p:first-child { font-size: 1.24rem; line-height: 1.62; opacity: 1; }
/* Review V2 (Oct 2026): Lance wants both paragraphs the SAME size — the
   second matches the first exactly. */
.intro-copy p:not(:first-child) { font-size: 1.24rem; line-height: 1.62; opacity: 1; margin-top: 20px; max-width: 620px; }
@media (max-width: 640px) {
  .intro-copy p:first-child,
  .intro-copy p:not(:first-child) { font-size: 1.1rem; }
}

/* p12 — Lance: "Can this scroll across the whole page width?" Yes. */
.pillars-full { width: 100vw; margin-left: 50%; transform: translateX(-50vw); }
.pillars-full .pillars-track { padding-left: 24px; }

/* LANCE'S BRAND ICON SET — his 50-icon library, masked so it takes the
   section's color rather than shipping a fixed gray. */
.card .cicon {
  display: block; width: 46px; height: 46px; margin: 0 0 18px;
  background-color: var(--sage);
  -webkit-mask: var(--i) center/contain no-repeat;
          mask: var(--i) center/contain no-repeat;
  transition: background-color 0.7s ease, transform 0.45s cubic-bezier(.2,.7,.2,1);
}
body[data-bg="paper"] .card .cicon { background-color: var(--sage-deep); }
body[data-bg="sage"]  .card .cicon { background-color: var(--ink); }
.card:hover .cicon { transform: translateY(-3px) scale(1.06); }
.card .num-badge + .cicon { margin-top: 14px; }
@media (max-width: 640px) { .card .cicon { width: 40px; height: 40px; margin-bottom: 14px; } }

/* p20 — Lance sketched the primary action on its own line with the two
   contact points beneath it, not three buttons in a row. */
.cta-stack { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 4px; }
.cta-stack .btn-sage { min-width: 260px; text-align: center; }
.cta-contacts { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 560px) {
  .cta-stack .btn-sage { width: 100%; max-width: 340px; }
  .cta-contacts { width: 100%; flex-direction: column; align-items: stretch; max-width: 340px; }
  .cta-contacts .btn { text-align: center; }
}

/* MORPH OUTRO — CHAPTER BREAK. The pinned morph fades to ink over its last
   ~15% of scroll (so video never touches video), and the monogram rises out
   of the dark with a faint topo contour — a brand-device beat, not a void. */
.morph-blackout {
  position: absolute; inset: 0; z-index: 8; pointer-events: none;
  background: #161616; opacity: 0; will-change: opacity;
  display: grid; place-items: center;
}
.mb-topo {
  position: absolute; inset: 0; opacity: 0;
  background: url('assets/logos/topo-white.svg') center/cover no-repeat;
}
.mb-mark {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 22px; opacity: 0; will-change: transform, opacity; text-align: center; padding: 0 24px;
}
.mb-mark img { width: 56px; height: auto; opacity: 0.9; }
.mb-title { color: var(--paper); font-size: clamp(2rem, 5.2vw, 4.2rem); letter-spacing: 0.04em; margin: 0; }
.mb-rule { display: block; width: 54px; height: 2px; background: var(--sage); }
@media (max-width: 640px) { .mb-mark img { width: 44px; } .mb-mark { gap: 16px; } }
/* breathing room so the next section doesn't start at the exact black frame */
.scrub-morph + .big-cta { margin-top: 0; }
.scrub-morph + section { border-top: 60px solid #161616; }
@media (prefers-reduced-motion: reduce) { .morph-blackout { display: none; } }

/* SAGE ACCENT OVER VIDEO — Lance/Bradyn: sage display text gets lost on
   bright footage. White under-stroke keeps the color but guarantees the
   letterforms read; soft ink shadow lifts them off busy backgrounds. */
.accent {
  color: var(--sage);
  -webkit-text-stroke: 1.5px rgba(244,244,242,0.92);
  paint-order: stroke fill;               /* stroke UNDER the fill — no glyph thinning */
  text-shadow: 0 3px 22px rgba(26,26,26,0.6);
}
@media (max-width: 640px) { .accent { -webkit-text-stroke-width: 1px; } }

/* ═══ THE JOURNEY (home) — four frame-chained wireframe clips, every playhead
   scroll-driven, first-person walk from the site plan into the drawn city.
   Words land per scene; ends in the chapter-break monogram. ═══ */
.cjourney { padding: 0; position: relative; }
.cj-pin { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; background: #161616; }
.cj-layer { position: absolute; inset: 0; opacity: 0; will-change: opacity, transform; }
.cj-layer:first-child { opacity: 1; }
.cj-layer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #161616; }
.cj-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,26,26,0.5), rgba(26,26,26,0.12) 42%, rgba(26,26,26,0.58)); pointer-events: none; }
.cj-caps { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.cj-cap { grid-area: 1/1; opacity: 0; will-change: transform, opacity; padding: 0 24px; }
.cj-cap .eyebrow {
  color: #F4F4F2; display: inline-block; padding: 6px 14px; margin-bottom: 16px;
  border: 1px solid rgba(244,244,242,0.28); background: rgba(26,26,26,0.42);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); text-shadow: 0 1px 10px rgba(0,0,0,0.55);
}
.cj-cap h2.display { color: var(--paper); line-height: 1.04; letter-spacing: 0.01em; text-wrap: balance; margin: 0; }
@media (min-width: 641px) { .cj-cap h2.display { font-size: clamp(3rem, 6.5vw, 5.2rem); } }
@media (max-width: 640px) {
  .cj-cap h2.display { font-size: clamp(1.9rem, 8.5vw, 2.6rem); line-height: 1.1; }
  .cj-cap .eyebrow { font-size: 0.66rem; letter-spacing: 0.24em; padding: 5px 11px; }
  .cjourney { height: 520svh !important; }
}
.cjourney .morph-progress { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); }
.cjourney + section { border-top: 60px solid #161616; }
@media (prefers-reduced-motion: reduce) {
  .cjourney { height: auto !important; }
  .cj-pin { position: relative; height: 70vh; }
  .cj-layer { display: none; } .cj-layer:first-child { display: block; }
  .cj-cap:first-child { opacity: 1; }
}

/* ═══ Review V2 (Oct 2026) — TOPO WITHOUT TILING. Lance's own artwork, shown
   once and scaled to cover (no repeat, no seams). It breathes very slowly —
   a long scale + drift on the GPU — so the brand device feels alive without
   pulling focus. Layers bleed past their box so the drift never shows an edge. */
.topo-fixed { inset: -5%; animation: topoDrift 80s ease-in-out infinite alternate; will-change: transform; }
.mb-topo { inset: -5%; animation: topoDrift 60s ease-in-out infinite alternate; }
footer { overflow: hidden; }
footer::before { inset: -5%; animation: topoDrift 90s ease-in-out infinite alternate; }
@keyframes topoDrift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.07) translate3d(-1.6%, -1.2%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .topo-fixed, .mb-topo, footer::before { animation: none; }
}
