/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --dim: #86868b;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-bright: #2997ff;
  --yellow: #ffd60a;
  --green: #30d158;
  --black: #000000;
  --dark-card: #1d1d1f;
  --dark-text: #f5f5f7;
  --dark-muted: #a1a1a6;
  --grad: linear-gradient(90deg, #2997ff 0%, #30d158 55%, #ffd60a 100%);
  --radius: 28px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1120px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; letter-spacing: inherit; }
::selection { background: rgba(0,113,227,.2); }

/* Language switching: content is authored in both languages */
html[data-lang="en"] [lang="es"],
html[data-lang="es"] [lang="en"] { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { display: inline-block; font-size: 17px; font-weight: 600; color: var(--muted); letter-spacing: -.01em; }
.section { padding: clamp(96px, 15vh, 160px) 0; position: relative; }
.alt { background: var(--bg-alt); }
.dark { background: var(--black); color: var(--dark-text); }
.dark .eyebrow { color: var(--dark-muted); }
.h-xl { font-size: clamp(44px, 6vw, 80px); line-height: 1.04; letter-spacing: -.04em; font-weight: 700; }
.h-l { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.06; letter-spacing: -.035em; font-weight: 700; }
.h-m { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.12; letter-spacing: -.028em; font-weight: 700; }
.lead { font-size: clamp(19px, 1.7vw, 24px); color: var(--muted); max-width: 680px; line-height: 1.45; font-weight: 500; letter-spacing: -.015em; }
.dark .lead { color: var(--dark-muted); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }

/* ---------- Nav ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter); color: var(--dark-text);
  transition: background .4s, color .4s, border-color .4s; border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(251,251,253,.8); color: var(--ink); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom-color: rgba(0,0,0,.08); }
.nav.on-dark { background: rgba(22,22,23,.8); color: var(--dark-text); border-bottom-color: rgba(255,255,255,.08); }
.brand { font-weight: 600; text-decoration: none; font-size: 17px; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 28px; font-size: 13px; opacity: .85; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { opacity: .65; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; gap: 2px; font-size: 12px; font-weight: 600; }
.lang button { padding: 5px 9px; border-radius: 99px; opacity: .55; }
.lang button[aria-pressed="true"] { opacity: 1; background: rgba(128,128,128,.22); }
.nav-cta { font-size: 13px; font-weight: 500; text-decoration: none; padding: 6px 14px; border-radius: 99px; background: var(--blue); color: #fff; }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 480px) { .nav-cta { display: none; } }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; position: relative; overflow: hidden; background: var(--black); color: var(--dark-text); padding: 110px 0 90px; }
#flow { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 115%, rgba(41,151,255,.16), transparent 60%), linear-gradient(180deg, transparent 65%, #000);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; }
.avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.hero-meta p { font-size: 15px; line-height: 1.35; color: var(--dark-muted); }
.hero-meta strong { display: block; font-weight: 600; color: var(--dark-text); font-size: 17px; }
.hero .lead { margin-top: 30px; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; font-size: 12px; color: var(--dark-muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(var(--blue-bright), transparent); animation: drip 2s infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Statement ---------- */
.statement p { font-size: clamp(28px, 3.4vw, 48px); line-height: 1.14; letter-spacing: -.03em; font-weight: 700; max-width: 960px; }
.statement .word { color: #3a3a3c; transition: color .35s; }
.statement .word.lit { color: var(--dark-text); }
.statement .word.lit.hl { background: var(--grad); background-attachment: fixed; -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Acts ---------- */
.acts-head { margin-bottom: 64px; max-width: 820px; }
.acts-head .h-l { margin: 12px 0 20px; }
.prologue { color: var(--muted); font-size: 17px; }
.prologue strong { color: var(--ink); font-weight: 600; }
.acts { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); }
.acts-sticky { position: sticky; top: 100px; align-self: start; height: calc(100svh - 150px); display: flex; flex-direction: column; justify-content: space-between; }
.year { font-size: clamp(88px, 10vw, 150px); font-weight: 700; letter-spacing: -.06em; line-height: .85; font-variant-numeric: tabular-nums; }
.year small { display: block; font-size: 17px; letter-spacing: -.01em; font-weight: 600; color: var(--blue); margin-bottom: 16px; }
.curve-box svg { width: 100%; height: auto; overflow: visible; }
.curve-base { fill: none; stroke: var(--line); stroke-width: 2; }
.curve-live { fill: none; stroke: url(#cg); stroke-width: 3; stroke-linecap: round; }
.curve-area { fill: url(#ca); }
.curve-dot { fill: #fff; stroke: var(--blue); stroke-width: 3; }
.curve-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); margin-top: 10px; }
.curve-labels span.on { color: var(--ink); font-weight: 600; }
.act { min-height: 80svh; padding: 8vh 0; display: flex; flex-direction: column; justify-content: center; }
.act + .act { border-top: 1px solid var(--line); }
.act .tag { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.act .tag b { color: var(--ink); font-weight: 600; }
.act h3 { margin-bottom: 20px; }
.act .body { color: var(--muted); font-size: 19px; max-width: 580px; }
.act .body strong { color: var(--ink); font-weight: 600; }
.lesson { margin-top: 28px; padding: 22px 24px; border-radius: 20px; background: var(--bg-alt); max-width: 580px; }
.lesson small { display: block; font-size: 13px; font-weight: 600; color: var(--blue); margin-bottom: 6px; }
.lesson p { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.4; color: var(--muted); letter-spacing: -.015em; }
.lesson p b { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) {
  .acts { grid-template-columns: 1fr; }
  .acts-sticky {
    position: sticky; top: 52px; z-index: 5; height: auto; flex-direction: row; align-items: center; gap: 18px;
    background: rgba(255,255,255,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    margin: 0 calc(var(--gutter) * -1); padding: 12px var(--gutter); border-bottom: 1px solid rgba(0,0,0,.08);
  }
  .year { font-size: 50px; flex-shrink: 0; }
  .year small { font-size: 12px; margin-bottom: 6px; }
  .curve-box { flex: 1; min-width: 0; }
  .curve-labels { display: none; }
  .act { min-height: auto; padding: 60px 0; }
}

/* ---------- Inside the teams ---------- */
.inside-head { max-width: 860px; }
.inside-head .h-l { margin: 12px 0 22px; }
.inside { display: grid; grid-template-columns: 8fr 4fr; gap: 16px; margin-top: 56px; }
.inside-main, .inside-side { border-radius: var(--radius); background: var(--bg); padding: clamp(18px, 3vw, 34px); display: flex; flex-direction: column; }
.inside-main svg, .inside-side svg { width: 100%; height: auto; display: block; }
.inside-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.inside-cap b { font-size: 21px; letter-spacing: -.02em; }
.inside-cap span { font-size: 14px; color: var(--muted); }
.inside-side { background: #fbfbfd; border: 1px solid var(--line); }
.inside-side .tagline { font-size: 13px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.inside-side b { display: block; font-size: 19px; margin: 6px 0 6px; color: var(--muted); }
.inside-side p { font-size: 15px; color: var(--dim); margin-top: auto; }
.inside-side svg { opacity: .9; margin: 10px auto 14px; max-width: 240px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.legend > span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { display: inline-block; border-radius: 50%; }
.lg-me { width: 14px; height: 14px; background: linear-gradient(135deg, #2997ff, #30d158); }
.lg-team { width: 10px; height: 10px; background: #c7c7cc; }
.lg-info { width: 6px; height: 6px; background: #2997ff; }
.inside-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.inside-points div { background: var(--bg); border-radius: 22px; padding: 26px 24px; }
.inside-points b { display: block; font-size: 21px; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 8px; }
.inside-points p { color: var(--muted); font-size: 16px; }
.team-node { fill: #c7c7cc; }
.team-node.glow { fill: var(--blue-bright); }
.team-edge { stroke: #d2d2d7; stroke-width: 1.4; }
.team-edge.cross { stroke-dasharray: 3 5; }
.team-label { font-size: 12px; fill: var(--dim); font-family: var(--sans); }
.me-node { fill: url(#meGrad); }
.me-label { font-size: 13px; font-weight: 600; fill: var(--ink); font-family: var(--sans); }
.me-halo { fill: rgba(41,151,255,.12); }
@media (max-width: 900px) {
  .inside { grid-template-columns: 1fr; }
  .inside-points { grid-template-columns: 1fr; }
}

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.principle {
  position: relative; border-radius: var(--radius); padding: 30px 28px 76px; min-height: 280px;
  background: var(--bg-alt); text-align: left; display: flex; flex-direction: column; transition: transform .35s cubic-bezier(.2,.7,.2,1), background .35s;
}
.principle:hover { transform: scale(1.012); }
.principle .idx { font-size: 14px; font-weight: 600; color: var(--blue); }
.principle h3 { font-size: 28px; letter-spacing: -.03em; line-height: 1.1; margin: 12px 0 12px; font-weight: 700; }
.principle .front { color: var(--muted); font-size: 17px; }
.principle .back { font-size: 17px; line-height: 1.5; color: var(--ink); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s, opacity .5s, margin .5s; }
.principle .plus {
  position: absolute; right: 22px; bottom: 22px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center; transition: transform .4s cubic-bezier(.2,.7,.2,1), background .3s;
}
.principle .plus svg { width: 14px; height: 14px; }
.principle[aria-expanded="true"] { background: #fff; box-shadow: 0 0 0 1px var(--line), 0 18px 50px -20px rgba(0,0,0,.25); }
.principle[aria-expanded="true"] .back { max-height: 320px; opacity: 1; margin-top: 16px; }
.principle[aria-expanded="true"] .plus { transform: rotate(45deg); background: var(--blue); }
@media (max-width: 960px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .principles { grid-template-columns: 1fr; } .principle { min-height: 0; } }

/* ---------- Voices ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.chips button { padding: 9px 16px; border-radius: 99px; background: var(--dark-card); color: var(--dark-muted); font-size: 15px; transition: all .25s; }
.chips button:hover { color: var(--dark-text); }
.chips button[aria-pressed="true"] { background: var(--dark-text); color: var(--ink); font-weight: 600; }
.chips button small { opacity: .55; margin-left: 5px; }
.quotes { columns: 3 300px; column-gap: 16px; margin-top: 28px; }
.quote { break-inside: avoid; margin-bottom: 16px; padding: 28px 26px; border-radius: 24px; background: var(--dark-card); transition: opacity .4s, transform .4s, box-shadow .4s; }
.quote p { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.35; font-weight: 600; letter-spacing: -.02em; }
.quote footer { margin-top: 16px; font-size: 13px; color: var(--dark-muted); display: flex; gap: 6px; flex-wrap: wrap; }
.quote footer span { background: #2c2c2e; padding: 3px 10px; border-radius: 99px; }
.quote.dim { opacity: .2; transform: scale(.98); }
.quote.hit { box-shadow: 0 0 0 1.5px var(--blue-bright); }
.voices-note { margin-top: 18px; font-size: 13px; color: #6e6e73; }

/* ---------- Contact ---------- */
.contact { text-align: center; padding-bottom: 56px; }
.contact .h-xl { margin: 14px auto 40px; max-width: 980px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 99px; font-weight: 500; font-size: 17px; text-decoration: none; transition: background .2s, transform .2s; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: #0077ed; }
.btn.link { color: var(--blue); }
.btn.link:hover { text-decoration: underline; }
.btn svg { width: 18px; height: 18px; }
.foot { margin-top: clamp(80px, 14vh, 140px); padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--dim); text-align: left; }
.edu { display: flex; gap: 22px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue i { animation: none; }
}
