/* =========================================================
   Solid Core Digital — Project detail page (Trenchspire Excavation)
   Loads after styles.css (global tokens, header, footer, buttons).
   Desktop values are 1:1 with the Figma "project details page" frame (1440 × 4850).
   Breakpoints follow the homepage: 1439 / 1279 / 1199 / 1100 / 1023 / 860 / 767 / 479
   ========================================================= */

/* ---------- Header: current section (Figma: blue, bold, no underline) ---------- */
.site-nav > a.is-current { color: var(--blue-600); font-weight: 700; }

/* ---------- Shared ---------- */
.section-label {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 14px; line-height: 16.5px; letter-spacing: 2.75px; text-transform: uppercase; color: var(--blue-accent);
}
.section-label__line { width: 32px; height: 1px; background: var(--blue-accent); flex: none; }
.grad-dark { background: var(--grad-dark-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* Fixed-size illustration stages scaled to their column by project.js (--s) */
.fit { --s: 1; position: relative; width: 100%; }
.fit__stage { position: absolute; left: 0; top: 0; transform: scale(var(--s)); transform-origin: 0 0; }

/* Long screenshots that start part-way down the page */
.shot img { transform: translate(var(--shot-x, 0), var(--shot-y, 0)); }
@media (hover: hover) {
  .shot:hover img { transform: translate(var(--shot-x, 0), var(--scroll-max, -60%)); }
}

/* =========================================================
   HERO
   ========================================================= */
.phero { position: relative; overflow: hidden; background: #01020a; color: #fff; }
.phero__inner {
  position: relative; max-width: 1440px; min-height: 745px; margin-inline: auto;
  display: grid; grid-template-columns: 474.67px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 85.33px; align-items: start; align-content: start;
  padding: 0 96.67px 36px 106px;
}
.phero__copy { grid-column: 1; grid-row: 1; margin-top: 150px; display: flex; flex-direction: column; align-items: flex-start; }

.back-link {
  display: inline-flex; align-items: center; gap: 8px; margin: 3px 0 25px;
  font-weight: 700; font-size: 16px; line-height: 16px; letter-spacing: .3px;
}
.back-link span {
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 50%, #06b6d4 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.back-link img { transition: transform .35s var(--ease-out); }
.back-link:hover img { transform: translateX(-3px); }

.phero__tag { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-weight: 700; font-size: 14px; line-height: 16px; letter-spacing: .6px; color: var(--blue-accent); }
.phero__tag-line { width: 28px; height: 1px; background: var(--blue-accent); flex: none; }
.phero__title { margin-bottom: 24px; font-family: var(--f-display); font-weight: 800; font-size: 65px; line-height: 76px; letter-spacing: -1.3px; color: #fff; }
.phero__title .grad-text { padding-bottom: 0; }
.phero__lead { max-width: 448px; margin-bottom: 32px; font-weight: 500; font-size: 18px; line-height: 24px; color: var(--text-soft); }
.phero__cta { height: 52px; padding: 0 28px; gap: 10px; font-size: 16px; line-height: 24px; }

.phero__visual { grid-column: 2; grid-row: 1 / span 2; margin-top: 147px; height: 0; min-width: 0; } /* overflows visibly; keeps grid rows driven by the copy */
.plap-stage { width: 677.33px; height: 556.75px; }
.phero__visual .fit { max-width: 677.33px; aspect-ratio: 677.33 / 556.75; }

.pedestal {
  position: absolute; left: 50.67px; top: 434.75px; width: 576px; height: 64px;
  filter: drop-shadow(0 25px 25px rgba(0, 0, 0, .9));
}
.pedestal span {
  position: absolute; inset: 0; display: block;
  clip-path: polygon(11.1% 0, 88.9% 0, 100% 100%, 0 100%);
  border-top: 1px solid rgba(255, 255, 255, .15);
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0) 0%, rgba(34, 211, 238, .05) 50%, rgba(34, 211, 238, 0) 100%),
    linear-gradient(174.92deg, #1c2536 0%, #111827 40%, #080c14 100%);
  box-shadow: inset 0 2px 4px 0 rgba(255, 255, 255, .12);
}
.plap { position: absolute; left: 2.67px; top: 0; width: 672px; }
.plap__screen {
  position: relative; height: 429.25px; overflow: hidden;
  border: 1px solid rgba(71, 85, 105, .5); border-bottom: 0; border-radius: 16px 16px 0 0;
  background: #0c1017;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, .8), 0 0 45px 0 rgba(14, 165, 233, .15);
}
.plap__notch { position: absolute; left: 50%; top: 4px; width: 48px; height: 10px; margin-left: -24px; display: grid; place-items: center; background: #000; border-radius: 0 0 6px 6px; z-index: 1; }
.plap__notch i { width: 6px; height: 6px; border-radius: 50%; background: #1b2535; }
.plap__base {
  position: absolute; left: -20.155px; top: 427.25px; width: 712.31px; height: 16px;
  display: flex; justify-content: center; padding-top: 1px;
  border-top: 1px solid rgba(100, 116, 139, .4); border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #3a4454 0%, #1e2634 50%, #121722 100%);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
}
.plap__base span { width: 56px; height: 4px; background: #0b0e14; border-radius: 0 0 6px 6px; }
.plap__glow { position: absolute; left: 10%; right: 10%; top: 434.75px; height: 32px; border-radius: 9999px; background: rgba(14, 165, 233, .2); filter: blur(12px); pointer-events: none; }

/* glass feature bar (homepage .pillars with this page's Figma values) */
.ppills { grid-column: 1 / -1; grid-row: 2; justify-self: start; position: relative; z-index: 2; margin-top: 33px; height: 108.3px; padding: 16.64px 25.64px; align-items: center;
  background: linear-gradient(127.67deg, rgba(9, 24, 48, .58) 0%, rgba(5, 15, 33, .72) 50%, rgba(2, 8, 20, .85) 100%); }
.ppill:first-child { flex: 1 1 0; padding: 10.235px 20.469px 10.235px 0; }
.ppill:nth-child(2) { flex: 0 0 214px; height: 59px; padding: 0 20.469px 0 21.109px; }
.ppill:nth-child(3) { flex: 1 1 0; height: 59px; padding: 0 0 0 21.109px; }
.ppill img { width: 24px; height: 24px; }
.ppill p { white-space: nowrap; }

/* =========================================================
   CONCEPT PREVIEW + CONTEXT
   ========================================================= */
.pctx { position: relative; overflow: hidden; min-height: 1239px; padding: 62px 24px 57.5px; }
.pctx__bg { position: absolute; inset: 0; pointer-events: none; }
.pctx__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.pctx__inner { position: relative; max-width: 1440px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }

.concept-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12.5px;
  border-radius: 9999px; border: .5px solid var(--blue-600); background: rgba(255, 255, 255, .75);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
  font-weight: 700; font-size: 16px; line-height: 16px; color: var(--slate-700); white-space: nowrap;
}
.concept-pill__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-600); flex: none; }
.concept-pill__dot--green { background: #10b981; }
.concept-pill__dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; animation: ping 2.4s cubic-bezier(0, 0, .2, 1) infinite; }

.lap2-wrap { width: min(996.08px, 100%); margin-top: 12px; }
@media (min-width: 1200px) { .lap2-wrap { translate: 11.04px 0; } }
.lap2-wrap .fit { aspect-ratio: 996.08 / 608; }
.lap2-stage { width: 996.08px; height: 608px; }
.lap2 { width: 996.08px; display: flex; flex-direction: column; align-items: center; }
.lap2__screen {
  position: relative; width: 100%; height: 581.708px; overflow: hidden; background: #111317;
  border: 1.643px solid #1e293b; border-radius: 26.292px 26.292px 0 0;
  box-shadow: 0 41.081px 82.162px -19.719px rgba(0, 0, 0, .35);
}
.lap2__cam { position: absolute; left: 50%; top: 23px; width: 13.146px; height: 13.146px; margin-left: -6.573px; border-radius: 50%; background: #27272a; border: 1.643px solid rgba(63, 63, 70, .5); z-index: 1; }
.lap2__base {
  position: relative; width: 100%; height: 19.719px; display: flex; justify-content: center; padding-top: 0;
  background: #334155; border-top: 1.643px solid #475569; border-radius: 0 0 19.719px 19.719px;
  box-shadow: 0 6.573px 9.859px -1.643px rgba(0, 0, 0, .1), 0 3.286px 6.573px -3.286px rgba(0, 0, 0, .1);
}
.lap2__base span { width: 105.168px; height: 6.573px; background: #64748b; border-radius: 0 0 6.573px 6.573px; }
.lap2__lip { width: 917.209px; height: 6.573px; background: rgba(148, 163, 184, .4); filter: blur(.822px); border-radius: 0 0 26.292px 26.292px; }

.ctx { width: 100%; max-width: 1160px; margin-top: 122px; display: flex; flex-direction: column; gap: 20px; }
.ctx__grid { display: grid; grid-template-columns: minmax(0, 660fr) minmax(0, 460fr); column-gap: 40px; min-height: 301px; align-items: start; }
.ctx__title { font-weight: 800; font-size: 48px; line-height: 55px; letter-spacing: -1.06px; color: #0f1319; }
.ctx__title .grad-text { padding-bottom: 0; }
.ctx__lead { max-width: 672px; margin-top: 24px; font-weight: 400; font-size: 18px; line-height: 28px; color: #080e1c; }

.preserved {
  margin-top: 24px; height: 183px; overflow: hidden; display: flex; align-items: flex-start; gap: 16px; padding: 28px;
  border-radius: 16px; background: #dae2ec; border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.preserved__icon { width: 64px; height: 64px; flex: none; display: grid; place-items: center; border-radius: 16px; background: rgba(37, 99, 235, .2); }
.preserved__title {
  margin-bottom: 8px; font-weight: 700; font-size: 18px; line-height: 16px; letter-spacing: 2.4px; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.preserved__text {
  max-width: 323px; font-weight: 400; font-size: 16px; line-height: 22.75px;
  background: var(--grad-dark-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Checklist variant of "What was preserved" (Alderlock, Valvepine) ---------- */
.preserved--list > div { min-width: 0; }
.preserved__list { display: flex; flex-direction: column; gap: 12px; width: 327.17px; max-width: 100%; }
.preserved__list li {
  position: relative; padding-left: 30px; min-height: 20px;
  font-weight: 700; font-size: 14px; line-height: 20px; white-space: nowrap;
  background: var(--grad-dark-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.preserved__list li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
  background: #e0f0fe url("../img/svc-tick.svg") center / 12px 12px no-repeat;
}

/* Sky ring + gradient step numerals (Alderlock, Valvepine); the tint is an inset shadow so the text clip keeps it */
.page-alderlock .change__step, .page-valvepine .change__step {
  border-color: rgba(56, 189, 248, .4); background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; box-shadow: inset 0 0 0 30px rgba(56, 189, 248, .1);
}
@media (max-width: 1279px) {
  .preserved__list { width: auto; }
  .preserved__list li { white-space: normal; }
  .preserved__list .br-desk { display: none; }
}
@media (max-width: 767px) {
  .preserved__list li { font-size: 13.5px; }
}

/* =========================================================
   THREE KEY CHANGES
   ========================================================= */
.changes { position: relative; overflow: hidden; background: var(--navy); color: #fff; min-height: 830px; isolation: isolate; }
.changes__deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.changes__inner { position: relative; max-width: calc(1160px + 48px); margin-inline: auto; padding: 124px 24px 51px; }

.pbub { position: absolute; will-change: transform; }
.pbub--tr { right: 0; top: 9px; width: 170px; height: 162px; }
.pbub--bl { left: -2px; bottom: 1px; width: 151px; height: 145px; }
.pbub__float { position: relative; width: 100%; height: 100%; animation: bubbleFloat 12s ease-in-out infinite; transition: opacity 1.2s var(--ease-out), scale 1.4s var(--ease-out); }
.pbub--bl .pbub__float { animation-duration: 14s; animation-delay: -6s; }
.pbub__ring {
  position: absolute; border-radius: 50%; border: 1px solid rgba(125, 211, 252, .7);
  background: radial-gradient(circle at 35% 60%, rgba(37, 99, 235, .5) 0%, rgba(37, 99, 235, .2) 70%, rgba(2, 128, 253, 0) 100%);
  animation: ringBreathe 9s ease-in-out infinite;
}
.pbub__orb { position: absolute; border-radius: 50%; background: var(--grad); animation: orbDrift 11s ease-in-out infinite; }
.pbub--tr .pbub__ring { left: 9px; top: 0; width: 161px; height: 161px; }
.pbub--tr .pbub__orb { left: 0; top: 0; width: 130px; height: 121px; }
.pbub--bl .pbub__ring { left: 2px; top: 0; width: 140px; height: 140px; animation-delay: -4s; }
.pbub--bl .pbub__orb { left: 50px; top: 44px; width: 101px; height: 101px; animation-delay: -5s; }
.js .changes:not(.is-in) .pbub__float { opacity: 0; scale: .8; }

.changes__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 24.57px; }
.changes__title { font-weight: 800; font-size: 48px; line-height: 48px; letter-spacing: -1.2px; color: #fff; white-space: nowrap; }
.changes__title .grad-text { padding-bottom: 0; }
.changes__lead { flex: none; width: 448px; padding-right: 24.52px; font-weight: 400; font-size: 18px; line-height: 24px; color: var(--text-soft); white-space: nowrap; }

.changes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; margin-top: 52.58px; }
.change { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.change__card {
  position: relative; width: 100%; height: 360px; display: flex; flex-direction: column; padding: 20px; overflow: hidden;
  border-radius: 16px; background: #0f1115; border: .5px solid var(--blue-600);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s;
}
.change:hover .change__card { transform: translateY(-4px); border-color: var(--blue-500); box-shadow: 0 28px 50px -18px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .1), 0 0 30px -8px rgba(37, 99, 235, .55); }
.change__step {
  width: 24px; height: 24px; flex: none; margin-bottom: 12px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(36, 123, 255, .1); border: 1px solid rgba(36, 123, 255, .4);
  font-family: var(--f-display); font-weight: 700; font-size: 11px; line-height: 16.5px; color: var(--blue-accent);
}
.change__mock { flex: 1 1 0; min-height: 0; width: 100%; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .05); background: #141820; }
.change__title { margin-top: 24px; font-weight: 700; font-size: 20px; line-height: 28px; color: #fff; }
.change__title--jakarta { font-family: var(--f-display); }
.change__text { margin-top: 7.3px; padding-bottom: 16.7px; font-weight: 400; font-size: 16px; line-height: 22.75px; color: var(--text-soft); }
.change__rule { width: 56px; height: 1px; background: rgba(255, 255, 255, .1); }

/* =========================================================
   SPECS · STATUS · CTA · NEXT PROJECT
   ========================================================= */
.pspec { position: relative; overflow: hidden; padding: 86px 24px 55px; background: #eef4fd; }
.pspec__bg { position: absolute; left: 0; right: 0; top: 0; bottom: -40px; pointer-events: none; }
.pspec__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.pspec__inner { position: relative; max-width: 1152px; margin-inline: auto; }

.spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; width: calc(100% + 32px); }
.spec {
  display: flex; flex-direction: column; gap: 32px; padding: 40px; border-radius: 28px;
  background: #dae2ec; border: 1px solid #d4dceb; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .02));
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.spec:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -26px rgba(15, 23, 42, .35); }
.spec__head { display: flex; align-items: center; gap: 16px; }
.spec__icon { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #050c1a; transition: transform .5s var(--ease-spring); }
.spec:hover .spec__icon { transform: rotate(-8deg) scale(1.05); }
.spec__head h2 { font-weight: 700; font-size: 20px; line-height: 30px; letter-spacing: .5px; text-transform: uppercase; color: #050c1a; white-space: nowrap; }
.spec__list { display: flex; flex-direction: column; gap: 24px; }
.spec__list li { position: relative; padding-left: 42px; min-height: 28px; white-space: nowrap; font-family: var(--f-ui); font-weight: 400; font-size: 18px; line-height: 24.65px; color: #1e2530; }
.spec__list li.spec__item--manrope { font-family: var(--f-body); font-weight: 500; }
.spec__list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue-600) url("../img/pd-check.svg") center / 16px 16px no-repeat;
}

.status {
  display: flex; align-items: flex-start; gap: 20px; margin-top: 52px; padding: 28px 32px;
  border-radius: 26px; background: #dae2ec; border: 1px solid #d4dceb;
}
.status__icon { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 16px; background: #050c1a; }
.status__body { min-height: 82.63px; padding-top: 3px; display: flex; flex-direction: column; gap: 3px; }
.status__title { min-height: 20px; }
.status__title { font-family: var(--f-ui); font-weight: 800; font-size: 13px; line-height: 19.5px; letter-spacing: 1.3px; text-transform: uppercase; color: #050c1a; }
.status__text {
  font-weight: 400; font-size: 18px; line-height: 27.63px;
  background: var(--grad-dark-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}

.pcta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: calc(100% + 6px); margin: 44.81px 0 0 -3px; min-height: 128px; padding: 19px 31px;
  border-radius: 20px; background: var(--navy); color: #fff;
}
.pcta__copy { display: flex; flex-direction: column; gap: 6px; }
.pcta__title { padding-bottom: 8px; font-weight: 700; font-size: 28px; line-height: 32px; letter-spacing: -.65px; color: #fff; }
.pcta__title .grad-text { padding-bottom: 0; }
.pcta__text { font-weight: 500; font-size: 16px; line-height: 22.5px; color: var(--text-soft); }
.pcta__btn { flex: none; min-width: 163.75px; height: 52px; padding: 0 32px; gap: 10px; font-size: 16px; line-height: 22.5px; }

/* ---- Next project card ---- */
.next {
  position: relative; isolation: isolate; overflow: hidden;
  width: calc(100% + 64px); margin: 43px 0 0 -32px; min-height: 520px; padding: 94px 0 57px;
  border-radius: 28px; background: #090d16; color: #fff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
}
.next__bg { position: absolute; inset: 1px 0 1px 1px; z-index: -1; pointer-events: none; overflow: hidden; background: #090d16; }
.next__bg::before {
  content: ""; position: absolute; inset: -5px 0; opacity: .4;
  background: url("../img/work-alderlock.webp") no-repeat 24.5% 32.6% / 116.8% auto;
}
.next__bg::after { content: ""; position: absolute; inset: -5px 0; background: #d9d9d9; mix-blend-mode: multiply; }
.next::before { /* soft cyan glow + 5% shade from the Figma overlays */
  content: ""; position: absolute; inset: 1px 115px 1px 1px; z-index: -1; pointer-events: none;
  background: radial-gradient(516.8px 568.2px at 682px 207.2px, rgba(56, 189, 248, .08) 0%, rgba(56, 189, 248, 0) 100%), rgba(0, 0, 0, .05);
}

.next__grid { display: grid; grid-template-columns: minmax(0, 724fr) minmax(0, 346fr); column-gap: 32px; margin: 0 84px 0 30px; height: 238.5px; }
.next__main { min-width: 0; padding-right: 32px; display: flex; flex-direction: column; align-items: flex-start; }
.next__crumb { display: flex; align-items: center; margin-bottom: 20px; font-family: var(--f-ui); font-weight: 600; font-size: 11px; line-height: 16.5px; letter-spacing: 2.42px; text-transform: uppercase; color: var(--blue-accent); }
.next__crumb span { width: 40px; height: 1px; margin-left: 12px; background: rgba(36, 123, 255, .4); flex: none; }
.next__head { display: flex; align-items: center; gap: 12px; height: 70px; }
.next__title { font-weight: 700; font-size: 46px; line-height: 40px; letter-spacing: -1.15px; color: #fff; white-space: nowrap; }
.next__title a { display: block; padding-block: 6px; }
.next__title .grad-text { padding-bottom: 0; }
.next__dot { font-size: 52px; line-height: 40px; letter-spacing: -1.3px; }
.next__ext { flex: none; transition: transform .35s var(--ease-out); }
.next__head:hover .next__ext { transform: translate(3px, -3px); }
.next__text { min-height: 70px; margin-bottom: 16px; font-weight: 400; font-size: 16px; line-height: 24px; color: var(--text-soft); white-space: nowrap; }

.next__badges { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 4px; }
.next__badges li {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-radius: 12px; border: .5px solid var(--blue-600); background: rgba(255, 255, 255, .03);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.next__bicon { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .02); border: 1px solid rgba(255, 255, 255, .1); }
.next__badges b { display: block; font-weight: 700; font-size: 14px; line-height: 16px; letter-spacing: .3px; color: #fff; white-space: nowrap; }
.next__badges small { display: block; font-weight: 400; font-size: 10px; line-height: 15px; color: var(--text-soft); white-space: nowrap; }
.next__badges small.next__inter { font-family: var(--f-ui); }

.next__side { min-width: 0; padding-top: 8px; display: flex; flex-direction: column; align-items: flex-end; }
.next__btn { height: 52px; padding: 0 28px; gap: 10px; font-size: 16px; line-height: 24px; }
.next__preview { display: flex; flex-direction: column; align-items: flex-end; padding-top: 48px; }
.next__label { padding-bottom: 10px; font-family: var(--f-ui); font-weight: 600; font-size: 11px; line-height: 16.5px; letter-spacing: 2.2px; text-transform: uppercase; color: #94a3b8; }
.next__thumb {
  position: relative; display: block; width: 224px; height: 112px; padding: 1px; overflow: hidden;
  border-radius: 16px; background: #0f172a; border: 1px solid var(--blue-600);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.next__thumb > img { width: 100%; height: auto; border-radius: 14px; transform: translateY(1px); transition: transform 1.2s var(--ease-out); }
.next__thumb::before { content: ""; position: absolute; inset: 0; background: #e5e5e5; mix-blend-mode: multiply; pointer-events: none; }
.next__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 50%); pointer-events: none; }
.next__go {
  position: absolute; right: 14px; top: 50%; z-index: 1; width: 32px; height: 32px; margin-top: -16px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(0, 0, 0, .7); border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .45s var(--ease-spring), background-color .3s;
}
.next__thumb:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -12px rgba(37, 99, 235, .6); }
.next__thumb:hover > img { transform: translateY(-18%); }
.next__thumb:hover .next__go { transform: scale(1.1); background: var(--blue-600); }

.pager {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 68.5px 57px 0; padding-top: 25px; border-top: 1px solid rgba(255, 255, 255, .5);
}
.pager__link { display: flex; align-items: center; gap: 12px; }
.pager__btn { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid rgba(255, 255, 255, .2); transition: transform .45s var(--ease-spring), box-shadow .3s; }
.pager__btn img { transition: transform .35s var(--ease-out); }
.pager__text { display: flex; flex-direction: column; font-family: var(--f-ui); font-weight: 600; }
.pager__text small { font-size: 9px; line-height: 16px; letter-spacing: .9px; text-transform: uppercase; color: #94a3b8; }
.pager__text b { font-weight: 600; font-size: 14px; line-height: 20px; color: #e2e8f0; white-space: nowrap; transition: color .25s; }
.pager__link--next .pager__text { align-items: flex-end; text-align: right; }
.pager__link:hover .pager__btn { box-shadow: 0 0 0 5px rgba(59, 130, 246, .25); }
.pager__link:hover b { color: #fff; }
.pager__link--prev:hover .pager__btn img { transform: translateX(-2px); }
.pager__link--next:hover .pager__btn img { transform: translateX(2px); }
.pager__all {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 31px; background: var(--grad);
  font-family: var(--f-ui); font-weight: 600; font-size: 11px; line-height: 16px; letter-spacing: 1.76px; text-transform: uppercase; color: #cbd5e1;
  transition: transform .35s var(--ease-out), box-shadow .35s, color .25s;
}
.pager__all:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 10px 22px -8px rgba(37, 99, 235, .7); }
.pager__grid { display: grid; grid-template-columns: 5px 5px; grid-template-rows: 5.75px 5.75px; gap: 2.5px; width: 14px; height: 14px; align-content: center; }
.pager__grid i { width: 5px; height: 5px; border: 1px solid #fff; border-radius: 1px; }

/* =========================================================
   FOOTER (page-specific legal line + motto size from the Figma)
   ========================================================= */
.footer-brand > .footer-motto { margin-top: 43.5px; font-weight: 400; font-size: 12px; line-height: 18.281px; }
.footer-legal { font-size: 15.75px; }
.footer-legal__sep { margin: 0 8px 0 6px; }
.footer-legal a { color: var(--blue-500); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .25s; }
.footer-legal a:hover { color: #60a5fa; }

@media (prefers-reduced-motion: reduce) {
  .pbub__float, .pbub__ring, .pbub__orb, .concept-pill__dot::after { animation: none !important; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* ---- ≤1439: keep the 1440 composition, tighten gutters ---- */
@media (max-width: 1439px) {
  .phero__inner { padding-left: clamp(24px, 7.36vw, 106px); padding-right: clamp(24px, 6.7vw, 96.67px); column-gap: clamp(32px, 5.9vw, 85.33px); }
}

/* ---- ≤1279: laptop ---- */
@media (max-width: 1279px) {
  .phero__inner { grid-template-columns: minmax(0, 474.67px) minmax(0, 1fr); padding-right: 32px; }
  .phero__title { font-size: clamp(52px, 5.1vw, 65px); line-height: 1.17; }
  .phero__visual { margin-top: clamp(150px, 13vw, 170px); }
  .ppills { width: min(635px, 100%); }
  .spec-grid { width: 100%; }
  .pcta { width: 100%; margin-left: 0; }
  .next { width: 100%; margin-left: 0; }
  .next__grid { margin: 0 40px; height: auto; grid-template-columns: minmax(0, 1fr) auto; }
  .next__title { font-size: 40px; }
  .next__text { white-space: normal; }
  .pager { margin: 44px 40px 0; }
  .changes__lead { flex: 0 1 448px; width: auto; max-width: 448px; white-space: normal; padding-right: 0; }
  .changes__lead .br-desk, .status__text .br-desk { display: none; }
  .changes__inner { padding-bottom: 120px; }
  .preserved { height: auto; min-height: 183px; }
  .spec__list li { white-space: normal; }
}

/* ---- ≤1199: tighter cards ---- */
@media (max-width: 1199px) {
  .spec { padding: 32px 28px; }
  .spec__list li .br-desk, .spec__list .br-desk { display: none; }
  .ctx__grid { column-gap: 32px; }
}

/* ---- ≤1100: stack the hero ---- */
@media (max-width: 1100px) {
  .phero__inner { min-height: 0; grid-template-columns: minmax(0, 1fr); padding: 140px 40px 72px; }
  .phero__copy { margin-top: 0; max-width: 640px; }
  .ppills { grid-row: 2; margin-top: 36px; height: auto; }
  .phero__visual { grid-column: 1; grid-row: 3; width: 100%; max-width: 677.33px; height: auto; margin: 56px auto 0; }
  .next__grid { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .next__main { padding-right: 0; }
  .next__side { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
  .next__preview { padding-top: 0; align-items: flex-start; }
  .next__label { order: 0; }
  .next__btn { order: 2; }
}

/* ---- ≤1023: tablet ---- */
@media (max-width: 1023px) {
  .pctx { min-height: 0; padding-bottom: 72px; }
  .ctx { margin-top: 88px; }
  .ctx__grid { grid-template-columns: minmax(0, 1fr); row-gap: 8px; min-height: 0; }
  .ctx__title { font-size: 40px; line-height: 47px; letter-spacing: -1px; }
  .preserved { max-width: 560px; height: auto; }
  .changes { min-height: 0; }
  .changes__inner { padding: 96px 24px 120px; }
  .changes__head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .changes__lead { flex: none; }
  .next__bg::before { opacity: .2; background-size: 160% auto; background-position: 18% 36%; }
  .changes__title { font-size: 40px; line-height: 44px; white-space: normal; }
  .changes__grid { column-gap: 20px; margin-top: 44px; }
  .change__card { height: auto; aspect-ratio: 365.33 / 360; padding: 16px; }
  .change__title { font-size: 18px; line-height: 25px; }
  .change__text { font-size: 15px; line-height: 22px; }
  .spec-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; gap: 20px; }
  .status { margin-top: 32px; }
  .status__text .br-desk { display: none; }
}

/* ---- ≤860: single column cards ---- */
@media (max-width: 860px) {
  .site-nav > a.is-current { color: #60a5fa; }
  .changes__grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; max-width: 480px; margin-inline: auto; }
  .change__card { padding: 20px; }
  .pcta { flex-direction: column; align-items: flex-start; padding: 26px 24px; }
  .next__badges { gap: 12px; }
  .pager { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 20px; }
  .pager__all { order: -1; grid-column: 1 / -1; justify-self: center; }
  .pager__link--next { justify-self: end; }
}

/* ---- ≤767: mobile ---- */
@media (max-width: 767px) {
  .phero__inner { padding: 112px 20px 56px; }
  .back-link { margin-bottom: 22px; font-size: 15px; }
  .phero__title { font-size: clamp(40px, 12vw, 52px); line-height: 1.12; letter-spacing: -1px; margin-bottom: 18px; }
  .phero__lead { font-size: 16px; line-height: 24px; margin-bottom: 28px; }
  .ppills { margin-top: 32px; padding: 8px 20px; align-items: stretch; }
  .ppill:first-child, .ppill:nth-child(2), .ppill:nth-child(3) { flex: none; height: auto; padding: 14px 0; border-left: 0; }
  .ppill p { white-space: normal; }
  .phero__visual { margin-top: 40px; }

  .pctx { padding: 48px 16px 56px; }
  .concept-pill { height: 34px; font-size: 13px; padding: 0 12px; }
  .lap2-wrap { margin-top: 12px; }
  .ctx { margin-top: 56px; }
  .section-label { font-size: 12px; letter-spacing: 2.2px; }
  .ctx__title { font-size: 32px; line-height: 39px; letter-spacing: -.8px; }
  .ctx__title br { display: none; }
  .ctx__lead { margin-top: 16px; font-size: 16px; line-height: 25px; }
  .preserved { padding: 20px; gap: 14px; }
  .preserved__icon { width: 52px; height: 52px; border-radius: 14px; }
  .preserved__icon img { width: 26px; height: 26px; }
  .preserved__title { font-size: 15px; letter-spacing: 1.8px; }
  .preserved__text { font-size: 15px; line-height: 22px; }

  .changes__inner { padding: 72px 20px 110px; }
  .changes__title { font-size: 32px; line-height: 38px; letter-spacing: -.8px; }
  .changes__lead { font-size: 16px; line-height: 24px; }
  .pbub--tr { scale: .6; transform-origin: top right; right: -20px; }
  .pbub--bl { scale: .6; transform-origin: bottom left; bottom: 0; }

  .pspec { padding: 56px 16px 48px; }
  .spec { padding: 26px 22px; gap: 24px; border-radius: 24px; }
  .spec__icon { width: 46px; height: 46px; }
  .spec__head h2 { font-size: 18px; }
  .spec__list { gap: 18px; }
  .spec__list li { font-size: 16px; line-height: 23px; padding-left: 38px; }
  .spec__list li::before { width: 24px; height: 24px; top: 0; background-size: 15px 15px; }
  .status { flex-direction: column; gap: 14px; padding: 22px 20px; border-radius: 22px; }
  .status__icon { width: 48px; height: 48px; border-radius: 14px; }
  .status__icon img { width: 26px; height: 26px; }
  .status__text { font-size: 16px; line-height: 25px; }
  .pcta { margin-top: 32px; }
  .pcta__title { font-size: 24px; line-height: 30px; }
  .pcta__btn { width: 100%; }
  .next { margin-top: 32px; padding: 40px 0 28px; border-radius: 24px; }
  .next__grid { margin: 0 20px; }
  .next__head { height: auto; gap: 10px; margin-bottom: 12px; }
  .next__title { font-size: 30px; line-height: 34px; letter-spacing: -.8px; white-space: normal; }
  .next__title a { padding-block: 0; }
  .next__dot { font-size: 34px; line-height: 34px; }
  .next__ext { width: 26px; height: 26px; }
  .next__text { min-height: 0; font-size: 15px; line-height: 23px; margin-bottom: 20px; }
  .next__text .br-desk { display: none; }
  .next__badges { flex-direction: column; align-items: stretch; width: 100%; }
  .next__side { flex-direction: column; align-items: stretch; }
  .next__btn { width: 100%; order: 0; }
  .next__preview { align-items: flex-start; }
  .next__thumb { width: 100%; height: auto; aspect-ratio: 2 / 1; }
  .pager { margin: 32px 20px 0; padding-top: 20px; }
  .pager__text b { font-size: 13px; white-space: normal; }
}

/* ---- ≤479: small phones ---- */
@media (max-width: 479px) {
  .changes__title { font-size: 29px; line-height: 35px; }
  .next__title { font-size: 27px; line-height: 32px; }
  .ctx__title { font-size: 29px; line-height: 36px; }
}
