/* ═══════════════════════════════════════════════════════════════
   CASE STUDY — CORE (shared structure + behavior styling)
   Loaded by every project page, under every aesthetic/theme.

   This file owns LAYOUT: grids, spacing, positioning, the reveal
   system, device-frame mechanics, responsive breakpoints. It also
   ships sensible (intentionally generic) decorative defaults so a
   page never looks broken if a theme file is missing.

   It does NOT own brand identity. Every color and font below is a
   CSS custom property with a neutral fallback — a theme stylesheet
   loaded AFTER this one (see theme-bauhaus.css for the pattern)
   overrides the tokens AND may override any decorative property
   directly (box-shadow, border-radius, border-style, letter-spacing)
   to give that aesthetic its own voice. Never hardcode a color or
   font-family in a NEW rule here — add/reuse a token instead.
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ─── color tokens (neutral fallback — a theme file overrides these) ─── */
  --white:  #ffffff;
  --off:    #f5f5f5;
  --black:  #333333;
  --mid:    #888888;
  --light:  #dddddd;
  --orange: #888888;
  --orange-dark: #666666;

  /* ─── type tokens ─── */
  --font-sans:   -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:  Georgia, 'Times New Roman', serif;
  --font-mono:   'Courier New', monospace;
  --weight-hero: 400;   /* the big display headline weight */
  --weight-body: 400;

  /* ─── decorative tokens (safe to override wholesale per theme) ─── */
  --card-shadow:  8px 8px 0 var(--light);
  --card-border:  1px solid var(--black);
  --card-radius:  0px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-sans);
  font-weight: var(--weight-body);
  overflow-x: hidden;
}

a { color: inherit; }

.mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.orange-bar { height: 3px; background: var(--orange); width: 100%; }

/* ─── PRIMARY NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--black);
}
.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  height: 56px;
}
.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  border-right: 1px solid var(--black);
  padding-right: 2rem;
}
.nav-fox-box {
  width: 64px;
  height: 56px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.25rem;
  flex-shrink: 0;
  border-right: 1px solid var(--black);
  overflow: hidden;
  padding: 10px 12px;
}
.nav-fox-box svg { opacity: 0.18; }
.nav-wordmark {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--black);
}
.nav-spacer { border-right: 1px solid var(--black); }
.nav-links {
  display: flex;
  align-items: stretch;
  list-style: none;
}
.nav-links li { border-left: 1px solid var(--black); display: flex; }
.nav-links a {
  display: flex;
  align-items: center;
  padding: 0 1.75rem;
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--black);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--black); color: var(--white); }
.nav-links .active a span { border-bottom: 2px solid var(--orange); padding-bottom: 4px; }
.nav-links a:hover span { border-color: transparent; }

@media (max-width: 720px) {
  /* Every landing page keeps its wordmark visible on mobile, just
     smaller — hiding it here made the case-study nav visibly
     mismatched the moment a visitor clicked into a project. Dropping
     the spacer column (and giving nav-links the freed space) matches
     every landing page's own mobile nav-inner override — without it
     the wordmark is squeezed into a narrow auto column and wraps to
     two lines, and the spacer's own border-right stacks against
     nav-brand's to read as one abnormally thick divider. */
  .nav-inner { grid-template-columns: auto 1fr; }
  .nav-spacer { display: none; }
  .nav-fox-box { width: 48px; margin-right: 0.75rem; padding: 8px; }
  /* white-space:nowrap forces the "auto" grid column to size to the
     wordmark's true single-line width — without it, the browser's
     grid track sizing can settle on a narrower value once nav-links'
     own content competes for space in the adjacent 1fr column, and
     the wordmark wraps to two lines instead of staying on one. */
  .nav-brand > a:last-child { white-space: nowrap; }
  .nav-wordmark { font-size: 0.85rem; white-space: nowrap; }
  .nav-brand { padding-right: 1rem; }
  .nav-links a { padding: 0 1rem; font-size: 0.72rem; }
}
@media (max-width: 480px) {
  .nav-links a { padding: 0 0.7rem; font-size: 0.65rem; }
}

/* ─── SECONDARY NAV (which project you're in) ─── */
.nav-spacer-fixed { height: 56px; }
.case-nav {
  position: sticky;
  top: 56px;
  z-index: 90;
  background: var(--off);
  border-bottom: 1px solid var(--light);
}
.case-nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 3rem;
  height: 46px;
}
.case-nav-inner::-webkit-scrollbar { display: none; }
.case-nav-link {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  opacity: 0.6;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
  transition: all 0.15s;
  flex-shrink: 0;
}
.case-nav-link:hover { opacity: 1; border-color: var(--light); background: var(--white); }
.case-nav-link.active { color: var(--orange); opacity: 1; border-color: var(--orange); background: var(--white); }
@media (max-width: 900px) {
  .case-nav-inner { justify-content: flex-start; padding: 0 1.5rem; }
}
@media (max-width: 560px) {
  .case-nav-inner { padding: 0 1rem; height: 42px; }
  .case-nav-link { font-size: 0.58rem; padding: 5px 9px; }
}

/* ─── SHARED CASE-STUDY CONTENT PARTS ─── */
.cs-section { padding: 5rem 3rem; border-bottom: 1px solid var(--light); }
.cs-section.alt { background: var(--off); }
.cs-section:last-of-type { border-bottom: 1px solid var(--black); }

.eyebrow {
  font-size: 0.72rem;
  color: var(--orange);
}
.eyebrow::before { content: '— '; }

h1.disp {
  font-family: var(--font-sans);
  font-weight: var(--weight-hero);
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--black);
  max-width: 20ch;
  margin-top: 0.9rem;
  text-wrap: balance;
}

h2.sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  color: var(--black);
  margin-top: 0.6rem;
  text-wrap: balance;
}

p.lead {
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  line-height: 1.7;
  color: var(--black);
  max-width: 60ch;
  margin-top: 1.3rem;
  text-wrap: pretty;
}

.meta-row {
  display: flex;
  gap: 3rem;
  margin-top: 1.6rem;
  border-top: 1px solid var(--light);
  padding-top: 1.1rem;
  flex-wrap: wrap;
}
.meta-item .label { font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--mid); margin-bottom: 0.3rem; }
.meta-item .value { font-size: 0.92rem; color: var(--black); }

blockquote.q {
  margin-top: 1.6rem;
  padding-left: 1.2rem;
  border-left: 2px solid var(--orange);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--black);
  max-width: 52ch;
  line-height: 1.5;
}
blockquote.q .who {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
}

.frame {
  border: var(--card-border);
  background: var(--white);
  box-shadow: var(--card-shadow);
  border-radius: var(--card-radius);
  overflow: hidden;
}
.frame img { display: block; width: 100%; height: auto; }
.frame-link { display: block; position: relative; }
.frame-link::after {
  content: "↗ Click to open the interactive prototype";
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.5rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(20,18,16,0.82);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}
.frame-link:hover::after { opacity: 1; transform: translateY(0); }
.frame-zoom { position: relative; cursor: zoom-in; }
.frame-zoom::after {
  content: "🔍 Click to enlarge";
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.5rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(20,18,16,0.82);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}
.frame-zoom:hover::after { opacity: 1; transform: translateY(0); }

/* ─── LIGHTBOX (click-to-enlarge for [data-lightbox] images) ─── */
#lightbox {
  position: fixed; inset: 0; z-index: 999999;
  display: none;
  align-items: center; justify-content: center;
  padding: 1.5vh 1.5vw;
  background: rgba(20,18,16,0.88);
  overflow: auto;
}
#lightbox.open { display: flex; }
#lightbox img {
  display: block;
  width: auto; height: auto;
  max-width: 97vw; max-height: 97vh;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  animation: lightboxIn 0.18s ease both;
  cursor: zoom-in;
  margin: auto;
}
/* Zoomed: show the image at full native resolution, scrollable — for wide artifacts
   where "fit to screen" still isn't big enough to read comfortably. */
#lightbox.zoomed { align-items: flex-start; justify-content: flex-start; cursor: default; }
#lightbox.zoomed img {
  max-width: none; max-height: none;
  cursor: zoom-out;
  margin: 0;
}
@keyframes lightboxIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
#lightbox-close {
  position: fixed; top: 24px; right: 28px; z-index: 1000000;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
#lightbox-close:hover { background: rgba(0,0,0,0.55); }

.frame-cap {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  padding: 0.6rem 0.9rem;
  border-top: 1px solid var(--light);
}

/* ─── THE RIVER: split layouts (text/media, alternating sides) ─── */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4vw;
  align-items: center;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}
.split.rev { grid-template-columns: 0.95fr 1.05fr; }
.split.rev .split-media { order: 2; }
.split.rev .split-text { order: 1; }
.split.media-lead { grid-template-columns: 0.72fr 1.28fr; }
@media (max-width: 900px) {
  .split, .split.rev, .split.media-lead { grid-template-columns: 1fr; }
  .split.rev .split-media, .split.rev .split-text,
  .split.media-lead .split-media, .split.media-lead .split-text { order: unset; }
  .split-media, .split-media-stack { margin-top: 2.5rem; }
}

ul.bullets { margin-top: 1.5rem; max-width: 56ch; }
ul.bullets li {
  list-style: none;
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.55;
}
ul.bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 7px; height: 1px;
  background: var(--orange);
}

.stat-row {
  display: flex;
  gap: 0;
  margin-top: 1.8rem;
  border-top: 1px solid var(--light);
  flex-wrap: wrap;
}
.stat { flex: 1; min-width: 140px; padding: 1.3rem 1.5rem 0 0; }
.stat .num {
  font-family: var(--font-sans);
  font-weight: var(--weight-hero);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--orange);
  line-height: 1;
}
.stat .lbl { margin-top: 0.4rem; font-size: 0.72rem; color: var(--mid); max-width: 16ch; }

.note-box {
  margin-top: 1.6rem;
  padding: 1.1rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--light);
  border-left: 2px solid var(--orange);
  max-width: 60ch;
  font-size: 0.9rem;
  line-height: 1.6;
}
.note-box .tag { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); display: block; margin-bottom: 0.5rem; }

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--orange);
  padding-bottom: 3px;
  transition: color 0.2s;
}
.cta-link:hover { color: var(--orange); }

.case-intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4vw;
  max-width: 1300px;
  margin: 0 auto;
  align-items: center;
  width: 100%;
}
.case-intro-quote {
  background: var(--white);
  border: var(--card-border);
  border-left: 3px solid var(--orange);
  padding: 2.2rem 2rem;
  box-shadow: var(--card-shadow);
  border-radius: var(--card-radius);
}
.case-intro-quote blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1.5;
  color: var(--black);
}
.case-intro-quote .who {
  display: block;
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}
@media (max-width: 900px) { .case-intro { grid-template-columns: 1fr; } .case-intro-quote { margin-top: 2rem; } }

.stat-graphic {
  background: var(--white);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: var(--card-radius);
  padding: 2rem 2.2rem;
  text-align: center;
}
.stat-graphic-num {
  font-family: var(--font-sans);
  font-weight: var(--weight-hero);
  font-size: 4.6rem;
  line-height: 1;
  color: var(--orange);
}
.stat-graphic-label {
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
}
.stat-graphic-list {
  margin-top: 1.4rem;
  border-top: 1px solid var(--light);
  padding-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.stat-graphic-list div { font-size: 0.82rem; color: var(--mid); }

/* ─── DEVICE FRAME (phone bezel, no notch by default — see .has-notch) ─── */
.device-chrome {
  position: relative;
  margin: 0 auto;
  background: #29282a;
  box-shadow: var(--card-shadow);
}
.device-chrome .device-screen { position: relative; overflow: hidden; background: var(--white); display: block; }
.device-chrome .device-screen img { display: block; width: 100%; height: auto; }
.device-chrome .device-screen iframe { display: block; border: 0; }
.device-chrome.phone { border-radius: 34px; padding: 12px; width: 300px; max-width: 100%; }
.device-chrome.phone .device-screen { border-radius: 22px; }
.device-chrome.phone.has-notch .device-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 84px; height: 20px; border-radius: 12px; background: #0d0d0e; z-index: 3; }
.device-caption { text-align: center; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mid); margin-top: 0.9rem; }
.split-media-stack { display: flex; flex-direction: column; align-items: center; }

/* ─── HERO ─── */
.cs-hero { padding: 4rem 3rem 5rem; }
.cs-hero-money { max-width: 1300px; margin: 3.5rem auto 0; }

@media (max-width: 720px) {
  .cs-section { padding: 3rem 1.5rem; }
  .cs-hero { padding: 2.5rem 1.5rem 3rem; }
  h1.disp { max-width: none; }
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(.22,.61,.36,1), transform 0.5s cubic-bezier(.22,.61,.36,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─── RIVER: full-width breaks between splits ─── */
.river-break {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.river-break blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.4;
  color: var(--black);
}
.river-break .who {
  display: block;
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}

.river-full { max-width: 1300px; margin: 0 auto; }

.redaction-note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--mid);
  margin-top: 1rem;
}
.river-full .cs-eyebrow-wrap { text-align: center; margin-bottom: 2.5rem; }

/* ─── LIVE PROTOTYPE EMBEDS ─── */
.live-frame {
  position: relative;
  margin: 0 auto;
  background: #29282a;
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--card-shadow);
  max-width: 100%;
}
.live-frame .live-bar { display: flex; gap: 6px; padding: 0 4px 8px; }
.live-frame .live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4a4849; }
.live-frame .live-screen { border-radius: 6px; overflow: hidden; background: var(--white); }
.live-frame iframe { display: block; width: 100%; border: 0; }

/* Wide desktop-app embeds: fixed native render, scaled responsively via CSS vars so nothing ever overflows or needs internal scroll. --rw/--rh size the SCREEN only; the outer .live-frame bezel auto-hugs that plus its own dots-bar + padding — it must never get an explicit height, or content taller than the bezel spills past the bottom edge uncontained. */
.scaled-embed { margin: 0 auto; }
.scaled-embed .live-frame { width: fit-content; max-width: 100%; }
.scaled-embed .live-screen,
.scaled-embed .device-screen { width: var(--rw); height: var(--rh); max-width: 100%; }
.scaled-embed iframe { transform: scale(var(--rscale)); transform-origin: top left; }

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}
.live-tag::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ─── FOOTER ─── */
footer { border-top: 1px solid var(--black); background: var(--white); }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 4rem 3rem;
}
.footer-brand-name { font-size: 1.1rem; color: var(--black); margin-bottom: 0.4rem; }
.footer-brand-desc { font-size: 0.8rem; color: var(--mid); line-height: 1.5; }
.footer-col-label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.9rem; }
.footer-link { display: block; font-size: 0.85rem; color: var(--black); text-decoration: none; margin-bottom: 0.6rem; transition: color 0.15s; }
.footer-link:hover { color: var(--orange); }
.footer-static { font-size: 0.8rem; color: var(--mid); margin-bottom: 0.5rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.25rem 3rem;
  border-top: 1px solid var(--light);
}
.footer-copy { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.04em; color: var(--mid); }
@media (max-width: 720px) {
  .footer-top { grid-template-columns: 1fr 1fr; padding: 2.5rem 1.5rem; }
  .footer-bottom { padding: 1.25rem 1.5rem; flex-direction: column; }
}

/* ─── EXPERIENCE SWITCHER PILL ─── */
#pill-switcher { position: fixed; bottom: 28px; left: 28px; z-index: 9998; font-family: var(--font-mono); }
#pill-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--black);
  box-shadow: 4px 4px 0 var(--light); padding: 12px 18px;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--black); cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}
#pill-btn:hover { box-shadow: 2px 2px 0 var(--light); transform: translate(2px,2px); }
#pill-menu {
  position: absolute; bottom: calc(100% + 12px); left: 0; width: 230px;
  background: var(--white); border: 1px solid var(--black); box-shadow: 4px 4px 0 var(--light);
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
#pill-switcher.menu-open #pill-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.pill-menu-label { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mid); padding: 6px 8px 8px; }
.pill-menu-item {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  background: none; border: none; font-family: var(--font-sans); font-size: 13px;
  color: var(--black); padding: 9px 8px; cursor: pointer; text-decoration: none;
}
.pill-menu-item:hover { background: var(--off); }
.pill-menu-dot { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--mid); flex-shrink: 0; }
.pill-menu-item.current .pill-menu-dot { background: var(--orange); border-color: var(--orange); }
.pill-menu-item.current { font-weight: 500; }
@media (max-width: 640px) { #pill-switcher { display: none; } }

/* ─── CONTACT MODAL ─── */
@keyframes modalIn { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
#contact-modal.is-open { display: flex !important; }
@media (max-width: 640px) {
  #contact-modal { padding: 0 !important; align-items: flex-end !important; }
  #contact-modal > div:nth-child(2) { max-width:100% !important; border-left:none !important; border-right:none !important; border-bottom:none !important; border-radius:12px 12px 0 0; max-height:92vh; overflow-y:auto; }
  #contact-form-wrap { padding: 1.5rem 1.25rem !important; }
  #contact-form-wrap > div:first-child { grid-template-columns: 1fr !important; }
}

/* ─── TYPOGRAPHY: reduce widows/orphans in body copy ─── */
p, li, blockquote, .frame-cap, .footer-brand-desc {
  text-wrap: pretty;
}
