/* ============================================================
   InterviewCoach AI launch site — "The Rehearsal Studio"
   Dark consumer-product theme, voice-violet accent.
   ============================================================ */

:root {
  /* Surfaces — near-black with a violet instrument tint */
  --surface-void: #05060d;
  --surface-base: #080a15;
  --surface-raised: #0d1020;
  --surface-overlay: #131830;
  --hairline: #1d2340;
  --hairline-bright: #2d3560;

  /* Text */
  --text-primary: #eef0fb;
  --text-secondary: #a3abca;
  --text-tertiary: #67708f;
  --text-inverse: #05060d;

  /* Provenance */
  --prov-shot: #34e5a0;
  --prov-shot-dim: rgba(52, 229, 160, 0.1);
  --prov-shot-text: #7cf3c4;
  --prov-docs: #5aa9ff;
  --prov-docs-dim: rgba(90, 169, 255, 0.1);
  --prov-docs-text: #a5ccff;
  --prov-illus: #b49aff;
  --prov-illus-dim: rgba(180, 154, 255, 0.1);
  --prov-illus-text: #d3c2ff;

  /* Semantic */
  --danger: #ff5470;
  --warn: #ffb43d;
  --ok: #34e5a0;

  --accent: #8b7cf6;
  --accent-strong: #a394ff;
  --accent-glow: 0 0 48px rgba(139, 124, 246, 0.28);
  --accent-dim: rgba(139, 124, 246, 0.1);

  --voice: #22d3ee;

  --font-display: 'Instrument Sans', 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --radius-chip: 4px;
  --radius-card: 10px;
  --radius-panel: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--surface-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(139, 124, 246, 0.32); color: #fff; }

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

.eyebrow { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-tertiary); }
.eyebrow .tick { color: var(--accent-strong); }

.display-xl { font-size: clamp(44px, 6.8vw, 96px); letter-spacing: -0.035em; }
.display-l { font-size: clamp(36px, 4.6vw, 64px); letter-spacing: -0.03em; }
.display-m { font-size: clamp(28px, 3.2vw, 46px); letter-spacing: -0.02em; }
.subhead { font-size: 23px; line-height: 1.55; color: var(--text-secondary); }
.body-l { font-size: 19px; color: var(--text-secondary); }
.body { font-size: 17px; color: var(--text-secondary); }
.caption { font-size: 14px; color: var(--text-tertiary); }
.micro { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-tertiary); }

.num, .figure-xl, .figure-l, .figure-m, code, kbd, .mono {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.figure-xl { font-size: clamp(56px, 8vw, 112px); letter-spacing: -0.03em; }
.figure-l { font-size: clamp(38px, 4.6vw, 64px); letter-spacing: -0.03em; }

a { color: var(--accent-strong); }
p { margin-bottom: 1em; }
strong { color: var(--text-primary); font-weight: 600; }

/* ---- Layout ---- */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 88px; }
section.site-section { padding: 160px 0; position: relative; }
.ledger-top { border-top: 1px solid var(--hairline); }
.narrow { max-width: 720px; }
.narrow-820 { max-width: 820px; }
.center { text-align: center; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; } .mt-96 { margin-top: 96px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

/* ---- Provenance chips ---- */
.chip {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.16em; padding: 2px 8px; border-radius: var(--radius-chip);
  border: 1px solid transparent; vertical-align: 0.35em; margin-left: 10px;
  cursor: default; white-space: nowrap; position: relative;
}
.chip-shot { color: var(--prov-shot-text); background: var(--prov-shot-dim); border-color: rgba(52, 229, 160, 0.35); }
.chip-docs { color: var(--prov-docs-text); background: var(--prov-docs-dim); border-color: rgba(90, 169, 255, 0.35); }
.chip-illus { color: var(--prov-illus-text); background: var(--prov-illus-dim); border-color: rgba(180, 154, 255, 0.35); animation: chip-pulse 3.2s ease-in-out infinite; }
@keyframes chip-pulse { 0%, 100% { border-color: rgba(180, 154, 255, 0.35); } 50% { border-color: rgba(180, 154, 255, 0.9); } }
.chip-pop {
  position: absolute; bottom: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(4px); width: 290px;
  background: var(--surface-overlay); border: 1px solid var(--hairline-bright);
  border-radius: var(--radius-card); padding: 14px 16px;
  font-family: var(--font-body); font-size: 13.5px; line-height: 1.55;
  letter-spacing: 0; text-transform: none; color: var(--text-secondary);
  opacity: 0; pointer-events: none; transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  z-index: 60; text-align: left; white-space: normal; box-shadow: 0 18px 48px rgba(0,0,0,0.5);
}
.chip-pop strong { color: var(--text-primary); display: block; margin-bottom: 6px; font-size: 12px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; }
.chip:hover .chip-pop, .chip:focus-within .chip-pop { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
button.chip { background: none; font-family: var(--font-mono); font-size: 11px; cursor: pointer; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.04em;
  padding: 16px 30px; border-radius: var(--radius-card); border: 1px solid var(--accent);
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600;
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.btn:hover { box-shadow: var(--accent-glow); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--hairline-bright); }
.btn-ghost:hover { border-color: var(--accent); box-shadow: none; }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 40px; }

/* ---- Cards ---- */
.card { background: var(--surface-raised); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 40px; }
.card h3 { font-size: 24px; margin-bottom: 10px; }
.card .card-sub { color: var(--text-secondary); font-size: 16px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out); }
.feature-card:hover { border-color: var(--hairline-bright); transform: translateY(-4px); }
.feature-ic { font-size: 30px; margin-bottom: 16px; display: block; }

/* ---- Screenshots ---- */
.shot {
  border: 1px solid var(--hairline-bright); border-radius: var(--radius-panel);
  overflow: hidden; background: var(--surface-base);
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.55);
  position: relative;
}
.shot img { display: block; width: 100%; height: auto; }
.shot-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 18px;
  border-bottom: 1px solid var(--hairline); background: var(--surface-raised);
}
.shot-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--hairline-bright); }
.shot-bar .dot:first-child { background: #ff5f57; } .shot-bar .dot:nth-child(2) { background: #febc2e; } .shot-bar .dot:nth-child(3) { background: #28c840; }
.shot-bar .url { font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary); margin-left: 8px; }
.shot-cap { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 24px; border-top: 1px solid var(--hairline); }
.shot-glow { position: relative; }
.shot-glow::before {
  content: ''; position: absolute; inset: -2px; border-radius: calc(var(--radius-panel) + 2px);
  background: radial-gradient(60% 90% at 50% 0%, rgba(139, 124, 246, 0.22), transparent 70%);
  z-index: -1; pointer-events: none;
}

/* ---- Gallery ---- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.g-item { cursor: zoom-in; transition: transform 0.3s var(--ease-out); }
.g-item:hover { transform: translateY(-4px); }
.g-item .shot { margin-bottom: 0; }
.g-cap { margin-top: 14px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
#lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(3, 4, 10, 0.92);
  display: none; align-items: center; justify-content: center; padding: 48px; cursor: zoom-out;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius-panel); border: 1px solid var(--hairline-bright); box-shadow: 0 40px 120px rgba(0,0,0,0.7); }
#lightbox .lb-cap { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: var(--text-secondary); font-size: 14px; }

/* ---- Terminal / code ---- */
.term { background: #04050c; border: 1px solid var(--hairline); border-radius: var(--radius-panel); overflow: hidden; box-shadow: 0 24px 72px rgba(0,0,0,0.5); }
.term-head { display: flex; gap: 8px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--hairline); }
.term-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--hairline-bright); }
.term-body { padding: 28px 32px; font-family: var(--font-mono); font-size: 15px; line-height: 1.9; overflow-x: auto; }
.term-body .prompt { color: var(--accent-strong); }
.term-body .cmd { color: var(--text-primary); }
.term-body .out { color: var(--text-secondary); }
.term-body .out-hi { color: var(--prov-shot-text); }
.term-body .cmt { color: var(--text-tertiary); }
pre.codeblock {
  background: #04050c; border: 1px solid var(--hairline); border-radius: var(--radius-card);
  padding: 24px 28px; font-family: var(--font-mono); font-size: 14.5px; line-height: 1.8;
  overflow-x: auto; color: var(--text-secondary);
}
pre.codeblock .k { color: var(--accent-strong); } pre.codeblock .s { color: var(--prov-shot-text); }
pre.codeblock .c { color: var(--text-tertiary); }

/* ---- Tables ---- */
table.spec { width: 100%; border-collapse: collapse; font-size: 15.5px; }
table.spec th { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-tertiary); text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--hairline-bright); }
table.spec td { padding: 14px 16px; border-bottom: 1px solid var(--hairline); color: var(--text-secondary); vertical-align: top; }
table.spec td:first-child { font-family: var(--font-mono); font-size: 13.5px; color: var(--accent-strong); white-space: nowrap; }
table.spec tr:last-child td { border-bottom: none; }

/* ---- Tabs (company tracks) ---- */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 40px 0 32px; }
.tab-btn {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em;
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--hairline-bright);
  background: transparent; color: var(--text-secondary); cursor: pointer;
  transition: all 0.25s var(--ease-out);
}
.tab-btn:hover { border-color: var(--accent); color: var(--text-primary); }
.tab-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.4s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.track-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 28px 0; }
.track-meta .meta-box { background: var(--surface-raised); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 24px; }
.track-meta .meta-box h4 { font-size: 13px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-tertiary); margin-bottom: 12px; }
.sample-q { border-left: 2px solid var(--accent); padding: 10px 0 10px 20px; margin: 12px 0; color: var(--text-secondary); font-size: 16.5px; font-style: italic; }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q { width: 100%; background: none; border: none; text-align: left; padding: 28px 8px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; color: var(--text-primary); font-family: var(--font-display); font-size: 21px; }
.faq-q .fx { font-family: var(--font-mono); color: var(--accent-strong); font-size: 24px; transition: transform 0.3s var(--ease-out); flex: 0 0 auto; }
.faq-item.open .faq-q .fx { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease-out); }
.faq-a .faq-a-in { padding: 0 8px 32px; color: var(--text-secondary); font-size: 17px; max-width: 820px; }

/* ---- Architecture diagram ---- */
.arch { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin-top: 48px; }
.arch-node { background: var(--surface-raised); border: 1px solid var(--hairline-bright); border-radius: var(--radius-card); padding: 32px 36px; }
.arch-node h3 { font-size: 22px; margin-bottom: 6px; }
.arch-node .arch-tag { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent-strong); margin-bottom: 14px; display: block; }
.arch-node ul { list-style: none; }
.arch-node li { color: var(--text-secondary); font-size: 16px; padding: 6px 0 6px 22px; position: relative; }
.arch-node li::before { content: '›'; position: absolute; left: 4px; color: var(--accent-strong); }
.arch-link { display: flex; flex-direction: column; align-items: center; padding: 10px 0; color: var(--text-tertiary); }
.arch-link .wire { width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); }
.arch-link .proto { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin: 6px 0; }

/* ---- Voice waveform (decorative) ---- */
.wave { display: flex; align-items: center; gap: 5px; height: 56px; }
.wave span { width: 4px; border-radius: 2px; background: linear-gradient(var(--voice), var(--accent)); animation: wave 1.4s ease-in-out infinite; }
@keyframes wave { 0%, 100% { height: 12px; } 50% { height: 48px; } }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 48px; border: 1px solid var(--hairline); border-radius: var(--radius-panel); overflow: hidden; }
.step-card { padding: 36px 32px; border-left: 1px solid var(--hairline); background: var(--surface-raised); }
.step-card:first-child { border-left: none; }
.step-n { font-family: var(--font-mono); font-size: 12px; color: var(--accent-strong); letter-spacing: 0.14em; margin-bottom: 14px; }
.step-card h3 { font-size: 20px; margin-bottom: 10px; }
.step-card p { font-size: 15.5px; color: var(--text-secondary); margin: 0; }

/* ---- Privacy list ---- */
.priv-list { list-style: none; margin-top: 40px; }
.priv-list li { display: grid; grid-template-columns: 44px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--hairline); align-items: start; }
.priv-list li:last-child { border-bottom: none; }
.priv-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-dim); border: 1px solid rgba(139,124,246,0.3); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.priv-list h3 { font-size: 20px; margin-bottom: 6px; }
.priv-list p { margin: 0; font-size: 16.5px; }

/* ---- Modes ---- */
.modes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.mode-card { background: var(--surface-raised); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 30px 28px; transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out); }
.mode-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.mode-card h3 { font-size: 19px; margin-bottom: 8px; }
.mode-card p { font-size: 15px; margin: 0; color: var(--text-secondary); }
.mode-card .mode-ic { font-size: 26px; display: block; margin-bottom: 14px; }

/* ---- GitHub pill (top-left) ---- */
#gh-link {
  position: fixed; top: 22px; left: 22px; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  background: rgba(8, 10, 21, 0.88);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--hairline-bright);
  border-radius: 999px; padding: 10px 18px 10px 14px;
  color: var(--text-primary); text-decoration: none;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
#gh-link svg { width: 20px; height: 20px; fill: var(--text-primary); transition: fill 0.3s, transform 0.3s var(--ease-out); flex: 0 0 auto; }
#gh-link .gh-arrow { color: var(--text-tertiary); font-size: 14px; transition: color 0.3s, transform 0.3s var(--ease-out); }
#gh-link::after {
  content: ''; position: absolute; inset: 0; border-radius: 999px; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(139, 124, 246, 0.22) 50%, transparent 58%);
  background-size: 280% 100%; background-position: 130% 0;
  animation: gh-shine 5.5s ease-in-out infinite;
}
@keyframes gh-shine { 0%, 58% { background-position: 130% 0; } 88%, 100% { background-position: -30% 0; } }
#gh-link:hover { border-color: var(--accent); box-shadow: var(--accent-glow); transform: translateY(-2px); }
#gh-link:hover svg { fill: var(--accent-strong); transform: rotate(-8deg) scale(1.12); }
#gh-link:hover .gh-arrow { color: var(--accent-strong); transform: translate(2px, -2px); }

/* ---- Rail nav ---- */
#rail { position: fixed; right: 26px; top: 50%; transform: translateY(-50%); z-index: 80; display: flex; flex-direction: column; gap: 12px; }
#rail a { width: 9px; height: 9px; border-radius: 50%; background: var(--hairline-bright); position: relative; transition: transform 0.25s var(--ease-out), background 0.25s; }
#rail a:hover { transform: scale(1.5); }
#rail a.active { background: var(--accent); box-shadow: 0 0 12px rgba(139,124,246,0.7); }
#rail a .rail-label {
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%) translateX(6px);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-secondary); background: var(--surface-overlay); border: 1px solid var(--hairline);
  padding: 5px 10px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
#rail a:hover .rail-label { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ---- Reveal ---- */
.rv { opacity: 0; transform: translateY(28px); }

/* ---- Hero ---- */
.hero { padding: 190px 0 120px; position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(52% 38% at 68% 18%, rgba(139, 124, 246, 0.16), transparent 70%),
    radial-gradient(40% 34% at 18% 78%, rgba(34, 211, 238, 0.07), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; position: relative; }
.hero-shot { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform 0.6s var(--ease-out); }
.hero-shot:hover { transform: perspective(1400px) rotateY(0deg) rotateX(0deg); }
.pill-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0; }
.pill { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--text-secondary); border: 1px solid var(--hairline-bright); border-radius: 999px; padding: 8px 16px; background: rgba(13, 16, 32, 0.6); }

/* ---- Stat band ---- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 72px; }
.stat { border-top: 1px solid var(--hairline-bright); padding-top: 22px; }
.stat .figure-l { color: var(--text-primary); }
.stat .figure-l em { font-style: normal; color: var(--accent-strong); }
.stat p { font-size: 15px; color: var(--text-tertiary); margin: 8px 0 0; }

/* ---- Footer ---- */
footer.site-footer { border-top: 1px solid var(--hairline); padding: 72px 0 48px; }
.foot-grid { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.foot-grid .micro { margin-bottom: 14px; display: block; }
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 10px; }
.foot-grid a { color: var(--text-secondary); text-decoration: none; font-size: 15px; }
.foot-grid a:hover { color: var(--accent-strong); }
.foot-base { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---- focus ---- */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- Responsive ---- */
@media (max-width: 1439px) {
  .wrap { padding: 0 48px; }
  section.site-section { padding: 120px 0; }
  .hero { padding: 150px 0 90px; }
}
@media (max-width: 1023px) {
  #rail { display: none; }
  .wrap { padding: 0 28px; }
  section.site-section { padding: 88px 0; }
  .two-col, .three-col, .card-grid, .gallery, .track-meta { grid-template-columns: minmax(0, 1fr); }
  .two-col > *, .three-col > * { min-width: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-shot { transform: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step-card { border-left: none; border-top: 1px solid var(--hairline); }
  .modes-grid { grid-template-columns: 1fr 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  body { font-size: 17px; }
  .subhead { font-size: 20px; }
  .cta-row { flex-direction: column; }
  .btn { text-align: center; }
  #gh-link { top: 12px; left: 12px; font-size: 10px; padding: 8px 14px 8px 12px; }
  .steps, .modes-grid, .stat-band { grid-template-columns: minmax(0, 1fr); }
  .steps > *, .modes-grid > *, .stat-band > * { min-width: 0; }
  .chip-pop { width: 240px; left: auto; right: -8px; transform: translateY(4px); }
  .chip:hover .chip-pop, .chip:focus-within .chip-pop { transform: translateY(0); }
  .card { padding: 28px 24px; }
  .term-body { padding: 20px; font-size: 13.5px; }
  #lightbox { padding: 16px; }
  .shot-cap { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
  .chip-illus { animation: none; }
  .rv { opacity: 1; transform: none; }
}

@media print {
  body { background: #fff; color: #111; font-size: 12pt; }
  #rail, #gh-link { display: none !important; }
  section.site-section { padding: 40px 0; }
  .chip::after { content: ' [' attr(data-prov) ']'; }
}
