/* ═══════════════════════════════════════════
   CIA GATEWAY BODY MAP — cia-body-map.css
   Mystical · Parchment · Sacred Geometry
═══════════════════════════════════════════ */

:root {
  --ink:          #1a1614;
  --ink-mid:      #4a3f3a;
  --ink-soft:     #8a7a74;
  --ink-faint:    #b8a89a;
  --parchment:    #fdf8f2;
  --parchment-mid:#f5ede0;
  --parchment-deep:#ecdcc8;
  --gold:         #c9973a;
  --gold-light:   #e8c97a;
  --gold-pale:    #f5e9cc;

  /* Body system colours per CIA Gateway docs */
  --bm-blue:      #2d6cb0;     /* Nervous system */
  --bm-red:       #c83838;     /* Circulatory */
  --bm-orange:    #e08530;     /* Muscle/bone */
  --bm-yellow:    #e8b94a;     /* Organs/glandular */
  --bm-white:     #f0e8d8;     /* Composite */

  --shadow-soft:  0 4px 20px rgba(26,22,20,0.08);
  --shadow-hover: 0 10px 36px rgba(26,22,20,0.15);
  --radius-sm:    10px;
  --radius-md:    18px;
  --radius-lg:    28px;
  --radius-pill:  100px;
  --transition:   0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', sans-serif;
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
  position: relative;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values="0 0 0 0 0.35 0 0 0 0 0.32 0 0 0 0 0.18 0 0 0 0.22 0"/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 70% 50% at 12% 8%,   rgba(255,253,235,0.32) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 88% 12%,  rgba(220,240,235,0.28) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 92% 92%,  rgba(245,225,160,0.32) 0%, transparent 60%),
    radial-gradient(ellipse 65% 50% at 8% 95%,   rgba(220,150,110,0.28) 0%, transparent 55%),
    linear-gradient(165deg, #BAB86C 0%, #b3b466 35%, #aaa860 70%, #a39c58 100%);
  background-attachment: fixed;
  background-size: 400px 400px, auto, auto, auto, auto, auto;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(232,201,122,0.05) 75%, rgba(192,123,90,0.10) 100%);
  mix-blend-mode: multiply;
}
a { color: inherit; text-decoration: none; }

.bg-mandala {
  position: fixed;
  top: 100px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
  color: var(--gold);
}
.hidden { display: none !important; }

/* ═══ NAV ═══ */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,248,242,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,151,58,0.15);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 18px 32px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 40px;
  height: 40px;
  display: block;
  filter: drop-shadow(0 1px 4px rgba(220,240,235,0.30));
  transition: transform 0.4s ease;
}
.logo:hover .logo-mark { transform: rotate(8deg) scale(1.05); }
.logo-text { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 600; color: var(--ink); letter-spacing: 0.5px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 0.9rem; color: var(--ink-mid); font-weight: 500; transition: color var(--transition); }
.nav-links a:hover { color: var(--gold); }

/* ═══ PAGE / HERO ═══ */
.page { max-width: 900px; margin: 0 auto; padding: 0 24px 60px; position: relative; z-index: 1; }

.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.38em;
  text-transform: uppercase; color: var(--gold);
  font-weight: 500; margin-bottom: 18px; text-align: center;
}

.hero { padding: 70px 0 30px; text-align: center; }
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 400; }
.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-mid);
  max-width: 680px;
  margin: 0 auto 16px;
  line-height: 1.8;
  font-weight: 300;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-sub-small {
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto;
  font-style: italic;
  font-weight: 300;
}

/* ═══ CONTEXT BOX ═══ */
.context-box {
  background: linear-gradient(135deg, rgba(201,151,58,0.08), rgba(232,201,122,0.04));
  border: 1.5px solid rgba(245,225,160,0.34);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 32px 36px;
  margin: 30px 0 50px;
}
.context-inner h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
}
.context-inner p {
  font-size: 0.95rem;
  color: var(--ink-mid);
  line-height: 1.75;
  margin-bottom: 12px;
}
.context-inner p:last-child { margin-bottom: 0; }
.context-inner strong { color: var(--ink); font-weight: 600; }

/* ═══ INPUT ═══ */
.input-card {
  position: relative;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.50 0 0 0 0 0.42 0 0 0 0.10 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"),
    linear-gradient(150deg, rgba(255,251,240,0.97), rgba(250,244,225,0.94));
  background-size: 200px 200px, 100% 100%;
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(201,151,58,0.30);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-soft);
}
.input-card > * { position: relative; z-index: 1; }
.input-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.3;
}
.input-sub {
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 28px;
}

textarea {
  width: 100%;
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background: var(--parchment);
  border: 1.5px solid rgba(201,151,58,0.3);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  outline: none;
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
  transition: border-color var(--transition), box-shadow var(--transition);
}
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,151,58,0.18);
}
textarea::placeholder { color: var(--ink-faint); font-style: italic; }

.suggestions { margin: 24px 0 28px; }
.suggestion-label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: 0.05em;
}
.suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.chip {
  background: var(--parchment);
  border: 1px solid rgba(201,151,58,0.3);
  color: var(--ink-mid);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 0.83rem;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.chip:hover {
  background: var(--gold-pale);
  border-color: var(--gold);
  color: var(--ink);
  transform: translateY(-1px);
}

.btn-decode { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 16px; font-size: 1rem; }

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: var(--radius-pill);
  font-family: 'Jost', sans-serif; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
  border: none; text-decoration: none;
}
.btn-primary {
  background: var(--ink); color: var(--parchment);
  box-shadow: 0 4px 16px rgba(26,22,20,0.2);
}
.btn-primary:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,151,58,0.35); }
.btn-ghost {
  background: transparent; color: var(--ink-mid);
  border: 1.5px solid var(--ink-soft);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--ink); box-shadow: 0 4px 16px rgba(201,151,58,0.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,151,58,0.45); }

/* ═══ RESULTS ═══ */
.results { margin-top: 56px; animation: fadeUp 0.6s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.result-header { text-align: center; margin-bottom: 36px; }
.result-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4.5vw, 2.6rem);
  font-weight: 400;
  color: var(--ink);
  margin: 12px 0 10px;
}
.result-goal {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
  max-width: 580px;
  margin: 0 auto;
}
.result-goal span { color: var(--gold); font-weight: 500; }

/* Body silhouette */
.silhouette-wrap {
  display: flex;
  justify-content: center;
  margin: 30px 0 40px;
}
.body-silhouette {
  width: 180px;
  height: auto;
  color: var(--bm-blue);
  filter: drop-shadow(0 0 24px currentColor);
  transition: color 1.2s ease;
}
.glow-pulse { animation: glow 3s ease-in-out infinite; }
@keyframes glow {
  0%, 100% { opacity: 0.75; transform: scale(1); transform-origin: center; }
  50%      { opacity: 1;    transform: scale(1.04); transform-origin: center; }
}

/* Reveal grid */
.reveal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.reveal-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.94), rgba(253,248,242,0.90));
  border: 1.5px solid rgba(245,225,160,0.34);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.reveal-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}
.reveal-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}
.reveal-sub {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 4px;
  font-style: italic;
}

.colour-swatch {
  width: 60px; height: 60px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: var(--bm-blue);
  box-shadow: 0 0 24px currentColor, inset 0 -8px 12px rgba(0,0,0,0.15);
  transition: background-color 0.6s ease, color 0.6s ease;
}
.system-icon {
  font-size: 2.4rem;
  margin: 0 0 14px;
  line-height: 1;
}
.reveal-code {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

/* Description */
.result-description {
  background: linear-gradient(135deg, rgba(201,151,58,0.06), rgba(245,237,224,0.4));
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 26px 32px;
  margin-bottom: 36px;
  font-size: 1rem;
  color: var(--ink-mid);
  line-height: 1.85;
}
.result-description strong { color: var(--ink); font-weight: 600; }

/* Ritual box */
.ritual-box {
  background: linear-gradient(145deg, rgba(26,22,20,0.97), rgba(42,33,28,0.97));
  color: var(--parchment);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  margin-bottom: 36px;
  box-shadow: 0 10px 40px rgba(26,22,20,0.3);
}
.ritual-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 14px;
}
.ritual-intro {
  text-align: center;
  font-size: 0.95rem;
  color: var(--parchment-deep);
  max-width: 520px;
  margin: 0 auto 30px;
  line-height: 1.7;
  font-style: italic;
}
.ritual-steps {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}
.ritual-steps li {
  counter-increment: step;
  position: relative;
  padding: 18px 20px 18px 64px;
  background: rgba(253,248,242,0.06);
  border: 1px solid rgba(232,201,122,0.18);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--parchment-deep);
}
.ritual-steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px; top: 18px;
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.1rem;
}
.ritual-steps strong { color: var(--gold-light); font-weight: 600; }
.ritual-colour-text { color: currentColor; font-weight: 600; }
.ritual-system-text { color: var(--gold-light); font-weight: 600; }
.ritual-code-text { color: var(--gold); font-weight: 700; letter-spacing: 0.08em; font-family: 'Cormorant Garamond', serif; font-size: 1.1em; }
.ritual-note {
  background: rgba(201,151,58,0.12);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--gold-light);
  font-style: italic;
}
.ritual-note strong { color: var(--gold); font-style: normal; }

/* Actions */
.results-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

/* CTA */
.cta-band { margin-bottom: 50px; }
.cta-card {
  background: linear-gradient(135deg, var(--gold-pale) 0%, rgba(245,237,224,0.6) 100%);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  text-align: center;
}
.cta-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink);
  margin: 12px 0 14px;
}
.cta-card p {
  font-size: 0.95rem;
  color: var(--ink-mid);
  max-width: 520px;
  margin: 0 auto 22px;
  line-height: 1.7;
}

/* Source / disclaimer */
.source-box {
  margin-top: 48px;
  background: rgba(245,237,224,0.5);
  border: 1px solid rgba(201,151,58,0.2);
  border-radius: var(--radius-md);
  padding: 28px 32px;
}
.source-box h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
}
.source-box p {
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: 10px;
}
.source-box em { color: var(--gold); font-style: italic; }
.source-disclaimer {
  font-size: 0.82rem !important;
  color: var(--ink-soft) !important;
  font-style: italic;
  padding-top: 6px;
  border-top: 1px dashed rgba(201,151,58,0.25);
  margin-top: 14px !important;
}

/* ═══ FOOTER ═══ */
.site-footer {
  background: var(--ink);
  color: var(--parchment-deep);
  padding: 40px 24px 30px;
  text-align: center;
  margin-top: 40px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-inner p { font-size: 0.85rem; margin-bottom: 14px; }
.footer-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 0.85rem; color: var(--gold-light); transition: color var(--transition); }
.footer-links a:hover { color: var(--parchment); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 720px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 0.82rem; }
  .input-card { padding: 32px 24px; }
  .context-box { padding: 24px 22px; }
  .reveal-grid { grid-template-columns: 1fr; gap: 14px; }
  .ritual-box { padding: 32px 24px; }
  .ritual-steps li { padding: 18px 16px 18px 56px; font-size: 0.9rem; }
  .ritual-steps li::before { left: 14px; }
  .cta-card { padding: 30px 22px; }
  .source-box { padding: 22px 20px; }
}
@media (max-width: 480px) {
  .hero { padding: 40px 0 20px; }
  .hero h1 { font-size: 2rem; }
  .nav-links a { display: none; }
  .nav-links a:first-child { display: inline; }
}
