/* Section layouts. Everything here builds on theme.css tokens and parts. */

/* hero */
.ph-hero-sec { padding: 180px 0 96px; overflow: hidden; }
.ph-hero-sec > .ph-wrap { z-index: 1; }
.ph-hero-sec [class*="hero-top-fade-module"] { z-index: 0; }
.ph-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.ph-hero-copy { display: grid; gap: 24px; }
.ph-hero-copy .ph-eyebrow a { color: var(--ink-2); text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 13px; }
.ph-hero-copy .ph-eyebrow a:hover { color: var(--ink); }
.ph-hero-copy .ph-h1 .ph-ch { display: inline-block; }
.ph-hero-art { position: relative; height: 470px; }

/* trust row */
.ph-trust-sec { padding: 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.ph-ticker { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ph-track { display: flex; flex: none; animation: ph-tick 60s linear infinite; }
.ph-ticker:hover .ph-track { animation-play-state: paused; }
@keyframes ph-tick { to { transform: translateX(-100%); } }
.ph-tk { position: relative; flex: none; display: flex; align-items: center; gap: 12px; padding: 26px 32px; border-right: 1px solid var(--hair); white-space: nowrap; font: 400 13px var(--mono); color: var(--ink-2); transition: color .2s, background .2s; }
.ph-tk:hover { color: var(--ink); background: var(--lift); }
.ph-tk .ic { display: block; flex: none; width: 16px; height: 16px; color: var(--ink-3); }
.ph-tk .ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* registration crosses ride with each cell */
.ph-tk::before, .ph-tk::after { content: ""; position: absolute; right: -6px; width: 11px; height: 11px; z-index: 1;
  background: linear-gradient(var(--mark), var(--mark)) 0 5px / 11px 1px no-repeat, linear-gradient(var(--mark), var(--mark)) 5px 0 / 1px 11px no-repeat; }
.ph-tk::before { top: -6px; } .ph-tk::after { bottom: -6px; }
@media (prefers-reduced-motion: reduce) { .ph-track { animation: none; } }

/* statement + particles */

/* feature rows: art sits on the ground, no boxes */
.ph-art .finding-evidence__root, .ph-art .estate-coverage__root, .ph-art .release-cadence__root { min-height: 320px; }
.ph-cardart { width: min(100%, 520px); container-type: inline-size; }

/* layer stack (keygraph one-platform, replicated) */
.ph-stack { position: relative; margin: 8px 0 56px; }
.ph-stack-stage { position: relative; aspect-ratio: 1000 / 560; }
.ph-stack-stage canvas, .ph-stack-over { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph-stack-over .op-node { fill: var(--ground); stroke: var(--ink); stroke-width: 1.6; }
.ph-stack-over .op-rep { fill: var(--accent); }
.ph-stack-over .op-ic { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ph-stack-over .op-ic * { vector-effect: non-scaling-stroke; }
.ph-stack-over .op-ic.is-rep { stroke: #000; stroke-width: 2.2; }
.ph-stack-over .op-lab { font: 500 13px var(--mono); letter-spacing: .14em; fill: var(--ink); paint-order: stroke; stroke: var(--ground); stroke-width: 9px; stroke-linejoin: round; }
.ph-stack-over .op-lab.is-acc { fill: var(--accent); }

/* lifecycle */
.ph-life { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.ph-posts { display: grid; gap: 16px; }
.ph-post { padding: 16px; gap: 0; }
.ph-post-meta { display: flex; justify-content: space-between; font: 400 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ph-post img { margin: 14px 0 18px; width: 100%; aspect-ratio: 2.4 / 1; object-fit: cover; border-radius: 8px; background: var(--ground); }
.ph-post b { font-weight: 500; font-size: 18px; letter-spacing: -.01em; line-height: 1.3; }
.ph-post .ph-mono { margin-top: 18px; font-size: 12px; }

/* loop panels (xbow) on the light ground */
.ph-loop [class*="loop-steps-module"][class*="__card"] { margin: 0 auto; }

/* rules */
.ph-rules > .ph-cell.ph-rules-art { display: grid; place-items: center; padding: 32px; container-type: inline-size; }
.ph-rules > .ph-cell.ph-rules-art .pb { width: 100%; }
.ph-rules > .ph-cells { border-top: 0; border-left: 0; }
.ph-rules > .ph-cells > .ph-cell:nth-child(2n of .ph-cell) { border-right: 0; }
.ph-rules > .ph-cells > .ph-cell:nth-last-child(-n+2 of .ph-cell) { border-bottom: 0; }
.ph-rules > .ph-cells { border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }

/* tabs (xbow media tabs) */
.ph-tabs { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.ph-tabs [role="tabpanel"] { container-type: inline-size; }

/* roles */
.ph-roles .ph-cell .q { margin-top: 18px; font-size: 18px; line-height: 1.4; color: var(--ink); letter-spacing: -.01em; }
.ph-roles .ph-cell h3 { margin-top: 24px; font-size: 14px; }

/* CTA hub */
.ph-cta-sec .ph-head { margin-bottom: 24px; }
.ph-hub { max-width: 760px; margin: 0 auto; }

/* footer sits on the light ground after the CTA */
footer { border-top: 1px solid var(--hair); background: var(--ground); }

@media (max-width: 1000px) {
  .ph-hero, .ph-life, .ph-tabs { grid-template-columns: 1fr; }
  .ph-hero-art { height: 360px; }
  .ph-rules { grid-template-columns: 1fr !important; }
}

/* lifecycle chain: keep xbow's stage cards, drop its dot field so the lattice stays the only texture */
.ph-life-chain::before { content: none !important; }
/* dividers carry the spacing on the light side */
.ph-div + .ph-sec { padding-top: 8px; border-top: 0; }
.ph-sec:has(+ .ph-div.up) { padding-bottom: 24px; }

/* field notes in the lattice */
.ph-note { display: flex; flex-direction: column; color: inherit; }
.ph-note .sub { margin: 0; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.ph-note img { margin: 20px 0 4px; width: 100%; aspect-ratio: 2.6 / 1; object-fit: cover; background: var(--raised); border: 1px solid var(--hair); }
.ph-note h3 { font-size: 20px; }

/* full-screen pixel statement: sticky canvas, the section's height is the scroll distance */
.ph-pix { position: relative; height: 200vh; background: var(--ground); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.ph-pix + .ph-sec { border-top: 0; }
.ph-pix-stick { position: sticky; top: 0; height: 100vh; }
.ph-pix canvas { display: block; width: 100%; height: 100%; }
.ph-hero-sec > .ph-rails { display: none; }

/* FAQ */
.ph-faq { border-top: 1px solid var(--hair); }
.ph-qa { border-bottom: 1px solid var(--hair); }
.ph-qa summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 48px 1fr 22px; gap: 16px; align-items: center; padding: 24px 0; }
.ph-qa summary::-webkit-details-marker { display: none; }
.ph-qa .n { font: 400 12px var(--mono); color: var(--ink-3); }
.ph-qa .q { font-size: 18px; letter-spacing: -.01em; color: var(--ink); }
.ph-qa summary i { width: 22px; height: 22px; border: 1px solid var(--hair-2); position: relative; transition: border-color .2s, background .2s; }
.ph-qa summary i::before, .ph-qa summary i::after { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 1px; background: var(--ink); transition: transform .25s; }
.ph-qa summary i::after { transform: rotate(90deg); }
.ph-qa[open] summary i { background: var(--accent); border-color: var(--accent); }
.ph-qa[open] summary i::before, .ph-qa[open] summary i::after { background: #000; }
.ph-qa[open] summary i::after { transform: rotate(0); }
.ph-qa summary:hover .q { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--hair-2); }
.ph-qa p { margin: 0 0 16px 64px; max-width: 760px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.ph-qa p:last-child { margin-bottom: 26px; }
.ph-qa a, .ph-inline { color: var(--ink); text-decoration: underline; text-decoration-color: var(--hair-2); text-underline-offset: 3px; }
@media (max-width: 640px) { .ph-qa summary { grid-template-columns: 32px 1fr 22px; } .ph-qa p { margin-left: 48px; } }
