/*
 * Products & Works: /products/, /case-study/, detail pages and the home showcase.
 * Uses the cinematic theme tokens (--cin-*), so dark and light modes follow the
 * site preference. --pf-accent is set per product or work in the markup.
 * Motion is transform/opacity only; nothing here animates endlessly.
 */

html body.pd-cinematic .pd-pf,
html body.pd-cinematic .pd-pf-home {
  --pf-accent: #4A9FD4;
  --pf-ink: color-mix(in srgb, var(--pf-accent) 62%, var(--cin-text));
  --pf-soft: color-mix(in srgb, var(--pf-accent) 14%, transparent);
  --pf-line: color-mix(in srgb, var(--pf-accent) 38%, var(--cin-line));
  --pf-w: min(var(--pd-cinema-width, 1600px), calc(100% - var(--pd-cinema-gutter, 40px) * 2));
  color: var(--cin-text);
}
html:not(.pdvx-dark) body.pd-cinematic :is(.pd-pf, .pd-pf-home) { --pf-ink: color-mix(in srgb, var(--pf-accent) 55%, #0A2540); }

html body .pd-pf :is(h1, h2, h3), html body .pd-pf-home :is(h2, h3) { color: var(--cin-text); margin: 0; font-weight: 750; }
html body .pd-pf p, html body .pd-pf-home p { margin: 0; }
html body .pd-pf-icon { width: 1.05em; height: 1.05em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ═══ Shared atoms ═══ */
html body .pd-pf-kicker {
  display: inline-flex; align-items: center; gap: 10px; color: var(--pf-ink);
  font-size: 12.5px; font-weight: 750; letter-spacing: 1.6px; text-transform: uppercase;
}
html body .pd-pf-kicker i { width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--pf-accent), transparent); }
html body .pd-pf-index { display: block; color: var(--pf-ink); font: 700 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
html body .pd-pf-tagline { color: var(--pf-ink); font-size: 18px; font-weight: 600; line-height: 1.45; }
html body .pd-pf-tagline.is-lg { font-size: clamp(19px, 1.6vw, 24px); }
html body .pd-pf-lede { color: var(--cin-muted); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.7; max-width: 62ch; }
html body .pd-pf-note { color: var(--cin-muted); font-size: 14px; margin-top: 26px !important; }

html body .pd-pf-chips { display: flex; flex-wrap: wrap; gap: 7px; }
html body .pd-pf-chips span {
  border: 1px solid var(--cin-line); background: color-mix(in srgb, var(--cin-panel) 70%, transparent);
  color: var(--cin-muted); border-radius: 99px; padding: 4px 11px; font-size: 12.5px; font-weight: 600; line-height: 1.4;
}

html body .pd-pf-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
html body.pd-brand a.pd-pf-btn {
  position: relative; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 12px; border: 1px solid transparent;
  background: linear-gradient(135deg, #1E5A9C, #2F7DBB); color: #FFF; font-size: 15px; font-weight: 700; line-height: 1.2;
  text-decoration: none; box-shadow: 0 10px 28px -10px #1E5A9CAA;
  transition: transform 260ms var(--pd-ease, ease), box-shadow 260ms ease, background-color 200ms ease, border-color 200ms ease;
}
html body.pd-brand a.pd-pf-btn.is-ghost { background-color: transparent; border-color: var(--pf-line); color: var(--cin-text); box-shadow: none; }
html body.pd-brand a.pd-pf-btn.is-block { display: flex; width: 100%; margin-top: 22px; }
html body.pd-brand a.pd-pf-btn .pd-pf-icon { transition: transform 260ms var(--pd-ease, ease); }
html body.pd-brand a.pd-pf-btn:is(:hover, :focus-visible) { color: #FFF; transform: translateY(-2px); box-shadow: 0 16px 34px -12px #2F7DBBCC; }
html body.pd-brand a.pd-pf-btn.is-ghost:is(:hover, :focus-visible) { color: var(--cin-text); background-color: var(--pf-soft); border-color: var(--pf-accent); box-shadow: none; }
html body.pd-brand a.pd-pf-btn:is(:hover, :focus-visible) .pd-pf-icon { transform: translateX(3px); }

/* ═══ Browser + phone frames ═══ */
html body .pd-pf-shot { position: relative; }
html body .pd-pf-shot.has-phone { padding: 0 7% 9% 0; }
html body .pd-pf-browser {
  position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--pf-line);
  background: var(--cin-panel);
  box-shadow: 0 1px 0 #FFFFFF14 inset, 0 40px 80px -40px color-mix(in srgb, var(--pf-accent) 55%, #000), 0 18px 40px -24px #020B1680;
}
html body .pd-pf-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--cin-line); background: color-mix(in srgb, var(--cin-panel) 85%, var(--cin-bg)); }
html body .pd-pf-bar i { width: 9px; height: 9px; border-radius: 50%; background: #FF5F57; }
html body .pd-pf-bar i:nth-child(2) { background: #FEBC2E; }
html body .pd-pf-bar i:nth-child(3) { background: #28C840; }
html body .pd-pf-bar span {
  flex: 1; max-width: 340px; margin: 0 auto; padding: 3px 12px; border-radius: 7px; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  background: color-mix(in srgb, var(--cin-bg) 70%, transparent); color: var(--cin-muted); font: 500 11.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}
html body .pd-pf-screen { aspect-ratio: 16 / 10; overflow: hidden; background: var(--cin-bg); }
html body.pd-brand .pd-pf-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 0; max-width: none; }
html body .pd-pf-phone {
  position: absolute; right: 0; bottom: 0; width: 23%; min-width: 92px; padding: 6px; border-radius: 22px;
  background: linear-gradient(160deg, #22384F, #0A1626); border: 1px solid #FFFFFF24;
  box-shadow: 0 30px 60px -20px #000C, 0 0 0 1px #00000040;
  transition: transform 600ms var(--pd-ease, ease);
}
html body.pd-brand .pd-pf-phone img { display: block; width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; border-radius: 17px; }
html body .pd-pf-caption { margin-top: 14px !important; color: var(--cin-muted); font-size: 13px; }

/* ═══ Index hero ═══ */
html body .pd-pf-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(32px, 5vw, 90px); align-items: center;
  padding: clamp(48px, 6vw, 96px) var(--pd-cinema-gutter, 40px) clamp(56px, 6vw, 100px);
  background:
    radial-gradient(60% 70% at 88% 10%, color-mix(in srgb, var(--pf-accent) 20%, transparent), transparent 70%),
    radial-gradient(45% 60% at 0% 100%, #1E5A9C1F, transparent 70%);
}
html body .pd-pf-hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--cin-line) 1px, transparent 1px), linear-gradient(90deg, var(--cin-line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .35;
  -webkit-mask-image: radial-gradient(70% 80% at 70% 30%, #000, transparent 75%); mask-image: radial-gradient(70% 80% at 70% 30%, #000, transparent 75%);
}
html body .pd-pf-hero-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; max-width: 760px; }
html body .pd-pf-hero h1 { font-size: clamp(40px, 5.4vw, 86px); line-height: 1.02; letter-spacing: -.035em; }
html body .pd-pf-hero.is-detail h1 { font-size: clamp(40px, 5vw, 76px); }
html body .pd-pf-hero h1 em, html body .pd-pf-home h2 em {
  font-style: normal; background: linear-gradient(100deg, #74BFEA, #B6E2FF 45%, color-mix(in srgb, var(--pf-accent) 80%, #fff));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html:not(.pdvx-dark) .pd-pf-hero h1 em, html:not(.pdvx-dark) .pd-pf-home h2 em { background-image: linear-gradient(100deg, #1E5A9C, #2F7DBB 50%, #4A9FD4); }

html body .pd-pf-crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--cin-muted); font-size: 13.5px; }
html body .pd-pf-crumbs a { color: var(--cin-muted); text-decoration: none; }
html body .pd-pf-crumbs [aria-current] { color: var(--cin-text); font-weight: 600; }

html body .pd-pf-stats { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 48px); margin: 8px 0 0; padding-top: 24px; border-top: 1px solid var(--cin-line); width: 100%; }
html body .pd-pf-stats div { display: flex; flex-direction: column; }
html body .pd-pf-stats dt { font-size: clamp(32px, 3.2vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--cin-text); }
html body .pd-pf-stats dd { margin: 8px 0 0; color: var(--cin-muted); font-size: 13px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }

/* Floating stack of product screens. */
html body .pd-pf-stack { position: relative; aspect-ratio: 1.12; perspective: 1600px; }
html body .pd-pf-stack-card {
  position: absolute; width: 78%; margin: 0; overflow: hidden; border-radius: 14px; border: 1px solid var(--pf-line); background: var(--cin-panel);
  box-shadow: 0 50px 90px -40px #000D, 0 0 0 1px #FFFFFF08;
  transform-style: preserve-3d; transition: transform 800ms var(--pd-ease, cubic-bezier(.2,.8,.2,1)), box-shadow 600ms ease;
}
html body.pd-brand .pd-pf-stack-card img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; border-radius: 0; }
html body .pd-pf-stack-card.is-0 { left: 0;   top: 30%; z-index: 3; transform: rotateY(14deg) rotateX(6deg) rotateZ(-2deg); }
html body .pd-pf-stack-card.is-1 { left: 14%; top: 14%; z-index: 2; transform: rotateY(14deg) rotateX(6deg) rotateZ(-2deg) translateZ(-120px); opacity: .92; }
html body .pd-pf-stack-card.is-2 { left: 26%; top: 0;   z-index: 1; transform: rotateY(14deg) rotateX(6deg) rotateZ(-2deg) translateZ(-240px); opacity: .8; }
@media (hover: hover) and (pointer: fine) {
  html body .pd-pf-stack:hover .pd-pf-stack-card.is-0 { transform: rotateY(6deg) rotateX(2deg) translate3d(-6%, 12%, 40px); }
  html body .pd-pf-stack:hover .pd-pf-stack-card.is-1 { transform: rotateY(6deg) rotateX(2deg) translate3d(2%, 0, -40px); opacity: 1; }
  html body .pd-pf-stack:hover .pd-pf-stack-card.is-2 { transform: rotateY(6deg) rotateX(2deg) translate3d(10%, -12%, -120px); opacity: 1; }
}

/* Tilted mosaic of client sites. */
html body .pd-pf-mosaic {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; transform: perspective(1800px) rotateX(18deg) rotateY(-14deg) rotateZ(4deg);
  -webkit-mask-image: radial-gradient(80% 85% at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(80% 85% at 50% 50%, #000 55%, transparent 100%);
}
html body.pd-brand .pd-pf-mosaic img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--cin-line);
  box-shadow: 0 24px 40px -24px #000B; transition: transform 700ms var(--pd-ease, ease);
}
html body .pd-pf-mosaic img:nth-child(3n+2) { transform: translateY(-14%); }
@media (hover: hover) and (pointer: fine) {
  html body .pd-pf-mosaic:hover img { transform: translateY(-4%) scale(1.02); }
  html body .pd-pf-mosaic:hover img:nth-child(3n+2) { transform: translateY(-18%) scale(1.02); }
}

/* Jump navigation */
html body .pd-pf-jump {
  position: sticky; top: var(--pd-sticky-top, 88px); z-index: 20;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 12px var(--pd-cinema-gutter, 40px);
  border-block: 1px solid var(--cin-line); background: color-mix(in srgb, var(--cin-bg) 92%, transparent);
}
html body .admin-bar .pd-pf-jump { top: calc(var(--pd-sticky-top, 88px) + 32px); }
html body .pd-pf-jump::-webkit-scrollbar { display: none; }
html body.pd-brand .pd-pf-jump a {
  display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 8px 14px; border-radius: 99px; border: 1px solid transparent;
  color: var(--cin-muted); font-size: 14px; font-weight: 650; text-decoration: none; transition: color .2s, border-color .2s, background-color .2s;
}
html body .pd-pf-jump a i { width: 8px; height: 8px; border-radius: 50%; background: var(--pf-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pf-accent) 22%, transparent); }
html body.pd-brand .pd-pf-jump a:is(:hover, :focus-visible) { color: var(--cin-text); border-color: var(--pf-line); background: var(--pf-soft); }

/* ═══ Sections ═══ */
html body .pd-pf-section { padding: clamp(64px, 7vw, 120px) var(--pd-cinema-gutter, 40px); }
html body .pd-pf-section.is-tinted { background: linear-gradient(180deg, color-mix(in srgb, var(--cin-panel) 55%, transparent), transparent); border-top: 1px solid var(--cin-line); }
html body .pd-pf-section > *, html body .pd-pf-home > * { max-width: var(--pd-cinema-width, 1600px); margin-inline: auto; }
html body .pd-pf-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(32px, 4vw, 56px); }
html body .pd-pf-head.is-row { flex-direction: row; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; }
html body .pd-pf-head.is-row > div:first-child { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
html body .pd-pf-head h2 { font-size: clamp(30px, 3.4vw, 52px); line-height: 1.08; letter-spacing: -.025em; }
html body .pd-pf-head p { color: var(--cin-muted); font-size: 17px; line-height: 1.7; max-width: 70ch; }

/* ═══ Product features ═══ */
html body .pd-pf-feature {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 88px); align-items: center;
  padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--cin-line); scroll-margin-top: 160px;
}
html body .pd-pf-feature.is-flipped .pd-pf-feature-media { order: 2; }
html body .pd-pf-feature-copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
html body .pd-pf-feature-copy h3 { font-size: clamp(34px, 3.6vw, 56px); letter-spacing: -.03em; line-height: 1.02; }
html body .pd-pf-feature-copy > p:not(.pd-pf-tagline):not(.pd-pf-chips) { color: var(--cin-muted); font-size: 16.5px; line-height: 1.75; }

html body .pd-pf-flow { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; counter-reset: none; }
html body .pd-pf-flow li {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 13px; border-radius: 12px;
  border: 1px solid var(--pf-line); background: linear-gradient(160deg, var(--pf-soft), transparent 70%);
  font-size: 14px; font-weight: 650; line-height: 1.35; color: var(--cin-text);
}
html body .pd-pf-flow li b { color: var(--pf-ink); font: 700 11.5px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1px; }
html body .pd-pf-flow li + li::before {
  content: ''; position: absolute; left: -11px; top: 50%; width: 11px; height: 1.5px; background: var(--pf-accent); opacity: .7;
}
html body .pd-pf-flow.is-wide { margin-top: 28px; }

html body .pd-pf-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; width: 100%; margin: 4px 0 0; border: 1px solid var(--cin-line); border-radius: 12px; overflow: hidden; background: var(--cin-line); }
html body .pd-pf-facts div { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--cin-bg); }
html body .pd-pf-facts dt { color: var(--pf-ink); font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
html body .pd-pf-facts dd { margin: 0; color: var(--cin-muted); font-size: 12.5px; line-height: 1.4; }

/* ═══ Cards ═══ */
html body .pd-pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(18px, 2vw, 28px); }
html body .pd-pf-grid.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { html body .pd-pf-grid.is-three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); } }
html body.pd-brand .pd-pf-card {
  position: relative; display: flex; border-radius: 18px; overflow: hidden; border: 1px solid var(--cin-line); background: var(--cin-panel);
  box-shadow: 0 6px 24px #0A254010; transition: transform 380ms var(--pd-ease, ease), border-color 300ms ease, box-shadow 380ms ease;
}
html body .pd-pf-card[hidden] { display: none !important; }
html body.pd-brand .pd-pf-card-link { position: relative; z-index: 1; display: flex; flex-direction: column; width: 100%; color: inherit; text-decoration: none; background: none; padding: 0; }
html body .pd-pf-card-media { display: block; aspect-ratio: 16 / 10; border-bottom: 1px solid var(--cin-line); background: var(--cin-bg); }
html body.pd-brand .pd-pf-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 0; transition: transform 900ms var(--pd-ease, ease); }
html body .pd-pf-flag {
  position: absolute; left: 12px; top: 12px; z-index: 3; padding: 4px 10px; border-radius: 99px; background: #061321D9; color: #CFE3F5;
  font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
}
html body .pd-pf-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 22px 20px; }
html body .pd-pf-card-kicker { color: var(--pf-ink); font-size: 12px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; }
html body .pd-pf-card-title { font-size: 23px; letter-spacing: -.015em; line-height: 1.2; }
html body .pd-pf-card-tag { color: var(--cin-muted); font-size: 15px; line-height: 1.55; }
html body .pd-pf-card .pd-pf-chips { margin-top: 2px; }
html body .pd-pf-card-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--cin-line);
  color: var(--cin-text); font-size: 13.5px; font-weight: 700;
}
html body .pd-pf-card-cta .pd-pf-icon { color: var(--pf-ink); transition: transform 300ms var(--pd-ease, ease); }
@media (hover: hover) and (pointer: fine) {
  html body.pd-brand .pd-pf-card:hover { transform: translateY(-6px); border-color: var(--pf-line); box-shadow: 0 30px 60px -28px color-mix(in srgb, var(--pf-accent) 60%, #000); }
  html body .pd-pf-card:hover .pd-pf-card-cta .pd-pf-icon { transform: translateX(5px); }
}
html body.pd-brand .pd-pf-card:focus-within { border-color: var(--pf-accent); }

/* Product strip */
html body .pd-pf-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
html body.pd-brand a.pd-pf-mini {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 16px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--cin-line); background: var(--cin-panel); color: var(--cin-text); text-decoration: none;
  transition: transform 340ms var(--pd-ease, ease), border-color 300ms ease;
}
html body .pd-pf-mini-media { display: block; aspect-ratio: 16/10; border-radius: 10px; margin-bottom: 10px; border: 1px solid var(--cin-line); }
html body.pd-brand .pd-pf-mini-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 0; display: block; }
html body .pd-pf-mini b { position: relative; z-index: 1; padding: 0 6px; font-size: 17px; }
html body .pd-pf-mini > span:last-child { position: relative; z-index: 1; padding: 0 6px; color: var(--cin-muted); font-size: 13px; line-height: 1.45; }
html body .pd-pf-mini b::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--pf-accent); vertical-align: 2px; }
@media (hover: hover) and (pointer: fine) { html body.pd-brand a.pd-pf-mini:hover { transform: translateY(-5px); border-color: var(--pf-line); } }

/* Filter */
html body .pd-pf-filter { display: flex; flex-wrap: wrap; gap: 8px; }
html body.pd-brand .pd-pf-filter button {
  min-height: 42px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--cin-line); background: transparent; color: var(--cin-muted);
  font-size: 14px; font-weight: 650; line-height: 1; box-shadow: none; transition: color .2s, border-color .2s, background-color .2s;
}
html body .pd-pf-filter button b { margin-left: 6px; font-size: 12px; opacity: .7; }
html body.pd-brand .pd-pf-filter button:is(:hover, :focus-visible) { color: var(--cin-text); border-color: var(--pf-line); background: var(--pf-soft); }
html body.pd-brand .pd-pf-filter button[aria-pressed="true"] { color: #FFF; background: linear-gradient(135deg, #1E5A9C, #2F7DBB); border-color: transparent; }
html body .pd-pf-card.is-entering { animation: pdPfIn 480ms var(--pd-ease, ease) both; }
@keyframes pdPfIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }

/* CTA band */
html body .pd-pf-band {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px;
  margin: 0 var(--pd-cinema-gutter, 40px) clamp(64px, 7vw, 110px); padding: clamp(32px, 4vw, 56px);
  border-radius: 22px; border: 1px solid var(--pf-line);
  background: radial-gradient(70% 140% at 100% 0%, #1E5A9C40, transparent 60%), var(--cin-panel);
}
html body .pd-pf-band > div:first-child { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
html body .pd-pf-band h2 { font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -.02em; }
html body .pd-pf-band p { color: var(--cin-muted); font-size: 16.5px; line-height: 1.7; }

/* ═══ Detail page ═══ */
html body .pd-pf-hero.is-detail { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
html body .pd-pf-hero.is-detail .pd-pf-hero-media { padding-top: 32px; }
html body .pd-pf-meta { list-style: none; margin: 8px 0 0; padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 14px 34px; border-top: 1px solid var(--cin-line); width: 100%; }
html body .pd-pf-meta li { display: flex; flex-direction: column; gap: 4px; }
html body .pd-pf-meta span { color: var(--cin-muted); font-size: 12px; font-weight: 650; letter-spacing: .8px; text-transform: uppercase; }
html body .pd-pf-meta b { font-size: 15px; }
html body .pd-pf-status { display: inline-flex; align-items: center; gap: 8px; }
html body .pd-pf-status i { width: 8px; height: 8px; border-radius: 50%; background: #2FC89A; box-shadow: 0 0 0 4px #2FC89A33; }

html body .pd-pf-factband { padding: 0 var(--pd-cinema-gutter, 40px); }
html body .pd-pf-factband dl {
  max-width: var(--pd-cinema-width, 1600px); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--pf-line); border-radius: 18px; overflow: hidden; background: linear-gradient(120deg, var(--pf-soft), transparent 60%), var(--cin-panel);
}
html body .pd-pf-factband div { padding: 26px 28px; display: flex; flex-direction: column; gap: 6px; }
html body .pd-pf-factband div + div { border-left: 1px solid var(--cin-line); }
html body .pd-pf-factband dt { color: var(--pf-ink); font-size: clamp(28px, 2.8vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
html body .pd-pf-factband dd { margin: 0; color: var(--cin-muted); font-size: 14px; }

html body .pd-pf-body {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(32px, 5vw, 80px); align-items: start;
  max-width: var(--pd-cinema-width, 1600px); margin: 0 auto; padding: clamp(56px, 6vw, 96px) var(--pd-cinema-gutter, 40px);
  box-sizing: content-box;
}
html body .pd-pf-main { display: flex; flex-direction: column; gap: clamp(56px, 6vw, 88px); min-width: 0; }
html body .pd-pf-block { padding: 0; }
html body .pd-pf-block h2 { font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -.02em; line-height: 1.12; margin-bottom: 18px; }
html body .pd-pf-block > p { color: var(--cin-muted); font-size: 17px; line-height: 1.8; max-width: 75ch; }
html body .pd-pf-block > p + p { margin-top: 16px; }
html body .pd-pf-block > p.pd-pf-big { color: var(--cin-text); font-size: clamp(19px, 1.6vw, 24px); line-height: 1.6; font-weight: 500; }

html body .pd-pf-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
html body.pd-brand .pd-pf-steps li { position: relative; padding: 24px; border-radius: 16px; border: 1px solid var(--cin-line); background: var(--cin-panel); }
html body .pd-pf-steps li h3 { font-size: 18.5px; margin: 10px 0 8px; position: relative; z-index: 1; }
html body .pd-pf-steps li p { color: var(--cin-muted); font-size: 15px; line-height: 1.7; position: relative; z-index: 1; }
html body .pd-pf-step-n { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--pf-line); background: var(--pf-soft); color: var(--pf-ink); font: 700 13px ui-monospace, SFMono-Regular, Menlo, monospace; }

html body .pd-pf-caps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
html body.pd-brand .pd-pf-caps li { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--cin-line); background: var(--cin-panel); font-size: 15.5px; line-height: 1.55; }
html body .pd-pf-caps li .pd-pf-icon { position: relative; z-index: 1; margin-top: 3px; padding: 3px; width: 22px; height: 22px; border-radius: 7px; background: var(--pf-soft); color: var(--pf-ink); stroke-width: 2.6; }
html body .pd-pf-caps li span { position: relative; z-index: 1; }

html body .pd-pf-figure { margin: 0; }
html body .pd-pf-figure figcaption { margin-top: 12px; color: var(--cin-muted); font-size: 13.5px; }

html body .pd-pf-value {
  position: relative; padding: clamp(28px, 3vw, 44px); border-radius: 20px; overflow: hidden;
  border: 1px solid var(--pf-line); background: radial-gradient(80% 120% at 0% 0%, var(--pf-soft), transparent 70%), var(--cin-panel);
}
html body .pd-pf-value::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--pf-accent), transparent); }
html body .pd-pf-value p { font-size: clamp(19px, 1.7vw, 25px); line-height: 1.55; font-weight: 550; color: var(--cin-text); }

html body .pd-pf-side { position: sticky; top: calc(var(--pd-sticky-top, 88px) + 24px); }
html body.pd-brand .pd-pf-snapshot { position: relative; padding: 26px; border-radius: 18px; border: 1px solid var(--cin-line); background: var(--cin-panel); }
html body .pd-pf-snapshot h2 { font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--cin-muted); margin-bottom: 8px; position: relative; z-index: 1; }
html body .pd-pf-snapshot h3 { font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--cin-muted); margin: 22px 0 12px; position: relative; z-index: 1; }
html body .pd-pf-snapshot dl { margin: 0; position: relative; z-index: 1; }
html body .pd-pf-snapshot dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--cin-line); font-size: 14.5px; }
html body .pd-pf-snapshot dt { color: var(--cin-muted); }
html body .pd-pf-snapshot dd { margin: 0; text-align: right; font-weight: 650; }
html body .pd-pf-snapshot dd a { color: var(--pf-ink); text-decoration: none; }
html body .pd-pf-snapshot .pd-pf-chips, html body .pd-pf-snapshot .pd-pf-btn { position: relative; z-index: 1; }
html body .pd-pf-credit { margin-top: 16px !important; color: var(--cin-muted); font-size: 13px; line-height: 1.6; position: relative; z-index: 1; }

html body .pd-pf-pager {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 16px;
  max-width: var(--pd-cinema-width, 1600px); margin: 0 auto; padding: 0 var(--pd-cinema-gutter, 40px) clamp(56px, 6vw, 96px); box-sizing: content-box;
}
html body.pd-brand .pd-pf-pager a {
  display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-radius: 16px; border: 1px solid var(--cin-line); background: var(--cin-panel);
  color: var(--cin-text); text-decoration: none; transition: border-color .3s, transform .35s var(--pd-ease, ease);
}
html body .pd-pf-pager a span { display: inline-flex; align-items: center; gap: 8px; color: var(--cin-muted); font-size: 12.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
html body .pd-pf-pager a b { font-size: 20px; }
html body.pd-brand .pd-pf-pager a.is-next { align-items: flex-end; text-align: right; }
html body.pd-brand .pd-pf-pager a.is-all { justify-content: center; font-weight: 700; font-size: 14.5px; }
@media (hover: hover) and (pointer: fine) { html body.pd-brand .pd-pf-pager a:hover { border-color: var(--pf-line); transform: translateY(-3px); } }

/* ═══ Home showcase ═══ */
html body .pd-pf-home { padding: clamp(72px, 8vw, 128px) var(--pd-cinema-gutter, 40px); border-top: 1px solid var(--cin-line); display: flex; flex-direction: column; gap: clamp(28px, 3vw, 44px); }
html body .pd-pf-home .pd-pf-head { margin-bottom: 0; }
html body .pd-pf-home > * { width: 100%; }

/* ═══ Responsive ═══ */
@media (max-width: 1100px) {
  html body .pd-pf-hero, html body .pd-pf-hero.is-detail, html body .pd-pf-feature { grid-template-columns: 1fr; }
  html body .pd-pf-feature.is-flipped .pd-pf-feature-media { order: 0; }
  html body .pd-pf-stack { max-width: 640px; width: 100%; margin-inline: auto; }
  html body .pd-pf-body { grid-template-columns: 1fr; }
  html body .pd-pf-side { position: static; }
  html body .pd-pf-strip { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  html body .pd-pf-hero.is-detail .pd-pf-hero-media { padding-top: 0; }
}
@media (max-width: 720px) {
  html body .pd-pf-steps, html body .pd-pf-caps { grid-template-columns: 1fr; }
  html body .pd-pf-flow { gap: 6px; }
  html body .pd-pf-flow li { padding: 10px 9px; font-size: 12.5px; gap: 4px; }
  html body .pd-pf-flow li + li::before { left: -6px; width: 6px; }
  html body .pd-pf-facts div, html body .pd-pf-factband div { padding: 12px 10px; }
  html body .pd-pf-facts dt, html body .pd-pf-factband dt { font-size: 18px; }
  html body .pd-pf-facts dd, html body .pd-pf-factband dd { font-size: 11.5px; }
  html body .pd-pf-pager { grid-template-columns: 1fr 1fr; }
  html body.pd-brand .pd-pf-pager a.is-all { grid-column: 1 / -1; order: 3; }
  html body .pd-pf-mosaic { grid-template-columns: repeat(2, 1fr); }
  html body .pd-pf-mosaic img:nth-child(n+5) { display: none; }
  html body .pd-pf-stack { aspect-ratio: 1.25; }
  html body .pd-pf-shot.has-phone { padding: 0 9% 12% 0; }
  html body .pd-pf-phone { width: 27%; border-radius: 16px; padding: 4px; }
  html body.pd-brand .pd-pf-phone img { border-radius: 12px; }
  html body .pd-pf-head.is-row { align-items: flex-start; }
  html body .pd-pf-jump { top: var(--pd-sticky-top-m, 72px); }
}

/* Motion preference */
html.pd-motion-reduced :is(.pd-pf-stack-card, .pd-pf-mosaic img, .pd-pf-card, .pd-pf-mini, .pd-pf-card-media img) { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  html body :is(.pd-pf-stack-card, .pd-pf-mosaic img, .pd-pf-card, .pd-pf-mini, .pd-pf-card-media img) { transition: none !important; }
  html body .pd-pf-card.is-entering { animation: none; }
}
