/* ========================================================================
   CRISALAB · LANDING v2
   Editorial-cinematográfico · capas técnicas · palabras-manifiesto
   ======================================================================== */
:root {
  /* === BRAND COLORS === */
  --jade: #1E3A30;
  --jade-deep: #14271F;
  --jade-soft: #3D5A4D;

  --amber: #B47B3F;
  --amber-light: #D9B789;
  --amber-glow: #E8C896;

  --bone: #F2EDE3;
  --bone-warm: #E8E0D0;
  --bone-soft: #F7F3EA;

  --ink: #1C1916;
  --ink-soft: #4A4642;
  --ink-mute: #7A7670;

  --line: rgba(28, 25, 22, 0.12);
  --line-soft: rgba(28, 25, 22, 0.06);
  --line-strong: rgba(28, 25, 22, 0.22);

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 9rem;
  --space-8: 12rem;

  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection { background: var(--amber); color: var(--bone); }

/* ========================================================================
   CURSOR DOT
   ======================================================================== */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--amber);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s, transform 0.18s var(--ease-out-quart), width 0.3s var(--ease-out-quart), height 0.3s var(--ease-out-quart), background 0.3s, border 0.3s;
  mix-blend-mode: multiply;
  opacity: 0;
}
.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid var(--amber);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s, width 0.35s var(--ease-out-quart), height 0.35s var(--ease-out-quart);
}

@media (hover: hover) {
  body.cursor-on .cursor-dot { opacity: 1; }
  body.cursor-on .cursor-ring { opacity: 0.4; }
  body.cursor-on { cursor: none; }
  body.cursor-on a, body.cursor-on button, body.cursor-on input, body.cursor-on textarea { cursor: none; }
  body.cursor-on .cursor-dot.hovering { width: 4px; height: 4px; }
  body.cursor-on .cursor-ring.hovering { width: 64px; height: 64px; border-color: var(--jade); }
}

/* ========================================================================
   HEADER
   ======================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s var(--ease-out-quart),
              backdrop-filter 0.4s var(--ease-out-quart),
              border-color 0.4s var(--ease-out-quart),
              padding 0.4s var(--ease-out-quart),
              color 0.4s var(--ease-out-quart);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(242, 237, 227, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
  padding: 0.875rem 2rem;
}

.header.dark-context {
  color: var(--bone);
}
.header.dark-context.scrolled {
  background: rgba(20, 39, 31, 0.78);
  border-bottom-color: rgba(217, 183, 137, 0.12);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  color: inherit;
  text-decoration: none;
}
.header-logo svg {
  width: 18px;
  height: auto;
  color: var(--jade);
  transition: transform 0.6s var(--ease-out-expo), color 0.4s;
}
.header.dark-context .header-logo svg { color: var(--amber-light); }
.header-logo:hover svg { transform: rotate(-4deg) scale(1.05); }

.header-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-status {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header.dark-context .header-status { color: rgba(242, 237, 227, 0.6); }

.header-status .dot {
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.header-cta {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: inherit;
  text-decoration: none;
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: all 0.3s var(--ease-out-quart);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.header.dark-context .header-cta { border-color: rgba(217, 183, 137, 0.35); }
.header-cta:hover {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}
.header.dark-context .header-cta:hover {
  background: var(--amber);
  color: var(--ink);
  border-color: var(--amber);
}
.header-cta::after {
  content: "→";
  font-family: var(--mono);
  transition: transform 0.3s var(--ease-out-quart);
}
.header-cta:hover::after { transform: translateX(3px); }

@media (max-width: 700px) {
  .header-status { display: none; }
}

/* ========================================================================
   SECTION COMMONS
   ======================================================================== */
section { position: relative; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-tag {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.section-tag .num { color: var(--ink-mute); }
.section-tag::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--amber);
}

/* ========================================================================
   HERO
   ======================================================================== */
.hero {
  height: 700vh;
  position: relative;
  z-index: 1;
}

.hero-stage {
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bone);
  overflow: hidden;
  transition: background 0.8s var(--ease-out-quart);
}
.hero-stage.dark { background: var(--jade-deep); color: var(--bone); }

/* Grid técnico */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(180, 123, 63, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(180, 123, 63, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

/* Ruled crosshairs (horizontal/vertical center lines) */
.hero-crosshair {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}
.hero-crosshair::before, .hero-crosshair::after {
  content: "";
  position: absolute;
  background: rgba(28, 25, 22, 0.08);
}
.hero-crosshair::before {
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
}
.hero-crosshair::after {
  left: 0; right: 0;
  top: 50%;
  height: 1px;
}
.hero-stage.dark .hero-crosshair::before,
.hero-stage.dark .hero-crosshair::after { background: rgba(217, 183, 137, 0.08); }

/* Vignette */
.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Toplight */
.hero-toplight {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  height: 110vh;
  pointer-events: none;
}

/* Dust particles layer */
.hero-dust {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.hero-canvas {
  width: min(64vh, 64vw);
  aspect-ratio: 1 / 1;
  position: relative;
  z-index: 3;
}
.hero-canvas svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ========================================================================
   HERO MANIFEST WORDS — la nueva capa
   ======================================================================== */
.hero-manifest {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.manifest-line {
  position: absolute;
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 300;
  letter-spacing: -0.025em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.9s var(--ease-out-quart), transform 1.2s var(--ease-out-expo), color 0.6s;
  will-change: opacity, transform;
}

.manifest-line.visible {
  opacity: var(--target-op, 1);
}

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

.hero-stage.dark .manifest-line { color: var(--bone); }
.hero-stage.dark .manifest-line .accent { color: var(--amber-light); }

/* Ambient floating words (small, in the periphery) */
.ambient-words {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.ambient-word {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  opacity: 0;
  transition: opacity 1.2s var(--ease-out-quart), color 0.6s;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
.ambient-word.faded { color: var(--ink-mute); opacity: 0.35; }
.ambient-word.bright { color: var(--amber); opacity: 0.85; }
.ambient-word.strike { text-decoration: line-through; text-decoration-color: rgba(180, 123, 63, 0.5); }

.hero-stage.dark .ambient-word { color: rgba(217, 183, 137, 0.4); }
.hero-stage.dark .ambient-word.bright { color: var(--amber-light); opacity: 0.9; }

/* Wordmark final */
.hero-wordmark-layer {
  position: absolute;
  bottom: 4vh;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 6;
  text-align: center;
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 1s var(--ease-out-expo);
  pointer-events: none;
}
.hero-wordmark-layer.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.hero-wordmark {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 350;
  font-size: clamp(48px, 7vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--jade);
  margin-bottom: 0.875rem;
}
.hero-stage.dark .hero-wordmark { color: var(--bone); }
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 14, "SOFT" 100;
  font-weight: 300;
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--ink-soft);
  letter-spacing: 0.005em;
}
.hero-stage.dark .hero-tagline { color: rgba(242, 237, 227, 0.7); }

/* ========================================================================
   TIMECODE INDICATOR (bottom right of hero)
   ======================================================================== */
.timecode {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  opacity: 0;
  transition: opacity 0.5s, color 0.4s;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  text-align: right;
}
.timecode.visible { opacity: 1; }
.timecode.dark-context { color: rgba(242, 237, 227, 0.55); }

.timecode-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.timecode-row .accent { color: var(--amber); }
.timecode.dark-context .timecode-row .accent { color: var(--amber-light); }

.timecode-bar {
  width: 120px;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.timecode.dark-context .timecode-bar { background: rgba(217, 183, 137, 0.15); }

.timecode-bar-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: var(--amber);
  transition: width 0.2s linear;
}

/* Act ticks on bar */
.timecode-ticks {
  width: 120px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  opacity: 0.6;
  margin-top: 4px;
}
.timecode.dark-context .timecode-ticks { color: rgba(242, 237, 227, 0.4); }

/* Scroll hint (initial) */
.scroll-hint {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 50;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  opacity: 0.85;
  transition: opacity 0.6s, color 0.4s;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  pointer-events: none;
}
.scroll-hint.hidden { opacity: 0; }
.scroll-hint.dark-context { color: rgba(242, 237, 227, 0.6); }

.scroll-hint .arrow {
  width: 28px;
  height: 1px;
  background: linear-gradient(to right, var(--ink-mute), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-hint .arrow::after {
  content: "";
  position: absolute;
  top: 0; left: -28px;
  width: 28px; height: 1px;
  background: var(--amber);
  animation: arrowSlide 2s ease-in-out infinite;
}
@keyframes arrowSlide {
  0% { left: -28px; opacity: 0; }
  50% { opacity: 1; }
  100% { left: 28px; opacity: 0; }
}

/* ========================================================================
   CONTENT SECTIONS — base
   ======================================================================== */
.content {
  position: relative;
  z-index: 2;
  background: var(--bone);
}

/* ========================================================================
   QUE HACEMOS (editorial: marginalia + lead)
   ======================================================================== */
.what {
  padding: var(--space-7) 0;
  border-top: 1px solid var(--line-soft);
  position: relative;
}

.what-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  align-items: start;
}

.what-aside {
  position: sticky;
  top: 8rem;
}

.what-aside-meta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 1.5rem;
  line-height: 1.8;
}
.what-aside-meta .row { display: flex; gap: 0.5rem; }
.what-aside-meta .key { color: var(--ink-mute); width: 64px; }
.what-aside-meta .val { color: var(--ink); }

.what-content {
  max-width: 720px;
}

.what-lead {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 3rem;
}
.what-lead em {
  font-style: italic;
  color: var(--amber);
  font-weight: 400;
}
.what-lead strong {
  color: var(--jade);
  font-weight: 500;
}
.what-lead .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px) rotateX(20deg);
  transform-origin: bottom;
  transition: opacity 0.7s var(--ease-out-quart), transform 0.7s var(--ease-out-quart);
}
.what.revealed .what-lead .word {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

.what-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line-soft);
}

.what-secondary p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.65;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-out-quart), transform 0.9s var(--ease-out-quart);
}

.what.revealed .what-secondary p { opacity: 1; transform: translateY(0); }
.what.revealed .what-secondary p:nth-child(2) { transition-delay: 0.15s; }

.what-secondary p strong { color: var(--ink); font-weight: 500; }
.what-secondary p em { color: var(--amber); font-style: italic; }

@media (max-width: 900px) {
  .what-grid { grid-template-columns: 1fr; gap: 2rem; }
  .what-aside { position: static; }
  .what-secondary { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ========================================================================
   SERVICIOS — editorial table layout option + cards
   ======================================================================== */
.services {
  padding: var(--space-7) 0;
  background: var(--bone-soft);
  border-top: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}

.services-header {
  margin-bottom: 5rem;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  align-items: end;
}

.services-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 40;
  font-weight: 350;
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--jade);
  margin-bottom: 1.5rem;
  max-width: 14ch;
}
.services-title em { font-style: italic; color: var(--amber); }

.services-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 56ch;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  padding: 2.75rem 2rem;
  background: var(--bone);
  border: 1px solid var(--line-soft);
  position: relative;
  transition: all 0.5s var(--ease-out-quart);
  opacity: 0;
  transform: translateY(40px);
  display: flex;
  flex-direction: column;
}

.services.revealed .service-card { opacity: 1; transform: translateY(0); }
.services.revealed .service-card:nth-child(2) { transition-delay: 0.12s; }
.services.revealed .service-card:nth-child(3) { transition-delay: 0.24s; }

.service-card:hover {
  border-color: var(--amber);
  transform: translateY(-4px);
}
.service-card:hover .service-arrow { transform: translate(4px, -4px); color: var(--amber); }

.service-num {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.service-num .label { color: var(--amber); }
.service-arrow {
  font-family: var(--mono);
  color: var(--ink-mute);
  transition: all 0.3s var(--ease-out-quart);
}

.service-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--jade);
  margin-bottom: 1rem;
}

.service-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--amber);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-soft);
}

.service-desc {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
  margin-bottom: 2rem;
}

.service-meta {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  justify-content: space-between;
}
.service-meta .val { color: var(--ink); }

/* Editorial table layout (alternate) */
.services-table {
  border-top: 1px solid var(--line-strong);
}

.service-row {
  display: grid;
  grid-template-columns: 60px 1fr 2fr 120px;
  gap: 2rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
  cursor: default;
  transition: background 0.4s var(--ease-out-quart);
  opacity: 0;
  transform: translateY(20px);
}
.services.revealed .service-row { opacity: 1; transform: translateY(0); transition: opacity 0.8s var(--ease-out-quart), transform 0.8s var(--ease-out-quart), background 0.4s; }
.services.revealed .service-row:nth-child(2) { transition-delay: 0.1s; }
.services.revealed .service-row:nth-child(3) { transition-delay: 0.2s; }

.service-row:hover { background: rgba(180, 123, 63, 0.04); }

.service-row-num {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--amber);
}

.service-row-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--jade);
}

.service-row-desc {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.55;
  color: var(--ink-soft);
}
.service-row-desc em { color: var(--amber); font-style: italic; }

.service-row-tag {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: right;
}

@media (max-width: 1000px) {
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .services-header { grid-template-columns: 1fr; gap: 1.5rem; }
  .service-row { grid-template-columns: 40px 1fr; gap: 1rem; }
  .service-row > *:nth-child(3),
  .service-row > *:nth-child(4) { grid-column: 1 / -1; padding-left: 56px; }
  .service-row-tag { text-align: left; }
}

/* ========================================================================
   EXPLAINED — Crisalab dos palabras
   ======================================================================== */
.explained {
  padding: var(--space-8) 0 var(--space-7);
  background: var(--bone);
  border-top: 1px solid var(--line-soft);
  position: relative;
}

.explained-intro {
  text-align: center;
  margin-bottom: 7rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.explained-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 300;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--jade);
  margin-bottom: 2rem;
}
.explained-title em { font-style: italic; color: var(--amber); }

.chapter {
  max-width: 920px;
  margin: 0 auto;
  padding: var(--space-7) 0;
  border-top: 1px solid var(--line-soft);
  position: relative;
}
.chapter:first-of-type { border-top: none; }

.chapter-header {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: baseline;
  margin-bottom: 3rem;
}

.chapter-meta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  padding-top: 1.5rem;
}
.chapter-meta .sub { display: block; color: var(--ink-mute); margin-top: 4px; }

.chapter-name {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 300;
  font-size: clamp(56px, 8vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--jade);
}
.chapter-name em { font-style: italic; color: var(--amber); }

.chapter-body {
  max-width: 720px;
  margin-left: auto;
}

.chapter-lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 2.5rem;
}
.chapter-lead em { font-style: italic; color: var(--amber); font-weight: 400; }
.chapter-lead .line { display: block; }

.chapter-prose {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}
.chapter-prose strong { color: var(--ink); font-weight: 500; }
.chapter-prose em { color: var(--amber); font-style: italic; }
.chapter-prose p + p { margin-top: 1.5rem; }

.chapter-final {
  text-align: center;
  padding: var(--space-7) 0 var(--space-6);
  border-top: 1px solid var(--line-soft);
}
.chapter-final .chapter-meta { text-align: center; padding-top: 0; margin-bottom: 2rem; }
.chapter-final .chapter-name { margin-bottom: 2.5rem; text-align: center; }

.chapter-final-prose {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 600px;
  margin: 0 auto 3rem;
}
.chapter-final-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 14, "SOFT" 100;
  font-weight: 300;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--amber);
  letter-spacing: 0.01em;
}

.chapter > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out-quart), transform 0.9s var(--ease-out-quart);
}
.chapter.revealed > * { opacity: 1; transform: translateY(0); }
.chapter.revealed > *:nth-child(2) { transition-delay: 0.2s; }

@media (max-width: 900px) {
  .chapter-header { grid-template-columns: 1fr; gap: 1rem; }
  .chapter-meta { padding-top: 0; }
  .chapter-body { margin-left: 0; }
}

/* ========================================================================
   PRINCIPIOS
   ======================================================================== */
.principles {
  padding: var(--space-7) 0;
  background: var(--jade-deep);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}

.principles::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(217, 183, 137, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(217, 183, 137, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.principles::after {
  content: "";
  position: absolute;
  bottom: -250px;
  right: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(180, 123, 63, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.principles > .container { position: relative; z-index: 1; }

.principles-header {
  margin-bottom: 5rem;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
}

.principles-tag {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--amber-light);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  height: fit-content;
}
.principles-tag .num { color: rgba(242, 237, 227, 0.5); }
.principles-tag::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--amber-light);
}

.principles-title-block { max-width: 720px; }

.principles-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 40;
  font-weight: 350;
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--bone);
  margin-bottom: 1.5rem;
}
.principles-title em { font-style: italic; color: var(--amber-light); }

.principles-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.5;
  color: rgba(242, 237, 227, 0.7);
}

.principles-list { display: flex; flex-direction: column; }

.principle {
  padding: 3rem 0;
  border-top: 1px solid rgba(242, 237, 227, 0.1);
  display: grid;
  grid-template-columns: 100px 1fr 2fr;
  gap: 3rem;
  align-items: baseline;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease-out-quart), transform 1s var(--ease-out-quart), background 0.4s;
  position: relative;
}
.principle:hover {
  background: rgba(180, 123, 63, 0.04);
}
.principle.revealed { opacity: 1; transform: translateY(0); }
.principle:last-child { border-bottom: 1px solid rgba(242, 237, 227, 0.1); }

.principle-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--amber-light);
  text-transform: uppercase;
}

.principle-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--bone);
}
.principle-title em { font-style: italic; color: var(--amber-light); }

.principle-desc {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  color: rgba(242, 237, 227, 0.78);
  letter-spacing: -0.005em;
}

@media (max-width: 900px) {
  .principles-header { grid-template-columns: 1fr; gap: 1.5rem; }
  .principle { grid-template-columns: 1fr; gap: 0.75rem; padding: 2rem 0; }
}

/* ========================================================================
   WAITLIST
   ======================================================================== */
.waitlist {
  padding: var(--space-7) 0 var(--space-6);
  background: var(--bone);
  position: relative;
  overflow: hidden;
}

.waitlist::before {
  content: "";
  position: absolute;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(217, 183, 137, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.waitlist > .container { position: relative; z-index: 1; }

.waitlist-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.waitlist-mark {
  width: 56px;
  height: auto;
  color: var(--jade);
  margin: 0 auto 2.5rem;
  display: block;
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.waitlist-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 350;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--jade);
  margin-bottom: 2rem;
}
.waitlist-title em { font-style: italic; color: var(--amber); }

.waitlist-lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 4rem;
  letter-spacing: -0.005em;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.waitlist-lead strong {
  color: var(--ink);
  font-weight: 500;
  font-style: normal;
  font-family: var(--serif);
}

.form {
  max-width: 540px;
  margin: 0 auto;
  text-align: left;
  background: var(--bone-soft);
  padding: 3rem 2.5rem;
  border: 1px solid var(--line-soft);
  position: relative;
}

.form::before {
  content: "// WAITLIST · Q3 2026";
  position: absolute;
  top: -8px;
  left: 24px;
  background: var(--bone);
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--amber);
}

.form-group { margin-bottom: 1.75rem; }

.form-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-bottom: 0.625rem;
}
.form-label .req { color: var(--amber); margin-left: 4px; }

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 0;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  font-family: var(--serif);
  font-size: 1.0625rem;
  color: var(--ink);
  transition: border-color 0.3s var(--ease-out-quart);
  letter-spacing: -0.005em;
}
.form-input:focus,
.form-textarea:focus { outline: none; border-bottom-color: var(--amber); }
.form-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--ink-mute);
  font-style: italic;
  font-weight: 300;
}

.form-submit {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1.125rem 2rem;
  background: var(--jade);
  color: var(--bone);
  border: none;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease-out-quart);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.form-submit:hover {
  background: var(--ink);
  transform: translateY(-1px);
}
.form-submit::after {
  content: "→";
  font-family: var(--mono);
  transition: transform 0.3s var(--ease-out-quart);
}
.form-submit:hover::after { transform: translateX(4px); }

.form-note {
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.6;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-align: center;
}

.form-success {
  display: none;
  padding: 3rem 1rem;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--jade);
}
.form-success.visible { display: block; }
.form-success::before {
  content: "✓";
  display: block;
  font-family: var(--mono);
  font-size: 2rem;
  color: var(--amber);
  margin-bottom: 1rem;
}

/* ========================================================================
   FOOTER
   ======================================================================== */
.footer {
  padding: var(--space-5) 0 var(--space-3);
  background: var(--bone);
  border-top: 1px solid var(--line-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  align-items: start;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 2rem;
}

.footer-brand { display: flex; align-items: flex-start; gap: 1rem; }
.footer-mark {
  width: 28px;
  height: auto;
  color: var(--jade);
  flex-shrink: 0;
  margin-top: 4px;
}
.footer-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }
.footer-col li {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.9;
  color: var(--ink-soft);
}
.footer-col a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--amber); }

.footer-col .submark {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.footer-col .submark .name { color: var(--ink); font-weight: 500; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
}

.footer-ascii {
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--amber);
  letter-spacing: 0.16em;
  opacity: 0.7;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 1rem; align-items: flex-start; }
}

/* ========================================================================
   RESPONSIVE
   ======================================================================== */
@media (max-width: 900px) {
  .header { padding: 1rem 1.25rem; }
  .header.scrolled { padding: 0.75rem 1.25rem; }
  .container { padding: 0 1.25rem; }
  .timecode { right: 1rem; bottom: 1rem; }
  .scroll-hint { left: 1rem; bottom: 1rem; }
  .timecode-bar, .timecode-ticks { width: 80px; }
}

@media (max-width: 600px) {
  .header-cta { font-size: 0.75rem; padding: 0.5rem 1rem; }
  .form { padding: 2rem 1.5rem; }
}

/* Hero: arreglo mobile — evita solapes texto-cápsula y palabras cortadas */
@media (max-width: 700px) {
  .ambient-word { display: none !important; }
  .hero-canvas { width: min(56vw, 44vh) !important; }
  .manifest-line {
    position: absolute !important;
    top: 8% !important;
    bottom: auto !important;
    left: 1.25rem !important;
    right: 1.25rem !important;
    transform: none !important;
    text-align: center !important;
    white-space: normal !important;
    font-size: clamp(22px, 6.5vw, 38px) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.015em !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
