/* ==========================================================================
   FGX — Digital PR (digital-pr/index.html)
   Builds on /assets/fgx/fgx-type.css (fonts + fluid type scale) and
   ui-ux.css (tokens, grid, buttons, logos, CTA, theme switching).
     FGX-PR-01 hero + live media monitor   FGX-PR-04 stacking advantage cards
     FGX-PR-03 traditional vs digital wipe FGX-PR-06 story goal chips
   Colour: one calm change per chapter (dark hero → light → dark CTA),
   eased slower than the other service pages.
   ========================================================================== */

body.fgx-pr { transition-duration: 1.6s, 1.6s; transition-timing-function: cubic-bezier(.45, 0, .2, 1); }
.pr .ux-eyebrow a { color: inherit; text-decoration: none; }
.pr .ux-eyebrow a:hover { color: var(--ux-red); }
.pr-intro { margin-top: 28px !important; max-width: 46ch; }

/* ---------- 01 Hero ------------------------------------------------------- */
.pr-hero { position: relative; padding-top: clamp(120px, 17vh, 200px); padding-bottom: clamp(88px, 11vw, 180px); overflow: hidden; }
.pr-hero::before { content: ""; position: absolute; right: -15vw; top: 20vh; width: 70vw; height: 70vw; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(229, 36, 33, .14), transparent 70%); }
.pr-hero__body { position: relative; display: grid; gap: 56px; margin-top: clamp(40px, 5vw, 88px); }
@media (min-width: 1200px) { .pr-hero__body { grid-template-columns: 5fr 7fr; gap: var(--ux-gap); align-items: start; } .pr-hero__copy { padding-top: 12px; } }
.pr-hero__copy .ux-lead { max-width: 25ch; }
.pr-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(36px, 4vw, 64px) 0 0; padding: 0; }
.pr-tags li { padding: 9px 16px; border: 1px solid var(--ux-line); border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ux-muted); }

/* Media monitor */
.pr-mon {
  position: relative; display: grid; place-items: center; min-height: clamp(560px, 44vw, 740px); padding: clamp(64px, 6vw, 96px) 0;
  overflow: hidden; isolation: isolate; border: 0; border-radius: 0;
  background: transparent;
}
.pr-mon::before { content: none; }
.pr-mon__cap { position: absolute; left: 0; top: 20px; z-index: 3; display: flex; align-items: center; gap: 10px; margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(244, 240, 238, .55); }
.pr-mon__rec { width: 8px; height: 8px; border-radius: 50%; background: var(--ux-red); animation: ux-pulse 2.4s infinite; }

.pr-dash { width: min(100%, 540px); padding: 18px; border-radius: 18px; background: #f7f4f2; color: #0f0f0f; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 50px 100px rgba(0, 0, 0, .55); }
.pr-dash__hd { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.pr-dash__hd b { font-family: var(--ux-display); font-weight: 600; font-size: 18px; letter-spacing: -.03em; }
.pr-dash__hd span { display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: #fff; color: var(--ux-red); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pr-dash__hd span i { width: 6px; height: 6px; border-radius: 50%; background: var(--ux-red); animation: ux-pulse 1.6s infinite; }
.pr-dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.pr-dash__kpis > div { padding: 12px; border-radius: 12px; background: #fff; }
.pr-dash__kpis p { margin: 0; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(15, 15, 15, .45); }
.pr-dash__kpis strong { display: block; margin-top: 6px; font-family: var(--ux-display); font-weight: 600; font-size: clamp(22px, 2vw, 30px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.pr-dash__kpis .pr-dash__pos { font-size: clamp(16px, 1.4vw, 20px); color: #18a47f; }
.pr-dash__kpis em { display: block; height: 5px; margin-top: 8px; border-radius: 99px; background: rgba(15, 15, 15, .08); overflow: hidden; }
.pr-dash__kpis em i { display: block; height: 100%; width: calc(var(--v) * 100%); background: #18a47f; }
.pr-dash__chart { height: 84px; margin-top: 12px; padding: 8px 0 0; border-radius: 12px; background: #fff; overflow: hidden; }
.pr-dash__chart svg { display: block; width: 100%; height: 100%; }
.pr-dash__line { fill: none; stroke: var(--ux-red); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.pr-dash__area { fill: rgba(229, 36, 33, .1); }
.pr-dash__feed { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; height: 178px; overflow: hidden; }
.pr-dash__feed li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; overflow: hidden; }
.pr-dash__feed p { margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 700; letter-spacing: -.01em; }
.pr-dash__feed span { font-size: 11px; color: rgba(15, 15, 15, .45); }
.pr-src { padding: 3px 8px; border-radius: 6px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }

.pr-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 9px; padding: 11px 15px; border-radius: 14px; background: rgba(20, 20, 20, .74); border: 1px solid rgba(255, 255, 255, .12); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
.pr-chip i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ux-red); font-style: normal; font-size: 11px; }
.pr-chip--1 { left: 4%; top: 18%; }
.pr-chip--2 { right: 4%; top: 44%; }
.pr-chip--3 { left: 6%; bottom: 8%; }
@media (max-width: 767px) {
  .pr-mon { min-height: 640px; padding-top: 104px; padding-bottom: 104px; }
  .pr-dash { padding: 12px; }
  .pr-dash__kpis > div { padding: 10px 8px; }
  .pr-dash__feed li { grid-template-columns: 1fr auto; }
  .pr-dash__feed .pr-src { grid-column: 1 / -1; justify-self: start; }
  .pr-dash__feed { height: 220px; }
  .pr-chip--1 { left: 4%; top: 48px; }
  .pr-chip--2 { right: 4%; top: auto; bottom: 52px; }
  .pr-chip--3 { left: 4%; bottom: 12px; }
}

/* ---------- 03 Traditional vs digital wipe -------------------------------- */
.pr-cmp { position: relative; display: grid; margin-top: clamp(48px, 6vw, 96px); border-radius: calc(var(--ux-radius) + 10px); overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.pr-cmp__side { grid-area: 1 / 1; position: relative; padding: clamp(28px, 4vw, 64px); }
.pr-cmp__side--old { background: #e4ddd8; color: rgba(15, 15, 15, .5); }
.pr-cmp__side--new { background: var(--ux-ink); color: var(--ux-paper); clip-path: inset(0 0 0 var(--pos)); }
.pr-cmp__side--new::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 90% at 100% 0%, rgba(229, 36, 33, .25), transparent 70%); }
.pr-cmp__t { position: relative; margin: 0 0 clamp(20px, 3vw, 40px) !important; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pr-cmp__side--new .pr-cmp__t { color: var(--ux-red); text-align: right; }
.pr-cmp ol { position: relative; list-style: none; margin: 0; padding: 0; }
.pr-cmp li { display: grid; grid-template-columns: 1fr; gap: 6px; padding: clamp(14px, 1.6vw, 24px) 0; border-top: 1px solid currentColor; border-color: rgba(15, 15, 15, .14); font-family: var(--ux-display); font-weight: 600; font-size: clamp(24px, 3vw, 58px); line-height: 1.02; letter-spacing: -.045em; }
@media (min-width: 992px) { .pr-cmp li { grid-template-columns: 2fr 10fr; align-items: baseline; gap: var(--ux-gap); } }
.pr-cmp__side--new li { border-color: rgba(244, 240, 238, .16); }
.pr-cmp__side--old li { text-decoration: line-through; text-decoration-thickness: .06em; text-decoration-color: rgba(15, 15, 15, .3); }
.pr-cmp li span { font-family: var(--ux-text); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; display: inline-block; }
.pr-cmp__side--new li span { color: var(--ux-red); }
.pr-cmp__handle { z-index: 1; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--ux-red); pointer-events: none; }
.pr-cmp__handle::before { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--ux-red); box-shadow: 0 16px 40px rgba(229, 36, 33, .45); transition: transform .4s var(--ux-ease); }
.pr-cmp__handle i { position: absolute; top: 50%; z-index: 1; margin-top: -.6em; font-style: normal; font-size: 26px; line-height: 1.2; color: #fff; }
.pr-cmp__handle i:first-child { right: 7px; }
.pr-cmp__handle i:last-child { left: 7px; }
.pr-cmp.is-dragging .pr-cmp__handle::before { transform: scale(1.12); }
.pr-cmp__range { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.pr-cmp__range:focus-visible + * { outline: none; }
.pr-cmp:has(.pr-cmp__range:focus-visible) { outline: 3px solid #f2d200; outline-offset: 4px; }

/* ---------- 04 Stacking advantage cards ----------------------------------- */
.pr-stack { list-style: none; margin: clamp(48px, 6vw, 96px) 0 0; padding: 0; display: grid; gap: clamp(24px, 4vh, 48px); }
.pr-card {
  position: sticky; top: calc(clamp(88px, 12vh, 128px) + var(--i) * 22px); display: grid; gap: 28px; align-items: center;
  min-height: min(72vh, 680px); padding: clamp(24px, 3.4vw, 56px); border-radius: calc(var(--ux-radius) + 10px);
  background: var(--ux-paper-2); border: 1px solid var(--ux-line); box-shadow: 0 -20px 50px rgba(15, 15, 15, .06); transform-origin: 50% 0;
}
@media (min-width: 992px) { .pr-card { grid-template-columns: 6fr 5fr; gap: var(--ux-gap); } }
.pr-card__n { margin: 0 0 clamp(24px, 4vw, 64px) !important; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--ux-red); }
.pr-card .ux-h3 { max-width: 14ch; }
.pr-card .ux-body { max-width: 44ch; color: var(--ux-muted); }
.pr-card__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; }
.pr-card__tags li { padding: 7px 14px; border: 1px solid var(--ux-line); border-radius: 999px; font-size: 13px; font-weight: 700; }
.pr-card__img { aspect-ratio: 4 / 3; height: 100%; max-height: 520px; width: 100%; }
@media (max-width: 991px) { .pr-card { min-height: 0; top: calc(80px + var(--i) * 14px); } .pr-card__img { aspect-ratio: 16 / 10; max-height: 240px; } .pr-card__n { margin-bottom: 20px !important; } }

.pr-formats { margin-top: clamp(96px, 12vw, 200px); overflow: hidden; }
.pr-formats__line { display: flex; align-items: center; gap: .28em; width: max-content; white-space: nowrap; font-family: var(--ux-display); font-weight: 700; font-size: clamp(64px, 11vw, 220px); line-height: 1.02; letter-spacing: -.06em; text-transform: uppercase; will-change: transform; }
.pr-formats__line span.is-o { color: transparent; -webkit-text-stroke: 1.5px var(--ux-fg); }
.pr-formats__line i { font-style: normal; font-size: .45em; color: var(--ux-red); }
.pr-formats__note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; margin-top: clamp(32px, 4vw, 64px); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pr-formats__note p:last-child { color: var(--ux-muted); }

/* ---------- 06 Goal chips ------------------------------------------------- */
.pr-goals { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.pr-goals button {
  all: unset; box-sizing: border-box; cursor: pointer; padding: 13px 20px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px;
  font-size: 15px; font-weight: 700; color: #fff; transition: background .35s var(--ux-ease), border-color .35s var(--ux-ease), transform .35s var(--ux-ease);
}
.pr-goals button:hover { border-color: #fff; }
.pr-goals button[aria-pressed="true"] { background: var(--ux-red); border-color: var(--ux-red); }
.pr-goals button[aria-pressed="true"]::before { content: "✓ "; }
.pr-goals button:active { transform: scale(.96); }
.pr-goals button:focus-visible { outline: 3px solid #f2d200; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) { .pr-mon__rec, .pr-dash__hd span i { animation: none; } }
