/* ============================================================
   Liberty Partners — Phase detail pages (visual-first system)
   Shared by process-discovery / -design / -build / -steward.
   Relies on tokens.css + site.css for type, color, .btn, .eyebrow.
   ============================================================ */

/* ── Full-bleed hero ── */
.phx-hero2 {
  position: relative; overflow: hidden; background: var(--ink);
  height: clamp(720px, 100vh, 1160px);
}
.phx-hero2 .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phx-hero2 .scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.34) 0%, rgba(0,0,0,.04) 34%, rgba(0,0,0,.38) 72%, rgba(0,0,0,.74) 100%),
    linear-gradient(90deg, rgba(0,0,0,.52) 0%, rgba(0,0,0,.18) 34%, rgba(0,0,0,0) 60%);
}
.phx-hero2 .ghost {
  position: absolute; z-index: 1; right: 2vw; top: 10vh;
  font-family: var(--font-body); font-weight: 300; font-style: italic;
  font-size: clamp(200px, 28vw, 440px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.22);
  pointer-events: none; user-select: none;
}
.phx-hero2 .crumb {
  position: absolute; z-index: 2; left: var(--gutter); top: 28px;
  display: flex; gap: 12px; align-items: center;
  font-family: var(--font-display); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,.75);
}
.phx-hero2 .crumb a { color: rgba(255,255,255,.75); text-decoration: none; transition: color .2s var(--ease); }
.phx-hero2 .crumb a:hover { color: #fff; }
.phx-hero2 .crumb .sep { color: rgba(255,255,255,.35); }
.phx-hero2 .crumb .here { color: #fff; }
.phx-hero2 .copy {
  position: relative; z-index: 2; height: 100%;
  padding: 0 var(--gutter) var(--s-8);
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
}
.phx-hero2 .eyebrow { color: var(--brass); text-shadow: 0 1px 18px rgba(0,0,0,.4); }
.phx-hero2 h1 {
  font-family: var(--font-body); font-weight: 300;
  font-size: clamp(64px, 9vw, 150px); line-height: 0.92;
  letter-spacing: -0.03em; margin: 18px 0 0; color: var(--paper);
  text-shadow: 0 1px 28px rgba(0,0,0,.42); text-wrap: balance;
}
.phx-hero2 h1 em { color: var(--brass); font-style: italic; }
.phx-hero2 .lede {
  font-family: var(--font-body); font-weight: 300;
  font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5;
  color: rgba(255,255,255,.9); margin: 22px 0 0; max-width: 520px; text-wrap: pretty;
  text-shadow: 0 1px 18px rgba(0,0,0,.4);
}
.phx-hero2 .lede em { color: var(--paper); font-style: italic; }
.phx-hero2 .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.phx-hero2 .btn.ghost { color: var(--paper); border-color: rgba(255,255,255,.55); }
.phx-hero2 .btn.ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.phx-hero2 .cap {
  position: absolute; z-index: 2; right: var(--gutter); bottom: var(--s-8);
  font-family: var(--font-display); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,.7); text-align: right;
}
@media (prefers-reduced-motion: no-preference) {
  .phx-hero2 .copy > * { opacity: 0; transform: translateY(24px); animation: phxIn .9s var(--ease-out) forwards; }
  .phx-hero2 .copy > *:nth-child(2) { animation-delay: .12s; }
  .phx-hero2 .copy > *:nth-child(3) { animation-delay: .24s; }
  .phx-hero2 .copy > *:nth-child(4) { animation-delay: .36s; }
}
@keyframes phxIn { to { opacity: 1; transform: none; } }

/* ── Stat strip ── */
.phx-stats { border-bottom: 1px solid var(--rule); background: var(--paper); }
.phx-stats-inner {
  max-width: var(--max-w); margin: 0 auto; padding: var(--s-7) var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.phx-stats .k {
  font-family: var(--font-display); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-soft);
}
.phx-stats .v {
  font-family: var(--font-body); font-weight: 300; font-size: clamp(36px, 3.6vw, 52px);
  line-height: 1; letter-spacing: -0.02em; margin-top: 12px;
}
.phx-stats .v em { color: var(--accent); font-style: normal; }
.phx-stats .note { font-size: 13px; color: var(--ink-soft); margin-top: 10px; line-height: 1.4; }

/* ── Statement (one big line, one short paragraph) ── */
.phx-statement {
  max-width: var(--max-w); margin: 0 auto; padding: var(--s-10) var(--gutter);
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(40px, 6vw, 96px);
  align-items: end;
}
.phx-statement .eyebrow { color: var(--accent); }
.phx-statement h2 {
  font-family: var(--font-body); font-weight: 300;
  font-size: clamp(40px, 5vw, 84px); line-height: 1.0;
  letter-spacing: -0.025em; margin: 16px 0 0; text-wrap: balance;
}
.phx-statement h2 em { color: var(--accent); font-style: italic; }
.phx-statement p {
  font-family: var(--font-body); font-size: clamp(18px, 1.4vw, 21px); line-height: 1.55;
  color: var(--ink-soft); margin: 0; max-width: 440px; text-wrap: pretty;
}
.phx-statement p em { color: var(--ink); font-style: italic; }

/* ── Steps as photo cards on ink ── */
.phx-cards { background: var(--ink); color: var(--paper); padding: var(--s-10) 0; }
.phx-cards-head {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter) var(--s-7);
  display: flex; justify-content: space-between; align-items: baseline; gap: 40px;
}
.phx-cards-head .eyebrow { color: var(--sky); }
.phx-cards-head h2 {
  font-family: var(--font-body); font-weight: 300; font-size: clamp(38px, 4.4vw, 68px);
  line-height: 1.0; letter-spacing: -0.022em; margin: 14px 0 0; color: var(--paper);
}
.phx-cards-head h2 em { color: var(--brass); font-style: italic; }
.phx-cards-head .note { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; color: rgba(255,255,255,.5); white-space: nowrap; }
.phx-cards-track {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.phx-card { display: block; text-decoration: none; color: inherit; }
.phx-card .frame { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: color-mix(in oklab, var(--ink) 60%, black); }
.phx-card .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease-out); will-change: transform; }
.phx-card:hover .frame img { transform: scale(1.05); }
.phx-card .frame .n {
  position: absolute; left: 14px; top: 14px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--paper); background: color-mix(in oklab, var(--ink) 62%, transparent);
  padding: 7px 11px; backdrop-filter: blur(4px);
}
.phx-card .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.42) 100%);
}
.phx-card .when {
  position: absolute; left: 14px; bottom: 12px; z-index: 1;
  font-family: var(--font-display); font-size: 9px; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,.85);
}
.phx-card .frame { isolation: isolate; }
.phx-card .frame .when { z-index: 1; }
.phx-card h3 {
  font-family: var(--font-body); font-weight: 400; font-size: clamp(20px, 1.6vw, 25px);
  line-height: 1.12; letter-spacing: -0.012em; margin: 18px 0 8px; color: var(--paper);
}
.phx-card p { font-family: var(--font-body); font-weight: 300; font-size: 15.5px; line-height: 1.5; color: rgba(255,255,255,.62); margin: 0; text-wrap: pretty; }
.phx-card p em { color: rgba(255,255,255,.9); font-style: italic; }
/* staggered reveal */
.phx-cards-track .phx-card { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.phx-cards-track.in .phx-card { opacity: 1; transform: none; }
.phx-cards-track.in .phx-card:nth-child(2) { transition-delay: .09s; }
.phx-cards-track.in .phx-card:nth-child(3) { transition-delay: .18s; }
.phx-cards-track.in .phx-card:nth-child(4) { transition-delay: .27s; }
@media (prefers-reduced-motion: reduce) { .phx-cards-track .phx-card { opacity: 1; transform: none; transition: none; } }

/* ── Full-bleed band with statement ── */
.phx-band { position: relative; height: clamp(440px, 72vh, 760px); overflow: hidden; }
.phx-band img { width: 100%; height: 100%; object-fit: cover; }
.phx-band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,35,54,.06) 0%, rgba(15,35,54,.18) 46%, rgba(15,35,54,.68) 100%);
}
.phx-band .cap {
  position: absolute; z-index: 2; right: var(--gutter); top: var(--s-7);
  font-family: var(--font-display); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,.82);
}
.phx-band .line {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
}
.phx-band .line-in { max-width: var(--max-w); margin: 0 auto; padding: var(--s-8) var(--gutter); }
.phx-band .line-in .eyebrow { color: var(--paper-3); }
.phx-band h2 {
  font-family: var(--font-body); font-weight: 300;
  font-size: clamp(32px, 4.2vw, 64px); line-height: 1.04;
  letter-spacing: -0.022em; margin: 14px 0 0; color: var(--paper);
  max-width: 820px; text-wrap: balance;
}
.phx-band h2 em { color: var(--brass); font-style: italic; }

/* ── Deliverables · numbered, compact ── */
.phx-leave { border-top: 1px solid var(--rule); background: var(--paper-2); }
.phx-leave-inner {
  max-width: var(--max-w); margin: 0 auto; padding: var(--s-9) var(--gutter);
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.phx-leave .eyebrow { color: var(--accent); }
.phx-leave h2 {
  font-family: var(--font-body); font-weight: 300; font-size: clamp(34px, 3.8vw, 60px);
  line-height: 1.02; letter-spacing: -0.022em; margin: 14px 0 0;
}
.phx-leave h2 em { color: var(--accent); font-style: italic; }
.phx-leave-list { border-top: 1px solid var(--rule); }
.phx-leave-item {
  display: grid; grid-template-columns: 64px 1fr; gap: 24px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--rule-soft);
}
.phx-leave-item .n { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.phx-leave-item .t { font-family: var(--font-body); font-weight: 300; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.25; letter-spacing: -0.012em; color: var(--ink); }

/* ── Where it sits (mini timeline) ── */
.phx-where { max-width: var(--max-w); margin: 0 auto; padding: var(--s-9) var(--gutter); }
.phx-where-head { padding-bottom: var(--s-7); }
.phx-where-head .eyebrow { color: var(--accent); }
.phx-where-head h2 {
  font-family: var(--font-body); font-weight: 300; font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.04; letter-spacing: -0.022em; margin: 14px 0 0;
}
.phx-where-head h2 em { color: var(--accent); font-style: italic; }
.phx-track { border-top: 1px solid var(--rule); }
.phx-trow {
  display: grid; grid-template-columns: 200px 1fr 120px; gap: 32px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--rule-soft);
}
.phx-trow .lbl { font-family: var(--font-body); font-size: 19px; }
.phx-trow .lbl .sub { display: block; font-family: var(--font-display); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }
.phx-trow .bar { position: relative; height: 26px; background: color-mix(in oklab, var(--ink) 6%, transparent); border: 1px solid var(--rule-soft); }
.phx-trow .seg { position: absolute; top: 0; bottom: 0; background: color-mix(in oklab, var(--ink) 16%, transparent); }
.phx-trow.active .seg { background: var(--accent); }
.phx-trow .dur { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); text-align: right; letter-spacing: 0.06em; }
.phx-trow.active .lbl { color: var(--ink); }
.phx-trow:not(.active) .lbl { color: var(--ink-soft); }

/* ── Phase FAQ ── */
.phx-faq { border-top: 1px solid var(--rule); }
.phx-faq-inner {
  max-width: var(--max-w); margin: 0 auto; padding: var(--s-9) var(--gutter);
  display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.phx-faq .eyebrow { color: var(--accent); }
.phx-faq h2 {
  font-family: var(--font-body); font-weight: 300; font-size: clamp(32px, 3.6vw, 56px);
  line-height: 1.02; letter-spacing: -0.022em; margin: 14px 0 0;
}
.phx-faq h2 em { color: var(--accent); font-style: italic; }
.phx-faq-list { border-top: 1px solid var(--rule); }
details.phx-q { border-bottom: 1px solid var(--rule-soft); padding: 24px 0; }
details.phx-q summary {
  display: grid; grid-template-columns: 1fr 24px; gap: 24px; align-items: baseline;
  font-family: var(--font-body); font-size: clamp(20px, 1.9vw, 24px); line-height: 1.3;
  cursor: pointer; list-style: none; color: var(--ink);
}
details.phx-q summary::-webkit-details-marker { display: none; }
details.phx-q summary::after {
  content: "+"; font-family: var(--font-body); font-size: 28px; color: var(--accent);
  text-align: right; line-height: 1;
}
details.phx-q[open] summary::after { content: "−"; }
details.phx-q .a {
  padding-top: 16px; padding-right: 48px;
  font-family: var(--font-body); font-size: 18px; line-height: 1.6; color: var(--ink-soft);
}
details.phx-q .a em { color: var(--ink); font-style: italic; }

/* ── Prev / next · color blocks ── */
.phx-pn2 { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.phx-pn2 a {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px;
  padding: clamp(48px, 9vh, 84px) var(--gutter);
  text-decoration: none; transition: background .3s var(--ease);
}
.phx-pn2 a.prev { background: var(--paper-2); border-right: 1px solid var(--rule); }
.phx-pn2 a.prev:hover { background: var(--paper-3); }
.phx-pn2 a.next { background: var(--accent); align-items: flex-end; text-align: right; }
.phx-pn2 a.next:hover { background: color-mix(in oklab, var(--accent) 86%, black); }
.phx-pn2 .dir {
  font-family: var(--font-display); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-soft); white-space: nowrap;
}
.phx-pn2 a.next .dir { color: color-mix(in oklab, var(--on-accent) 72%, transparent); }
.phx-pn2 .ttl {
  font-family: var(--font-body); font-weight: 300; font-size: clamp(30px, 3.6vw, 56px);
  line-height: 1.0; letter-spacing: -0.022em; color: var(--ink);
}
.phx-pn2 a.next .ttl { color: var(--on-accent); }
.phx-pn2 .ttl em { color: var(--accent); font-style: italic; }
.phx-pn2 a.next .ttl em { color: var(--brass); }
.phx-pn2 .ttl .arr { display: inline-block; transition: transform .25s var(--ease); }
.phx-pn2 a:hover .ttl .arr { transform: translateX(6px); }
.phx-pn2 a.prev:hover .ttl .arr { transform: translateX(-6px); }

/* ── CTA strip ── */
.phx-cta { background: var(--ink); color: var(--paper); padding: var(--s-9) 0; border-top: 1px solid color-mix(in oklab, var(--paper) 14%, transparent); }
.phx-cta-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: end;
}
.phx-cta .eyebrow { color: var(--accent-2); }
.phx-cta h2 {
  font-family: var(--font-body); font-weight: 300; font-size: clamp(40px, 5.4vw, 84px);
  line-height: 0.98; letter-spacing: -0.025em; margin: 16px 0 0;
}
.phx-cta h2 em { color: var(--accent-2); font-style: italic; }
.phx-cta .cta-actions { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
.phx-cta .meta { display: grid; gap: 0; }
.phx-cta .meta .row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid color-mix(in oklab, var(--paper) 18%, transparent); font-family: var(--font-body); font-size: 18px; }
.phx-cta .meta .row .k { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-2); }
.phx-cta .btn { color: var(--paper); border-color: var(--paper); }
.phx-cta .btn.primary { background: var(--accent-2); color: var(--ink); border-color: var(--accent-2); }
.phx-cta .btn:hover { background: var(--paper); color: var(--ink); }

/* ── Reveal-on-scroll ── */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }
/* cards track uses its own stagger */
.phx-cards-track[data-reveal] { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .phx-hero2 { height: clamp(560px, 88vh, 820px); }
  .phx-hero2 .ghost { font-size: clamp(160px, 44vw, 280px); right: -2vw; }
  .phx-hero2 .cap { display: none; }
  .phx-stats-inner { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .phx-statement { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .phx-cards-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .phx-cards-head .note { white-space: normal; }
  .phx-cards-track {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .phx-card { scroll-snap-align: start; }
  .phx-leave-inner { grid-template-columns: 1fr; gap: 32px; }
  .phx-trow { grid-template-columns: 1fr; gap: 8px; }
  .phx-trow .dur { text-align: left; }
  .phx-faq-inner { grid-template-columns: 1fr; gap: 32px; }
  .phx-pn2 { grid-template-columns: 1fr; }
  .phx-pn2 a.prev { border-right: 0; border-bottom: 1px solid var(--rule); }
  .phx-cta-inner { grid-template-columns: 1fr; gap: 40px; }
}
