/* ===========================================================
   Contando por Pasos / Counting in Steps — stylesheet
   =========================================================== */

:root{
  --cream: #fdf6e8;
  --cream-alt: #f7efdc;
  --ink: #2f3a3a;
  --ink-soft: #5b6664;
  --teal-dark: #345a66;
  --teal: #4c7f8c;
  --blue: #9dcbe0;
  --blue-deep: #5f9cb8;
  --green: #b7d6a3;
  --green-deep: #7fac72;
  --gold: #f0c85a;
  --gold-deep: #dfa53a;
  --orange: #eda05b;
  --orange-deep: #cf7d3c;
  --coral: #e68a82;
  --coral-deep: #ce6a63;
  --purple: #b79bd0;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 10px 30px -12px rgba(52,90,102,0.25);
  --shadow-card: 0 6px 20px -8px rgba(52,90,102,0.18);
  --maxw: 1180px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.55;
}
h1,h2,h3{
  font-family: var(--font-display);
  color: var(--teal-dark);
  margin: 0;
  line-height: 1.1;
}
p{ margin: 0; }
a{ color: inherit; }
ul{ margin:0; padding:0; list-style:none; }
img,svg{ display:block; max-width:100%; }
button{ font-family: inherit; cursor: pointer; }

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- background blobs ---------- */
.bg-blobs{
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob{
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}
.b1{ width: 520px; height: 520px; background: var(--blue); top: -180px; left: -160px; will-change: transform; }
.b2{ width: 460px; height: 460px; background: var(--green); top: 200px; right: -200px; will-change: transform; }
.b3{ width: 420px; height: 420px; background: var(--gold); bottom: -160px; left: 10%; will-change: transform; }
.b4{ width: 380px; height: 380px; background: var(--coral); bottom: 20%; right: -140px; will-change: transform; }

/* subtle film-grain texture, purely decorative */
.grain-overlay{
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* confetti burst particles, spawned by JS on delightful toggles */
.confetti-particle{
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  border-radius: 3px;
  pointer-events: none;
  z-index: 600;
  animation: confettiPop 700ms ease-out forwards;
}
@keyframes confettiPop{
  0%{ transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
  100%{ transform: translate(var(--tx), var(--ty)) rotate(var(--r)) scale(0.4); opacity: 0; }
}

/* ---------- header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253,246,232,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(52,90,102,0.1);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--teal-dark);
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark{ font-size: 1.4rem; }

.main-nav{
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.main-nav a{
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 2px;
  transition: color .2s;
}
.main-nav a:hover{ color: var(--teal-dark); }
.main-nav a::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--orange-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.main-nav a:hover::after{ transform: scaleX(1); }

.header-actions{ display: flex; align-items: center; gap: 14px; }

.lang-switch{
  display: flex;
  background: #fff;
  border: 1.5px solid rgba(52,90,102,0.18);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-btn{
  display: flex;
  align-items: center;
  gap: 7px;
  border: none;
  background: transparent;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  transition: all .2s;
}
.lang-btn.is-active{
  background: var(--teal-dark);
  color: #fff;
}
.flag{
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
  flex-shrink: 0;
  display: block;
}

.hamburger{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span{
  width: 24px; height: 2.5px;
  background: var(--teal-dark);
  border-radius: 2px;
  transition: all .25s;
}
.hamburger.is-open span:nth-child(1){ transform: translateY(7.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2){ opacity: 0; }
.hamburger.is-open span:nth-child(3){ transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero{
  position: relative;
  padding: 90px 0 60px;
  text-align: center;
}
.eyebrow{
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--orange-deep);
  margin-bottom: 14px;
}
.hero-inner{ display:flex; flex-direction:column; align-items:center; }
.hero-title{
  font-size: clamp(3rem, 8vw, 5.6rem);
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 22px;
}
.hero-title .accent{
  color: var(--coral-deep);
  background: linear-gradient(90deg, var(--coral-deep), var(--gold-deep), var(--orange-deep), var(--coral-deep));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 7s ease-in-out infinite;
}
@keyframes gradientShift{
  0%, 100%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
}
.hero-subtitle{
  max-width: 620px;
  font-size: 1.2rem;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 28px;
}
.badge-row{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}
.badge{
  background: #fff;
  border: 1.5px solid rgba(52,90,102,0.15);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: var(--shadow-card);
}
.cta-row{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{
  background: var(--teal-dark);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(52,90,102,0.55);
}
.btn-primary:hover{ box-shadow: 0 14px 28px -8px rgba(52,90,102,0.6); }
.btn-ghost{
  background: #fff;
  color: var(--teal-dark);
  border: 2px solid var(--teal-dark);
}
.hero-author{
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 46px;
}

.counting-strip{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.chip{
  width: 54px; height: 54px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  box-shadow: var(--shadow-card);
  animation: chipWave 3.2s ease-in-out infinite;
  transform-origin: center;
}
.chip-1{ background: var(--blue-deep); animation-delay: 0s; }
.chip-2{ background: var(--green-deep); animation-delay: .3s; }
.chip-3{ background: var(--gold-deep); animation-delay: .6s; }
.chip-4{ background: var(--orange-deep); animation-delay: .9s; }
.chip-5{ background: var(--coral-deep); animation-delay: 1.2s; }
@keyframes chipWave{
  0%, 22%, 100%{ transform: translateY(0) scale(1); box-shadow: var(--shadow-card); }
  8%{ transform: translateY(-12px) scale(1.12); box-shadow: 0 16px 26px -10px rgba(52,90,102,0.4); }
}

.arrow{ width: 30px; height: 18px; color: var(--ink-soft); opacity: 0.85; }
.arrow path{
  stroke-dasharray: 70;
  stroke-dashoffset: 70;
  animation: arrowDraw 3.2s ease-in-out infinite;
}
.arrow-1 path{ animation-delay: .2s; }
.arrow-2 path{ animation-delay: .5s; }
.arrow-3 path{ animation-delay: .8s; }
.arrow-4 path{ animation-delay: 1.1s; }
@keyframes arrowDraw{
  0%, 15%{ stroke-dashoffset: 70; opacity: .4; }
  30%, 85%{ stroke-dashoffset: 0; opacity: 1; }
  100%{ stroke-dashoffset: 0; opacity: .4; }
}

@keyframes bob{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-8px); }
}

.scroll-cue{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 30px auto 0;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.8rem;
  animation: bob 2.4s ease-in-out infinite;
}

/* ---------- sections ---------- */
.section{ padding: 100px 0; }
.section.alt{ background: var(--cream-alt); }
.section-title{
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 780px;
  margin-bottom: 18px;
}
.section-text{
  font-size: 1.08rem;
  color: var(--ink-soft);
  font-weight: 600;
  max-width: 680px;
  margin-bottom: 48px;
}
.section-text.center{ margin-left: auto; margin-right: auto; text-align: center; }
.foundation .section-title, .foundation .eyebrow{ text-align:center; width:100%; }

/* reveal animation — visible by default; JS opts elements into the
   pre-reveal (hidden) state right before observing them, so content
   never gets stuck invisible if JS/IntersectionObserver doesn't run. */
.reveal{
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.pre-reveal:not(.stagger-reveal){
  opacity: 0;
  transform: translateY(24px);
}
.reveal.is-visible:not(.stagger-reveal){
  opacity: 1;
  transform: translateY(0);
}

/* stagger-reveal containers: the container itself stays put; its
   children fade/rise in one after another via the --i index JS assigns. */
.stagger-reveal .info-card,
.stagger-reveal .mechanic-step,
.stagger-reveal .variant-card,
.stagger-reveal .brain-node,
.stagger-reveal .matrix-cell,
.stagger-reveal .pillar,
.stagger-reveal .ladder-step{
  transition: opacity .8s cubic-bezier(0.16, 1, 0.3, 1), transform .8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 160ms);
}
.stagger-reveal.pre-reveal .info-card,
.stagger-reveal.pre-reveal .mechanic-step,
.stagger-reveal.pre-reveal .variant-card,
.stagger-reveal.pre-reveal .brain-node,
.stagger-reveal.pre-reveal .matrix-cell,
.stagger-reveal.pre-reveal .pillar,
.stagger-reveal.pre-reveal .ladder-step{
  opacity: 0;
  transform: translateY(36px);
}
.stagger-reveal.is-visible .info-card,
.stagger-reveal.is-visible .mechanic-step,
.stagger-reveal.is-visible .variant-card,
.stagger-reveal.is-visible .brain-node,
.stagger-reveal.is-visible .matrix-cell,
.stagger-reveal.is-visible .pillar,
.stagger-reveal.is-visible .ladder-step{
  opacity: 1;
  transform: translateY(0);
}

/* ---------- info cards (about) ---------- */
.card-grid{
  display: grid;
  gap: 24px;
}
.card-grid.three{ grid-template-columns: repeat(3, 1fr); }
.info-card{
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform .25s, box-shadow .25s;
}
.info-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.info-icon{
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.icon-blue{ background: var(--blue); color: var(--blue-deep); }
.icon-green{ background: var(--green); color: var(--green-deep); }
.icon-orange{ background: var(--orange); color: var(--orange-deep); }
.info-card h3{ font-size: 1.15rem; margin-bottom: 8px; }
.info-card p{ color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; }

/* ---------- mechanic ---------- */
.mechanic-wrap{
  display: flex;
  align-items: center;
  gap: 0;
}
.mechanic-step{
  flex: 1;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
}
.step-num{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal-dark);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.mechanic-step h3{ font-size: 1.05rem; margin-bottom: 6px; }
.mechanic-step p{ color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; }
.mechanic-connector{
  width: 60px; height: 24px;
  flex-shrink: 0;
  color: var(--orange-deep);
}
.stagger-reveal .mechanic-connector{
  transition: opacity .6s ease;
  transition-delay: calc(var(--i, 0) * 160ms);
}
.stagger-reveal.pre-reveal .mechanic-connector{ opacity: 0; }
.stagger-reveal.is-visible .mechanic-connector{ opacity: 1; }

/* ---------- variants ---------- */
.toggle-row{ display: flex; justify-content: center; margin-bottom: 40px; }
.direction-toggle{
  display: inline-flex;
  background: #fff;
  border-radius: 999px;
  padding: 5px;
  box-shadow: var(--shadow-card);
  gap: 4px;
}
.dir-btn{
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: all .2s;
}
.dir-btn.is-active{
  background: var(--teal-dark);
  color: #fff;
}

.variant-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.variant-grid[hidden]{ display: none; }
.variant-card{
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border-top: 6px solid transparent;
  transition: transform .35s ease, box-shadow .35s ease;
  transform-style: preserve-3d;
  perspective: 800px;
  will-change: transform;
  display: flex;
  flex-direction: column;
}
.variant-card:hover{ box-shadow: var(--shadow-soft); }
.v-blue{ border-color: var(--blue-deep); }
.v-green{ border-color: var(--green-deep); }
.v-gold{ border-color: var(--gold-deep); }
.v-coral{ border-color: var(--coral-deep); }

.variant-head{ display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.variant-step{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.v-blue .variant-step{ background: var(--blue-deep); }
.v-green .variant-step{ background: var(--green-deep); }
.v-gold .variant-step{ background: var(--gold-deep); }
.v-coral .variant-step{ background: var(--coral-deep); }
.variant-head h3{ font-size: 1.1rem; }
.variant-text{
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.variant-goal{
  margin-top: auto;
  background: var(--cream-alt);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.goal-label{
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal);
  margin-bottom: 4px;
}
.variant-goal p{ font-weight: 700; font-size: 0.88rem; margin-bottom: 10px; }
.variant-goal ul li{
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding-left: 16px;
  position: relative;
  margin-bottom: 3px;
}
.variant-goal ul li::before{
  content: "•";
  position: absolute;
  left: 2px;
  color: var(--orange-deep);
  font-weight: 900;
}

/* ---------- brain ---------- */
.brain-diagram{
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}
.brain-visual{
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.brain-orbit{ position: absolute; color: rgba(52,90,102,0.25); animation: spin 40s linear infinite; }
@keyframes spin{ to{ transform: rotate(360deg); } }
.brain-caption-text{ font-size: 9px; font-weight: 700; fill: var(--ink-soft); font-family: var(--font-body); }

.brain-node{
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}
.node-badge{
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--teal-dark);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 0 0 0 rgba(52,90,102,0.55);
  animation: signalPulse 4s ease-in-out infinite;
}
.node-1 .node-badge{ animation-delay: 0s; }
.node-2 .node-badge{ animation-delay: 1s; }
.node-3 .node-badge{ animation-delay: 2s; }
.node-4 .node-badge{ animation-delay: 3s; }
@keyframes signalPulse{
  0%, 15%, 100%{ box-shadow: 0 0 0 0 rgba(52,90,102,0.45); transform: scale(1); }
  5%{ box-shadow: 0 0 0 8px rgba(52,90,102,0); transform: scale(1.15); }
}
.brain-node{ transition: transform .25s ease, box-shadow .25s ease; }
.brain-node:hover{ transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.brain-node h3{ font-size: 0.98rem; margin-bottom: 4px; }
.brain-node p{ font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }
.node-1{ grid-column: 1; grid-row: 1; }
.node-2{ grid-column: 1; grid-row: 2; }
.node-3{ grid-column: 3; grid-row: 1; }
.node-4{ grid-column: 3; grid-row: 2; }

/* ---------- matrix ---------- */
.matrix-wrap{
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: 1fr 40px;
  gap: 14px;
  max-width: 900px;
}
.matrix-axis-y{
  grid-column: 1;
  grid-row: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--teal);
}
.matrix-axis-x{
  grid-column: 2;
  grid-row: 2;
  text-align: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--teal);
}
.matrix-grid{
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.matrix-cell{
  padding: 28px;
  transition: transform .25s ease, filter .25s ease;
  position: relative;
}
.matrix-cell:hover{
  transform: scale(1.035);
  filter: brightness(1.06);
  z-index: 2;
}
.matrix-cell h3{ font-size: 1.05rem; margin-bottom: 8px; }
.matrix-cell p{ font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.mc-tl{ background: #dfe6ee; }
.mc-tr{ background: #fbe7d3; }
.mc-bl{ background: #e3edf3; }
.mc-br{ background: #fbf1cf; }

/* ---------- ladder ---------- */
.ladder{
  display: flex;
  align-items: flex-end;
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}
.ladder-step{ flex: 1; display: flex; }
.ladder-block{
  background: #fff;
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
  width: 100%;
  transition: transform .25s;
}
.ladder-block:hover{ transform: translateY(-4px); }
.step-1 .ladder-block{ background: linear-gradient(180deg,#fdf0d3,#f7dfa8); }
.step-2 .ladder-block{ margin-bottom: 40px; background: linear-gradient(180deg,#f8dcae,#f0bd7d); }
.step-3 .ladder-block{ margin-bottom: 80px; background: linear-gradient(180deg,#f0b479,#e6944e); }
.ladder-block h3{ font-size: 1.05rem; margin-bottom: 8px; }
.ladder-block p{ font-size: 0.9rem; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.ladder-note{
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--teal-dark);
  background: rgba(255,255,255,0.55);
  padding: 5px 10px;
  border-radius: 999px;
}
.ladder-direction{
  text-align: right;
  max-width: 980px;
  margin: 20px auto 0;
  font-weight: 800;
  color: var(--orange-deep);
  font-size: 0.95rem;
}

/* ---------- foundation ---------- */
.foundation{ text-align: center; }
.pillars{ margin: 50px auto 30px; max-width: 820px; position: relative; }
.pillar-orb{
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8e6, var(--gold) 70%, var(--gold-deep));
  box-shadow: 0 0 0 8px rgba(240,200,90,0.18), var(--shadow-soft);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 30px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--teal-dark);
  font-size: 0.95rem;
  text-align: center;
  padding: 10px;
  animation: floaty 4s ease-in-out infinite;
}
@keyframes floaty{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-10px); }
}
.pillar-row{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}
.pillar{
  background: #fff;
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.pillar h3{ font-size: 1rem; margin-bottom: 4px; }
.pillar p{ font-size: 0.88rem; color: var(--ink-soft); font-weight: 700; }
.based-on{
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  font-style: italic;
}

.sources{ max-width: 700px; margin: 0 auto; text-align: left; }
.sources-toggle{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1.5px solid rgba(52,90,102,0.2);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--teal-dark);
  margin: 0 auto;
  display: flex;
}
.sources-list{ margin-top: 18px; }
.sources-list li{
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid rgba(52,90,102,0.1);
}
.sources-list a{ color: var(--teal-dark); font-weight: 800; }

/* ---------- footer ---------- */
.site-footer{
  background: var(--teal-dark);
  color: rgba(255,255,255,0.9);
  padding: 40px 0;
  text-align: center;
}
.footer-inner{ display: flex; flex-direction: column; gap: 8px; align-items: center; }
.footer-tagline{ font-weight: 800; }
.footer-rights{ font-size: 0.85rem; opacity: 0.75; }
.footer-top{
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: underline;
  opacity: 0.85;
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 980px){
  .card-grid.three{ grid-template-columns: 1fr; }
  .variant-grid{ grid-template-columns: repeat(2, 1fr); }
  .mechanic-wrap{ flex-direction: column; }
  .mechanic-connector{ width: 24px; height: 50px; transform: rotate(90deg); }
  .brain-diagram{ grid-template-columns: 1fr; grid-template-rows: none; }
  .brain-visual{ grid-column: 1; grid-row: auto; order: -1; margin-bottom: 10px; }
  .node-1,.node-2,.node-3,.node-4{ grid-column: 1; grid-row: auto; }
  .ladder{ flex-direction: column; align-items: stretch; }
  .step-1 .ladder-block, .step-2 .ladder-block, .step-3 .ladder-block{ margin-bottom: 0; }
  .pillar-row{ grid-template-columns: 1fr; }
}

@media (max-width: 760px){
  .main-nav{
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 20px 24px 30px;
    gap: 18px;
    box-shadow: var(--shadow-soft);
    transform: translateY(-140%);
    opacity: 0;
    transition: transform .3s, opacity .3s;
    z-index: 90;
  }
  .main-nav.is-open{ transform: translateY(0); opacity: 1; }
  .hamburger{ display: flex; }
  .lang-switch{ order: 2; }
  .variant-grid{ grid-template-columns: 1fr; }
  .matrix-grid{ grid-template-columns: 1fr; }
  .matrix-wrap{ grid-template-columns: 1fr; }
  .matrix-axis-y{ writing-mode: horizontal-tb; transform:none; }
  .section{ padding: 70px 0; }
  .hero{ padding: 60px 0 40px; }
}

/* ===========================================================
   Reduced motion — every animation/transition above is capped
   to near-zero for users who have asked their OS/browser for it.
   =========================================================== */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .grain-overlay{ display: none; }
}
