/* ============================================================
   SLI — Soul Liberation Infrastructure
   Rebuild v2.0 — light beach palette, centered, card grid,
   muted-gold circular cards, breathing halo, unified buttons
   ============================================================ */

:root {
  /* Beach palette — sand beige / sandy gold / muted sage */
  --sand-50:  #fbf7ef;
  --sand-100: #f6efe2;
  --sand-200: #efe6d2;
  --sand-300: #e4d8bd;

  --cream:    #fffdf7;

  --gold:       #b89a46;          /* muted gold */
  --gold-soft:  #cbb06a;
  --gold-tint:  rgba(184, 154, 70, 0.16);
  --gold-glow:  rgba(184, 154, 70, 0.30);

  --accent:     #418687;          /* highlight color (brand) */
  --accent-soft:#5b9496;
  --accent-tint:rgba(65, 134, 135, 0.14);
  --accent-glow:rgba(65, 134, 135, 0.30);

  --sage:       #8fa089;          /* muted sage (secondary) */
  --sage-soft:  #a9b5a0;

  --teal:       #005A75;          /* brand deep teal (tertiary) */

  --ink:        #3a342a;          /* warm charcoal */
  --ink-dim:    #7a6f5c;
  --ink-faint:  #a89a82;

  --line:       rgba(120, 100, 60, 0.16);

  --sans: 'Heebo', 'Inter', -apple-system, BlinkMacSystemFont,
          'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: linear-gradient(180deg, #fbf7ef 0%, #f6efe2 42%, #f1e9d7 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* No underlined links by default; effect only on hover */
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent-tint); color: var(--ink); }

/* ---------- Header (centered) ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  text-align: center;
  padding: 34px 24px 0;
}

.brand {
  display: inline-block;
  font-size: 1.0rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #fffdf7;
}

.brand small {
  display: block;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: none;
  color: var(--gold-soft);
  margin-top: 6px;
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 20px;
}

.site-nav a {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 253, 247, 0.82);
  transition: color .35s ease;
}

.site-nav a:hover { color: #fff; }
.site-nav a.active { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 150px 24px 90px;
  background: linear-gradient(180deg, #418687 0%, #4a8f8f 46%, rgba(251, 247, 239, 0) 100%);
}

.hero-inner { position: relative; z-index: 2; max-width: 760px; }

.hero h1 {
  font-weight: 300;
  font-size: clamp(2.2rem, 5.6vw, 4.0rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.hero .sub {
  margin-top: 26px;
  font-size: 1.04rem;
  color: var(--ink);
  line-height: 1.85;
}

.hero .cta {
  margin-top: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Breathing halo (real animation) ---------- */
.halo {
  position: absolute;
  top: 50%; left: 50%;
  width: min(76vw, 620px);
  height: min(76vw, 620px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.72) 26%,
    rgba(255, 255, 255, 0.30) 52%,
    transparent 72%);
  animation: breathe 9s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

.halo-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: min(82vw, 680px);
  height: min(82vw, 680px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  animation: breathe 11s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.72; }
  50%      { transform: translate(-50%, -50%) scale(1.13); opacity: 1; }
}

/* Three concentric orbits (3-6-9 hero) */
.orbs { position: absolute; top: 50%; left: 50%; z-index: 1; pointer-events: none; }
.orb {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.orb::after {
  content: "";
  position: absolute;
  top: -4px; left: 50%;
  width: 8px; height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}
.orb-3 { width: 440px; height: 440px; margin: -220px 0 0 -220px; animation: spin 70s linear infinite; }
.orb-6 { width: 300px; height: 300px; margin: -150px 0 0 -150px; animation: spin 44s linear infinite reverse; }
.orb-9 { width: 170px; height: 170px; margin: -85px 0 0 -85px; animation: spin 26s linear infinite; }

/* Soft points drawing a circle (Community hero) */
.points { position: absolute; top: 50%; left: 50%; z-index: 1; animation: spin 120s linear infinite; pointer-events: none; }
.point {
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.7);
  animation: breathePulse 8s ease-in-out infinite;
}
.point:nth-child(1) { transform: rotate(0deg)   translateY(-190px); }
.point:nth-child(2) { transform: rotate(40deg)  translateY(-190px); }
.point:nth-child(3) { transform: rotate(80deg)  translateY(-190px); }
.point:nth-child(4) { transform: rotate(120deg) translateY(-190px); }
.point:nth-child(5) { transform: rotate(160deg) translateY(-190px); }
.point:nth-child(6) { transform: rotate(200deg) translateY(-190px); }
.point:nth-child(7) { transform: rotate(240deg) translateY(-190px); }
.point:nth-child(8) { transform: rotate(280deg) translateY(-190px); }
.point:nth-child(9) { transform: rotate(320deg) translateY(-190px); }

@keyframes breathePulse {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}

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

/* ---------- Sections ---------- */
section { padding: 88px 24px; }

.section-inner { max-width: 980px; margin: 0 auto; text-align: center; }

.section-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-weight: 300;
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  line-height: 1.24;
  margin-bottom: 22px;
  letter-spacing: 0.005em;
}

.section-sub {
  font-weight: 300;
  font-size: 1.12rem;
  color: var(--ink-dim);
  margin: -10px 0 26px;
}

.section-inner p { color: var(--ink-dim); margin-bottom: 16px; }

.section-inner p strong { color: var(--ink); font-weight: 500; }

.statement {
  font-size: clamp(1.28rem, 3vw, 1.62rem);
  line-height: 1.42;
  font-weight: 300;
  color: var(--ink);
  margin-top: 28px;
}

.quote {
  font-style: italic;
  font-size: 1.14rem;
  line-height: 1.75;
  color: var(--ink);
  margin: 26px 0;
}

ul { list-style: none; }

ul li {
  margin-bottom: 9px;
  color: var(--ink-dim);
  text-align: center;
}

/* ---------- Highlight spans (paired titles) ---------- */
.hl-gold { color: var(--accent); }
.hl-teal { color: var(--accent-soft); }
.hl-sage { color: var(--accent); }
.hl-accent { color: var(--accent); }
.hl-brown { color: var(--ink); font-weight: 500; }
.statement.hl-accent, .quote.hl-accent, .section-title.hl-accent,
.section-inner p strong.hl-accent { color: var(--accent) !important; }

/* Clickable number circle */
a.num-badge { text-decoration: none; display: flex; }

/* Nine-character portrait card (foundation style) */
.portrait-card .portrait {
  background: radial-gradient(circle at 30% 28%, #f0e9d8, #dcc89c);
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  font-size: 1.3rem;
}

/* ---------- Card grid (3-up desktop, 1-up mobile) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 34px 0;
}

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  display: block;
  background: var(--sand-50);
  border: none;
  border-radius: 22px;
  padding: 32px 26px;
  text-align: center;
  transition: transform .4s ease, box-shadow .4s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(120, 95, 50, 0.15);
}

.card .card-title {
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 10px;
}

/* "From X to Y" description (Nine awakenings) */
.fromto {
  color: var(--accent);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Stage hint link inside Six cards */
.stage-hint {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  transition: color .3s ease;
}
.card:hover .stage-hint { color: var(--accent-soft); }

/* Anchor offset for in-page section links */
section[id] { scroll-margin-top: 130px; }

.card p { color: var(--ink-dim); font-size: 0.95rem; margin-bottom: 8px; }

/* Circular muted-gold badge (number / roman numeral) */
.num-badge {
  width: 58px; height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 28%, #d6bd80, #b89a46);
  color: #fffdf7;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0;
  box-shadow: 0 7px 18px rgba(184, 154, 70, 0.34);
}

/* Circular portrait emblem (Community cards — name placeholder) */
.portrait {
  width: 66px; height: 66px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 28%, #e8f0ef, #cfe0df);
  border: 1px solid var(--accent-soft);
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 500;
}

/* Reserved / open card (no outline, transparent) */
.card--reserved {
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.card--reserved:hover { border: none; }

/* ---------- Tables (kept light) ---------- */
table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 0.92rem; }
th, td { text-align: center; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-size: 0.74rem;
  text-transform: uppercase;
}
td { color: var(--ink-dim); }
td:first-child, th:first-child { color: var(--accent); white-space: nowrap; }

/* ---------- Buttons (unified, muted gold) ---------- */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .35s ease;
}

.btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fffdf7;
  box-shadow: 0 10px 26px rgba(184, 154, 70, 0.32);
  transform: translateY(-2px);
}

/* Buttons on teal hero — light text */
.hero .btn { color: #fffdf7; border-color: var(--gold-soft); }
.hero .btn:hover { color: #fffdf7; }

.btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ---------- Text links (no underline, hover effect only) ---------- */
.cta-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: color .3s ease, border-color .3s ease;
}

.cta-link:hover { color: var(--accent-soft); border-color: transparent; }

/* ---------- Live count (Symbiosis) ---------- */
.sign-count {
  margin-top: 26px;
  font-size: 0.9rem;
  color: var(--ink-dim);
}

.sign-count .num {
  display: block;
  font-size: 2.1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.sign-count .label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Dynamic 99.9% number */
.dyn-pct {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-weight: 500;
}

/* ---------- Connect split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  text-align: center;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
}

.split-col { min-width: 0; }

.split-col .card {
  text-align: center;
  height: 100%;
}

.contact-list { margin-top: 8px; }
.contact-list a {
  display: inline-block;
  color: var(--ink-dim);
  transition: color .3s ease;
  margin: 3px 0;
}
.contact-list a:hover { color: var(--accent); }

.social-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 20px 0; }

.social-ic {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--accent-tint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all .35s ease;
}

.social-ic:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(65, 134, 135, 0.2);
}

/* Message box / form */
.message-box { margin-top: 26px; }
.message-box label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 16px 0 6px;
  text-align: center;
}
.message-box input,
.message-box textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sand-50);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color .3s ease;
}
.message-box input:focus,
.message-box textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* ---------- Divider (centered dot) ---------- */
.divider {
  width: auto;
  height: auto;
  background: none;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--gold);
  margin: 0 auto;
}
.divider::before { content: "·"; }

/* ---------- Footer (dark brown) ---------- */
.site-footer {
  padding: 76px 24px 60px;
  text-align: center;
  background: #3a342a;
  color: var(--sand-100);
  border-top: none;
}

.footer-brand { font-size: 1.02rem; font-weight: 500; letter-spacing: 0.04em; color: #f6efe2; }
.footer-tag { margin-top: 10px; font-size: 0.8rem; color: rgba(246, 239, 226, 0.6); font-style: italic; }

.footer-nav {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-nav a {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 239, 226, 0.8);
  transition: color .35s ease;
}

.footer-nav a:hover { color: #fff; }
.footer-nav a.external { color: var(--gold-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .site-header { padding-top: 26px; }
  .site-nav { gap: 16px; }
  .hero { padding-top: 180px; }
  section { padding: 68px 22px; }
  .card { padding: 28px 22px; }
}

/* ---------- Character portrait placeholder (16:9) ---------- */
.char-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: linear-gradient(135deg, #e8dcc0, #d9c79a);
  border: 1px dashed var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 18px;
}
