/* ============================================================
   AVION CASE STUDY — avion.css
   Mirrors mschf.css structure exactly.
   Fonts via typography.css:
     Headings  → MinionPro  (--font-serif)
     Body      → Poppins    (--font-sans)
     UI / mono → Space Mono (--font-mono)
   ============================================================ */

/* ── TOKENS ── */
:root {
  --bg:         #0e0d16;
  --bg-2:       #13121e;
  --bg-card:    #1a1828;
  --border:     rgba(114,110,141,0.18);
  --border-h:   rgba(114,110,141,0.38);
  --text:       #F6F6F6;
  --text-muted: rgba(246,246,246,0.60);
  --text-dim:   rgba(246,246,246,0.38);
  --white:      #FFFFFF;

  --font-serif: 'MinionPro', Georgia, serif;
  --font-sans:  'Poppins', system-ui, sans-serif;
  --font-mono:  'Space Mono', monospace;

  /* Avion brand — indigo/purple */
  --ac:         #726E8D;
  --ac-2:       #4E4D93;
  --ac-dim:     rgba(42,37,75,0.18);
  --ac-bdr:     rgba(114,110,141,0.20);
  --ac-bdr-h:   rgba(114,110,141,0.42);
  --deep:       #2A254B;

  /* Layout */
  --navH:    64px;
  --subnavH: 52px;
  --r:       12px;
  --r-lg:    22px;
  --ease:    cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 980px) { :root { --navH: 60px; } }
@media (max-width: 640px) { :root { --navH: 72px; --subnavH: 72px; } }

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ── PAGE LAYOUT ── */
.ps-page-wrap { padding-top: var(--navH); position: relative; z-index: 1; }

/* ── BACKGROUNDS ── */
.ps-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.ps-bg::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 10%  5%,  rgba(78,77,147,0.28)  0%, transparent 60%),
    radial-gradient(ellipse 50% 45% at 90%  20%, rgba(42,37,75,0.35)   0%, transparent 55%),
    radial-gradient(ellipse 65% 70% at 55%  110%,rgba(114,110,141,0.14) 0%, transparent 58%),
    radial-gradient(ellipse 35% 35% at 75%  65%, rgba(80,89,119,0.12)  0%, transparent 50%);
}

.ps-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(114,110,141,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114,110,141,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

.ps-orb {
  position: fixed; border-radius: 50%;
  filter: blur(110px); pointer-events: none; z-index: 0;
  animation: psFloat 16s ease-in-out infinite;
}
.ps-orb-1 { width:600px; height:600px; background:#2A254B; opacity:.18; top:-160px;  left:-220px; }
.ps-orb-2 { width:480px; height:480px; background:#4E4D93; opacity:.12; top:35%;     right:-190px; animation-delay:-6s; }
.ps-orb-3 { width:380px; height:380px; background:#726E8D; opacity:.10; bottom:8%;   left:20%; animation-delay:-11s; }
.ps-orb-4 { width:240px; height:240px; background:#505977; opacity:.10; bottom:30%;  right:12%; animation-delay:-4s; }

@keyframes psFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-28px) scale(1.03); }
}

/* ── PROGRESS BAR ── */
.ps-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, #4E4D93, #726E8D);
  z-index: 999; transition: width .1s linear;
}

/* ── CURSOR ── */
.din-cursor {
  position: fixed; top: 0; left: 0; width: 7px; height: 7px;
  background: rgba(255,255,255,.9); border-radius: 50%;
  pointer-events: none; z-index: 99999;
  transform: translate(-50%,-50%); mix-blend-mode: difference;
}
.din-cursor-ring {
  position: fixed; top: 0; left: 0; width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.22); border-radius: 50%;
  pointer-events: none; z-index: 99998;
  transform: translate(-50%,-50%);
  transition: width .4s cubic-bezier(.23,1,.32,1), height .4s cubic-bezier(.23,1,.32,1);
}
@media (pointer:coarse),(max-width:900px) { .din-cursor,.din-cursor-ring { display: none !important; } }

/* ── NAVIGATION ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 64px; height: var(--navH);
  background: rgba(14,13,22,0.92);
  backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(114,110,141,0.18);
  will-change: transform;
  transition: background .3s, height .3s;
}

.logo a   { display: flex; align-items: center; }
.logo img { height: 44px; width: auto; filter: brightness(0) invert(1); }

.menu { display: flex; align-items: center; gap: 48px; }
.menu a {
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  position: relative; transition: color .25s;
}
.menu a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--ac);
  transition: width .3s;
}
.menu a:hover          { color: #fff; }
.menu a:hover::after   { width: 100%; }

.burger {
  display: none; flex-direction: column; gap: 6px;
  width: 36px; border: none; background: none; cursor: pointer; padding: 4px;
}
.burger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; }

/* Mobile menu */
.mobile-menu { display: none; position: fixed; inset: 0; z-index: 9001; background: rgba(0,0,0,.6); backdrop-filter: blur(10px); }
.mobile-menu.open { display: flex; justify-content: flex-end; }
.mobile-menu-panel {
  width: min(360px,86vw); height: 100%;
  background: var(--bg-2); border-left: 1px solid var(--border);
  padding: 26px 28px; display: flex; flex-direction: column;
  animation: slideIn .3s var(--ease);
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.mobile-menu-top { display: flex; justify-content: flex-end; margin-bottom: 36px; }
.mobile-close {
  border: 1px solid var(--border); background: rgba(255,255,255,.03);
  color: var(--text-muted); width: 40px; height: 40px;
  border-radius: 12px; font-size: 22px; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.mobile-close:hover { color: #fff; border-color: rgba(255,255,255,.22); }
.mobile-menu-links { display: flex; flex-direction: column; gap: 18px; }
.mobile-menu-links a {
  font-family: var(--font-serif);
  font-size: 28px; font-weight: 300; color: var(--text-muted);
  transition: color .25s, transform .25s; display: inline-block;
}
.mobile-menu-links a:hover { color: #fff; transform: translateX(8px); }

/* ── SUBNAV — geometry from style.css, no overrides here ── */

/* ── CASE WRAP ── */
.case-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 16px 80px;
}

/* ── HERO ── */
.case-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0 0;
}

.ps-hero-accent {
  width: 28px; height: 3px;
  background: linear-gradient(90deg, var(--ac-2), var(--ac));
  border-radius: 2px; margin-bottom: 20px;
}

.case-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(114,110,141,0.85); margin-bottom: 16px;
}

.case-title {
  font-family: var(--font-serif);
  font-size: clamp(52px, 7vw, 72px);
  font-weight: 400; line-height: .92;
  letter-spacing: -0.02em;
  color: var(--white); margin-bottom: 18px;
}

.case-sub {
  max-width: 46ch;
  color: rgba(255,255,255,.78);
  font-size: 16px; line-height: 1.6;
}

/* ── ACTION BUTTONS ── */
.case-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

.btn-case {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: #fff; font-family: var(--font-sans);
  font-size: 13px; font-weight: 500;
  transition: transform .2s, background .2s;
}
.btn-case:hover { transform: translateY(-1px); background: rgba(255,255,255,.10); }
.btn-case.primary {
  background: var(--ac-2);
  border-color: var(--ac-2);
  color: #fff; font-weight: 600;
}
.btn-case.primary:hover { background: #5d5cab; filter: brightness(1.1); }

/* ── META CARDS ── */
.case-meta {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 10px; margin-top: 22px;
}

.meta-card {
  border: 1px solid var(--ac-bdr);
  background: var(--ac-dim);
  border-radius: 16px; padding: 13px 15px;
}

.meta-k {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(114,110,141,0.85);
}

.meta-v {
  margin-top: 5px; color: rgba(255,255,255,.9);
  font-size: 13px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center;
}

.chip {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap; color: rgba(255,255,255,.9);
}

/* ── SECTIONS ── */
.case-sections { margin-top: 52px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 52px; }

.case-section {
  border-top: 1px solid rgba(114,110,141,0.18);
  padding-top: 28px;
  scroll-margin-top: calc(var(--navH) + var(--subnavH) + 20px);
}

/* section scroll offset for sticky subnav */
.ps-page-wrap .case-section { scroll-margin-top: calc(var(--navH) + var(--subnavH) + 20px); }

.case-h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400; line-height: 1.05;
  color: var(--white); margin-bottom: 14px;
}

.case-p { color: var(--text-muted); line-height: 1.75; max-width: 70ch; }
.case-p + .case-p { margin-top: 12px; }

/* ── STATS ── */
.case-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 12px; margin-top: 22px;
}

.stat {
  background: var(--ac-dim);
  border: 1px solid var(--ac-bdr);
  border-radius: 18px; padding: 18px;
  transition: transform .3s, box-shadow .3s;
}
.stat:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(78,77,147,.22); }

.stat-n {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 400; line-height: 1;
  color: var(--ac); margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(114,110,141,.4);
}
.stat-t { font-size: 13px; color: var(--text-muted); line-height: 1.4; }

/* ── 2-COL GRID ── */
.case-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }

.case-card {
  border: 1px solid var(--ac-bdr);
  background: rgba(42,37,75,0.12);
  border-radius: 20px; padding: 20px;
  transition: transform .28s, border-color .28s;
}
.case-card:hover { transform: translateY(-4px); border-color: var(--ac-bdr-h); }
.case-card h3 { font-family: var(--font-serif); font-size: 16px; color: var(--white); margin-bottom: 8px; }
.case-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ── PROCESS ── */
.case-process { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 14px; }

.pstep {
  background: rgba(42,37,75,0.10);
  border: 1px solid var(--ac-bdr);
  border-radius: 18px; padding: 18px;
  transition: transform .28s, border-color .28s;
}
.pstep:hover { transform: translateY(-4px); border-color: var(--ac-bdr-h); }

.pnum  { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(114,110,141,.70); margin-bottom: 8px; }
.ptitle { font-family: var(--font-serif); font-size: 15px; color: var(--white); margin-bottom: 6px; }
.pdesc  { color: var(--text-muted); font-size: 14px; line-height: 1.58; }

/* ── SWATCHES ── */
.case-swatch-row {
  display: grid; grid-template-columns: repeat(5,1fr);
  gap: 10px; margin-top: 16px; margin-bottom: 14px;
}

.sw { border-radius: 16px; border: 1px solid rgba(114,110,141,.16); overflow: hidden; background: rgba(42,37,75,.08); }
.sw::before { content: ''; display: block; height: 52px; background: var(--c); }
.sw span    { display: block; padding: 8px 10px 0; font-size: 11px; color: rgba(255,255,255,.60); }
.sw b       { display: block; padding: 3px 10px 10px; font-size: 11px; letter-spacing: .06em; color: rgba(255,255,255,.88); }

/* ── TYPE CARDS ── */
.case-type-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }

.type-card {
  background: rgba(42,37,75,.10);
  border: 1px solid var(--ac-bdr);
  border-radius: 18px; padding: 18px;
}
.type-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(114,110,141,.85); }
.type-s { font-family: var(--font-serif); font-size: 15px; color: var(--white); margin-top: 7px; }
.type-ex { font-size: 26px; margin-top: 10px; color: rgba(255,255,255,.88); }

/* ── LEARNINGS ── */
.learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }

.learn-card {
  background: rgba(42,37,75,.10);
  border: 1px solid var(--ac-bdr);
  border-radius: 18px; padding: 18px;
  transition: transform .28s, border-color .28s;
}
.learn-card:hover { transform: translateY(-4px); border-color: var(--ac-bdr-h); }

.learn-n { font-family: var(--font-serif); font-size: 26px; color: rgba(114,110,141,.50); margin-bottom: 8px; }
.learn-t { font-family: var(--font-serif); font-size: 15px; color: var(--white); margin-bottom: 6px; }
.learn-p { font-size: 14px; color: var(--text-muted); line-height: 1.58; }

/* ── CTA BANNER ── */
.ps-cta-banner {
  margin-top: 22px; border-radius: 24px; padding: 48px 36px;
  background: linear-gradient(135deg, #2A254B 0%, #4E4D93 55%, #726E8D 100%);
  position: relative; overflow: hidden; text-align: center;
}
.ps-cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 20%, rgba(255,255,255,.07) 0%, transparent 60%);
}
.ps-cta-banner h3 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400; color: #fff;
  margin: 0 0 12px; position: relative;
}
.ps-cta-banner p { color: rgba(255,255,255,.85); margin: 0 auto 22px; max-width: 460px; font-size: 15px; position: relative; }

.cta-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; position: relative; }

.ps-cta-banner .btn-case         { border-color: rgba(255,255,255,.30); background: rgba(255,255,255,.10); color: #fff; }
.ps-cta-banner .btn-case:hover   { background: rgba(255,255,255,.20); }
.ps-cta-banner .btn-case.primary { background: #fff; color: var(--deep); border-color: #fff; font-weight: 600; }
.ps-cta-banner .btn-case.primary:hover { background: rgba(255,255,255,.90); }

/* ── LIGHTBOX ── */
.no-scroll   { overflow: hidden; }
.img-modal   { position: fixed; inset: 0; display: none; z-index: 9999; }
.img-modal.open { display: block; }
.img-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.75); }
.img-modal-card {
  position: relative;
  max-width: min(1080px, 92vw); max-height: 88vh;
  margin: 6vh auto 0; border-radius: 20px; overflow: auto;
  background: var(--bg-2);
  border: 1px solid rgba(114,110,141,.20);
  box-shadow: 0 28px 80px rgba(0,0,0,.6);
}
.img-modal-card img { width: 100%; display: block; height: auto; }
.img-modal-close {
  position: sticky; top: 0; float: right; margin: 10px;
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.08); color: #fff; cursor: pointer;
}

/* ── REVEAL ── */
[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
[data-reveal-delay="4"] { transition-delay: .45s; }
[data-reveal-delay="5"] { transition-delay: .6s; }

/* ── FOOTER ── */
.case-footer {
  background: rgba(14,13,22,0.96);
  border-top: 1px solid rgba(114,110,141,0.20);
  padding: 60px 48px 40px;
  position: relative; z-index: 1;
}

.case-footer--avion { border-top-color: rgba(114,110,141,0.22); }

.case-footer__inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 60px; align-items: start;
}

.case-footer__logo    { width: 38px; height: 38px; object-fit: contain; margin-bottom: 12px; filter: brightness(0) invert(1); }
.case-footer__tagline { font-size: 13px; color: rgba(255,255,255,.40); line-height: 1.7; max-width: 240px; }

.case-footer__title { font-family: var(--font-mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: rgba(114,110,141,0.75); margin-bottom: 18px; }

.case-footer__nav   { display: flex; flex-direction: column; gap: 11px; }
.case-footer__nav a { font-size: 14px; color: rgba(255,255,255,.50); transition: color .2s, transform .2s; display: inline-block; }
.case-footer__nav a:hover { color: #fff; transform: translateX(4px); }

.case-footer__item  { font-size: 13px; color: rgba(255,255,255,.45); margin-bottom: 9px; }
.case-footer__hint  { font-size: 13px; color: rgba(255,255,255,.40); margin-bottom: 12px; line-height: 1.6; }

.case-footer__form  { display: flex; gap: 8px; }
.case-footer__form input {
  flex: 1; padding: 10px 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(114,110,141,.22);
  border-radius: 8px; color: #fff;
  font-family: var(--font-sans); font-size: 13px;
  outline: none; transition: border-color .2s;
}
.case-footer__form input:focus        { border-color: rgba(114,110,141,.50); }
.case-footer__form input::placeholder  { color: rgba(255,255,255,.28); }
.case-footer__form button {
  padding: 10px 16px;
  background: rgba(78,77,147,.18);
  border: 1px solid rgba(114,110,141,.22);
  border-radius: 8px; color: #fff;
  font-family: var(--font-sans); font-size: 11px;
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap; transition: background .2s;
}
.case-footer__form button:hover { background: rgba(78,77,147,.30); }

.case-footer__bottom {
  max-width: 1120px; margin: 36px auto 0; padding-top: 22px;
  border-top: 1px solid rgba(114,110,141,.14);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,.30);
  flex-wrap: wrap; gap: 12px;
}
.case-footer__case-label { color: rgba(255,255,255,.18); }

.case-footer__proj-nav { display: flex; gap: 10px; align-items: center; }
.case-footer__proj-nav a {
  font-size: 12px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(114,110,141,.20);
  color: rgba(255,255,255,.50); transition: all .2s;
}
.case-footer__proj-nav a:hover { background: rgba(78,77,147,.15); color: #fff; border-color: rgba(114,110,141,.42); }
.case-footer__proj-nav a.cta   { background: var(--ac-2); color: #fff; border-color: var(--ac-2); font-weight: 600; }
.case-footer__proj-nav a.cta:hover { background: #5d5cab; }

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .case-stats     { grid-template-columns: 1fr; }
  .case-process   { grid-template-columns: 1fr; }
  .case-swatch-row { grid-template-columns: repeat(3,1fr); }
  .learn-grid     { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav     { padding: 0 24px; }
  .menu    { display: none; }
  .burger  { display: flex; }

  .case-hero { grid-template-columns: 1fr; gap: 32px; }

  .case-footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .case-footer        { padding: 50px 24px 36px; }

}

@media (max-width: 640px) {
  .case-wrap      { padding: 20px 16px 80px; }
  .case-grid2     { grid-template-columns: 1fr; }
  .case-type-row  { grid-template-columns: 1fr; }
  .case-swatch-row { grid-template-columns: repeat(2,1fr); }
  .case-meta      { grid-template-columns: 1fr; }
  .case-footer__inner  { grid-template-columns: 1fr; gap: 28px; }
  .case-footer__bottom { flex-direction: column; align-items: flex-start; }
  .ps-cta-banner  { padding: 36px 24px; }
}

@media (max-width: 520px) {
  .mobile-menu.open  { justify-content: center; }
  .mobile-menu-panel { width: 100%; border-left: none; }
}

/* ── PF GRIDS ── */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
}

.pf-grid .pf--full {
  grid-column: 1 / -1;
}

.pf-grid--mobile-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  align-items: start;
}

.pf-grid--mobile-2 .pf {
  width: 100%;
}

.pf-grid--mobile-2 .pf img {
  width: 100%;
  height: auto;
  display: block;
}

.pf-grid--ba {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  align-items: start;
}

/* ── PF GRIDS RESPONSIVE ── */
@media (max-width: 700px) {
  .pf-grid {
    grid-template-columns: 1fr;
  }

  .pf-grid .pf--full {
    grid-column: 1;
  }

  .pf-grid--ba {
    grid-template-columns: 1fr;
  }

  .pf-grid--mobile-2 {
    grid-template-columns: unset;
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding-bottom: 12px;
    scrollbar-width: none;
  }

  .pf-grid--mobile-2::-webkit-scrollbar {
    display: none;
  }

  .pf-grid--mobile-2 .pf {
    flex: 0 0 78vw;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
}

.case-subnav-link.active {
  color: #fff;
  background: rgba(255,255,255,.12); /* замени на var(--ac) если хочешь цветной */
}

.case-subnav-pill {
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.case-subnav-pill::-webkit-scrollbar { display: none; }