/* ===========================
   Homepage (motion layout) — loaded only on / via pageCss: home.
   Everything is scoped under .hp so it can't leak into other pages.
   Motion lives in /js/home.js and is skipped for prefers-reduced-motion.
   =========================== */
.hp {
  --p-cream: #F7F5F2;
  --p-muted: #9AA6AE;
  --p-dim: #33434D;
  --p-rule: rgba(247,245,242,0.12);
  --p-copper-lite: #D0814F;
  --p-ink: var(--navy-dark);
  background: var(--p-ink);
  color: var(--p-cream);
  overflow-x: clip;
}
.hp a { color: inherit; }
.hp a:hover { text-decoration: none; }
.hp h1, .hp h2, .hp h3 { color: inherit; margin: 0; text-wrap: balance; }
.hp :focus-visible { outline: 2px solid var(--p-copper-lite); outline-offset: 3px; }
.hp-eyebrow { margin: 0; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--p-copper-lite); }
.hp-nowrap { white-space: nowrap; }

/* light reading sections: same names, light values */
.hp-light { --p-cream: var(--navy-dark); --p-muted: #5B6472; --p-rule: rgba(32,54,75,0.14); --p-copper-lite: var(--copper-dark); --p-ink: var(--cream); background: var(--p-ink); color: var(--p-cream); }
.hp-light.hp-white { --p-ink: var(--white); }

.hp-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--copper); color: var(--cream) !important; font-weight: 600; padding: 14px 22px; border-radius: 4px; transition: background 0.2s; }
.hp-btn:hover { background: var(--copper-dark); }
.hp-chev { display: inline-block; transition: transform 0.2s; }
.hp-btn:hover .hp-chev { transform: translateX(3px); }
.hp-link { font-weight: 600; border-bottom: 1px solid var(--copper); padding-bottom: 2px; }
.hp-link:hover { color: var(--p-copper-lite); }

.hp-sec { padding-block: clamp(56px, 8vw, 100px); }
.hp-sec h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin-top: 12px; }
.hp-sub { color: var(--p-muted); margin: 12px 0 0; max-width: 52ch; font-size: 1.05rem; }

/* ---------- hero ---------- */
.hp-hero { position: relative; overflow: hidden; background: var(--navy-dark); isolation: isolate; }
.hp-contours { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; transition: opacity 0.4s ease; }
.hp-hero-body { padding-block: clamp(48px, 9vw, 110px) clamp(56px, 9vw, 120px); }
.hp-hero h1 { margin-top: 18px; font-size: clamp(2.2rem, 5vw, 4.3rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; }
.hp-ln { display: block; color: var(--p-cream); transition: color 0.35s ease, transform 0.4s cubic-bezier(.2,.7,.1,1); }
.hp-ln2 { transform: translateX(clamp(.48em, 7.2vw, 1.68em)); transition: color 0.35s ease, transform 1.3s cubic-bezier(.16,1,.3,1); }
.hp-mark { display: inline-block; overflow: visible; }
.hp-mark .star { fill: var(--p-cream); transform-origin: 0 0; transition: transform 0.28s cubic-bezier(.3,1.4,.4,1); }
.hp-mark .spire { fill: var(--copper); transform-origin: 0 -25px; transition: transform 0.25s cubic-bezier(.2,.8,.2,1); }
.hp-answer { margin: clamp(30px, 4.2vw, 48px) 0 0; font-size: clamp(1.08rem, 1.7vw, 1.35rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; display: flex; flex-wrap: wrap; align-items: center; row-gap: 8px; }
.hp-answer .b { display: inline-block; padding: 0 clamp(14px, 2vw, 22px); border-left: 1px solid rgba(247,245,242,0.22); transition: opacity 0.25s ease-out, transform 0.35s cubic-bezier(.2,1.5,.4,1); }
.hp-answer .b1 { padding-left: 0; border-left: 0; }
.hp-answer .b3 { color: var(--p-copper-lite); }
.hp-answer .hp-mark { width: 0.9em; height: 1.2em; vertical-align: -0.1em; margin-left: 0.15em; }
.hp-lede { max-width: 58ch; margin: 20px 0 0; font-size: clamp(1rem, 1.4vw, 1.12rem); color: #C9D0D4; transition: opacity 0.3s ease, transform 0.3s ease; }
.hp-acts { margin-top: clamp(32px, 4.5vw, 48px); padding-top: clamp(24px, 3vw, 32px); border-top: 1px solid rgba(247,245,242,0.14); max-width: 760px; transition: border-color 0.3s ease; }
.hp-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; transition: opacity 0.3s ease, transform 0.3s ease; }
.hp-cred { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 20px 0 0; font-size: 0.88rem; color: var(--p-muted); transition: opacity 0.3s ease, transform 0.3s ease; }
.hp-cred span { white-space: nowrap; }
.hp-cred span + span::before { content: "\00B7"; margin: 0 0.7em; color: var(--p-copper-lite); }
@media (max-width: 560px) {
  .hp-answer { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hp-answer .b, .hp-answer .b1 { border-left: 2px solid var(--copper); padding: 0 0 0 12px; }
  .hp-cred { flex-direction: column; }
  .hp-cred span + span::before { content: none; }
}

/* intro: start state only once JS arms it, so the page is complete without JS */
.hp.intro .hp-ln { color: var(--p-dim); }
.hp.intro .hp-ln2 { transform: translateX(0); }
.hp.intro .hp-hero .hp-mark .star { transform: scale(0) rotate(-135deg); }
.hp.intro .hp-hero .hp-mark .spire { transform: scaleY(0); }
.hp.intro .hp-lede, .hp.intro .hp-ctas, .hp.intro .hp-cred { opacity: 0; transform: translateY(14px); }
.hp.intro .hp-acts { border-color: transparent; }
.hp.intro .hp-contours { opacity: 0; }
.hp.intro .hp-answer .b { opacity: 0; transform: translateY(12px); }
.hp.play .hp-ln { transition-delay: 0.04s; }
.hp.play .hp-ln2 { transition-delay: 0.09s, 0.35s; }
.hp.play .hp-contours { transition-delay: 0.3s; }
.hp.play .hp-answer .b1 { transition-delay: 0.5s; }
.hp.play .hp-answer .b2 { transition-delay: 0.725s; }
.hp.play .hp-answer .b3 { transition-delay: 0.95s; }
.hp.play .hp-hero .hp-mark .star { transition-delay: 1.075s; }
.hp.play .hp-hero .hp-mark .spire { transition-delay: 1.25s; }
.hp.play .hp-acts { transition-delay: 1.5s; }
.hp.play .hp-lede { transition-delay: 1.54s; }
.hp.play .hp-ctas { transition-delay: 1.7s; }
.hp.play .hp-cred { transition-delay: 1.86s; }

/* reveal on scroll */
.hp .rv { transition: opacity 0.4s ease, transform 0.4s cubic-bezier(.2,.7,.1,1); }
.hp .rv.hide { opacity: 0; transform: translateY(28px); }

/* ---------- three problems ---------- */
.hp-probs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; border-top: 1px solid var(--p-rule); }
.hp-prob { padding: 26px 28px 6px 0; margin-right: 28px; border-right: 1px solid var(--p-rule); }
.hp-prob:last-child { border-right: 0; margin-right: 0; }
.hp-pl { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--p-copper-lite); }
.hp-prob q { display: block; quotes: none; font-size: clamp(1.1rem, 1.8vw, 1.3rem); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; margin-top: 10px; }
.hp-close-line { margin: 34px 0 0; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--p-muted); max-width: 60ch; }
.hp-close-line strong { color: var(--p-cream); }
@media (max-width: 760px) {
  .hp-probs { grid-template-columns: 1fr; }
  .hp-prob { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--p-rule); padding-bottom: 22px; }
}

/* ---------- situation picker ---------- */
.hp-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.hp-choice { position: relative; text-align: left; background: transparent; border: 1px solid var(--p-rule); color: var(--p-cream); padding: 22px 56px 22px 24px; border-radius: var(--radius); cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 6px; transition: border-color 0.2s, background 0.2s; }
.hp-choice:hover { border-color: var(--p-muted); }
.hp-choice .ct { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.hp-choice .cs { color: var(--p-muted); font-size: 0.95rem; line-height: 1.45; }
.hp-choice::after { content: ""; position: absolute; right: 22px; top: 24px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--p-muted); }
.hp-choice[aria-checked="true"] { border-color: var(--copper); background: rgba(178,95,44,0.1); }
.hp-choice[aria-checked="true"]::after { border-color: var(--copper); background: var(--copper); box-shadow: inset 0 0 0 4px var(--p-ink); }
.hp-sit { margin-top: 20px; background: var(--white); border: 1px solid var(--p-rule); box-shadow: 0 10px 30px rgba(32,54,75,0.08); border-radius: var(--radius); padding: 26px clamp(20px, 3vw, 32px); animation: hp-pop 0.3s ease-out; }
.hp-sit h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 8px; }
.hp-sit p { margin: 0 0 6px; max-width: 62ch; }
.hp-sit-acts { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 18px; }
@keyframes hp-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .hp-choices { grid-template-columns: 1fr; } }

/* ---------- framework grouped by problem ---------- */
.hp-fw { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 36px; margin-top: 40px; }
.hp-grp .gl { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--p-copper-lite); padding-bottom: 12px; border-bottom: 2px solid var(--copper); }
.hp-grp .it { padding: 18px 0; border-bottom: 1px solid var(--p-rule); }
.hp-grp .it b { font-size: 0.75rem; letter-spacing: 0.12em; color: var(--p-muted); font-variant-numeric: tabular-nums; }
.hp-grp .it h3 { font-size: 1.15rem; font-weight: 700; margin: 4px 0 2px; }
.hp-grp .it p { margin: 0; color: var(--p-muted); font-size: 0.95rem; }
.hp-fw-more { margin: 28px 0 0; }
@media (max-width: 760px) { .hp-fw { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- outcomes: one beat at a time ---------- */
#framework { padding-bottom: clamp(48px, 6vw, 80px); }
.hp-outcomes { padding-bottom: clamp(64px, 9vw, 120px); }
.hp-outcomes h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; max-width: 20ch; margin: 12px 0 36px; }
.hp-beats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--p-rule); }
.hp-beat { padding: 26px 24px 8px 0; border-right: 1px solid var(--p-rule); margin-right: 24px; transition: opacity 0.15s ease-out, transform 0.25s cubic-bezier(.2,1.5,.4,1); }
.hp-beat:last-child { border-right: 0; margin-right: 0; }
.hp-beat::before { content: ""; display: block; width: 36px; height: 2px; background: var(--copper); margin-bottom: 16px; transform-origin: left; transition: transform 0.125s ease-out; transition-delay: inherit; }
.hp-beat h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.hp-beat p { margin: 0; color: var(--p-muted); font-size: 0.95rem; }
.hp-beats.armed .hp-beat { opacity: 0; transform: translateY(18px) scale(.97); }
.hp-beats.armed .hp-beat::before { transform: scaleX(0); }
@media (max-width: 860px) {
  .hp-beats { grid-template-columns: 1fr; }
  .hp-beat { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--p-rule); padding-bottom: 22px; }
}

/* ---------- proof + operator ---------- */
.hp-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.hp-res { margin: 0; background: var(--white); border: 1px solid var(--p-rule); border-radius: var(--radius); padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 12px; }
.hp-res .rh { font-size: clamp(1.35rem, 2.3vw, 1.75rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
.hp-res blockquote { margin: 0; color: var(--p-muted); font-size: 1rem; line-height: 1.5; }
.hp-res figcaption { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--p-rule); font-size: 0.84rem; font-weight: 600; }
@media (max-width: 860px) { .hp-results { grid-template-columns: 1fr; } }
.hp-op { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 56px; padding-top: 44px; border-top: 1px solid var(--p-rule); }
.hp-op img { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; object-position: center top; }
.hp-op h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 4px; }
.hp-op-line { margin: 0; color: var(--p-muted); max-width: 60ch; }
.hp-facts { list-style: none; padding: 0; margin: 18px 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.hp-facts li { border: 1px solid var(--p-rule); background: var(--white); border-radius: 999px; padding: 7px 14px; font-size: 0.88rem; font-weight: 500; }
@media (max-width: 600px) {
  .hp-op { grid-template-columns: 1fr; gap: 18px; }
  .hp-op img { width: 96px; height: 96px; }
}

/* ---------- latest insights ---------- */
.hp-insights { padding-bottom: 0; }
.hp-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 36px; margin-top: 36px; border-top: 1px solid var(--p-rule); }
.hp-post { display: flex; flex-direction: column; gap: 10px; padding: 24px 0; border-bottom: 1px solid var(--p-rule); }
.hp-post-title { font-size: 1.2rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; transition: color 0.15s ease; }
.hp-post-desc { color: var(--p-muted); font-size: 0.95rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hp-post-more { margin-top: auto; font-weight: 600; font-size: 0.92rem; color: var(--p-copper-lite); }
.hp-post:hover .hp-post-title { color: var(--p-copper-lite); }
@media (max-width: 860px) { .hp-posts { grid-template-columns: 1fr; } }

/* ---------- Compass Check wrapper (box styles live in styles.css, .cc-*) ---------- */
.hp-check { scroll-margin-top: 80px; }
.hp-check .cc-box { box-shadow: 0 18px 40px rgba(22,38,47,0.18); }
.hp .cc-box a { color: #D98A5A; }

/* ---------- close ---------- */
.hp-end { padding-block: clamp(72px, 10vw, 130px); text-align: center; background: var(--navy); }
.hp-end .hp-mark { width: 64px; height: auto; display: block; margin: 0 auto 28px; }
.hp-end .hp-mark .spire { transition-delay: 0.18s; }
.hp-end.armed .hp-mark .star { transform: scale(0) rotate(-135deg); }
.hp-end.armed .hp-mark .spire { transform: scaleY(0); }
.hp-end h2 { font-size: clamp(1.8rem, 4.4vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; max-width: 20ch; margin: 0 auto; }
.hp-end .hp-ctas { justify-content: center; margin-top: 28px; }
.hp-end small { display: block; margin-top: 16px; color: var(--p-muted); font-size: 0.9rem; }

@media (prefers-reduced-motion: reduce) {
  .hp *, .hp *::before, .hp *::after { transition: none !important; animation: none !important; }
}
