/* Case study pages: same night studio palette as the home scene.
   Layout: sticky glass top bar, hero with cover "frame", then a sticky contents rail on the left
   and a 720px reading column whose figures break out wider. */
:root {
  --night: #100F1A;
  --panel: #17152A;
  --panel-2: #1D1A33;
  --glass: rgba(18, 16, 30, 0.7);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #F4F2FA;
  --text-soft: #B8B4CC;
  --text-faint: #8A86A0;
  --accent: #FFB547;
  --accent-ink: #1C1305;
  --violet: #8E8CFF;
  --live: #FF4D6D;

  --f-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-hero: clamp(2.8rem, 8vw, 6.5rem);
  --t-h2: clamp(1.9rem, 3.6vw, 2.9rem);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--night); color: var(--text);
  font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(70% 40% at 70% 0%, rgba(142, 140, 255, 0.12), transparent 70%),
    radial-gradient(50% 30% at 10% 10%, rgba(255, 181, 71, 0.08), transparent 70%);
  background-repeat: no-repeat;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ---------- Top bar ---------- */
.progress { position: fixed; z-index: 30; left: 0; top: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--read, 0)); background: linear-gradient(90deg, var(--violet), var(--accent)); }
/* Same language as the home header: the rk tile plus glass pills, over a soft fade instead of a hard strip. */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 14px var(--gutter) 22px;
  background: linear-gradient(to bottom, rgba(16, 15, 26, 0.94) 0%, rgba(16, 15, 26, 0.72) 55%, rgba(16, 15, 26, 0) 100%);
}
.bar a { text-decoration: none; }
.bar-start { justify-self: start; display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mini { display: block; flex: none; width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line-strong); transition: transform .2s var(--ease); }
.brand-mini:hover { transform: scale(1.05); }
.brand-mini img { display: block; width: 100%; height: 100%; border-radius: inherit; }
.back, .home {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; white-space: nowrap;
  border-radius: 999px; border: 1px solid var(--line); background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text);
  transition: background-color .2s ease, border-color .2s ease;
}
.back:hover, .home:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--line-strong); }
/* Case pages: back goes to the case studies list; Studio (home) sits on the right. */
.home { grid-column: 3; justify-self: end; }
.home svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.back svg, .btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bar-title { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-title b { color: var(--text); font-weight: 500; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04); color: var(--text);
  font-size: 0.875rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, transform .25s var(--ease);
}
.btn:hover { background: rgba(255, 255, 255, 0.1); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent); filter: brightness(1.06); transform: translateY(-1px); }
.btn .yt { stroke-width: 1.4; }

/* ---------- Hero ---------- */
.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(32px, 5vw, 56px); display: grid; gap: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-soft); }
.chip.hot { border-color: rgba(255, 181, 71, 0.5); color: var(--accent); }
.hero h1 { font-family: var(--f-display); font-weight: 800; font-size: var(--t-hero); line-height: 0.95; letter-spacing: -0.035em; }
.hero .sub { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.35; color: var(--text-soft); max-width: 32ch; }
.meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.meta div { padding: 18px 20px 18px 0; }
.meta div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.meta dt { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px; }
.meta dd { margin: 0; font-size: 0.9375rem; line-height: 1.45; }

.frame { position: relative; margin: 0; }
.frame-label { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; font-family: var(--f-mono); font-size: 0.75rem; color: var(--violet); }
.frame-label svg { width: 11px; height: 11px; stroke: currentColor; stroke-width: 1.4; fill: none; }
.frame .shot { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.frame .shot img { width: 100%; height: auto; cursor: zoom-in; transition: transform .8s var(--ease); }
.frame .shot:hover img { transform: scale(1.015); }
.frame figcaption { margin-top: 10px; font-size: 0.875rem; color: var(--text-faint); }
.cover .shot { border-radius: 28px; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45); }

/* ---------- Body layout ---------- */
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding-block: clamp(40px, 6vw, 80px); }
.toc { position: sticky; top: 96px; align-self: start; display: grid; gap: 2px; }
.toc p { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 10px; }
.toc a { display: block; padding: 7px 12px; border-radius: 10px; text-decoration: none; font-size: 0.9375rem; color: var(--text-soft); border-left: 2px solid transparent; transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.toc a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.toc a.active { color: var(--text); border-left-color: var(--accent); background: rgba(255, 181, 71, 0.06); }

.content { display: grid; gap: clamp(64px, 9vw, 112px); min-width: 0; }
.section { display: grid; gap: 22px; scroll-margin-top: 90px; }
.section > .read { max-width: 720px; display: grid; gap: 16px; }
.eyebrow { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.section h2 { font-family: var(--f-display); font-weight: 700; font-size: var(--t-h2); line-height: 1.08; letter-spacing: -0.02em; }
.section h3 { font-family: var(--f-display); font-weight: 650; font-size: 1.35rem; line-height: 1.25; }
.read p { color: var(--text-soft); }
.read p strong { color: var(--text); font-weight: 600; }
.list { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-soft); }
.list li::marker { color: var(--accent); }

.hmw {
  position: relative; padding: clamp(24px, 4vw, 40px); border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 181, 71, 0.14), rgba(142, 140, 255, 0.1));
  border: 1px solid rgba(255, 181, 71, 0.25);
}
.hmw span { display: block; font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.hmw q { font-family: var(--f-display); font-weight: 650; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.2; quotes: "“" "”"; }

.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { padding: 20px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; min-width: 0; }
.card .k { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.card strong { font-family: var(--f-display); font-size: 1.15rem; font-weight: 650; }
.card p { color: var(--text-soft); font-size: 0.9375rem; line-height: 1.55; }
.card img { border-radius: 12px; cursor: zoom-in; background: var(--panel-2); }
.card .list { font-size: 0.9375rem; }
.stat { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; color: var(--accent); }

.feature { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(20px, 3vw, 32px); border-radius: 28px; background: var(--panel); border: 1px solid var(--line); }
.feature.flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.feature.flip > :first-child { order: 2; }
.feature .num { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.12em; color: var(--violet); }
.feature .txt { display: grid; gap: 12px; }
.feature .txt p { color: var(--text-soft); }
.feature .shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; }
.feature .shots img { width: 100%; border-radius: 16px; cursor: zoom-in; background: var(--panel-2); }

/* Images sit in frames that fit them whole: rows share one height, light frames for diagrams with dark text */
.frame { display: flex; flex-direction: column; min-width: 0; }
.frame-label { align-self: flex-start; }
.frame .shot { flex: 1; display: grid; place-items: center; }
.frame .shot.light { background: #F6F5FA; border-color: rgba(255, 255, 255, 0.16); padding: clamp(10px, 1.6vw, 20px); }
.frame .shot.light img { border-radius: 8px; }
.frame-note { margin-top: 10px; font-size: 0.875rem; color: var(--text-faint); }
.row { display: grid; grid-template-columns: var(--cols, 1fr 1fr); gap: 16px; align-items: stretch; }
.row.pair { max-width: 820px; }

/* Competitor logos on even tiles */
.card.brand { gap: 8px; }
.logo-tile { height: 132px; margin-bottom: 6px; border-radius: 14px; background: var(--tile, #fff); display: grid; place-items: center; overflow: hidden; }
.card .logo-tile img { width: auto; height: auto; max-width: 70%; max-height: 72%; object-fit: contain; border-radius: 0; background: none; cursor: default; }

/* Numbered findings and interview questions */
.findings .card { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 14px; }
.idx { font-family: var(--f-mono); font-size: 0.8125rem; color: var(--accent); padding-top: 2px; }
.findings .card p { color: var(--text); font-size: 1rem; }
.interviews { align-items: stretch; }
.qs { margin: 4px 0 0; padding-left: 22px; display: grid; gap: 8px; color: var(--text-soft); font-size: 0.9375rem; line-height: 1.5; }
.qs li::marker { color: var(--accent); font-family: var(--f-mono); font-size: 0.8125rem; }

/* Personas: persona card and journey map side by side, same height */
.persona { display: grid; gap: 12px; padding: clamp(16px, 2.4vw, 24px); border-radius: 24px; background: var(--panel); border: 1px solid var(--line); }
.persona-head { display: grid; gap: 2px; }
.persona-head .k { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }

/* Phone screens: one size everywhere, with captions */
.phones { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(14px, 2vw, 24px); }
.phone { margin: 0; width: min(var(--phone-w, clamp(150px, 15vw, 210px)), calc(50% - 8px)); display: grid; gap: 10px; align-content: start; }
.phone.solo { width: min(var(--phone-w), 72vw); }
.phone img { width: 100%; height: auto; border-radius: 20px; cursor: zoom-in; background: var(--panel-2); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); transition: transform .5s var(--ease); }
.phone img:hover { transform: translateY(-4px); }
.phone figcaption { font-size: 0.8125rem; line-height: 1.4; color: var(--text-faint); text-align: center; }

/* Metrics, testing methods, challenges */
.metrics { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.metrics li { display: grid; gap: 1px; font-size: 0.875rem; line-height: 1.45; color: var(--text-faint); }
.metrics b { color: var(--text); font-weight: 600; font-size: 0.9375rem; }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.875rem; color: var(--text-soft); }
.challenge .solution { display: grid; gap: 4px; margin-top: 4px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 181, 71, 0.08); border: 1px solid rgba(255, 181, 71, 0.22); color: var(--text); }
.challenge .solution b { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 500; }

/* FridgeBuddy: app icons, comparison table, full-width feature mockups, interview quotes */
.hmw-row .hmw { display: grid; align-content: center; }
.card.app { justify-items: start; gap: 6px; }
.card .app-icon { width: 56px; height: 56px; margin-bottom: 6px; border-radius: 14px; object-fit: cover; background: #fff; cursor: default; }
.compare-wrap { overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.9375rem; }
.compare caption { caption-side: top; text-align: left; padding: 18px 20px 6px; font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.compare th, .compare td { padding: 11px 16px; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font-family: var(--f-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; color: var(--text-soft); text-align: center; vertical-align: bottom; }
.compare thead th:first-child, .compare tbody th { text-align: left; }
.compare thead th span { display: inline-grid; justify-items: center; gap: 6px; }
.compare .app-icon { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; background: #fff; }
.compare tbody th { font-weight: 400; color: var(--text); position: sticky; left: 0; background: var(--panel); }
.compare td { text-align: center; }
.compare tbody tr:hover > * { background: #1C1A31; }
.compare .yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 181, 71, 0.14); color: var(--accent); font-weight: 700; font-size: 0.8125rem; }
.compare .no { color: var(--text-faint); opacity: 0.6; }
.findings .card p b { color: var(--text); font-weight: 600; }
.said { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.said li { padding: 6px 11px; border-radius: 12px 12px 12px 4px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); font-size: 0.875rem; line-height: 1.4; color: var(--text-soft); }
.grid.themes { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.themes > :nth-child(-n+3) { grid-column: span 2; }
.themes > :nth-child(n+4) { grid-column: span 3; }
.feature.wide { grid-template-columns: minmax(0, 1fr); align-items: start; }
.feature.wide .txt { max-width: 62ch; }
.wide-shots { display: grid; gap: 14px; }
.wide-shots .shot { border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.16); background: #F6F5FA; padding: clamp(10px, 1.6vw, 20px); display: grid; place-items: center; }
.wide-shots img { width: auto; max-width: 100%; max-height: 620px; height: auto; border-radius: 8px; cursor: zoom-in; }

.note { display: flex; gap: 12px; padding: 16px 18px; border-radius: 16px; border: 1px dashed var(--line-strong); color: var(--text-soft); font-size: 0.9375rem; }
.note b { color: var(--accent); font-weight: 600; white-space: nowrap; }

/* ---------- Footer ---------- */
.next { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding-block: 24px clamp(48px, 7vw, 96px); }
.next a { text-decoration: none; }
.next-card { display: grid; gap: 10px; padding: 24px; border-radius: 24px; border: 1px solid var(--line); background: var(--panel); transition: border-color .25s ease, transform .35s var(--ease); }
.next-card:hover { border-color: rgba(255, 181, 71, 0.5); transform: translateY(-3px); }
.next-card .k { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.next-card strong { font-family: var(--f-display); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.1; }
.next-card p { color: var(--text-soft); font-size: 0.9375rem; }
.next-card.ask { background: linear-gradient(135deg, rgba(255, 181, 71, 0.16), rgba(142, 140, 255, 0.12)); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px 40px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 0.75rem; color: var(--text-faint); }
.foot nav { display: flex; flex-wrap: wrap; gap: 16px; }
.foot-id { display: inline-flex; align-items: center; gap: 10px; }
.foot-id img { width: 22px; height: 22px; flex: none; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ---------- Reveal & lightbox ---------- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(8, 7, 14, 0.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .25s ease; cursor: zoom-out; }
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; width: auto; max-width: 100%; border-radius: 14px; box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6); }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--glass); color: var(--text); font-size: 1.2rem; cursor: pointer; }

@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .bar-title { display: none; }
  .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meta div:nth-child(3) { padding-left: 0; border-left: 0; }
  .meta div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid.c2, .grid.c3, .grid.c4, .grid.themes, .row { grid-template-columns: minmax(0, 1fr); }
  .themes > * { grid-column: auto !important; }
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); }
  .feature.flip > :first-child { order: 0; }
  .next { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.001ms !important; }
}

/* Email is an action, styled alongside the footer links. */
.foot button[data-copy-email] { border: 0; background: none; color: inherit; font: inherit; padding: 0; cursor: pointer; }
.foot button[data-copy-email]:hover { color: var(--accent); }

/* Consistent leading icons on contact actions. */
.contact-icon { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.foot nav a, .foot nav button[data-copy-email] { display: inline-flex; align-items: center; gap: 8px; }

/* Real product screens from Figma */
.frame .shot.ui { border-radius: 14px; background: #fff; border-color: rgba(255, 255, 255, 0.14); place-items: start stretch; }
.frame .shot.ui.sheet { background: #E2E2E2; }
.grid.c2 > .frame { align-self: start; }

/* Before/after switch (Select Design System) */
.ba-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 8px; }
.ba-head .frame-label { margin-bottom: 0; }
.ba-switch { display: inline-flex; flex-wrap: wrap; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; }
.ba-switch button { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); background: none; border: 0; padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: color .2s ease, background-color .2s ease; }
.ba-switch button:hover { color: var(--text); }
.ba-switch button[aria-pressed="true"] { background: var(--text); color: var(--night); }
.ba .ba-img[hidden] { display: none; }

/* Touch screens: footer links and switches get finger-sized tap areas */
@media (pointer: coarse), (max-width: 720px) {
  .foot nav { gap: 4px 8px; }
  .foot nav a, .foot nav button[data-copy-email] { min-height: 44px; padding-inline: 8px; }
  .ba-switch button { min-height: 40px; padding-inline: 14px; }
}
