/* =========================================================
   HCDN · Proyecto 1625-D-2026 — Estética institucional
   Paleta: azul profundo, celeste argentino, oro legislativo
   ========================================================= */

:root {
  --blue-900: #0A1F3D;
  --blue-800: #0E2A56;
  --blue-700: #123872;
  --blue-600: #164E9A;
  --blue-500: #1E6ABE;
  --celeste: #75AADB;
  --celeste-soft: #B7D3EC;
  --gold: #D4A537;
  --gold-bright: #F2C94C;
  --ivory: #F8F5EE;
  --paper: #FAF8F3;
  --cream: #F3EFE5;
  --ink: #0D1A2C;
  --ink-soft: #384560;
  --ink-mute: #7A8599;
  --line: #D6D0C2;
  --line-soft: #E8E4D8;
  --risk: #B84545;
  --ok: #3B7A45;
  --serif: 'Fraunces', 'Libre Caslon Text', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- FOCUS --- */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- SKIP LINK --- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--blue-900);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  z-index: 10001;
  border-radius: 2px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.4);
  transition: top .25s cubic-bezier(.2,.9,.2,1);
}
.skip-link:focus-visible {
  top: 20px;
  outline: 3px solid var(--blue-900);
  outline-offset: 2px;
}

/* --- SCROLL MARGIN for anchored sections --- */
section[id], [id].anchor-target {
  scroll-margin-top: 90px;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

img, svg { max-width: 100%; display: block; }

::selection { background: var(--gold); color: var(--blue-900); }

/* Custom cursor removed — using system cursor */

/* ---------- PROGRESS BAR ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--celeste), var(--gold));
  z-index: 10000;
  transition: width .08s linear;
}

/* ---------- FLAG BAND ---------- */
.flag-band {
  position: fixed;
  top: 3px; left: 0;
  width: 100%;
  height: 6px;
  display: flex;
  z-index: 200;
  pointer-events: none;
}
.flag-band .band { flex: 1; }
.flag-band .band.celeste { background: var(--celeste); }
.flag-band .band.blanco { background: #fff; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 9px; left: 0;
  width: 100%;
  background: rgba(250, 248, 243, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  z-index: 150;
  transition: transform .35s, background .35s;
}

.nav.hidden { transform: translateY(-110%); }
.nav.dark {
  background: rgba(10, 31, 61, .85);
  color: #fff;
  border-bottom-color: rgba(255,255,255,.08);
}

.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 44px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.shield {
  width: 40px;
  height: 48px;
  color: var(--blue-800);
  transition: color .3s;
}
.nav.dark .shield { color: var(--gold); }

.nav-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-super {
  font-size: 9px;
  letter-spacing: .14em;
  color: var(--ink-mute);
  font-weight: 600;
  text-transform: uppercase;
}
.nav.dark .nav-super { color: var(--celeste-soft); }

.nav-main {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  font-style: italic;
  color: var(--blue-900);
  margin-top: 2px;
}
.nav.dark .nav-main { color: #fff; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  border-radius: 999px;
  position: relative;
  transition: background .25s, color .25s;
}
.nav-links a:hover { background: rgba(10, 31, 61, .06); color: var(--blue-700); }
.nav.dark .nav-links a:hover { background: rgba(255,255,255,.08); color: var(--gold-bright); }
.nav-links a.active {
  background: var(--blue-900);
  color: #fff;
}
.nav.dark .nav-links a.active { background: var(--gold); color: var(--blue-900); }

.nav-cta {
  padding: 10px 18px;
  background: var(--blue-900);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 2px;
  transition: background .25s, transform .25s;
}
.nav-cta:hover { background: var(--gold); color: var(--blue-900); transform: translateY(-1px); }

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-inner { padding: 14px 22px; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  background: linear-gradient(180deg, var(--blue-900) 0%, #0B274F 55%, var(--blue-800) 100%);
  color: var(--ivory);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 80%, rgba(117,170,219,.18) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(212,165,55,.14) 0%, transparent 55%);
  pointer-events: none;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .45;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 80%);
  pointer-events: none;
}

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

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--celeste-soft);
  margin-bottom: 42px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .9s .2s forwards cubic-bezier(.2,.9,.2,1);
}
.pill {
  padding: 6px 12px;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 3px;
  letter-spacing: .22em;
  font-weight: 600;
}
.dot { opacity: .4; }

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(52px, 9vw, 140px);
  line-height: .95;
  letter-spacing: -.03em;
  margin-bottom: 48px;
  max-width: 1200px;
}

.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(60px) rotateX(-10deg);
  transition: opacity 1s, transform 1.1s;
  transition-timing-function: cubic-bezier(.2,.9,.2,1);
}
.hero-title .line.italic { font-style: italic; color: var(--gold); font-weight: 400; }
.hero-title .line.small {
  font-size: .52em;
  font-style: italic;
  color: var(--celeste-soft);
  font-weight: 400;
  margin-top: 8px;
  letter-spacing: -.01em;
}
.hero-title .line em { font-style: italic; color: var(--celeste); font-weight: 400; }
.hero-title .line.revealed { opacity: 1; transform: none; }

.hero-lead {
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.55;
  max-width: 860px;
  margin-bottom: 48px;
  color: rgba(248,245,238,.88);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s .4s, transform 1s .4s;
}
.hero-lead.revealed { opacity: 1; transform: none; }
.hero-lead strong { color: var(--ivory); font-weight: 600; }
.hero-lead .muted { color: var(--celeste-soft); font-style: italic; display: block; margin-top: 10px; font-size: 16px; }

.hero-actions {
  display: flex;
  gap: 18px;
  margin-bottom: 80px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp .8s .7s forwards cubic-bezier(.2,.9,.2,1);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.9,.2,1), background .3s, color .3s;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s; }
.btn:hover svg { transform: translateX(4px); }
.btn.primary { background: var(--gold); color: var(--blue-900); }
.btn.primary:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 12px 30px -10px rgba(212,165,55,.6); }
.btn.primary.gold { background: var(--gold); }
.btn.ghost { background: transparent; color: var(--ivory); border: 1px solid rgba(255,255,255,.3); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 40px;
  max-width: 1100px;
}

.stat {
  padding: 0 32px 0 0;
  border-right: 1px solid rgba(255,255,255,.08);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s, transform .8s;
  transition-timing-function: cubic-bezier(.2,.9,.2,1);
}
.stat:last-child { border-right: none; }
.stat.revealed { opacity: 1; transform: none; }
.stat:nth-child(1).revealed { transition-delay: .1s; }
.stat:nth-child(2).revealed { transition-delay: .2s; }
.stat:nth-child(3).revealed { transition-delay: .3s; }
.stat:nth-child(4).revealed { transition-delay: .4s; }

.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -.03em;
  margin-bottom: 8px;
}
.stat-num .usd, .stat-num.usd { font-size: .9em; }

.stat-label {
  display: block;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--celeste-soft);
  line-height: 1.4;
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 44px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.scroll-hint .arrow {
  width: 40px;
  height: 1px;
  background: currentColor;
  position: relative;
  animation: slidearrow 2s infinite;
}
.scroll-hint .arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 8px;
  height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(-45deg);
}

/* --- HERO AUTHOR INLINE (debajo del título, antes del lead) --- */
.hero-author-inline {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 8px 0 36px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
  max-width: 520px;
}
.author-avatar-inline {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  position: relative;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.35));
}
.author-avatar-inline img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.author-avatar-inline .avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--gold);
  font-size: 30px;
}
.author-text-inline { flex: 1; }
.author-line {
  font-size: 10px;
  letter-spacing: .28em;
  color: var(--celeste-soft);
  margin-bottom: 4px;
  font-weight: 600;
}
.author-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--gold);
  font-weight: 500;
  line-height: 1.05;
}
.author-sub {
  font-size: 12px;
  color: rgba(255,255,255,.65);
  letter-spacing: .06em;
  margin-top: 5px;
}
.avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--gold);
  font-size: 26px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  border: 2px solid var(--gold);
}

@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes slidearrow { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }

@media (max-width: 860px) {
  .hero { padding: 130px 0 80px; }
  .hero-inner { padding: 0 24px; }
  .hero-meta { margin-bottom: 36px; gap: 10px; font-size: 10.5px; }
  .hero-title { font-size: 52px; margin-bottom: 36px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; column-gap: 20px; padding-top: 48px; }
  .stat { border-right: none; padding-right: 0; }
  .hero-actions { margin-bottom: 64px; gap: 14px; }
  .hero-lead { margin-bottom: 42px; }
  .hero-author-inline { gap: 16px; margin: 12px 0 40px; padding: 22px 0; }
  .author-avatar-inline { width: 64px; height: 64px; }
  .author-name { font-size: 22px; }
  .author-line { font-size: 9.5px; }
  .scroll-hint { display: none; }
}

/* ---------- MARQUEE ---------- */
.marquee {
  background: var(--blue-900);
  color: var(--gold);
  padding: 22px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
  font-size: 14px;
  letter-spacing: .24em;
  font-weight: 600;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 180px 0;
  position: relative;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 44px;
}

.section-head {
  max-width: 880px;
  margin-bottom: 100px;
}
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--blue-700);
  font-weight: 600;
  padding: 8px 0;
  border-top: 1px solid var(--blue-700);
  margin-bottom: 32px;
  font-family: var(--mono);
}
.eyebrow.gold { color: var(--gold); border-top-color: var(--gold); }

.section-head.light .eyebrow { color: var(--celeste-soft); border-top-color: var(--celeste-soft); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -.025em;
  font-weight: 500;
  margin-bottom: 36px;
  color: var(--blue-900);
}
.section-title em { font-style: italic; color: var(--gold); }
.section-head.light .section-title { color: var(--ivory); }
.section-head.light .section-title em { color: var(--gold-bright); }

.section-lead {
  font-size: clamp(16.5px, 1.2vw, 20px);
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 780px;
}
.section-head.centered .section-lead { margin-left: auto; margin-right: auto; }
.section-head.light .section-lead { color: rgba(248,245,238,.75); }

/* ---------- DATA REVEAL ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(.2,.9,.2,1), transform 1s cubic-bezier(.2,.9,.2,1);
}
[data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- CONTEXT / TIMELINE ---------- */
.section-context { background: var(--cream); }

.timeline {
  position: relative;
  padding: 40px 0;
  margin-bottom: 60px;
}
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--blue-700) 10%, var(--blue-700) 90%, transparent);
  transform: translateX(-50%);
}

.tl-item {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: center;
  margin-bottom: 60px;
  position: relative;
}
.tl-item.reverse { direction: rtl; }
.tl-item.reverse > * { direction: ltr; }

.tl-year {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  font-weight: 500;
  color: var(--blue-700);
  text-align: center;
  grid-column: 2;
  position: relative;
  background: var(--cream);
  padding: 12px 8px;
  z-index: 2;
}
.tl-year::before {
  content: "";
  position: absolute;
  left: 50%; top: -8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue-700);
  border: 3px solid var(--cream);
  transform: translateX(-50%);
}

.tl-card {
  background: var(--paper);
  padding: 28px 32px;
  border-radius: 3px;
  box-shadow: 0 1px 0 var(--line-soft), 0 20px 40px -25px rgba(10,31,61,.12);
  grid-column: 1;
  border-left: 3px solid var(--celeste);
  transition: transform .4s, box-shadow .4s;
}
.tl-item.reverse .tl-card { grid-column: 3; border-left: none; border-right: 3px solid var(--celeste); }
.tl-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--line-soft), 0 30px 50px -20px rgba(10,31,61,.2); }
.tl-card.gold { border-color: var(--gold); background: linear-gradient(135deg, #fff 0%, var(--cream) 100%); }
.tl-item.highlight .tl-year { color: var(--gold); font-size: 40px; }
.tl-item.highlight .tl-year::before { background: var(--gold); }

.tl-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.tl-card p { font-size: 15px; color: var(--ink-soft); line-height: 1.55; }

.context-note {
  display: flex;
  gap: 20px;
  padding: 32px 36px;
  background: var(--blue-900);
  color: var(--ivory);
  border-radius: 3px;
  margin-top: 40px;
}
.context-note .note-icon { width: 26px; height: 26px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.context-note strong { color: var(--gold-bright); font-weight: 600; }
.context-note em { color: var(--celeste-soft); font-style: italic; }

@media (max-width: 860px) {
  .section { padding: 100px 0; }
  .container { padding: 0 24px; }
  .section-head { margin-bottom: 64px; }
  .timeline-line { left: 20px; }
  .tl-item, .tl-item.reverse { direction: ltr; grid-template-columns: 50px 1fr; grid-column-gap: 16px; margin-bottom: 44px; }
  .tl-year { grid-column: 1; text-align: left; font-size: 18px; padding: 0; }
  .tl-year::before { left: 0; }
  .tl-card, .tl-item.reverse .tl-card { grid-column: 2; padding: 24px 24px; }
  .tl-card h3 { font-size: 20px; margin-bottom: 12px; }
}

/* ---------- PILLARS ---------- */
.section-pillars { background: var(--paper); }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.pillar {
  padding: 72px 56px;
  text-align: left;
  position: relative;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: background .4s, color .4s;
  overflow: hidden;
}

.pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue-900);
  transform: translateY(100%);
  transition: transform .6s cubic-bezier(.2,.9,.2,1);
  z-index: 0;
}

.pillar:hover::before { transform: translateY(0); }
.pillar:hover { color: var(--ivory); }
.pillar:hover .pillar-num { color: var(--gold); }
.pillar:hover .pillar-icon { color: var(--gold); }
.pillar:hover .pillar-cta { color: var(--gold); }

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

.pillar-num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--blue-700);
  font-weight: 600;
  transition: color .3s;
}

.pillar-icon {
  width: 68px;
  height: 68px;
  margin: 26px 0 36px;
  color: var(--blue-700);
  transition: color .3s, transform .6s;
}
.pillar:hover .pillar-icon { transform: rotate(5deg) scale(1.05); }

.pillar h3 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  color: inherit;
  line-height: 1.05;
  margin-bottom: 18px;
  letter-spacing: -.02em;
}

.pillar-desc {
  font-size: 16px;
  line-height: 1.7;
  color: inherit;
  opacity: .85;
  margin-bottom: 36px;
  max-width: 440px;
}

.pillar-cta {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue-700);
  font-weight: 600;
  transition: color .3s, transform .3s;
}
.pillar:hover .pillar-cta { transform: translateX(6px); }

@media (max-width: 860px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar { padding: 56px 28px; }
  .pillar h3 { font-size: 30px; margin-bottom: 20px; }
  .pillar-desc { margin-bottom: 32px; }
}

/* PILLAR DETAIL MODAL (desktop: centered dialog) */
.pillar-detail {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
  padding: 40px;
}
.pillar-detail.open { opacity: 1; pointer-events: auto; }
.pillar-detail::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10,31,61,.9);
  backdrop-filter: blur(12px);
}
.pillar-detail-wrap {
  position: relative;
  max-width: 820px;
  width: 100%;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(.94);
  transition: opacity .35s cubic-bezier(.2,.9,.2,1), transform .45s cubic-bezier(.2,.9,.2,1);
}
.pillar-detail.open .pillar-detail-wrap { opacity: 1; transform: scale(1); }
.pillar-detail-inner {
  background: var(--paper);
  border-radius: 6px;
  width: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 64px 64px 56px;
  border-top: 4px solid var(--gold);
  flex: 1 1 auto;
  min-height: 0;
}

.sheet-handle { display: none; }

.close-detail {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue-900);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  transition: background .25s, transform .25s;
  z-index: 3;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.3);
}
.close-detail:hover { background: var(--gold); color: var(--blue-900); transform: rotate(90deg); }

.detail-body h4 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--blue-700);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.detail-body h2 {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 500;
  line-height: 1.02;
  color: var(--blue-900);
  margin-bottom: 32px;
  letter-spacing: -.02em;
}
.detail-body h2 em { font-style: italic; color: var(--gold); }
.detail-body p { font-size: 16.5px; color: var(--ink-soft); margin-bottom: 22px; line-height: 1.75; }
.detail-body p strong { color: var(--blue-900); }
.detail-body ul { margin: 14px 0 28px; padding-left: 26px; }
.detail-body ul li { margin-bottom: 12px; color: var(--ink-soft); line-height: 1.7; }
.detail-body .ref {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 10px;
  background: var(--blue-900);
  color: var(--gold);
  border-radius: 2px;
  letter-spacing: .1em;
  margin-right: 8px;
  margin-bottom: 6px;
}

/* MOBILE: Bottom sheet pattern */
@media (max-width: 860px) {
  .pillar-detail {
    padding: 0;
    align-items: flex-end;
    justify-content: stretch;
  }
  .pillar-detail-wrap {
    max-width: 100%;
    width: 100%;
    max-height: 92vh;
    transform: translateY(20px);
    transition: transform .35s cubic-bezier(.2,.9,.2,1), opacity .3s ease;
  }
  .pillar-detail.open .pillar-detail-wrap {
    transform: translateY(0);
  }
  .pillar-detail-inner {
    max-width: 100%;
    width: 100%;
    border-radius: 20px 20px 0 0;
    border-top: none;
    padding: 8px 24px 32px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
    box-shadow: 0 -20px 60px -10px rgba(0,0,0,.5);
  }
  .sheet-handle {
    display: block;
    width: 44px;
    height: 5px;
    background: var(--line);
    border-radius: 3px;
    margin: 8px auto 24px;
    flex-shrink: 0;
    cursor: grab;
  }
  .close-detail {
    width: 40px;
    height: 40px;
    font-size: 22px;
    background: rgba(10,31,61,.1);
    color: var(--blue-900);
    top: 16px;
    right: 16px;
    box-shadow: none;
  }
  .close-detail:hover { background: var(--blue-900); color: #fff; }
  .detail-body h2 { font-size: 28px; margin-bottom: 22px; }
  .detail-body p { font-size: 15.5px; line-height: 1.7; }
  .detail-body h4 { margin-top: 8px; }
}

/* ---------- RIGHTS ---------- */
.section-rights {
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
}

.rights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  perspective: 1200px;
}

.right-card {
  height: 260px;
  cursor: pointer;
  transform-style: preserve-3d;
}
.right-card.featured { grid-column: span 2; }

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .7s cubic-bezier(.2,.9,.2,1);
  transform-style: preserve-3d;
}
.right-card.flipped .flip-inner { transform: rotateY(180deg); }

.flip-front, .flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  padding: 32px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.flip-front {
  background: var(--paper);
  color: var(--blue-900);
  border: 1px solid var(--line);
}
.right-card.featured .flip-front {
  background: var(--blue-900);
  color: var(--ivory);
  border-color: var(--blue-900);
}
.flip-back {
  background: var(--blue-900);
  color: var(--ivory);
  transform: rotateY(180deg);
}
.right-card.featured .flip-back {
  background: var(--gold);
  color: var(--blue-900);
}

.right-card svg { width: 40px; height: 40px; color: var(--celeste); margin-top: 14px; }
.right-card.featured .flip-front svg { color: var(--gold); }

.right-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--ink-mute);
  font-weight: 600;
}
.right-card.featured .right-num { color: var(--celeste-soft); }

.right-card h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.right-card.featured h4 { font-size: 30px; }

.flip-back p {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(248,245,238,.92);
}
.right-card.featured .flip-back p { color: var(--blue-900); font-weight: 500; font-size: 16px; }

@media (max-width: 1100px) { .rights-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 560px) {
  .rights-grid { grid-template-columns: 1fr; gap: 16px; }
  .right-card.featured { grid-column: span 1; }
  .right-card { height: 220px; }
  .flip-front, .flip-back { padding: 28px; }
}

/* ---------- TIERS ---------- */
.section-tiers { background: var(--paper); }

.tiers-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 0;
  border-top: 2px solid var(--blue-900);
}

.tier-tab {
  padding: 28px 32px;
  text-align: left;
  background: transparent;
  color: var(--ink);
  border-bottom: 2px solid var(--blue-900);
  border-right: 1px solid var(--line);
  transition: background .35s, color .35s;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.tier-tab:last-child { border-right: none; }
.tier-tab::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--gold);
  transition: width .4s cubic-bezier(.2,.9,.2,1);
}
.tier-tab:hover { background: var(--cream); }
.tier-tab.active { background: var(--blue-900); color: var(--ivory); }
.tier-tab.active::after { width: 100%; }

.tier-tab-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  opacity: .6;
}
.tier-tab-label {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.tier-tab-hint { font-size: 12px; opacity: .7; }
.tier-tab.active .tier-tab-hint { color: var(--gold-bright); }

.tier-panel {
  display: none;
  padding: 56px 0;
  animation: fadeIn .5s cubic-bezier(.2,.9,.2,1);
}
.tier-panel.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.tier-headline {
  max-width: 720px;
  margin-bottom: 36px;
}
.tier-headline h3 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  color: var(--blue-900);
  margin-bottom: 12px;
  letter-spacing: -.02em;
}
.tier-headline p { font-size: 16px; color: var(--ink-soft); line-height: 1.6; }

.tier-check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  margin-bottom: 48px;
}
.check {
  display: flex;
  gap: 12px;
  font-size: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.check .tick {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--blue-900);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.check.soft .tick { background: transparent; border: 1px solid var(--line); color: var(--ink-mute); }
.check.soft { color: var(--ink-mute); }

.tier-sanction {
  padding: 28px 32px;
  background: var(--blue-900);
  color: var(--ivory);
  border-radius: 3px;
  border-left: 6px solid var(--gold);
}
.tier-sanction-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--celeste-soft);
}
.tier-sanction-line strong {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: -.01em;
  text-transform: none;
}
.tier-bar {
  height: 8px;
  background: rgba(255,255,255,.08);
  border-radius: 4px;
  overflow: hidden;
}
.tier-bar-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--celeste), var(--gold));
  animation: barFill 1.4s cubic-bezier(.2,.9,.2,1) forwards;
  --target: 100%;
}
@keyframes barFill { to { width: var(--target); } }

.tier-note {
  margin-top: 48px;
  padding: 28px 32px;
  background: var(--cream);
  border-left: 4px solid var(--gold);
  display: flex;
  gap: 28px;
  align-items: center;
}
.tier-note-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  flex-shrink: 0;
  width: 90px;
}
.tier-note p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; }
.tier-note strong { color: var(--blue-900); font-weight: 600; }

@media (max-width: 760px) {
  .tiers-selector { grid-template-columns: 1fr; }
  .tier-tab { border-right: none; border-bottom: 1px solid var(--line); }
  .tier-check-grid { grid-template-columns: 1fr; }
  .tier-note { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- SANDBOX ---------- */
.section-sandbox {
  background: var(--blue-900);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}
.sandbox-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 30%, rgba(212,165,55,.14) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(117,170,219,.12) 0%, transparent 45%);
  pointer-events: none;
}
.section-sandbox .container { position: relative; z-index: 2; }

.sandbox-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 80px;
}

.sb-step {
  padding: 36px 28px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 3px;
  position: relative;
  transition: background .4s, border-color .4s, transform .4s;
}
.sb-step:hover {
  background: rgba(212,165,55,.08);
  border-color: var(--gold);
  transform: translateY(-6px);
}

.sb-step-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 600;
}
.sb-step h4 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--ivory);
  margin-bottom: 14px;
  letter-spacing: -.01em;
}
.sb-step p {
  font-size: 14.5px;
  color: rgba(248,245,238,.7);
  line-height: 1.55;
}

.sb-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--gold);
  font-weight: 600;
}

.sandbox-modalities {
  padding: 40px 44px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 3px;
}
.sb-mod-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  font-weight: 600;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ivory);
  transition: background .3s, border-color .3s, color .3s;
}
.chip:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--blue-900);
}

@media (max-width: 1100px) {
  .sandbox-flow {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .sb-arrow { transform: rotate(90deg); padding: 6px 0; }
}

/* ---------- BENEFITS ---------- */
.section-benefits { background: var(--paper); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.benefit {
  padding: 56px 40px;
  background: var(--paper);
  transition: background .4s, transform .4s;
  position: relative;
}
.benefit:hover { background: var(--cream); transform: translateY(-4px); }
.benefit.featured {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 100%);
  color: var(--ivory);
}
.benefit.featured:hover { background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-700) 100%); }
.benefit.featured .benefit-num { color: var(--gold-bright); }
.benefit.featured .benefit-num svg { color: var(--gold); }
.benefit.featured .benefit-num small { color: var(--celeste-soft); }
.benefit.featured h4 { color: var(--ivory); }
.benefit.featured p { color: rgba(248,245,238,.85); }
.benefit.featured p strong { color: var(--gold-bright); }

.benefit-num {
  font-family: var(--serif);
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -.03em;
  margin-bottom: 24px;
  min-height: 60px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.benefit-num small {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--blue-700);
  font-weight: 600;
  letter-spacing: .1em;
  padding-bottom: 8px;
  text-transform: uppercase;
}
.benefit-num svg { color: var(--blue-700); }

.benefit h4 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: 12px;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.benefit p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.benefit p strong { color: var(--blue-900); }

@media (max-width: 1100px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit { padding: 44px 28px; }
}

/* ---------- COMPARATOR ---------- */
.section-compare { background: var(--cream); }

.comp-toggle {
  display: inline-flex;
  margin-bottom: 36px;
  border: 1px solid var(--blue-900);
  border-radius: 999px;
  overflow: hidden;
}
.ct-btn {
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--blue-900);
  transition: background .3s, color .3s;
}
.ct-btn.active { background: var(--blue-900); color: var(--ivory); }

.comp-rows {
  border-top: 2px solid var(--blue-900);
}

.comp-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: stretch;
  padding: 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background .3s;
}
.comp-row:hover { background: var(--paper); }
.comp-row.highlight { background: linear-gradient(90deg, rgba(212,165,55,.05) 0%, transparent 100%); }

.comp-label {
  padding: 28px 24px 28px 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--blue-900);
  letter-spacing: -.005em;
  display: flex;
  align-items: center;
}

.comp-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  position: relative;
}
.comp-pair::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: var(--line);
}

.comp-cell {
  padding: 32px 32px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  position: relative;
  transition: opacity .4s, filter .4s;
}
.comp-cell .ph {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}
.comp-cell.new .ph { color: var(--gold); }

body[data-ct="old"] .comp-cell.new { opacity: .35; filter: blur(.8px); }
body[data-ct="new"] .comp-cell.old { opacity: .35; filter: blur(.8px); }

@media (max-width: 860px) {
  .comp-row { grid-template-columns: 1fr; }
  .comp-label { padding: 20px 0 10px; }
  .comp-pair { grid-template-columns: 1fr; }
  .comp-pair::before { display: none; }
  .comp-cell { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
}

/* ---------- INTERNATIONAL ---------- */
.section-international { background: var(--paper); }

.intl-table {
  border-top: 2px solid var(--blue-900);
  margin-bottom: 48px;
}
.intl-header, .intl-row {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  gap: 24px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.intl-header {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  background: var(--cream);
}
.intl-row {
  font-size: 15px;
  color: var(--ink);
  transition: background .3s;
}
.intl-row:hover { background: var(--cream); }
.intl-row.highlight {
  background: linear-gradient(90deg, var(--blue-900) 0%, rgba(10,31,61,.9) 100%);
  color: var(--ivory);
  border-bottom: 1px solid var(--blue-700);
}
.intl-row.highlight strong { color: var(--gold-bright); }
.intl-row.highlight:hover { background: var(--blue-800); }

.tag {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: 2px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-block;
  width: fit-content;
}
.tag.global { background: var(--risk); color: #fff; }
.tag.local { background: var(--ok); color: #fff; }
.tag.fix { background: var(--ink-mute); color: #fff; }

.intl-map-caption {
  padding: 32px 36px;
  background: var(--cream);
  border-left: 4px solid var(--celeste);
}
.intl-map-caption p { font-size: 15px; color: var(--ink-soft); line-height: 1.65; }
.intl-map-caption strong { color: var(--blue-900); }

@media (max-width: 760px) {
  .intl-header, .intl-row { grid-template-columns: 1fr; gap: 6px; padding: 16px; }
  .intl-header { display: none; }
}

/* ---------- AI ---------- */
.section-ai { background: var(--cream); }

.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.ai-card {
  background: var(--paper);
  padding: 48px;
  border-radius: 3px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform .4s, box-shadow .4s, border-color .4s;
}
.ai-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(10,31,61,.25);
  border-color: var(--gold);
}

.ai-art {
  height: 140px;
  position: relative;
  margin-bottom: 28px;
  color: var(--celeste);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ai-node {
  width: 10px; height: 10px;
  background: var(--blue-700);
  border-radius: 50%;
  position: absolute;
  box-shadow: 0 0 20px var(--blue-500);
  animation: pulse 2.4s infinite;
}
.ai-node:nth-child(1) { top: 20%; left: 25%; animation-delay: 0s; }
.ai-node:nth-child(2) { top: 20%; right: 25%; animation-delay: .4s; }
.ai-node:nth-child(3) { bottom: 20%; left: 25%; animation-delay: .8s; }
.ai-node:nth-child(4) { bottom: 20%; right: 25%; animation-delay: 1.2s; }
.ai-node:nth-child(5) { top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--gold); width: 14px; height: 14px; box-shadow: 0 0 30px var(--gold); animation-delay: 1.6s; }
.ai-edges { position: absolute; inset: 0; color: var(--blue-700); }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: .6; }
}

.ai-wave {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 80px;
}
.ai-wave span {
  display: inline-block;
  width: 5px;
  background: linear-gradient(180deg, var(--celeste), var(--gold));
  border-radius: 3px;
  animation: wave 1.4s ease-in-out infinite;
}
.ai-wave span:nth-child(1) { height: 30%; animation-delay: 0s; }
.ai-wave span:nth-child(2) { height: 80%; animation-delay: .15s; }
.ai-wave span:nth-child(3) { height: 50%; animation-delay: .3s; }
.ai-wave span:nth-child(4) { height: 90%; animation-delay: .45s; }
.ai-wave span:nth-child(5) { height: 40%; animation-delay: .6s; }

@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(.3); }
}

.ai-lock svg { width: 80px; height: 80px; color: var(--gold); }
.ai-lock { animation: gentle 3s ease-in-out infinite; }
@keyframes gentle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.ai-circuit svg { width: 120px; height: 120px; color: var(--blue-700); }
.ai-circuit circle { animation: dotblink 2s infinite; }

@keyframes dotblink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.ai-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: 14px;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.ai-card p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
.ai-card p strong { color: var(--blue-900); }
.ai-card p em { color: var(--gold); font-style: italic; }

@media (max-width: 860px) {
  .ai-grid { grid-template-columns: 1fr; gap: 20px; }
  .ai-card { padding: 36px 28px; }
  .ai-art { height: 110px; margin-bottom: 24px; }
  .ai-card h3 { font-size: 22px; }
}

/* ---------- SECTORS ---------- */
.section-sectors { background: var(--paper); }

.sectors-list {
  border-top: 2px solid var(--blue-900);
}

.sector {
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.sector[open] { background: var(--cream); }
.sector summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 16px 24px 8px;
  display: grid;
  grid-template-columns: 40px 240px 1fr 28px;
  gap: 20px;
  align-items: center;
  font-family: var(--serif);
  transition: padding .3s;
}
.sector summary::-webkit-details-marker { display: none; }
.sector:hover summary { padding-left: 20px; }

.sec-ic { width: 26px; height: 26px; color: var(--blue-700); }
.sec-name { font-size: 22px; font-weight: 600; color: var(--blue-900); letter-spacing: -.01em; }
.sec-meta { font-family: var(--sans); font-size: 13.5px; color: var(--ink-mute); font-weight: 400; }
.sec-meta .ok { color: var(--ok); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 11.5px; }
.sec-meta .risk { color: var(--risk); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 11.5px; }
.sec-meta .mix { color: var(--gold); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 11.5px; }
.sec-arrow {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink-mute);
  transition: transform .35s;
}
.sector[open] .sec-arrow { transform: rotate(180deg); color: var(--gold); }

.sec-body {
  padding: 0 56px 32px 68px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 920px;
}
.sec-body strong { color: var(--blue-900); }

@media (max-width: 860px) {
  .sector summary { grid-template-columns: 26px 1fr 20px; gap: 16px; padding: 28px 10px 28px 8px; }
  .sec-name { font-size: 19px; }
  .sec-meta { display: none; }
  .sec-body { padding: 0 16px 32px 16px; line-height: 1.7; }
}

/* ---------- IMPLEMENTATION ---------- */
.section-timeline { background: var(--cream); }

.implementation-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.impl-item {
  display: grid;
  grid-template-columns: 1fr 120px 2fr;
  align-items: center;
  padding: 22px 24px;
  background: var(--paper);
  gap: 32px;
  border-left: 3px solid transparent;
  transition: border-color .3s, transform .3s;
}
.impl-item:hover { border-left-color: var(--gold); transform: translateX(6px); }

.impl-bar {
  height: 8px;
  background: var(--line-soft);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.impl-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--celeste), var(--blue-700));
  width: 0;
  transition: width 1.2s cubic-bezier(.2,.9,.2,1);
  --w: 50%;
}
.impl-item.revealed .impl-bar-fill { width: var(--w); }
.impl-bar-fill.gold { background: linear-gradient(90deg, var(--gold), var(--gold-bright)); }

.impl-months {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: -.01em;
}
.impl-text { font-size: 15px; color: var(--ink-soft); line-height: 1.55; }

@media (max-width: 760px) {
  .impl-item { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- CLOSE ---------- */
.section-close {
  background: linear-gradient(180deg, var(--blue-900) 0%, #050E1E 100%);
  color: var(--ivory);
  padding-bottom: 200px;
  position: relative;
  overflow: hidden;
}
.close-grad {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(212,165,55,.12) 0%, transparent 50%);
  pointer-events: none;
}
.close-inner { position: relative; z-index: 2; }

.close-para {
  max-width: 820px;
  margin: 0 auto 32px;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(248,245,238,.88);
  text-align: center;
}
.close-para.muted { color: rgba(248,245,238,.6); font-size: 16px; }
.close-para strong { color: var(--gold-bright); font-weight: 600; }

/* --- SHARE SECTION --- */
.share-section {
  max-width: 820px;
  margin: 100px auto 0;
  padding: 48px 40px 44px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 4px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.share-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--celeste), var(--gold), var(--celeste));
}
.share-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}
.share-lead {
  font-size: 15.5px;
  color: rgba(248,245,238,.85);
  margin-bottom: 30px;
  line-height: 1.55;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  min-height: 46px;
  background: rgba(255,255,255,.06);
  color: var(--ivory);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .02em;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 2px;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.share-btn:hover {
  transform: translateY(-2px);
  border-color: transparent;
}
.share-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.share-btn.whatsapp:hover { background: #25D366; color: #fff; }
.share-btn.twitter:hover { background: #000; color: #fff; }
.share-btn.instagram:hover {
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
  color: #fff;
}
.share-btn.copy:hover { background: var(--gold); color: var(--blue-900); border-color: var(--gold); }
.share-btn.copied { background: var(--gold) !important; color: var(--blue-900) !important; border-color: var(--gold) !important; }

.share-toast {
  margin-top: 18px;
  min-height: 22px;
  font-size: 13px;
  color: var(--gold-bright);
  font-family: var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .35s;
}
.share-toast.show { opacity: 1; }

@media (max-width: 640px) {
  .share-section { padding: 40px 24px 36px; margin-top: 80px; }
  .share-buttons { gap: 12px; }
  .share-btn { flex: 1 1 calc(50% - 12px); justify-content: center; padding: 14px 12px; min-height: 52px; }
  .share-btn span { font-size: 13px; }
  .share-lead { margin-bottom: 28px; }
}

/* ---------- FOOTER ---------- */
.footer {
  background: #050E1E;
  color: var(--celeste-soft);
  padding: 50px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand {
  display: flex;
  gap: 18px;
  align-items: center;
}
.footer-brand .shield { color: var(--gold); width: 44px; height: 52px; flex-shrink: 0; }
.footer-brand strong { display: block; color: var(--ivory); font-family: var(--serif); font-size: 18px; font-weight: 500; margin-bottom: 4px; }
.footer-brand span { font-size: 12px; color: var(--celeste-soft); }

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  text-align: right;
}
.footer-meta strong { color: var(--gold); font-family: var(--mono); letter-spacing: .05em; }

.footer-signature {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-style: italic;
  opacity: .85;
  font-size: 13px;
  justify-content: flex-end;
  line-height: 1.4;
}
.footer-signature em { color: var(--gold); font-style: italic; }
.footer-avatar {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  position: relative;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.3));
}
.footer-avatar img {
  width: 100%; height: 100%;
  display: block;
  object-fit: contain;
}
.footer-avatar .avatar-fallback {
  font-size: 14px;
  border-radius: 50%;
}

.footer-tricolor {
  display: flex;
  height: 6px;
}
.tc { flex: 1; }
.tc.celeste { background: var(--celeste); }
.tc.blanco { background: #fff; }

@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}

/* ============================================================
   NEW: Mobile drawer, sticky CTA, TOC, font-ctrl, palette,
   callouts, anchor-copy, reading-time
   ============================================================ */

/* --- NAV TOGGLE (hamburger) --- */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border-radius: 2px;
  transition: background .2s;
}
.nav-toggle:hover { background: rgba(10,31,61,.08); }
.nav.dark .nav-toggle:hover { background: rgba(255,255,255,.1); }
.nav-toggle svg { width: 22px; height: 22px; color: var(--blue-900); transition: color .2s; }
.nav.dark .nav-toggle svg { color: var(--ivory); }
.nav-toggle .bar {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  transition: transform .35s cubic-bezier(.2,.9,.2,1), opacity .2s;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .bar-1 { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar-2 { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar-3 { transform: translateY(-6px) rotate(-45deg); }

/* --- NAV DRAWER --- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,31,61,.85);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  z-index: 180;
  transition: opacity .35s;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.nav-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(380px, 88vw);
  height: 100vh;
  background: var(--blue-900);
  color: var(--ivory);
  z-index: 190;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.2,.9,.2,1);
  display: flex;
  flex-direction: column;
  padding: 28px 28px 32px;
  overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 24px;
}
.drawer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.drawer-avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  position: relative;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.25));
}
.drawer-avatar img {
  width: 100%; height: 100%;
  display: block;
  object-fit: contain;
}
.drawer-avatar .avatar-fallback {
  font-size: 15px;
  border-radius: 50%;
}
.drawer-brand {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  color: var(--gold);
  line-height: 1.1;
}
.drawer-subbrand {
  display: block;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--celeste-soft);
  text-transform: uppercase;
  margin-top: 3px;
}
.drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: var(--ivory);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s, transform .25s;
}
.drawer-close:hover { background: var(--gold); color: var(--blue-900); transform: rotate(90deg); }

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: auto;
}
.drawer-links a {
  display: block;
  padding: 16px 18px;
  min-height: 52px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ivory);
  border-radius: 3px;
  transition: background .2s, padding-left .2s, color .2s;
}
.drawer-links a:hover, .drawer-links a:focus-visible { background: rgba(255,255,255,.06); padding-left: 26px; color: var(--gold); }
.drawer-links .num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--celeste-soft);
  margin-right: 14px;
  vertical-align: middle;
  font-weight: 600;
}

.drawer-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.drawer-cta {
  padding: 16px 20px;
  background: var(--gold);
  color: var(--blue-900);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  border-radius: 2px;
  transition: background .25s;
}
.drawer-cta:hover { background: #fff; }
.drawer-footer {
  margin-top: 20px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--celeste-soft);
  text-align: center;
}

@media (max-width: 1100px) {
  .nav-links, .nav-cta, .font-ctrl { display: none !important; }
  .nav-toggle { display: inline-flex; }
}

/* --- STICKY MOBILE CTA --- */
.mobile-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(10,31,61,.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.08);
  z-index: 140;
  display: none;
  transform: translateY(120%);
  transition: transform .35s cubic-bezier(.2,.9,.2,1);
}
.mobile-cta.visible { transform: translateY(0); }
.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  min-height: 48px;
  background: var(--gold);
  color: var(--blue-900);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: 2px;
}
.mobile-cta a svg { width: 16px; height: 16px; }

@media (max-width: 860px) {
  .mobile-cta { display: block; }
}

/* --- TOC RAIL (desktop) --- */
.toc {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 130;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 8px;
}
.toc-dot {
  position: relative;
  width: 28px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  background: none;
  border: none;
}
.toc-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(10,31,61,.3);
  transition: width .3s, background .3s, transform .3s;
}
.nav.dark ~ .toc .toc-dot::before,
.toc[data-dark="1"] .toc-dot::before { background: rgba(255,255,255,.4); }
.toc-dot:hover::before { background: var(--gold); transform: scale(1.4); }
.toc-dot.active::before {
  background: var(--gold);
  width: 18px;
  border-radius: 3px;
}
.toc-label {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-900);
  background: var(--paper);
  padding: 5px 10px;
  border-radius: 2px;
  border: 1px solid var(--line);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  font-weight: 600;
}
.toc[data-dark="1"] .toc-label { color: var(--ivory); background: var(--blue-800); border-color: rgba(255,255,255,.1); }
.toc-dot:hover .toc-label,
.toc-dot:focus-visible .toc-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 1100px) {
  .toc { display: none; }
}

/* --- FONT SIZE CONTROL --- */
.font-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(10,31,61,.18);
  border-radius: 2px;
  margin-right: 12px;
  overflow: hidden;
}
.nav.dark .font-ctrl { border-color: rgba(255,255,255,.2); }
.font-ctrl button {
  padding: 0 10px;
  height: 30px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--mono);
  color: var(--blue-900);
  background: transparent;
  border-right: 1px solid rgba(10,31,61,.12);
  transition: background .25s, color .25s;
}
.font-ctrl button:last-child { border-right: none; }
.nav.dark .font-ctrl button { color: var(--ivory); border-right-color: rgba(255,255,255,.12); }
.font-ctrl button:hover { background: var(--gold); color: var(--blue-900); }
.font-ctrl button.active { background: var(--blue-900); color: var(--gold); }
.nav.dark .font-ctrl button.active { background: var(--gold); color: var(--blue-900); }
.font-ctrl button span.sm { font-size: 10px; }
.font-ctrl button span.md { font-size: 13px; }
.font-ctrl button span.lg { font-size: 16px; }

.drawer-font-ctrl {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 14px;
}
.drawer-font-ctrl button {
  flex: 1;
  padding: 14px 0;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ivory);
  background: transparent;
  border-right: 1px solid rgba(255,255,255,.12);
  transition: background .25s;
}
.drawer-font-ctrl button:last-child { border-right: none; }
.drawer-font-ctrl button:hover { background: rgba(255,255,255,.08); }
.drawer-font-ctrl button.active { background: var(--gold); color: var(--blue-900); }

/* --- COMMAND PALETTE --- */
.palette {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 15vh 20px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.palette.open { opacity: 1; pointer-events: auto; }
.palette::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10,31,61,.85);
  backdrop-filter: blur(10px);
}
.palette-box {
  position: relative;
  width: min(640px, 100%);
  background: var(--paper);
  border-radius: 6px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.5);
  transform: scale(.96);
  transition: transform .3s cubic-bezier(.2,.9,.2,1);
  border-top: 3px solid var(--gold);
  overflow: hidden;
}
.palette.open .palette-box { transform: scale(1); }
.palette-input-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-soft);
}
.palette-input-wrap svg { width: 20px; height: 20px; color: var(--ink-mute); flex-shrink: 0; }
.palette-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink);
  outline: none;
}
.palette-input::placeholder { color: var(--ink-mute); }
.palette-kbd {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink-mute);
  letter-spacing: .05em;
}
.palette-list {
  max-height: 50vh;
  overflow-y: auto;
  list-style: none;
  padding: 8px 0;
}
.palette-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  cursor: pointer;
  transition: background .15s;
}
.palette-item.active,
.palette-item:hover { background: var(--cream); }
.palette-item .pal-kind {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  width: 88px;
  flex-shrink: 0;
}
.palette-item.active .pal-kind { color: var(--gold); }
.palette-item .pal-title {
  flex: 1;
  font-size: 15px;
  color: var(--blue-900);
  font-weight: 500;
}
.palette-item .pal-arrow {
  opacity: 0;
  color: var(--gold);
  transition: opacity .15s, transform .15s;
}
.palette-item.active .pal-arrow { opacity: 1; transform: translateX(2px); }
.palette-empty {
  padding: 40px 22px;
  text-align: center;
  color: var(--ink-mute);
  font-size: 14px;
}
.palette-foot {
  padding: 10px 22px;
  border-top: 1px solid var(--line-soft);
  background: var(--cream);
  font-size: 11.5px;
  color: var(--ink-mute);
  display: flex;
  gap: 20px;
  align-items: center;
  font-family: var(--mono);
  letter-spacing: .08em;
}
.palette-foot .palette-kbd { font-size: 10px; }

/* --- PLAIN-LANGUAGE CALLOUT in modal --- */
.plain-lang {
  background: linear-gradient(135deg, rgba(117,170,219,.18) 0%, rgba(117,170,219,.08) 100%);
  border-left: 4px solid var(--gold);
  padding: 18px 22px;
  margin: 0 0 24px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: var(--blue-900);
  border-radius: 0 3px 3px 0;
}
.plain-lang::before {
  content: "EN POCAS PALABRAS";
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}

/* --- ANCHOR COPY on section titles --- */
.title-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.anchor-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-top: 14px;
  color: var(--ink-mute);
  opacity: 0;
  border-radius: 50%;
  transition: opacity .25s, background .25s, color .25s, transform .25s;
  flex-shrink: 0;
}
.section-head:hover .anchor-copy,
.anchor-copy:focus-visible { opacity: 1; }
.anchor-copy:hover { background: var(--cream); color: var(--gold); transform: scale(1.1); }
.anchor-copy svg { width: 18px; height: 18px; }
.section-head.light .anchor-copy { color: var(--celeste-soft); }
.section-head.light .anchor-copy:hover { background: rgba(255,255,255,.08); color: var(--gold-bright); }
.anchor-copy.copied { background: var(--gold); color: var(--blue-900); opacity: 1; }

/* --- READING TIME --- */
.read-time {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--ink-mute);
  margin-left: 16px;
  padding: 3px 9px;
  border-left: 1px solid var(--line);
}
.section-head.light .read-time { color: var(--celeste-soft); border-left-color: rgba(255,255,255,.18); }

/* --- CONTENT VISIBILITY (perf) --- */
.section:not(.hero):not(.section-close) {
  content-visibility: auto;
  contain-intrinsic-size: 0 1000px;
}

/* --- BODY SCROLL LOCK --- */
body.no-scroll {
  overflow: hidden;
}

/* --- TOUCH TARGETS --- */
@media (max-width: 860px) {
  .chip { padding: 12px 18px; }
  .btn { padding: 16px 22px; min-height: 48px; }
  .close-detail { width: 44px; height: 44px; }
  .drawer-close { width: 44px; height: 44px; }
  .mobile-cta { display: block; }
  /* Padding for the sticky CTA so last content isn't covered */
  .section-close { padding-bottom: 160px; }
}

/* --- FLUID TYPOGRAPHY --- */
body {
  font-size: clamp(15.5px, 0.88rem + 0.35vw, 17.5px);
}
.benefit p,
.ai-card p,
.comp-cell,
.intl-row,
.tl-card p,
.tier-headline p,
.impl-text,
.sec-body {
  font-size: clamp(14.5px, 0.88rem + 0.25vw, 16px);
  line-height: 1.65;
}
.close-para {
  font-size: clamp(16px, 0.95rem + 0.4vw, 19px);
}
.close-para.muted {
  font-size: clamp(14.5px, 0.88rem + 0.3vw, 17px);
}
.tl-card h3,
.ai-card h3,
.benefit h4 {
  font-size: clamp(20px, 1.1rem + 0.4vw, 24px);
}

/* ============================================================ */

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none; }
  .ai-wave span, .ai-node, .ai-circuit circle, .ai-lock,
  .scroll-hint .arrow { animation: none; }
  .hero-author { transform: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero-title .line, .hero-lead, .stat { opacity: 1 !important; transform: none !important; }
}
