/* ══════════════════════════════════════════════
   ZERO DEGREE ALCHEMY v2 — style.css
   Purple mystical / alchemical dark theme
══════════════════════════════════════════════ */

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

:root {
  --black:        #050508;
  --deep:         #080810;
  --dark:         #0c0c16;
  --dark-purple:  #120d1e;
  --border:       rgba(201,168,76,0.12);
  --border-mid:   rgba(201,168,76,0.22);

  --gold:         #C9A84C;
  --gold-light:   #E6C97A;
  --gold-dim:     #7A6230;

  --purple:       #7B3FA0;
  --purple-light: #A855D0;
  --purple-glow:  rgba(120,50,180,0.5);

  --text:         #E8E4DC;
  --text-muted:   #7a7470;
  --text-dim:     #504c48;

  --ff-display:   'Cinzel', serif;
  --ff-body:      'IM Fell English', serif;
  --ff-ui:        'Raleway', sans-serif;
  --ff-serif:     'Cormorant Garamond', serif;

  --nav-h: 74px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--text);
  font-family: var(--ff-body);
  overflow-x: hidden;
  cursor: default;
}
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Matrix canvas */
#matrixCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
}

/* ══════════════════════════════════════════════
   NAV
══════════════════════════════════════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 36px;
  background: rgba(5,5,8,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.logo-symbol { width: 32px; height: 44px; }
.nav-brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--ff-display);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  line-height: 1.7;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
  margin-right: 36px;
}
.nav-links a {
  font-family: var(--ff-ui);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  transition: color 0.22s;
}
.nav-links a:hover { color: var(--gold); }

.btn-member {
  font-family: var(--ff-ui);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 10px 20px;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s;
  flex-shrink: 0;
}
.btn-member:hover { background: var(--gold); color: var(--black); }
.plus { margin-right: 4px; opacity: 0.7; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1px;
  background: var(--gold);
  transition: all 0.3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  inset-inline: 0;
  z-index: 190;
  background: rgba(5,5,8,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 28px 28px 36px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  font-family: var(--ff-ui);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  padding: 15px 0;
  border-bottom: 1px solid rgba(201,168,76,0.06);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu a.gold { color: var(--gold); }

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* LEFT TEXT */
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 6% 80px 7%;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--ff-ui);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.24em;
  color: var(--text-muted);
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s ease forwards;
}
.eyebrow-line {
  display: inline-block;
  width: 36px; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.9s 0.35s ease forwards;
}
.hero-title em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  color: var(--purple-light);
}
.title-dot { color: var(--gold); }

.hero-desc {
  font-family: var(--ff-serif);
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 44px;
  max-width: 400px;
  opacity: 0;
  animation: fadeUp 0.9s 0.5s ease forwards;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 0.65s ease forwards;
}
.btn-portal {
  font-family: var(--ff-ui);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 14px 28px;
  transition: background 0.25s, color 0.25s;
}
.btn-portal:hover { background: var(--gold); color: var(--black); }
.btn-ghost {
  font-family: var(--ff-ui);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  transition: color 0.22s;
}
.btn-ghost:hover { color: var(--text); }

/* RIGHT SCENE */
.hero-scene {
  position: relative;
  overflow: hidden;
  background: var(--dark-purple);
  border-left: 1px solid var(--border);
}

/* Scene matrix side columns */
.scene-matrix-left,
.scene-matrix-right {
  position: absolute;
  top: 0; bottom: 0;
  width: 28px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  pointer-events: none;
}
.scene-matrix-left { left: 0; }
.scene-matrix-right { right: 0; }
.scene-matrix-left .mx-col,
.scene-matrix-right .mx-col {
  font-family: monospace;
  font-size: 9px;
  color: var(--gold-dim);
  line-height: 1.6;
  opacity: 0.5;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  animation: matrixScroll 8s linear infinite;
  white-space: nowrap;
}
@keyframes matrixScroll {
  from { transform: translateY(-60%); }
  to   { transform: translateY(0); }
}

/* ARCHWAY */
.archway-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.archway {
  position: relative;
  width: 340px;
  height: 460px;
}

/* Arch frames */
.arch-frame {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  border-radius: 200px 200px 0 0;
  border: 1px solid;
}
.arch-frame-outer {
  width: 320px; height: 400px;
  border-color: rgba(100,60,160,0.5);
  box-shadow:
    0 0 30px rgba(120,50,200,0.3),
    inset 0 0 30px rgba(80,20,140,0.2);
  background: linear-gradient(to bottom,
    rgba(40,10,80,0.8) 0%,
    rgba(20,5,40,0.9) 100%);
}
.arch-frame-mid {
  width: 280px; height: 360px;
  border-color: rgba(150,80,220,0.4);
  box-shadow: 0 0 20px rgba(150,80,220,0.2);
  bottom: 2px;
}
.arch-frame-inner {
  width: 240px; height: 310px;
  border-color: rgba(201,168,76,0.25);
  bottom: 4px;
}

/* Arch interior - deep portal */
.arch-interior {
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  width: 230px; height: 300px;
  border-radius: 180px 180px 0 0;
  overflow: hidden;
}
.portal-depth {
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(160,80,240,0.6) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(80,20,160,0.8) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(80,20,180,0.4), rgba(20,5,60,0.95));
  position: relative;
}
.portal-glow {
  position: absolute;
  top: 10%; left: 20%;
  width: 60%; height: 40%;
  background: radial-gradient(ellipse, rgba(200,150,255,0.4) 0%, transparent 70%);
  filter: blur(12px);
  animation: portalBreath 4s ease-in-out infinite alternate;
}
@keyframes portalBreath {
  0%   { opacity: 0.5; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.15); }
}
.portal-path {
  position: absolute;
  bottom: 0; left: 30%;
  width: 40%; height: 100%;
  background: linear-gradient(to top,
    rgba(100,40,200,0.3) 0%,
    rgba(180,120,255,0.15) 50%,
    transparent 100%);
}
.path-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220,180,255,0.9), rgba(150,80,220,0.4));
  filter: blur(3px);
  animation: orbFloat 3s ease-in-out infinite alternate;
}
.path-orb-1 { width:10px;height:10px; bottom:20%;left:44%; animation-delay:0s;}
.path-orb-2 { width:7px;height:7px; bottom:40%;left:47%; animation-delay:.8s;}
.path-orb-3 { width:5px;height:5px; bottom:60%;left:46%; animation-delay:1.6s;}
@keyframes orbFloat {
  0%   { opacity:0.6; transform:translateY(0); }
  100% { opacity:1;   transform:translateY(-8px); }
}

/* Roses */
.roses { position: absolute; bottom: 0; }
.roses-left  { left: -30px; }
.roses-right { right: -30px; }
.rose {
  position: absolute;
  border-radius: 50% 50% 40% 60%;
  background: radial-gradient(circle at 40% 40%, #8B2060, #4a0030);
  box-shadow: 0 0 8px rgba(140,30,100,0.5);
}
.roses-left .r1  { width:28px;height:28px; bottom:80px; left:20px; transform:rotate(-15deg);}
.roses-left .r2  { width:22px;height:22px; bottom:50px; left:0px; transform:rotate(10deg); background:radial-gradient(circle at 40% 40%,#702050,#380028);}
.roses-left .r3  { width:18px;height:18px; bottom:110px;left:5px; transform:rotate(-30deg);}
.roses-right .r1 { width:26px;height:26px; bottom:70px; right:20px;transform:rotate(15deg);}
.roses-right .r2 { width:20px;height:20px; bottom:100px;right:5px; transform:rotate(-10deg);}

.leaf {
  position: absolute;
  background: #1a3d20;
  border-radius: 50% 0 50% 0;
  opacity: 0.7;
}
.roses-left  .l1 { width:20px;height:12px; bottom:70px;left:30px; transform:rotate(-40deg);}
.roses-left  .l2 { width:16px;height:10px; bottom:40px;left:12px; transform:rotate(20deg);}
.roses-right .l1 { width:18px;height:11px; bottom:60px;right:30px;transform:rotate(40deg);}

/* Vines */
.vines {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* Butterflies */
.butterfly {
  position: absolute;
  z-index: 5;
  pointer-events: none;
}
.butterfly svg { width: 100%; height: 100%; }
.bf-1 { width:44px;height:32px; top:18%;left:8%; animation: bfFloat 4s ease-in-out infinite alternate, bfFlap 0.4s ease-in-out infinite alternate;}
.bf-2 { width:34px;height:26px; top:12%;right:10%; animation: bfFloat 5s 1s ease-in-out infinite alternate, bfFlap 0.35s 0.1s ease-in-out infinite alternate;}
.bf-3 { width:40px;height:30px; top:55%;right:5%; animation: bfFloat 3.5s 0.5s ease-in-out infinite alternate, bfFlap 0.45s ease-in-out infinite alternate;}
@keyframes bfFloat {
  0%   { transform: translate(0,0) rotate(-5deg); }
  100% { transform: translate(12px,-14px) rotate(5deg); }
}
@keyframes bfFlap {
  0%   { transform: scaleX(1); }
  100% { transform: scaleX(0.7); }
}

/* Mercury symbol in scene */
.scene-mercury {
  position: absolute;
  top: 8%;
  right: 14%;
  width: 36px;
  opacity: 0.6;
  animation: sigilFloat 5s ease-in-out infinite alternate;
  z-index: 4;
}
@keyframes sigilFloat {
  0%   { transform: translateY(0) rotate(-3deg); }
  100% { transform: translateY(-10px) rotate(3deg); }
}

/* Pocket clock */
.pocket-clock {
  position: absolute;
  bottom: 12%;
  left: 8%;
  width: 72px;
  z-index: 4;
  animation: clockSway 6s ease-in-out infinite alternate;
}
.pocket-clock svg { width: 100%; }
@keyframes clockSway {
  0%   { transform: rotate(-4deg) translateY(0); }
  100% { transform: rotate(4deg) translateY(-6px); }
}

/* Eat Me card */
.eat-me-card {
  position: absolute;
  bottom: 10%;
  right: 4%;
  z-index: 10;
  animation: cardFloat 4s ease-in-out infinite alternate;
}
@keyframes cardFloat {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}
.eat-me-inner {
  position: relative;
  background: rgba(10,5,20,0.92);
  border: 1px solid var(--gold-dim);
  padding: 16px 22px 18px;
  min-width: 170px;
  text-align: center;
}
.eat-me-bottle {
  width: 16px; height: 28px;
  background: linear-gradient(to bottom, rgba(150,80,220,0.6), rgba(80,20,140,0.8));
  border: 1px solid var(--gold-dim);
  border-radius: 4px 4px 6px 6px;
  margin: 0 auto 8px;
  position: relative;
}
.eat-me-bottle::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 6px;
  border: 1px solid var(--gold-dim);
  border-radius: 3px 3px 0 0;
  background: rgba(80,20,140,0.6);
}
.eat-me-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--text);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 6px;
}
.key-icon { font-style: normal; font-size: 14px; }
.eat-me-sub {
  font-family: var(--ff-ui);
  font-size: 7.5px;
  letter-spacing: 0.22em;
  color: var(--gold-dim);
}
.eat-me-border-tl,
.eat-me-border-br {
  position: absolute;
  width: 12px; height: 12px;
  border-color: var(--gold);
  border-style: solid;
}
.eat-me-border-tl { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.eat-me-border-br { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

/* ══════════════════════════════════════════════
   PILLARS
══════════════════════════════════════════════ */
.pillars {
  position: relative;
  z-index: 1;
  background: linear-gradient(to bottom, var(--dark-purple), var(--deep));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 70px 6%;
}

.pillars-geometry {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.geo-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.08);
}
.gc-1 { width:500px;height:500px; top:-200px; left:-150px; }
.gc-2 { width:400px;height:400px; bottom:-160px; right:-80px; }

.pillars-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.pillar {
  background: rgba(12,10,22,0.95);
  padding: 48px 32px 44px;
  text-align: center;
  transition: background 0.3s;
}
.pillar:hover { background: rgba(20,12,35,0.98); }

.pillar-icon-wrap {
  width: 60px; height: 60px;
  margin: 0 auto 24px;
}
.pillar-icon-wrap svg { width: 100%; height: 100%; }

.pillar h3 {
  font-family: var(--ff-ui);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--text);
  margin-bottom: 14px;
}
.pillar p {
  font-family: var(--ff-serif);
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════
   AS ABOVE SO BELOW
══════════════════════════════════════════════ */
.asabove {
  position: relative;
  z-index: 1;
  background: var(--deep);
  border-top: 1px solid var(--border);
  padding: 80px 6% 90px;
  overflow: hidden;
  text-align: center;
}

.asabove-geometry {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
}
.geo-svg {
  width: 340px;
  flex-shrink: 0;
  opacity: 0.6;
}
.geo-left  { margin-left: -80px; }
.geo-right { margin-right: -80px; transform: scaleX(-1); }

.asabove-content {
  position: relative;
  z-index: 2;
}
.asabove-mercury {
  margin: 0 auto 20px;
  width: 32px;
  opacity: 0.7;
}
.asabove-mercury svg { width: 100%; }

.asabove-headline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 18px;
}
.asabove-arrow {
  font-family: var(--ff-display);
  font-size: 20px;
  color: var(--gold-dim);
  opacity: 0.6;
}
.asabove-headline h2 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.asabove-sub {
  font-family: var(--ff-ui);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  font-weight: 300;
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer {
  position: relative;
  z-index: 1;
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 40px 6% 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-ui);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  transition: color 0.22s;
}
.footer-nav a:hover { color: var(--gold); }
.footer-nav svg { flex-shrink: 0; }

.footer-copy {
  font-family: var(--ff-ui);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

/* ══════════════════════════════════════════════
   REVEAL ANIMATION
══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.85s ease forwards;
  animation-play-state: paused;
}
.reveal.visible { animation-play-state: running; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; min-height: unset; }
  .hero-text { padding: 60px 7% 40px; }
  .hero-scene {
    height: 500px;
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .eat-me-card { right: 6%; bottom: 8%; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-links, .btn-member { display: none; }
  .hamburger { display: flex; }
  .nav { padding: 0 20px; }

  .hero-title { font-size: 38px; }
  .archway { width: 260px; height: 360px; }
  .arch-frame-outer { width: 240px; height: 300px; }
  .arch-frame-mid  { width: 206px; height: 264px; }
  .arch-frame-inner{ width: 174px; height: 228px; }
  .arch-interior   { width: 166px; height: 222px; }

  .asabove-headline { flex-direction: column; gap: 8px; }
  .asabove-arrow { display: none; }
}

@media (max-width: 500px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .hero-scene { height: 420px; }
  .eat-me-card { display: none; }
}
