/* =========================================================================
   V2 SERVICE PAGES: shared styles for the-2-day-poc.html,
   custom-development.html (Custom AI Agents & Software), and
   forward-deployed-ai-engineers.html.
   Loads after colors_and_type.css + homepage.css + pages.css + home.css.
   Reuses the v2 components from home.css (.h-btn, .h-eyebrow, .h-title,
   .h-lede, .h-check, .h-trust, the .h-tl timeline, and the closing .h-poc
   split band); everything here is prefixed .p-. Every section is a band that
   owns its padding (var(--h-pad)), and bands fill at least one screen above
   900px. Build new service pages from these blocks so spacing stays uniform.
   The POC Process steps play once on first view (poc.js).
   ========================================================================= */

/* ---------------------------------------------------------------- shared */
.p-split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 5.5vw, 80px); align-items: start; }

/* ---------------------------------------------------------------- hero */
.p-hero { background: var(--bg); }
.p-hero-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 64px; align-items: center;
  padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 6vw, 80px);
}
.p-hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.p-hero h1 {
  margin: 24px 0 0;
  font-size: clamp(44px, 5vw, 64px); line-height: 1.04;
  letter-spacing: -0.04em; font-weight: var(--weight-bold); color: var(--navy-700);
}
/* longer headlines (a sentence rather than short stacked lines) step down a size and balance their lines */
.p-hero h1.p-hero-title--long { font-size: clamp(38px, 4vw, 56px); text-wrap: balance; }
.p-hero-sub { margin: 26px 0 0; max-width: 600px; font-size: 19px; line-height: 1.6; color: var(--ink-600); }
.p-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.p-hero .h-btn { min-height: 54px; padding: 0 26px; }
.p-hero .h-trust { margin-top: 22px; }

.p-runlog-stage { position: relative; min-height: 520px; display: flex; align-items: center; justify-content: flex-end; }
.p-runlog-back {
  position: absolute; top: 10px; right: 0; width: 360px; height: 420px;
  border-radius: 32px; background: var(--navy-500);
}
.p-runlog {
  position: relative; width: 100%; max-width: 440px; margin: 60px 40px 0 0;
  padding: 26px 28px 28px; border-radius: 22px;
  background: #FFFFFF; border: 1px solid var(--ink-150);
  box-shadow: 0 30px 60px rgba(0, 22, 64, 0.16);
  display: flex; flex-direction: column;
}
.p-runlog-head {
  display: flex; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--ink-150);
  font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-4);
}
.p-runlog-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--ink-100);
}
.p-runlog-row:last-of-type { border-bottom: 0; }
.p-runlog-k {
  flex: none; font-family: var(--font-mono); font-size: var(--text-2xs);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-4);
}
.p-runlog-v { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--navy-700); text-align: right; }
.p-runlog-num { font-family: var(--font-mono); font-size: 20px; font-weight: var(--weight-semibold); color: var(--coral-press); }
.p-runlog-badge {
  margin-top: 16px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill);
  background: var(--green-50); color: var(--h-green);
  font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: var(--weight-semibold);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.p-runlog-badge span { width: 7px; height: 7px; border-radius: var(--radius-pill); background: var(--green-500); }

/* ---------------------------------------------------------------- why this works (navy) */
.p-why { background: var(--navy-500); padding-top: var(--h-pad); padding-bottom: var(--h-pad); }
.p-why-title, .p-days-title {
  margin: 24px 0 0; font-size: clamp(38px, 4vw, 56px); line-height: 1.06;
  letter-spacing: -0.04em; font-weight: var(--weight-bold); color: #FFFFFF;
}
.p-why-title span { color: var(--coral-300); }
.p-why-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.p-why-card {
  min-height: 320px; padding: 32px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
}
.p-why-num { font-family: var(--font-mono); font-size: 26px; font-weight: var(--weight-semibold); color: var(--coral-300); }
.p-why-card h3 { margin: 18px 0 0; font-size: 21px; line-height: 1.3; letter-spacing: -0.02em; font-weight: var(--weight-semibold); color: #FFFFFF; }
.p-why-card p { margin: 10px 0 0; font-size: var(--text-base); line-height: 1.6; color: rgba(255, 255, 255, 0.8); }

/* ---------------------------------------------------------------- the process */
.p-process { background: #FFFFFF; padding-top: var(--h-pad); padding-bottom: var(--h-pad); }
.p-steps {
  margin: 56px 0 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: 1fr 1fr 1fr 0.7fr; align-items: start;
}
.p-step { display: flex; flex-direction: column; padding-right: 40px; }
.p-step--go { padding-right: 0; }
.p-step-rail { display: flex; align-items: center; min-height: 64px; }
.p-step-dot {
  width: 64px; height: 64px; flex: none; border-radius: var(--radius-pill);
  border: 2px solid var(--coral-500); background: var(--coral-500); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 20px; font-weight: var(--weight-semibold);
  transition: transform 450ms cubic-bezier(.34, 1.56, .64, 1), background 300ms ease, color 300ms ease;
}
.p-step-line {
  flex-grow: 1; height: 2px; margin: 0 -24px 0 16px;
  background: repeating-linear-gradient(90deg, var(--coral-500) 0 10px, transparent 10px 18px);
  transform-origin: left center; transition: transform 650ms cubic-bezier(.6, 0, .2, 1);
}
.p-step-body { transition: opacity 500ms ease, transform 550ms cubic-bezier(.2, .8, .2, 1); }
.p-step h3 { margin: 28px 0 0; font-size: 22px; line-height: 1.3; letter-spacing: -0.02em; font-weight: var(--weight-semibold); color: var(--navy-700); }
.p-step p { margin: 10px 0 0; font-size: var(--text-base); line-height: 1.6; color: var(--ink-600); }
.p-step--go p { margin-top: 28px; color: var(--ink-500); }
.p-go-pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px;
  border-radius: var(--radius-pill); background: var(--navy-500); color: #FFFFFF;
  font-size: 15px; font-weight: var(--weight-semibold); white-space: nowrap;
  transition: opacity 500ms ease, transform 550ms cubic-bezier(.2, .8, .2, 1);
}
.p-go-pill svg { color: var(--coral-300); }
/* play-once animation states (poc.js toggles .is-on / .is-linked) */
.js .p-step:not(.is-on) .p-step-dot { transform: scale(0.55); background: var(--coral-50); color: var(--coral-press); }
.js .p-step:not(.is-on) .p-step-body,
.js .p-step:not(.is-on) .p-go-pill { opacity: 0; transform: translateX(-24px); }
.js .p-step:not(.is-linked) .p-step-line { transform: scaleX(0); }

/* ---------------------------------------------------------------- how it works (navy) */
.p-days { background: var(--navy-500); padding-top: var(--h-pad); padding-bottom: var(--h-pad); }
.p-days-title { font-size: clamp(36px, 3.8vw, 52px); letter-spacing: -0.035em; line-height: 1.08; }
.p-days-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.p-day { padding-right: 64px; display: flex; flex-direction: column; }
.p-day--two { padding-right: 0; padding-left: 64px; border-left: 2px solid var(--coral-500); }
.p-day-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 36px; }
.p-day-name { font-size: 44px; line-height: 1; font-weight: var(--weight-bold); letter-spacing: -0.04em; color: #FFFFFF; }
.p-day-tag, .p-dstep-when {
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-mono-label); text-transform: uppercase; color: var(--coral-300);
}
.p-dstep { display: flex; gap: 24px; }
.p-dstep-rail { display: flex; flex-direction: column; align-items: center; flex: none; width: 16px; padding-top: 5px; }
.p-dstep-dot { width: 16px; height: 16px; border-radius: var(--radius-pill); background: var(--coral-500); box-shadow: 0 0 0 6px rgba(247, 87, 75, 0.18); }
.p-dstep-line { width: 2px; flex-grow: 1; margin-top: 10px; background: rgba(255, 255, 255, 0.18); }
.p-dstep-body { display: flex; flex-direction: column; padding-bottom: 44px; }
.p-dstep:last-child .p-dstep-body { padding-bottom: 0; }
.p-dstep h3 { margin: 8px 0 0; font-size: 26px; line-height: 1.25; letter-spacing: -0.02em; font-weight: var(--weight-semibold); color: #FFFFFF; }
.p-dstep p { margin: 10px 0 0; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, 0.8); }

/* ---------------------------------------------------------------- what you walk away with */
.p-keep { background: var(--bg); padding-top: var(--h-pad); padding-bottom: var(--h-pad); }
.p-keep .h-title { font-size: clamp(34px, 3.6vw, 48px); }
.p-keep-list { margin: 0; padding: 0; list-style: none; }
.p-keep-list li { display: flex; align-items: flex-start; gap: 16px; padding: 20px 0; border-top: 1px solid var(--ink-150); }
.p-keep-list li .h-check { margin-top: 1px; }
.p-keep-list p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-700); }
.p-keep-list strong { color: var(--navy-700); font-weight: var(--weight-semibold); }

/* ---------------------------------------------------------------- proof */
.p-proof { background: var(--coral-50); padding-top: var(--h-pad); padding-bottom: var(--h-pad); }
.p-proof-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.p-proof-card {
  padding: 40px; border-radius: 26px; background: #FFFFFF;
  box-shadow: 0 24px 48px rgba(199, 58, 48, 0.08);
  display: flex; flex-direction: column; align-items: flex-start;
}
.p-proof-tag, .p-fit-label {
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-mono-label); text-transform: uppercase; color: var(--coral-press);
}
.p-proof-card h3 { margin: 16px 0 0; font-size: 28px; line-height: 1.15; letter-spacing: -0.03em; font-weight: var(--weight-bold); color: var(--navy-700); }
.p-proof-desc { margin: 14px 0 0; font-size: var(--text-base); line-height: 1.6; color: var(--ink-600); }
.p-proof-stats { margin: 28px 0 24px; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.p-proof-stats > div { display: flex; flex-direction: column; gap: 6px; }
.p-proof-num { font-size: clamp(26px, 2.5vw, 36px); line-height: 1; font-weight: var(--weight-bold); letter-spacing: -0.03em; color: var(--navy-700); white-space: nowrap; }
.p-proof-label { font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500); }
.p-proof-quote {
  margin: auto 0 0; width: 100%; padding-top: 22px; border-top: 1px solid var(--coral-200);
  display: flex; flex-direction: column; gap: 10px;
}
.p-proof-quote blockquote { margin: 0; font-size: 17px; line-height: 1.5; font-weight: var(--weight-medium); color: var(--navy-700); }
.p-proof-quote figcaption { font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: 0.06em; color: var(--ink-500); }
.p-proof-link {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 15px; font-weight: var(--weight-semibold); color: var(--coral-press); text-decoration: none;
}
.p-proof-link:hover { color: var(--coral-deep); text-decoration: none; }
.p-proof-link .h-arrow { transition: transform var(--duration-base) var(--ease-out); }
.p-proof-link:hover .h-arrow { transform: translateX(3px); }

/* ---------------------------------------------------------------- fit */
.p-fit { background: #FFFFFF; padding-top: var(--h-pad); padding-bottom: var(--h-pad); }
.p-fit .h-lede { margin-top: 20px; }
.p-fit-label { display: block; font-weight: var(--weight-semibold); padding-bottom: 14px; }
.p-fit-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--ink-150); }
.p-fit-list li { display: flex; align-items: center; gap: 20px; padding: 20px 0; border-top: 1px solid var(--ink-150); }
.p-fit-check {
  width: 34px; height: 34px; flex: none; border-radius: var(--radius-pill);
  background: var(--coral-500); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
}
.p-fit-list p { margin: 0; font-size: 20px; line-height: 1.45; font-weight: var(--weight-medium); letter-spacing: -0.01em; color: var(--navy-700); }

/* ---------------------------------------------------------------- FAQ
   Native <details name="poc-faq"> accordion: one open at a time, works
   without JS. The intro comes first in the DOM (mobile order) and moves to
   the right column on desktop, as in the design. */
.p-faq { background: var(--bg); padding-top: var(--h-pad); padding-bottom: var(--h-pad); }
.p-faq-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(40px, 5.5vw, 80px); align-items: start; }
.p-faq-intro { grid-column: 2; grid-row: 1; }
.p-faq-list { grid-column: 1; grid-row: 1; border-bottom: 1px solid var(--ink-150); }
.p-faq .h-title { font-size: clamp(34px, 3.6vw, 48px); }
.p-faq-item { border-top: 1px solid var(--ink-150); }
.p-faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 0; min-height: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.p-faq-item summary::-webkit-details-marker { display: none; }
.p-faq-q { font-size: 19px; line-height: 1.35; letter-spacing: -0.01em; font-weight: var(--weight-semibold); color: var(--navy-700); }
.p-faq-icon {
  position: relative; width: 32px; height: 32px; flex: none; border-radius: var(--radius-pill);
  background: var(--coral-100); color: var(--coral-press);
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.p-faq-icon::before, .p-faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px;
  margin: -1px 0 0 -6px; border-radius: 2px; background: currentColor;
  transition: transform var(--duration-fast) var(--ease-out);
}
.p-faq-icon::after { transform: rotate(90deg); }
.p-faq-item summary:hover .p-faq-icon { background: var(--coral-200); }
.p-faq-item[open] .p-faq-icon { background: var(--coral-500); color: #FFFFFF; }
.p-faq-item[open] .p-faq-icon::after { transform: rotate(0deg); }
.p-faq-item p { margin: 0; padding: 0 56px 24px 0; font-size: var(--text-base); line-height: 1.6; color: var(--ink-600); }

/* ---------------------------------------------------------------- closing band: "how we get started" */
.p-start { margin: 22px 0 0; padding: 0; list-style: none; }
.p-start li { display: flex; align-items: flex-start; gap: 14px; padding: 18px 0; border-top: 1px solid var(--ink-150); }
.p-start li > div { display: flex; flex-direction: column; gap: 4px; }
.p-start-num { flex: none; margin-top: 2px; font-family: var(--font-mono); font-size: 13px; font-weight: var(--weight-semibold); color: var(--coral-press); }
.p-start-what { font-size: 17px; font-weight: var(--weight-semibold); color: var(--navy-700); }
.p-start-desc { font-size: 15px; line-height: 1.55; color: var(--ink-600); }

/* ---------------------------------------------------------------- run log: agent steps variant */
.p-runlog-step {
  display: flex; align-items: center; gap: 14px; padding: 12px 0;
  border-bottom: 1px solid var(--ink-100);
  font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--navy-700);
}
.p-runlog-mark {
  width: 22px; height: 22px; flex: none; border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center;
}
.p-runlog-step.is-done .p-runlog-mark { background: var(--green-500); color: #FFFFFF; }
.p-runlog-step.is-flag { color: var(--coral-press); }
.p-runlog-step.is-flag .p-runlog-mark { border: 2px solid var(--coral-500); background: var(--coral-50); }
.p-runlog-step.is-next { color: var(--fg-4); }
.p-runlog-step.is-next .p-runlog-mark { border: 2px solid var(--ink-200); }
.p-runlog-badge--coral { background: var(--coral-50); color: var(--coral-press); }
.p-runlog-badge--coral span { background: var(--coral-500); }

.p-lede-wide { max-width: 820px; }

/* ---------------------------------------------------------------- what we build: 3 kinds */
.p-kinds { background: #FFFFFF; padding-top: var(--h-pad); padding-bottom: var(--h-pad); }
.p-kinds-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p-kind { padding: 0 40px; border-left: 1px solid var(--ink-150); display: flex; flex-direction: column; }
.p-kind:first-child { padding-left: 0; border-left: 0; }
.p-kind:last-child { padding-right: 0; }
.p-kind-head { display: flex; align-items: baseline; gap: 14px; }
.p-kind-num { font-size: clamp(48px, 4.4vw, 64px); line-height: 1; font-weight: var(--weight-bold); letter-spacing: -0.05em; color: var(--navy-500); }
.p-kind-tag {
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-mono-label); text-transform: uppercase; color: var(--coral-press);
}
.p-kind h3 { margin: 28px 0 0; min-height: 2.36em; font-size: 26px; line-height: 1.18; letter-spacing: -0.03em; font-weight: var(--weight-bold); color: var(--navy-700); }
.p-kind > p { margin: 12px 0 0; font-size: var(--text-base); line-height: 1.6; color: var(--ink-600); }
.p-kind ul { margin: 24px 0 0; padding: 0; list-style: none; }
.p-kind li {
  display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--ink-150);
  font-size: var(--text-base); line-height: 1.45; color: var(--ink-700);
}
.p-kind li::before { content: ""; width: 14px; height: 2px; flex: none; background: var(--coral-500); }

/* ---------------------------------------------------------------- safeguards */
.p-guards { background: #E8EDF5; padding-top: var(--h-pad); padding-bottom: var(--h-pad); }
.p-guards-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.p-guard {
  min-height: 300px; padding: 28px 22px; border-radius: 22px;
  background: #FFFFFF; border: 1px solid var(--ink-150);
}
.p-guard-tag { font-family: var(--font-mono); font-size: 13px; font-weight: var(--weight-semibold); letter-spacing: 0.08em; color: var(--coral-press); }
.p-guard h3 { margin: 16px 0 0; font-size: 20px; line-height: 1.3; letter-spacing: -0.02em; font-weight: var(--weight-semibold); color: var(--navy-700); }
.p-guard p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-600); }

/* ---------------------------------------------------------------- how it gets built (homepage .h-tl timeline, played once by home.js) */
.p-built { background: #FFFFFF; padding-top: var(--h-pad); padding-bottom: var(--h-pad); }
.p-built-tl { margin-top: 0; }
.p-built-tl .h-tl-what { font-size: 20px; }
.p-built-tl .h-tl-body p { font-size: var(--text-base); line-height: 1.6; }
.p-built-tl .h-tl-body { padding-bottom: 28px; }
.p-built-tl .h-tl-item:last-child .h-tl-body { padding-bottom: 0; }

/* white variant of the keep list band, for pages where it follows a coral-50 band */
.p-keep--white { background: #FFFFFF; }
/* proof cards without a quote: the read link sits at the card's foot */
.p-proof-stats + .p-proof-link { margin-top: auto; }

/* ================================================================ FORWARD-DEPLOYED PAGE
   Hero city illustration, engagement types, and the "We Ship Fast" kanban
   board. Motion is driven by fde.js; everything renders static without it. */

/* ---------------------------------------------------------------- hero: city illustration */
.p-trust-plain { color: var(--ink-500); }
.p-city-stage { position: relative; min-height: 520px; display: flex; align-items: flex-end; justify-content: center; }
.p-city-glow {
  position: absolute; width: 420px; height: 420px; top: 30px; left: 50%; margin-left: -230px;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle, rgba(247, 87, 75, 0.16) 0%, rgba(247, 87, 75, 0) 70%);
}
.p-city { position: relative; width: 380px; height: 500px; margin-bottom: 18px; flex: none; }
.p-city-left {
  position: absolute; left: 0; bottom: 10px; width: 120px; height: 250px; padding: 20px 14px;
  border-radius: 6px 6px 0 0; background: #1B3753;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; align-content: start;
}
.p-win-dim { display: block; height: 14px; border-radius: 2px; background: rgba(255, 255, 255, 0.07); }
.p-win-dim.is-lit { background: rgba(255, 233, 168, 0.55); }
.p-city-right { position: absolute; right: 8px; bottom: 10px; width: 64px; height: 170px; border-radius: 4px 4px 0 0; background: #2A4A6B; }
.p-tower { position: absolute; left: 90px; bottom: 10px; width: 236px; display: flex; flex-direction: column; align-items: center; }
.p-mast { position: relative; width: 4px; height: 44px; background: #1B3753; }
.p-beacon {
  position: absolute; left: -4px; top: -6px; width: 12px; height: 12px; border-radius: var(--radius-pill);
  background: var(--coral-500); box-shadow: 0 0 14px rgba(247, 87, 75, 0.9);
}
.p-tower-top {
  position: relative; width: 156px; padding: 16px 16px 14px; border-radius: 6px 6px 0 0;
  background: var(--navy-500); box-shadow: inset -14px 0 0 rgba(0, 0, 0, 0.22);
}
.p-chimney { position: absolute; right: 18px; top: -26px; width: 40px; height: 26px; border-radius: 4px 4px 0 0; background: #1B3753; }
.p-puffs { position: absolute; right: 24px; top: -26px; width: 30px; height: 1px; }
.p-puffs span {
  position: absolute; left: 0; bottom: 0; width: 30px; height: 30px; border-radius: var(--radius-pill);
  background: rgba(27, 55, 83, 0.22); opacity: 0;
}
.p-win-grid { display: grid; gap: 10px; }
.p-win-grid--top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.p-win-grid--body { position: relative; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 8px; }
.p-win {
  display: block; height: 18px; border-radius: 2px; background: rgba(255, 255, 255, 0.08);
  transition: background 1200ms ease, box-shadow 1200ms ease;
}
.p-win.is-lit { background: #FFE9A8; box-shadow: 0 0 10px rgba(255, 233, 168, 0.45); }
.p-win.is-hot { background: var(--coral-500); box-shadow: 0 0 12px rgba(247, 87, 75, 0.55); }
.p-tower-ledge { width: 236px; height: 10px; background: #00113A; }
.p-tower-body {
  position: relative; width: 236px; padding: 20px 18px 16px; background: var(--navy-500);
  background-image: repeating-linear-gradient(to bottom, transparent 0 33px, rgba(255, 255, 255, 0.06) 33px 34px);
  box-shadow: inset -18px 0 0 rgba(0, 0, 0, 0.22), 0 30px 60px rgba(0, 22, 64, 0.22);
}
.p-awning { position: relative; margin: 20px auto 0; width: 150px; height: 8px; border-radius: 4px 4px 0 0; background: var(--coral-500); }
.p-door {
  position: relative; margin: 0 auto; width: 132px; height: 48px; padding: 6px 6px 0; background: #00113A;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px;
}
.p-door span { background: rgba(191, 211, 242, 0.55); }
.p-door span:nth-child(2) { background: rgba(255, 233, 168, 0.75); }
.p-city-ground { position: absolute; left: -40px; right: -40px; bottom: 0; height: 10px; border-radius: var(--radius-pill); background: #E3E6EC; }
.p-toast {
  position: absolute; left: 196px; top: 70px; z-index: 3; padding: 12px 16px;
  background: #FFFFFF; border: 1px solid var(--ink-150); border-radius: 14px;
  box-shadow: 0 18px 36px rgba(0, 22, 64, 0.18);
  display: flex; align-items: center; gap: 10px;
  transition: transform 350ms cubic-bezier(.2, .8, .2, 1), opacity 350ms ease;
}
.p-toast.is-hidden { opacity: 0; transform: translateY(8px); }
.p-toast-check {
  width: 22px; height: 22px; flex: none; border-radius: var(--radius-pill); background: var(--green-500); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
}
.p-toast-msg { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: 0.04em; color: var(--navy-700); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .p-beacon { animation: p-beacon 2.1s steps(1, end) infinite; }
  .p-puffs span { animation: p-puff 3.4s linear infinite; }
  .p-puffs span:nth-child(2) { animation-delay: -0.68s; }
  .p-puffs span:nth-child(3) { animation-delay: -1.36s; }
  .p-puffs span:nth-child(4) { animation-delay: -2.04s; }
  .p-puffs span:nth-child(5) { animation-delay: -2.72s; }
}
@media (prefers-reduced-motion: reduce) {
  .p-puffs span:nth-child(1) { opacity: 0.6; transform: translate(4px, -30px) scale(0.75); }
  .p-puffs span:nth-child(2) { opacity: 0.4; transform: translate(12px, -70px) scale(1.05); }
}
@keyframes p-beacon { 0% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes p-puff {
  0%   { opacity: 0.85; transform: translate(0, 0) scale(0.45); }
  25%  { opacity: 0.64; transform: translate(16px, -38px) scale(0.83); }
  50%  { opacity: 0.42; transform: translate(10px, -75px) scale(1.2); }
  75%  { opacity: 0.21; transform: translate(12px, -112px) scale(1.58); }
  100% { opacity: 0; transform: translate(26px, -150px) scale(1.95); }
}

/* ---------------------------------------------------------------- engagement types */
.p-types { background: #FFFFFF; padding-top: var(--h-pad); padding-bottom: var(--h-pad); }
.p-types-list { margin-top: 48px; border-top: 1px solid var(--ink-150); }
.p-type {
  display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 48px; align-items: start;
  padding: 36px 0; border-bottom: 1px solid var(--ink-150);
}
.p-type-name { display: flex; align-items: flex-start; gap: 20px; }
.p-type-name h3 { margin: 6px 0 0; font-size: 26px; line-height: 1.18; letter-spacing: -0.03em; font-weight: var(--weight-bold); color: var(--navy-700); }
.p-type-desc { margin: 0; padding-top: 6px; font-size: 17px; line-height: 1.6; color: var(--ink-600); }
.p-type-points { margin: 0; padding: 6px 0 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.p-type-points li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--ink-700); }
.p-type-points li::before { content: ""; width: 14px; height: 2px; flex: none; margin-top: 0.72em; background: var(--coral-500); }

/* ---------------------------------------------------------------- we ship fast: kanban board
   Default (no JS, reduced width): the 8 cards are a plain grid, fully shown.
   .is-live (fde.js, board >= 900px wide): columns + absolutely placed cards
   that a "Pulse engineer" cursor drags across, once, on first view. */
.p-ship { background: #FFFFFF; padding-top: var(--h-pad); padding-bottom: var(--h-pad); }
.p-ship-head { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 5.5vw, 80px); align-items: end; }
.p-ship-head .h-lede { margin: 0; }
.p-board { position: relative; margin-top: 48px; padding: 20px; border-radius: 28px; background: var(--ink-100); overflow: hidden; }
.p-board-cols, .p-cursor { display: none; }
.p-cards { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.p-card {
  padding: 12px 14px; border-radius: 12px; background: #FFFFFF; border-top: 4px solid #C9CFDC;
  box-shadow: 0 1px 0 rgba(0, 22, 64, 0.06), 0 4px 10px rgba(0, 22, 64, 0.05);
  display: flex; flex-direction: column; overflow: hidden;
}
.p-card-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.p-card-id { font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: var(--weight-semibold); letter-spacing: 0.08em; color: var(--fg-4); }
.p-card-status {
  display: none; align-items: center; height: 20px; padding: 0 8px; border-radius: var(--radius-pill);
  background: #E8EDF5; color: #1B3753;
  font-family: var(--font-mono); font-size: 10px; font-weight: var(--weight-semibold); letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 400ms ease, color 400ms ease;
}
.p-card-title { flex: none; display: block; margin-top: 8px; font-size: var(--text-base); line-height: 1.3; font-weight: var(--weight-bold); letter-spacing: -0.01em; color: var(--navy-700); }
.p-card-desc { flex: none; margin: 8px 0 0; font-size: var(--text-sm); line-height: 1.5; color: var(--ink-600); transition: opacity 350ms ease; }
.p-card-foot { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--fg-4); transition: opacity 350ms ease; }
.p-av { width: 20px; height: 20px; border-radius: var(--radius-pill); }
.p-av--navy { background: var(--navy-500); }
.p-av--coral { margin-left: -14px; border: 2px solid #FFFFFF; background: var(--coral-500); }

.p-board.is-live { height: 794px; padding: 0; }
.p-board.is-live .p-board-cols { display: grid; position: absolute; inset: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.p-board-col { border-radius: 18px; background: rgba(255, 255, 255, 0.45); height: 100%; padding: 0 14px; display: flex; align-items: flex-start; justify-content: space-between; }
.p-board-col--active { background: #FFFFFF; }
.p-board-label {
  height: 44px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-mono-label); text-transform: uppercase; color: var(--navy-700);
}
.p-dot { width: 8px; height: 8px; border-radius: var(--radius-pill); }
.p-dot--backlog { background: #8C9BB3; }
.p-dot--progress { background: var(--coral-500); }
.p-dot--review { background: var(--coral-300); }
.p-dot--done { background: var(--green-500); }
.p-board-count {
  margin-top: 11px; min-width: 24px; height: 22px; padding: 0 7px; border-radius: var(--radius-pill);
  background: var(--ink-100); color: var(--ink-500);
  font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: var(--weight-semibold);
  display: flex; align-items: center; justify-content: center;
}
.p-board.is-live .p-cards { display: block; }
.p-board.is-live .p-card {
  position: absolute; left: 0; top: 0; z-index: 2;
  transition: left 560ms cubic-bezier(.45, 0, .25, 1), top 560ms cubic-bezier(.45, 0, .25, 1),
              height 450ms ease, transform 180ms ease, box-shadow 250ms ease, border-color 400ms ease;
}
.p-board.is-live .p-card-status { display: inline-flex; }
.p-board.is-live .p-card-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-board.is-live .p-card:not(.is-big) .p-card-desc,
.p-board.is-live .p-card:not(.is-big) .p-card-foot { opacity: 0; }
.p-board.is-live .p-card.is-big { z-index: 3; box-shadow: 0 18px 36px rgba(0, 22, 64, 0.14); }
.p-board.is-live .p-card-foot { margin-top: auto; }
.p-board.is-live .p-card.is-lifted { z-index: 20; transform: rotate(2.5deg) scale(1.04); box-shadow: 0 30px 50px rgba(0, 22, 64, 0.28); }
.p-card.s1 { border-top-color: var(--coral-500); }
.p-card.s1 .p-card-status { background: var(--coral-100); color: var(--coral-press); }
.p-card.s2 { border-top-color: var(--coral-300); }
.p-card.s2 .p-card-status { background: #FFF1EC; color: var(--coral-press); }
.p-card.s3 { border-top-color: var(--green-500); }
.p-card.s3 .p-card-status { background: var(--green-50); color: var(--h-green); }
.p-board.is-live .p-cursor {
  display: block; position: absolute; left: 0; top: 0; z-index: 30; pointer-events: none;
  transition: left 560ms cubic-bezier(.45, 0, .25, 1), top 560ms cubic-bezier(.45, 0, .25, 1), opacity 300ms ease;
}
.p-cursor.is-off { opacity: 0; }
.p-cursor svg { position: absolute; left: -3px; top: -2px; transform-origin: 3px 2px; transition: transform 180ms ease; filter: drop-shadow(0 3px 6px rgba(0, 22, 64, 0.35)); }
.p-cursor-grab {
  position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: var(--radius-pill);
  background: rgba(247, 87, 75, 0.35); opacity: 0; transform: scale(0.4); transition: transform 180ms ease, opacity 180ms ease;
}
.p-cursor.is-grab .p-cursor-grab { opacity: 1; transform: scale(1); }
.p-cursor.is-grab svg { transform: scale(0.88); }
.p-cursor-tag {
  position: absolute; left: 20px; top: 24px; display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border-radius: 999px 999px 999px 4px; background: var(--coral-cta); color: #FFFFFF;
  font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: var(--weight-semibold); letter-spacing: 0.04em; white-space: nowrap;
  box-shadow: 0 6px 14px rgba(199, 58, 48, 0.3);
}
@media (prefers-reduced-motion: reduce) {
  .p-board.is-live .p-card, .p-board.is-live .p-cursor, .p-toast, .p-win { transition: none; }
}

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
  .p-step-dot, .p-step-line, .p-step-body, .p-go-pill, .p-faq-icon,
  .p-faq-icon::before, .p-faq-icon::after { transition: none; }
}

/* ================================================================ responsive */
@media (max-width: 1280px) {
  .p-guards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .p-type { grid-template-columns: 1fr 1fr; gap: 20px 40px; }
  .p-type-points { grid-column: 1 / -1; }
  .p-guards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-guard { min-height: 0; }
  .p-why-grid { grid-template-columns: 1fr; }
  .p-why-card { min-height: 0; }
  .p-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 0; }
  .p-step--go { padding-right: 40px; }
  .p-step-line { display: none; }
  .p-proof-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .p-city-stage { min-height: 0; padding-top: 12px; }
  .p-city-stage { overflow: hidden; }
  .p-city { zoom: 0.82; }
  .p-ship-head { grid-template-columns: 1fr; gap: 20px; }
  .p-kinds-grid { grid-template-columns: 1fr; gap: 48px; }
  .p-kind, .p-kind:first-child, .p-kind:last-child { padding: 0; border-left: 0; }
  .p-kind h3 { min-height: 0; }
  .p-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .p-runlog-stage { min-height: 0; justify-content: center; padding: 24px 0 8px; }
  .p-runlog-back { top: 0; width: 70%; height: 85%; }
  .p-runlog { margin: 40px 24px 0 0; }
  .p-split, .p-faq-grid { grid-template-columns: 1fr; }
  .p-faq-intro, .p-faq-list { grid-column: 1; grid-row: auto; }
  .p-days-grid { grid-template-columns: 1fr; gap: 48px; }
  .p-day { padding-right: 0; }
  .p-day--two { padding-left: 0; padding-top: 48px; border-left: 0; border-top: 2px solid var(--coral-500); }
}

@media (max-width: 768px) {
  .p-hero-sub { font-size: 17px; }
  .p-steps { grid-template-columns: 1fr; gap: 32px; }
  .p-step, .p-step--go { padding-right: 0; flex-direction: row; gap: 20px; }
  .p-step-rail { min-height: 0; align-items: flex-start; }
  .p-step-dot { width: 48px; height: 48px; font-size: 16px; }
  .p-step h3 { margin-top: 8px; font-size: 20px; }
  .p-step--go { flex-direction: column; gap: 0; }
  .p-step--go p { margin-top: 14px; }
  .p-day-name { font-size: 36px; }
  .p-dstep h3 { font-size: 22px; }
  .p-dstep p { font-size: var(--text-base); }
  .p-proof-card { padding: 28px 24px; border-radius: 22px; }
  .p-proof-card h3 { font-size: 24px; }
  .p-proof-num { font-size: 24px; }
  .p-fit-list p { font-size: 17px; }
  .p-faq-q { font-size: 17px; }
  .p-faq-item p { padding-right: 0; }
}

@media (max-width: 640px) {
  .p-guards-grid { grid-template-columns: 1fr; }
  .p-type { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
  .p-type-points { grid-template-columns: 1fr; gap: 12px; }
  .p-cards { grid-template-columns: 1fr; }
  .p-board { padding: 14px; border-radius: 22px; }
}

@media (max-width: 480px) {
  .p-city { zoom: 0.72; }
  .p-runlog { margin-right: 0; padding: 22px 20px; }
  .p-runlog-v { font-size: 13px; }
  .p-proof-stats { gap: 10px; }
  .p-proof-num { font-size: 21px; }
  .p-hero-ctas .h-btn { flex: 1 1 100%; }
}

/* ================================================================ full-screen bands
   Same rule as the homepage (home.css): above 900px every band is at least
   one screen tall below the sticky nav, content centered vertically. */
@media (min-width: 901px) {
  .p-hero, .p-why, .p-process, .p-days, .p-keep, .p-proof, .p-fit, .p-faq,
  .p-kinds, .p-guards, .p-built, .p-types, .p-ship {
    min-height: var(--h-screen);
    display: flex; flex-direction: column; justify-content: center;
  }
  .p-hero > .wrap, .p-why > .wrap, .p-process > .wrap, .p-days > .wrap,
  .p-keep > .wrap, .p-proof > .wrap, .p-fit > .wrap, .p-faq > .wrap,
  .p-kinds > .wrap, .p-guards > .wrap, .p-built > .wrap,
  .p-types > .wrap, .p-ship > .wrap { width: 100%; }
}

/* ================================================================ tablet + phone polish
   <=1024px only; desktop service pages are untouched. */
@media (max-width: 1024px) {
  .p-hero h1, .h-title, .p-why-title, .p-days-title, .p-kind h3, .p-proof-card h3 { text-wrap: balance; }
  .p-city-ground { left: -20px; right: -20px; }
}
@media (min-width: 641px) and (max-width: 1024px) {
  /* 5 safeguard cards in 2 columns: the last one spans the row */
  .p-guards-grid > .p-guard:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  /* room above the building for its smoke, which the stage clips */
  .p-city-stage { padding-top: 72px; }
}
