/*
 * coss-pitch.css — company pitch pages (dessn.html, unifyapps.html, new ones from
 * templates/pitch-page.html) and builder.html. Harness: docs/pitch-page-harness.md.
 *
 * Layers on top of coss-aampe.css: same recap structure (hero, sticky pills,
 * list + media slabs, voices, CTA), with a per-company accent and a few
 * text-first panels for "what you said / what I did" notes and a 90-day plan.
 * Load after coss-aampe.css. Body classes: `aampe-page pitch-page`.
 */

/* ---------- Light "paper" palette + accent (scoped per company) ---------- */
/* Remaps the dark recap tokens from coss-aampe.css: --ap-ink is the page,
   --ap-cream is the text. Riso inks are used by the hero illustration. */
html:has(.pitch-page),
.pitch-page {
  --ap-ink: #FAF7F1;
  --ap-ink-raised: #F2EDE4;
  --ap-ink-stage: #EEE8DD;
  --ap-cream: #1D1B18;
  --ap-cream-muted: rgba(29, 27, 24, 0.7);
  --ap-cream-quiet: rgba(29, 27, 24, 0.52);
  --ap-line: rgba(29, 27, 24, 0.12);
  --ap-line-strong: rgba(29, 27, 24, 0.22);
  --ap-lime: #E8590C;
  --ap-lime-ink: #FFFFFF;
  --ring: #E8590C;
  --focus-ring: #E8590C;
  /* the shared site accent is green; on pitch pages every state is the page accent */
  --accent: #E8590C;
  --accent-hover: #C94A08;
  --accent-bright: #FF8A3D;
  --accent-soft: #FFF1E7;
  --accent-foreground: #FFFFFF;
  --accent-dark: #1D1B18;
  --primary: #1D1B18;
  --primary-foreground: #FFFFFF;
  --riso-orange: #FF6C2F;
  --riso-blue: #0078BF;
  --riso-yellow: #FFE800;
  --riso-pink: #FF48B0;
  color-scheme: light;
}

/* .pitch-page--dessn uses the default palette above (orange accent on paper).
   Every other company adds its own .pitch-page--<slug> block like the one below. */

/* UnifyApps: their forest green on the same paper. The riso inks are remapped,
   so every orb, gantt bar and letter print picks up the company palette. */
html:has(.pitch-page--unifyapps),
.pitch-page--unifyapps {
  --ap-lime: #2F6F1F;
  --ring: #2F6F1F;
  --focus-ring: #2F6F1F;
  --accent: #2F6F1F;
  --accent-hover: #24561A;
  --accent-bright: #5FA83B;
  --accent-soft: #EEF5E6;
  --riso-orange: #3E8E2A;
  --riso-blue: #163A0C;
  --riso-pink: #B5CF2E;
  --riso-yellow: #FFE04A;
}

/* Builder: Madhuri's own language, the one her reels use (ink, cream, lime, green),
   not a company palette. Paper is her video cream; riso inks are green, ink and lime. */
html:has(.pitch-page--builder),
.pitch-page--builder {
  --ap-ink: #F4F2EF;
  --ap-ink-raised: #ECE9E3;
  --ap-ink-stage: #E6E2DA;
  --ap-lime: #2A7E3B;
  --ring: #2A7E3B;
  --focus-ring: #2A7E3B;
  --accent: #2A7E3B;
  --accent-hover: #1F6630;
  --accent-bright: #CFEA55;
  --accent-soft: #EAF3D3;
  --riso-orange: #2A7E3B;
  --riso-blue: #16201B;
  --riso-pink: #CFEA55;
  --riso-yellow: #CFEA55;
  --riso-green: #2A7E3B;
  --studio-ink: #16201B;
  --studio-cream: #F4F2EF;
  --studio-lime: #CFEA55;
}

.pitch-page .ap-window {
  background: #fff;
  box-shadow: 0 24px 60px rgba(60, 40, 20, 0.14), 0 0 0 1px rgba(29, 27, 24, 0.08);
}

.pitch-page .ap-stage {
  background-image: none;
  background-color: rgba(29, 27, 24, 0.04);
}

.pitch-page .ap-tag {
  box-shadow: 0 0 0 1px rgba(29, 27, 24, 0.12);
}

/* ---------- Riso orbs (after the DevDay recap hero: floating ink circles) ---------- */
/* Two-ink print: the second ink sits a few px off-register underneath, the icon
   is knocked out to paper, and #riso-grain (inline SVG filter) adds speckle. */
.pitch-page {
  --riso-green: #00A95C;
  --riso-ink: #2A2724;
}

.pd-orb {
  --size: 80px;
  --ink: var(--riso-orange);
  --ink2: var(--riso-blue);
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: var(--size);
  height: var(--size);
  filter: url(#riso-grain);
}

.pd-orb::before,
.pd-orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  mix-blend-mode: multiply;
}

.pd-orb::before {
  background: var(--ink2);
  transform: translate(calc(var(--size) * 0.05), calc(var(--size) * 0.04));
  opacity: 0.9;
}

.pd-orb::after {
  background: var(--ink);
  mix-blend-mode: normal;
}

.pd-orb i {
  position: relative;
  z-index: 1;
  color: var(--icon, var(--ap-ink));
  font-size: calc(var(--size) * 0.46);
  line-height: 1;
}

/* Hero: orbs float around the headline */
.pd-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pd-orbs .pd-orb {
  position: absolute;
  left: var(--x);
  top: var(--y);
  animation: pd-float 7s ease-in-out var(--d, 0s) infinite alternate;
}

@keyframes pd-float {
  from { transform: translate3d(0, 0, 0) rotate(-6deg); }
  to { transform: translate3d(6px, -14px, 0) rotate(6deg); }
}

/* Section clusters and inline orbs */
.pd-cluster {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  margin: 0 auto 20px;
}

.pd-cluster .pd-orb:nth-child(odd) { transform: translateY(-6px) rotate(-8deg); }
.pd-cluster .pd-orb:nth-child(even) { transform: rotate(6deg); }

.pd-orb--inline {
  margin-bottom: 16px;
}

.pd-orb--corner {
  position: absolute;
  top: -24px;
  right: 28px;
  transform: rotate(8deg);
}

.pd-testimonial {
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  .pd-orbs .pd-orb { animation: none; }
}

/* Tablet and phone: orbs leave the margins and line up above the headline */
@media (max-width: 1000px) {
  .pd-orbs {
    position: static;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px;
    margin-bottom: 28px;
  }

  .pd-orbs .pd-orb {
    position: relative;
    left: auto;
    top: auto;
    --size: 56px !important;
  }
}

@media (max-width: 400px) {
  .pd-orbs .pd-orb {
    --size: 48px !important;
  }
}

.pd-riso-defs {
  position: absolute;
  width: 0;
  height: 0;
}

/* ---------- Hero ---------- */
/* No reel under the hero here, so it does not need to fill the viewport. */
.pitch-page .ap-hero {
  min-height: calc(100svh - var(--detail-nav-h));
  padding: clamp(40px, 8vh, 96px) 0 clamp(72px, 12vh, 120px);
}

.pitch-page .ap-hero__title {
  max-width: 14ch;
  margin-inline: auto;
  font-size: clamp(40px, 5.6vw, 76px);
}

.pitch-page .ap-hero__deck {
  max-width: 520px;
  margin-top: 28px;
  color: var(--ap-cream-muted);
}

.pd-hero__label {
  position: relative;
  align-self: center;
  margin: 0 0 28px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ap-ink-raised);
  color: var(--ap-cream-muted);
  font: 500 var(--fs-sm) / 1 var(--font-label);
}

.pd-hero__label {
  width: fit-content;
  margin-inline: auto;
}

@media (max-width: 480px) {
  .pd-hero__label span { display: none; }
}

.pd-hero__cue {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 4vh, 40px);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  translate: -50% 0;
  color: var(--ap-cream-quiet);
  font: 500 var(--fs-xs) / 1 var(--font-label);
  text-decoration: none;
}

.pd-hero__cue i {
  font-size: 18px;
  animation: pd-cue 1.8s ease-in-out infinite;
}

.pd-hero__cue:hover {
  color: var(--ap-cream);
}

@keyframes pd-cue {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .pd-hero__cue i { animation: none; }
}

/* ---------- Text-first panels ---------- */
.pd-frame {
  aspect-ratio: auto;
  min-height: clamp(280px, 30vw, 420px);
  background: #F7F5F2;
  color: #1E1E1C;
}

.pd-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 1.4vw, 18px);
  height: 100%;
  min-height: inherit;
  padding: clamp(14px, 2.4vw, 32px);
  background:
    radial-gradient(rgba(22, 32, 27, 0.08) 1px, transparent 1px) 0 0 / 14px 14px,
    #F7F5F2;
}

.pd-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(14px, 1.8vw, 22px);
  border: 1px solid rgba(30, 30, 28, 0.1);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(30, 30, 28, 0.06);
}

.pd-card--them {
  background: #FFF4EC;
  border-color: rgba(255, 138, 61, 0.35);
}

.pitch-page--calm .pd-card--them {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent-bright) 35%, transparent);
}

.pd-card__label {
  margin: 0;
  color: #6B6A66;
  font: 600 var(--fs-2xs) / 1.2 var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pd-card__quote {
  margin: 0;
  color: #1E1E1C;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: clamp(17px, 1.6vw, 24px);
  line-height: 1.2;
}

.pd-card__source {
  margin: auto 0 0;
  color: #6B6A66;
  font: 500 var(--fs-xs) / 1.4 var(--font-label);
}

.pd-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #1E1E1C;
  font: 500 clamp(13px, 1vw, 15px) / 1.45 var(--font-body);
}

.pd-card li {
  position: relative;
  padding-left: 18px;
}

.pd-card li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-bright);
}

.pd-card b {
  font-weight: 650;
}

.pd-sources {
  width: min(100% - 32px, var(--ap-reading));
  margin: 0 auto 64px;
  color: var(--ap-cream-quiet);
  font-size: var(--fs-xs);
  line-height: 1.6;
}

.pd-sources a {
  color: var(--ap-cream-muted);
}

@media (max-width: 640px) {
  .pd-note {
    grid-template-columns: 1fr;
  }
}

/* ---------- Testimonial cards, between sections ---------- */
.pd-testimonials {
  width: min(100% - 32px, 820px);
  margin: clamp(64px, 8vw, 112px) auto;
}

.pd-testimonial {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 14px;
  background: #fff;
  color: #1E1E1C;
  box-shadow: 0 24px 60px rgba(60, 40, 20, 0.12), 0 0 0 1px rgba(29, 27, 24, 0.08);
}

.pd-testimonial img {
  height: 26px;
  width: auto;
}

.pd-testimonial blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: clamp(20px, 2.3vw, 30px);
  line-height: 1.25;
}

.pd-testimonial blockquote::before { content: "\201C"; }
.pd-testimonial blockquote::after { content: "\201D"; }

.pd-testimonial figcaption {
  display: grid;
  gap: 2px;
  padding-top: 16px;
  border-top: 1px solid rgba(30, 30, 28, 0.12);
  font: 500 var(--fs-sm) / 1.4 var(--font-label);
  color: #6B6A66;
}

.pd-testimonial figcaption b {
  color: #1E1E1C;
  font-weight: 650;
}

/* ---------- Showreel ---------- */
.pd-reel {
  margin-bottom: clamp(64px, 8vw, 104px);
}

.pd-reel .ap-reel__frame {
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(60, 40, 20, 0.16), 0 0 0 1px rgba(29, 27, 24, 0.08);
}

.pd-reel__caption {
  margin: 14px 0 0;
  color: var(--ap-cream-quiet);
  font-size: var(--fs-sm);
  text-align: center;
}

/* ---------- Section rhythm (after Refero: Arc, Say Briefly) ----------
   One vertical rhythm for every section, and alternating full-width washes
   instead of divider lines. Heading → lead → content gaps are fixed too. */
.pitch-page {
  /* matched to the hero: wide air around every block */
  --pd-section-y: clamp(112px, 13vw, 184px);
  --pd-head-gap: 24px;
  --pd-content-gap: clamp(56px, 6.5vw, 96px);
  --pd-wash: #F2ECE2;
}

.pitch-page .ap-section,
.pitch-page .ap-faq,
.pitch-page .pd-book {
  margin-top: 0;
  margin-bottom: 0;
  padding-block: var(--pd-section-y);
  border-top: 0;
}

/* full-bleed background without extra wrappers */
.pd-band {
  background: var(--pd-wash);
  box-shadow: 0 0 0 100vmax var(--pd-wash);
  clip-path: inset(0 -100vmax);
}

.pitch-page .ap-section__title {
  margin-bottom: var(--pd-head-gap);
}

.pitch-page .ap-section__lead {
  margin: 0 auto var(--pd-content-gap);
}

.pitch-page .pd-cluster {
  margin-bottom: 28px;
}

.pitch-page .ap-tabs {
  margin-top: 0;
}

.pd-gets .ap-impact {
  margin-top: var(--pd-content-gap);
}

.pitch-page .pd-testimonials {
  margin: var(--pd-content-gap) auto 0;
}

/* Captions under media: plain reading text, never a button look */
.pitch-page .ap-stat {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ap-cream-muted);
  font: 500 var(--fs-sm) / 1.45 var(--font-body);
  white-space: normal;
  text-align: center;
}

/* ---------- Hello: the hi video with the show-and-tell note ---------- */
.pd-hello {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  width: min(100% - 32px, 820px);
  margin: 0 auto var(--pd-content-gap);
}

.pd-hello__video {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.pd-hi__bubble {
  position: relative;
  display: block;
  width: clamp(120px, 16vw, 176px);
  aspect-ratio: 1;
  border-radius: 50%;
  /* riso ring: orange ink, blue ink off-register */
  box-shadow: 0 0 0 4px var(--riso-orange), 6px 5px 0 4px var(--riso-blue);
  overflow: hidden;
  transition: transform 0.45s var(--ap-ease-expo), box-shadow 0.45s var(--ap-ease-expo);
}

.pd-hello__video:hover .pd-hi__bubble {
  transform: rotate(-3deg) scale(1.04);
  box-shadow: 0 0 0 4px var(--riso-orange), 10px 8px 0 4px var(--riso-blue);
}

.pd-hi__bubble video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-hi__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ap-cream-muted);
  font: 500 var(--fs-xs) / 1 var(--font-label);
}

.pd-hello__video.is-playing .pd-hi__label i {
  color: var(--ap-lime);
  animation: pd-pulse 0.6s ease-in-out infinite alternate;
}

@keyframes pd-pulse {
  to { transform: scale(1.25); }
}

.pd-hello__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
}

.pd-hello__text p {
  margin: 0;
  color: var(--ap-cream-muted);
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
}

@media (max-width: 640px) {
  .pd-hello {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

/* ---------- Showreel ---------- */
.pd-reel {
  margin-bottom: var(--pd-section-y);
}

.pd-reel .ap-reel__frame {
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(60, 40, 20, 0.16), 0 0 0 1px rgba(29, 27, 24, 0.08);
}

.pd-reel__caption {
  margin: 14px 0 0;
  color: var(--ap-cream-quiet);
  font-size: var(--fs-sm);
  text-align: center;
}

/* ---------- Pitch header variant: "Chat with me" replaces the social icons ---------- */
/* Use on every company pitch page: <nav class="detail-topbar detail-topbar--pitch">
   with <a class="pd-topbar-cta" href="/<page>#talk"> in .detail-topbar__actions.
   Social links stay in the mobile drawer and in the booking section. */
.detail-topbar--pitch .detail-topbar__actions {
  gap: 14px;
}

.pd-topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  background: var(--ap-lime);
  color: var(--ap-lime-ink);
  font: 600 var(--fs-sm) / 1 var(--font-label);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 22%, transparent);
  transition: background 0.2s ease, transform 0.3s var(--ap-ease-expo), box-shadow 0.3s ease;
}

.pd-topbar-cta i {
  font-size: 1.25em;
  transition: transform 0.4s var(--ap-ease-expo);
}

.pd-topbar-cta:hover {
  background: color-mix(in oklab, var(--ap-lime) 86%, #000);
  transform: translateY(-1px);
}

.pd-topbar-cta:hover i {
  transform: rotate(-12deg) scale(1.1);
}

/* at the booking card the button has done its job */
.pd-topbar-cta.is-here {
  background: var(--ap-ink-raised);
  color: var(--ap-cream-muted);
  box-shadow: none;
}

html:has(.pitch-page) {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html:has(.pitch-page) { scroll-behavior: auto; }
}

@media (max-width: 560px) {
  .pitch-page .ap-tabs__link {
    padding: 9px 12px;
    font-size: var(--fs-sm);
  }

  .pd-topbar-cta {
    padding: 8px 12px 8px 10px;
  }
}

/* ---------- Two-week sprint gantt ---------- */
.pd-gantt {
  --cell: calc((100% - 0px) / 10);
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(14px, 2.2vw, 28px);
  background:
    radial-gradient(rgba(22, 32, 27, 0.08) 1px, transparent 1px) 0 0 / 14px 14px,
    #F7F5F2;
  font-family: var(--font-label);
  color: #1E1E1C;
}

.pd-gantt__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.pd-gantt__sprints {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: #ECE8E1;
}

.pd-gantt__sprints button {
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: #5E5B56;
  font: 600 var(--fs-xs) / 1 var(--font-label);
  cursor: pointer;
}

.pd-gantt__sprints button.is-on {
  background: #fff;
  color: #1E1E1C;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.pd-gantt__focus {
  margin: 0;
  color: #5E5B56;
  font-size: var(--fs-xs);
  font-weight: 600;
}

.pd-gantt__grid {
  display: grid;
  gap: 6px;
}

.pd-gantt__row {
  display: grid;
  grid-template-columns: minmax(96px, 30%) 1fr;
  align-items: center;
  gap: 10px;
}

.pd-gantt__label {
  overflow: hidden;
  font-size: clamp(10px, 0.85vw, 12px);
  font-weight: 600;
  line-height: 1.25;
}

.pd-gantt__row--event .pd-gantt__label {
  color: #5E5B56;
}

.pd-gantt__track {
  position: relative;
  height: 26px;
  border-radius: 6px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(30, 30, 28, 0.08) calc(10% - 1px) 10%),
    #fff;
  box-shadow: inset 0 0 0 1px rgba(30, 30, 28, 0.08);
}

.pd-gantt__days {
  height: 34px;
  background: none;
  box-shadow: none;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: auto auto;
  font-size: 10px;
  color: #6B6A66;
  text-align: center;
}

.pd-gantt__days em {
  grid-column: span 5;
  font-style: normal;
  font-weight: 650;
  color: #1E1E1C;
  border-bottom: 1px solid rgba(30, 30, 28, 0.15);
  padding-bottom: 2px;
}

.pd-gantt__bar {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: calc(var(--start) * 10% + 2px);
  width: calc(var(--len) * 10% - 4px);
  display: flex;
  overflow: hidden;
  border-radius: 5px;
  transform-origin: left center;
}

.pd-gantt__bar i { display: block; height: 100%; transition: opacity 0.3s ease, filter 0.3s ease; }
.pd-gantt__bar .s-spot { flex: 15; }
.pd-gantt__bar .s-frame { flex: 15; }
.pd-gantt__bar .s-build { flex: 45; }
.pd-gantt__bar .s-ship { flex: 25; }
.pd-gantt__bar--event i { flex: 1; }

.pd-gantt .s-spot { background: var(--riso-yellow); }
.pd-gantt .s-frame { background: var(--riso-pink); }
.pd-gantt .s-build { background: var(--riso-blue); }
.pd-gantt .s-ship { background: var(--riso-orange); }

.pd-gantt__bar b {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

/* light the step being read; the rest of the loop fades back */
.ap-panel[data-step="0"] .pd-gantt__bar:not(.pd-gantt__bar--event) i:not(.s-spot),
.ap-panel[data-step="1"] .pd-gantt__bar:not(.pd-gantt__bar--event) i:not(.s-frame),
.ap-panel[data-step="2"] .pd-gantt__bar:not(.pd-gantt__bar--event) i:not(.s-build),
.ap-panel[data-step="3"] .pd-gantt__bar:not(.pd-gantt__bar--event) i:not(.s-ship) {
  opacity: 0.28;
  filter: saturate(0.6);
}

.ap-panel.is-active .pd-gantt__bar {
  animation: pd-bar-in 0.7s var(--ap-ease-expo) both;
}

.pd-gantt__row:nth-child(3) .pd-gantt__bar { animation-delay: 0.08s; }
.pd-gantt__row:nth-child(4) .pd-gantt__bar { animation-delay: 0.16s; }
.pd-gantt__row:nth-child(5) .pd-gantt__bar { animation-delay: 0.24s; }
.pd-gantt__row:nth-child(6) .pd-gantt__bar { animation-delay: 0.32s; }
.pd-gantt__row:nth-child(7) .pd-gantt__bar { animation-delay: 0.4s; }

@keyframes pd-bar-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.pd-gantt.is-switching .pd-gantt__label {
  animation: pd-fade-in 0.4s ease both;
}

@keyframes pd-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.pd-gantt__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 10px;
  font-weight: 600;
  color: #5E5B56;
}

.pd-gantt__legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pd-gantt__legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .ap-panel.is-active .pd-gantt__bar { animation: none; }
}

/* ---------- Closing CTA: a booking card (after Marathon's "Book a demo") ---------- */
.pd-book {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  width: min(100% - 32px, 1100px);
  margin-inline: auto;
  scroll-margin-top: calc(var(--detail-nav-h) + 24px);
}

.pd-cluster--left {
  justify-content: flex-start;
}

.pd-book__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
}

.pd-book__intro > p {
  max-width: 440px;
  margin: 0;
  color: var(--ap-cream-muted);
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
}

.pd-book__alt {
  display: grid;
  gap: 4px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.pd-book__alt a,
.pd-book__alt button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--ap-cream);
  font: 500 var(--fs-md-sm) / 1.3 var(--font-body);
  text-decoration: underline;
  text-decoration-color: var(--ap-line-strong);
  text-underline-offset: 4px;
  cursor: pointer;
}

.pd-book__alt a:hover,
.pd-book__alt button:hover {
  text-decoration-color: var(--ap-lime);
}

.pd-book__alt i {
  color: var(--ap-lime);
  font-size: 1.15em;
}

.pd-book__alt em {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--ap-ink-raised);
  color: var(--ap-cream-muted);
  font: 600 var(--fs-2xs) / 1 var(--font-label);
  font-style: normal;
}

.pd-book__card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: clamp(20px, 2.6vw, 32px);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(60, 40, 20, 0.14), 0 0 0 1px rgba(29, 27, 24, 0.08);
  color: #1E1E1C;
}

.pd-book__host {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pd-book__host img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--riso-orange), 3px 3px 0 3px var(--riso-blue);
}

.pd-book__name {
  margin: 0;
  color: #6B6A66;
  font: 500 var(--fs-sm) / 1.3 var(--font-label);
}

.pd-book__event {
  margin: 2px 0 0;
  color: #1E1E1C;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.15;
}

.pd-book__meta {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #4A4844;
  font-size: var(--fs-sm);
}

.pd-book__meta li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pd-book__meta i {
  color: #8A8680;
  font-size: 1.1em;
}

.pd-book__label {
  margin: 0 0 8px;
  color: #6B6A66;
  font: 600 var(--fs-2xs) / 1.2 var(--font-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pd-book__agenda {
  padding-top: 16px;
  border-top: 1px solid rgba(30, 30, 28, 0.1);
}

.pd-book__agenda ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  font-size: var(--fs-sm);
  line-height: 1.45;
}

.pd-book__days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.pd-book__days a {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 10px 4px;
  border-radius: 10px;
  background: #F3F1ED;
  color: #1E1E1C;
  font: 500 var(--fs-2xs) / 1.1 var(--font-label);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.3s var(--ap-ease-expo), color 0.2s ease;
}

.pd-book__days a b {
  font-size: var(--fs-md);
  font-weight: 650;
}

.pd-book__days a:hover {
  background: var(--ap-lime);
  color: #fff;
  transform: translateY(-2px);
}

.pd-book__go {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 20px;
  border-radius: 12px;
  background: var(--ap-lime);
  color: #fff;
  font: 600 var(--fs-md-sm) / 1 var(--font-label);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.3s var(--ap-ease-expo);
}

.pd-book__go:hover {
  background: color-mix(in oklab, var(--ap-lime) 86%, #000);
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .pd-book {
    grid-template-columns: 1fr;
  }
}

/* ---------- Orb interactions: squish on hover, stamp and re-ink on click ---------- */
.pd-orb {
  pointer-events: auto;
  cursor: pointer;
  translate: var(--px, 0) var(--py, 0);
  transition: translate 0.6s var(--ap-ease-expo), scale 0.35s var(--ap-ease-expo);
}

.pd-orb::before {
  transition: transform 0.35s var(--ap-ease-expo);
}

.pd-orb i {
  transition: transform 0.45s var(--ap-ease-expo);
}

.pd-orb:hover {
  scale: 1.12;
}

.pd-orb:hover::before {
  transform: translate(calc(var(--size) * 0.12), calc(var(--size) * 0.1));
}

.pd-orb:hover i {
  transform: rotate(-14deg) scale(1.12);
}

.pd-orb.is-stamped {
  animation: pd-stamp 0.5s var(--ap-ease-expo);
}

@keyframes pd-stamp {
  0% { scale: 1.12; }
  35% { scale: 0.82 1.08; }
  70% { scale: 1.18 0.92; }
  100% { scale: 1; }
}

.pd-ink-splat {
  position: fixed;
  z-index: 60;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: multiply;
  filter: url(#riso-grain);
  animation: pd-splat 0.7s var(--ap-ease-expo) forwards;
}

@keyframes pd-splat {
  from { transform: translate(-50%, -50%) scale(0.4); opacity: 0.95; }
  to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pd-orb, .pd-orb i, .pd-orb::before { transition: none; }
  .pd-orb.is-stamped { animation: none; }
}

/* Click / tap states stay in the accent family (no stray green rings) */
.pitch-page a:active,
.pitch-page button:active {
  outline-color: var(--ap-lime);
}

.pitch-page {
  -webkit-tap-highlight-color: color-mix(in srgb, var(--accent) 12%, transparent);
}

/* ---------- Riso paper: grain over the whole page, like a print on uncoated stock ---------- */
.pitch-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.11 0 0 0 0 0.07 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  mix-blend-mode: multiply;
  opacity: 0.16;
}

/* riso print texture in the washes: a sparse two-ink speckle, like the orbs (no dot grid) */
.pd-band {
  position: relative;
  isolation: isolate;
}

.pd-band::before {
  content: "";
  position: absolute;
  inset: 0 -100vmax;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.91 0 0 0 0 0.35 0 0 0 0 0.05 0 0 0 9 -5.4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' seed='17' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0.47 0 0 0 0 0.75 0 0 0 9 -5.4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
  background-size: 240px 240px, 280px 280px;
  background-position: 0 0, 2px 1px;
  opacity: 0.22;
}

@media print {
  .pitch-page::after { display: none; }
}

/* ---------- Logo panels ---------- */
.pd-frame--brand {
  display: grid;
  grid-template-rows: auto 1fr;
}

.pd-frame__logo {
  position: static !important;
  width: auto !important;
  height: 22px !important;
  margin: clamp(14px, 2.4vw, 28px) clamp(14px, 2.4vw, 32px) 0;
  object-fit: contain;
  justify-self: start;
}

.pd-frame--brand .pd-note {
  min-height: 0;
  padding-top: 14px;
}

.pd-logos {
  display: grid;
  align-content: start;
  gap: clamp(14px, 1.8vw, 22px);
  padding: clamp(16px, 2.6vw, 32px);
  background:
    radial-gradient(rgba(22, 32, 27, 0.08) 1px, transparent 1px) 0 0 / 14px 14px,
    #F7F5F2;
  color: #1E1E1C;
}

.pd-logos img {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  height: 100% !important;
  object-fit: contain !important;
}

.pd-logos__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pd-logos__brand > img {
  width: 56px !important;
  height: 56px !important;
  border-radius: 12px;
}

.pd-logos__name {
  margin: 0 0 6px;
  color: #1E1E1C;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1;
}

.pd-logos__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.pd-logos__badges span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--riso-yellow);
  font: 600 var(--fs-2xs) / 1.2 var(--font-label);
}

.pd-logos__badges span + span {
  background: #FFE3D3;
}

.pd-logos__group .pd-card__label {
  margin-bottom: 8px;
}

.pd-logos__row,
.pd-logos__wall {
  display: grid;
  gap: 8px;
}

.pd-logos__row--tools {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pd-logos__wall {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pd-logos__tile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: clamp(44px, 4.4vw, 56px);
  padding: 12px;
  border: 1px solid rgba(30, 30, 28, 0.1);
  border-radius: 10px;
  background: #fff;
  font: 650 var(--fs-sm) / 1 var(--font-label);
  transition: transform 0.35s var(--ap-ease-expo), box-shadow 0.35s ease;
}

@media (hover: hover) {
  .pd-logos__tile:hover {
    transform: translateY(-2px) rotate(-1deg);
    box-shadow: 3px 3px 0 var(--riso-orange);
  }
}

.pd-logos__tile img {
  height: 20px !important;
  max-width: 100%;
}

.pd-logos__tile i {
  font-size: 22px;
  color: #146EF5;
}

.pd-logos__tile--text {
  color: #5E5B56;
  font-size: var(--fs-xs);
  text-align: center;
  line-height: 1.3;
}

.pd-logos__tile--text b {
  color: #1E1E1C;
}

@media (max-width: 640px) {
  .pd-logos__wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pd-inline-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in oklab, var(--ap-lime) 60%, transparent);
  text-underline-offset: 3px;
}

.pd-inline-link:hover {
  text-decoration-color: var(--ap-lime);
}

/* ---------- Inner spacing, same generosity as the hero ---------- */
.pitch-page .ap-section__lead {
  max-width: 560px;
}

.pitch-page .ap-trio {
  gap: clamp(32px, 4.5vw, 64px);
}

.pitch-page .ap-trio h3 {
  margin-bottom: 14px;
}

.pitch-page .ap-trio p {
  line-height: 1.65;
}

.pitch-page .pd-orb--inline {
  margin-bottom: 24px;
}

.pitch-page .ap-slab {
  gap: clamp(40px, 5vw, 80px);
}

.pitch-page .ap-item__head {
  padding: 24px 0;
}

.pitch-page .ap-item__body p + p {
  margin-top: 14px;
}

.pitch-page .ap-item__actions {
  margin-top: 18px;
}

.pitch-page .ap-impact__stats > div {
  padding-block: clamp(28px, 3vw, 40px);
}

.pd-hello {
  gap: clamp(32px, 5vw, 64px);
}

.pd-hello__title {
  margin-bottom: 16px;
}

.pitch-page .ap-faq__title {
  margin-bottom: 32px;
}

.pitch-page .ap-faq__item summary {
  padding-block: 22px;
}

.pitch-page .pd-book__title {
  margin-bottom: 24px;
}

.pitch-page .pd-book__alt {
  margin-top: 40px;
  gap: 8px;
}

@media (max-width: 760px) {
  .pitch-page {
    --pd-section-y: 96px;
    --pd-content-gap: 48px;
  }
}

/* results sit with the Aampe work, between the intro and the projects */
#built .ap-impact {
  margin: 0 auto var(--pd-content-gap);
}

/* ---------- Section heads reveal on their own (see coss-pitch.js) ---------- */
/* never let the slab-triggered reveal hide a pitch-page title */
.pitch-page .ap-section[data-ap-reveal] .ap-section__title {
  opacity: 1;
  transform: none;
}

.pd-head-reveal .pd-cluster,
.pd-head-reveal .ap-section__title,
.pd-head-reveal .ap-section__lead,
.pd-head-reveal .ap-faq__title,
.pd-head-reveal .pd-book__title,
.pd-head-reveal .pd-book__intro > p {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.9s var(--ap-ease-expo);
  transition-delay: calc(var(--pd-i, 0) * 0.12s);
}

.pitch-page .pd-head-reveal.pd-head-in .pd-cluster,
.pitch-page .pd-head-reveal.pd-head-in .ap-section__title,
.pitch-page .pd-head-reveal.pd-head-in .ap-section__lead,
.pitch-page .pd-head-reveal.pd-head-in .ap-faq__title,
.pitch-page .pd-head-reveal.pd-head-in .pd-book__title,
.pitch-page .pd-head-reveal.pd-head-in .pd-book__intro > p {
  opacity: 1;
  transform: none;
}

/* the riso orbs pop in with the head */
.pd-head-reveal .pd-cluster .pd-orb {
  scale: 0.6;
  transition: scale 0.6s var(--ap-ease-expo);
}

.pd-head-reveal.pd-head-in .pd-cluster .pd-orb {
  scale: 1;
}

.pd-head-reveal.pd-head-in .pd-cluster .pd-orb:nth-child(2) { transition-delay: 0.08s; }
.pd-head-reveal.pd-head-in .pd-cluster .pd-orb:nth-child(3) { transition-delay: 0.16s; }

/* ---------- Sticky tabs: the same breathing room in flow as when stuck ---------- */
.pitch-page .ap-tabs {
  margin-top: clamp(32px, 4vw, 48px);
}

#built.ap-section {
  padding-top: calc(var(--pd-section-y) - clamp(32px, 4vw, 48px));
}

.pd-head-reveal.pd-head-in .pd-cluster .pd-orb:hover {
  scale: 1.12;
}

/* ---------- Phones: chat icon joins the pills while the header is away ---------- */
.pd-tabs-chat {
  display: none;
}

@media (max-width: 900px) {
  .pitch-page .ap-tabs {
    gap: 8px;
    align-items: center;
  }

  .pitch-page .ap-tabs__track {
    flex: 0 1 auto;
    min-width: 0;
  }

  .pd-tabs-chat {
    flex: 0 0 auto;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--ap-lime);
    color: var(--ap-lime-ink);
    font: 600 var(--fs-sm) / 1 var(--font-label);
    text-decoration: none;
    pointer-events: auto;
    animation: pd-chat-in 0.3s var(--ap-ease-expo);
  }

  .ap-nav-hidden .pd-tabs-chat {
    display: inline-flex;
  }

  /* captions under pictures stay readable in card mode */
  .pitch-page .ap-section.is-cards .ap-stat {
    display: block;
    padding: 0;
    font-size: var(--fs-xs);
  }
}

@keyframes pd-chat-in {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: none; }
}

/* Results: ink, not orange, so the numbers read without shouting; the arrow keeps the accent */
.pitch-page .ap-impact__stats dt {
  color: var(--ap-cream);
}

.pitch-page .ap-impact__stats .ap-arrow {
  color: var(--ap-lime);
}

.pitch-page .ap-item.is-active .ap-item__head {
  color: var(--ap-cream);
}

/* the "+13 more" tile fills the grid; the names live in the caption below */
.pd-logos__tile--more {
  color: #5E5B56;
  font-size: var(--fs-sm);
}

/* meta line sits right under the project title, as a quiet label */
.pitch-page .ap-item__body .ap-item__meta:first-child {
  margin: 0 0 12px;
}

/* phones: a quiet orange edge would never clear after a tap, so touch gets no lift */
@media (hover: none) {
  .pd-logos__tile { transition: none; }
}

/* ---------- YouTube facades: thumbnail first, the player loads on click ---------- */
.pd-yt {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #111;
  cursor: pointer;
}

.pd-yt img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-yt__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--ap-lime);
  color: #fff;
  font-size: 28px;
  translate: -50% -50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: scale 0.3s var(--ap-ease-expo);
}

.pd-yt:hover .pd-yt__play {
  scale: 1.08;
}

.pd-yt__label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.78);
  color: #fff;
  font: 600 var(--fs-xs) / 1.2 var(--font-label);
  text-align: left;
}

.pd-yt-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 640px) {
  .pd-yt__play { width: 52px; height: 52px; font-size: 22px; }
}

/* ---------- Hello letter: a tri-fold that unfolds downward as you scroll ---------- */
/* Folded, the back of fold 2 faces you like an envelope cover. Scrolling swings
   fold 2 down from fold 1, then fold 3 down from fold 2 (coss-pitch.js sets
   --a2 / --a3). Without JS or with reduced motion the letter just sits open. */
.pd-letter {
  --fold-h: 220px;
  --paper: #FBF6EC;
  position: relative;
  width: min(100% - 32px, 600px);
  margin: 0 auto var(--pd-content-gap);
}

.pd-letter.is-folding {
  height: 300vh;
}

.pd-letter.is-folding .pd-letter__stage {
  position: sticky;
  top: var(--detail-nav-h);
  height: calc(100vh - var(--detail-nav-h));
  perspective: 1600px;
}

.pd-letter.is-folding .pd-letter__paper {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--letter-top, 30%);
}

.pd-fold {
  position: relative;
  height: var(--fold-h);
  transform-style: preserve-3d;
}

.pd-fold--2,
.pd-fold--3 {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  transform-origin: 50% 0;
}

.pd-letter.is-folding .pd-fold--2 { transform: rotateX(var(--a2, 0deg)); }
/* fold 3 hinges on fold 2's face side, so folded it tucks behind the cover */
.pd-letter.is-folding .pd-fold--3 { transform: translateZ(1px) rotateX(var(--a3, 0deg)); }

.pd-fold__face,
.pd-fold__back {
  position: absolute;
  inset: 0;
  padding: clamp(20px, 3.4vw, 32px);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.35 0 0 0 0 0.2 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  color: var(--ap-cream);
}

.pd-fold--1 > .pd-fold__face {
  border-radius: 6px 6px 0 0;
  box-shadow: 0 30px 60px rgba(60, 40, 20, 0.12);
}

.pd-fold--3 > .pd-fold__face,
.pd-fold--4 > .pd-fold__face {
  border-radius: 0 0 6px 6px;
}

.pd-fold__back {
  transform: rotateX(180deg) translateZ(1px);
}

/* crease shading follows the fold angle */
.pd-fold--2 > .pd-fold__face::after,
.pd-fold--3 > .pd-fold__face::after,
.pd-fold--4 > .pd-fold__face::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(60, 40, 20, 0.18), transparent 40%);
  opacity: var(--shade, 0);
}

.pd-fold--2 { --shade: var(--s2, 0); }
.pd-fold--3 { --shade: var(--s3, 0); }

.pd-fold--2 > .pd-fold__face,
.pd-fold--3 > .pd-fold__face,
.pd-fold--4 > .pd-fold__face {
  border-top: 1px dashed rgba(60, 40, 20, 0.14);
}

.pd-fold__face p {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
}

/* fold 1: greeting */
.pd-letter__to {
  color: var(--ap-cream-muted);
  font-size: var(--fs-sm) !important;
}

.pd-letter__hello {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  margin-top: 18px;
}

.pd-letter__hello .pd-hello__video {
  flex: 0 0 auto;
}

.pd-letter__hello .pd-hi__bubble {
  width: clamp(96px, 14vw, 128px);
}

.pd-letter__hello .pd-hi__label {
  font-size: 11px;
}

/* riso headline: orange ink with the blue plate slightly off-register */
.pd-letter__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.05;
  color: var(--ap-cream);
  text-shadow: 2px 2px 0 color-mix(in oklab, var(--riso-orange) 70%, transparent);
}

/* the cover (back of fold 2) */
.pd-letter__cover {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-radius: 6px;
  background-color: #F4E9D6;
}

.pd-letter__cover-to {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: clamp(22px, 3vw, 30px) !important;
  line-height: 1.1 !important;
  text-shadow: 2px 1px 0 color-mix(in oklab, var(--riso-blue) 55%, transparent);
}

.pd-letter__cover-from {
  margin: 12px 0 0 !important;
  color: var(--ap-cream-muted);
  font-size: var(--fs-sm) !important;
}

.pd-letter__stamp {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 84px;
  height: 96px;
  border: 2px dashed color-mix(in oklab, var(--riso-orange) 70%, transparent);
  border-radius: 4px;
  transform: rotate(4deg);
}

.pd-letter__stamp .pd-orb {
  cursor: default;
}

.pd-letter__post {
  position: absolute;
  right: 92px;
  top: 74px;
  padding: 4px 10px;
  border: 2px solid color-mix(in oklab, var(--riso-blue) 70%, transparent);
  border-radius: 999px;
  color: var(--riso-blue);
  font: 700 11px / 1 var(--font-label);
  letter-spacing: 0.08em;
  transform: rotate(-8deg);
  mix-blend-mode: multiply;
}

.pd-letter__hint {
  position: absolute;
  left: clamp(20px, 3.4vw, 32px);
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ap-cream-quiet);
  font: 500 var(--fs-xs) / 1 var(--font-label);
}

.pd-letter__hint i {
  animation: pd-cue 1.8s ease-in-out infinite;
}

/* fold 3: closing + signature */
.pd-letter__close {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pd-letter__sign {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 2px;
}

.pd-letter__sign > span:first-child {
  color: var(--ap-cream-muted);
  font-size: var(--fs-sm);
}

.pd-letter__name {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1;
  color: var(--riso-orange);
  text-shadow: 3px 2px 0 color-mix(in oklab, var(--riso-blue) 60%, transparent);
}

.pd-letter__swash {
  width: 200px;
  height: 34px;
  margin-top: -4px;
  overflow: visible;
}

.pd-letter__swash path {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 260;
  stroke-dashoffset: calc(260 * (1 - var(--sig, 1)));
}

.pd-letter__swash .ink1 { stroke: var(--riso-orange); }
.pd-letter__swash .ink2 { stroke: var(--riso-blue); opacity: 0.6; transform: translate(2px, 2px); mix-blend-mode: multiply; }

@media (max-width: 640px) {
  .pd-letter__hello { flex-direction: row; }
  .pd-letter__post { display: none; }
  .pd-letter__stamp { width: 70px; height: 80px; }
  .pd-letter__stamp .pd-orb { --size: 52px !important; }
}

/* Letter opens the page; the headline follows as its own section */
.pitch-page .pd-letter + .ap-hero {
  min-height: 0;
  padding: clamp(48px, 7vw, 96px) 0 var(--pd-section-y);
}

.pitch-page .pd-letter.is-folding {
  margin-bottom: 0;
}

/* ---------- Letter intro: nothing but the letter on a riso wash ----------
   While the letter is on screen the header steps away (html.pd-intro, set by
   coss-pitch.js) and the letter sits on a deep riso-blue raster. Opening the
   letter fades the wash (--wash) to reveal the light paper of the page. The
   header comes back once the headline section reaches the screen. */
html.pd-has-letter .pitch-page .detail-topbar {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  transition: transform 0.5s var(--ap-ease-expo, cubic-bezier(0.16, 1, 0.3, 1)), opacity 0.35s ease;
}

html.pd-intro .pitch-page .detail-topbar {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

html.pd-has-letter .pd-letter.is-folding .pd-letter__stage {
  top: 0;
  height: 100vh;
  height: 100svh;
}

.pd-letter {
  isolation: isolate;
}

/* chromatography bleed (generated in the riso inks, assets/images/dessn/riso-bleed.webp):
   at the top of the page the ink floods the screen; opening the letter drains
   it to a faint band at the bottom of a white page (--wash 1 → 0). */
.pd-letter__stage { position: relative; }

.pd-letter__wash {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, #000 80%, transparent);
}

.pd-letter__wash::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 160%;
  /* the ink front sits 16% down the image: wash 1 puts it above the screen, wash 0 near the bottom */
  top: calc(62% - 92% * var(--wash, 1));
  opacity: calc(0.5 + 0.5 * var(--wash, 1));
  background: url("/assets/images/dessn/riso-bleed.webp") center top / cover no-repeat;
}

.pitch-page--unifyapps .pd-letter__wash::before {
  background-image: url("/assets/images/unifyapps/riso-bleed.webp");
}

/* crisp print grain on top of the smooth ink, drawn by the browser so it never pixelates */
.pd-letter__wash::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.98 0 0 0 0 0.97 0 0 0 0 0.94 0 0 0 7 -3.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: 0.3;
}

/* real 3D: perspective lives on the paper so every fold inside gets it */
.pd-letter.is-folding .pd-letter__paper {
  transform: scale(var(--fit, 1));
  transform-origin: 50% 0;
  perspective: 2400px;
  perspective-origin: 50% 50%;
}

@media (max-width: 600px) {
  .pd-letter.is-folding .pd-letter__paper { perspective: 2000px; }
}


/* paper lifts off the dark wash */
html.pd-has-letter .pd-letter .pd-letter__paper {
  filter: drop-shadow(0 calc(10px + 18px * var(--wash, 1)) calc(24px + 16px * var(--wash, 1)) rgba(5, 20, 40, calc(0.12 + 0.33 * var(--wash, 1))));
}

.pd-reel[hidden] { display: none; }

/* the letter gets its own moment: real space before the headline */
.pitch-page .pd-letter.is-folding { margin-bottom: var(--pd-section-y); }

@media (prefers-reduced-motion: reduce) {
  html.pd-has-letter .pitch-page .detail-topbar { transition: none; }
  html.pd-has-letter .pd-letter { padding-block: 72px; }
}

/* ---------- Letter snapshots: taped prints from the SF show and tell ---------- */
.pd-hello__video { cursor: default; }

.pd-letter__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(150px, 26vw, 200px);
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
}

.pd-letter__close-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  height: 100%;
}

.pd-snaps {
  position: relative;
  display: grid;
}

.pd-snap {
  --tilt: -4deg;
  position: relative;
  margin: 0;
  padding: 5px 5px 0;
  background: #FFFDF8;
  box-shadow: 0 1px 0 rgba(42, 39, 36, 0.08), 0 8px 18px rgba(42, 39, 36, 0.16);
  transform: rotate(var(--tilt));
  transition: transform 0.45s var(--ap-ease-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

/* washi tape in riso yellow */
.pd-snap::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 46%;
  height: 16px;
  transform: translateX(-50%) rotate(-3deg);
  background: color-mix(in oklab, var(--riso-yellow) 70%, transparent);
  mix-blend-mode: multiply;
  z-index: 1;
}

.pd-snap img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
}

.pd-snap figcaption {
  padding: 5px 2px 6px;
  color: var(--ap-cream-muted);
  font: 500 10px / 1.25 var(--font-label);
  text-align: center;
}

.pd-snap--a { --tilt: -5deg; width: 72%; }

.pd-snap--b {
  --tilt: 4deg;
  width: 68%;
  justify-self: end;
  margin-top: -36%;
}
.pd-snap--b::before { background: color-mix(in oklab, var(--riso-pink) 45%, transparent); }
.pd-snap--b img { object-position: 60% 50%; }

.pd-snap--demo { --tilt: 3deg; }
.pd-snap--demo img { aspect-ratio: 3 / 2; }
.pd-snap--demo::before { background: color-mix(in oklab, var(--riso-orange) 45%, transparent); }

@media (hover: hover) {
  .pd-snap:hover {
    transform: rotate(0deg) scale(1.06);
    z-index: 2;
  }
}

/* phones: text across the full width, pictures in a row under it, so the open
   letter still fits one screen */
@media (max-width: 600px) {
  .pd-letter__row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .pd-snaps { grid-template-columns: 1fr 1fr; gap: 14px; padding-inline: 4px; }
  .pd-snap--a, .pd-snap--b { width: auto; margin-top: 0; }
  .pd-letter__close { grid-template-columns: minmax(0, 1fr) 46%; align-items: end; }
  .pd-letter__close-copy { display: contents; }
  .pd-letter__close-copy > p { grid-column: 1 / -1; }
  .pd-snap figcaption { font-size: 9px; }
  .pd-snap::before { height: 12px; top: -6px; }
  .pd-fold__face p { font-size: 15px; line-height: 1.6; }
}

/* photos: the width/height attributes must not fix the height */
.pd-snap img { height: auto; }

/* a taped print of a post instead of a photo (the UnifyApps letter quotes Rohan's hiring post) */
.pd-snap--post { --tilt: 3deg; padding: 0 0 2px; }
.pd-snap--post::before { background: color-mix(in oklab, var(--riso-pink) 55%, transparent); }

.pd-post {
  display: grid;
  gap: 8px;
  padding: 14px 14px 10px;
  color: var(--ap-cream);
  font: 400 12px / 1.45 var(--font-body);
  text-align: left;
}

.pd-post__who {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 11px / 1.2 var(--font-label);
}

.pd-post__who i {
  font-size: 15px;
}

.pd-post__who span {
  color: var(--ap-cream-quiet);
  font-weight: 500;
}

.pd-letter .pd-post p {
  margin: 0;
  font: inherit;
  letter-spacing: 0;
}

.pd-letter .pd-post .pd-post__who {
  font: 600 11px / 1.2 var(--font-label);
}

.pd-post mark {
  padding: 0 2px;
  background: color-mix(in oklab, var(--riso-yellow) 75%, transparent);
  color: inherit;
}

@media (max-width: 600px) {
  .pd-letter .pd-post { padding: 12px 10px 8px; font-size: 12px; }
}

/* ---------- Letter depth: the outside of the paper is printed, the inside is plain ----------
   The outside (cover + back of fold 3) carries a riso security-envelope print,
   so while a panel swings you can tell outside from inside. Panels darken as
   they turn away from the light (--shade = 1 folded, 0 open). */
.pd-letter__cover,
.pd-fold--3 > .pd-fold__back,
.pd-fold--4 > .pd-fold__back {
  background-color: #F1E3CB;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.3 0 0 0 0 0.15 0 0 0 0.22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(-45deg, rgba(0, 120, 191, 0.06) 0 2px, transparent 2px 10px);
  background-size: 200px 200px, auto;
}

/* inside of the outer panel: the denser blue lining, like an envelope */
.pd-fold--3 > .pd-fold__back,
.pd-fold--4 > .pd-fold__back {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.3 0 0 0 0 0.15 0 0 0 0.22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(-45deg, rgba(0, 120, 191, 0.16) 0 3px, transparent 3px 11px),
    repeating-linear-gradient(45deg, rgba(255, 108, 47, 0.05) 0 2px, transparent 2px 15px);
  background-size: 200px 200px, auto, auto;
  border-radius: 0 0 6px 6px;
}

/* a paper edge under the folded stack */
.pd-letter.is-folding .pd-letter__cover {
  box-shadow: inset 0 -2px 0 rgba(60, 40, 20, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* stronger turn shading on the inside faces */
.pd-fold--2 > .pd-fold__face::after,
.pd-fold--3 > .pd-fold__face::after,
.pd-fold--4 > .pd-fold__face::after {
  background: linear-gradient(to bottom, rgba(60, 40, 20, 0.34), rgba(60, 40, 20, 0.12));
}

/* the outside darkens as it swings past the light */
.pd-fold--2 > .pd-fold__back::after,
.pd-fold--3 > .pd-fold__back::after,
.pd-fold--4 > .pd-fold__back::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(to top, rgba(40, 25, 10, 0.4), rgba(40, 25, 10, 0.12));
  opacity: calc((1 - var(--shade, 1)) * 1.2);
}

/* signature: handwritten, small, plain ink */
.pd-letter__name {
  font-family: "Homemade Apple", cursive;
  font-weight: 400;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.6;
  color: var(--ap-cream);
  text-shadow: none;
  margin-top: 4px;
}

/* fourth panel: the letter now folds in four */
.pd-fold--4 {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  transform-origin: 50% 0;
  --shade: var(--s4, 0);
}

.pd-letter.is-folding .pd-fold--4 { transform: translateZ(1px) rotateX(var(--a4, 0deg)); }

/* only the last panel gets rounded bottom corners */
.pd-fold--3 > .pd-fold__face,
.pd-fold--3 > .pd-fold__back { border-radius: 0; }
.pd-fold--4 > .pd-fold__face,
.pd-fold--4 > .pd-fold__back { border-radius: 0 0 6px 6px; }

.pd-letter__mid {
  display: flex;
  align-items: center;
}

/* ---------- Balance long project lists: the picture travels with the list ----------
   With seven projects the list runs much taller than the picture, leaving a
   blank right column. On desktop the stage sticks just under the pills. */
@media (min-width: 901px) {
  .pitch-page .ap-slab .ap-stage {
    position: sticky;
    top: calc(var(--detail-nav-h) + 96px);
  }
}

/* ======================================================================
   UnifyApps v2 (2026-10-09): an open letter instead of the folding one,
   content readable at once, flatter paper behind text, phone fixes.
   Generic lessons live under .pitch-page--calm (opt-in on the body; every new
   pitch page gets it from templates/pitch-page.html). Company-only rules stay
   under .pitch-page--<company>.
   ====================================================================== */

/* ---------- The note: a lean, tall letter that unfolds in four panels ----------
   Same 3D fold as /dessn (coss-pitch.js), narrower and taller, like a note.
   Like /dessn, the header stays away until the next section reaches the screen. */
.pitch-page--unifyapps .pd-letter--note {
  --pd-min-fit: 0.8;
  width: min(100% - 32px, 480px);
}

.pd-letter--note .pd-fold__face p {
  color: var(--ap-cream);
}

.pd-letter--note .pd-fold__face,
.pd-letter--note .pd-fold__back {
  padding: clamp(16px, 2.4vw, 24px) clamp(20px, 3vw, 28px);
}

/* inside flaps are plain paper; only the envelope cover carries the print */
.pd-letter--note .pd-fold--3 > .pd-fold__back,
.pd-letter--note .pd-fold--4 > .pd-fold__back {
  background-color: #F3EBDD;
  background-image: none;
}

.pitch-page--unifyapps .pd-letter.is-folding {
  height: 340vh;
  margin-bottom: 0;
}

.pd-letter--note .pd-letter__hello .pd-hi__bubble {
  width: clamp(72px, 12vw, 92px);
}

/* plain photo: a hairline like the tiles and cards, no riso ring */
.pitch-page--calm .pd-hi__bubble,
.pitch-page--calm .pd-hello__video:hover .pd-hi__bubble,
.pitch-page--calm .pd-book__host img {
  box-shadow: 0 0 0 1px var(--ap-line);
  transform: none;
}

.pd-letter--note .pd-letter__title {
  font-size: clamp(30px, 4vw, 40px);
}

.pd-letter--note .pd-letter__mid p,
.pd-letter--note .pd-letter__close p {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.55;
}

.pd-letter--note .pd-letter__mid b {
  font-weight: 650;
  color: var(--accent);
}

.pd-letter--note .pd-letter__close {
  gap: 8px;
  justify-content: flex-start;
}

.pd-letter--note .pd-letter__name {
  font-size: clamp(22px, 2.6vw, 28px);
}

.pd-letter--note .pd-letter__cover {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  background-color: var(--paper);
  background-image: none;
}

.pd-letter--note .pd-letter__cover-to {
  margin: 0;
  max-width: 22ch;
  color: var(--ap-cream);
  font: 500 clamp(22px, 2.6vw, 28px) / 1.2 var(--font-display);
  text-shadow: none;
}

.pd-letter--note .pd-letter__cover-from {
  margin: 0;
  color: var(--ap-cream-muted);
  font: 500 var(--fs-sm) / 1.4 var(--font-label);
}

/* the ink ends in the same wavy bleed as its top edge, not a soft blur:
   a flipped copy of the bleed's front masks the bottom and adds its fringe */
.pitch-page--unifyapps .pd-letter__wash {
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 22vw) no-repeat,
    url("/assets/images/unifyapps/riso-bleed-edge.webp") bottom / 100% auto no-repeat;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 22vw) no-repeat,
    url("/assets/images/unifyapps/riso-bleed-edge.webp") bottom / 100% auto no-repeat;
}

.pd-letter__wash-edge {
  position: absolute;
  inset: 0;
  opacity: var(--wash, 1);
  background: url("/assets/images/unifyapps/riso-bleed-edge.webp") bottom / 100% auto no-repeat;
  /* only the fringe shows, so no seam where the overlay starts */
  -webkit-mask-image: linear-gradient(to bottom, transparent calc(100% - 18vw), #000 calc(100% - 9vw));
  mask-image: linear-gradient(to bottom, transparent calc(100% - 18vw), #000 calc(100% - 9vw));
}

/* P.S. under the signature carries the third number */
.pd-letter__ps {
  margin: 0;
  color: var(--ap-cream-muted) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.pd-nw { white-space: nowrap; }

.pd-letter__ps b {
  color: var(--accent);
  font-weight: 650;
}

.pd-open__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.pd-open__stats > div {
  padding: 12px 14px;
  border: 1px solid var(--ap-line);
  border-radius: 8px;
  background: #fff;
}

.pd-open__stats dt {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
  font: 500 clamp(17px, 1.8vw, 22px) / 1.15 var(--font-display);
  color: var(--ap-cream);
}

.pd-open__stats dt span { white-space: nowrap; }

.pd-open__arrow {
  font-style: normal;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--accent);
}

.pd-open__stats dd {
  margin: 6px 0 0;
  color: var(--ap-cream-muted);
  font: 500 12px / 1.35 var(--font-label);
}

.pd-open__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-foreground);
  font: 600 var(--fs-sm) / 1 var(--font-label);
  text-decoration: none;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 22%, transparent);
}

.pd-open__cta:hover { background: var(--accent-hover); }

.pd-open__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font: 600 var(--fs-sm) / 1 var(--font-label);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pd-open__more:focus-visible,
.pd-open__cta:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

.pitch-page--unifyapps .pd-hero {
  padding-top: clamp(24px, 3vw, 48px);
}

@media (max-width: 600px) {
  .pd-open__stats { gap: 6px; }
  .pd-open__stats > div { padding: 9px 8px; }
  .pd-open__stats dt { font-size: 15px; }
  .pd-open__stats dd { font-size: 10.5px; }
  .pd-letter--note .pd-letter__mid p,
  .pd-letter--note .pd-letter__close p { font-size: 16px; }
  }

/* ---------- No blank gaps: content is there on arrival, no reveal fades ---------- */
.pitch-page--calm .pd-head-reveal .pd-cluster,
.pitch-page--calm .pd-head-reveal .ap-section__title,
.pitch-page--calm .pd-head-reveal .ap-section__lead,
.pitch-page--calm .pd-head-reveal .ap-faq__title,
.pitch-page--calm .pd-head-reveal .pd-book__title,
.pitch-page--calm .pd-head-reveal .pd-book__intro > p,
.pitch-page--calm .ap-section[data-ap-reveal] .ap-section__title,
.pitch-page--calm .ap-section[data-ap-reveal] .ap-slab {
  opacity: 1;
  transform: none;
  transition: none;
}

.pitch-page--calm .pd-head-reveal .pd-cluster .pd-orb { scale: 1; }

/* ---------- Flat paper behind text, darker body copy ---------- */
.pitch-page--calm {
  --pd-section-y: clamp(72px, 9vw, 128px);
  --ap-cream-muted: rgba(29, 27, 24, 0.84);
  --ap-cream-quiet: rgba(29, 27, 24, 0.68);
}

.pitch-page--calm::after,
.pitch-page--calm .pd-band::before {
  display: none;
}

/* phones: list items stay at full strength, nothing waits to be scrolled to */
@media (max-width: 900px) {
  .pitch-page--calm .ap-item { opacity: 1; }
}

/* ---------- More link under the Aampe case studies ---------- */
.pd-more {
  width: min(100% - 32px, 1200px);
  margin: clamp(28px, 4vw, 44px) auto 0;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--accent-soft);
  text-align: center;
}

/* ---------- Phones: edge fades on the section pills ---------- */
@media (max-width: 900px) {
  .pitch-page--calm .ap-tabs__track.is-scrollable {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  }
  .pitch-page--calm .ap-tabs__track.is-scrollable.at-start {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%);
  }
  .pitch-page--calm .ap-tabs__track.is-scrollable.at-end {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px);
    mask-image: linear-gradient(to right, transparent 0, #000 28px);
  }
  .pitch-page--calm .ap-tabs__track.is-scrollable.at-start.at-end {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ---------- Tap-to-expand screenshots ---------- */
.pd-zoomable { cursor: zoom-in; }

.pd-zoomable:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: -2px;
}

.pd-zoom {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-out;
}

.pd-zoom::backdrop { background: rgba(12, 14, 10, 0.97); }

.pd-zoom[open] {
  display: grid;
  place-items: center;
}

.pd-zoom img {
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 88px);
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}

.pd-zoom__close {
  position: fixed;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

/* ---------- Sprint plan: the week list replaces the day grid on phones ---------- */
.pd-gantt__weeks { display: none; }

@media (max-width: 600px) {
  .pd-gantt:has(.pd-gantt__weeks) .pd-gantt__grid,
  .pd-gantt:has(.pd-gantt__weeks) .pd-gantt__legend {
    display: none;
  }
  .pd-gantt__weeks {
    display: grid;
    gap: 14px;
    margin-top: 12px;
  }
  .pd-gantt__week-title {
    margin: 0 0 6px;
    font: 600 var(--fs-xs) / 1 var(--font-label);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ap-cream-muted);
  }
  .pd-gantt__week ol {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .pd-gantt__week li {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff;
    border-left: 4px solid var(--riso-orange);
    font: 500 14px / 1.35 var(--font-body);
    color: var(--ap-cream);
  }
  .pd-gantt__week li.is-event {
    background: transparent;
    border-left-color: var(--riso-pink);
    box-shadow: inset 0 0 0 1px var(--ap-line);
  }
  .pd-gantt__when {
    color: var(--ap-cream-muted);
    font: 600 12px / 1.35 var(--font-label);
  }
}

/* ---------- UnifyApps v3: stack, channels, quotes, studios ---------- */

/* Tools I use: one row per step, logos beside it */
.pd-stack {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(16px, 2.4vw, 28px);
}

.pd-stack__row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) 2fr;
  gap: 8px 16px;
  align-items: center;
}

.pd-stack__step { margin: 0; display: grid; gap: 2px; }
.pd-stack__step b { font: 650 var(--fs-sm) / 1.2 var(--font-label); color: var(--ap-cream); }
.pd-stack__step span { font: 500 12px / 1.35 var(--font-label); color: var(--ap-cream-muted); }

.pd-stack .pd-logos__row { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-stack .pd-logos__tile { height: 40px; padding: 8px 12px; font-size: 13px; }

@media (max-width: 600px) {
  .pd-stack__row { grid-template-columns: 1fr; }
}

/* NX: the channels one canvas covers */
.pd-channels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.pd-channels li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--ap-line);
  color: var(--ap-cream);
  font: 600 12px / 1 var(--font-label);
}

.pd-channels i { font-size: 16px; color: var(--accent); }

/* simple quote cards */
.pd-quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(100% - 32px, 1000px);
  margin: var(--pd-content-gap) auto 0;
}

.pd-quote {
  display: grid;
  align-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 22px 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--ap-line);
}

.pd-quote blockquote {
  margin: 0;
  color: var(--ap-cream);
  font: 400 16px / 1.55 var(--font-body);
}

.pd-quote figcaption { display: grid; gap: 2px; font: 500 13px / 1.35 var(--font-label); color: var(--ap-cream-muted); }
.pd-quote figcaption b { color: var(--ap-cream); font-weight: 650; }

@media (max-width: 700px) {
  .pd-quotes { grid-template-columns: 1fr; }
}

/* Studios: one package, facts left, clients right */
.pd-studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  width: min(100% - 32px, 1200px);
  margin: var(--pd-content-gap) auto 0;
}

.pd-studio__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.pd-studio__stats > div {
  padding: 14px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--ap-line);
}

.pd-studio__stats dt { font: 500 clamp(20px, 2.2vw, 28px) / 1.1 var(--font-display); color: var(--ap-cream); }
.pd-studio__stats dd { margin: 6px 0 0; font: 500 12px / 1.35 var(--font-label); color: var(--ap-cream-muted); }

.pd-studio__did {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ap-cream);
  font: 400 16px / 1.5 var(--font-body);
}

.pd-studio__did b { font-weight: 650; color: var(--accent); }

.pd-studio__framer {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: 12px;
  background: var(--accent-soft);
}

.pd-studio__framer img { height: 22px; width: auto; justify-self: start; }
.pd-studio__framer p { margin: 0; color: var(--ap-cream); font: 400 15px / 1.5 var(--font-body); }
.pd-studio__framer blockquote { margin: 0; color: var(--ap-cream); font: 500 17px / 1.45 var(--font-display); }
.pd-studio__framer .pd-studio__cite { font: 500 13px / 1.3 var(--font-label); color: var(--ap-cream-muted); }

.pd-studio__clients .ap-window__frame { aspect-ratio: auto; }

@media (max-width: 900px) {
  .pd-studio { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .pd-studio__stats { gap: 6px; }
  .pd-studio__stats > div { padding: 10px 8px; }
  .pd-studio__stats dt { font-size: 18px; }
}

/* ---------- UnifyApps phones: a calm stack ----------
   Every item shows its own picture at once and stays still while you scroll:
   no entrance animation when an item becomes active, no fading text. */
@media (max-width: 900px) {
  .pitch-page--calm .ap-section.is-cards .ap-panel .ap-window,
.pitch-page--calm .ap-section.is-cards .ap-panel .ap-clip,
.pitch-page--calm .ap-section.is-cards .ap-panel .ap-stat {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .pitch-page--calm .ap-item,
.pitch-page--calm .ap-item__body {
    opacity: 1;
    transition: none;
  }

  .pitch-page--calm .ap-item:last-child {
    margin-bottom: 0;
  }

  /* the picture sits under the role line inside the body, so show it there too */
  .pitch-page--calm .ap-section.is-cards .ap-item .ap-panel,
.pitch-page--calm .ap-section.is-cards .ap-item .ap-panel[hidden] {
    display: flex;
    margin: 0 0 14px;
    padding: 10px;
    border-radius: 12px;
    background: var(--ap-ink-stage);
  }

  /* active and inactive items are the same size, so nothing moves */
  .pitch-page--calm .ap-item .ap-item__head,
.pitch-page--calm .ap-item.is-active .ap-item__head {
    padding: 22px 0 10px;
  }

  .pitch-page--calm .ap-section.is-cards .ap-panel .ap-stat {
    display: block;
    padding: 0;
    font-size: var(--fs-xs);
    line-height: 1.4;
  }
}

/* ======================================================================
   Builder (2026-10-12): /builder answers an open brief instead of writing
   to one company. Calm v2 rules above apply too. The page itself was
   reworked into a conversion page on 2026-10-13 (see the end of this file).
   ====================================================================== */
/* Tools strip under "What you get back" */
.pd-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: min(100% - 32px, 900px);
  margin: var(--pd-content-gap) auto 0;
  padding: 0;
  list-style: none;
}

.pd-tools li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--ap-line);
  color: var(--ap-cream);
  font: 600 13px / 1 var(--font-label);
}

.pd-tools img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* A 4:5 reel inside the 16:9 stage: show it whole on a dark backdrop */
.pd-clip--portrait { background: #10140F; }

.pd-clip--portrait video { object-fit: contain; }

/* ======================================================================
   Builder motion studio (2026-10-13): the launch-video section wears the
   reels' own look (deep ink + the woven canvas tile baked from
   marketing/harness/weave.js), holds a masonry feed of motion pieces, and
   a hand-drawn flowchart generated by scripts/sync-builder-content.mjs.
   ====================================================================== */
.pitch-page--builder {
  --ap-cream: #16201B;
  --ap-cream-muted: rgba(22, 32, 27, 0.82);
  --ap-cream-quiet: rgba(22, 32, 27, 0.64);
  --ap-line: rgba(22, 32, 27, 0.12);
}

/* full-bleed like .pd-band: deep ink spreads to the window edges */
.pd-motion {
  position: relative;
  isolation: isolate;
  background: #121A16;
  color: var(--studio-cream);
  box-shadow: 0 0 0 100vmax #121A16;
  clip-path: inset(0 -100vmax);
}

.pd-motion__weave {
  position: absolute;
  inset: 0 -100vmax;
  z-index: -1;
  background: url("/assets/images/builder/weave.webp") 0 0 / 512px 512px;
  mix-blend-mode: overlay;
  opacity: 0.35;
  pointer-events: none;
}

.pd-motion .ap-section__title,
.pd-motion .bf__title { color: var(--studio-cream); }

.pd-motion .ap-section__lead,
.pd-motion .bf__lead { color: rgba(244, 242, 239, 0.78); }

.pd-motion .ap-link--primary {
  color: var(--studio-lime);
  text-decoration-color: color-mix(in oklab, var(--studio-lime) 55%, transparent);
}

.pd-motion :focus-visible { outline-color: var(--studio-lime); }

/* ---------- Masonry feed ---------- */
.pd-feed {
  max-width: 1200px;
  margin: var(--pd-content-gap) auto 0;
  columns: 3 280px;
  column-gap: 16px;
}

.pd-feed__item {
  break-inside: avoid;
  margin: 0 0 16px;
  border-radius: 12px;
  overflow: hidden;
  background: #1A2420;
  box-shadow: 0 0 0 1px rgba(244, 242, 239, 0.1), 0 18px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s var(--ap-ease-expo, ease), box-shadow 0.35s ease;
}

.pd-feed__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(207, 234, 85, 0.45), 0 24px 50px rgba(0, 0, 0, 0.45);
}

.pd-feed__play {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--ratio, 16 / 9);
  padding: 0;
  border: 0;
  background: #0E1411;
  cursor: pointer;
}

.pd-feed__play video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-feed__play:focus-visible {
  outline: 2px solid var(--studio-lime);
  outline-offset: -2px;
}

.pd-feed__sound {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--studio-lime);
  color: var(--studio-ink);
  font-size: 18px;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.pd-feed__item:hover .pd-feed__sound,
.pd-feed__play:focus-visible .pd-feed__sound {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .pd-feed__sound { opacity: 1; transform: none; }
}

.pd-feed__item figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 12px 14px 13px;
}

.pd-feed__item figcaption b {
  color: var(--studio-cream);
  font: 600 14px / 1.3 var(--font-label);
}

.pd-feed__item figcaption span {
  color: rgba(207, 234, 85, 0.85);
  font: 500 12px / 1.4 var(--font-label);
}

/* the prompt that starts it all: a lime card in the feed */
.pd-feed__prompt {
  padding: 20px 20px 18px;
  background: var(--studio-lime);
  box-shadow: none;
}

.pd-feed__prompt:hover { transform: none; box-shadow: none; }

.pd-feed__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--studio-ink);
  font: 650 var(--fs-xs) / 1 var(--font-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pd-feed__label i { font-size: 18px; }

.pd-feed__prompt blockquote {
  margin: 14px 0 0;
  color: var(--studio-ink);
  font: 500 clamp(18px, 1.6vw, 21px) / 1.4 var(--font-body);
}

.pd-feed__caret { color: var(--accent); font-weight: 700; }

.pd-feed__prompt figcaption {
  display: block;
  padding: 14px 0 0;
  color: var(--accent-hover);
  font: 400 14px / 1.6 "Homemade Apple", cursive;
}

@media (max-width: 600px) {
  .pd-feed { columns: 2; column-gap: 10px; }
  .pd-feed__item { margin-bottom: 10px; border-radius: 10px; }
  .pd-feed__item figcaption { padding: 9px 10px 10px; }
  .pd-feed__item figcaption b { font-size: 13px; }
  .pd-feed__prompt { padding: 14px; }
  .pd-feed__prompt blockquote { font-size: 15px; }
}

/* lightbox: a tile plays with sound, at its own shape */
.pd-feed-modal {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.pd-feed-modal::backdrop { background: rgba(10, 14, 12, 0.94); }

.pd-feed-modal[open] {
  display: grid;
  place-items: center;
}

.pd-feed-modal video {
  width: auto;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 96px);
  border-radius: 10px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(244, 242, 239, 0.12);
}

.pd-feed-modal__close {
  position: fixed;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(244, 242, 239, 0.14);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

/* ---------- Hand-drawn flowchart on a sheet of paper ---------- */
.bf {
  max-width: 1200px;
  margin: clamp(72px, 9vw, 128px) auto 0;
  text-align: center;
}

.bf__title {
  margin: 0;
  font: 500 clamp(26px, 3vw, 38px) / 1.15 var(--font-display);
  letter-spacing: 0;
  text-wrap: balance;
}

.bf__lead {
  max-width: 60ch;
  margin: 12px auto 0;
  font: 400 17px / 1.55 var(--font-body);
  text-wrap: pretty;
}

.bf-sheet {
  position: relative;
  margin: clamp(28px, 4vw, 44px) auto 0;
  padding: clamp(14px, 2.6vw, 34px);
  border-radius: 4px;
  background:
    radial-gradient(rgba(22, 32, 27, 0.12) 1px, transparent 1.4px) 0 0 / 22px 22px,
    var(--studio-cream);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.5);
  transform: rotate(-0.5deg);
}

/* two strips of lime tape holding the sheet */
.bf-sheet::before,
.bf-sheet::after {
  content: "";
  position: absolute;
  top: -12px;
  width: 96px;
  height: 26px;
  background: rgba(207, 234, 85, 0.82);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.bf-sheet::before { left: 8%; transform: rotate(-4deg); }
.bf-sheet::after { right: 8%; transform: rotate(3deg); }

.bf-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.bf-svg--tall { display: none; }

.bf-ink,
.bf-line,
.bf-head {
  fill: none;
  stroke: var(--studio-ink);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bf-ink--dash,
.bf-edge--dash .bf-line { stroke-dasharray: 7 7; }

.bf-fill { fill: #FBFAF7; }
.bf-mark { fill: var(--studio-lime); }
.bf-tape { fill: rgba(207, 234, 85, 0.75); }

.bf-edge--loop .bf-line,
.bf-edge--loop .bf-head { stroke: var(--accent); }

.bf-title {
  fill: var(--studio-ink);
  font: 500 22px var(--font-display);
}

.bf-title--sm { font-size: 18px; }

.bf-sub {
  fill: rgba(22, 32, 27, 0.68);
  font: 500 13px var(--font-label);
}

.bf-label,
.bf-note {
  fill: var(--accent);
  font: 400 14px "Homemade Apple", cursive;
}

/* the sketch draws itself in once, like a pen across the page */
.bf-sheet[data-bf-hidden] .bf-svg { clip-path: inset(0 100% 0 0); }

.bf-sheet .bf-svg { transition: clip-path 1.8s cubic-bezier(0.65, 0, 0.35, 1); }

.bf-notes { display: none; }

.bf__more { margin: clamp(24px, 3vw, 36px) 0 0; }

@media (max-width: 700px) {
  .bf-svg--wide { display: none; }
  .bf-svg--tall { display: block; max-width: 420px; margin: 0 auto; }
  .bf-sheet[data-bf-hidden] .bf-svg { clip-path: inset(0 0 100% 0); }
  .bf-sheet { transform: none; }
  .bf-notes {
    display: grid;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    text-align: left;
  }
  .bf-notes li {
    padding: 12px 14px;
    border-radius: 6px;
    background: var(--studio-lime);
    color: var(--studio-ink);
    font: 400 14px / 1.7 "Homemade Apple", cursive;
  }
  .bf-notes li:nth-child(odd) { transform: rotate(-0.8deg); }
  .bf-notes li:nth-child(even) { transform: rotate(0.6deg); }
}

@media (prefers-reduced-motion: reduce) {
  .bf-sheet[data-bf-hidden] .bf-svg { clip-path: none; }
  .pd-feed__item,
  .pd-feed__item:hover { transform: none; transition: none; }
}

/* ======================================================================
   Builder sections (2026-10-13): Nocoloco site chips (used in the Work
   section) and the stack with icons above the CTA.
   ====================================================================== */

/* ---------- Stack with icons, just above the CTA ---------- */
.pd-stackgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
}

.pd-stackgrid__group {
  padding: 18px 18px 20px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--ap-line);
}

.pd-stackgrid__step { display: grid; gap: 2px; margin: 0 0 14px; }
.pd-stackgrid__step b { color: var(--ap-cream); font: 500 20px / 1.2 var(--font-display); }
.pd-stackgrid__step span { color: var(--ap-cream-quiet); font: 500 13px / 1.35 var(--font-label); }

.pd-stackgrid ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

.pd-stackgrid li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 8px;
  border-radius: 999px;
  background: var(--ap-ink-raised);
  color: var(--ap-cream);
  font: 600 13px / 1 var(--font-label);
}

.pd-stackgrid li img,
.pd-stackgrid li i,
.pd-stackgrid__mono {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: contain;
}

.pd-stackgrid li i { background: var(--studio-ink); color: var(--studio-lime); font-size: 15px; }
.pd-stackgrid__mono { background: var(--accent); color: #fff; font: 700 13px / 1 var(--font-label); }

@media (max-width: 900px) {
  .pd-stackgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .pd-stackgrid { grid-template-columns: 1fr; }
}


/* ======================================================================
   Builder conversion pass (2026-10-13): ink + lime hero, the weekly offer,
   the ambiguity → clarity line, linked work cards, and an ink close.
   Every word comes from content/builder/page.md via sync-builder-content.mjs.
   ====================================================================== */
.pitch-page--builder .pd-hero--ink,
.pitch-page--builder .pd-book--ink {
  --ap-cream: #F4F2EF;
  --ap-cream-muted: rgba(244, 242, 239, 0.84);
  --ap-cream-quiet: rgba(244, 242, 239, 0.66);
  --ap-line: rgba(244, 242, 239, 0.16);
  --ap-line-strong: rgba(244, 242, 239, 0.32);
  --ap-ink-raised: rgba(244, 242, 239, 0.1);
  --ap-lime: #CFEA55;
  position: relative;
  isolation: isolate;
  background: #121A16;
  color: var(--studio-cream);
  box-shadow: 0 0 0 100vmax #121A16;
  clip-path: inset(0 -100vmax);
}

.pitch-page--builder .pd-hero--ink :focus-visible,
.pitch-page--builder .pd-book--ink :focus-visible { outline-color: var(--studio-lime); }

/* buttons: one filled lime primary, an outline secondary (after Made With GSAP + K72) */
.pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font: 650 16px / 1 var(--font-label);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.pd-btn i { font-size: 1.1em; }
.pd-btn:hover { transform: translateY(-1px); }
.pd-btn:active { transform: translateY(0); }

.pd-btn--lime {
  background: var(--studio-lime);
  color: #121A16;
  box-shadow: 0 10px 30px rgba(207, 234, 85, 0.18);
}

.pd-btn--lime:hover { background: #DAF27A; box-shadow: 0 14px 36px rgba(207, 234, 85, 0.28); }

/* on light paper the lime button keeps an ink edge so it never reads as a pale chip */
.pd-offerband .pd-btn--lime,
.pd-how .pd-btn--lime,
.pd-proofq .pd-btn--lime { box-shadow: inset 0 0 0 1.5px #121A16, 0 10px 24px rgba(22, 32, 27, 0.12); }

.pd-btn--outline {
  box-shadow: inset 0 0 0 1.5px rgba(244, 242, 239, 0.5);
  color: var(--studio-cream);
}

.pd-btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--studio-cream); background: rgba(244, 242, 239, 0.06); }

/* slots counter: filled dots are booked */
.pd-slots { display: inline-flex; gap: 4px; margin-right: 10px; vertical-align: middle; }
.pd-slots i { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; opacity: 0.7; }
.pd-slots i.is-booked { background: currentColor; opacity: 1; }

/* ---------- Hero ---------- */
.pitch-page--builder .pd-hero--ink {
  min-height: auto;
  padding: clamp(40px, 7vh, 88px) 0 clamp(48px, 8vh, 96px);
  text-align: left;
}

.pd-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  width: min(100%, 1200px);
  margin: 0 auto;
}

.pitch-page--builder .pd-hero--ink .pd-hero__label {
  display: inline-flex;
  align-items: center;
  margin: 0 0 26px;
  background: rgba(244, 242, 239, 0.08);
  box-shadow: inset 0 0 0 1px rgba(244, 242, 239, 0.14);
  color: var(--ap-cream-muted);
}

.pd-hero--ink .pd-hero__label .pd-slots,
.pd-book--ink .pd-hero__label .pd-slots { color: var(--studio-lime); }
.pd-hero--ink .pd-hero__label b,
.pd-book--ink .pd-hero__label b { color: var(--studio-cream); font-weight: 650; }

.pitch-page--builder .pd-hero--ink .ap-hero__title {
  max-width: 20ch;
  margin: 0;
  color: var(--studio-cream);
  font-size: clamp(36px, 3.9vw, 58px);
  line-height: 1.02;
  text-wrap: balance;
}

.pitch-page--builder .pd-hero--ink .ap-hero__deck {
  max-width: 34ch;
  margin: 26px 0 0;
  color: var(--ap-cream-muted);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.5;
}

.pd-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.pd-hero__offer {
  margin: 18px 0 0;
  color: var(--studio-cream);
  font: 600 15px / 1.4 var(--font-label);
}

.pd-hero__proof {
  display: grid;
  gap: 8px;
  margin: 26px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(244, 242, 239, 0.14);
  list-style: none;
  color: var(--ap-cream-quiet);
  font: 500 14px / 1.4 var(--font-label);
}

.pd-hero__proof li { position: relative; padding-left: 16px; }
.pd-hero__proof li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; border-radius: 50%; background: var(--studio-lime); }
.pd-hero__proof a { color: var(--studio-cream); text-decoration: underline; text-decoration-color: rgba(207, 234, 85, 0.6); text-underline-offset: 3px; }
.pd-hero__proof a:hover { text-decoration-color: var(--studio-lime); }

.pd-hero__media { margin: 0; }

.pd-hero__screen {
  overflow: hidden;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 0 0 1.5px rgba(207, 234, 85, 0.35), 0 40px 90px rgba(0, 0, 0, 0.5);
  rotate: 1deg;
}

.pd-hero__screen video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.pd-hero__media figcaption {
  margin: 18px 0 0;
  color: var(--ap-cream-quiet);
  font: 400 15px / 1.6 "Homemade Apple", cursive;
  text-align: right;
}

@media (max-width: 900px) {
  .pd-hero__grid { grid-template-columns: 1fr; }
  .pitch-page--builder .pd-hero--ink .ap-hero__title { max-width: 18ch; }
  .pd-hero__screen { rotate: 0deg; }
  .pd-hero__media figcaption { text-align: left; }
}

@media (max-width: 480px) {
  .pitch-page--builder :is(.pd-hero--ink, .pd-book--ink) .pd-hero__label span { display: inline; }
  .pitch-page--builder :is(.pd-hero--ink, .pd-book--ink) .pd-hero__label .pd-slots { display: inline-flex; }
  .pd-hero__actions .pd-btn { flex: 1 1 100%; }
}

/* ---------- Logos, problem, the offer card ---------- */
.pd-clients { max-width: 1100px; margin: 0 auto clamp(56px, 8vw, 96px); text-align: center; }
.pd-clients__label { margin: 0 0 18px; color: var(--ap-cream-quiet); font: 600 13px / 1 var(--font-label); letter-spacing: 0.04em; text-transform: uppercase; }
.pd-clients ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px clamp(28px, 4vw, 56px); margin: 0; padding: 0; list-style: none; }
.pd-clients img { display: block; height: 26px; width: auto; max-width: 140px; filter: brightness(0); opacity: 0.62; }

.pd-problem { max-width: 760px; margin: 0 auto; text-align: center; }

.pd-offer {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(22, 32, 27, 0.1), 0 30px 70px rgba(22, 32, 27, 0.1);
  text-align: left;
}

.pd-offer__price {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 14px;
  padding: clamp(28px, 4vw, 44px);
  background: #121A16;
  color: var(--studio-cream);
}

.pd-offer__kicker { margin: 0; color: rgba(244, 242, 239, 0.7); font: 600 13px / 1 var(--font-label); letter-spacing: 0.04em; text-transform: uppercase; }
.pd-offer__amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; min-width: 0; }
.pd-offer__amount b { color: var(--studio-cream); font: 500 clamp(44px, 6vw, 76px) / 1 var(--font-display); }
.pd-offer__amount span { white-space: nowrap; color: rgba(244, 242, 239, 0.7); font: 500 18px / 1 var(--font-label); }
.pd-offer__slots { display: flex; align-items: center; margin: 0 0 12px; color: var(--studio-lime); font: 600 14px / 1 var(--font-label); }
.pd-offer__price .pd-btn--lime { box-shadow: 0 10px 30px rgba(207, 234, 85, 0.18); }

.pd-offer__list { padding: clamp(28px, 4vw, 44px); color: var(--studio-ink); }
.pd-offer__label { margin: 0 0 12px; color: rgba(22, 32, 27, 0.62); font: 600 13px / 1 var(--font-label); letter-spacing: 0.04em; text-transform: uppercase; }
.pd-offer__list ul { display: grid; gap: 12px; margin: 0 0 26px; padding: 0; list-style: none; }
.pd-offer__list li, .pd-offer__launch { display: flex; gap: 12px; margin: 0; font: 400 17px / 1.45 var(--font-body); }
.pd-offer__list i { flex: 0 0 auto; margin-top: 2px; color: var(--accent); font-size: 20px; }
.pd-offer__launch { margin-bottom: 26px; }
.pd-offer__rule { margin: 0; padding-top: 18px; border-top: 1px solid rgba(22, 32, 27, 0.12); font: 650 15px / 1.4 var(--font-label); }

@media (max-width: 760px) {
  .pd-offer { grid-template-columns: 1fr; }
  .pd-offer__price .pd-btn { width: 100%; }
}

/* CTA row under a section: lime button + the price, every few screens */
.pd-cta-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; margin: clamp(36px, 5vw, 56px) auto 0; }
.pd-cta-row p { margin: 0; color: var(--ap-cream-quiet); font: 500 15px / 1.4 var(--font-label); }
.pd-cta-row b { color: var(--ap-cream); font-weight: 650; }
.pd-motion .pd-cta-row p { color: rgba(244, 242, 239, 0.72); }
.pd-motion .pd-cta-row b { color: var(--studio-cream); }

/* ---------- Ambiguity → clarity line ---------- */
.pd-arc { max-width: 1200px; margin: 0 auto; }
.sc-svg { display: block; width: 100%; height: auto; overflow: visible; }
.sc-svg--tall { display: none; max-width: 360px; margin: 0 auto; }

.sc-line {
  fill: none;
  stroke: var(--studio-ink);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* the dash is longer than the path, so browsers' length rounding never trims the tail */
  stroke-dasharray: 1.25 1.25;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 3.2s cubic-bezier(0.45, 0, 0.25, 1);
}

.sc-line--second { stroke-width: 1.2; opacity: 0.4; transition-duration: 3.6s; }
.sc-dot { fill: var(--studio-lime); stroke: var(--studio-ink); stroke-width: 2; }
.sc-tick { fill: none; stroke: rgba(22, 32, 27, 0.4); stroke-width: 1.2; stroke-dasharray: 3 4; }
.sc-label { fill: var(--studio-ink); font: 600 15px var(--font-label); }
.sc-num { fill: var(--accent); font-weight: 700; }
.sc-word { fill: rgba(22, 32, 27, 0.62); font: 400 26px "Homemade Apple", cursive; }
.sc-word--clarity { fill: var(--accent); }

.sc-dot, .sc-tick, .sc-label, .sc-word--clarity { transition: opacity 0.6s ease 0s; }

.pd-arc[data-pd-arc-hidden] .sc-line { stroke-dashoffset: 1.25; }
.pd-arc[data-pd-arc-hidden] :is(.sc-dot, .sc-tick, .sc-label, .sc-word--clarity) { opacity: 0; }
.pd-arc:not([data-pd-arc-hidden]) :is(.sc-dot, .sc-tick, .sc-label) { transition-delay: 1.6s; }
.pd-arc:not([data-pd-arc-hidden]) .sc-word--clarity { transition-delay: 2.8s; }

.pd-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1200px;
  margin: clamp(28px, 4vw, 44px) auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.pd-steps li { padding: 22px 22px 24px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(22, 32, 27, 0.1); }
.pd-steps__num { color: var(--accent); font: 700 13px / 1 var(--font-label); }
.pd-steps__when { margin: 10px 0 4px; color: rgba(22, 32, 27, 0.62); font: 600 12px / 1 var(--font-label); letter-spacing: 0.04em; text-transform: uppercase; }
.pd-steps h3 { margin: 0 0 8px; color: var(--studio-ink); font: 500 22px / 1.15 var(--font-display); }
.pd-steps p:last-child { margin: 0; color: rgba(22, 32, 27, 0.82); font: 400 15px / 1.55 var(--font-body); }

.pd-week { max-width: 1200px; margin: 18px auto 0; text-align: left; }
.pd-week__label { margin: 0 0 10px; color: rgba(22, 32, 27, 0.62); font: 600 12px / 1 var(--font-label); letter-spacing: 0.04em; text-transform: uppercase; }
.pd-week ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; overflow: hidden; border-radius: 14px; background: #121A16; list-style: none; }
.pd-week li { display: grid; gap: 6px; padding: 16px 18px; border-left: 1px solid rgba(244, 242, 239, 0.12); color: rgba(244, 242, 239, 0.84); font: 500 14px / 1.35 var(--font-label); }
.pd-week li:first-child { border-left: 0; }
.pd-week li b { color: var(--studio-lime); font-weight: 700; }
.pd-week li:last-child { background: rgba(207, 234, 85, 0.12); }

@media (max-width: 1000px) {
  .pd-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .sc-svg--wide { display: none; }
  .sc-svg--tall { display: block; }
  .sc-word { font-size: 24px; }
  .sc-label { font-size: 16px; }
}

@media (max-width: 640px) {
  .pd-steps { grid-template-columns: 1fr; }
  .pd-week ol { grid-template-columns: 1fr; }
  .pd-week li { grid-template-columns: 52px 1fr; border-left: 0; border-top: 1px solid rgba(244, 242, 239, 0.12); }
  .pd-week li:first-child { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sc-line, .sc-dot, .sc-tick, .sc-label, .sc-word--clarity { transition: none; }
}

/* ---------- Work: linked cards in place of the long sections ---------- */
.pd-work__feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  max-width: 1200px;
  margin: 0 auto 18px;
  overflow: hidden;
  border-radius: 18px;
  background: #121A16;
  color: var(--studio-cream);
  text-align: left;
  text-decoration: none;
  box-shadow: 0 30px 70px rgba(22, 32, 27, 0.16);
}

.pd-work__shot { display: block; overflow: hidden; background: #DDD9D2; }
.pd-work__shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ap-ease-expo, ease); }
.pd-work__feature .pd-work__shot { aspect-ratio: auto; min-height: 340px; }
.pd-work__feature:hover img, .pd-work__card:hover img { transform: scale(1.03); }

.pd-work__text { display: grid; align-content: start; gap: 10px; padding: clamp(22px, 3vw, 40px); }
.pd-work__kicker { color: var(--accent); font: 650 12px / 1.2 var(--font-label); letter-spacing: 0.04em; text-transform: uppercase; }
.pd-work__feature .pd-work__kicker { color: var(--studio-lime); }
.pd-work__title { font: 500 clamp(28px, 3vw, 40px) / 1.08 var(--font-display); }
.pd-work__body { color: rgba(22, 32, 27, 0.82); font: 400 15px / 1.55 var(--font-body); }
.pd-work__feature .pd-work__body { color: rgba(244, 242, 239, 0.82); font-size: 17px; }

.pd-work__stats { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 8px; color: rgba(244, 242, 239, 0.7); font: 500 13px / 1.3 var(--font-label); }
.pd-work__stats span { display: grid; gap: 2px; }
.pd-work__stats b { color: var(--studio-cream); font: 500 30px / 1 var(--font-display); }
.pd-work__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--studio-lime); font: 650 15px / 1 var(--font-label); }

.pd-work__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1200px; margin: 0 auto; padding: 0; list-style: none; }

.pd-work__card {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  color: var(--studio-ink);
  text-align: left;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(22, 32, 27, 0.1), 0 18px 40px rgba(22, 32, 27, 0.06);
  transition: box-shadow 0.2s ease;
}

.pd-work__card:hover { box-shadow: 0 0 0 1.5px var(--accent), 0 22px 46px rgba(22, 32, 27, 0.1); }
.pd-work__card .pd-work__shot { aspect-ratio: 16 / 10; }
.pd-work__card .pd-work__text { padding: 18px 20px 22px; gap: 8px; }
.pd-work__name { display: flex; justify-content: space-between; gap: 10px; font: 500 22px / 1.15 var(--font-display); }
.pd-work__name i { flex: 0 0 auto; color: var(--accent); font-size: 18px; }






@media (max-width: 1000px) {
  .pd-work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .pd-work__feature { grid-template-columns: 1fr; }
  .pd-work__feature .pd-work__shot { min-height: 0; aspect-ratio: 16 / 10; }
  .pd-work__grid { grid-template-columns: 1fr; }
}

/* ---------- Quotes (one bolded phrase each) and why a week works ---------- */
.pd-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1200px; margin: 0 auto; padding: 0; list-style: none; text-align: left; }
.pd-quotes figure { display: grid; gap: 18px; height: 100%; margin: 0; padding: 24px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(22, 32, 27, 0.1); }
.pd-quotes blockquote { margin: 0; color: rgba(22, 32, 27, 0.8); font: 400 17px / 1.55 var(--font-body); }
.pd-quotes blockquote b { color: var(--studio-ink); font-weight: 650; background: linear-gradient(transparent 58%, rgba(207, 234, 85, 0.7) 58%); }
.pd-quotes figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.pd-quotes figcaption img, .pd-quotes__mono { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.pd-quotes__mono { display: grid; place-items: center; background: var(--accent); color: var(--studio-cream); font: 600 18px / 1 var(--font-display); }
.pd-quotes figcaption > span:last-child { display: grid; color: rgba(22, 32, 27, 0.62); font: 500 13px / 1.35 var(--font-label); }
.pd-quotes figcaption b { color: var(--studio-ink); font-weight: 650; }

.pd-why { max-width: 760px; margin: clamp(56px, 8vw, 96px) auto 0; text-align: center; }

@media (max-width: 900px) {
  .pd-quotes { grid-template-columns: 1fr; }
}

/* ---------- Close: ink booking section with cross-sells ---------- */
.pitch-page--builder .pd-book--ink {
  width: auto;
  padding: clamp(64px, 10vw, 128px) max(16px, calc((100% - 1100px) / 2));
  row-gap: clamp(40px, 5vw, 64px);
}

.pd-book--ink .pd-book__title { color: var(--studio-cream); }
.pd-book--ink .pd-book__intro .pd-hero__label { display: inline-flex; align-items: center; width: fit-content; margin: 0 0 22px; background: rgba(244, 242, 239, 0.08); box-shadow: inset 0 0 0 1px rgba(244, 242, 239, 0.14); }
.pd-book__price { margin-top: 14px !important; color: var(--studio-cream) !important; font: 600 15px / 1.4 var(--font-label) !important; }
.pd-book--ink .pd-book__alt a, .pd-book--ink .pd-book__alt button { color: var(--studio-cream); }
.pd-book--ink .pd-book__alt i { color: var(--studio-lime); }


@media (max-width: 900px) {
  .pitch-page--builder .pd-book--ink { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
}

.pd-book--ink .pd-book__intro > .pd-hero__label { max-width: none; padding: 7px 14px; color: var(--ap-cream-muted); font: 500 var(--fs-sm) / 1 var(--font-label); }
.pitch-page--builder .pd-book__go { color: #121A16; }
.pd-work__card .pd-work__shot img { object-position: left top; }

/* the close: one cross-sell, full width, and an ink footer that carries straight on from #talk */

.pitch-page--builder .ap-footer {
  margin-top: 0;
  border-top: 1px solid rgba(244, 242, 239, 0.12);
  background: #121A16;
  color: rgba(244, 242, 239, 0.72);
}

.pitch-page--builder .ap-footer .coss-footer__copy { color: var(--studio-cream); }
.pitch-page--builder .ap-footer .coss-footer__meta { color: rgba(244, 242, 239, 0.6); }
.pitch-page--builder .ap-footer .coss-button--ghost { color: rgba(244, 242, 239, 0.84); }
.pitch-page--builder .ap-footer .coss-button--ghost:hover { background: rgba(244, 242, 239, 0.08); color: var(--studio-cream); }
.pitch-page--builder .ap-footer .coss-footer__current { color: var(--studio-lime); }
.pitch-page--builder .ap-footer :focus-visible { outline-color: var(--studio-lime); }

/* story order (2026-10-13): logos sit at the foot of the hero, "why two weeks" sits under the price */
.pd-hero--ink .pd-clients { position: relative; width: min(100%, 1200px); margin: clamp(48px, 7vh, 80px) auto 0; padding-top: 28px; border-top: 1px solid rgba(244, 242, 239, 0.12); text-align: left; }
.pd-hero--ink .pd-clients__label { color: rgba(244, 242, 239, 0.6); }
.pd-hero--ink .pd-clients ul { justify-content: space-between; gap: 18px 32px; }
.pd-hero--ink .pd-clients img { height: 24px; filter: brightness(0) invert(1); opacity: 0.66; }

.pd-offerband--card .pd-why { max-width: 760px; margin: clamp(36px, 5vw, 56px) auto 0; text-align: center; }
.pd-why__title { margin: 0 0 12px; color: var(--studio-ink); font: 500 clamp(24px, 2.4vw, 32px) / 1.15 var(--font-display); }
.pd-offerband--card .pd-why p { margin: 0; color: rgba(22, 32, 27, 0.82); font: 400 var(--fs-md) / var(--lh-relaxed) var(--font-body); }
.pd-proofq .pd-cta-row { margin-top: clamp(40px, 5vw, 56px); }

@media (max-width: 640px) {
  .pd-hero--ink .pd-clients ul { justify-content: flex-start; gap: 18px 28px; }
  .pd-hero--ink .pd-clients img { height: 20px; }
}

/* ---------- Forward-deployed order (2026-10-13): work + videos in one section; pricing beside booking ---------- */
.pd-motion--inset {
  margin: clamp(56px, 8vw, 104px) 0;
  padding: clamp(56px, 8vw, 96px) 0;
  text-align: center;
}

.pd-motion__title { font-size: clamp(30px, 3.6vw, 48px); }
.pd-motion--inset .ap-section__lead { margin-left: auto; margin-right: auto; }

.pd-work__stack { margin-top: clamp(56px, 8vw, 96px); }

/* #talk: head, then the booking card and the price summary side by side (after Fresha's
   picker + summary), then email and the cross-sell. FAQ follows below. */
.pitch-page--builder .pd-book--ink { display: block; text-align: left; }
.pd-book--ink .pd-book__intro { max-width: 720px; margin: 0 auto clamp(32px, 4vw, 48px); text-align: center; }
.pd-book--ink .pd-book__intro .pd-hero__label { margin-inline: auto; }
.pd-book--ink .pd-book__intro > p { max-width: 560px; margin-inline: auto; }

.pd-pricebook {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}

.pd-price {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 18px;
  background: rgba(244, 242, 239, 0.06);
  box-shadow: inset 0 0 0 1px rgba(244, 242, 239, 0.16);
  color: rgba(244, 242, 239, 0.86);
}

.pd-price .pd-offer__kicker,
.pd-price .pd-offer__label { color: rgba(244, 242, 239, 0.62); }
.pd-price .pd-offer__label { margin: 10px 0 0; }
.pd-price .pd-offer__slots { margin: 0; }
.pd-price ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pd-price li, .pd-price .pd-offer__launch { display: flex; gap: 12px; margin: 0; font: 400 16px / 1.45 var(--font-body); }
.pd-price li i, .pd-price .pd-offer__launch i { flex: 0 0 auto; margin-top: 2px; color: var(--studio-lime); font-size: 19px; }
.pd-price .pd-offer__rule { margin-top: 6px; padding-top: 16px; border-top: 1px solid rgba(244, 242, 239, 0.14); color: var(--studio-cream); }
.pd-price__why { margin-top: 6px; padding: 16px 18px; border-radius: 12px; background: rgba(207, 234, 85, 0.08); }
.pd-price__why b { display: block; margin-bottom: 6px; color: var(--studio-lime); font: 650 14px / 1.3 var(--font-label); }
.pd-price__why p { margin: 0; color: rgba(244, 242, 239, 0.78); font: 400 14px / 1.55 var(--font-body); }


@media (max-width: 900px) {
  .pd-pricebook { grid-template-columns: 1fr; }
}
.pd-book--ink .pd-book__intro .pd-book__title { font-size: clamp(36px, 4.4vw, 60px); hyphens: none; text-wrap: balance; }
.pd-price .pd-offer__launch { color: rgba(244, 242, 239, 0.86); }
@media (max-width: 480px) {
  .pitch-page--builder .pd-hero__label { font-size: 12px; white-space: nowrap; }
}

/* ---------- Work groups (2026-10-13): Aampe first, then Nocoloco clients, then my own products ---------- */
.pd-work__group {
  max-width: 1200px;
  margin: clamp(48px, 6vw, 72px) auto 18px;
  color: var(--studio-ink);
  font: 650 13px / 1.2 var(--font-label);
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.pd-work__group:first-of-type { margin-top: 0; }
.pd-work__grid + .pd-work__group { margin-top: clamp(48px, 6vw, 72px); }
.pd-work__feature + .pd-work__grid { margin-top: 0; }

.pd-work__grid--own { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-auto-rows: auto; }
.pd-work__grid--own > li:first-child { grid-row: span 2; }

.pd-work__card--small { grid-template-rows: none; grid-template-columns: 38% 1fr; align-items: stretch; }
.pd-work__card--small .pd-work__shot { aspect-ratio: auto; height: 100%; min-height: 150px; }
.pd-work__card--small .pd-work__text { padding: 16px 18px; }
.pd-work__card--small .pd-work__name { font-size: 19px; }

@media (max-width: 760px) {
  .pd-work__grid--own { grid-template-columns: 1fr; }
  .pd-work__grid--own > li:first-child { grid-row: auto; }
}

/* ---------- Product docs, in the ink band above the launch videos ---------- */
.pd-motion__sub {
  max-width: 1200px;
  margin: clamp(40px, 5vw, 56px) auto 18px;
  color: var(--studio-lime);
  font: 650 13px / 1.2 var(--font-label);
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.pd-motion__sublead { max-width: 1200px; margin: 0 auto 28px !important; text-align: left; }

.pd-docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1200px; margin: 0 auto; padding: 0; list-style: none; text-align: left; }

.pd-doc {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(244, 242, 239, 0.06);
  box-shadow: inset 0 0 0 1px rgba(244, 242, 239, 0.14);
  color: rgba(244, 242, 239, 0.78);
  text-decoration: none;
  transition: background 0.2s ease;
}

.pd-doc:hover { background: rgba(244, 242, 239, 0.1); }
.pd-doc__shot { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #F7F5F2; }
.pd-doc__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.pd-doc__text { display: grid; align-content: start; gap: 6px; padding: 16px 18px 18px; font: 400 14px / 1.5 var(--font-body); }
.pd-doc__kicker { color: var(--studio-lime); font: 650 12px / 1.2 var(--font-label); letter-spacing: 0.04em; text-transform: uppercase; }
.pd-doc__text b { display: flex; justify-content: space-between; gap: 10px; color: var(--studio-cream); font: 500 20px / 1.2 var(--font-display); }
.pd-doc__text b i { color: var(--studio-lime); font-size: 17px; }

@media (max-width: 1000px) { .pd-docs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pd-docs { grid-template-columns: 1fr; } }

/* ---------- Launch videos intro sits under its label, left aligned ---------- */
.pd-motion--inset .pd-motion__sublead { max-width: 1200px; margin: 0 auto 28px; padding-right: max(0px, calc(100% - 720px)); text-align: left; }

/* ---------- Testimonials carousel: the page's three first, then the rest from the hire page ---------- */
.pd-quotes__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; max-width: 1200px; margin: 0 auto 28px; }
.pd-quotes__head .ap-section__title { margin: 0; text-align: left; }
.pd-quotes__nav { display: flex; gap: 8px; }
.pd-quotes__nav button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(22, 32, 27, 0.14); color: var(--studio-ink); font-size: 18px; cursor: pointer; transition: background 0.2s ease, opacity 0.2s ease; }
.pd-quotes__nav button:hover { background: var(--studio-lime); }
.pd-quotes__nav button:disabled { opacity: 0.35; cursor: default; background: #fff; }

.pd-quotes--carousel {
  display: flex;
  grid-template-columns: none;
  gap: 18px;
  max-width: 1200px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.pd-quotes--carousel::-webkit-scrollbar { display: none; }
.pd-quotes--carousel:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 14px; }
.pd-quotes__card { flex: 0 0 calc((100% - 36px) / 3); scroll-snap-align: start; }

@media (max-width: 900px) {
  .pd-quotes__card { flex-basis: calc((100% - 18px) / 1.15); }
}
.pitch-page--builder .pd-proofq .pd-quotes--carousel { width: 100%; max-width: 1200px; margin: 0 auto; }

/* ---------- Framer section: launch card, customers + testimonial, Nocoloco ---------- */
/* one launch card: the panel fits its content, no empty frame */
.pd-slab--single .ap-stage { align-self: start; }
.pd-slab--single .pd-frame { min-height: 0; }
.pd-slab--single .pd-note { align-items: start; }

.pd-sub {
  margin: 0 0 12px;
  color: var(--ap-cream);
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.2;
}

.pd-nocoloco > p {
  color: var(--ap-cream-muted);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

.pd-nocoloco {
  width: min(100% - 32px, var(--ap-shell));
  margin: var(--pd-content-gap) auto 0;
}

.pd-nocoloco > p {
  max-width: 62ch;
  margin: 0 0 20px;
}

.pd-nocoloco .ap-window { max-width: 760px; }
.pd-nocoloco .ap-stat { margin-top: 12px; }

@media (max-width: 900px) {
}

/* ---------- Pills: smaller, and jumps land below them ---------- */
.pitch-page .ap-tabs__link {
  padding: 7px 14px;
  font-size: var(--fs-sm);
}

.pitch-page .ap-section {
  scroll-margin-top: calc(var(--detail-nav-h) + 72px);
}


.pd-nocoloco {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px clamp(24px, 4vw, 56px);
  align-items: start;
}
.pd-nocoloco > .pd-sub,
.pd-nocoloco > p:not(.ap-stat) { grid-column: 1; }
.pd-nocoloco > .ap-window { grid-column: 2; grid-row: 1 / span 3; max-width: none; }
.pd-nocoloco > .ap-stat { grid-column: 2; text-align: left; }

@media (max-width: 900px) {
  .pd-nocoloco { grid-template-columns: minmax(0, 1fr); }
  .pd-nocoloco > .ap-window,
  .pd-nocoloco > .ap-stat { grid-column: 1; grid-row: auto; }
}
.pitch-page .pd-nocoloco > .ap-stat { justify-self: start; width: auto; white-space: normal; text-align: left; }


/* ---------- More work (above the footer): compact rows, thumb + kicker + title + one line ---------- */
.pd-morework { padding-bottom: var(--pd-section-y); }
.pd-rows { display: grid; gap: 12px; max-width: 880px; margin: 0 auto; padding: 0; list-style: none; }
.pd-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(22, 32, 27, 0.1);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.pd-row:hover { box-shadow: 0 0 0 1px rgba(22, 32, 27, 0.22), 0 12px 28px rgba(22, 32, 27, 0.08); transform: translateY(-1px); }
.pd-row:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.pd-row__shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; background: #DDD9D2; }
.pd-row__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.pd-row__text { display: grid; gap: 6px; padding-right: 8px; }
.pd-row__name { display: flex; justify-content: space-between; gap: 10px; font: 500 22px / 1.15 var(--font-display); }
.pd-row__name i { flex: 0 0 auto; color: var(--accent); font-size: 18px; }
.pd-row__body { color: var(--ap-cream-muted); font: 400 var(--fs-sm) / 1.5 var(--font-body); }
@media (max-width: 600px) {
  .pd-row { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 10px; }
  .pd-row__name { font-size: 19px; }
  .pd-row__body { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pd-row { transition: none; } .pd-row:hover { transform: none; } }

/* ---------- Harness flowchart in a popup: opened from the launch videos, read on demand ---------- */
.pd-flow-open { margin: clamp(28px, 4vw, 40px) 0 0; text-align: center; }
.pd-flow-open .pd-btn { cursor: pointer; border: 0; background: none; font-family: var(--font-label); }
.pd-dialog {
  width: min(100% - 32px, 1160px);
  max-height: min(92vh, 1100px);
  margin: auto;
  padding: clamp(28px, 4vw, 56px) clamp(16px, 3vw, 44px) clamp(24px, 3vw, 40px);
  overflow: auto;
  border: 0;
  border-radius: 20px;
  background: #121A16;
  color: var(--studio-cream);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
}
.pd-dialog::backdrop { background: rgba(12, 14, 10, 0.82); backdrop-filter: blur(4px); }
.pd-dialog .bf { margin-top: 0; }
.pd-dialog__close {
  position: sticky;
  top: 0;
  float: right;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: calc(clamp(12px, 2vw, 32px) * -1) calc(clamp(4px, 1.5vw, 24px) * -1) 0 0;
  border: 0;
  border-radius: 50%;
  background: rgba(244, 242, 239, 0.1);
  color: var(--studio-cream);
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
}
.pd-dialog__close:hover { background: rgba(244, 242, 239, 0.18); }
.pd-dialog__close:focus-visible { outline: 2px solid var(--studio-lime); outline-offset: 2px; }

/* ---------- My stack, open, right after the FAQ ---------- */
.pd-stacksec { padding-top: clamp(56px, 7vw, 96px); }
.pd-stacksec .pd-work__stack { margin-top: 0; }
.pd-stacksec + .pd-morework { padding-top: clamp(48px, 6vw, 80px); }

/* ---------- Section pills stay away while the hero is on screen ---------- */
.pitch-page--builder .ap-tabs {
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0s;
}
.pitch-page--builder .ap-tabs.is-away {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
@media (prefers-reduced-motion: reduce) {
  .pitch-page--builder .ap-tabs,
  .pitch-page--builder .ap-tabs.is-away { transition: none; transform: none; }
}

/* ---------- The top bar waits for the hero to leave too (html.pd-bar-away, set by coss-pitch.js) ----------
   Fixed, like the /dessn letter intro, so hiding it leaves no gap and the ink hero runs to the top edge. */
.pitch-page--builder .detail-topbar {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  transition: transform 0.5s var(--ap-ease-expo, cubic-bezier(0.16, 1, 0.3, 1)), opacity 0.35s ease, visibility 0s linear 0s;
}
html.pd-bar-away .pitch-page--builder .detail-topbar {
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.5s var(--ap-ease-expo, cubic-bezier(0.16, 1, 0.3, 1)), opacity 0.35s ease, visibility 0s linear 0.5s;
}
@media (prefers-reduced-motion: reduce) {
  .pitch-page--builder .detail-topbar,
  html.pd-bar-away .pitch-page--builder .detail-topbar { transition: none; }
}

/* ---------- Pill jumps: headings land below the topbar and the pills ---------- */
.pitch-page--builder { --pd-anchor-offset: calc(var(--detail-nav-h) + 84px); }
.pitch-page--builder [data-ap-section],
.pitch-page--builder .pd-book { scroll-margin-top: var(--pd-anchor-offset); }

/* ---------- Small phones: the brand alone in the top bar, no clipped label ---------- */
@media (max-width: 479px) {
  .pitch-page--builder .detail-topbar .coss-breadcrumb { display: none; }
}

/* Calm letters: the inside flaps are plain paper; only the envelope cover keeps
   its print (the note variant already does this). */
.pitch-page--calm .pd-fold--3 > .pd-fold__back,
.pitch-page--calm .pd-fold--4 > .pd-fold__back {
  background-color: #F3EBDD;
  background-image: none;
}

/* Four quotes sit 2 × 2 instead of 3 + an orphan, with room under the "more" link */
.pitch-page--calm .pd-quotes {
  width: min(100% - 32px, 1200px);
  margin-inline: auto;
}
.pitch-page--calm .pd-more + .pd-quotes { margin-top: var(--pd-content-gap); }
@media (min-width: 901px) {
  .pitch-page--calm .pd-quotes:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Letter before and without the fold script ----------
   An inline script folds the letter before first paint (data-pd-early) and
   coss-pitch.js takes over. Until then the fourth panel stays tucked, and the
   closed letter sits roughly centred. */
.pd-letter[data-pd-early] .pd-fold--4 { visibility: hidden; }
.pd-letter[data-pd-early] .pd-letter__paper { top: calc((100% - var(--fold-h)) / 2); }

/* Reduced motion (or no script): the letter is ordinary page content, panels
   stacked, so it never overlaps the headline. */
.pd-letter:not(.is-folding) .pd-fold { height: auto; }
.pd-letter:not(.is-folding) .pd-fold--2,
.pd-letter:not(.is-folding) .pd-fold--3,
.pd-letter:not(.is-folding) .pd-fold--4 { position: relative; top: auto; transform: none; }
.pd-letter:not(.is-folding) .pd-fold__face { position: relative; inset: auto; }
.pd-letter:not(.is-folding) .pd-fold__back { display: none; }
.pd-letter:not(.is-folding) { padding-block: clamp(48px, 7vw, 96px); }

/* note panels fit their content, whatever the list beside them is doing */
.pitch-page--calm .pd-frame--brand { min-height: 0; }
.pitch-page--calm .pd-frame--brand .pd-note { align-items: start; }
.pitch-page--calm .ap-stage:has(.pd-frame--brand) { align-self: start; }

/* ---------- Quote carousel (data-pd-tcarousel): testimonial cards one at a time ---------- */
.pd-tcarousel { position: relative; }

.pd-tcarousel__track {
  display: flex;
  margin: 0;
  padding: 28px 0 40px; /* room for the corner orb and the card shadow */
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.pd-tcarousel__track::-webkit-scrollbar { display: none; }
.pd-tcarousel__track:focus-visible { outline: 2px solid var(--ring); outline-offset: 4px; border-radius: 14px; }

.pd-tcarousel__slide {
  flex: 0 0 100%;
  padding: 0 28px;
  box-sizing: border-box;
  scroll-snap-align: center;
}

.pd-tcarousel__slide .pd-testimonial { height: 100%; box-sizing: border-box; }
.pd-tcarousel__slide .pd-testimonial blockquote { font-size: clamp(20px, 2.1vw, 28px); }

.pd-tcarousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.pd-tcarousel__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px var(--ap-line);
  color: var(--ap-cream);
  font-size: 18px;
  cursor: pointer;
}

.pd-tcarousel__arrow:hover { background: var(--accent-soft); }
.pd-tcarousel__arrow:focus-visible,
.pd-tcarousel__dots button:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }

.pd-tcarousel__dots { display: flex; gap: 8px; }

.pd-tcarousel__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--ap-line-strong);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.pd-tcarousel__dots button[aria-current="true"] { width: 24px; background: var(--accent); }

@media (max-width: 600px) {
  .pd-tcarousel__slide { padding: 0 6px; }
}
/* a softer shadow, so the scroll area never shows a clipped edge */
.pd-tcarousel .pd-testimonial { box-shadow: 0 12px 28px rgba(60, 40, 20, 0.08), 0 0 0 1px rgba(29, 27, 24, 0.08); }
