:root {
  --paper: #F2EAD2;
  --ink: #16140D;
  --ink-soft: rgba(22, 20, 13, 0.55);
  --ink-faint: rgba(22, 20, 13, 0.12);
  --accent: #D33A24;

  --serif: "Playfair Display", Georgia, serif;
  --book: "Newsreader", Georgia, serif;
  --grotesque: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: 22px;
  --maxw: 480px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: #0e0d0a;
  color: var(--ink);
  font-family: var(--book);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* === device column === */
.stage {
  background: #0e0d0a;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}
.device {
  width: 100%;
  max-width: var(--maxw);
  background: var(--paper);
  min-height: 100vh;
  position: relative;
  /* overflow-x: hidden; */
  box-shadow: 0 0 90px rgba(0,0,0,0.5);
}

/* === shared label === */
.label {
  font-family: var(--grotesque);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.label--ink { color: var(--ink); }

.rule { height: 1px; background: var(--ink); border: 0; margin: 0; opacity: 0.85; }
.rule--faint { background: var(--ink-faint); opacity: 1; }

a { color: inherit; }

/* === navbar (fixed) === */
.navbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -102%);
  visibility: hidden;
  transition: transform 0.45s cubic-bezier(.16,.84,.34,1), visibility 0s linear 0.45s;
  width: 100%;
  max-width: var(--maxw);
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 48px;
  padding: 0 var(--gutter);
}
.navbar__logo {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.navbar__links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3.5vw, 28px);
}
.navbar--visible {
  transform: translate(-50%, 0);
  visibility: visible;
  transition: transform 0.45s cubic-bezier(.16,.84,.34,1);
}
.nav-link {
  font-family: var(--grotesque);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover { color: var(--accent); }
.topbar-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
}
.masthead__links {
  display: flex;
  gap: clamp(16px, 1.8vw, 32px);
  padding-top: 3px;
}
#inicio, #modelo, #empresas, #impacto, #manifiesto { scroll-margin-top: 48px; }

/* === entrance: clip-reveal lines === */
.reveal-line { display: block; overflow: hidden; padding-bottom: 0.16em; margin-bottom: -0.16em; }
.reveal-line > span {
  display: block;
  transform: translateY(120%);
  transition: transform 0.9s cubic-bezier(.16,.84,.34,1);
}
.in .reveal-line > span { transform: translateY(0); }
.in .reveal-line:nth-child(1) > span { transition-delay: 0.05s; }
.in .reveal-line:nth-child(2) > span { transition-delay: 0.13s; }
.in .reveal-line:nth-child(3) > span { transition-delay: 0.21s; }
.in .reveal-line:nth-child(4) > span { transition-delay: 0.29s; }
.in .reveal-line:nth-child(5) > span { transition-delay: 0.37s; }

.fade-up { opacity: 1; transform: none; }
header .fade-up { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s cubic-bezier(.16,.84,.34,1); }
.in header .fade-up { opacity: 1; transform: none; }
.in header .fade-up.d1 { transition-delay: .12s; }
.in header .fade-up.d2 { transition-delay: .22s; }
.in header .fade-up.d3 { transition-delay: .32s; }

/* sections also get fade-up entrance */
.reveal .fade-up { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s cubic-bezier(.16,.84,.34,1); }
.reveal.in .fade-up { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal-line > span { transform: none !important; transition: none !important; }
  .fade-up { opacity: 1 !important; transform: none !important; transition: none !important; }
  .navbar { transition: none !important; }
}

/* === marquee === */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}
.marquee__track {
  display: inline-flex;
  flex-shrink: 0;
  animation: scrollx 22s linear infinite;
  will-change: transform;
}
@keyframes scrollx { to { transform: translateX(-50%); } }

::selection { background: var(--accent); color: var(--paper); }

.accent { color: var(--accent); }
.italic { font-style: italic; }

/* === scroll cue arrow === */
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* === responsive show/hide === */
.mobile-only { display: block; }
.desktop-only { display: none; }

/* === wordmark === */
.wordmark {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.wordmark__logo {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 0.01em;
  line-height: 1;
}

/* === scroll cue === */
.scroll-cue {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--grotesque);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.scroll-cue__line {
  display: inline-block;
  width: 26px;
  height: 1px;
  background: currentColor;
}
.scroll-cue__arrow { animation: nudge 1.6s ease-in-out infinite; }

/* === masthead (desktop) === */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 36px var(--gutter) 22px;
  gap: 40px;
}
.masthead__logo {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(28px, 2.4vw, 40px);
  letter-spacing: 0.005em;
  line-height: 1;
}
.masthead__nav {
  display: flex;
  gap: clamp(28px, 3.4vw, 64px);
  align-items: flex-start;
}
.masthead__nav-item { max-width: 210px; }
.masthead__nav-label {
  margin-bottom: 7px;
}
.masthead__nav-text {
  font-family: var(--book);
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.35;
}
.masthead__cta {
  font-family: var(--grotesque);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  padding: 12px 18px;
  display: inline-flex;
  gap: 8px;
  white-space: nowrap;
}

/* === hero stacked === */
.hero-stacked__mobile { padding: 26px var(--gutter) 30px; }
.hero-stacked__mobile h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.022em;
  font-size: clamp(44px, 14.2vw, 76px);
}
.hero-stacked__mobile .hero-sub {
  margin: 0;
  max-width: 20ch;
  font-family: var(--book);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.28;
  letter-spacing: 0.005em;
}

.hero-stacked__desktop { padding: clamp(36px, 5vh, 70px) var(--gutter) 30px; }
.hero-stacked__desktop h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.025em;
  font-size: clamp(64px, 9vw, 152px);
}
.hero-stacked__desktop .hero-bottom {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-stacked__desktop .hero-sub {
  margin: 0;
  max-width: 26ch;
  text-align: right;
  margin-left: auto;
  font-family: var(--book);
  font-weight: 400;
  font-size: clamp(20px, 1.7vw, 28px);
  line-height: 1.3;
}

/* === hero kinetic === */
.hero-kinetic__mobile { padding-top: 26px; }
.hero-kinetic__mobile h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.02em;
  font-size: clamp(40px, 13vw, 62px);
}
.hero-kinetic__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.hero-kinetic__donde {
  margin: 0;
  text-align: center;
  font-family: var(--serif);
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-kinetic__donde-mobile { font-size: clamp(74px, 27vw, 150px); }
.hero-kinetic__donde-desktop { font-size: clamp(150px, 30vw, 440px); letter-spacing: -0.03em; }

.hero-kinetic__desktop h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.025em;
  font-size: clamp(70px, 10vw, 168px);
}

/* === hero overflow === */
.hero-overflow__ghost {
  position: absolute;
  right: 0;
  font-family: var(--serif);
  font-weight: 800;
  font-style: italic;
  line-height: 0.8;
  pointer-events: none;
  white-space: nowrap;
}
.hero-overflow__ghost--mobile {
  top: 150px;
  left: -14px;
  font-size: clamp(120px, 42vw, 240px);
  color: rgba(22,20,13,0.05);
}
.hero-overflow__ghost--desktop {
  top: 32%;
  left: -1.5%;
  font-size: 32vw;
  color: rgba(22,20,13,0.045);
}
.hero-overflow__donde {
  display: block;
  white-space: nowrap;
  font-family: var(--serif);
  font-weight: 900;
  font-style: italic;
  color: var(--accent);
}
.hero-overflow__donde--mobile {
  margin-left: var(--gutter);
  margin-right: -18%;
  font-size: clamp(96px, 36vw, 200px);
  line-height: 0.86;
  letter-spacing: -0.03em;
}
.hero-overflow__donde--desktop {
  margin-left: var(--gutter);
  margin-right: -12%;
  font-size: clamp(180px, 30vw, 440px);
  line-height: 0.84;
  letter-spacing: -0.035em;
}

/* === band === */
.band {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 12px 0;
}
.band__track {
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
  font-size: 26px;
  letter-spacing: -0.01em;
}
.band--accent {
  background: var(--accent);
  color: var(--paper);
}

/* === how it works === */
.how-it-works__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.how-it-works__title--mobile {
  font-size: clamp(34px, 11vw, 52px);
  line-height: 1.0;
  margin-bottom: 8px;
}
.how-it-works__title--desktop {
  font-size: clamp(44px, 5.4vw, 100px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: clamp(40px, 6vh, 72px);
  max-width: 16ch;
}
.step__number {
  font-family: var(--serif);
  font-weight: 800;
  color: var(--accent);
}
.step__title {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.step__desc {
  margin: 0;
  font-family: var(--book);
  font-weight: 400;
  color: rgba(22,20,13,0.72);
}

/* mobile steps */
.steps-mobile .step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 18px;
  padding: 22px 0;
}
.steps-mobile .step__number { font-size: 44px; line-height: 0.8; }
.steps-mobile .step__title { margin: 2px 0 8px; font-size: 27px; line-height: 1.04; }
.steps-mobile .step__desc { font-size: 17px; line-height: 1.42; }

/* desktop steps */
.steps-desktop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.steps-desktop .step {
  padding: clamp(34px, 4vh, 56px) clamp(22px, 2.6vw, 48px) clamp(44px, 6vh, 72px);
}
.steps-desktop .step + .step { border-left: 2px solid var(--ink); }
.steps-desktop .step__number {
  display: block;
  font-size: clamp(60px, 6vw, 120px);
  line-height: 0.8;
  margin-bottom: clamp(20px, 3vh, 40px);
}
.steps-desktop .step__title {
  margin: 0 0 14px;
  font-size: clamp(26px, 2.1vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.steps-desktop .step__desc {
  font-size: clamp(16px, 1.15vw, 20px);
  line-height: 1.45;
  color: rgba(22,20,13,0.7);
  max-width: 34ch;
}

/* === companies === */
.companies__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 0.9;
}
.companies__title--mobile {
  font-size: 27px;
  line-height: 1.04;
  margin-bottom: 10px;
}
.companies__title--desktop {
  font-size: clamp(26px, 2.1vw, 40px);
  line-height: 1.02;
  margin-bottom: 14px;
}
.companies__desc {
  margin: 0;
  font-family: var(--book);
  font-weight: 400;
  color: rgba(22, 20, 13, 0.72);
}
.companies__desc--mobile {
  font-size: 17px;
  line-height: 1.42;
}
.companies__desc--desktop {
  font-size: clamp(16px, 1.15vw, 20px);
  line-height: 1.45;
  max-width: 40ch;
}
.company-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px var(--gutter);
}
.company-row__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 9vw, 40px);
  line-height: 1;
  letter-spacing: -0.02em;
  flex: 1;
}
.company-row__cat { flex-shrink: 0; }
.company-row__state {
  flex-shrink: 0;
  font-family: var(--grotesque);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: right;
}
.company-row__state--active { color: var(--accent); }
.company-row__state--upcoming { color: var(--ink-soft); }
.company-row__state--pilot { color: var(--ink); }
.company-row--muted { color: var(--ink-soft); }

/* === impact === */
.impact {
  padding: 52px var(--gutter) 44px;
  background: var(--ink);
  color: var(--paper);
}
.impact__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.impact__header .label { color: rgba(242,234,210,0.6); }
.impact__stat-big {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.impact__stat-big--mobile { font-size: clamp(58px, 21vw, 104px); line-height: 0.92; }
.impact__stat-big--desktop { font-size: clamp(72px, 9vw, 180px); line-height: 0.9; letter-spacing: -0.035em; }
.impact__stat-sub {
  font-family: var(--book);
  font-weight: 400;
  color: rgba(242,234,210,0.8);
}
.impact__stat-sub--mobile { margin-top: 6px; font-size: 18px; }
.impact__stat-sub--desktop { margin-top: 12px; font-size: clamp(18px, 1.4vw, 24px); color: rgba(242,234,210,0.82); }
.impact__note {
  margin: 20px 0 0;
  font-family: var(--grotesque);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(242,234,210,0.45);
  text-transform: uppercase;
}

.impact--desktop {
  padding: clamp(70px, 9vh, 130px) var(--gutter) clamp(60px, 7vh, 100px);
}
.impact--desktop .impact__header { margin-bottom: clamp(40px, 6vh, 72px); }
.impact--desktop .stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(40px, 5vh, 80px) clamp(40px, 5vw, 100px);
}
.impact--desktop .stat { border-top: 2px solid rgba(242,234,210,0.22); padding-top: clamp(16px, 2vh, 28px); }
.impact--desktop .impact__note { margin-top: clamp(40px, 5vh, 64px); font-size: 12px; }

.impact--mobile .stat {
  padding: 22px 0;
  border-bottom: 1px solid rgba(242,234,210,0.16);
}
.impact--mobile .stat:last-child { border-bottom: none; }

/* === manifesto === */
.manifesto__text {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
}
.manifesto__text--mobile {
  font-size: clamp(27px, 8.4vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.015em;
}
.manifesto__text--desktop {
  font-size: clamp(34px, 3.6vw, 68px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 20ch;
}

/* === footer === */
.footer { border-top: 1px solid var(--ink); }
.footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  margin-bottom: 30px;
  z-index: 1;
}
.footer__link {
  text-decoration: none;
  font-family: var(--book);
  font-size: 19px;
  border-bottom: 1px solid var(--ink-faint);
  padding-bottom: 6px;
}
.footer__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--paper);
  padding: 16px 18px;
  margin-bottom: 26px;
  text-decoration: none;
}
.footer__cta-text { font-family: var(--book); font-size: 18px; flex: 1; }
.footer__cta-arrow { font-family: var(--grotesque); font-weight: 700; font-size: 22px; }
.footer__wordmark {
  margin: 0;
  z-index: 0;
  padding: 0 var(--gutter) 14px;
  font-family: var(--serif);
  font-weight: 800;
  line-height: 0.82;
  font-size: clamp(96px, 33vw, 180px);
  letter-spacing: -0.02em;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding: 0 var(--gutter) 30px;
}

/* desktop footer */
.footer--desktop { border-top: 2px solid var(--ink); }
.footer--desktop .footer__content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: clamp(48px, 6vh, 80px) var(--gutter) clamp(40px, 5vh, 64px);
}
.footer--desktop .footer__links {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px 56px;
  max-width: 620px;
  margin-bottom: 0;
}
.footer--desktop .footer__link { font-size: clamp(18px, 1.5vw, 24px); }
.footer--desktop .footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  margin-bottom: 0;
  white-space: nowrap;
}
.footer--desktop .footer__cta-text { font-size: clamp(18px, 1.5vw, 24px); }
.footer--desktop .footer__cta-arrow { font-size: 26px; }
.footer--desktop .footer__wordmark {
  font-size: clamp(140px, 27vw, 520px);
  line-height: 0.78;
  letter-spacing: -0.03em;
}
.footer--desktop .footer__bottom {
  padding: clamp(18px, 3vh, 34px) var(--gutter) clamp(30px, 4vh, 48px);
}

/* ============ DESKTOP ============ */
@media (min-width: 900px) {
  :root { --gutter: 64px; }
  body { background: var(--paper); }
  .stage { background: var(--paper); display: block; }
  .device { max-width: none; width: 100%; box-shadow: none; min-height: 100vh; }
  .rule { height: 2px; }
  .mobile-only { display: none !important; }
  .desktop-only { display: block !important; }

  .band { padding: 20px 0; }
  .band__track { font-size: clamp(40px, 4vw, 72px); }

  .company-row {
    gap: 28px;
    padding: clamp(20px, 2.6vh, 38px) var(--gutter);
  }
  .company-row__name {
    font-size: clamp(44px, 5.6vw, 104px);
  }
  .company-row__cat { width: 160px; text-align: right; }
  .company-row__state { font-size: 12px; width: 130px; }

  .navbar {
    max-width: none;
    left: 0;
    transform: translateY(-102%);
    height: 56px;
    border-bottom-width: 2px;
  }
  .navbar--visible { transform: translateY(0); }
  .nav-link { font-size: 11px; letter-spacing: 0.14em; }
  #inicio, #modelo, #empresas, #impacto, #manifiesto { scroll-margin-top: 56px; }
}
@media (min-width: 1500px) {
  :root { --gutter: 88px; }
}
