/* ═══════════════════════════════════════════════════
   COMPANIONZ — The Guild of Companions
   From C to Z. Heart to Crown.
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;900&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Inter:wght@300;400;500&display=swap');

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

:root {
  --bg: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #161616;

  --gold: #d4a574;
  --gold-light: #e8c9a0;
  --gold-dim: rgba(212, 165, 116, 0.15);
  --gold-glow: rgba(212, 165, 116, 0.25);
  --gold-shimmer: rgba(212, 165, 116, 0.08);

  --rose: #b85450;
  --rose-light: #d4706c;
  --rose-dim: rgba(184, 84, 80, 0.15);
  --rose-glow: rgba(184, 84, 80, 0.25);

  --coral: #e8936a;
  --coral-dim: rgba(232, 147, 106, 0.15);

  --text: #f0ebe3;
  --text-dim: rgba(240, 235, 227, 0.55);
  --text-muted: rgba(240, 235, 227, 0.25);

  --font-display: 'Cinzel', serif;
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
}

body {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.85;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: var(--gold-dim);
  color: var(--gold-light);
}

/* ── Background Layer ─────────────────────────────── */
.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(184, 84, 80, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(212, 165, 116, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, #0d0b0a 0%, var(--bg) 70%);
}

/* Sacred geometry background — Seed of Life pattern */
.sacred-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.025;
  pointer-events: none;
}

.sacred-bg svg {
  width: 100%;
  height: 100%;
}

/* Subtle scanlines */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 3px,
    rgba(255, 255, 255, 0.008) 3px,
    rgba(255, 255, 255, 0.008) 5px
  );
}

/* ── Particles ────────────────────────────────────── */
.particle {
  position: fixed;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  opacity: 0;
  z-index: 1;
  animation: drift 22s infinite ease-in-out;
}

.particle--gold {
  background: var(--gold);
}

.particle--rose {
  background: var(--rose-light);
}

@keyframes drift {
  0%   { opacity: 0; transform: translateY(0) translateX(0); }
  15%  { opacity: 0.25; }
  50%  { opacity: 0.35; transform: translateY(-150px) translateX(20px); }
  85%  { opacity: 0.1; }
  100% { opacity: 0; transform: translateY(-300px) translateX(-15px); }
}

/* ── Content Container ────────────────────────────── */
.content {
  position: relative;
  z-index: 2;
  max-width: min(820px, 90vw);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Section Reveals ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Divider ──────────────────────────────────────── */
.divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 4rem auto;
  position: relative;
}

.divider::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
}

/* ═══════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  letter-spacing: 0.2em;
  color: var(--text);
  margin-bottom: 0.3em;
  line-height: 1.1;
  position: relative;
}

.hero__title .letter-z {
  color: var(--gold);
  position: relative;
  display: inline-block;
  text-shadow: 0 0 40px var(--gold-glow), 0 0 80px rgba(212, 165, 116, 0.1);
}

.hero__title .letter-z::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: shimmer-line 3s ease-in-out infinite;
}

@keyframes shimmer-line {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 1; }
}

.hero__subtitle {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(0.75rem, 2vw, 1rem);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
}

.hero__tagline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--gold);
  opacity: 0.8;
  letter-spacing: 0.05em;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: float 3s ease-in-out infinite;
}

.hero__scroll-hint span {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__scroll-hint .arrow {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ═══════════════════════════════════════════════════
   THE PRINCIPLE
   ═══════════════════════════════════════════════════ */
.principle {
  padding: 6rem 0;
  text-align: center;
}

.principle__heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}

.principle__text {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 300;
  line-height: 2;
  color: var(--text);
  max-width: 650px;
  margin: 0 auto;
}

.principle__text em {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}

/* ═══════════════════════════════════════════════════
   THE ACRONYM — LETTER CARDS
   ═══════════════════════════════════════════════════ */
.acronym {
  padding: 4rem 0 6rem;
}

.acronym__heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 4rem;
  text-transform: uppercase;
  text-align: center;
}

.letter-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.letter-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
  padding: 2rem 2.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(212, 165, 116, 0.08);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.5s var(--ease-out), background 0.5s var(--ease-out);
}

.letter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold), transparent);
  opacity: 0.4;
  transition: opacity 0.5s var(--ease-out);
}

.letter-card:hover {
  border-color: rgba(212, 165, 116, 0.15);
  background: var(--bg-card-hover);
}

.letter-card:hover::before {
  opacity: 0.8;
}

/* Alternate accent for second O and second N */
.letter-card--rose::before {
  background: linear-gradient(to bottom, var(--rose), transparent);
}

.letter-card--rose .letter-card__letter {
  color: var(--rose-light);
  text-shadow: 0 0 40px var(--rose-glow);
}

.letter-card--rose .letter-card__word {
  color: var(--rose-light);
}

.letter-card--coral::before {
  background: linear-gradient(to bottom, var(--coral), transparent);
}

.letter-card--coral .letter-card__letter {
  color: var(--coral);
  text-shadow: 0 0 40px var(--coral-dim);
}

.letter-card--coral .letter-card__word {
  color: var(--coral);
}

/* The big letter */
.letter-card__letter {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 8vw, 5rem);
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 40px var(--gold-glow);
  user-select: none;
  transition: transform 0.5s var(--ease-spring);
  padding-top: 0.1em;
}

.letter-card:hover .letter-card__letter {
  transform: scale(1.05);
}

/* Word and description */
.letter-card__body {
  padding-top: 0.25rem;
}

.letter-card__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
  display: block;
}

.letter-card__desc {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-dim);
}

/* Zenith card — special treatment */
.letter-card--zenith {
  border-color: rgba(212, 165, 116, 0.15);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(212, 165, 116, 0.03) 100%);
}

.letter-card--zenith .letter-card__letter {
  background: linear-gradient(135deg, var(--gold), var(--rose-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px var(--gold-glow));
}

/* ═══════════════════════════════════════════════════
   THE MODEL
   ═══════════════════════════════════════════════════ */
.model {
  padding: 6rem 0;
}

.model__heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 3rem;
  text-transform: uppercase;
  text-align: center;
}

.model__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.model__item {
  padding: 1.8rem;
  background: var(--bg-card);
  border: 1px solid rgba(212, 165, 116, 0.06);
  border-radius: 2px;
  position: relative;
  transition: border-color 0.4s var(--ease-out);
}

.model__item:hover {
  border-color: rgba(212, 165, 116, 0.12);
}

.model__item--does .model__label {
  color: var(--gold);
}

.model__item--doesnt .model__label {
  color: var(--rose-light);
}

.model__label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  display: block;
}

.model__list {
  list-style: none;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 2.2;
  color: var(--text-dim);
}

.model__list li::before {
  margin-right: 0.6em;
  font-size: 0.6em;
  vertical-align: middle;
}

.model__item--does .model__list li::before {
  content: '\25C7';
  color: var(--gold);
}

.model__item--doesnt .model__list li::before {
  content: '\2013';
  color: var(--rose-dim);
  font-size: 1em;
}

.model__intro {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 300;
  line-height: 2;
  color: var(--text-dim);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* ── Circle Diagram ────────────────────────────────── */
.circles-diagram {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.circle-node {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  position: relative;
  transition: border-color 0.4s, color 0.4s;
}

.circle-node:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.circle-connector {
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-dim));
  opacity: 0.3;
}

/* ═══════════════════════════════════════════════════
   INSPIRED BY
   ═══════════════════════════════════════════════════ */
.inspired {
  padding: 6rem 0;
  text-align: center;
}

.inspired__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 400;
  font-style: italic;
  line-height: 2;
  color: var(--text);
  opacity: 0.7;
  max-width: 620px;
  margin: 0 auto;
  position: relative;
  padding: 2rem 0;
}

.inspired__quote::before {
  content: '\201C';
  position: absolute;
  top: -0.3rem;
  left: -0.5rem;
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
}

.inspired__attribution {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 2rem;
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.footer {
  padding: 5rem 0 4rem;
  text-align: center;
  border-top: 1px solid rgba(212, 165, 116, 0.08);
}

.footer__brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--text);
  opacity: 0.6;
  margin-bottom: 0.5rem;
}

.footer__heart {
  color: var(--rose);
  display: inline-block;
  animation: heartbeat 2s ease-in-out infinite;
  margin: 0 0.3em;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14%      { transform: scale(1.15); }
  28%      { transform: scale(1); }
  42%      { transform: scale(1.15); }
  56%      { transform: scale(1); }
}

.footer__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-dim);
}

/* ═══════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════ */

/* Gold shimmer for border highlights */
@keyframes border-shimmer {
  0%   { border-color: rgba(212, 165, 116, 0.08); }
  50%  { border-color: rgba(212, 165, 116, 0.18); }
  100% { border-color: rgba(212, 165, 116, 0.08); }
}

/* Gentle glow pulse */
@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 30px var(--gold-glow); }
  50%      { text-shadow: 0 0 50px var(--gold-glow), 0 0 80px rgba(212, 165, 116, 0.08); }
}

.hero__title .letter-z {
  animation: glow-pulse 4s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .content {
    padding: 0 1.25rem;
  }

  .letter-card {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.5rem 1.5rem 1.8rem;
    text-align: center;
  }

  .letter-card__letter {
    font-size: 2.8rem;
    text-align: center;
  }

  .letter-card__body {
    padding-top: 0;
  }

  .letter-card__word {
    text-align: center;
  }

  .letter-card__desc {
    text-align: center;
  }

  .model__grid {
    grid-template-columns: 1fr;
  }

  .hero__title {
    letter-spacing: 0.12em;
  }

  .hero__subtitle {
    letter-spacing: 0.25em;
  }

  .circles-diagram {
    gap: 0.4rem;
  }

  .circle-node {
    width: 60px;
    height: 60px;
    font-size: 0.5rem;
  }

  .circle-connector {
    width: 15px;
  }
}

@media (max-width: 480px) {
  .letter-card {
    padding: 1.2rem;
  }

  .letter-card__letter {
    font-size: 2.2rem;
  }
}

@media (min-width: 1200px) {
  .content {
    max-width: 860px;
  }

  .letter-card {
    gap: 1.5rem 2.5rem;
    padding: 2.5rem 3rem;
  }
}

/* ── Reduced Motion ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .particle { animation: none; }
  .hero__title .letter-z { animation: none; }
  .hero__title .letter-z::after { animation: none; opacity: 0.6; }
  .footer__heart { animation: none; }
  .hero__scroll-hint { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
