/* ==============================================
   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: #999999;
  --accent-dark: #555555;
  --text: #cccccc;
  --text-muted: #666666;
  --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', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --section-pad: 5rem 1.5rem;
  --content-max: 720px;
}

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: 300;
}

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

/* ---------- 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;
}

/* ==============================================
   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;
  background:
    radial-gradient(ellipse 80% 50% at 50% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 90%, rgba(255, 255, 255, 0.015) 0%, transparent 50%);
  pointer-events: none;
}

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

/* 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;
}

/* Scroll indicator */
.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 3.5rem;
  opacity: 0.4;
}

.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;
}

.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__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;
}

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

.triptych__item {
  text-align: center;
}

.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;
}

/* ==============================================
   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;
}

.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;
}

/* 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;
}

/* ==============================================
   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: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==============================================
   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);
}

/* ==============================================
   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;
  }
}

@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;
  }
}
