/* Platform page (platform-test-temp), on the homepage's look
   (src/layouts/Layout.astro loads the global stylesheets first).

   Reused as-is: the dark hero (.hero-section--sandbox, .hero-title,
   .sw-eyebrow, .hero-actions), section headers (.section-intro, .eyebrow,
   .section-heading), the highlight band and the closing .demo-section. This
   file adds the platform model diagram (grey shell, white
   tiers, Citron border, partner tiles), the pillar blocks over a dark stage,
   the render grid, the agent-run strip, the security row and the release
   cards, and the scroll unfold. Type comes from the --type-* tokens only. Viewports: mobile < 600,
   tablet 600-1023, desktop >= 1024. */

.pf {
  --pf-line: rgba(32, 31, 29, .12);
  --pf-shell: #e7e4e1;
  --pf-ink: var(--kit-text-strong);
  --pf-muted: var(--kit-text-medium);
  --pf-teal: var(--kit-teal-medium);
  --pf-citron: var(--kit-citron-highlight);
  --pf-dark: var(--kit-teal-dark);
  --pf-on-dark-line: rgba(201, 254, 255, .18);
}

.pf .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
  color: currentColor;
}

.pf-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

/* ---------- Hero ---------- */

.pf-hero.hero-section {
  max-width: none;
  margin: 0;
  padding: 0;
}

.pf-hero .hero-inner {
  box-sizing: border-box;
  max-width: calc(var(--l-content) + 2 * var(--l-gutter));
  margin: 0 auto;
  padding: 88px var(--l-gutter) 72px;
}

.pf-hero .sw-eyebrow { margin: 0 0 20px; }
.pf-hero .hero-actions { margin-top: 32px; }

@media (max-width: 599px) {
  .pf-hero .hero-inner { padding-top: 56px; padding-bottom: 48px; }
}

/* ---------- Section surfaces ---------- */

/* Grounds come from the shared surfaces (site-sections.css): the
   orchestration diagram on .surface-dots, Security as the one .surface-dark
   band, Releases on the .surface-wash. Only the plain Ivory Tint of the
   features section is set here. */

/* ---------- Agentic orchestration ----------
   The four ways in, flowing into the process. One copy of the four on
   screen at a time. Each way has its own colour (--way), shared by its
   card mark, its wire, its lane and its marks at each step, so the eye can
   follow a way from its card down the process. The wires (SVG, drawn by
   js/platform.js) are fine 1.5px lines at right angles; a pulse runs down
   each one into its lane when it draws in. Hovering or focusing a card lights
   its lane and the capabilities it can use, and dims the rest.
   Below the governance panel the four become one quiet line down the left;
   at each step a small 2 x 2 node shows which ways take part (lit in their
   colour, faint if not). --gutter is that line's column, --pad the panel
   padding. */

.pf-orch {
  --pad: 14px;
  --ico: 16px;
  --gutter: calc(var(--ico) * 2 + 12px);
  --gap: 10px;
  --node-y: 18px;
  --way-agents: var(--kit-teal-medium);
  --way-systems: var(--color-citron-citron-medium);
  --way-tools: var(--color-magenta-medium);
  --way-people: var(--kit-ivory-dark);
  position: relative;
}

.pf-feat-section {
  --way-agents: var(--kit-teal-medium);
  --way-systems: var(--color-citron-citron-medium);
  --way-tools: var(--color-magenta-medium);
  --way-people: var(--kit-ivory-dark);
}

.pf-feat-section [data-way="agents"] { --way: var(--way-agents); }
.pf-feat-section [data-way="systems"] { --way: var(--way-systems); }
.pf-feat-section [data-way="tools"] { --way: var(--way-tools); }
.pf-feat-section [data-way="people"] { --way: var(--way-people); }

.pf-orch [data-way="agents"] { --way: var(--way-agents); }
.pf-orch [data-way="systems"] { --way: var(--way-systems); }
.pf-orch [data-way="tools"] { --way: var(--way-tools); }
.pf-orch [data-way="people"] { --way: var(--way-people); }

/* ---- the four cards ---- */

.pf-ways {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* A way in: its access label (small icon in the way's colour, the same icon
   the process nodes use), name, one line, and the partner logos that carry
   the brand. No big icon tile: the logos already do that job. The card is
   one block; its wire leaves from the foot. Layout per viewport:
   phone: label, name, logos (2 x 2)
   tablet: label + name left, logos right, line below (2 x 2)
   desktop, wide: label, name, line, logos at the foot (4 across) */
.pf-way {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "via" "name" "logos";
  align-content: start;
  min-width: 0;
  padding: 14px 14px 16px;
  border-radius: 12px;
  background: var(--kit-white);
  box-shadow: 0 0 0 1px var(--kit-ivory-medium);
  outline: none;
  transition: box-shadow .2s ease;
}
.pf-way:hover,
.pf-way:focus-visible { box-shadow: 0 0 0 1px color-mix(in srgb, var(--way) 55%, transparent), 0 8px 24px rgba(13, 40, 40, .06); }

.pf-way-via {
  grid-area: via;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--way);
}
.pf-way-via .icon { flex: none; width: 14px; height: 14px; }

.pf-way-name {
  grid-area: name;
  margin: 6px 0 0;
  font-size: var(--type-h5);
  line-height: var(--type-h5-lh);
  letter-spacing: 0;
  font-weight: 500;
  color: var(--pf-ink);
}

.pf-way-line {
  grid-area: line;
  display: none;
  margin: 8px 0 0;
  font-size: var(--type-small);
  line-height: var(--type-body-lh);
  color: var(--pf-muted);
}

.pf-logos { display: flex; flex-wrap: wrap; gap: 4px; }
.pf-way .pf-logos { grid-area: logos; align-self: end; margin-top: 12px; }

.pf .pf-logo img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  box-shadow: 0 0 0 1px var(--pf-line);
}

.pf-api {
  display: inline-grid;
  place-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: var(--type-label-s);
  letter-spacing: var(--type-label-tracking);
  color: var(--pf-ink);
  box-shadow: inset 0 0 0 1px var(--pf-line);
}

/* ---- the wires, cards to lanes ---- */

.pf-wires {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 56px;
  overflow: visible;
}

.pf-wires path {
  fill: none;
  stroke: var(--way);
  stroke-width: 1;
  stroke-opacity: .55;
  stroke-linejoin: round;
  transition: opacity .25s ease;
}

.pf-wires .pf-port { fill: var(--way); }
.pf-wires .pf-land { fill: var(--way); }
.pf-wires .pf-pulse { fill: var(--way); opacity: 0; }
.pf-wires.is-pulsing .pf-pulse { opacity: 1; }

.pf-unfold .pf-wires { opacity: 1 !important; transform: none !important; }
.pf-unfold .pf-wires path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.45, 0, .2, 1), opacity .25s ease; }
.pf-unfold .pf-wires path:nth-of-type(2) { transition-delay: .12s, 0s; }
.pf-unfold .pf-wires path:nth-of-type(3) { transition-delay: .24s, 0s; }
.pf-unfold .pf-wires path:nth-of-type(4) { transition-delay: .36s, 0s; }
.pf-unfold .pf-wires.is-in path { stroke-dashoffset: 0; }

/* ---- the frame: a flat hairline with the homepage's corner marks ---- */

.pf-orch { --rail: 0px; --aside: 100%; }

.pf-proc-frame {
  position: relative;
  padding: var(--pad);
  border: 1px solid #D9D5D2;
  border-radius: 4px;
}

/* ---- the layer cake (the homepage diagram's structure) ----
   A rail of stage labels (00 Governance, 01 Creation, 02 Assembly, 03
   Activation) beside one citron governance frame that holds the controls
   and the three phase rows. Each phase row: its steps as cells (name, the
   ways that reach it, first features) and a partner panel. Phones and
   tablets: the rail labels head their rows inside the frame. Desktop and
   wide: the rail stands to the left, the panel to the right. Grid rows are
   set explicitly so the frame can span them all. */

.pf-cake {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.pf-cake-frame {
  grid-column: 1;
  grid-row: 1 / span 8;
  border-radius: 12px;
  background: var(--kit-white);
  box-shadow: inset 0 0 0 1.5px var(--pf-citron), 0 0 0 4px rgba(255, 250, 102, .3);
}

.pf-rail--gov { grid-row: 1; }
.pf-gov { grid-row: 2; }
.pf-rail--creation { grid-row: 3; }
.pf-phase--creation { grid-row: 4; }
.pf-rail--assembly { grid-row: 5; }
.pf-phase--assembly { grid-row: 6; }
.pf-rail--activation { grid-row: 7; }
.pf-phase--activation { grid-row: 8; }
.pf-cake > :not(.pf-cake-frame) { position: relative; grid-column: 1; min-width: 0; }

/* the stage label: mono, with its number on a citron badge */
.pf-rail {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 16px 16px 0;
  color: var(--pf-ink);
}
.pf-rail--gov span,
.pf-rail-num span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 18px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 3px;
  color: var(--kit-teal-dark);
  background: var(--pf-citron);
}
.pf-rail:not(.pf-rail--gov) { margin: 0 16px; padding: 16px 0 0; border-top: 1px solid var(--kit-ivory-medium); }

/* the three phases each carry an accent: Creation teal, Assembly citron,
   Activation magenta (rail, features header, nav) */
.pf-ph--creation { --ph: var(--kit-teal-medium); --ph-tint: var(--kit-teal-highlight); }
.pf-ph--assembly { --ph: var(--color-citron-citron-medium); --ph-tint: var(--kit-citron-highlight); }
.pf-ph--activation { --ph: var(--color-magenta-medium); --ph-tint: var(--color-magenta-tint); }

/* a phase's rail: its icon, number, name and capability heading. Phones
   and tablets: a header row above the phase; desktop: stacked in the rail */
.pf-rail--phase {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-areas: "icon num" "icon name" "icon label";
  column-gap: 14px;
  align-items: center;
}
.pf-rail-icon {
  grid-area: icon;
  align-self: start;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--kit-white);
  box-shadow: inset 0 0 0 1px var(--kit-ivory-medium);
}
.pf-rail-icon .icon { width: 30px; height: 30px; }
.pf-rail-num { grid-area: num; margin: 0; }
.pf-rail--phase .pf-rail-num span { min-width: 0; padding: 0; color: var(--pf-muted); background: none; }
.pf-rail-name {
  grid-area: name;
  margin: 2px 0 0;
  font-size: var(--type-h4);
  font-weight: var(--type-heading-weight);
  line-height: var(--type-h4-lh);
  letter-spacing: var(--type-h4-ls);
  color: var(--pf-ink);
}
.pf-rail-label {
  grid-area: label;
  margin: 2px 0 0;
  font-size: var(--type-caption);
  line-height: 1.4;
  color: var(--pf-muted);
}

/* ---- 00 Governance ---- */

.pf-gov { padding: 12px 16px 18px; }
.pf-gov-head { display: flex; align-items: center; gap: 12px; }
.pf-gov-head img { width: 28px; height: 28px; border-radius: 6px; flex: none; }
.pf-gov-title {
  margin: 0;
  font-size: var(--type-h4);
  line-height: var(--type-h4-lh);
  letter-spacing: var(--type-h4-ls);
  font-weight: 500;
  color: var(--pf-ink);
}

/* the controls as an even grid: phones 2 columns, tablet and desktop 3,
   wide 6, as plain icon-and-text lines */
.pf-gov-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--kit-ivory-medium);
}
.pf-gov-group { min-width: 0; }
.pf-gov-group .pf-label { margin-bottom: 10px; color: var(--pf-ink); }
.pf-gov-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pf-gov-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  font-size: var(--type-caption);
  font-weight: 500;
  line-height: 1.3;
  color: var(--pf-ink);
}
.pf-gov-list .icon {
  width: 20px;
  height: 20px;
  padding: 3px;
  box-sizing: border-box;
  flex: none;
  margin-top: -2px;
  border-radius: 5px;
  color: var(--kit-teal-dark);
  background: var(--pf-citron);
}

/* ---- a phase row ---- */

.pf-phase {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 10px 16px 16px;
}

.pf-phase-label { margin: 0 0 10px; color: var(--pf-ink); }

.pf-phase-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}

/* cells split by hairlines: each draws its left and top edge, and the
   container clips the ones on its outer edges */
.pf-cstep {
  min-width: 0;
  padding: 14px 0;
  box-shadow: -1px 0 0 var(--kit-ivory-medium), 0 -1px 0 var(--kit-ivory-medium);
}

.pf-cstep-head { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 8px; }
.pf-cstep-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: var(--type-h6);
  line-height: var(--type-h6-lh);
  font-weight: var(--type-subhead-weight);
  color: var(--pf-ink);
}
.pf-cstep-name a { color: inherit; text-decoration: none; }
.pf-cstep-name a:hover { color: var(--pf-teal); text-decoration: underline; text-underline-offset: 3px; }

.pf-cstep-line {
  margin: 4px 0 0;
  font-size: var(--type-caption);
  line-height: 1.45;
  color: var(--pf-muted);
}

.pf-cstep-feats {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.pf-cstep-feats li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: var(--type-caption);
  font-weight: 500;
  line-height: 1.35;
  color: var(--pf-ink);
  transition: opacity .2s ease;
}

.pf-cstep-more {
  display: inline-block;
  margin-top: 8px;
  font-size: var(--type-caption);
  font-weight: 500;
  color: var(--pf-teal);
  text-decoration: none;
}
.pf-cstep-more:hover { text-decoration: underline; text-underline-offset: 3px; }

.pf-loop {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
  font-size: var(--type-caption);
  font-weight: 500;
  color: var(--pf-teal);
}
.pf-loop .icon { width: 14px; height: 14px; }

/* the partner panel: logo tiles over short names, as on the homepage */
.pf-phase-aside {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 14px;
  border-radius: 8px;
  background: var(--kit-ivory-tint);
}
.pf-phase-apps ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 12px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pf-phase-apps .pf-logo--labelled { flex-direction: column; gap: 6px; width: 100%; text-align: center; }
.pf-phase-apps .pf-logo img { width: 28px; height: 28px; }

.pf-logo--labelled { gap: 6px; }
.pf-logo--labelled > span:not(.visually-hidden) {
  font-size: var(--type-caption);
  line-height: 1.3;
  font-weight: 500;
  color: var(--pf-ink);
}

/* ---- shared type: one mono label, one control pill ---- */

.pf-label { margin: 0; color: var(--pf-muted); }

/* governance controls: citron pills with a dark icon */
.pf-ctrls { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pf-ctrls li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  font-size: var(--type-caption);
  font-weight: 500;
  line-height: 1.3;
  color: var(--kit-teal-dark);
  background: var(--pf-citron);
}
.pf-ctrls .icon { width: 14px; height: 14px; color: var(--kit-teal-dark); }

/* ---- the context layer, below the frame ---- */

.pf-ctx-links { position: relative; height: 36px; }
.pf-ctx-links i { position: absolute; top: 4px; bottom: 4px; width: 0; border-left: 1px solid var(--kit-ivory-shade); }
.pf-ctx-links .is-down { left: 38%; }
.pf-ctx-links .is-up { left: 62%; border-left-style: dashed; }
.pf-ctx-links i::after {
  content: "";
  position: absolute;
  left: -4px;
  width: 6px;
  height: 6px;
  border: solid var(--kit-ivory-shade);
  border-width: 0 1px 1px 0;
}
.pf-ctx-links .is-down::after { bottom: 0; transform: rotate(45deg); }
.pf-ctx-links .is-up::after { top: 0; transform: rotate(-135deg); }

.pf-ctx {
  padding: 18px 16px;
  border-radius: 12px;
  outline: 1.5px dashed rgba(32, 31, 29, .28);
  outline-offset: -1.5px;
  background: var(--kit-white);
  text-align: center;
}
.pf-ctx .pf-phase-label { margin-bottom: 6px; }
.pf-ctx-title { margin: 0; font-size: var(--type-h6); line-height: var(--type-h6-lh); font-weight: 500; color: var(--pf-ink); }
.pf-ctx-kinds,
.pf-ctx-logos { display: flex; flex-wrap: wrap; justify-content: center; margin: 14px 0 0; padding: 0; list-style: none; }
.pf-ctx-kinds { gap: 6px; }
.pf-ctx-logos { gap: 10px 18px; }
.pf-ctx-kinds { gap: 0; color: var(--pf-muted); }
.pf-ctx-kinds li + li::before { content: "·"; padding: 0 10px; }
.pf-ctx-pii {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--kit-ivory-medium);
  font-size: var(--type-small);
  font-weight: 500;
  color: var(--pf-ink);
}
.pf-ctx-pii .icon { width: 20px; height: 20px; color: var(--pf-teal); }

.pf-proc-key {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: var(--type-label-s);
  letter-spacing: var(--type-label-tracking);
  text-transform: uppercase;
  color: var(--pf-muted);
}

/* ---- focus a way: hover or focus its card ---- */

.pf-orch[data-focus] .pf-wires path,
.pf-orch[data-focus] .pf-wires circle { opacity: .2; }
.pf-orch[data-focus="agents"] [data-way="agents"],
.pf-orch[data-focus="systems"] [data-way="systems"],
.pf-orch[data-focus="tools"] [data-way="tools"],
.pf-orch[data-focus="people"] [data-way="people"] { opacity: 1 !important; }
.pf-orch[data-focus] .pf-cstep-feats li { opacity: .3; }
.pf-orch[data-focus="agents"] .pf-cstep-feats li[data-ways~="agents"],
.pf-orch[data-focus="systems"] .pf-cstep-feats li[data-ways~="systems"],
.pf-orch[data-focus="tools"] .pf-cstep-feats li[data-ways~="tools"],
.pf-orch[data-focus="people"] .pf-cstep-feats li[data-ways~="people"] { opacity: 1; }

/* ---- the four viewports (css/layout.css) ---- */

@media (min-width: 600px) {
  .pf-orch { --pad: 20px; }
  .pf-ways { gap: 12px; }
  .pf-way {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "via logos" "name logos" "line line";
    column-gap: 16px;
    padding: 18px 20px 20px;
  }
  .pf-way .pf-logos { align-self: start; margin-top: 0; }
  .pf-way-name { margin-top: 4px; font-size: var(--type-h4); line-height: var(--type-h4-lh); letter-spacing: var(--type-h4-ls); }
  .pf-way-line { display: block; }
  .pf-wires { height: 48px; }
  .pf-rail { padding: 20px 24px 0; }
  .pf-rail:not(.pf-rail--gov) { margin: 0 24px; padding: 20px 0 0; }
  .pf-gov { padding: 14px 24px 22px; }
  .pf-gov-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 24px; }
  .pf-phase { padding: 12px 24px 22px; gap: 16px; }
  .pf-phase-steps { grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); }
  .pf-cstep { padding: 14px 18px 16px; }
  .pf-ctx { padding: 22px 24px; }
}

@media (min-width: 1024px) {
  .pf-orch { --pad: 28px; }
  .pf-orch { --rail: 140px; --aside: 232px; }
  .pf-ways, .pf-wires { margin-left: calc(var(--rail) + var(--pad) + 1px); margin-right: calc(var(--pad) + 1px); }
  .pf-ctx-links, .pf-ctx, .pf-proc-key { margin-left: var(--rail); }
  .pf-ways { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .pf-way {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "via" "name" "line" "logos";
    grid-template-rows: auto auto 1fr auto;
    padding: 20px 22px 22px;
  }
  .pf-way .pf-logos { align-self: end; margin-top: 16px; }
  .pf .pf-logo img { width: 24px; height: 24px; }
  .pf-api { height: 24px; }
  .pf-wires { height: 56px; width: calc(100% - var(--rail) - 2 * var(--pad) - 2px); }

  /* the rail stands left of the frame; one row per stage */
  .pf-cake { grid-template-columns: var(--rail) minmax(0, 1fr); }
  .pf-cake-frame { grid-column: 2; grid-row: 1 / span 4; }
  .pf-rail--gov, .pf-gov { grid-row: 1; }
  .pf-rail--creation, .pf-phase--creation { grid-row: 2; }
  .pf-rail--assembly, .pf-phase--assembly { grid-row: 3; }
  .pf-rail--activation, .pf-phase--activation { grid-row: 4; }
  .pf-cake > .pf-rail { grid-column: 1; }
  .pf-cake > .pf-gov, .pf-cake > .pf-phase { grid-column: 2; }
  .pf-rail,
  .pf-rail:not(.pf-rail--gov) { align-self: stretch; align-items: flex-start; margin: 0; padding: 26px 16px 0 0; border-top: 0; }
  .pf-rail:not(.pf-rail--gov) { box-shadow: 0 -1px 0 var(--kit-ivory-medium); }
  .pf-rail--phase { grid-template-columns: minmax(0, 1fr); grid-template-areas: "icon" "num" "name" "label"; align-content: start; row-gap: 6px; }
  .pf-rail--phase .pf-rail-icon { margin-bottom: 4px; }
  .pf-gov { padding: 22px 28px 24px; }
  /* desktop: the steps take the row's full width, one column each; the
     partner panel runs below them as a strip */
  .pf-phase { gap: 0; padding: 0; border-top: 1px solid var(--kit-ivory-medium); }
  .pf-phase-main { padding: 20px 28px 18px; }
  .pf-phase-main > .pf-phase-label { text-align: center; }
  .pf-phase-steps { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
  .pf-phase-aside { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 0 16px 16px; padding: 14px 18px; }
  .pf-phase-apps ul { display: flex; flex-wrap: wrap; gap: 10px 18px; }
  .pf-phase-apps .pf-logo--labelled { flex-direction: row; width: auto; text-align: left; }
  .pf-phase-apps .pf-logo img { width: 24px; height: 24px; }
  /* governance controls: three columns, two rows, split by hairlines */
  .pf-gov-groups { gap: 0; padding-top: 0; }
  .pf-gov-group { padding: 18px 24px; border-left: 1px solid var(--kit-ivory-medium); }
  .pf-gov-group:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
  .pf-gov-group:nth-child(n + 4) { border-top: 1px solid var(--kit-ivory-medium); padding-bottom: 0; }
  .pf-gov-group:nth-child(-n + 3) { padding-top: 16px; }
  .pf-gov-list { gap: 10px; }
  .pf-gov-list li { white-space: nowrap; align-items: center; }
  .pf-gov-list .icon { margin-top: 0; }
}

@media (min-width: 1440px) {
  .pf-orch { --pad: 32px; }
  .pf-orch { --rail: 172px; --aside: 256px; }

  .pf-ways { gap: 20px; }
  .pf-way { padding: 24px 26px 26px; }
  .pf-wires { height: 64px; }
  .pf-gov { padding: 24px 32px 26px; }
  /* wide: the partner panel stands to the right, as on the homepage */
  .pf-phase { grid-template-columns: minmax(0, 1fr) var(--aside); }
  .pf-phase-main { padding: 22px 28px 24px 32px; }
  .pf-phase-aside { display: grid; gap: 16px; margin: 14px 14px 14px 0; padding: 18px; }
  .pf-phase-aside .pf-phase-label { text-align: center; }
  .pf-phase-apps ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 4px; }
  .pf-phase-apps .pf-logo--labelled { flex-direction: column; width: 100%; text-align: center; }
  .pf-phase-apps .pf-logo img { width: 28px; height: 28px; }
  /* governance controls: all six groups in one row */
  .pf-gov-groups { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pf-gov-group,
  .pf-gov-group:nth-child(n) { padding: 16px 20px 0; border-top: 0; border-left: 1px solid var(--kit-ivory-medium); }
  .pf-gov-group:first-child { padding-left: 0; border-left: 0; }
  .pf-gov-group:last-child { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pf-way, .pf-cstep-feats li { transition: none; }
}

/* ---------- Platform features: the deep dive, step by step ----------
   A sticky nav through the nine steps, then one group per step: a header
   (number, name, line, the ways in as labelled pills with a tooltip), then
   its capabilities as cards in a sideways carousel. A card is one piece: a
   coloured surface (ground = its main way in) carrying the way pills, the
   FeatureArt graphic and the name, over a white summary strip. The track
   runs to the viewport's right edge so the next card peeks in. */

.pf-feat-section {
  --fnav-top: 64px;       /* the site header's scrolled height */
  --fnav-h: 72px;
  --card-w: min(82vw, 300px);
  background: var(--kit-ivory-tint);
  border-top: 1px solid var(--kit-ivory-medium);
  overflow-x: clip;
}
.pf-feat-section [data-way="agents"] { --way: var(--way-agents); }
.pf-feat-section [data-way="systems"] { --way: var(--way-systems); }
.pf-feat-section [data-way="tools"] { --way: var(--way-tools); }
.pf-feat-section [data-way="people"] { --way: var(--way-people); }

/* ---- sticky step nav ---- */
.pf-fnav {
  position: sticky;
  top: var(--fnav-top);
  z-index: 5;
  margin: 0 0 8px;
  background: var(--kit-ivory-tint);
  box-shadow: 0 0 0 100vmax var(--kit-ivory-tint), 0 1px 0 100vmax var(--kit-ivory-medium);
  clip-path: inset(0 -100vmax -1px);
}
/* phases, each with its steps: the phase (number and name) leads, its
   steps as small tabs below in the phase's accent */
.pf-fnav > ol {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 14px 0 10px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.pf-fnav > ol::-webkit-scrollbar { display: none; }
.pf-fnav-phase { flex: 1 0 auto; display: flex; flex-direction: column; gap: 4px; }
.pf-fnav-phase:nth-child(1) { flex-grow: 3; }
.pf-fnav-phase:nth-child(2) { flex-grow: 2; }
.pf-fnav-phase:nth-child(3) { flex-grow: 4; }
.pf-fnav-ph {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  font-size: var(--type-small);
  font-weight: var(--type-subhead-weight);
  line-height: 24px;
  white-space: nowrap;
  color: var(--pf-ink);
  text-decoration: none;
}
.pf-fnav-num {
  font-family: var(--font-mono);
  font-size: var(--type-label-s);
  font-weight: 500;
  color: var(--pf-muted);
}
.pf-fnav-phase:has([aria-current]) .pf-fnav-ph { color: var(--ph); }
.pf-fnav-ph:hover { color: var(--ph); }
.pf-fnav-phase ol { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.pf-fnav-phase li { flex: 1 0 auto; }
.pf-fnav-phase ol a {
  position: relative;
  display: block;
  height: 26px;
  padding: 4px 8px 0;
  box-sizing: border-box;
  font-size: var(--type-caption);
  line-height: 16px;
  white-space: nowrap;
  color: var(--pf-muted);
  text-decoration: none;
}
.pf-fnav-phase ol a::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--kit-ivory-medium);
  transition: background .2s ease;
}
.pf-fnav a:focus-visible { outline: 2px solid var(--kit-teal-medium); outline-offset: 2px; border-radius: 6px; }
.pf-fnav-phase ol a:hover { color: var(--pf-ink); }
.pf-fnav-phase ol a.is-past::after { background: color-mix(in srgb, var(--ph) 35%, transparent); }
.pf-fnav-phase ol a[aria-current] { color: var(--pf-ink); font-weight: 500; }
.pf-fnav-phase ol a[aria-current]::after { background: var(--ph); }

/* ---- a phase: a quiet header opening its steps ---- */
.pf-fphase { scroll-margin-top: calc(var(--fnav-top) + var(--fnav-h) + 16px); margin-top: 88px; }
.pf-fphase:first-of-type { margin-top: 48px; }
.pf-fphase-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px 20px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--kit-ivory-medium);
}
.pf-fphase-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--kit-white);
  box-shadow: 0 0 0 1px var(--kit-ivory-medium), 0 6px 18px rgba(13, 40, 40, .05);
}
.pf-fphase-icon .icon { width: 32px; height: 32px; }
.pf-fphase-name { margin: 0; color: var(--pf-ink); }
.pf-fphase-line { margin: 6px 0 0; max-width: 40em; font-size: var(--type-small); line-height: var(--type-body-lh); color: var(--pf-muted); }

/* ---- a step: a quiet subhead inside its phase; space, not rules, between steps ---- */
.pf-fstep { scroll-margin-top: calc(var(--fnav-top) + var(--fnav-h) + 16px); padding-top: 48px; }
.pf-fphase-head + .pf-fstep { padding-top: 40px; }

.pf-fstep-head { margin-bottom: 20px; }
.pf-fstep-name {
  margin: 0;
  font-size: var(--type-h4);
  line-height: var(--type-h4-lh);
  letter-spacing: var(--type-h4-ls);
  font-weight: var(--type-subhead-weight);
  color: var(--pf-ink);
}
.pf-fstep-line {
  margin: 4px 0 0;
  font-size: var(--type-small);
  line-height: var(--type-body-lh);
  color: var(--pf-muted);
}

/* ---- the carousel ---- */
.pf-carousel { position: relative; }

.pf-fgrid {
  display: flex;
  gap: 14px;
  margin: 0 calc(-1 * var(--l-gutter));
  padding: 4px var(--l-gutter) 12px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--l-gutter);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  outline: none;
}
.pf-fgrid::-webkit-scrollbar { display: none; }
.pf-fgrid:focus-visible { box-shadow: inset 0 0 0 2px var(--kit-teal-medium); border-radius: 8px; }

.pf-fcard {
  display: flex;
  flex: 0 0 var(--card-w);
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border-radius: 20px;
  background: var(--kit-white);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--kit-ivory-medium) 70%, transparent), 0 10px 30px rgba(13, 40, 40, .05);
}

/* the surface: plain white; the section's corner washes are for big panels only */
.pf-fcard-surface {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  color: var(--pf-ink);
  background: var(--kit-white);
}

/* the graphic floats on the card: no panel of its own */
.pf-fcard-art { margin: 0 -4px; }
.pf-fcard-art .fa { display: block; width: 100%; height: auto; }

/* the ways in at the foot: icon and label, no pill */
.pf-fcard-ways {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  color: var(--pf-muted);
}
.pf-fcard-ways li { display: inline-flex; align-items: center; gap: 6px; }
.pf-fcard-ways .icon { width: 16px; height: 16px; color: var(--kit-teal-medium); }

/* the name (bold) and the summary run on as one line of text */
.pf-fcard-copy {
  margin: 0;
  font-size: var(--type-small);
  line-height: var(--type-body-lh);
  color: var(--pf-muted);
}
.pf-fcard-name,
.pf-fcard-text { display: inline; margin: 0; font-size: inherit; line-height: inherit; }
.pf-fcard-name { font-weight: 600; color: var(--pf-ink); }
.pf-fcard-name .pf-ai { display: inline-block; width: 14px !important; height: 14px !important; margin-right: 4px; vertical-align: -2px; color: var(--kit-teal-medium); }

/* controls: count + previous/next; shown by js only when there is more */
.pf-cctrl {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}
.pf-cctrl[hidden] { display: none; }
.pf-cctrl-count { margin-right: 4px; color: var(--pf-muted); }
.pf-cctrl-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--kit-teal-shade);
  background: var(--kit-white);
  box-shadow: inset 0 0 0 1px var(--kit-ivory-medium);
  cursor: pointer;
  transition: box-shadow .15s ease, opacity .15s ease;
}
.pf-cctrl-btn .icon { width: 18px; height: 18px; }
.pf-cctrl-btn[data-dir="-1"] .icon { transform: scaleX(-1); }
.pf-cctrl-btn:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--kit-teal-medium); }
.pf-cctrl-btn:focus-visible { outline: 2px solid var(--kit-teal-medium); outline-offset: 2px; }
.pf-cctrl-btn:disabled { opacity: .35; cursor: default; }

/* a soft edge on the side that has more to see */
.pf-carousel.can-next::after {
  content: "";
  position: absolute;
  top: 0;
  right: calc(-1 * var(--l-gutter));
  bottom: 52px;
  width: 48px;
  background: linear-gradient(90deg, rgba(248, 247, 247, 0), var(--kit-ivory-tint));
  pointer-events: none;
}

/* ---------- FeatureArt scenes (src/components/platform/FeatureArt.astro) ---------- */
/* Scenes sit on the card's grey surface (transparent ground). A tone sets
   the lead colours: hero blocks (--fa-a, with --fa-b / --fa-c as the
   second and third), buttons and sparkle (--fa-ink). */
.fa { display: block; width: 100%; height: 100%;
  --fa-a: var(--kit-teal-highlight); --fa-b: var(--kit-citron-tint); --fa-c: var(--color-magenta-tint); --fa-ink: var(--kit-teal-shade); --fa-spark: var(--kit-teal-medium); }
.fa--tone-1 { --fa-a: #FFF68A; --fa-b: var(--kit-teal-highlight); --fa-c: var(--color-magenta-tint); --fa-ink: var(--color-citron-citron-medium); --fa-spark: var(--color-citron-citron-medium); }
.fa--tone-2 { --fa-a: var(--color-magenta-tint); --fa-b: var(--kit-citron-tint); --fa-c: var(--kit-teal-highlight); --fa-ink: var(--color-magenta-medium); --fa-spark: var(--color-magenta-medium); }
.fa-ground { fill: transparent; }
.fa-card, .fa-frame { fill: var(--kit-white); stroke: rgba(32, 31, 29, .08); stroke-width: 1; }
.fa-card--on { stroke: var(--fa-ink); stroke-width: 1.5; }
.fa-card--dark, .fa-frame--dark, .fa-code { fill: #1d2b2c; stroke: none; }
.fa-shadow { fill: rgba(13, 40, 40, .08); }
.fa-fold { fill: var(--kit-ivory-medium); }
.fa-soft { fill: var(--kit-ivory-tint); stroke: rgba(32, 31, 29, .06); stroke-width: 1; }
.fa-slot { fill: none; stroke: rgba(32, 31, 29, .3); stroke-width: 1.2; stroke-dasharray: 4 3; }
.fa-float { fill: var(--kit-white); stroke: var(--fa-ink); stroke-width: 1.5; }
.fa-line { fill: rgba(32, 31, 29, .13); }
.fa-line--strong { fill: rgba(32, 31, 29, .34); }
.fa-line--ondark { fill: rgba(255, 255, 255, .22); }
.fa-line--teal { fill: var(--fa-ink); opacity: .55; }
.fa-line--warn { fill: var(--color-magenta-medium); opacity: .7; }
.fa-hero { fill: var(--fa-a); }
.fa-hero--b { fill: var(--fa-b); stroke: rgba(32, 31, 29, .06); stroke-width: 1; }
.fa-hero--c { fill: var(--fa-c); }
.fa-hero--dark { fill: #2c4a4c; }
.fa-btn { fill: var(--fa-ink); }
.fa-pdf { fill: var(--color-magenta-medium); }
.fa-tile { fill: var(--kit-white); stroke: rgba(32, 31, 29, .1); stroke-width: 1; }
.fa-tile--on { fill: var(--fa-a); stroke: var(--fa-ink); stroke-width: 1.5; }
.fa-flag { fill: var(--color-magenta-tint); }
.fa-flag-outline { fill: none; stroke: var(--color-magenta-medium); stroke-width: 1.5; stroke-dasharray: 4 3; }
.fa-tick { fill: var(--kit-citron-highlight); }
.fa-tick-mark { fill: none; stroke: var(--kit-teal-shade); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.fa-warn { fill: var(--color-magenta-medium); }
.fa-warn-mark { fill: none; stroke: var(--kit-white); stroke-width: 1.6; stroke-linecap: round; }
.fa-warn-dot { fill: var(--kit-white); }
.fa-arrow { fill: none; stroke: rgba(32, 31, 29, .45); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fa-arrow--dash { stroke-dasharray: 3 3; }
.fa-axis { fill: none; stroke: rgba(32, 31, 29, .2); stroke-width: 1; }
.fa-bar { fill: var(--fa-ink); opacity: .3; }
.fa-bar--win { fill: var(--fa-ink); opacity: 1; }
.fa-dot { fill: rgba(32, 31, 29, .25); }
.fa-avatar { fill: var(--fa-ink); }
.fa-avatar--b { fill: var(--kit-ivory-shade); }
.fa-chip { fill: var(--kit-white); stroke: rgba(32, 31, 29, .18); stroke-width: 1; }
.fa-chip--on { fill: var(--fa-a); stroke: rgba(32, 31, 29, .14); }
.fa-chip--warn { fill: var(--color-magenta-tint); stroke: rgba(114, 41, 92, .35); }
.fa-chip--deal { fill: var(--kit-citron-highlight); stroke: none; }
.fa-t {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .02em;
  fill: var(--kit-text-strong);
}
.fa-t--strong { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0; }
.fa-t--big { font-family: var(--font-sans); font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.fa-t--onbtn { fill: var(--kit-white); }
.fa-t--code { fill: var(--kit-teal-highlight); }
.fa-t--dim { fill: rgba(255, 255, 255, .45); }
.fa-t--warn, .fa-chip--warn-t { fill: var(--color-magenta-medium); }
.fa-t--g { fill: var(--fa-ink); }
.fa-chip--on-t { fill: var(--kit-teal-dark); }
.fa-ico { color: var(--fa-ink); }
.fa-ico--dark { color: var(--kit-teal-dark); }
.fa-ico--ondark { color: rgba(32, 31, 29, .35); }
.fa-spark { color: var(--fa-spark); }
.fa-toggle { fill: var(--fa-ink); }
.fa-toggle--off { fill: rgba(32, 31, 29, .18); }
.fa-knob { fill: var(--kit-white); }
.fa-script { fill: rgba(201, 254, 255, .12); stroke: var(--kit-teal-highlight); stroke-width: 1; stroke-dasharray: 3 3; }

/* photo heroes: sky gradient (in the scene's defs), sun, two hills */
.fa-ph-sun { fill: rgba(255, 255, 255, .92); }
.fa-ph-hill1 { fill: var(--fa-ink); opacity: .26; }
.fa-ph-hill2 { fill: var(--fa-ink); opacity: .55; }
.fa-photo--d .fa-ph-sun { fill: var(--kit-citron-highlight); }
.fa-photo--d .fa-ph-hill1 { fill: #6fa3a5; opacity: .35; }
.fa-photo--d .fa-ph-hill2 { fill: #0c1d1e; opacity: .7; }
.fa-white { fill: var(--kit-white); }
.fa-stroke { fill: none; stroke: #5f6368; stroke-width: 1.3; stroke-linecap: round; }
.fa-mark { fill: var(--kit-citron-highlight); }
.fa-sel { fill: none; stroke: var(--fa-ink); stroke-width: 2; }
.fa-soft--on { stroke: var(--fa-ink); stroke-width: 1.2; }
.fa-pill-ok { fill: #e6f4ea; }

/* interface text inside the app windows */
.fa-u { font-family: var(--font-sans); font-size: 8px; font-weight: 500; fill: var(--kit-text-strong); }
.fa-u--b { font-weight: 600; }
.fa-u--m { fill: #5f6368; font-weight: 400; }
.fa-u--w { fill: var(--kit-white); }
.fa-u--xs { font-size: 7px; }
.fa-u--caps { letter-spacing: .08em; }
.fa-u--ok { fill: #137333; font-weight: 600; }
.fa-u--code { font-family: var(--font-mono); font-size: 6.6px; fill: var(--kit-teal-shade); }

/* the partners' own app colours */
.fa-gm-bg { fill: #f6f8fc; stroke: rgba(32, 31, 29, .08); stroke-width: 1; }
.fa-gm-ink { fill: #5f6368; }
.fa-gm-word { font-family: var(--font-sans); font-size: 12px; font-weight: 400; fill: #5f6368; }
.fa-gm-search { fill: #e9eef6; }
.fa-gm-compose { fill: #c2e7ff; }
.fa-gm-nav-on { fill: #d3e3fd; }
.fa-gm-tab { fill: #188038; }
.fa-gm-promo { fill: #188038; }
.fa-gm-sep { fill: #e3e3e3; }
.fa-gm-deal { fill: #e6f4ea; stroke: #188038; stroke-width: .8; }
.fa-gm-deal-t { fill: #137333; font-weight: 600; }
.fa-wf-bar { fill: #fdebe6; }
.fa-fig-bar { fill: #2c2c2c; }
.fa-fig-tool { fill: rgba(255, 255, 255, .22); }
.fa-fig-side { fill: var(--kit-white); }
.fa-fig-layer-on { fill: #e5f4ff; }
.fa-fig-canvas { fill: #e9e9e9; }
.fa-fig-sel { fill: none; stroke: #0d99ff; stroke-width: 1.3; }
.fa-fig-handle { fill: var(--kit-white); stroke: #0d99ff; stroke-width: 1; }
.fa-fig-tag { fill: #0d99ff; }
.fa-claude-bg { fill: #f5f4ee; stroke: rgba(32, 31, 29, .08); stroke-width: 1; }
.fa-claude-user { fill: #e8e5da; }
.fa-chat-bot { fill: var(--fa-a); }
.fa-gs-bar { fill: #1e1e1e; }
.fa-wr-on { fill: #efeeff; stroke: #5551ff; stroke-width: 1; }
.fa-vv-bar { fill: #f28c28; }
.fa-sf-bar { fill: #0176d3; }
.fa-sf-row-on { fill: #eaf5fe; stroke: rgba(1, 118, 211, .45); stroke-width: .8; }
.fa-sf-btn { fill: #0176d3; }
.fa-sf-ico { color: #0176d3; }
.fa-sf-t { fill: #0176d3; font-weight: 600; }
.fa-aem-bar { fill: #eb1000; }

@media (min-width: 600px) {
  .pf-feat-section { --card-w: 320px; }
  .pf-fgrid { gap: 20px; }
}

@media (min-width: 1024px) {
  .pf-feat-section { --card-w: 340px; }
  .pf-fphase { margin-top: 128px; }
  .pf-fphase:first-of-type { margin-top: 64px; }
  .pf-fphase-head { padding-bottom: 36px; column-gap: 24px; }
  .pf-fstep { padding-top: 72px; }
  .pf-fphase-head + .pf-fstep { padding-top: 56px; }
  .pf-fstep-head { margin-bottom: 28px; }
  /* the track starts at the content edge and runs to the viewport edge */
  .pf-fgrid {
    margin: 0 calc(50% - 50vw) 0 0;
    padding: 4px calc(50vw - 50%) 16px 0;
    scroll-padding-inline: 0;
  }
  .pf-carousel.can-next::after { right: calc(50% - 50vw); width: 96px; }
}

@media (min-width: 1440px) {
  .pf-feat-section { --card-w: 364px; }
  .pf-fgrid { gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .pf-fcard { transition: none; }
}

/* ---------- Unfold on scroll (js/platform.js adds .pf-unfold) ---------- */

.pf-unfold .pf-reveal {
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}

.pf-unfold .pf-reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(32px);
}

/* Rows inside a block follow one after another. */
.pf-unfold .pf-reveal .pf-way {
  transition: opacity .45s ease, transform .45s ease;
  transition-delay: calc(var(--i, 0) * 70ms + 150ms);
}

.pf-unfold .pf-reveal:not(.is-in) .pf-way {
  opacity: 0;
  transform: translateY(12px);
}



/* ---------- Security ---------- */

.pf-sec {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* On the dark band: cards are a cyan hairline on Teal Dark. */
.pf-sec-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: 12px;
  font-size: var(--type-body);
  font-weight: 500;
  line-height: 1.3;
  color: var(--kit-white);
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px rgba(201, 254, 255, .16);
}

.pf-sec-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: var(--pf-citron);
  background: rgba(201, 254, 255, .08);
}

.pf-sec-icon .icon { width: 26px; height: 26px; }

.pf-sec-item a { color: var(--kit-teal-highlight); text-decoration: none; }
.pf-sec-item a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 1024px) {
  .pf-sec { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .pf-sec-item { padding: 24px; }
}

/* ---------- Releases ---------- */

.pf-rel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 72%);
  gap: 12px;
  margin: 0 calc(-1 * var(--l-gutter));
  padding: 0 var(--l-gutter) 8px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--l-gutter);
}

.pf-rel li { scroll-snap-align: start; min-width: 0; }

.pf-rel-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  color: var(--pf-ink);
  text-decoration: none;
}

.pf-rel-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 334;
  object-fit: cover;
  margin-bottom: 6px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--pf-line);
  transition: transform .2s;
}

.pf-rel-card:hover img { transform: translateY(-3px); }

.pf-rel-card time {
  color: var(--pf-teal);
}

.pf-rel-card span {
  font-size: var(--type-small);
  line-height: 1.35;
  font-weight: 500;
}

.pf-rel-card:hover span { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 600px) {
  .pf-rel { grid-auto-columns: minmax(240px, 40%); }
}

@media (min-width: 1024px) {
  .pf-rel {
    grid-auto-flow: row;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
}

/* ---------- Close ---------- */

.pf-close-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pf-close-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 16px 0 0;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid rgba(201, 254, 255, .25);
  width: 100%;
}

.pf-close-links a {
  font-size: var(--type-small);
  font-weight: 500;
  color: var(--kit-teal-highlight);
  text-decoration: none;
}

.pf-close-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .pf-ctrls li,
  .pf-rel-card img { transition: none; }
}
