/* offer.css: the shared offer components (src/components/marketing/):
   ProblemsGrid, ReplaceStack, SystemBand, WinsStrip, RecentWork.

   Loaded per page via PageShell `styles`, after live.css. Dark surfaces are
   self-coloured so the components read the same on the dark homepage and on
   the light-paper vertical pages. Tokens come from tokens.css.

   The design language, in one paragraph: hairline borders in white at low
   alpha (never solid grey), a one-pixel light catching the top edge of every
   card, a soft purple spotlight that follows the pointer, ambient light behind
   each section, expo-out easing at 320 to 480ms, and numerals that count. No
   pure black, no decorative animation, nothing that moves faster than the eye.
   Every from-state is gated on html.has-motion or a reduced-motion query, so
   a visitor who asked for less motion gets the finished frame. */

/* --- shared ---------------------------------------------------------------- */
.ofr {
  --ofr-bg: var(--black, #0a0a0f);
  --ofr-card: #10101a;
  --ofr-card-2: #0d0d15;
  --ofr-hair: rgba(255, 255, 255, 0.08);
  --ofr-hair-strong: rgba(255, 255, 255, 0.16);
  --ofr-text: var(--warm-white, #e8e8f0);
  --ofr-muted: var(--muted, #a1a1b5);
  --ofr-purple: var(--purple, #6119ac);
  --ofr-purple-light: var(--purple-light, #8b5cf6);
  --ofr-green: var(--green, #22c55e);
  --ofr-red: var(--red, #ef4444);
  --ofr-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ofr-dur: 420ms;
  background: var(--ofr-bg);
  color: var(--ofr-text);
  padding-block: var(--section-y);
  position: relative;
  overflow: clip;
  isolation: isolate;
}
/* Ambient light: one soft purple source above the section, like the hero. */
.ofr::before {
  content: '';
  position: absolute;
  inset: -20% 0 auto 0;
  height: 70%;
  background: radial-gradient(60% 50% at 50% 0%, rgba(97, 25, 172, 0.22), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
/* Film grain at 3.5%: enough to keep large dark areas from reading as flat. */
.ofr::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.035;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
}
.ofr--tight {
  padding-block: calc(var(--section-y) * 0.6);
}
.ofr__shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
/* Eyebrow with the drafting rule the hero badge uses: a short line, then
   the label. Reads as an annotation on a blueprint, not a pill. */
.ofr__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ofr-purple-light);
  margin: 0 0 var(--sp-3);
}
.ofr__eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--ofr-purple-light), transparent);
  flex: none;
}
.ofr__h2 {
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 900;
  font-size: var(--step-5);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
}
.ofr__h2 em {
  font-style: normal;
  color: var(--ofr-purple-light);
}
.ofr__lead {
  margin: var(--sp-3) 0 0;
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--ofr-muted);
  max-width: 60ch;
}
.ofr__h3 {
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 700;
  font-size: var(--step-2);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0;
  text-wrap: balance;
}
.ofr__label {
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ofr-muted);
  margin: 0 0 var(--sp-2);
}
.ofr__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-4);
  margin-top: var(--sp-6);
}
.ofr .arcrel-lv-btn {
  position: relative;
  transition:
    transform var(--dur-fast) var(--ofr-ease),
    box-shadow var(--ofr-dur) var(--ofr-ease),
    background var(--dur-fast) var(--ofr-ease);
}
.ofr .arcrel-lv-btn--primary {
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.25), 0 18px 40px -18px rgba(97, 25, 172, 0.9);
}
.ofr .arcrel-lv-btn--primary:hover {
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.5), 0 24px 50px -16px rgba(124, 58, 237, 0.9);
}
.ofr .arcrel-lv-btn:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 80ms;
}
.ofr__note {
  margin: var(--sp-3) 0 0;
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--ofr-muted);
  max-width: 70ch;
}
.ofr :focus-visible {
  outline: 2px solid var(--ofr-purple-light);
  outline-offset: 3px;
  border-radius: 2px;
}

/* A card: layered surface, hairline border, a light along the top edge, and
   a pointer-following spotlight (offer.js writes --mx/--my on fine pointers).
   Used by every panel below through the .ofr-card class. */
.ofr-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008) 40%),
    var(--ofr-card);
  border: 1px solid var(--ofr-hair);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    border-color var(--ofr-dur) var(--ofr-ease),
    transform var(--ofr-dur) var(--ofr-ease),
    box-shadow var(--ofr-dur) var(--ofr-ease);
}
.ofr-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(255, 255, 255, 0.35) 50%, transparent 95%);
  opacity: 0.6;
  transition: opacity var(--ofr-dur) var(--ofr-ease);
}
.ofr-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(139, 92, 246, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity var(--ofr-dur) var(--ofr-ease);
  pointer-events: none;
}
.ofr-card:hover {
  border-color: var(--ofr-hair-strong);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(139, 92, 246, 0.12);
}
.ofr-card:hover::before {
  opacity: 1;
}
.ofr-card:hover::after {
  opacity: 1;
}
.ofr-card > * {
  position: relative;
  z-index: 1;
}

/* A vendor price, crossed out. Plain figure, no unit: it is what the visitor
   pays someone else today, not our price. The red line draws itself, one row
   after another, when its [data-stage] parent enters the viewport. */
.ofr-strike {
  position: relative;
  display: inline-block;
  padding: 0 3px;
  text-decoration: none;
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ofr-strike::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  top: 50%;
  height: 1px;
  margin-top: -0.5px;
  border-radius: 1px;
  /* Light and translucent so the figure underneath stays readable. */
  background: rgba(248, 113, 113, 0.6);
  transform: rotate(-6deg) scaleX(1);
  transform-origin: left center;
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}
html.has-motion [data-stage]:not(.is-in) .ofr-strike::after {
  transform: rotate(-6deg) scaleX(0);
}
[data-stage].is-in li:nth-child(1) .ofr-strike::after { transition-delay: 120ms; }
[data-stage].is-in li:nth-child(2) .ofr-strike::after { transition-delay: 220ms; }
[data-stage].is-in li:nth-child(3) .ofr-strike::after { transition-delay: 320ms; }
[data-stage].is-in li:nth-child(4) .ofr-strike::after { transition-delay: 420ms; }
[data-stage].is-in li:nth-child(5) .ofr-strike::after { transition-delay: 520ms; }
[data-stage].is-in li:nth-child(6) .ofr-strike::after { transition-delay: 620ms; }
[data-stage].is-in li:nth-child(7) .ofr-strike::after { transition-delay: 720ms; }
[data-stage].is-in li:nth-child(8) .ofr-strike::after { transition-delay: 820ms; }

/* --- ProblemsGrid ------------------------------------------------------------ */
.pbg__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-7);
}
.pbg__col {
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  display: grid;
  gap: var(--sp-3);
  align-content: start;
}
.pbg__index {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2);
}
.pbg__num {
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.35);
  font-variant-numeric: tabular-nums;
}
.pbg__stage {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple-text, #a78bfa);
}
.pbg__stage::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}
.pbg__title {
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 900;
  font-size: var(--step-3);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: #fff;
  margin: var(--sp-2) 0 0;
  text-wrap: balance;
}
.pbg__lede {
  margin: var(--sp-2) 0 0;
  color: var(--ofr-muted);
  line-height: 1.65;
  font-size: var(--step--1);
}
.pbg__block {
  padding-top: var(--sp-3);
  border-top: 1px solid var(--ofr-hair);
}
/* The verdict block sits on the baseline of every column, so the three
   "Included" lines align however the lists above them wrap. */
.pbg__col > .pbg__block:last-child {
  margin-top: auto;
}
.pbg__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.pbg__list li {
  position: relative;
  padding-left: 1.6rem;
  line-height: 1.55;
  font-size: var(--step--1);
  color: var(--ofr-text);
}
.pbg__list li::before {
  content: '';
  position: absolute;
  left: 0.1rem;
  top: 0.5em;
  width: 0.8rem;
  height: 0.45rem;
  border-left: 1.5px solid var(--ofr-green);
  border-bottom: 1.5px solid var(--ofr-green);
  transform: rotate(-45deg);
  opacity: 0.9;
}
.pbg__list--stop li {
  color: var(--ofr-muted);
}
.pbg__list--stop li::before {
  width: 0.7rem;
  height: 0;
  border: 0;
  border-top: 1.5px solid rgba(239, 68, 68, 0.8);
  top: 0.78em;
  transform: none;
}
.pbg__pay {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.pbg__pay li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-2);
  font-size: var(--step--1);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--ofr-hair);
  color: var(--ofr-muted);
}
.pbg__pay li:last-child {
  border-bottom: 0;
}
.pbg__pay b {
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pbg__pay small {
  color: var(--ofr-muted);
  font-weight: 400;
}
/* The verdict line. A gradient stroke rather than a filled block, and a
   single light sweep on hover so the eye lands on "Included". */
.pbg__included {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin: var(--sp-2) 0 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: linear-gradient(#12101c, #12101c) padding-box, linear-gradient(120deg, rgba(139, 92, 246, 0.7), rgba(139, 92, 246, 0.15) 60%, rgba(34, 197, 94, 0.5)) border-box;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 700;
  font-size: var(--step--1);
  color: #fff;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ofr-ease),
    box-shadow var(--ofr-dur) var(--ofr-ease);
}
.pbg__included:hover,
.pbg__included:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -12px rgba(139, 92, 246, 0.55);
}
.pbg__included:focus-visible {
  outline: 2px solid var(--ofr-purple-light);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.pbg__included span:last-child {
  color: var(--ofr-green);
  letter-spacing: 0.04em;
}
.pbg__included::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: skewX(-20deg);
}
@media (prefers-reduced-motion: no-preference) {
  .pbg__col:hover .pbg__included::after,
  .pbg__included:focus-visible::after {
    animation: ofr-sheen 1.1s var(--ofr-ease) 1;
  }
}
@keyframes ofr-sheen {
  to {
    left: 130%;
  }
}
.pbg__band {
  margin-top: var(--sp-4);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: center;
  padding: var(--sp-6) var(--sp-5);
  background:
    radial-gradient(70% 120% at 0% 50%, rgba(97, 25, 172, 0.28), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.005)),
    var(--ofr-card);
}
.pbg__band p {
  margin: var(--sp-3) 0 0;
  color: var(--ofr-text);
  line-height: 1.7;
}
/* The list sketch: rows arrive one after another once the band is in view. */
.pbg__db {
  display: grid;
  gap: 0.6rem;
}
.pbg__db-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  background: rgba(10, 10, 15, 0.75);
  border: 1px solid var(--ofr-hair);
  border-radius: var(--radius);
  font-size: var(--step--1);
  transition: transform var(--ofr-dur) var(--ofr-ease), opacity var(--ofr-dur) var(--ofr-ease), border-color var(--ofr-dur) var(--ofr-ease);
}
html.has-motion .pbg__db:not(.is-in) .pbg__db-row {
  opacity: 0;
  transform: translateX(14px);
}
.pbg__db.is-in .pbg__db-row:nth-child(2) { transition-delay: 90ms; }
.pbg__db.is-in .pbg__db-row:nth-child(3) { transition-delay: 180ms; }
.pbg__db.is-in .pbg__db-row:nth-child(4) { transition-delay: 300ms; }
.pbg__db-row i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ofr-purple-light);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
}
.pbg__db-row b {
  color: #fff;
  font-weight: 600;
}
.pbg__db-row span:last-child {
  color: var(--ofr-muted);
  font-size: var(--step--2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pbg__db-row--sent {
  border-color: rgba(34, 197, 94, 0.35);
}
.pbg__db-row--sent i {
  background: var(--ofr-green);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
}
.pbg__db-row--sent span:last-child {
  color: var(--ofr-green);
}
.pbg__boundary {
  margin-top: var(--sp-4);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-5);
  padding: var(--sp-5);
  border: 1px solid rgba(139, 92, 246, 0.3);
  background: linear-gradient(180deg, rgba(97, 25, 172, 0.06), transparent);
  border-radius: var(--radius-lg);
}
.pbg__boundary p {
  margin: var(--sp-3) 0 0;
  color: var(--ofr-muted);
  line-height: 1.7;
}
.pbg__stays {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  align-self: center;
}
.pbg__stays li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.8rem 1rem;
  background: var(--ofr-card-2);
  border: 1px solid var(--ofr-hair);
  border-radius: var(--radius);
  font-size: var(--step--1);
  transition: border-color var(--ofr-dur) var(--ofr-ease), transform var(--ofr-dur) var(--ofr-ease);
}
.pbg__stays li:hover {
  border-color: rgba(34, 197, 94, 0.4);
  transform: translateX(4px);
}
.pbg__stays li span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ofr-green);
  font-weight: 600;
  font-size: var(--step--2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pbg__stays li span:last-child::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
@media (max-width: 980px) {
  .pbg__grid {
    grid-template-columns: 1fr;
  }
  .pbg__band,
  .pbg__boundary {
    grid-template-columns: 1fr;
    padding: var(--sp-4);
  }
}

/* --- ReplaceStack ------------------------------------------------------------- */
.rps__head {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.rps__head .ofr__eyebrow {
  justify-content: center;
}
.rps__head .ofr__h2,
.rps__head .ofr__lead {
  margin-inline: auto;
}
.rps__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 76px minmax(0, 1fr);
  align-items: stretch;
  margin-top: var(--sp-7);
}
.rps__today {
  padding: var(--sp-4);
}
.rps__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-2);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--ofr-hair-strong);
}
.rps__count {
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.06);
  border-radius: var(--radius);
  padding: 0.3rem 0.65rem;
}
.rps__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rps__row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--ofr-hair);
}
.rps__ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  border: 1px solid var(--ofr-hair);
  background: #0a0a0f;
  color: var(--ofr-muted);
  transition: color var(--ofr-dur) var(--ofr-ease), border-color var(--ofr-dur) var(--ofr-ease);
}
.rps__ico svg {
  width: 19px;
  height: 19px;
}
.rps__row:hover .rps__ico {
  color: var(--ofr-purple-light);
  border-color: rgba(139, 92, 246, 0.45);
}
.rps__job {
  display: block;
  color: #fff;
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1.3;
}
.rps__who {
  display: block;
  margin-top: 0.15rem;
  color: var(--ofr-muted);
  font-size: var(--step--2);
  letter-spacing: 0.02em;
}
/* The pain line under each vendor: a full sentence, so it gets body size and
   room to breathe rather than caption treatment. */
.rps__pain {
  display: block;
  margin-top: 0.3rem;
  max-width: 46ch;
  color: var(--ofr-muted);
  font-size: var(--step--1);
  line-height: 1.5;
}
.rps__row .ofr-strike {
  font-size: var(--step-0);
}
/* Price on top, how often it is paid underneath. The unit stays unstruck:
   it explains the figure, it is not part of what goes away. */
.rps__price {
  display: grid;
  justify-items: end;
  gap: 0.2rem;
}
.rps__per {
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ofr-muted);
}
.rps__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-2);
  padding-top: var(--sp-3);
}
.rps__sum {
  font-size: var(--step-3);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.8);
}
.rps__sum::after {
  height: 2px;
  margin-top: -1px;
}
[data-stage].is-in .rps__sum::after {
  transition-delay: 900ms;
}
/* The bridge between the two: a hairline with one arrow on it. */
.rps__bridge {
  position: relative;
  display: grid;
  place-items: center;
}
.rps__bridge::before {
  content: '';
  position: absolute;
  top: 8%;
  bottom: 8%;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.55), transparent);
}
.rps__arrow {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.55);
  background: #12101c;
  color: #fff;
  box-shadow: 0 0 0 6px rgba(97, 25, 172, 0.12), 0 12px 30px -10px rgba(124, 58, 237, 0.8);
  transition: transform 600ms var(--ofr-ease) 700ms;
}
.rps__arrow svg {
  width: 20px;
  height: 20px;
}
html.has-motion .rps__grid:not(.is-in) .rps__arrow {
  transform: scale(0.6);
}
.rps__arcrel {
  /* Sized to its content and held in view while the long list scrolls past,
     so the answer stays beside every row instead of floating in empty space. */
  align-self: start;
  position: sticky;
  top: calc(var(--nav-h, 72px) + 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
  border-color: rgba(139, 92, 246, 0.35);
  background:
    radial-gradient(90% 55% at 50% 0%, rgba(97, 25, 172, 0.38), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008) 40%),
    var(--ofr-card);
  transition: box-shadow 900ms var(--ofr-ease) 950ms, border-color var(--ofr-dur) var(--ofr-ease);
}
.rps__grid.is-in .rps__arcrel,
html:not(.has-motion) .rps__arcrel {
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.3), 0 50px 90px -45px rgba(124, 58, 237, 0.95);
}
.rps__logo {
  width: 72px;
  height: auto;
  opacity: 0.95;
}
.rps__big {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 900;
  font-size: clamp(2.1rem, 1.5rem + 1.9vw, 3.1rem);
  white-space: nowrap;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}
.rps__copy {
  margin: 0;
  max-width: 32ch;
  color: var(--ofr-text);
  line-height: 1.6;
}
.rps__stages {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ofr-purple-light);
}
.rps__stages span {
  display: inline-flex;
  align-items: center;
}
.rps__stages i {
  width: 4px;
  height: 4px;
  margin: 0 0.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}
.rps__keep {
  margin: 0;
  font-size: var(--step--2);
  color: var(--ofr-muted);
}
@media (max-width: 900px) {
  .rps__grid {
    grid-template-columns: 1fr;
  }
  .rps__arcrel {
    position: static;
  }
  .rps__bridge {
    height: 76px;
  }
  .rps__bridge::before {
    top: 0;
    bottom: 0;
  }
  .rps__arrow svg {
    transform: rotate(90deg);
  }
}
@media (max-width: 480px) {
  .rps__today {
    padding: var(--sp-3);
  }
  .rps__row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 0.75rem;
  }
  .rps__ico {
    width: 36px;
    height: 36px;
  }
  .rps__stages {
    font-size: var(--step--2);
    letter-spacing: 0.1em;
  }
  .rps__stages i {
    margin: 0 0.5rem;
  }
}

/* --- SystemBand --------------------------------------------------------------- */
.sysband {
  --ofr-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ofr-dur: 420ms;
  position: relative;
  background: linear-gradient(180deg, #0c0c14, #0a0a0f);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--warm-white, #e8e8f0);
  padding-block: var(--sp-6);
  overflow: clip;
}
.sysband::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 100% at 80% 50%, rgba(97, 25, 172, 0.16), transparent 70%);
  pointer-events: none;
}
.sysband__inner {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--sp-4) var(--sp-7);
  align-items: center;
}
.sysband__copy .ofr__eyebrow {
  margin-bottom: 0.6rem;
}
.sysband__copy p {
  margin: 0;
  color: var(--muted, #a1a1b5);
  line-height: 1.7;
  max-width: 58ch;
  font-size: var(--step-0);
}
.sysband__copy p b {
  color: #fff;
  font-weight: 700;
}
/* The stepper: three stages on one line that draws itself. */
.sysband__stages {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.sysband__stages::before {
  content: '';
  position: absolute;
  top: 1.35rem;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.6), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms var(--ofr-ease) 120ms;
}
.sysband__stages.is-in::before,
html:not(.has-motion) .sysband__stages::before {
  transform: scaleX(1);
}
.sysband__stage {
  position: relative;
  padding: 2rem 1rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent), #10101a;
  text-align: center;
  transition: border-color var(--ofr-dur) var(--ofr-ease), transform var(--ofr-dur) var(--ofr-ease);
}
.sysband__stage::before {
  content: '';
  position: absolute;
  top: 1rem;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: #1c1c28;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background var(--ofr-dur) var(--ofr-ease), box-shadow var(--ofr-dur) var(--ofr-ease);
}
.sysband__stage:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}
.sysband__stage b {
  display: block;
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 700;
  font-size: var(--step-0);
  color: #fff;
  letter-spacing: -0.01em;
}
.sysband__stage span {
  display: block;
  margin-top: 0.2rem;
  font-size: var(--step--2);
  color: var(--muted, #a1a1b5);
}
.sysband__stage--on {
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.2) inset, 0 20px 40px -24px rgba(124, 58, 237, 0.8);
}
.sysband__stage--on::before {
  background: var(--purple-light, #8b5cf6);
  border-color: var(--purple-light, #8b5cf6);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.9);
}
.sysband__stage--on span {
  color: var(--purple-text, #a78bfa);
}
/* The band's links are the same ghost button as everywhere else on the site,
   never a bare text link, so every call to action reads as one system. */
.sysband__links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0;
}
@media (max-width: 820px) {
  .sysband__inner {
    grid-template-columns: 1fr;
  }
}

/* --- WinsStrip ----------------------------------------------------------------
   Each card leads with one big figure. The client is named with their own logo
   in a small circle (or a monogram), the story is held to three lines, and the
   numbers behind the headline sit in a hairline row rather than boxes. A soft
   purple light sits behind the figure, and the arrow travels on hover. */
.wins__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  /* Text cards end at their own content rather than stretching to a
     neighbour's height with a void inside. Map cards are kept the same height
     as text cards by going wide (below) instead of tall. */
  align-items: start;
  gap: var(--sp-3);
  margin-top: var(--sp-7);
  /* Named, because each card is a container of its own (for the figure's
     cqi sizing) and an unnamed query from inside a card would measure the
     card, not the grid. */
  container: wins / inline-size;
}
.wins__card[hidden] {
  display: none;
}
.wins__card {
  /* The hero figure is sized against the card (cqi), so "+4,328%" never
     runs past the edge of a three-up column the way a viewport clamp did. */
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: var(--sp-4);
  color: inherit;
  text-decoration: none;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(97, 25, 172, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008) 40%),
    var(--ofr-card);
}
a.wins__card:hover {
  transform: translateY(-4px);
}
.wins__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem;
}
.wins__mark {
  margin-top: 1px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at 30% 25%, #1e1d2a, #0d0d14 70%);
}
.wins__mark img {
  max-width: 72%;
  max-height: 56%;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* A favicon or the OS's own logo is a square icon drawn to fill its box, so
   it fills the circle; a wordmark from clients.json keeps the padded fit. */
.wins__mark--icon img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}
.wins__mark b {
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ofr-purple-light);
}
.wins__who {
  display: grid;
  flex: 1 1 11ch; /* claims room for the name first; a long chip wraps to its own line below */
  min-width: 0;
  line-height: 1.25;
}
.wins__client {
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 700;
  font-size: var(--step--1);
  color: #fff;
  text-wrap: balance;
}
.wins__vertical {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ofr-muted);
}
.wins__tier {
  margin-top: 4px;
  margin-left: auto;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.45);
  background: rgba(97, 25, 172, 0.16);
  color: #c4b5fd;
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wins__hero {
  position: relative;
  padding-top: 0.4rem;
}
.wins__figure {
  display: block;
  max-width: 100%;
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 900;
  font-size: min(4.25rem, 22cqi);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff 30%, #c4b5fd 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Longer figures step down: seven characters ("+4,328%") and up. */
.wins__figure--long {
  font-size: min(3.4rem, 15.5cqi);
}
.wins__figure--xlong {
  font-size: min(2.6rem, 12cqi);
}
.wins__label {
  margin: 0.55rem 0 0;
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 700;
  font-size: var(--step-0);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
}
.wins__title {
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 900;
  font-size: var(--step-2);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}
.wins__story {
  margin: 0;
  color: var(--ofr-muted);
  line-height: 1.6;
  font-size: var(--step--1);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wins__grid-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
/* First scan beside the latest one. Two maps halve the size, but the point of
   a heat map reads at any size: grey to green across the whole square. */
.wins__maps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
/* A map card stacked like a text card is twice its height, and any row that
   mixes the two ends in a void. Wherever the grid has two or more columns
   (two minimums plus the gap), a map card spans two of them and lays out
   sideways: figure and story on the left, the two maps on the right, stats
   and footer across the bottom. Its height then matches a text card's. */
@container wins (min-width: 664px) {
  .wins__card--map {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      'top top'
      'hero maps'
      'story maps'
      'stats stats'
      'foot foot';
    column-gap: var(--sp-3);
  }
  .wins__card--map .wins__top {
    grid-area: top;
  }
  .wins__card--map .wins__hero,
  .wins__card--map .wins__title {
    grid-area: hero;
  }
  .wins__card--map .wins__story {
    grid-area: story;
    align-self: start;
  }
  .wins__card--map .wins__maps {
    grid-area: maps;
    align-self: start;
  }
  .wins__card--map .wins__stats {
    grid-area: stats;
  }
  .wins__card--map .wins__foot {
    grid-area: foot;
  }
}
/* Three columns (three minimums plus two gaps): a two-wide card would leave
   a void column beside it, so the map card takes the whole row and spreads
   sideways once more: figure, story and maps in a line, stats under the
   text, footer across. */
@container wins (min-width: 1008px) {
  .wins__card--map {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      'top top maps'
      'hero story maps'
      'stats stats maps'
      'foot foot foot';
  }
  .wins__card--map .wins__story {
    align-self: center;
  }
  .wins__card--map .wins__stats {
    margin-top: 0;
  }
}
.wins__map {
  margin: 0;
  min-width: 0;
}
.wins__map img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--ofr-hair);
}
.wins__map figcaption {
  margin-top: 0.45rem;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ofr-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wins__map figcaption b {
  font-weight: 700;
  color: #fff;
}
.wins__map--after figcaption b {
  color: var(--purple-text, #a78bfa);
}
.wins__stats {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin: auto 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--ofr-hair);
}
.wins__stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 0.75rem;
  min-width: 0;
}
.wins__stat + .wins__stat {
  padding-left: 0.75rem;
  border-left: 1px solid var(--ofr-hair);
}
.wins__stat dt {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ofr-muted);
  line-height: 1.35;
}
.wins__stat dd {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 800;
  font-size: var(--step-0);
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.wins__stat dd s {
  text-decoration: none;
  color: var(--ofr-muted);
  font-weight: 500;
}
.wins__stat dd s::after {
  content: ' \2192  ';
  color: var(--ofr-purple-light);
}
.wins__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem var(--sp-2);
  padding-top: 0.9rem;
  border-top: 1px solid var(--ofr-hair);
}
.wins__verified,
.wins__go {
  white-space: nowrap;
}
.wins__verified {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ofr-green);
}
.wins__verified::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.wins__verified--story {
  color: var(--ofr-muted);
}
.wins__verified--story::before {
  box-shadow: none;
}
.wins__go {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--divider, #2a2a3d);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-size: var(--step--1);
  font-weight: 700;
  color: #fff;
  transition: border-color var(--ofr-dur) var(--ofr-ease), background var(--ofr-dur) var(--ofr-ease);
}
a.wins__card:hover .wins__go,
a.wins__card:focus-visible .wins__go {
  border-color: var(--ofr-purple-light);
  background: rgba(97, 25, 172, 0.16);
}
.wins__go svg {
  width: 15px;
  height: 15px;
  transition: transform var(--ofr-dur) var(--ofr-ease);
}
a.wins__card:hover .wins__go svg {
  transform: translateX(4px);
}

/* --- RecentWork --------------------------------------------------------------- */
.work__row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: var(--sp-4) var(--sp-3);
  margin-top: var(--sp-7);
}
.work__card {
  display: grid;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
}
.work__frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--ofr-hair);
  background: var(--ofr-card);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  transition: transform var(--ofr-dur) var(--ofr-ease), box-shadow var(--ofr-dur) var(--ofr-ease), border-color var(--ofr-dur) var(--ofr-ease);
}
.work__frame::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 22px;
  background: linear-gradient(180deg, #1c1c28, #15151f);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 1;
}
.work__frame::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3a3a4a;
  box-shadow: 13px 0 0 #3a3a4a, 26px 0 0 #3a3a4a;
  z-index: 2;
}
.work__frame img {
  position: absolute;
  inset: 22px 0 0 0;
  width: 100%;
  height: calc(100% - 22px);
  object-fit: cover;
  object-position: top;
  transition: transform 1.2s var(--ofr-ease);
}
.work__sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.07) 50%, transparent 60%);
  transform: translateX(-100%);
  z-index: 3;
  pointer-events: none;
}
.work__card:hover .work__frame {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(139, 92, 246, 0.15);
}
.work__card:hover .work__frame img {
  transform: translateY(-8%);
}
@media (prefers-reduced-motion: no-preference) {
  .work__card:hover .work__sheen {
    transition: transform 1s var(--ofr-ease);
    transform: translateX(100%);
  }
}
.work__name {
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 700;
  font-size: var(--step-0);
  color: #fff;
}
.work__kind {
  display: block;
  margin-top: 0.2rem;
  font-size: var(--step--2);
  color: var(--ofr-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.work__open {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--divider, #2a2a3d);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-size: var(--step--1);
  font-weight: 700;
  color: #fff;
  transition: border-color var(--ofr-dur) var(--ofr-ease), background var(--ofr-dur) var(--ofr-ease);
}
.work__card:hover .work__open,
.work__card:focus-visible .work__open {
  border-color: var(--ofr-purple-light);
  background: rgba(97, 25, 172, 0.16);
}
.work__open::after {
  content: '\2192';
  transition: transform var(--ofr-dur) var(--ofr-ease);
}
.work__card:hover .work__open::after {
  transform: translateX(4px);
}

/* --- InsideLinks ----------------------------------------------------------------
   Everything in the offer as cards, four across: name and a one-line gloss
   from the practice's side. Cards, not a link list, so it reads as parts of
   one thing rather than a menu. No stage labels (2026-11-01). */
.inside__h2 {
  max-width: 16ch;
}
.inside__list {
  list-style: none;
  margin: var(--sp-5, 2rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  /* Same height on every row, so no card reads longer than another. */
  grid-auto-rows: 1fr;
  gap: var(--sp-3, 1rem);
}
.inside__item {
  display: grid;
  gap: 0.3rem;
  align-content: start;
  height: 100%;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--ofr-dur) var(--ofr-ease), background var(--ofr-dur) var(--ofr-ease), transform var(--ofr-dur) var(--ofr-ease);
}
.inside__item:hover,
.inside__item:focus-visible {
  border-color: var(--purple-light, #8b5cf6);
  background: rgba(139, 92, 246, 0.08);
  transform: translateY(-2px);
}
.inside__label {
  font-size: var(--step-0);
  color: var(--white, #fff);
  margin-bottom: 0.1rem;
}
.inside__gloss {
  font-size: var(--step--1);
  color: var(--muted);
}
@media (max-width: 900px) {
  .inside__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .inside__list {
    grid-template-columns: 1fr;
  }
}
