/* ==========================================================================
   LESSONS WITH MR. B  ·  Editorial Case File 2026
   Design system. Used by every page.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT,WONK@0,9..144,200..900,0..100,0..1;1,9..144,200..900,0..100,0..1&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&family=Cutive+Mono&family=Kalam:wght@400;700&family=DM+Mono:wght@400;500&display=swap');

:root {
  /* Brand palette */
  --navy: #1a2956;
  --navy-deep: #0f1a3a;
  --navy-soft: #2a3a6a;
  --brass: #c5a046;
  --brass-bright: #e0b85c;
  --brass-deep: #9a7a30;
  --cream: #fdf8e8;
  --cream-warm: #f3e9cd;
  --paper: #f7f0d8;
  --paper-edge: #e8dcb5;
  --case-red: #8b2614;
  --case-red-bright: #b8331c;
  --sepia: #5a3a1f;
  --ink: #1a1208;
  --pencil: #3a3025;
  --grid-blue: #1d3a72;

  /* Type */
  --display: 'Fraunces', 'Times New Roman', serif;
  --body: 'Source Serif 4', Georgia, serif;
  --mono: 'Cutive Mono', 'Courier New', monospace;
  --hand: 'Kalam', cursive;
  --mono-clean: 'DM Mono', monospace;

  /* Spacing */
  --gutter: clamp(1.25rem, 3vw, 3rem);
  --section: clamp(4rem, 9vw, 9rem);

  /* Motion */
  --ease-paper: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out-quart: cubic-bezier(0.77, 0, 0.175, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(ellipse at top left, rgba(197, 160, 70, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(26, 41, 86, 0.04) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.32 0 0 0 0 0.18 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-attachment: fixed;
  overflow-x: hidden;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
}

/* ===== TYPOGRAPHY ===== */

.eyebrow,
.label,
.metadata {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-deep);
  font-weight: 400;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: inherit;
  font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 144;
}

.display {
  font-family: var(--display);
  font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 144;
  font-weight: 500;
  font-style: italic;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s var(--ease-paper);
}

a:hover { color: var(--case-red); }

/* ===== UTILITY CLASSES ===== */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-wide {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.center { display: flex; align-items: center; justify-content: center; }

/* ===== TOP BAR / NAV ===== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid rgba(26, 18, 8, 0.10);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
  max-width: 1480px;
  margin: 0 auto;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: var(--cream);
  padding: 2px;
  border-radius: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav a {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  font-weight: 600;
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--case-red);
}

.nav a[aria-current="page"]::after {
  width: 100%;
  background: var(--case-red);
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--case-red);
  transition: width 0.3s var(--ease-paper);
}

.nav a:hover::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s var(--ease-paper);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: var(--case-red);
  color: var(--cream);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 38, 20, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}

.btn-ghost:hover {
  background: var(--navy);
  color: var(--cream);
}

.btn-brass {
  background: var(--brass);
  color: var(--ink);
}

.btn-brass:hover {
  background: var(--brass-bright);
  color: var(--ink);
}

/* Mobile nav toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 880px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); padding: 20px var(--gutter); border-bottom: 1px solid rgba(26,18,8,0.08); }
  .menu-toggle { display: block; }
  .topbar-cta { display: none; }
}

/* ===== HERO HEADER ===== */

.masthead {
  background: var(--ink);
  color: var(--cream);
  padding: 18px 0;
  border-bottom: 3px double var(--brass);
}

.masthead-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.masthead-left, .masthead-right {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}

.masthead-right { text-align: right; }
.masthead-title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  white-space: nowrap;
  color: var(--cream);
}

@media (max-width: 700px) {
  .masthead-inner { grid-template-columns: 1fr; text-align: center; gap: 4px; }
  .masthead-right { text-align: center; }
}

/* ===== SECTIONS ===== */

section {
  padding: var(--section) 0;
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--case-red);
  margin-bottom: 18px;
}

.section-tag::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--case-red);
}

.section-title {
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  font-variation-settings: "SOFT" 60, "opsz" 144;
}

.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--case-red);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}

.section-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--pencil);
  max-width: 60ch;
  font-family: var(--body);
}

/* Divider lines */
.rule {
  height: 1px;
  background: var(--ink);
  margin: 0;
  opacity: 0.15;
}

.rule-double {
  height: 4px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: transparent;
}

/* ===== STAMP ELEMENT ===== */

.stamp {
  display: inline-block;
  padding: 8px 14px;
  border: 2px solid var(--case-red);
  color: var(--case-red);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transform: rotate(-3deg);
  background: rgba(255, 255, 255, 0.4);
}

/* ===== PAGE HEADER (for sub-pages) ===== */

.page-header {
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(26, 18, 8, 0.1);
}

.page-header h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 24px;
}

.breadcrumb a { color: var(--brass-deep); }
.breadcrumb a:hover { color: var(--case-red); }

/* ===== FOOTER ===== */

footer {
  background: var(--ink);
  color: var(--cream);
  padding: 4rem 0 2rem;
  border-top: 4px double var(--brass);
}

footer .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

footer h4 {
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 400;
}

footer ul { list-style: none; }
footer li { margin-bottom: 8px; }
footer a {
  color: var(--cream);
  font-family: var(--body);
  font-size: 0.95rem;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}

footer a:hover { color: var(--brass-bright); opacity: 1; }

.footer-brand {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.7rem;
  font-weight: 500;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  color: var(--cream);
  margin-bottom: 14px;
}

.footer-tagline {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--brass);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 248, 232, 0.1);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

@media (max-width: 880px) {
  footer .container { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: center; text-align: center; }
}

/* ===== SCROLL REVEAL (no-op for reliability) ===== */
/* All content is visible at all times. The .reveal and .stagger classes are
   markers only. JS still adds .in but it has no visual effect. This guarantees
   no image, text block, or section can ever be hidden by the animation system. */

.reveal { opacity: 1; transform: none; }
.reveal.in { /* intentional no-op */ }

.stagger > * { opacity: 1; transform: none; }
.stagger.in > * { /* intentional no-op */ }

/* ===== PAPER CARD (reusable) ===== */

.paper-card {
  background: var(--cream-warm);
  border: 1px solid var(--paper-edge);
  padding: 2rem;
  position: relative;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.04),
    0 6px 18px rgba(26, 18, 8, 0.08),
    0 12px 36px rgba(26, 18, 8, 0.05);
  transition: transform 0.4s var(--ease-paper), box-shadow 0.4s var(--ease-paper);
}

.paper-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.32 0 0 0 0 0.18 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
}

.paper-card > * { position: relative; z-index: 1; }

/* ===== STICKY NOTE ===== */

.sticky-note {
  background: #fef3a7;
  font-family: var(--hand);
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--ink);
  box-shadow: 2px 4px 8px rgba(0,0,0,0.12);
  transform: rotate(-1.5deg);
  border: 1px solid rgba(180, 140, 40, 0.2);
  position: relative;
}

.sticky-note::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 14px;
  background: rgba(212, 175, 60, 0.5);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sticky-signature {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--brass-deep);
  font-weight: 700;
}

/* ===== FILE TAB ===== */

.file-tab {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 16px;
  position: relative;
}

.file-tab::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 0;
  width: 0;
  height: 0;
  border-left: 10px solid var(--ink);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}

/* ===== UNIVERSAL ANIMATIONS ===== */

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideRight { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes wiggle { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1deg); } }
@keyframes typewriter { from { width: 0; } to { width: 100%; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes paperFlip {
  0% { transform: perspective(800px) rotateY(0deg); }
  50% { transform: perspective(800px) rotateY(-90deg); }
  100% { transform: perspective(800px) rotateY(0deg); }
}

/* ===== DOT PATTERN ===== */
.dot-grid {
  background-image: radial-gradient(rgba(26, 41, 86, 0.18) 1px, transparent 1px);
  background-size: 16px 16px;
}

/* ===== GRID PAPER PATTERN ===== */
.grid-paper {
  background-color: var(--cream);
  background-image:
    linear-gradient(rgba(29, 58, 114, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 58, 114, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* ===== LEGAL PAD PATTERN ===== */
.legal-pad {
  background-color: #fff8c4;
  background-image:
    linear-gradient(rgba(80, 110, 200, 0.18) 1px, transparent 1px);
  background-size: 100% 28px;
  position: relative;
}

.legal-pad::before {
  content: '';
  position: absolute;
  left: 60px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(190, 60, 60, 0.4);
}

/* ===== HORIZONTAL SCROLL HINT ===== */
.scroll-x {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

.scroll-x > * { scroll-snap-align: start; flex-shrink: 0; }

.scroll-x::-webkit-scrollbar { height: 4px; }
.scroll-x::-webkit-scrollbar-track { background: var(--paper-edge); }
.scroll-x::-webkit-scrollbar-thumb { background: var(--brass); }

/* ===== HIGHLIGHTER ===== */
.hl {
  background: linear-gradient(180deg, transparent 60%, rgba(255, 220, 80, 0.5) 60%);
  padding: 0 4px;
}

.hl-red {
  background: linear-gradient(180deg, transparent 60%, rgba(184, 51, 28, 0.18) 60%);
  padding: 0 4px;
}

/* ===== UNIVERSAL UTILITIES ===== */

.text-center { text-align: center; }
.text-mono { font-family: var(--mono); letter-spacing: 0.1em; }
.text-hand { font-family: var(--hand); }
.text-display { font-family: var(--display); }
.text-italic { font-style: italic; }
.text-navy { color: var(--navy); }
.text-red { color: var(--case-red); }
.text-brass { color: var(--brass-deep); }
.text-cream { color: var(--cream); }
.text-pencil { color: var(--pencil); }

.bg-navy { background: var(--navy); color: var(--cream); }
.bg-cream { background: var(--cream); }
.bg-paper { background: var(--paper); }
.bg-ink { background: var(--ink); color: var(--cream); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mt-8 { margin-top: 4rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }

/* Image responsive */
img { max-width: 100%; height: auto; display: block; }

/* ============================================================ */
/* NEWSLETTER / MAILING LIST                                     */
/* ============================================================ */
.newsletter {
  background: var(--paper);
  border-top: 1px solid var(--brass);
  border-bottom: 1px solid var(--brass);
  padding: 70px 0;
  position: relative;
}
.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(197, 160, 70, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(26, 41, 86, 0.04) 0%, transparent 40%);
  pointer-events: none;
}
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 880px) {
  .newsletter-inner { grid-template-columns: 1fr; gap: 30px; }
  .newsletter { padding: 50px 0; }
}
.newsletter-eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
}
.newsletter-text h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1;
  margin: 0 0 14px;
  color: var(--ink);
  font-variation-settings: "opsz" 48, "wght" 600;
}
.newsletter-text h2 em {
  font-style: italic;
  color: var(--navy);
  font-variation-settings: "opsz" 48, "wght" 400, "SOFT" 100, "WONK" 1;
}
.newsletter-text p {
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--pencil);
  margin: 0;
  max-width: 480px;
}
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.newsletter-form input[type="email"] {
  flex: 1 1 240px;
  min-width: 200px;
  padding: 14px 18px;
  border: 1.5px solid var(--navy);
  background: var(--cream);
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--ink);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.newsletter-form input[type="email"]:focus {
  border-color: var(--brass-deep);
  box-shadow: 0 0 0 3px rgba(197, 160, 70, 0.2);
}
.newsletter-form input[type="email"]::placeholder {
  color: rgba(58, 48, 37, 0.45);
}
.newsletter-form .btn {
  background: var(--navy);
  color: var(--cream);
  border: 1.5px solid var(--navy);
  padding: 14px 28px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.newsletter-form .btn:hover {
  background: var(--brass-deep);
  border-color: var(--brass-deep);
  transform: translateY(-2px);
}
.newsletter-form small {
  flex: 1 1 100%;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(58, 48, 37, 0.6);
  margin-top: 6px;
}

/* ============================================================ */
/* ACCESSIBILITY HELPERS                                         */
/* ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================ */
/* QUICK REFERENCE STRIP (project pages)                        */
/* ============================================================ */
.quickref {
  background: var(--cream);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 22px 0 24px;
}
.quickref-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qchip-eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass-deep);
  font-weight: 700;
}
.qchips {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
@media (max-width: 880px) {
  .qchips { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) {
  .qchips { grid-template-columns: repeat(2, 1fr); }
}
.qchip {
  background: white;
  border: 1px solid rgba(0,0,0,0.1);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: 2px;
}
.qchip-lbl {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.5);
}
.qchip-val {
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--ink);
  font-variation-settings: "opsz" 24, "wght" 600;
}
