/* ==============================================
   the-eco.art — Landing Page · Tres Inteligencias
   ============================================== */

/* ---------- Reset & Variables ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #000000;
  --bg-alt: #050505;
  --accent: #ffffff;
  --accent-dim: #aaaaaa;
  --accent-dark: #777777;
  --text: #cccccc;
  --text-muted: #888888;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.25);
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --section-pad: 5rem 1.5rem;
  --content-max: 720px;
  --noise-opacity: 0.12;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f5f5f0;
  --accent: #000000;
  --accent-dim: #555555;
  --accent-dark: #777777;
  --text: #333333;
  --text-muted: #555555;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.25);
  --noise-opacity: 0.06;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.75;
  font-weight: 400;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

[data-theme="light"] ::selection {
  background: rgba(0, 0, 0, 0.1);
  color: #000000;
}

/* ---------- Reusable Ornament ---------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--accent);
  font-size: 0.45rem;
  opacity: 0.3;
}

.ornament__line {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.ornament__diamond {
  display: block;
  line-height: 1;
}

/* ---------- Double Wire ---------- */
.double-wire {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin: 2.5rem 0;
}

.double-wire__top,
.double-wire__bottom {
  display: block;
  width: 50%;
  height: 1px;
  background: linear-gradient(
    90deg, transparent, var(--accent) 15%, var(--accent) 85%, transparent
  );
  opacity: 0.3;
}

.double-wire__bottom {
  width: 30%;
  opacity: 0.15;
}

/* ==============================================
   THEME TOGGLE
   ============================================== */
.theme-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--accent-dim);
  transition: color 0.3s, border-color 0.3s, opacity 0.3s;
  opacity: 0.5;
}

.theme-toggle:hover {
  opacity: 1;
}

.theme-toggle__icon {
  width: 18px;
  height: 18px;
}

.theme-toggle__icon--sun {
  display: none;
}

[data-theme="light"] .theme-toggle__icon--sun {
  display: block;
}

[data-theme="light"] .theme-toggle__icon--moon {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon--sun {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon--moon {
  display: block;
}

/* ==============================================
   HERO
   ============================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 2rem 1.5rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: var(--content-max);
  width: 100%;
}

/* ===== ACRYLIC DRIFT ===== */
.bg-acrylic {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(255,255,255,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(255,255,255,0.04) 0%, transparent 45%),
    radial-gradient(ellipse 35% 45% at 50% 50%, rgba(200,210,255,0.03) 0%, transparent 40%);
  background-size: 300% 300%;
}

[data-theme="light"] .bg-acrylic {
  background:
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(0,0,0,0.04) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(0,0,0,0.03) 0%, transparent 45%),
    radial-gradient(ellipse 35% 45% at 50% 50%, rgba(100,110,180,0.02) 0%, transparent 40%);
  background-size: 300% 300%;
}

.bg-acrylic.animate {
  animation: acrylicDrift 25s ease-in-out infinite;
}
@keyframes acrylicDrift {
  0%   { background-position: 50% 50%; }
  20%  { background-position: 20% 30%; }
  40%  { background-position: 80% 20%; }
  60%  { background-position: 60% 80%; }
  80%  { background-position: 10% 70%; }
  100% { background-position: 50% 50%; }
}

/* ===== NOISE SYSTEM ===== */
.bg-noise-live {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-repeat: repeat;
  mix-blend-mode: screen;
}

/* Noise C - Fino + suave (soft, misty grain for the Hero) */
.bg-noise--suave {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.0' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeGaussianBlur stdDeviation='0.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

[data-theme="light"] .bg-noise--suave {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.0' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeGaussianBlur stdDeviation='0.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  mix-blend-mode: multiply;
}

/* Noise B - Fino / film grain (crisp paper texture for the rest of the site) */
#contenido {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
#contenido::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-repeat: repeat;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

[data-theme="light"] #contenido::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  mix-blend-mode: multiply;
}

/* ===== PRECISION RINGS ===== */
.bg-rings {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}
.bg-rings__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  animation: ring var(--dur) ease-in-out infinite;
}

[data-theme="light"] .bg-rings__ring {
  border-color: rgba(0,0,0,0.06);
}

.bg-rings__ring:nth-child(1) { width: 120px; height: 120px; --dur: 6s; }
.bg-rings__ring:nth-child(2) { width: 240px; height: 240px; --dur: 10s; }
.bg-rings__ring:nth-child(3) { width: 360px; height: 360px; --dur: 14s; }
.bg-rings__ring:nth-child(4) { width: 480px; height: 480px; --dur: 18s; }
.bg-rings__ring:nth-child(5) { width: 600px; height: 600px; --dur: 23s; }

@keyframes ring {
  0%, 100% { transform: scale(0.9); opacity: 0.15; }
  50%      { transform: scale(1.05); opacity: 0.45; }
}

/* Emblem */
.emblem {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.emblem__svg {
  width: 3.5rem;
  height: 3.5rem;
  color: var(--accent);
  opacity: 0.4;
  animation: emblemBreath 5s ease-in-out infinite;
}

@keyframes emblemBreath {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.06); }
}

/* Label */
.hero__label {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 1.5rem;
}

/* Title */
.hero__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 1.8rem;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero__title--main {
  display: block;
  font-weight: 300;
}

.hero__title--sub {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-size: 1.4rem;
  margin-top: 0.25rem;
}

/* Description */
.hero__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 400;
}

/* Hero Quote */
.hero__quote {
  margin-top: 2rem;
  padding: 0;
  border: none;
}

.hero__quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--accent-dim);
  line-height: 1.8;
  text-align: center;
  opacity: 0.7;
}

/* Scroll indicator */
.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 3.5rem;
  opacity: 0.4;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s;
}

.hero__scroll:hover {
  opacity: 0.8;
}

.hero__scroll-text {
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ==============================================
   SECTION BASE
   ============================================== */
.section {
  padding: var(--section-pad);
  position: relative;
  transition: background-color 0.4s ease;
}

.section--alt {
  background: var(--bg-alt);
}

.section--final {
  padding-bottom: 4rem;
}

.section__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: center;
}

.section__inner--wide {
  max-width: 1000px;
}

.section__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 1.6rem;
  line-height: 1.4;
  margin-bottom: 2.5rem;
  color: var(--text);
}

.section__title--alt {
  display: block;
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.section__title--invitation {
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

/* ==============================================
   CARD — Shared frosted-acrylic + noise base
   ============================================== */
.card {
  position: relative;
  padding: 2.5rem 2rem;
  border-radius: 18px;
  overflow: hidden;
  text-align: center;
  /* Dark theme: frosted acrylic */
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 60%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    inset 0 -1px 2px rgba(0, 0, 0, 0.15),
    0 10px 30px rgba(0, 0, 0, 0.15);
}

/* SVG noise overlay */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  mix-blend-mode: screen;
  pointer-events: none;
}

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

/* Light theme cards */
[data-theme="light"] .card {
  background:
    linear-gradient(135deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0) 60%),
    var(--bg-alt);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.6),
    inset 0 -1px 2px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .card::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* ==============================================
   TRIPTYCH (Three Intelligences) — Cards
   ============================================== */
.triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.triptych__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.triptych__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.triptych__svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent);
  opacity: 0.35;
}

.triptych__name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.triptych__text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 400;
}

/* ==============================================
   STANZA (Precious Metal)
   ============================================== */
.stanza {
  margin-bottom: 1.75rem;
}

.stanza p {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}

.stanza strong {
  color: var(--accent);
  font-weight: 500;
}

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

.stanza--final {
  margin-top: 2rem;
  margin-bottom: 0;
}

.stanza--final strong {
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ==============================================
   TRILOGY (Map, Terrain, Walker)
   ============================================== */
.trilogy {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.trilogy__item {
  text-align: left;
  padding: 2rem 1.5rem;
}

.trilogy__num {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
}

.trilogy__name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.trilogy__text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 400;
}

/* Teaching */
.teaching {
  text-align: center;
}

.teaching p {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.teaching__core {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem !important;
  color: var(--accent) !important;
  line-height: 1.8;
  margin-top: 1.5rem;
}

/* ==============================================
   INVITATION
   ============================================== */
.invitation {
  font-size: 0.9rem;
  line-height: 1.85;
}

.invitation p {
  margin-bottom: 1.25rem;
}

.invitation strong {
  color: var(--accent);
  font-weight: 500;
}

.invitation__core {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
  line-height: 1.7;
  margin: 1.5rem 0;
}

.invitation__closing {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.invitation__movement {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-top: 1.5rem;
  opacity: 0.8;
}

/* ==============================================
   CYCLE BLOCKS (Cómo lo hacemos)
   ============================================== */
.cycle-block {
  max-width: 100%;
  margin: 0 auto 2rem;
  text-align: left;
  padding: 2rem 2rem;
}

.cycle-block__name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.cycle-block__text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.85;
}

/* ==============================================
   PASOS (Qué pasa si trabajamos juntos)
   ============================================== */
.pasos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.pasos-card {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: calc(33.333% - 1rem);
  min-width: 220px;
}

.pasos-card__num {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--accent-dark);
  margin-bottom: 0.75rem;
  display: block;
}

.pasos-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.75;
  text-align: center;
  font-weight: 400;
}

.pasos-card strong {
  color: var(--accent);
  font-weight: 500;
}

/* ==============================================
   EMPEZAR (Cómo empezar)
   ============================================== */
.empezar-text {
  max-width: 600px;
  margin: 0 auto 2rem;
  padding: 2rem 2rem;
  text-align: center;
}

.empezar-text__body {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.empezar-text__closing {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ==============================================
   CTA ACTION
   ============================================== */
.cta-action {
  margin-bottom: 2rem;
}

.cta-action__link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-style: italic;
  letter-spacing: 0.1em;
  transition: opacity 0.3s;
  min-height: 44px;
  padding: 0.5rem 0;
}

.cta-action__link:hover {
  opacity: 0.7;
}

.cta-action__link-line {
  display: block;
  width: 1.5rem;
  height: 1px;
  background: var(--accent);
  opacity: 0.3;
}

.cta-action__link-text {
  white-space: nowrap;
}

/* ==============================================
   SIGNATURE
   ============================================== */
.signature {
  text-align: center;
  margin-top: 2rem;
}

.signature__name {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.signature__domain {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.signature__motto {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.signature__license {
  font-family: var(--font-sans);
  font-size: 0.5rem;
  font-weight: 200;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  opacity: 0.4;
}

.signature__license a {
  color: inherit;
  text-decoration: none;
}

.signature__license a:hover {
  opacity: 0.7;
}

.signature__privacy {
  font-family: var(--font-sans);
  font-size: 0.5rem;
  font-weight: 200;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  opacity: 0.35;
  margin-top: 0.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.signature__counter {
  font-family: var(--font-sans);
  font-size: 0.5rem;
  font-weight: 200;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  opacity: 0.25;
  margin-top: 0.75rem;
}

#visitCount {
  font-variant-numeric: tabular-nums;
}

.signature__link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.signature__link:hover {
  border-color: var(--accent-dim);
}

/* ---------- No-JS fallback ---------- */
.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

/* ---------- Focus visible (accessibility) ---------- */
:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .emblem__svg,
  .gold-card__svg {
    animation: none;
    opacity: 0.6;
  }

  .hero__scroll-line {
    animation: none;
    opacity: 0.5;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ==============================================
   REVEAL ANIMATION (triggered by JS)
   ============================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================================
   GOLD CARD (First Artifact)
   ============================================== */
.gold-card {
  text-align: center;
  margin: 0 auto;
}

.gold-card__emblem {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.gold-card__svg {
  width: 4rem;
  height: 4rem;
  color: var(--accent);
  opacity: 0.5;
  animation: goldPulse 6s ease-in-out infinite;
}

@keyframes goldPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.04); }
}

.gold-card__name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.gold-card__sub {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
}

.gold-card__version {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 200;
  letter-spacing: 0.15em;
  color: var(--accent-dark);
  opacity: 0.6;
  margin-bottom: 2rem;
}

.gold-card__manifesto p {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1rem;
}

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

.gold-card__section-title {
  margin: 2rem 0 1.5rem;
}

.gold-card__section-title p {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--accent);
  font-style: italic;
}

.gold-card__layers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.gold-card__layer {
  padding: 1.75rem 1.5rem;
}

.gold-card__layer-name {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.gold-card__layer-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 400;
}

.gold-card__pillars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 2rem 0;
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.gold-card__pillar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 400;
}

.gold-card__pillar-icon {
  color: var(--accent);
  font-size: 0.4rem;
  opacity: 0.5;
  flex-shrink: 0;
}

.gold-card__pillar-text {
  text-align: left;
}

.gold-card__base {
  margin: 2rem 0 0;
}

.gold-card__base p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--accent);
}

.gold-card__action {
  margin-top: 2rem;
}

.gold-card__link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-style: italic;
  letter-spacing: 0.1em;
  transition: opacity 0.3s;
  min-height: 44px;
  padding: 0.5rem 0;
}

.gold-card__link:hover {
  opacity: 0.7;
}

.gold-card__link-line {
  display: block;
  width: 1.5rem;
  height: 1px;
  background: var(--accent);
  opacity: 0.3;
}

.gold-card__link-text {
  white-space: nowrap;
}

/* ==============================================
   PRINT STYLES
   ============================================== */
@media print {
  body {
    background: #ffffff;
    color: #000000;
    font-size: 11pt;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .hero__bg,
  .hero__scroll,
  .double-wire,
  .ornament,
  .theme-toggle {
    display: none;
  }

  .section {
    padding: 1.5rem 0;
    page-break-inside: avoid;
  }

  .section--alt {
    background: none;
  }

  .gold-card__pillars {
    border-color: #cccccc;
  }

  .gold-card__link {
    color: #000000;
  }

  .gold-card__link-line {
    background: #000000;
  }

  .emblem__svg {
    opacity: 0.6;
    animation: none;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 768px) {
  .hero__title {
    font-size: 1.4rem;
  }
  .hero__title--sub {
    font-size: 1.15rem;
  }

  .triptych {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .trilogy {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pasos-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .bg-rings__ring:nth-child(4),
  .bg-rings__ring:nth-child(5) {
    display: none;
  }

  .theme-toggle {
    top: 1rem;
    right: 1rem;
  }
}

@media (max-width: 480px) {
  :root {
    --section-pad: 3rem 1.25rem;
  }

  .hero__title {
    font-size: 1.2rem;
  }
  .hero__title--sub {
    font-size: 1rem;
  }

  .section__title {
    font-size: 1.3rem;
  }

  .stanza p {
    font-size: 0.9rem;
  }

  .gold-card__manifesto p {
    font-size: 0.8rem;
  }

  .gold-card__pillar {
    font-size: 0.75rem;
  }

  .gold-card__name {
    font-size: 1.1rem;
  }

  .gold-card__layer {
    padding: 1rem;
  }

  .gold-card__layers {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ==============================================
   SPLASH SCREEN
   ============================================== */
#splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #12121e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  animation: splashIn 0.5s ease forwards;
  transition: opacity 0.5s ease;
}

#splash::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-repeat: repeat;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.0' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeGaussianBlur stdDeviation='0.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

#splash > * {
  position: relative;
  z-index: 1;
}

#splash.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes splashIn {
  to { opacity: 1; }
}

.splash__name {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 2.4rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.15em;
  color: #e8e4df;
  margin: 0;
}

.splash-ring {
  width: 40px;
  height: 40px;
  border: 3px solid #3a3a3a;
  border-top-color: #c8c0b4;
  border-radius: 50%;
  animation: splash-spin 0.8s linear infinite;
}

@keyframes splash-spin {
  to { transform: rotate(360deg); }
}

[data-theme="light"] #splash {
  background: #e8eaf0;
}

[data-theme="light"] #splash::before {
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.0' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeGaussianBlur stdDeviation='0.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

[data-theme="light"] .splash__name {
  color: #1a1a1a;
}

[data-theme="light"] .splash-ring {
  border-color: #d0cdc8;
  border-top-color: #5a5248;
}
