/* ============================================================
   DSPC Brand Manual — Stylesheet
   Black/white reductive aesthetic. Generous negative space.
   ============================================================ */

/* All fonts self-hosted as WOFF2 — zero external domain connections */

@font-face {
  font-family: 'Lastica';
  src: url('fonts/fonnts.com-Lastica.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0, U+2000-206F, U+2122;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jetbrains-mono-variable.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-italic-300.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* Las eñes (ñ/Ñ) en titulares Lastica se envuelven en <span class="latin">
   para que usen Inter Light. Mantiene legibilidad sin romper la geometría. */
.latin {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif !important;
  font-weight: 300;
  color: var(--graphite);
  letter-spacing: -0.01em;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }

/* ===== Scroll-reveal animation ===== */
.section, .cover {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
  content-visibility: auto;
  contain-intrinsic-size: auto 100vh;
}
.section.revealed, .cover.revealed {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .section, .cover {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

:root {
  --ink:        #0A0A0A;
  --ink-soft:   #1A1A1A;
  --paper:      #FFFFFF;
  --bone:       #FAFAF8;
  --silver:     #E5E5E2;
  --steel:      #A8A8A2;
  --graphite:   #5A5A55;
  --signal:     #C41D1D;

  --display: 'Lastica', 'Helvetica Neue', Arial, sans-serif;
  --body:    'Inter', 'Helvetica Neue', Arial, sans-serif;
  --mono:    'JetBrains Mono', 'Courier New', monospace;
  --pull:    'Fraunces', 'Times New Roman', serif;

  /* Aliases for sections 17–25 */
  --paper-warm:  var(--bone);
  --line:        var(--silver);
  --ice-red:     var(--signal);
  --ink-60:      var(--graphite);
  --success:     #1F8A5B;
  --font-display: var(--display);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

/* ===== Sidebar nav ===== */
.nav {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 240px; padding: 48px 28px 32px;
  background: var(--ink); color: var(--paper);
  overflow-y: auto; z-index: 100;
  border-right: 1px solid var(--ink);
}
.nav::-webkit-scrollbar { width: 2px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); }
.nav-brand {
  font-family: var(--display);
  font-size: 22px; letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.nav-tag {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.nav-store {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  padding: 8px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 200ms;
}
.nav-store:hover {
  color: rgba(255,255,255,0.8);
}
.nav-section {
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin: 24px 0 8px;
}
.nav a {
  display: block; padding: 5px 0;
  font-size: 13px; color: rgba(255,255,255,0.65);
  text-decoration: none; transition: color 150ms;
  display: flex; gap: 10px;
}
.nav a span:first-child {
  font-family: var(--mono);
  font-size: 11px; color: rgba(255,255,255,0.3);
  min-width: 22px;
}
.nav a:hover { color: var(--paper); }
.nav a.active { color: var(--paper); }

/* ===== Main column ===== */
.main { margin-left: 240px; }
.section { padding: 120px 8% 120px; min-height: 100vh; position: relative; }
.section.invert { background: var(--ink); color: var(--paper); }
.section.bone { background: var(--bone); }

.section-num {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 24px;
}
.invert .section-num { color: rgba(255,255,255,0.5); }

.section-eyebrow {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 16px;
}
.invert .section-eyebrow { color: rgba(255,255,255,0.45); }

.section-title {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  font-weight: 400;
}

.section-lede {
  font-family: var(--body);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 300;
  line-height: 1.5;
  max-width: 740px;
  color: var(--ink);
  margin-bottom: 64px;
}
.invert .section-lede { color: rgba(255,255,255,0.85); }

.h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.005em;
  margin-bottom: 12px;
}
.h4 {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 12px;
}
.invert .h4 { color: rgba(255,255,255,0.5); }

.p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 640px;
  margin-bottom: 16px;
}
.invert .p { color: rgba(255,255,255,0.78); }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }
.tabular { font-feature-settings: "tnum"; }

/* ===== Grids ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }

/* ===== Specimen blocks ===== */
.specimen {
  border: 1px solid var(--silver);
  padding: 32px;
  background: var(--paper);
  position: relative;
}
.invert .specimen { border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.02); }
.specimen-tag {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--steel);
}

.divider {
  height: 1px; background: var(--silver); margin: 64px 0;
  border: none;
}
.invert .divider { background: rgba(255,255,255,0.12); }

.rule {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--graphite);
}

/* ===== Quote / pull ===== */
.pull {
  font-family: var(--pull);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 880px;
}
.pull-attr {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-top: 32px;
}
.invert .pull-attr { color: rgba(255,255,255,0.4); }

/* ===== Color swatch ===== */
.swatch { display: flex; flex-direction: column; }
.swatch-fill { aspect-ratio: 1; border: 1px solid transparent; }
.swatch-meta { padding-top: 12px; }
.swatch-name { font-family: var(--display); font-size: 16px; }
.swatch-hex { font-family: var(--mono); font-size: 11px; color: var(--graphite); margin-top: 2px; }
.swatch-role { font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--steel); margin-top: 6px; }

/* ===== TOC list ===== */
.toc {
  display: grid; grid-template-columns: 1fr;
  border-top: 1px solid var(--silver);
}
.toc-row {
  display: grid;
  grid-template-columns: 60px 1fr 200px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--silver);
  font-size: 14px;
}
.toc-row .num { font-family: var(--mono); font-size: 11px; color: var(--graphite); }
.toc-row .title { font-family: var(--display); font-size: 18px; }
.toc-row .desc { font-family: var(--mono); font-size: 11px; color: var(--graphite); text-align: right; letter-spacing: 0.05em; }

/* ===== Fine print ===== */
.fine {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite);
}
.invert .fine { color: rgba(255,255,255,0.4); }

/* ===== Page header / number ===== */
.page-header {
  position: absolute; top: 32px; left: 8%; right: 8%;
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--graphite);
}
.invert .page-header { color: rgba(255,255,255,0.35); }

/* ===== Animated wave (signature element) ===== */
.wave-bg {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}
.wave-bg svg { width: 100%; height: 100%; opacity: 0.5; }
.wave-bg path { fill: none; stroke: rgba(255,255,255,0.18); stroke-width: 1; }

/* ===== Cover ===== */
.cover {
  height: 100vh; min-height: 800px;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column;
  padding: 56px 8%;
  position: relative; overflow: hidden;
}
.cover-top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.cover-mid { flex: 1; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.cover-wordmark {
  font-family: var(--display);
  font-size: clamp(120px, 22vw, 320px);
  line-height: 0.85;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}
.cover-tag {
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 400;
  max-width: 600px;
  margin-top: 32px;
  line-height: 1.25;
}
.cover-bottom { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.5); }

/* ===== Manifesto ===== */
.manifesto {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  font-weight: 400;
  max-width: 1100px;
}
.manifesto p { margin-bottom: 24px; }
.manifesto em {
  font-family: var(--pull);
  font-style: italic;
  font-weight: 300;
}

/* ===== Wave element (signature) ===== */
.signature-wave {
  width: 100%; height: 200px;
}
.signature-wave path {
  fill: none; stroke: var(--paper); stroke-width: 1;
}

/* ===== Logo specimens ===== */
.logo-stage {
  background: var(--paper);
  border: 1px solid var(--silver);
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.logo-stage.dark { background: var(--ink); border-color: var(--ink); }
.logo-stage.signal { background: var(--signal); border-color: var(--signal); }
.logo-mark {
  font-family: var(--display);
  font-size: 64px; letter-spacing: 0.04em;
  color: var(--ink);
}
.logo-stage.dark .logo-mark, .logo-stage.signal .logo-mark { color: var(--paper); }

/* ===== Big number / metric ===== */
.metric {
  font-family: var(--display);
  font-size: clamp(64px, 9vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.metric-label {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-top: 16px;
}
.invert .metric-label { color: rgba(255,255,255,0.5); }

/* ===== Do / don't ===== */
.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.dodont-card {
  border: 1px solid var(--silver);
  padding: 28px;
}
.dodont-tag {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.do .dodont-tag { color: var(--ink); }
.dont .dodont-tag { color: var(--signal); }
.dodont-stage {
  aspect-ratio: 16/9;
  background: var(--bone);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.dodont-text { font-size: 13px; color: var(--graphite); }

/* ===== Scroll progress bar ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 300;
  background: transparent;
  pointer-events: none;
}
.scroll-progress-bar {
  height: 100%; width: 0%;
  background: var(--signal);
  transition: width 60ms linear;
}

/* ===== Burger menu button ===== */
.burger {
  display: none;
  position: fixed; top: 16px; left: 16px; z-index: 250;
  width: 40px; height: 40px;
  background: var(--ink); border: 1px solid rgba(255,255,255,0.15);
  color: var(--paper); cursor: pointer;
  align-items: center; justify-content: center;
  font-size: 18px; line-height: 1;
  padding: 0;
  transition: background 150ms;
}
.burger:hover { background: var(--ink-soft); }
.burger[aria-expanded="true"] .burger-open { display: none; }
.burger[aria-expanded="true"] .burger-close { display: block; }
.burger[aria-expanded="false"] .burger-open { display: block; }
.burger[aria-expanded="false"] .burger-close { display: none; }

/* ===== Nav overlay ===== */
.nav-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  cursor: pointer;
}
.nav-overlay.active { display: block; }

/* ===== Back to top ===== */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 200;
  width: 40px; height: 40px;
  background: var(--ink); color: var(--paper);
  border: 1px solid rgba(255,255,255,0.15);
  font-family: var(--mono); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity 250ms, transform 150ms;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-2px); }

/* ===== Scroll anchor offset ===== */
.section, .cover {
  scroll-margin-top: 32px;
}

/* ===== Print: Letter Landscape =====
   Preserved for browser print-to-PDF workflow. */
@page {
  size: 11in 8.5in;
  margin: 0;
}

@media print {
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: var(--paper) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    width: 11in !important;
    height: auto !important;
  }
  .nav, .burger, .scroll-progress, .back-to-top, .nav-overlay,
  .side-nav, .page-header { display: none !important; }
  .main { margin-left: 0 !important; padding: 0 !important; }
  .section, .cover {
    width: 11in !important;
    height: 8.5in !important;
    min-height: 8.5in !important;
    max-height: 8.5in !important;
    padding: 0 !important;
    margin: 0 auto !important;
    page-break-after: always;
    page-break-inside: avoid;
    break-after: page;
    break-inside: avoid;
    overflow: hidden !important;
    box-sizing: border-box !important;
    position: relative !important;
    display: block !important;
    background: var(--paper);
  }
  .section:last-child, .cover:last-child {
    page-break-after: auto;
    break-after: auto;
  }
  .section.invert, .cover {
    background: var(--ink) !important;
    color: var(--paper) !important;
  }
  .section.bone { background: var(--bone) !important; }
  * { max-height: none; }
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 768px)
   Uses !important liberally because the HTML has 40+ inline
   style grids that outrank class-level selectors.
   ============================================================ */
@media screen and (max-width: 768px) {

  /* --- Global overflow guard --- */
  html, body { overflow-x: hidden !important; }

  /* --- Sidebar → off-canvas slide --- */
  .nav {
    transform: translateX(-100%);
    transition: transform 300ms cubic-bezier(0.32, 0.72, 0, 1);
    width: 280px;
  }
  .nav.open { transform: translateX(0); }

  /* Burger visible */
  .burger { display: flex; }

  /* Main loses sidebar margin */
  .main { margin-left: 0; }

  /* --- Sections → tighter padding, natural height --- */
  .section { padding: 80px 6% 80px !important; min-height: auto !important; }
  .cover { min-height: 100svh; padding: 48px 6% !important; }

  /* --- Class-based grids → stack --- */
  .grid-2 { grid-template-columns: 1fr !important; gap: 40px !important; }
  .grid-3 { grid-template-columns: 1fr !important; gap: 24px !important; }
  .grid-4 { grid-template-columns: 1fr 1fr !important; gap: 20px !important; }
  .grid-6 { grid-template-columns: repeat(3, 1fr) !important; gap: 12px !important; }

  /* --- Do/don't grids (class + inline) --- */
  .dodont { grid-template-columns: 1fr !important; gap: 24px !important; }
  .dodont[style*="repeat(4"] { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }

  /* --- INLINE grid overrides (specificity: attribute selector + !important) --- */

  /* Typography scale table: 120px label + 1fr + 200px specimen → stack */
  [style*="grid-template-columns: 120px 1fr 200px"] {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  /* Voice/Tone table: 200px + 1fr + 1fr → stack */
  [style*="grid-template-columns: 200px 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  /* Motion/easing table: 200px + 1fr + 200px → stack */
  [style*="grid-template-columns: 200px 1fr 200px"] {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  /* Iconography 8-col set → 4 columns */
  [style*="grid-template-columns: repeat(8, 1fr)"] {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important;
  }

  /* Grid/spacing 12-col overlay → hide (decorative, not essential) */
  [style*="grid-template-columns: repeat(12, 1fr)"] {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 8px !important;
  }

  /* Competitive map — fix absolute positioning that breaks on mobile */
  /* Container: keep border but let content flow naturally */
  [style*="aspect-ratio: 1"][style*="position: relative"] {
    aspect-ratio: auto !important;
    position: relative !important;
  }
  /* Inner grid: switch from absolute to static so it flows */
  [style*="position:absolute"][style*="inset:0"][style*="grid-template-columns:1fr 1fr"] {
    position: static !important;
    inset: auto !important;
  }
  /* Keep 2×2 grid on tablet */
  [style*="grid-template-columns:1fr 1fr"][style*="grid-template-rows:1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
  }
  /* Quadrant cells: remove absolute on inner competitor lists */
  [style*="grid-template-rows:1fr 1fr"] [style*="position:absolute"][style*="bottom:14px"] {
    position: static !important;
    margin-top: 16px !important;
  }
  /* Each quadrant needs min-height since we removed aspect-ratio */
  [style*="grid-template-rows:1fr 1fr"] > div {
    min-height: 140px !important;
    padding: 12px !important;
  }
  /* Axis label below map */
  [style*="bottom: -22px"][style*="position:absolute"] {
    position: static !important;
    margin-top: 8px !important;
    text-align: center !important;
  }

  /* Voice data grids: 180px + 1fr → stack */
  [style*="grid-template-columns: 180px 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  /* Stationery invoice grids: 60px 1fr 60px 70px → fluid */
  [style*="grid-template-columns: 60px 1fr 60px 70px"] {
    grid-template-columns: 1fr 2fr 1fr 1fr !important;
    gap: 4px !important;
  }

  /* Ficha técnica: 90px 1fr → keep but tighter */
  [style*="grid-template-columns: 90px 1fr"] {
    grid-template-columns: 80px 1fr !important;
  }

  /* Digital cloud sidebar: 140px 1fr → stack */
  [style*="grid-template-columns: 140px 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* --- Section title scaling --- */
  .section-title { font-size: clamp(32px, 8vw, 64px) !important; }
  .cover-wordmark { font-size: clamp(72px, 18vw, 200px) !important; }
  .section-lede { max-width: 100% !important; }
  .page-header { display: none !important; }

  /* --- Inline large display fonts → responsive --- */
  /* 200px Aa specimens */
  [style*="font-size: 200px"] {
    font-size: clamp(64px, 20vw, 200px) !important;
  }
  /* 160px DSPC wordmark in logo section */
  [style*="font-size: 160px"] {
    font-size: clamp(64px, 18vw, 160px) !important;
  }
  /* 120px stat block */
  [style*="font-size: 120px"] {
    font-size: clamp(56px, 16vw, 120px) !important;
  }
  /* 96px specimens/data */
  [style*="font-size: 96px"] {
    font-size: clamp(48px, 14vw, 96px) !important;
  }
  /* 80px arrow icon */
  [style*="font-size: 80px"] {
    font-size: clamp(40px, 12vw, 80px) !important;
  }
  /* 64px various display elements */
  [style*="font-size: 64px"] {
    font-size: clamp(36px, 10vw, 64px) !important;
  }
  /* 56px closing block + social cards */
  [style*="font-size: 56px"] {
    font-size: clamp(28px, 8vw, 56px) !important;
  }

  /* --- Specimen + dodont stages --- */
  .specimen { padding: 24px !important; }
  .dodont-stage { aspect-ratio: 4/3; }

  /* --- Fleet SVGs — overflow safe --- */
  svg { max-width: 100% !important; height: auto !important; }

  /* --- Digital app mockup → constrained --- */
  [style*="aspect-ratio: 9/19"] {
    max-width: 240px !important;
  }

  /* --- Governance closing block — responsive padding --- */
  [style*="padding: 60px"] {
    padding: 40px 24px !important;
  }

  /* --- Logo specimen boxes (80px/64px inline padding → responsive) --- */
  [style*="padding: 80px"] {
    padding: 40px 24px !important;
  }
  [style*="padding: 64px"] {
    padding: 32px 20px !important;
  }
  [style*="padding: 48px"] {
    padding: 28px 16px !important;
  }
  [style*="padding: 40px 36px"] {
    padding: 24px 16px !important;
  }

  /* --- Stationery fixed-width elements --- */
  [style*="width: 280px"] {
    width: 100% !important;
    max-width: 280px !important;
  }
  [style*="width: 60%"] {
    width: 100% !important;
  }

  /* --- Back to top - mobile position --- */
  .back-to-top { right: 16px; bottom: 16px; }
}

/* ============================================================
   RESPONSIVE — PHONE (≤ 480px)
   ============================================================ */
@media screen and (max-width: 480px) {
  .section { padding: 64px 5% 64px !important; }
  .cover { padding: 40px 5% !important; }

  /* All multi-column grids → single column */
  .grid-4 { grid-template-columns: 1fr !important; }
  .grid-6 { grid-template-columns: 1fr 1fr !important; }

  /* Dodont 4-col → single column on phones */
  .dodont[style*="repeat(4"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Competitive map → stack quadrants vertically on phone */
  [style*="grid-template-columns:1fr 1fr"][style*="grid-template-rows:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
  }

  /* Icon grid → 3 columns on small phones */
  [style*="grid-template-columns: repeat(8, 1fr)"] {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }

  /* Typography scale specimens */
  .section-title { font-size: clamp(28px, 10vw, 48px) !important; }
  .cover-wordmark { font-size: clamp(56px, 20vw, 120px) !important; }
  .cover-tag { font-size: clamp(16px, 4vw, 24px) !important; }

  /* Manifesto text */
  .manifesto { font-size: clamp(22px, 5vw, 36px) !important; }

  /* h3/h4 sizes */
  .h3 { font-size: 20px !important; }
  .h4 { font-size: 18px !important; }

  /* Metric numbers */
  .metric { font-size: clamp(48px, 15vw, 96px) !important; }

  /* Pull quote */
  .pull { font-size: clamp(24px, 6vw, 40px) !important; }

  /* Inline large display → phone-scale */
  [style*="font-size: 200px"] { font-size: clamp(48px, 15vw, 120px) !important; }
  [style*="font-size: 160px"] { font-size: clamp(48px, 14vw, 100px) !important; }
  [style*="font-size: 120px"] { font-size: clamp(40px, 13vw, 80px) !important; }
  [style*="font-size: 96px"] { font-size: clamp(36px, 12vw, 64px) !important; }
  [style*="font-size: 80px"] { font-size: clamp(32px, 10vw, 56px) !important; }
  [style*="font-size: 64px"] { font-size: clamp(28px, 8vw, 48px) !important; }
  [style*="font-size: 56px"] { font-size: clamp(24px, 7vw, 40px) !important; }

  /* Digital app mockup → even smaller */
  [style*="aspect-ratio: 9/19"] { max-width: 200px !important; }

  /* Cloud dashboard → overflow hidden */
  [style*="aspect-ratio: 4/3"] { overflow: hidden !important; }

  /* Social cards → ensure aspect-ratio respected */
  [style*="aspect-ratio: 1"] { min-width: 0 !important; }

  /* Governance closing block */
  [style*="padding: 60px"] { padding: 32px 16px !important; }
  [style*="padding: 80px"] { padding: 24px 12px !important; }
  [style*="padding: 64px"] { padding: 20px 12px !important; }
  [style*="padding: 48px"] { padding: 20px 12px !important; }
  [style*="padding: 40px 36px"] { padding: 16px 12px !important; }

  /* Divider spacing tighter */
  .divider { margin: 40px 0 !important; }

  /* Nav → near full-width */
  .nav { width: 85vw; max-width: 320px; }

  /* Burger slightly smaller */
  .burger { top: 12px; left: 12px; width: 36px; height: 36px; font-size: 16px; }
}

