/* ARGUS Framework: editorial one-pager */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=Manrope:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --navy: #0E1A3A;
  --navy-2: #14224A;
  --navy-soft: #1B2C5A;
  --gold: #C8A961;
  --gold-soft: #D9BE7C;
  --gold-deep: #A88A48;
  --cream: #F7F3EC;
  --paper: #FBFAF7;
  --paper-2: #F2EDE3;
  --ink: #0E1A3A;
  --ink-60: rgba(14, 26, 58, 0.62);
  --ink-40: rgba(14, 26, 58, 0.42);
  --ink-15: rgba(14, 26, 58, 0.15);
  --ink-08: rgba(14, 26, 58, 0.08);
  --rule: rgba(14, 26, 58, 0.12);
  --serif: 'Newsreader', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.argus-root {
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

/* Typography utilities */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
}

.eyebrow-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-40);
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.018em;
  line-height: 1.05;
  color: var(--ink);
}

.display em {
  font-style: normal;
  font-weight: 400;
  color: var(--ink-60);
}

.body-lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-60);
  text-wrap: pretty;
}

.body strong { color: var(--ink); font-weight: 600; }

/* Section frames */
.section {
  padding: 120px 56px;
  position: relative;
}

.section-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.section-hd {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: start;
}

.section-hd .meta {
  position: sticky;
  top: 100px;
}

.gold-rule {
  height: 1px;
  background: var(--gold);
  width: 48px;
  margin: 16px 0 20px;
}

.full-rule {
  height: 1px;
  background: var(--rule);
  width: 100%;
}

/* Sticky nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(251, 250, 247, 0.78);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.nav-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav-links a {
  color: var(--ink-60);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
}

/* Buttons / chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--ink-15);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-60);
  text-transform: uppercase;
  background: var(--paper);
}

.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* Dark sections */
.dark {
  background: var(--navy);
  color: var(--cream);
}

.dark .body { color: rgba(247, 243, 236, 0.7); }
.dark .body strong { color: var(--cream); }
.dark .eyebrow-num { color: rgba(247, 243, 236, 0.45); }
.dark .full-rule { background: rgba(247, 243, 236, 0.14); }

/* Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}

.pillar {
  padding: 40px 28px 36px;
  border-right: 1px solid var(--rule);
  cursor: pointer;
  transition: background 0.4s ease;
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.pillar:last-child { border-right: none; }
.pillar:hover { background: var(--paper-2); }
.pillar.active { background: var(--navy); color: var(--cream); }
.pillar.active .pillar-num { color: var(--gold-soft); }
.pillar.active .pillar-title { color: var(--cream); }
.pillar.active .pillar-body { color: rgba(247, 243, 236, 0.78); }
.pillar.active .pillar-glyph svg { stroke: var(--gold-soft); }

.pillar-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  margin-bottom: 28px;
}

.pillar-glyph {
  margin-bottom: 28px;
  height: 56px;
  display: flex;
  align-items: center;
}

.pillar-glyph svg {
  stroke: var(--navy);
  fill: none;
  stroke-width: 1.2;
  transition: stroke 0.4s;
}

.pillar-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--ink);
}

.pillar-body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-60);
  flex: 1;
}

/* Pyramid */
.pyramid-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.pyramid-stage-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pyramid-stage-3d {
  position: relative;
  width: 100%;
  max-width: 580px;
  aspect-ratio: 580 / 480;
  perspective: 1800px;
  perspective-origin: 50% 60%;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.pyramid-3d-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.pyramid-3d-inner.dragging {
  transition: none;
}

.pyramid-face {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: opacity 0.25s ease;
}

/* Only the active (front-facing) face is visible.
   The 3D rotation still happens — the active face simply switches as you rotate. */
.pyramid-face:not(.front) {
  opacity: 0;
  pointer-events: none;
}

.pyramid-face-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pyramid-shadow {
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  width: 70%;
  height: 24px;
  background: radial-gradient(ellipse at center, rgba(200,169,97,0.22) 0%, transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  z-index: -1;
}

.pyramid-dim-label {
  text-align: center;
  margin-top: 4px;
}
.pyramid-dim-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: rgba(217, 190, 124, 0.65);
  margin-bottom: 8px;
}
.pyramid-dim-name {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--cream);
  transition: opacity 0.2s;
}

.pyr-tread polygon {
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.18));
}
.pyr-tread:hover polygon {
  stroke: rgba(200,169,97,0.85) !important;
}
.pyr-tread.active polygon {
  filter: drop-shadow(0 4px 12px rgba(200,169,97,0.35));
}

.pyr-lvl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold-soft);
}

.pyr-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
}

.pyramid-detail {
  background: var(--navy-2);
  border: 1px solid rgba(200, 169, 97, 0.3);
  padding: 32px 36px;
  width: 100%;
  max-width: 520px;
}

.pyramid-detail .lvl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 12px;
}

.pyramid-detail h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.018em;
  margin: 0 0 16px;
  color: var(--cream);
  line-height: 1.1;
}

.pyramid-detail p {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: rgba(247, 243, 236, 0.75);
  margin: 0;
}

.pyr-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}

.pyr-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(247,243,236,0.2);
  background: transparent;
  color: var(--cream);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-family: var(--mono);
}

.pyr-btn:hover { border-color: var(--gold); color: var(--gold); }

.pyr-rotate {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(247,243,236,0.45);
  text-transform: uppercase;
  margin-left: 16px;
}

/* Legacy 3D pyramid styles removed — pyramid is now SVG-based */

/* Dimension switcher */
.pyr-dims {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(247, 243, 236, 0.16);
  margin-bottom: 24px;
  background: rgba(14, 26, 58, 0.4);
}

.pyr-dim-btn {
  padding: 14px 12px;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(247, 243, 236, 0.12);
  color: rgba(247, 243, 236, 0.55);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.25s, color 0.25s;
  font-family: var(--sans);
}

.pyr-dim-btn:last-child { border-right: none; }

.pyr-dim-btn:hover {
  background: rgba(200, 169, 97, 0.08);
  color: var(--cream);
}

.pyr-dim-btn.active {
  background: rgba(200, 169, 97, 0.12);
  color: var(--cream);
}
.pyr-dim-btn.active .pyr-dim-num { color: var(--gold); }

.pyr-dim-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(247, 243, 236, 0.4);
  text-transform: uppercase;
}

.pyr-dim-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.pyramid-detail .lvl-sep {
  margin: 0 10px;
  opacity: 0.4;
}

/* Ecosystem cards */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.eco-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.3s, transform 0.3s;
  min-height: 280px;
}

.eco-card:hover {
  border-color: var(--gold);
}

.eco-card .eco-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
}

.eco-card h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.012em;
  margin: 0;
  line-height: 1.2;
  color: var(--ink);
}

.eco-card p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-60);
  margin: 0;
  flex: 1;
}

.eco-card .eco-mark {
  width: 28px;
  height: 28px;
}

/* Accordion */
.acc-item {
  border-bottom: 1px solid var(--rule);
  padding: 28px 0;
  cursor: pointer;
}

.acc-item:first-child { border-top: 1px solid var(--rule); }

.acc-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 32px;
  align-items: center;
}

.acc-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
}

.acc-title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.acc-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--ink-15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  background: transparent;
}

.acc-item.open .acc-toggle {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
  transform: rotate(45deg);
}

.acc-toggle svg { transition: transform 0.3s; }

.acc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1), padding 0.4s, opacity 0.4s;
  opacity: 0;
}

.acc-item.open .acc-content {
  max-height: 400px;
  padding-top: 24px;
  opacity: 1;
}

.acc-content-inner {
  padding-left: 92px;
  max-width: 720px;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-60);
}

/* Compliance grid */
.comp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.comp-cell {
  padding: 28px 20px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  transition: background 0.2s;
}

.comp-cell:hover { background: var(--paper-2); }

.comp-cell .code {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.comp-cell .name {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-60);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* Footer */
.footer {
  padding: 80px 56px 48px;
  background: var(--navy);
  color: var(--cream);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(247, 243, 236, 0.14);
}

.footer-bottom {
  max-width: 1240px;
  margin: 32px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(247, 243, 236, 0.45);
  text-transform: uppercase;
}

.footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
  font-weight: 500;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer a {
  color: rgba(247, 243, 236, 0.7);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 14px;
}

.footer a:hover { color: var(--gold); }

.footer-tagline {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.005em;
  color: rgba(247, 243, 236, 0.75);
  line-height: 1.5;
  max-width: 380px;
}

/* Hero */
.hero {
  padding: 96px 56px 140px;
  position: relative;
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  margin-top: 96px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  align-items: stretch;
  max-width: 100%;
}

.hero-grid-cell {
  padding: 32px 32px 8px 0;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-grid-cell:first-child { padding-left: 0; }
.hero-grid-cell:not(:first-child) { padding-left: 32px; }
.hero-grid-cell:last-child { border-right: none; padding-right: 0; }
.hero-grid-cell .num { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; color: var(--ink-40); }
.hero-grid-cell .ttl { font-family: var(--sans); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); line-height: 1.3; }
.hero-grid-cell .desc { font-family: var(--sans); font-size: 14px; line-height: 1.6; color: var(--ink-60); }

.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-logo {
  margin-bottom: 64px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule);
}

.hero-logo img {
  height: 64px;
  width: auto;
  display: block;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin: 0 0 32px;
  color: var(--ink);
  max-width: 1100px;
}

.hero h1 em {
  font-style: normal;
  font-weight: 400;
  color: var(--ink-60);
}

.hero-lede {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-60);
  max-width: 720px;
  margin: 0 0 40px;
}

.hero-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-grid {
  margin-top: 96px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}

.hero-grid > div {
  padding: 32px 32px 4px 0;
  border-right: 1px solid var(--rule);
}

.hero-grid > div:last-child { border-right: none; padding-right: 0; }

/* Variation B (dark) overrides */
.var-dark {
  --paper: #0E1A3A;
  --paper-2: #14224A;
  --cream: #F7F3EC;
  --ink: #F2EDE3;
  --ink-60: rgba(242, 237, 227, 0.65);
  --ink-40: rgba(242, 237, 227, 0.45);
  --ink-15: rgba(242, 237, 227, 0.16);
  --ink-08: rgba(242, 237, 227, 0.08);
  --rule: rgba(242, 237, 227, 0.14);
  --gold-deep: #D9BE7C;
}

.var-dark .nav { background: rgba(14, 26, 58, 0.78); }
.var-dark .nav-logo img.var-dark .hero-logo img { filter: brightness(0) invert(1); }
.var-dark .pillar.active { background: var(--gold); color: var(--navy); }
.var-dark .pillar.active .pillar-num.var-dark .pillar.active .pillar-title.var-dark .pillar.active .pillar-body { color: var(--navy); }
.var-dark .pillar.active .pillar-glyph svg { stroke: var(--navy); }
.var-dark .dark { background: #1B2C5A; }

/* Variation C (warm) */
.var-warm {
  --paper: #F2EDE3;
  --paper-2: #E8E0D0;
  --cream: #FBFAF7;
  --gold-deep: #8B6F35;
}

/* ============================================================
   RESPONSIVE
   Tablet:  ≤ 1100px
   Small tablet / large phone: ≤ 900px
   Phone:   ≤ 640px
   Small phone: ≤ 460px
   ============================================================ */

@media (max-width: 1100px) {
  .section { padding: 96px 40px; }
  .hero { padding: 64px 40px 96px; }
  .nav-inner { padding: 16px 32px; }
  .footer { padding: 64px 40px 40px; }
  .eco-grid { gap: 16px; }
  .pyramid-3d { width: 460px; height: 420px; }
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--rule); min-height: auto; padding: 36px 28px; }
  .pillar:nth-child(odd) { border-right: 1px solid var(--rule); }
}

/* ----- Phones & small tablets: stack everything ----- */
@media (max-width: 900px) {
  .section { padding: 64px 24px; }
  .hero { padding: 40px 24px 72px; }
  .footer { padding: 56px 24px 32px; }
  .nav-inner { padding: 14px 20px; gap: 16px; }
  .nav-links { display: none; }

  /* Hero typography */
  .hero h1 { font-size: clamp(32px, 8vw, 52px); }
  .hero-lede { font-size: 16px; }
  .hero-logo img { height: 44px; }
  .hero-logo { margin-bottom: 32px; padding-bottom: 24px; }

  /* Hero 3-cell grid: stack vertically */
  .hero-grid { margin-top: 56px; grid-template-columns: 1fr !important; }
  .hero-grid-cell,
  .hero-grid > div {
    padding: 24px 0 !important;
    border-right: none !important;
    border-bottom: 1px solid var(--rule) !important;
    padding-left: 0 !important;
  }
  .hero-grid-cell:last-child,
  .hero-grid > div:last-child { border-bottom: none !important; }

  /* Section header: stack meta on top */
  .section-hd { grid-template-columns: 1fr !important; gap: 24px; margin-bottom: 48px; }
  .section-hd .meta { position: static !important; }

  /* Pillars: 1 column */
  .pillars-grid { grid-template-columns: 1fr !important; }
  .pillar,
  .pillar:nth-child(odd) {
    border-right: none !important;
    border-bottom: 1px solid var(--rule) !important;
    min-height: auto;
    padding: 32px 24px;
    margin: 0 -24px;
  }
  .pillars-grid > .pillar:last-child { border-bottom: none !important; }

  /* Pyramid + detail card: stack on mobile */
  .pyramid-layout {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .pyramid-layout > .pyramid-stage { order: 1; }
  .pyramid-layout > div:not(.pyramid-stage) { order: 2; }

  /* The Challenge: 2-column body becomes 1-column */
  .section-hd > div > div[style*="repeat(2"],
  .section-inner > div > div[style*="1fr 1fr"],
  .section-hd > div > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  /* Inline styled 2-col grids (catches the gridTemplateColumns: '1fr 1fr' inline) */
  .section-hd [style*="1fr 1fr"]:not(.section-hd) {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Q01-Q04 question cards: 4 → 2 cols */
  [style*="repeat(4, 1fr)"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 28px 24px !important;
  }

  /* What-is-ARGUS 3-domain row: stack */
  .section.dark [style*="repeat(3, 1fr)"],
  [style*="repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  .section.dark [style*="repeat(3, 1fr)"] > div {
    border-right: none !important;
    border-bottom: 1px solid rgba(247,243,236,0.16);
    padding: 28px 0 !important;
  }
  .section.dark [style*="repeat(3, 1fr)"] > div:last-child { border-bottom: none; }

  /* Compliance grid */
  .comp-grid { grid-template-columns: repeat(3, 1fr); }
  .comp-cell { min-height: 110px; padding: 20px 14px; }

  /* Ecosystem grid */
  .eco-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .eco-card,
  .eco-card[style*="span"] {
    grid-column: 1 / -1 !important;
    min-height: auto;
    padding: 28px 24px !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
  .eco-card > div[style*="flex: 0 0"] {
    flex: none !important;
    width: 100% !important;
  }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr !important; gap: 40px; padding-bottom: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }

  /* Accordion */
  .acc-row { grid-template-columns: 40px 1fr 32px; gap: 16px; }
  .acc-content-inner { padding-left: 56px; }
  .acc-title { font-size: 17px; }

  /* Pyramid: 3D stage scales naturally; just clean up wrapper sizing on mobile */
  .pyramid-stage-wrap {
    width: 100%;
  }
  .pyramid-stage-3d {
    max-width: 480px !important;
  }

  /* Display headlines: don't overflow */
  .display { font-size: clamp(28px, 7vw, 44px) !important; max-width: 100% !important; }

  /* Sub-pages: kill sticky aside, stack 2-col layouts */
  .argus-root header[style*="padding: 64px 56px"] { padding: 40px 24px 48px !important; }
  aside[style*="position: sticky"] { position: static !important; }
  [style*="grid-template-columns: 280px 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

/* ----- Small phones ----- */
@media (max-width: 640px) {
  .section { padding: 56px 20px; }
  .hero { padding: 32px 20px 56px; }
  .footer { padding: 48px 20px 28px; }
  .nav-inner { padding: 12px 16px; }
  .nav-logo img { height: 24px; }

  .hero h1 { font-size: clamp(28px, 8.5vw, 40px); }
  .hero-lede { font-size: 15.5px; }
  .hero-logo img { height: 38px; }

  /* Q01-Q04 stack to 1 col on tiny screens */
  [style*="repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .comp-grid { grid-template-columns: repeat(2, 1fr); }

  .pyramid-stage-3d {
    max-width: 100% !important;
  }
  .pyramid-detail { padding: 24px 20px; }
  .pyramid-detail h3 { font-size: 22px; }

  .display { font-size: clamp(24px, 7.5vw, 34px) !important; }

  .acc-row { grid-template-columns: 32px 1fr 28px; gap: 12px; }
  .acc-content-inner { padding-left: 44px; font-size: 14px; }
  .acc-item { padding: 22px 0; }
  .footer-inner { padding-bottom: 32px; }
}

@media (max-width: 460px) {
  /* SVG pyramid scales automatically via viewBox + max-width: 100% */
  .pyr-dims { grid-template-columns: repeat(2, 1fr); }
  .pyr-dim-btn { border-bottom: 1px solid rgba(247,243,236,0.12); }
  .pyr-dim-btn:nth-child(2) { border-right: none; }
}

