/* Voice of Pele — pelephone.com */
:root {
  --bg: #0b0612;
  --bg-deep: #120720;
  --plum: #1a0b2a;
  --gold: #c9a03c;
  --gold-soft: #b8913f;
  --ink: #f4efe6;
  --text: #d9d2c6;
  --muted: #a99fb3;
  --serif-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --serif-body: "EB Garamond", Garamond, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif-body);
  font-size: 1.125rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: var(--gold); }
h1, h2, h3 { font-family: var(--serif-display); font-weight: 700; margin: 0; line-height: 1.15; }
p { margin: 0; }

.eyebrow {
  font-family: var(--serif-body);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.rule {
  display: block;
  width: 62px;
  height: 1px;
  background: var(--gold);
  opacity: 0.75;
  margin: 2rem auto;
}

/* Top bar */
.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  text-align: center;
  padding: 1.1rem 1rem;
}
.brand {
  font-family: var(--serif-display);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6rem 1.5rem 5rem;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(60, 14, 10, 0.1) 0%, rgba(14, 5, 22, 0.7) 78%),
    linear-gradient(180deg, rgba(14, 5, 24, 0.85) 0%, rgba(30, 8, 14, 0.5) 45%, rgba(20, 6, 20, 0.55) 82%, var(--bg-deep) 100%),
    url("../images/hero.jpg") center bottom / cover no-repeat,
    linear-gradient(180deg, #1a0a22, #3a1410 60%, #120720);
  overflow: hidden;
}
.hero__inner { max-width: 900px; }
.hero__title {
  color: var(--ink);
  font-size: clamp(3.2rem, 9vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.55);
  max-width: 8ch;
  margin: 0 auto;
}
.hero .rule { margin: 2.2rem auto 1.4rem; }
.hero__tagline {
  font-style: italic;
  color: var(--gold);
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
}
.hero__cta {
  display: inline-block;
  margin-top: 3.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.hero__cta::after {
  content: "";
  display: block;
  width: 1px;
  height: 34px;
  margin: 0.9rem auto 0;
  background: linear-gradient(var(--gold), transparent);
  animation: drip 2.4s ease-in-out infinite;
}
.hero__cta:hover, .hero__cta:focus-visible { color: var(--gold); }
@keyframes drip {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

/* Sections */
.section { padding: 6rem 1.5rem; }
.section__head { text-align: center; max-width: 900px; margin: 0 auto 3.5rem; }
.section__title {
  color: var(--ink);
  font-size: clamp(1.9rem, 4.4vw, 2.6rem);
  letter-spacing: 0.01em;
}

/* Domain */
.domain { background: var(--bg-deep); }
.faces {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
.face {
  position: relative;
  aspect-ratio: 10 / 7;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: flex-end;
}
.face img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.face:hover img { transform: scale(1.04); }
.face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 4, 18, 0.05) 25%, rgba(10, 4, 18, 0.55) 55%, rgba(10, 4, 18, 0.92) 100%);
}
.face__body { position: relative; z-index: 1; padding: 1.6rem 1.6rem 1.5rem; }
.face h3 {
  color: var(--gold);
  font-size: 1.35rem;
  margin-bottom: 0.55rem;
  letter-spacing: 0.02em;
}
.face p { color: #ece6dc; font-size: 0.98rem; line-height: 1.7; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }

/* Symbols timeline */
.symbols { background: var(--bg); }
.symbols .rule { margin: 2rem auto 0; }
.timeline {
  list-style: none;
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
}
.timeline__item {
  position: relative;
  padding: 0 0 0 2.25rem;
  margin-bottom: 3.5rem;
  border-left: 1px solid rgba(201, 160, 60, 0.45);
}
.timeline__item:last-child { margin-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.5rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(201, 160, 60, 0.55);
}
.timeline h3 { color: var(--gold); font-size: 1.4rem; margin-bottom: 0.9rem; letter-spacing: 0.02em; }
.timeline p { color: var(--text); }

/* Chant */
.chant {
  position: relative;
  text-align: center;
  padding: 7rem 1.5rem;
  background:
    linear-gradient(180deg, rgba(11, 6, 18, 0.88) 0%, rgba(26, 12, 38, 0.72) 40%, rgba(16, 7, 26, 0.86) 85%, var(--bg) 100%),
    url("../images/chant.jpg") center 70% / cover no-repeat,
    linear-gradient(180deg, #160a22, #2a1218);
}
.chant__inner { max-width: 760px; margin: 0 auto; }
.chant__title { color: var(--gold); font-size: clamp(1.9rem, 4vw, 2.4rem); margin-bottom: 2.8rem; }
.chant__lines p {
  font-family: var(--serif-display);
  font-weight: 400;
  color: #ece4ee;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  letter-spacing: 0.06em;
  line-height: 2.25;
}
.chant .rule { margin: 3rem auto 2.4rem; }
.chant__closing {
  font-family: var(--serif-display);
  font-style: italic;
  color: var(--gold);
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  letter-spacing: 0.04em;
}

/* Footer */
.footer {
  background: #0a0512;
  text-align: center;
  padding: 4.5rem 1.5rem 3rem;
  border-top: 1px solid rgba(201, 160, 60, 0.12);
}
.footer__brand {
  font-family: var(--serif-display);
  color: var(--gold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 1rem;
}
.footer .rule { margin: 1.3rem auto 1.6rem; width: 54px; opacity: 0.5; }
.footer__contact { font-size: 0.95rem; color: var(--gold-soft); }
.footer__contact a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(201, 160, 60, 0.35); }
.footer__contact a:hover, .footer__contact a:focus-visible { border-bottom-color: var(--gold); }
.footer__note {
  max-width: 560px;
  margin: 1.6rem auto 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}
.footer__credits {
  max-width: 640px;
  margin: 2rem auto 0;
  font-size: 0.72rem;
  line-height: 1.6;
  color: #6f6680;
}

a:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* Fade-in on scroll (only when JS is running) */
.js .fade { opacity: 0; transform: translateY(18px); transition: opacity 0.9s ease, transform 0.9s ease; }
.js .fade.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .fade { opacity: 1; transform: none; transition: none; }
  .hero__cta::after { animation: none; }
  .face img { transition: none; }
}

/* Mobile */
@media (max-width: 720px) {
  body { font-size: 1.05rem; }
  .section { padding: 4.5rem 1.25rem; }
  .section__head { margin-bottom: 2.5rem; }
  .faces { grid-template-columns: 1fr; gap: 3px; }
  .face { aspect-ratio: auto; min-height: 380px; }
  .face__body { padding: 1.4rem 1.25rem; }
  .timeline__item { padding-left: 1.5rem; margin-bottom: 2.75rem; }
  .timeline h3 { font-size: 1.22rem; }
  .chant { padding: 5rem 1.25rem; }
  .chant__lines p { line-height: 2.05; }
}
