/* P2L core English pages: editorial polish below the existing hero system. */
.p2l-core-page {
  --p2l-premium-ease: cubic-bezier(.22, 1, .36, 1);
  --p2l-card-shadow: 0 28px 80px rgba(0, 0, 0, .22);
}

.p2l-core-page main > .bp-section,
.p2l-core-audit main > .section:not(.hero) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.p2l-core-page main > .bp-section::before,
.p2l-core-audit main > .section:not(.hero)::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 49.92%, rgba(255,255,255,.035) 50%, transparent 50.08%),
    radial-gradient(circle at 85% 16%, rgba(183,242,0,.07), transparent 27rem);
  background-size: 100% 100%, 100% 100%;
}

.p2l-core-page .bp-section-paper::before,
.p2l-core-audit main > .section:not(.hero):not(.alt)::before {
  background:
    linear-gradient(90deg, transparent 0 49.92%, rgba(5,7,11,.05) 50%, transparent 50.08%),
    radial-gradient(circle at 85% 16%, rgba(255,90,78,.08), transparent 28rem);
}

.p2l-core-page .bp-section > .bp-shell,
.p2l-core-audit .section > .wrap {
  position: relative;
  z-index: 1;
}

.p2l-section-index {
  position: absolute;
  top: 26px;
  right: max(24px, calc((100vw - 1200px) / 2));
  z-index: 2;
  color: rgba(167,176,188,.56);
  font: 600 8px/1 var(--p2l-mono, monospace);
  letter-spacing: .08em;
  pointer-events: none;
  text-transform: uppercase;
}

.p2l-section-index::before {
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-right: 8px;
  background: currentColor;
  content: "";
  vertical-align: middle;
}

.p2l-core-page .bp-head,
.p2l-core-audit .section-head {
  position: relative;
}

.p2l-core-page .bp-head::before,
.p2l-core-audit .section-head::before {
  position: absolute;
  top: -24px;
  left: 0;
  width: 58px;
  height: 3px;
  background: linear-gradient(90deg, var(--p2l-lime), var(--p2l-coral));
  content: "";
}

.p2l-core-page .bp-head h2,
.p2l-core-audit .section-head h2,
.p2l-core-audit .section h2 {
  text-wrap: balance;
}

/* Cards become an editorial system instead of repeated bordered boxes. */
.p2l-core-page .bp-decision-grid,
.p2l-core-page .bp-service-grid,
.p2l-core-page .bp-steps {
  gap: 12px;
  border: 0;
}

.p2l-core-page .bp-decision,
.p2l-core-page .bp-service-card,
.p2l-core-page .bp-step {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--p2l-line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), transparent 48%),
    var(--p2l-ink);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: border-color .45s ease, box-shadow .45s ease, background-color .45s ease, transform .45s var(--p2l-premium-ease);
}

.p2l-core-page .bp-decision::after,
.p2l-core-page .bp-service-card::after,
.p2l-core-page .bp-step::after {
  position: absolute;
  right: -44px;
  bottom: -54px;
  width: 132px;
  aspect-ratio: 1;
  border: 1px solid rgba(183,242,0,.18);
  border-radius: 50%;
  content: "";
  transition: scale .55s var(--p2l-premium-ease), border-color .4s ease;
}

.p2l-core-page .bp-decision:nth-child(2),
.p2l-core-page .bp-service-card:nth-child(3n + 2),
.p2l-core-page .bp-step:nth-child(2) {
  background:
    linear-gradient(145deg, rgba(114,215,255,.09), transparent 52%),
    #0b1521;
}

.p2l-core-page .bp-decision:nth-child(3),
.p2l-core-page .bp-service-card:nth-child(3n),
.p2l-core-page .bp-step:nth-child(3) {
  background:
    linear-gradient(145deg, rgba(255,90,78,.09), transparent 52%),
    #11151d;
}

.p2l-core-page .bp-decision:hover,
.p2l-core-page .bp-service-card:hover,
.p2l-core-page .bp-step:hover {
  border-color: rgba(183,242,0,.48);
  box-shadow: var(--p2l-card-shadow);
}

.p2l-core-page .bp-decision:hover::after,
.p2l-core-page .bp-service-card:hover::after,
.p2l-core-page .bp-step:hover::after {
  border-color: rgba(183,242,0,.42);
  scale: 1.26;
}

.p2l-core-page .bp-decision small,
.p2l-core-page .bp-service-card small,
.p2l-core-page .bp-step small {
  display: flex;
  align-items: center;
  gap: 10px;
}

.p2l-core-page .bp-decision small::after,
.p2l-core-page .bp-service-card small::after,
.p2l-core-page .bp-step small::after {
  width: 44px;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: .5;
}

.p2l-core-page .bp-decision h3,
.p2l-core-page .bp-service-card h3 {
  max-width: 14ch;
  text-wrap: balance;
}

.p2l-core-page .bp-service-grid {
  background: transparent;
}

.p2l-core-page .bp-service-card,
.p2l-core-page .bp-decision {
  border-right: 1px solid var(--p2l-line);
}

.p2l-core-page .bp-step {
  border-right: 1px solid var(--p2l-line);
}

.p2l-core-page .bp-checklist {
  gap: 10px;
}

.p2l-core-page .bp-checklist li {
  position: relative;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  padding: 18px 20px;
  background: linear-gradient(105deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  transition: border-color .35s ease, background .35s ease, transform .35s var(--p2l-premium-ease);
}

.p2l-core-page .bp-checklist li::before {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(183,242,0,.38);
  border-radius: 50%;
  color: var(--p2l-lime);
  content: "\2713";
  font: 700 11px/1 var(--p2l-mono);
}

.p2l-core-page .bp-checklist li:hover {
  border-color: rgba(183,242,0,.48);
  background: linear-gradient(105deg, rgba(183,242,0,.1), rgba(255,255,255,.025));
  transform: translateX(5px);
}

/* Work cards alternate rhythm while keeping screenshot alignment intact. */
.p2l-core-work .bp-work-grid {
  gap: 18px;
}

.p2l-core-work .bp-work-card {
  position: relative;
  border-radius: 10px;
  box-shadow: 0 18px 55px rgba(0,0,0,.14);
  transition: border-color .45s ease, box-shadow .45s ease, transform .55s var(--p2l-premium-ease);
}

.p2l-core-work .bp-work-card:nth-child(6n + 2),
.p2l-core-work .bp-work-card:nth-child(6n + 4) {
  translate: 0 28px;
}

.p2l-core-work .bp-work-card::after {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--p2l-lime), transparent 70%);
  content: "";
  opacity: 0;
  transition: opacity .35s ease;
}

.p2l-core-work .bp-work-card:hover {
  border-color: rgba(183,242,0,.44);
  box-shadow: 0 36px 95px rgba(0,0,0,.38);
  transform: translateY(-8px);
}

.p2l-core-work .bp-work-card:hover::after {
  opacity: 1;
}

.p2l-core-work .bp-work-media {
  position: relative;
}

.p2l-core-work .bp-work-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 64%, rgba(5,7,11,.38));
  content: "";
  pointer-events: none;
}

.p2l-core-work .bp-work-links a {
  position: relative;
}

.p2l-core-work .bp-work-links a::after,
.p2l-core-page .bp-route-go::after {
  display: inline-block;
  margin-left: 6px;
  content: "\2192";
  transition: transform .3s var(--p2l-premium-ease);
}

.p2l-core-work .bp-work-links a:hover::after,
.p2l-core-page .bp-service-card:hover .bp-route-go::after {
  transform: translateX(5px);
}

.p2l-core-page .bp-reel-grid figure {
  border-radius: 10px;
  box-shadow: 0 24px 65px rgba(0,0,0,.24);
}

.p2l-core-page .bp-reel-grid figure::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: inherit;
  box-shadow: inset 0 -100px 90px rgba(5,7,11,.35);
  content: "";
  pointer-events: none;
}

/* Shared image/video editorial modules added to the core routes. */
.p2l-showcase {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(30px, 5vw, 74px);
  align-items: center;
}

.p2l-showcase--reverse {
  grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr);
}

.p2l-showcase-copy h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: .96;
  text-wrap: balance;
}

.p2l-showcase-copy h2 span {
  color: var(--p2l-coral);
}

.p2l-showcase-copy p:not(.bp-kicker) {
  max-width: 48rem;
  margin: 22px 0 0;
  color: var(--p2l-steel);
  line-height: 1.75;
}

.bp-section-paper .p2l-showcase-copy p:not(.bp-kicker) {
  color: #59616b;
}

.bp-section-paper .p2l-showcase-copy h2 {
  color: var(--p2l-obsidian);
}

.p2l-showcase-frame {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--p2l-line);
  border-radius: 12px;
  background: #020408;
  box-shadow: 0 36px 110px rgba(0,0,0,.42);
}

.p2l-showcase-frame::before {
  position: absolute;
  inset: 10px 10px auto auto;
  z-index: 2;
  width: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--p2l-lime);
  box-shadow: 0 0 0 6px rgba(183,242,0,.13), 0 0 28px rgba(183,242,0,.45);
  content: "";
}

.p2l-showcase-frame img,
.p2l-showcase-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.p2l-showcase-frame video {
  aspect-ratio: 16 / 10;
}

.p2l-showcase-frame img {
  object-position: top;
}

.p2l-frame-label {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 3px;
  background: rgba(5,7,11,.82);
  color: var(--p2l-lime);
  font: 600 8px/1 var(--p2l-mono);
  text-transform: uppercase;
}

.p2l-device-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, .32fr);
  align-items: end;
  gap: 14px;
}

.p2l-device-pair .p2l-showcase-frame:last-child {
  margin-left: -42px;
  margin-bottom: -28px;
  border: 5px solid #05070b;
  border-radius: 18px;
}

.p2l-device-pair .p2l-showcase-frame:last-child img {
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.p2l-media-strip {
  display: grid;
  grid-template-columns: 1.35fr .8fr .8fr;
  gap: 10px;
}

.p2l-media-tile {
  position: relative;
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--p2l-line);
  border-radius: 10px;
  background: #030508;
  box-shadow: 0 28px 85px rgba(0,0,0,.28);
}

.p2l-media-tile:nth-child(2) {
  transform: translateY(32px);
}

.p2l-media-tile img,
.p2l-media-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--p2l-premium-ease), filter .5s ease;
}

.p2l-media-tile:hover img,
.p2l-media-tile:hover video {
  transform: scale(1.045);
}

.p2l-media-tile figcaption {
  position: absolute;
  inset: auto 14px 14px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px;
  background: rgba(5,7,11,.82);
  backdrop-filter: blur(12px);
  color: #f5f7f2;
  font: 600 8px/1.4 var(--p2l-mono);
  text-transform: uppercase;
}

.p2l-media-tile figcaption span:last-child {
  color: var(--p2l-lime);
}

/* Investment blocks receive a deliberate visual anchor. */
.p2l-core-page .bp-invest {
  position: relative;
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
  border: 1px solid rgba(5,7,11,.13);
  border-radius: 12px;
  background: rgba(255,255,255,.5);
  box-shadow: 0 34px 90px rgba(5,7,11,.1);
}

.p2l-core-page .bp-section:not(.bp-section-paper) .bp-invest {
  border-color: var(--p2l-line);
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  box-shadow: 0 34px 90px rgba(0,0,0,.24);
}

.p2l-core-page .bp-invest::after {
  position: absolute;
  right: -110px;
  bottom: -140px;
  width: 330px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,90,78,.28);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.p2l-core-page .bp-invest-figure strong {
  color: var(--p2l-obsidian);
  text-wrap: balance;
}

.p2l-core-page .bp-section:not(.bp-section-paper) .bp-invest-figure strong {
  color: var(--p2l-paper);
}

/* About: remove repeated portrait and create an asymmetric studio story. */
.p2l-core-about .bp-about-grid {
  grid-template-columns: 1.02fr .98fr;
  gap: 12px;
  border: 0;
  background: transparent;
}

.p2l-core-about .bp-about-image,
.p2l-core-about .bp-about-copy {
  border: 1px solid var(--p2l-line);
  border-radius: 10px;
}

.p2l-core-about .bp-about-image {
  min-height: 760px;
  overflow: hidden;
}

.p2l-core-about .bp-about-image img {
  transition: transform 1.1s var(--p2l-premium-ease);
}

.p2l-core-about .bp-about-grid:hover .bp-about-image img {
  transform: scale(1.025);
}

.p2l-core-about .bp-about-copy {
  position: relative;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(0,0,0,.2);
}

.p2l-core-about .bp-about-copy::after {
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 280px;
  aspect-ratio: 1;
  border: 1px solid rgba(5,7,11,.26);
  border-radius: 50%;
  content: "";
}

.p2l-core-about .bp-section-paper .bp-full-media {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 36px 100px rgba(5,7,11,.2);
}

.p2l-core-case main > .bp-full-media {
  width: min(1440px, calc(100% - 48px));
  max-height: 760px;
  margin: 48px auto 0;
  border: 1px solid var(--p2l-line);
  border-radius: 12px;
  box-shadow: 0 36px 110px rgba(0,0,0,.38);
}

.p2l-core-leads .bp-section-ink .bp-full-media {
  padding: clamp(8px, 1.5vw, 18px);
  border-color: rgba(183,242,0,.2) !important;
  border-radius: 12px !important;
  box-shadow: 0 38px 110px rgba(0,0,0,.4);
}

/* Free audit: align the legacy page kit with the 2026 brand-page language. */
.p2l-core-audit .site-header .brand img {
  width: 176px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.p2l-core-audit .site-header .brand strong {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.p2l-core-audit .premium-system-section .audit-visual-grid {
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
}

.p2l-core-audit .audit-score-card {
  width: min(220px, 100%);
  margin-top: 28px;
  padding: 22px;
  border: 1px solid rgba(183,242,0,.3);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(183,242,0,.11), rgba(255,255,255,.025));
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
}

.p2l-core-audit .audit-score-card strong {
  display: block;
  color: var(--p2l-lime);
  font: 800 4.5rem/.8 var(--p2l-display);
}

.p2l-core-audit .audit-score-card span {
  display: block;
  margin-top: 14px;
  color: #dce2e8;
  font: 600 9px/1.4 var(--p2l-mono);
  text-transform: uppercase;
}

.p2l-core-audit .audit-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.p2l-core-audit .audit-checklist span,
.p2l-core-audit .pill {
  border-radius: 999px;
}

.p2l-core-audit .audit-asset {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(183,242,0,.24);
  border-radius: 12px 12px 80px 12px;
  box-shadow: 0 42px 120px rgba(0,0,0,.4);
}

.p2l-core-audit .audit-asset img {
  display: block;
  width: 100%;
  transition: transform .9s var(--p2l-premium-ease);
}

.p2l-core-audit .audit-asset:hover img {
  transform: scale(1.025);
}

.p2l-core-audit #fit .grid-4 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.p2l-core-audit #fit .card {
  position: relative;
  min-height: 230px;
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: clamp(24px, 4vw, 38px);
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.012));
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
  transition: transform .45s var(--p2l-premium-ease), border-color .4s ease, box-shadow .4s ease;
}

.p2l-core-audit #fit .card:nth-child(4n + 2),
.p2l-core-audit #fit .card:nth-child(4n + 3) {
  grid-column: span 7;
}

.p2l-core-audit #fit .card::before {
  position: absolute;
  top: 18px;
  right: 20px;
  color: rgba(183,242,0,.58);
  content: "0" counter(p2l-audit-card);
  counter-increment: p2l-audit-card;
  font: 600 10px/1 var(--p2l-mono);
}

.p2l-core-audit #fit .grid-4 {
  counter-reset: p2l-audit-card;
}

.p2l-core-audit #fit .card:hover {
  border-color: rgba(183,242,0,.4) !important;
  box-shadow: 0 34px 90px rgba(0,0,0,.3);
  transform: translateY(-7px);
}

.p2l-core-audit .flow-list li {
  border-bottom: 1px solid var(--p2l-line);
}

.p2l-core-audit .package-strip {
  gap: 14px;
}

.p2l-core-audit .package-strip a {
  position: relative;
  min-height: 164px;
  align-content: end;
  overflow: hidden;
  padding: 24px;
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(183,242,0,.12), rgba(255,255,255,.018));
  box-shadow: 0 20px 60px rgba(0,0,0,.16);
  transition: border-color .4s ease, box-shadow .4s ease, transform .45s var(--p2l-premium-ease);
}

.p2l-core-audit .package-strip a:nth-child(2) {
  background: linear-gradient(145deg, rgba(114,215,255,.12), rgba(255,255,255,.018));
}

.p2l-core-audit .package-strip a:nth-child(3) {
  background: linear-gradient(145deg, rgba(255,90,78,.12), rgba(255,255,255,.018));
}

.p2l-core-audit .package-strip a:hover {
  border-color: rgba(183,242,0,.48);
  box-shadow: 0 34px 86px rgba(0,0,0,.28);
  transform: translateY(-7px);
}

.p2l-core-audit #audit-form > .wrap {
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(30px, 6vw, 82px);
  align-items: start;
}

.p2l-core-audit #audit-form .card {
  margin-top: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
}

.p2l-core-audit .form-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(183,242,0,.28);
  border-radius: 12px;
  box-shadow: 0 42px 110px rgba(0,0,0,.38);
}

.p2l-core-audit .form-shell::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--p2l-lime), var(--p2l-sky), var(--p2l-coral));
  content: "";
}

.p2l-core-audit .form-control input,
.p2l-core-audit .form-control textarea {
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.p2l-core-audit .form-control input:focus,
.p2l-core-audit .form-control textarea:focus {
  border-color: rgba(183,242,0,.72) !important;
  box-shadow: 0 0 0 4px rgba(183,242,0,.1);
}

/* Accessible reveal system. Content remains visible without JavaScript. */
.p2l-motion-ready .p2l-reveal {
  --p2l-reveal-y: 34px;
  opacity: 0;
  transform: translate3d(0, var(--p2l-reveal-y), 0);
  transition:
    opacity .75s ease var(--p2l-delay, 0ms),
    transform .95s var(--p2l-premium-ease) var(--p2l-delay, 0ms),
    border-color .4s ease,
    box-shadow .4s ease;
}

.p2l-motion-ready .p2l-reveal.p2l-reveal--left {
  transform: translate3d(-38px, 0, 0);
}

.p2l-motion-ready .p2l-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 900px) {
  .p2l-showcase,
  .p2l-showcase--reverse {
    grid-template-columns: 1fr;
  }

  .p2l-showcase--reverse .p2l-showcase-copy {
    order: -1;
  }

  .p2l-media-strip {
    grid-template-columns: 1fr 1fr;
  }

  .p2l-media-tile:first-child {
    grid-column: 1 / -1;
  }

  .p2l-media-tile:nth-child(2) {
    transform: none;
  }

  .p2l-core-about .bp-about-grid {
    grid-template-columns: 1fr;
  }

  .p2l-core-about .bp-about-image {
    min-height: 680px;
  }

  .p2l-core-audit #audit-form > .wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .p2l-section-index {
    top: 18px;
    right: 14px;
  }

  .p2l-core-page .bp-decision-grid,
  .p2l-core-page .bp-service-grid,
  .p2l-core-page .bp-steps {
    gap: 9px;
  }

  .p2l-core-page .bp-decision,
  .p2l-core-page .bp-service-card,
  .p2l-core-page .bp-step {
    border-right: 1px solid var(--p2l-line);
    border-bottom: 1px solid var(--p2l-line);
  }

  .p2l-core-work .bp-work-card:nth-child(6n + 2),
  .p2l-core-work .bp-work-card:nth-child(6n + 4) {
    translate: none;
  }

  .p2l-device-pair {
    grid-template-columns: minmax(0, 1fr) minmax(92px, .34fr);
  }

  .p2l-device-pair .p2l-showcase-frame:last-child {
    margin-left: -30px;
    margin-bottom: -14px;
  }

  .p2l-media-strip {
    grid-template-columns: 1fr;
  }

  .p2l-media-tile:first-child {
    grid-column: auto;
  }

  .p2l-media-tile {
    min-height: 360px;
  }

  .p2l-core-about .bp-about-image {
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .p2l-core-about .bp-about-image img {
    height: 100%;
    object-position: center top;
  }

  .p2l-core-audit #fit .grid-4 {
    grid-template-columns: 1fr;
  }

  .p2l-core-audit #fit .card,
  .p2l-core-audit #fit .card:nth-child(n) {
    grid-column: auto;
    min-height: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p2l-motion-ready .p2l-reveal,
  .p2l-motion-ready .p2l-reveal.p2l-reveal--left,
  .p2l-motion-ready .p2l-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .p2l-core-page .bp-checklist li:hover,
  .p2l-core-work .bp-work-card:hover,
  .p2l-core-audit #fit .card:hover,
  .p2l-core-audit .package-strip a:hover,
  .p2l-media-tile:hover img,
  .p2l-media-tile:hover video,
  .p2l-core-about .bp-about-grid:hover .bp-about-image img,
  .p2l-core-audit .audit-asset:hover img {
    transform: none;
  }
}

/* Case-study refinement. Strictly scoped so Services and Free Audit keep their own system. */
.p2l-core-case .p2l-skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 12px 15px;
  border-radius: 4px;
  background: var(--p2l-lime);
  color: var(--p2l-obsidian) !important;
  font: 700 9px/1 var(--p2l-mono);
  text-decoration: none;
  text-transform: uppercase;
  transform: translateY(-150%);
  transition: transform .2s ease;
}

.p2l-core-case .p2l-skip-link:focus { transform: translateY(0); }
.p2l-core-case .brand-page-header { z-index: 100; background: #05070b !important; backdrop-filter: none !important; }
.p2l-core-case .bp-case-hero { padding: 78px 0 62px; }
.p2l-core-case .bp-section { padding: 80px 0; }
.p2l-core-case .bp-section[id] { scroll-margin-top: 86px; }
.p2l-core-case .bp-final { padding: 76px 0; }
.p2l-core-case main > .bp-section::before { background: none; }
.p2l-core-case .bp-head::before { background: var(--p2l-lime); }
.p2l-core-case .bp-decision,
.p2l-core-case .bp-decision:nth-child(n) {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.p2l-core-case .bp-decision::after { display: none; }
.p2l-core-case .bp-decision:hover { box-shadow: none; }
.p2l-core-case .p2l-showcase-frame { border-radius: 6px; }
.p2l-core-case .p2l-showcase-frame::before { display: none; }
.p2l-core-case main > .bp-full-media { margin-top: 34px; }
.p2l-core-case .bp-full-media[loading="lazy"] { background: #080b11; }

/* Texas: an interactive transformation and an open editorial timeline. */
.case-texas .bp-decision-grid {
  grid-template-columns: .86fr 1.24fr .9fr;
  gap: 0;
  border-block: 1px solid var(--p2l-line);
}
.case-texas .bp-decision {
  min-height: 300px;
  border: 0;
  border-right: 1px solid var(--p2l-line);
}
.case-texas .bp-decision:last-child { border-right: 0; }
.case-texas .bp-decision:nth-child(2) { padding-top: 54px; background: #0b1320; }
.case-texas .bp-decision h3 { margin-top: 70px; }
.case-compare {
  --case-split: 55%;
  position: relative;
  aspect-ratio: 1425 / 930;
  overflow: hidden;
  border: 1px solid var(--p2l-line);
  background: #05070b;
  box-shadow: 0 32px 90px rgba(0,0,0,.34);
}
.case-compare-layer { position: absolute; inset: 0; margin: 0; }
.case-compare-layer img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.case-compare-layer:first-child img { filter: saturate(.55) contrast(.9); }
.case-compare-after { z-index: 2; clip-path: inset(0 calc(100% - var(--case-split)) 0 0); }
.case-compare input { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.case-compare-handle { position: absolute; top: 0; bottom: 0; left: var(--case-split); z-index: 4; width: 2px; background: var(--p2l-lime); transform: translateX(-1px); pointer-events: none; }
.case-compare-handle::after { position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--p2l-lime); border-radius: 50%; background: #05070b; color: var(--p2l-lime); content: "\2194"; font: 600 16px/1 var(--p2l-mono); transform: translate(-50%,-50%); }
.case-compare-label { position: absolute; top: 14px; z-index: 4; padding: 8px 10px; background: #05070b; color: var(--p2l-paper); font: 600 8px/1 var(--p2l-mono); text-transform: uppercase; pointer-events: none; }
.case-compare-label--before { left: 14px; }
.case-compare-label--after { right: 14px; background: var(--p2l-lime); color: var(--p2l-obsidian); }
.case-compare:has(input:focus-visible) { outline: 3px solid var(--p2l-lime); outline-offset: 5px; }

/* Family Zerpa: an asymmetrical service grid with solid, useful emphasis. */
.case-family .bp-decision-grid {
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 10px;
}
.case-family .bp-decision { min-height: 330px; border: 1px solid var(--p2l-line); }
.case-family .bp-decision:first-child { background: var(--p2l-lime); color: var(--p2l-obsidian); }
.case-family .bp-decision:first-child small,
.case-family .bp-decision:first-child p { color: rgba(5,7,11,.72); }
.case-family .bp-decision:nth-child(2) { margin-top: 34px; background: #0b1320; }
.case-family .bp-decision:nth-child(3) { margin-bottom: 34px; background: #15191f; }
.case-family .bp-decision h3 { margin-top: 74px; }
.case-family .p2l-showcase { grid-template-columns: .72fr 1.28fr; }
.case-family .p2l-showcase-frame { transform: rotate(1deg); }

/* Leo: decisions read like credits; the moving portfolio gets an arched frame. */
.case-leo .bp-decision-grid { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--p2l-line); }
.case-leo .bp-decision {
  min-height: 0;
  display: grid;
  grid-template-columns: 180px .72fr 1fr;
  gap: 30px;
  align-items: center;
  padding: 26px 0;
  border: 0;
  border-bottom: 1px solid var(--p2l-line);
}
.case-leo .bp-decision h3 { margin: 0; }
.case-leo .bp-decision p { margin: 0; }
.case-leo .p2l-showcase { grid-template-columns: .9fr 1.1fr; }
.case-leo .p2l-showcase-frame { min-height: 600px; border-radius: 48% 48% 6px 6px; }
.case-leo .p2l-showcase-frame video { position: absolute; inset: 0; aspect-ratio: auto; }

@media (max-width: 900px) {
  .case-texas .bp-decision-grid,
  .case-family .bp-decision-grid { grid-template-columns: 1fr; }
  .case-texas .bp-decision,
  .case-family .bp-decision { min-height: 240px; margin: 0; }
  .case-texas .bp-decision:nth-child(2) { padding-top: 26px; }
  .case-family .p2l-showcase { grid-template-columns: 1fr; }
  .case-leo .p2l-showcase { grid-template-columns: 1fr; }
  .case-leo .bp-decision { grid-template-columns: 110px 1fr; }
  .case-leo .bp-decision p { grid-column: 2; }
}

@media (max-width: 640px) {
  .p2l-core-case .bp-case-hero { padding: 62px 0 48px; }
  .p2l-core-case .bp-section,
  .p2l-core-case .bp-final { padding: 58px 0; }
  .p2l-core-case .bp-full-media {
    height: auto;
    max-height: none;
    object-fit: contain;
  }
  .p2l-core-case main > .bp-full-media { width: calc(100% - 28px); margin-top: 20px; border-radius: 6px; }
  .case-family .p2l-showcase-frame { transform: none; }
  .case-family .p2l-showcase-frame video,
  .case-texas .p2l-device-pair > .p2l-showcase-frame:first-child video { height: auto; aspect-ratio: 4 / 5; }
  .case-compare { aspect-ratio: 1425 / 930; }
  .case-texas .p2l-device-pair > .p2l-showcase-frame:last-child img {
    height: auto;
    aspect-ratio: 375 / 812;
    object-fit: contain;
  }
  .case-leo .bp-decision { grid-template-columns: 64px 1fr; gap: 14px; }
  .case-leo .p2l-showcase-frame {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }
  .case-leo .p2l-showcase-frame video {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: contain;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-family .p2l-showcase-frame { transform: none; }
}
