/* ============================================================
   DAIRY DROP CASE STUDY — dairydrop.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(140,228,237,0.18);
  --border-h:   rgba(140,228,237,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;

  /* Dairy Drop brand — cyan / teal */
  --ac:         #8CE4ED;
  --ac-2:       #22B8C9;
  --ac-dim:     rgba(18,58,64,0.18);
  --ac-bdr:     rgba(140,228,237,0.20);
  --ac-bdr-h:   rgba(140,228,237,0.42);
  --deep:       #0e3b42;

  /* 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(34,184,201,0.28)  0%, transparent 60%),
    radial-gradient(ellipse 50% 45% at 90%  20%, rgba(18,58,64,0.35)   0%, transparent 55%),
    radial-gradient(ellipse 65% 70% at 55%  110%,rgba(140,228,237,0.14) 0%, transparent 58%),
    radial-gradient(ellipse 35% 35% at 75%  65%, rgba(90,200,210,0.12)  0%, transparent 50%);
}

.ps-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(140,228,237,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140,228,237,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:#0e3b42; opacity:.18; top:-160px;  left:-220px; }
.ps-orb-2 { width:480px; height:480px; background:#22B8C9; opacity:.12; top:35%;     right:-190px; animation-delay:-6s; }
.ps-orb-3 { width:380px; height:380px; background:#8CE4ED; opacity:.10; bottom:8%;   left:20%; animation-delay:-11s; }
.ps-orb-4 { width:240px; height:240px; background:#2AB7C4; 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, #22B8C9, #8CE4ED);
  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(140,228,237,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(140,228,237,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: #35c9d8; 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(140,228,237,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(140,228,237,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(34,184,201,.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(140,228,237,.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(18,58,64,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(18,58,64,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(140,228,237,.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; }

/* ── HOW MIGHT WE callout ── */
.case-hmw {
  margin-top: 18px;
  padding: 22px 26px;
  border-radius: 18px;
  border: 1px solid var(--ac-bdr);
  background: var(--ac-dim);
}
.case-hmw__k {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ac); margin-bottom: 10px;
}
.case-hmw__q {
  font-family: var(--font-serif);
  font-size: clamp(17px, 2vw, 22px); line-height: 1.42; color: var(--white);
}

/* ── Lists inside case cards (bulleted / numbered) ── */
.case-list { margin: 4px 0 0; padding: 0; list-style: none; }
.case-list li {
  position: relative; padding-left: 18px; margin-bottom: 9px;
  font-size: 14px; color: var(--text-muted); line-height: 1.55;
}
.case-list li:last-child { margin-bottom: 0; }
.case-list li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--ac);
}
.case-list--num { counter-reset: cl; }
.case-list--num li { padding-left: 28px; }
.case-list--num li::before {
  counter-increment: cl;
  content: counter(cl, decimal-leading-zero);
  top: 0; left: 0; width: auto; height: auto; border-radius: 0; background: none;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--ac);
}

/* ── Problem & Role: white panels for readability on the dark page ── */
#problem .case-hmw,
#problem .pstep,
#role .case-card {
  background: #ffffff;
  border-color: rgba(0,0,0,0.10);
}
#problem .case-hmw:hover,
#problem .pstep:hover,
#role .case-card:hover { border-color: var(--ac-2); }

#problem .case-hmw__q,
#problem .ptitle,
#role .case-card h3 { color: #14202b; }

#problem .pdesc,
#role .case-card p,
#role .case-list li { color: #41505c; }

/* accents readable on white */
#problem .case-hmw__k,
#problem .pnum,
#role .case-list--num li::before { color: #0e6f6a; }

/* bullet dots only on the bulleted list */
#role .case-list:not(.case-list--num) li::before { background: #22B8C9; }
/* numbered markers: plain teal digits, no box */
#role .case-list--num li::before { background: none; }

/* ── Problem & Role: readability (all screens) ── */
#problem .pdesc,
#role .case-card p,
#role .case-list li { font-size: 15px; line-height: 1.62; }
#problem .ptitle,
#role .case-card h3 { font-size: 16.5px; }
#problem .case-hmw__q { line-height: 1.5; }

/* ── Problem & Role: mobile comfort ── */
@media (max-width: 640px) {
  #problem .case-hmw    { padding: 18px 18px; margin-top: 14px; }
  #problem .case-hmw__q { font-size: 17px; line-height: 1.5; }
  #problem .pstep       { padding: 16px 16px; }
  #role   .case-card    { padding: 18px 16px; }
  #problem .pdesc,
  #role .case-card p,
  #role .case-list li   { font-size: 15px; line-height: 1.6; }
  #problem .ptitle,
  #role .case-card h3   { font-size: 16px; }
  #role .case-list li   { margin-bottom: 11px; }
  #role .case-list--num li { padding-left: 26px; }
}
.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(140,228,237,.16); overflow: hidden; background: rgba(18,58,64,.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(18,58,64,.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(140,228,237,.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(18,58,64,.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(140,228,237,.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, #0e3b42 0%, #22B8C9 55%, #8CE4ED 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(140,228,237,.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(140,228,237,0.20);
  padding: 60px 48px 40px;
  position: relative; z-index: 1;
}

.case-footer--avion { border-top-color: rgba(140,228,237,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(140,228,237,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(140,228,237,.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(140,228,237,.50); }
.case-footer__form input::placeholder  { color: rgba(255,255,255,.28); }
.case-footer__form button {
  padding: 10px 16px;
  background: rgba(34,184,201,.18);
  border: 1px solid rgba(140,228,237,.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(34,184,201,.30); }

.case-footer__bottom {
  max-width: 1120px; margin: 36px auto 0; padding-top: 22px;
  border-top: 1px solid rgba(140,228,237,.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(140,228,237,.20);
  color: rgba(255,255,255,.50); transition: all .2s;
}
.case-footer__proj-nav a:hover { background: rgba(34,184,201,.15); color: #fff; border-color: rgba(140,228,237,.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: #35c9d8; }

/* ── 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; }

/* ── DAIRY DROP THEME EXTRAS ── */
.theme-dairy .pf:hover {
  box-shadow: 0 20px 55px rgba(140,228,237,.18);
  border-color: rgba(140,228,237,.42);
}
.theme-dairy .pf__tag--after { border-color: rgba(140,228,237,.5); color: #8CE4ED; }
.theme-dairy .pf__badge { background: #8CE4ED; color: #06222a; }

/* Full presentation slides (letter landscape) shown uncropped.
   Scoped under .theme-dairy so specificity beats project-frames.css .pf rules
   (which load after this file). */
.theme-dairy .pf--slide { aspect-ratio: 792 / 612; background: #f4fbfc; }
.theme-dairy .pf--slide > img { object-fit: contain; object-position: center; }
.theme-dairy .pf--slide:hover > img { transform: scale(1.02); }

/* Clean hi-res phone screens — fill frame exactly */
.theme-dairy .pf--screen { aspect-ratio: 652 / 1452; background: #eef7f8; }
.theme-dairy .pf--screen > img { object-fit: cover; object-position: top center; }

/* Grid of the 8 hi-fi screens */
.pf-grid--screens {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  align-items: start;
  margin-top: 20px;
}
@media (max-width: 900px) { .pf-grid--screens { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .pf-grid--screens { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; } }

/* Slides shown two-up */
.pf-grid--slides {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  align-items: start;
  margin-top: 20px;
}
@media (max-width: 760px) { .pf-grid--slides { grid-template-columns: 1fr; } }

/* Persona/empathy pairing */
.theme-dairy .pf-grid--slides .pf--slide { aspect-ratio: 792 / 612; }
