/* Mobile companion to the desktop particle strips. */
.mobile-case-nav { display:none; }
.mobile-case-sheet {
  --case-nav-ink:#f5e9e3;
  --case-nav-muted:#c6aea6;
  --case-nav-accent:#f4ba83;
  --case-nav-line:rgba(244,186,131,.24);
  color:var(--case-nav-ink); background:#210d12;
  box-sizing:border-box; width:min(100%, 640px); max-width:100%;
  max-height:85vh; max-height:85dvh; margin:auto auto 0; padding:0;
  border:1px solid var(--case-nav-line); border-bottom:0; border-radius:18px 18px 0 0;
  box-shadow:0 -10px 60px rgba(0,0,0,.35); overflow:hidden;
  font-family:'Rajdhani', sans-serif;
}
.mobile-case-sheet::backdrop { background:rgba(12,2,6,.7); }
.mobile-case-sheet[open] { display:flex; flex-direction:column; }
.mobile-case-sheet__heading { flex:none; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 20px; border-bottom:1px solid var(--case-nav-line); }
.mobile-case-sheet__heading h2 { font-size:24px; font-weight:500; letter-spacing:.03em; margin:0; color:inherit; }
.mobile-case-sheet__close { min-height:44px; min-width:60px; padding:8px; border:0; border-radius:4px; background:transparent; color:var(--case-nav-accent); font:600 16px 'Rajdhani', sans-serif; cursor:pointer; }
.mobile-case-sheet__list { min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:6px 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
.mobile-case-sheet__group { margin:18px 0 0; }
.mobile-case-sheet__group h3 { margin:0 0 5px; color:var(--case-nav-muted); font-size:13px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; }
.mobile-case-sheet__group ul { list-style:none; padding:0; margin:0; }
.mobile-case-sheet__item { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:48px; box-sizing:border-box; padding:10px 0; border-bottom:1px solid var(--case-nav-line); color:var(--case-nav-ink); font-size:18px; line-height:1.25; text-decoration:none; overflow-wrap:anywhere; }
.mobile-case-sheet__item[aria-current] { color:var(--case-nav-accent); }
.mobile-case-sheet__selected { flex:none; font-size:12px; font-weight:600; letter-spacing:.04em; }
.mobile-case-sheet a:focus-visible, .mobile-case-sheet button:focus-visible, .mobile-case-nav a:focus-visible, .mobile-case-nav button:focus-visible { outline:2px solid var(--case-nav-accent); outline-offset:-2px; }
body.mobile-case-chooser-open { overflow:hidden; }
body.day-mode .mobile-case-sheet, body.day-mode .mobile-case-nav {
  --case-nav-ink:#32191d; --case-nav-muted:#76534d; --case-nav-accent:#88451f; --case-nav-line:rgba(99,51,32,.22);
  background:#f6e4cd;
}
@media (max-width:720px) {
  body.project-case .project-strip, body.industry-case .industry-strip:not(.project-strip) { display:none; }
  .mobile-case-nav {
    --case-nav-ink:#f5e9e3; --case-nav-muted:#c6aea6; --case-nav-accent:#f4ba83; --case-nav-line:rgba(244,186,131,.24);
    position:fixed; z-index:160; left:0; right:0; bottom:0; box-sizing:border-box;
    padding:10px max(16px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    color:var(--case-nav-ink); background:#210d12; border-top:1px solid var(--case-nav-line);
    font-family:'Rajdhani', sans-serif; box-shadow:0 -6px 24px rgba(0,0,0,.12);
    max-height:55vh; max-height:55dvh; overflow-y:auto; overscroll-behavior:contain;
  }
  body.project-case .mobile-case-nav--project, body.industry-case .mobile-case-nav--industry { display:block; }
  .mobile-case-nav__current { max-width:640px; margin:0 auto; }
  .mobile-case-nav__eyebrow { display:block; color:var(--case-nav-muted); font-size:10px; line-height:1.25; letter-spacing:.14em; text-transform:uppercase; }
  .mobile-case-nav__title { margin:3px 0 4px; color:inherit; font-size:17px; font-weight:500; line-height:1.2; letter-spacing:.015em; overflow-wrap:anywhere; }
  .mobile-case-nav__controls { display:grid; grid-template-columns:1fr 1.2fr 1fr; align-items:stretch; gap:8px; max-width:640px; margin:0 auto; }
  .mobile-case-nav__controls a, .mobile-case-nav__controls button { box-sizing:border-box; display:flex; justify-content:center; align-items:center; min-width:0; min-height:44px; padding:8px 3px; border:0; border-radius:4px; background:transparent; color:var(--case-nav-ink); font:500 16px/1.15 'Rajdhani', sans-serif; text-align:center; text-decoration:none; overflow-wrap:anywhere; cursor:pointer; }
  .mobile-case-nav__controls .mobile-case-nav__chooser { color:var(--case-nav-accent); border:1px solid var(--case-nav-line); font-weight:600; }
  .mobile-case-nav__controls :disabled { color:var(--case-nav-muted); opacity:.5; cursor:default; }
  body.project-case .project-detail.page.case > .page-foot, body.industry-case .industry-detail.page.case > .page-foot { padding-bottom:calc(var(--mobile-case-nav-height, 120px) + 28px); }
}
