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

:root {
  --bg:          #07050f;
  --bg2:         #0c0917;
  --bg3:         #110e1f;
  --bgcard:      #0f0c1c;
  --purple:      #9b7fd4;
  --purple-dim:  rgba(155,127,212,0.14);
  --purple-glow: rgba(155,127,212,0.07);
  --purple-border:rgba(155,127,212,0.22);
  --purple-deep: #6b4fa0;
  --gold:        #c9a84c;
  --gold-dim:    rgba(201,168,76,0.12);
  --cream:       #ede8d8;
  --cream2:      #b8b0a0;
  --cream3:      #7a7268;
  --red-dim:     rgba(180,60,60,0.15);
  --teal:        #3aaf85;
  --border:      rgba(155,127,212,0.1);
  --border2:     rgba(155,127,212,0.18);
  --border3:     rgba(155,127,212,0.28);

  --f-display: 'Cinzel Decorative', serif;
  --f-title:   'Cinzel', serif;
  --f-body:    'Spectral', Georgia, serif;
  --f-ritual:  'UnifrakturMaguntia', 'IM Fell English SC', serif;
  --f-chomsky: 'Chomsky', 'UnifrakturMaguntia', serif;
  --f-mono:    'JetBrains Mono', monospace;

  --t: 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  --r: 8px;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--purple) var(--bg2);
}
html::-webkit-scrollbar { width: 3px; }
html::-webkit-scrollbar-track { background: var(--bg2); }
html::-webkit-scrollbar-thumb { background: var(--purple); }

body {
  font-family: var(--f-body);
  font-weight: 500;
  background: var(--bg);
  color: var(--cream);
  line-height: 1.75;
  letter-spacing: 0;
  overflow-x: hidden;
  cursor: none;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 76% 40%,
      rgba(232,220,190,0.10) 0%,
      rgba(155,127,212,0.08) 18%,
      rgba(42,31,66,0.14) 42%,
      transparent 55%),
    radial-gradient(ellipse 100% 60% at 50% 0%,
      rgba(155,127,212,0.04) 0%,
      transparent 55%),
    linear-gradient(115deg, rgba(7,5,15,0.2), rgba(0,0,0,0.36));
  pointer-events: none;
  z-index: 0;
  animation: callistoBreath 12s ease-in-out infinite;
}
@keyframes callistoBreath {
  0%,100% { opacity: .78; filter: saturate(.95); }
  50% { opacity: 1; filter: saturate(1.12); }
}

body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.036;
  pointer-events: none;
  z-index: 0;
}

#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--gold), var(--teal));
  box-shadow: 0 0 18px rgba(155,127,212,0.45);
  z-index: 10001;
  pointer-events: none;
}

.sigil-field {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  display: none;
}
.sigil-field span {
  position: absolute;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(220, 206, 255, 0.035);
  animation: sigilDrift 18s ease-in-out infinite;
}
.sigil-field span:nth-child(1) { top: 18%; left: 8%; animation-delay: -2s; }
.sigil-field span:nth-child(2) { top: 34%; right: 10%; animation-delay: -7s; }
.sigil-field span:nth-child(3) { bottom: 22%; left: 12%; animation-delay: -11s; }
.sigil-field span:nth-child(4) { bottom: 16%; right: 18%; animation-delay: -4s; }
.sigil-field span:nth-child(5) { top: 62%; left: 48%; animation-delay: -14s; }
@keyframes sigilDrift {
  0%,100% { transform: translateY(0) rotate(0deg); opacity: .18; }
  50% { transform: translateY(-22px) rotate(2deg); opacity: .45; }
}

.callisto-orbit {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  display: none;
}
.jupiter-haze {
  position: absolute;
  width: min(860px, 118vw);
  height: min(860px, 118vw);
  right: -34%;
  top: 14%;
  border-radius: 50%;
  background:
    linear-gradient(18deg,
      rgba(201,168,76,0.10) 0 12%,
      rgba(155,127,212,0.08) 12% 21%,
      rgba(55,38,86,0.10) 21% 33%,
      rgba(201,168,76,0.06) 33% 42%,
      rgba(10,6,18,0.04) 42% 100%),
    radial-gradient(circle at 42% 36%, rgba(232,220,190,0.08), transparent 45%);
  opacity: .28;
  filter: blur(1px);
  animation: jupiterDrift 34s ease-in-out infinite;
}
.callisto-moon {
  position: absolute;
  width: min(360px, 48vw);
  height: min(360px, 48vw);
  right: 6%;
  top: 18%;
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(232,220,190,0.08), rgba(155,127,212,0.06) 28%, rgba(7,5,15,0.02) 64%),
    radial-gradient(circle at 44% 42%, #3f3154 0%, #241936 42%, #120d1f 72%, transparent 73%);
  opacity: .16;
  box-shadow: 0 0 90px rgba(155,127,212,0.18);
  animation: callistoFloat 22s ease-in-out infinite;
}
@keyframes jupiterDrift {
  0%,100% { transform: translate3d(0,0,0) rotate(-2deg); }
  50% { transform: translate3d(-24px,18px,0) rotate(1deg); }
}
@keyframes callistoFloat {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-18px,22px,0) scale(1.035); }
}

#scroll-mist {
  position: fixed;
  inset: -24vh -16vw;
  z-index: 9000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  mix-blend-mode: lighten;
  transition: opacity .22s ease, visibility .22s ease;
}
#scroll-mist::before,
#scroll-mist::after,
#scroll-mist span {
  content: '';
  position: absolute;
  pointer-events: none;
}
#scroll-mist::before {
  inset: 0;
  background:
    radial-gradient(ellipse 62% 28% at 14% 44%, rgba(232,220,190,.23), transparent 72%),
    radial-gradient(ellipse 70% 32% at 86% 56%, rgba(155,127,212,.30), transparent 74%),
    linear-gradient(102deg, transparent 0 10%, rgba(155,127,212,.16) 29%, rgba(232,220,190,.13) 47%, rgba(7,5,15,.24) 64%, transparent 88%);
  filter: blur(2px);
  transform: translateX(-20%) scaleX(1.12);
}
#scroll-mist::after {
  left: 50%;
  top: 50%;
  width: min(760px, 92vw);
  height: min(760px, 92vw);
  border-radius: 50%;
  border: 1px solid rgba(232,220,190,.18);
  box-shadow:
    inset 0 0 54px rgba(155,127,212,.12),
    0 0 92px rgba(155,127,212,.16);
  transform: translate(-50%, -50%) rotate(45deg);
  opacity: .7;
}
#scroll-mist span {
  width: 62vw;
  height: 26vh;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(232,220,190,.26), rgba(155,127,212,.15) 42%, transparent 74%);
  filter: blur(20px);
  opacity: .82;
}
#scroll-mist span:nth-child(1) { left: -8vw; top: 18vh; }
#scroll-mist span:nth-child(2) { right: -12vw; top: 38vh; background: radial-gradient(ellipse at center, rgba(155,127,212,.32), rgba(232,220,190,.10) 40%, transparent 76%); }
#scroll-mist span:nth-child(3) { left: 18vw; bottom: 8vh; width: 78vw; opacity: .62; }
#scroll-mist span:nth-child(4) { left: 32vw; top: 28vh; width: 38vw; height: 38vw; border: 1px solid rgba(232,220,190,.13); background: radial-gradient(circle, transparent 0 46%, rgba(155,127,212,.10) 47% 49%, transparent 50%); filter: none; opacity: .55; }
#scroll-mist span:nth-child(5) { left: 46vw; top: 22vh; width: 18vw; height: 18vw; border: 1px solid rgba(201,168,76,.16); background: transparent; filter: none; opacity: .44; transform: rotate(45deg); }
body.mist-active #scroll-mist {
  opacity: 1;
  visibility: visible;
}
body.scrolling-mist #scroll-mist {
  opacity: .72;
  visibility: visible;
}
body.scrolling-mist #scroll-mist::before {
  animation: mistScrollPass 1.8s ease-in-out infinite alternate;
}
body.scrolling-mist #scroll-mist span {
  animation: mistScrollDrift 1.8s ease-in-out infinite alternate;
}
body.scrolling-mist #scroll-mist span:nth-child(2) { animation-delay: -.4s; }
body.scrolling-mist #scroll-mist span:nth-child(3) { animation-delay: -.8s; }
body.scrolling-mist #scroll-mist span:nth-child(4),
body.scrolling-mist #scroll-mist span:nth-child(5) { animation: mistScrollRune 2.4s ease-in-out infinite alternate; }
body.mist-active #scroll-mist::before {
  animation: mistPass 1.45s cubic-bezier(.18,.72,.24,1) both;
}
body.mist-active #scroll-mist::after {
  animation: mistSigil 1.45s ease both;
}
body.mist-active #scroll-mist span {
  animation: mistCurl 1.45s cubic-bezier(.2,.72,.2,1) both;
}
body.mist-active #scroll-mist span:nth-child(2) { animation-delay: .05s; }
body.mist-active #scroll-mist span:nth-child(3) { animation-delay: .10s; }
body.mist-active #scroll-mist span:nth-child(4) { animation: mistRune 1.45s ease both; animation-delay: .06s; }
body.mist-active #scroll-mist span:nth-child(5) { animation: mistRune 1.45s ease both; animation-delay: .16s; }
@keyframes mistPass {
  0% { transform: translateX(-28%) scaleX(1.12); opacity: 0; }
  22% { opacity: 1; }
  100% { transform: translateX(24%) scaleX(1.22); opacity: 0; }
}
@keyframes mistCurl {
  0% { transform: translate3d(-14vw, 12px, 0) scale(.92); opacity: 0; }
  32% { opacity: .86; }
  100% { transform: translate3d(16vw, -14px, 0) scale(1.16); opacity: 0; }
}
@keyframes mistSigil {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(30deg) scale(.84); }
  42% { opacity: .74; }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(62deg) scale(1.12); }
}
@keyframes mistRune {
  0% { opacity: 0; transform: rotate(34deg) scale(.82); }
  36% { opacity: .58; }
  100% { opacity: 0; transform: rotate(58deg) scale(1.2); }
}
@keyframes mistScrollPass {
  0% { transform: translateX(-12%) scaleX(1.08); opacity: .42; }
  100% { transform: translateX(8%) scaleX(1.16); opacity: .72; }
}
@keyframes mistScrollDrift {
  0% { transform: translate3d(-5vw, 5px, 0) scale(.98); opacity: .35; }
  100% { transform: translate3d(7vw, -6px, 0) scale(1.08); opacity: .66; }
}
@keyframes mistScrollRune {
  0% { opacity: .16; transform: rotate(40deg) scale(.96); }
  100% { opacity: .42; transform: rotate(52deg) scale(1.08); }
}

a { color: inherit; text-decoration: none; }
strong { color: var(--cream); font-weight: 700; }
em { color: var(--purple); font-style: normal; }

#cursor-ring {
  position: fixed;
  width: 24px; height: 24px;
  border: 1px solid rgba(155,127,212,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, border-color .2s, background .2s;
  mix-blend-mode: screen;
}
#cursor-dot {
  position: fixed;
  width: 4px; height: 4px;
  background: var(--purple);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
}
body.chover #cursor-ring {
  width: 40px; height: 40px;
  border-color: var(--gold);
  background: rgba(201,168,76,0.04);
}

.spider-layer {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}
.spider-thread {
  position: absolute;
  top: -8px;
  width: 1px;
  height: 170px;
  background: linear-gradient(to bottom, rgba(232,220,190,0.22), rgba(155,127,212,0.02));
  transform-origin: top center;
  animation: threadSway 7s ease-in-out infinite;
}
.spider-thread.s1 { left: 6%; height: 130px; animation-delay: -1s; }
.spider-thread.s2 { right: 12%; height: 190px; animation-delay: -4s; }
.spider-thread.s3 { left: 74%; height: 110px; animation-delay: -2.5s; opacity: .75; }
.spider {
  position: absolute;
  left: -6px;
  bottom: -10px;
  width: 13px;
  height: 10px;
  border-radius: 50%;
  background: rgba(7,5,15,0.92);
  border: 1px solid rgba(232,220,190,0.18);
  box-shadow: 0 0 12px rgba(155,127,212,0.20);
  animation: spiderDrop 9s ease-in-out infinite;
}
.spider::before,
.spider::after {
  content: '';
  position: absolute;
  left: -8px;
  top: 4px;
  width: 29px;
  height: 1px;
  background:
    linear-gradient(90deg, transparent 0 4px, rgba(232,220,190,0.36) 4px 8px, transparent 8px 11px, rgba(232,220,190,0.36) 11px 18px, transparent 18px 21px, rgba(232,220,190,0.36) 21px 25px, transparent 25px);
}
.spider::after { transform: rotate(22deg); }
.spider::before { transform: rotate(-22deg); }
@keyframes threadSway {
  0%,100% { transform: rotate(-1deg); }
  50% { transform: rotate(2.4deg); }
}
@keyframes spiderDrop {
  0%,100% { transform: translateY(0); }
  45% { transform: translateY(26px); }
  70% { transform: translateY(12px); }
}

.cobweb {
  position: fixed;
  width: 210px; height: 210px;
  pointer-events: none;
  z-index: 5;
  opacity: .8;
  filter: drop-shadow(0 0 12px rgba(155,127,212,0.16));
  animation: webShiver 9s ease-in-out infinite;
}
.cobweb-tl { top: 0; left: 0; }
.cobweb-tr { top: 0; right: 0; animation-delay: -3s; }
@keyframes webShiver {
  0%,100% { transform: translateY(0); opacity: .62; }
  50% { transform: translateY(-4px); opacity: .92; }
}

#loader {
  position: fixed; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(155,127,212,0.020) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg, rgba(232,220,190,0.012) 0 1px, transparent 1px 32px),
    radial-gradient(circle at 16% 24%, rgba(155,127,212,0.18), transparent 14%),
    radial-gradient(circle at 84% 70%, rgba(201,168,76,0.10), transparent 18%),
    radial-gradient(circle at 50% 44%, rgba(155,127,212,0.18), transparent 24%),
    radial-gradient(circle at 50% 50%, rgba(201,168,76,0.08), transparent 38%),
    linear-gradient(180deg, #030109, var(--bg));
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .7s ease, visibility .7s ease;
  overflow: hidden;
}
#loader .loader-inner::before,
#loader .loader-inner::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(520px, 86vw);
  height: min(520px, 86vw);
  transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid rgba(155,127,212,0.12);
  pointer-events: none;
  z-index: -1;
  animation: loaderTarotTurn 14s linear infinite;
}
#loader .loader-inner::after {
  width: min(380px, 68vw);
  height: min(380px, 68vw);
  border-color: rgba(232,220,190,0.10);
  border-radius: 50%;
  animation-duration: 18s;
  animation-direction: reverse;
}
#loader::before,
#loader::after {
  content: '';
  position: absolute;
  width: min(420px, 78vw);
  height: min(420px, 78vw);
  border-radius: 50%;
  border: 1px solid rgba(155,127,212,0.24);
  box-shadow: inset 0 0 55px rgba(155,127,212,0.08), 0 0 60px rgba(0,0,0,0.5);
  animation: loaderOrbit 5s linear infinite;
}
#loader::after {
  width: min(300px, 58vw);
  height: min(300px, 58vw);
  border-color: rgba(201,168,76,0.20);
  animation-duration: 7s;
  animation-direction: reverse;
}
#loader::before {
  background:
    conic-gradient(from 0deg, transparent 0 10deg, rgba(155,127,212,0.10) 10deg 11deg, transparent 11deg 45deg),
    radial-gradient(circle, transparent 52%, rgba(232,220,190,0.035) 53% 54%, transparent 55%);
}
#loader.gone { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-web-svg {
  position: absolute;
  width: min(240px, 42vw);
  height: min(240px, 42vw);
  top: 0;
  color: rgba(232,220,190,0.30);
  opacity: .72;
  pointer-events: none;
  animation: loaderWebSway 5.8s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(155,127,212,0.13));
}
.loader-web-tl { left: 0; }
.loader-web-tr {
  right: 0;
  transform: scaleX(-1);
  animation-delay: -2.2s;
}
.loader-tarot-glyphs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.loader-tarot-glyphs span {
  position: absolute;
  font-family: var(--f-title);
  color: rgba(232,220,190,.38);
  text-shadow:
    0 0 20px rgba(232,220,190,.16),
    0 0 34px rgba(155,127,212,.20);
  animation: loaderGlyphFloat 6.5s ease-in-out infinite;
}
.loader-tarot-glyphs span:nth-child(1) { left: 23%; top: 24%; font-size: 34px; animation-delay: -1s; }
.loader-tarot-glyphs span:nth-child(2) { left: 68%; top: 20%; font-size: 18px; animation-delay: -2.5s; }
.loader-tarot-glyphs span:nth-child(3) { left: 18%; bottom: 20%; font-size: 20px; animation-delay: -3.2s; color: rgba(201,168,76,.36); }
.loader-tarot-glyphs span:nth-child(4) { right: 20%; bottom: 23%; font-size: 28px; animation-delay: -4.1s; color: rgba(155,127,212,.44); }
.loader-tarot-glyphs span:nth-child(5) { right: 31%; top: 62%; font-size: 16px; animation-delay: -5s; }
.loader-inner { text-align: center; position: relative; z-index: 2; }
.loader-sigil {
  width: 132px;
  height: 132px;
  margin: 0 auto 22px;
  border: 1px solid rgba(232,220,190,0.20);
  border-radius: 50%;
  position: relative;
  animation: sigilTurn 8s linear infinite;
}
.loader-sigil::before,
.loader-sigil::after {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(155,127,212,0.30);
  transform: rotate(45deg);
}
.loader-sigil::after {
  inset: 34px;
  border-color: rgba(201,168,76,0.30);
  border-radius: 50%;
  transform: none;
}
.loader-sigil span {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 18px rgba(232,220,190,0.45);
}
.loader-sigil span:nth-child(1) { left: 10px; }
.loader-sigil span:nth-child(2) { right: 10px; }
.loader-sigil span:nth-child(3) { left: 50%; top: 10px; transform: translateX(-50%); background: var(--gold); }
.loader-name {
  font-family: var(--f-chomsky);
  font-size: clamp(32px, 7vw, 58px);
  color: var(--cream);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  text-shadow: 0 0 18px rgba(155,127,212,0.28), 0 0 42px rgba(0,0,0,0.8);
  animation: flickerIn 1.6s ease forwards, nameRitualGlow 2.8s ease-in-out infinite;
}
@keyframes flickerIn {
  0%,10%,12%,14%,90%,92%,94% { opacity: 0.4; }
  11%,13%,15%,89%,91%,93%,100% { opacity: 1; }
}
.loader-bar {
  width: 200px; height: 1px;
  background: var(--border);
  margin: 0 auto 16px;
  overflow: hidden;
}
.loader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple-deep), var(--purple), var(--gold));
  width: 0;
  animation: loadFill 2s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes loadFill { to { width: 100%; } }
@keyframes loaderTarotTurn {
  to { transform: translate(-50%, -50%) rotate(405deg); }
}
@keyframes loaderGlyphFloat {
  0%,100% { transform: translateY(0) rotate(0deg); opacity: .36; }
  50% { transform: translateY(-16px) rotate(12deg); opacity: .82; }
}
.loader-mono {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--cream3);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:.3} 50%{opacity:1} }
@keyframes loaderOrbit { to { transform: rotate(360deg); } }
@keyframes sigilTurn { to { transform: rotate(360deg); } }
@keyframes loaderWebSway {
  0%,100% { opacity: .34; filter: drop-shadow(0 0 0 rgba(155,127,212,0)); }
  50% { opacity: .62; filter: drop-shadow(0 0 12px rgba(155,127,212,0.14)); }
}
@keyframes nameRitualGlow {
  0%,100% { filter: drop-shadow(0 0 0 rgba(201,168,76,0)); }
  50% { filter: drop-shadow(0 0 10px rgba(201,168,76,0.22)); }
}

#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--purple);
  background: rgba(7,5,15,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background var(--t), box-shadow var(--t);
}
#navbar.scrolled {
  background: rgba(7,5,15,0.92);
  box-shadow: 0 0 24px rgba(155,127,212,0.12);
}

.nav-inner {
  max-width: 1080px; margin: 0 auto;
  padding: 16px 32px;
  display: flex; align-items: center; gap: 40px;
}

.nav-brand {
  font-family: var(--f-display);
  font-size: 18px;
  color: var(--cream);
  letter-spacing: 0.04em;
  transition: color var(--t);
}
.nav-brand:hover { color: var(--purple); }

.nav-menu {
  display: flex; gap: 32px;
  list-style: none; margin-left: auto;
}
.nl {
  font-family: var(--f-title);
  font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream2);
  transition: color var(--t);
  position: relative; padding-bottom: 2px;
}
.nl::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--purple);
  transition: width var(--t);
}
.nl:hover, .nl.active { color: var(--cream); }
.nl:hover::after, .nl.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-cmd {
  display: flex; align-items: center; gap: 6px;
  background: none; border: 1px solid var(--border2);
  border-radius: 6px; padding: 6px 10px;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--cream3); cursor: none;
  transition: all var(--t);
}
.nav-cmd:hover { border-color: var(--purple); color: var(--purple); }
kbd { font-size: 10px; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: none; padding: 4px;
}
.hamburger span { display: block; width: 20px; height: 1px; background: var(--cream2); }

.mobile-nav {
  display: none; flex-direction: column;
  padding: 14px 32px 18px;
  border-top: 1px solid var(--border);
  background: rgba(7,5,15,0.97);
}
.mobile-nav.open { display: flex; }
.mn-link {
  font-family: var(--f-title); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--cream2);
  padding: 10px 0; border-bottom: 1px solid var(--border);
  transition: color var(--t);
}
.mn-link:hover { color: var(--purple); }

#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  position: relative;
  padding: 120px 32px 80px;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -16%; right: -16%;
  width: min(860px, 104vw);
  height: min(860px, 104vw);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 32%, rgba(232,220,190,0.16) 0 2%, transparent 2.5%),
    radial-gradient(circle at 58% 30%, rgba(155,127,212,0.18) 0 6%, transparent 6.8%),
    radial-gradient(circle at 42% 66%, rgba(201,168,76,0.08) 0 8%, transparent 9%),
    radial-gradient(circle at 72% 56%, rgba(155,127,212,0.12) 0 5%, transparent 6%),
    radial-gradient(circle at 38% 42%,
      #3a2b54 0%,
      #241936 25%,
      #150f23 48%,
      #0c0817 68%,
      transparent 82%);
  opacity: 0.78;
  pointer-events: none;
  z-index: 0;
  filter: blur(.6px) drop-shadow(0 0 70px rgba(155,127,212,0.18));
  animation: callistoOrbit 16s ease-in-out infinite;
}
@keyframes callistoOrbit {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(10px) rotate(1.2deg); }
}

#hero::after {
  content: '';
  position: absolute;
  top: 4%; right: 2%;
  width: min(720px, 92vw);
  height: min(720px, 92vw);
  border-radius: 50%;
  background:
    linear-gradient(22deg, transparent 0 18%, rgba(232,220,190,0.020) 18% 19%, transparent 19% 42%, rgba(155,127,212,0.024) 42% 43%, transparent 43%),
    linear-gradient(118deg, transparent 0 28%, rgba(201,168,76,0.018) 28% 29%, transparent 29% 72%, rgba(155,127,212,0.018) 72% 73%, transparent 73%);
  opacity: .36;
  pointer-events: none;
  z-index: 0;
}

.moon-glow {
  position: absolute;
  top: -26%; right: -20%;
  width: min(1080px, 132vw);
  height: min(1080px, 132vw);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(155,127,212,0.06) 0%,
    rgba(107,79,160,0.03) 40%,
    transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: moonPulse 8s ease-in-out infinite;
}
@keyframes moonPulse {
  0%,100% { opacity: .8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

.crescent {
  position: absolute;
  top: 4%;
  left: clamp(-140px, -7vw, -42px);
  right: auto;
  width: min(430px, 48vw);
  pointer-events: none;
  z-index: 2;
  animation: crescentFloat 10s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(201,168,76,0.25))
          drop-shadow(0 0 40px rgba(155,127,212,0.12));
}
.left-moon-ornaments {
  position: absolute;
  left: 0;
  top: 0;
  width: min(420px, 44vw);
  height: 60vh;
  min-height: 420px;
  z-index: 2;
  pointer-events: none;
  opacity: .72;
  background:
    radial-gradient(circle at 18% 28%, rgba(155,127,212,0.18), transparent 16%),
    radial-gradient(circle at 34% 46%, rgba(201,168,76,0.10), transparent 18%),
    radial-gradient(circle at 8% 74%, rgba(232,220,190,0.11), transparent 12%);
}
.left-moon-ornaments::before,
.left-moon-ornaments::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(155,127,212,0.28);
  border-radius: 50%;
  filter: drop-shadow(0 0 14px rgba(155,127,212,0.12));
}
.left-moon-ornaments::before {
  width: 360px;
  height: 360px;
  left: -108px;
  top: 36px;
}
.left-moon-ornaments::after {
  width: 220px;
  height: 220px;
  left: -34px;
  top: 104px;
  border-color: rgba(201,168,76,0.16);
}
.left-moon-ornaments span {
  position: absolute;
  width: 1px;
  height: 150px;
  background: linear-gradient(to bottom, transparent, rgba(155,127,212,0.30), transparent);
  transform-origin: top center;
}
.left-moon-ornaments span:nth-child(1) { left: 88px; top: 36px; transform: rotate(-21deg); }
.left-moon-ornaments span:nth-child(2) { left: 182px; top: 20px; transform: rotate(2deg); }
.left-moon-ornaments span:nth-child(3) { left: 252px; top: 70px; transform: rotate(72deg); height: 120px; }
.left-moon-ornaments span:nth-child(4) { left: 42px; top: 170px; transform: rotate(92deg); height: 180px; }

.left-glow-field {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(660px, 48vw);
  z-index: 3;
  pointer-events: none;
  opacity: .92;
  overflow: hidden;
}
.left-glow-field::before,
.left-glow-field::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(155,127,212,0.30);
  box-shadow:
    0 0 28px rgba(155,127,212,0.13),
    inset 0 0 22px rgba(155,127,212,0.06);
  animation: leftAuraDrift 13s ease-in-out infinite;
}
.left-glow-field::before {
  width: 82px;
  height: 82px;
  left: 6%;
  top: 24%;
}
.left-glow-field::after {
  width: 138px;
  height: 138px;
  left: 22%;
  top: 6%;
  border-color: rgba(232,220,190,0.16);
  animation-delay: -5s;
}
.left-glow-field span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(232,220,190,0.78);
  box-shadow:
    0 0 16px rgba(232,220,190,0.34),
    0 0 34px rgba(155,127,212,0.18);
  animation: leftStarPulse 4.8s ease-in-out infinite;
}
.left-glow-field span:nth-child(1) { left: 9%; top: 18%; animation-delay: -.4s; }
.left-glow-field span:nth-child(2) { left: 24%; top: 38%; width: 4px; height: 4px; animation-delay: -1.2s; }
.left-glow-field span:nth-child(3) { left: 41%; top: 16%; width: 5px; height: 5px; animation-delay: -2s; }
.left-glow-field span:nth-child(4) { left: 12%; bottom: 24%; width: 3px; height: 3px; animation-delay: -2.8s; }
.left-glow-field span:nth-child(5) { left: 34%; bottom: 11%; width: 5px; height: 5px; animation-delay: -3.6s; }

@keyframes crescentFloat {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes leftAuraDrift {
  0%,100% { transform: translate3d(0,0,0) scale(1); opacity: .72; }
  50% { transform: translate3d(18px,-12px,0) scale(1.08); opacity: 1; }
}
@keyframes leftStarPulse {
  0%,100% { transform: scale(1); opacity: .45; }
  50% { transform: scale(1.55); opacity: .96; }
}
.hero-wrap {
  position: relative; z-index: 8;
  max-width: 760px; margin: 0 auto;
}

.spline-stage {
  position: absolute;
  top: 10%;
  right: max(-24px, 1vw);
  width: min(470px, 46vw);
  aspect-ratio: 1;
  z-index: 1;
  pointer-events: none;
  transform-style: preserve-3d;
  perspective: 900px;
  opacity: 1;
  filter: drop-shadow(0 0 60px rgba(155,127,212,0.26));
}
.spline-stage::before {
  content: '';
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(155,127,212,0.30);
  transform: rotateX(64deg) rotateZ(-18deg);
  border-radius: 50%;
  animation: splinePlane 12s ease-in-out infinite;
}
.spline-jupiter {
  position: absolute;
  width: 66%;
  height: 66%;
  right: -8%;
  top: 5%;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 36% 28%, rgba(255,245,205,0.42), transparent 28%),
    linear-gradient(150deg, rgba(232,220,190,0.22), rgba(155,127,212,0.14) 48%, rgba(7,5,15,0.12));
  box-shadow:
    inset -38px -34px 60px rgba(0,0,0,0.52),
    inset 22px 14px 34px rgba(255,242,190,0.10),
    0 0 120px rgba(155,127,212,0.28);
  animation: splineJupiter 18s ease-in-out infinite;
}
.jupiter-band {
  position: absolute;
  left: -16%;
  right: -16%;
  height: 12%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(201,168,76,0.07), rgba(232,220,190,0.18), rgba(155,127,212,0.08));
  filter: blur(.3px);
}
.jb1 { top: 28%; transform: rotate(-9deg); }
.jb2 { top: 47%; height: 9%; transform: rotate(5deg); background: linear-gradient(90deg, rgba(155,127,212,0.06), rgba(201,168,76,0.18), rgba(232,220,190,0.10)); }
.jb3 { top: 64%; transform: rotate(-4deg); opacity: .7; }
.spline-callisto {
  position: absolute;
  left: 6%;
  bottom: 13%;
  width: 34%;
  height: 34%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 24%, rgba(255,246,214,0.58), transparent 18%),
    radial-gradient(circle at 70% 62%, rgba(7,5,15,0.42), transparent 22%),
    radial-gradient(circle at 42% 48%, #b8a77f, #6f6080 42%, #171021 76%);
  box-shadow:
    inset -16px -20px 34px rgba(0,0,0,0.62),
    0 0 34px rgba(232,220,190,0.20),
    0 0 64px rgba(155,127,212,0.16);
  animation: splineCallisto 10s ease-in-out infinite;
}
.spline-callisto span {
  position: absolute;
  border-radius: 50%;
  background: rgba(7,5,15,0.28);
  box-shadow: inset 0 0 8px rgba(0,0,0,0.5);
}
.spline-callisto span:nth-child(1) { width: 16%; height: 16%; left: 34%; top: 25%; }
.spline-callisto span:nth-child(2) { width: 10%; height: 10%; left: 58%; top: 54%; }
.spline-callisto span:nth-child(3) { width: 7%; height: 7%; left: 25%; top: 66%; }
.spline-orbit-ring {
  position: absolute;
  border: 1px solid rgba(232,220,190,0.14);
  border-radius: 50%;
  transform-style: preserve-3d;
}
.spline-orbit-ring.r1 {
  width: 72%;
  height: 72%;
  top: 2%;
  right: -12%;
  transform: rotateX(68deg) rotateZ(28deg);
  animation: orbitSpin 22s linear infinite;
}
.spline-orbit-ring.r2 {
  width: 52%;
  height: 52%;
  top: 14%;
  right: -2%;
  border-color: rgba(155,127,212,0.28);
  transform: rotateX(62deg) rotateZ(-18deg);
  animation: orbitSpinReverse 18s linear infinite;
}
.spline-star {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(232,220,190,0.72);
  box-shadow: 0 0 16px rgba(232,220,190,0.42);
  animation: splineTwinkle 3.8s ease-in-out infinite;
}
.spline-star.s1 { left: 12%; top: 18%; animation-delay: -.6s; }
.spline-star.s2 { right: 6%; bottom: 24%; animation-delay: -1.7s; }
.spline-star.s3 { left: 43%; bottom: 7%; animation-delay: -2.4s; }

.lottie-ritual {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.lottie-orb,
.lottie-sigil {
  position: absolute;
  width: 92px;
  height: 92px;
  opacity: .34;
  filter: drop-shadow(0 0 16px rgba(155,127,212,0.24));
}
.lottie-orb { right: 27%; top: 15%; }
.lottie-sigil { right: 7%; top: 50%; width: 68px; height: 68px; opacity: .24; }
.lottie-orb::before,
.lottie-sigil::before {
  content: '';
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(232,220,190,0.22);
  border-radius: 50%;
  animation: lottieFallbackSpin 6s ease-in-out infinite;
}
.lottie-sigil::before {
  border-radius: 0;
  transform: rotate(45deg);
}
@keyframes splinePlane {
  0%,100% { opacity: .3; transform: rotateX(64deg) rotateZ(-18deg) scale(.96); }
  50% { opacity: .7; transform: rotateX(64deg) rotateZ(-8deg) scale(1.04); }
}
@keyframes splineJupiter {
  0%,100% { transform: translate3d(0,0,0) rotate(-4deg); }
  50% { transform: translate3d(-10px,12px,36px) rotate(3deg); }
}
@keyframes splineCallisto {
  0%,100% { transform: translate3d(0,0,52px) scale(1); }
  50% { transform: translate3d(16px,-16px,82px) scale(1.07); }
}
@keyframes orbitSpin {
  to { transform: rotateX(68deg) rotateZ(388deg); }
}
@keyframes orbitSpinReverse {
  to { transform: rotateX(62deg) rotateZ(-378deg); }
}
@keyframes splineTwinkle {
  0%,100% { opacity: .26; transform: scale(.7); }
  50% { opacity: 1; transform: scale(1.25); }
}
@keyframes lottieFallbackSpin {
  0%,100% { opacity: .45; transform: rotate(0deg) scale(.88); }
  50% { opacity: 1; transform: rotate(135deg) scale(1.06); }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 28px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  animation: blink 2.2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }

.hero-name {
  font-family: var(--f-display);
  font-size: clamp(42px, 9vw, 96px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin-bottom: 18px;
  text-shadow:
    0 0 60px rgba(155,127,212,0.3),
    0 0 120px rgba(155,127,212,0.12);
}
.hero-name-last { color: var(--purple); }

.hero-headline {
  font-family: var(--f-mono);
  font-size: clamp(12px, 1.6vw, 15px);
  color: var(--cream3); letter-spacing: 0.06em;
  margin-bottom: 24px;
  display: flex; align-items: center;
  justify-content: center; gap: 0; flex-wrap: wrap;
}
.hl-static { color: var(--cream3); }
.hl-type { color: var(--purple); }
.type-cursor { color: var(--purple); animation: blink 1s step-end infinite; }

.hero-bio {
  font-family: var(--f-body);
  font-size: clamp(15px, 2vw, 18px);
  color: var(--cream2);
  max-width: 580px; margin: 0 auto 36px;
  line-height: 1.75;
}

.hero-btns {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap; margin-bottom: 48px;
}

.btn-primary {
  font-family: var(--f-title);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--cream);
  color: var(--cream);
  padding: 13px 28px; border-radius: 40px;
  cursor: none; transition: all var(--t);
}
.btn-primary:hover {
  background: var(--cream);
  color: var(--bg);
  box-shadow: 0 0 24px rgba(237,232,216,0.2);
  transform: translateY(-2px);
}

.btn-secondary {
  font-family: var(--f-title);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--cream2);
  padding: 13px 28px; border-radius: 40px;
  cursor: none; transition: all var(--t);
}
.btn-secondary:hover {
  border-color: var(--purple);
  color: var(--purple);
  transform: translateY(-2px);
}
.btn-ghost {
  font-family: var(--f-title);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(155,127,212,0.42);
  color: var(--purple);
  padding: 13px 28px;
  border-radius: 40px;
  transition: all var(--t);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--cream);
  box-shadow: 0 0 24px rgba(155,127,212,0.20);
  transform: translateY(-2px);
}

.btn-term {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em;
  background: transparent; border: 1px solid var(--border);
  color: var(--cream3); padding: 13px 16px; border-radius: 40px;
  cursor: none; transition: all var(--t);
}
.btn-term:hover { border-color: var(--teal); color: var(--teal); }

.stack-eyebrow {
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.2em; color: var(--cream3);
  margin-bottom: 18px;
}

.hero-wrap::after {
  content: '';
  display: block;
  width: min(360px, 60vw);
  height: 1px;
  margin: 48px auto 0;
  background: linear-gradient(90deg, transparent, rgba(155,127,212,0.46), rgba(201,168,76,0.30), transparent);
  box-shadow: 0 0 22px rgba(155,127,212,0.22);
  animation: altarLine 4.8s ease-in-out infinite;
}
@keyframes altarLine {
  0%,100% { opacity: .45; transform: scaleX(.9); }
  50% { opacity: 1; transform: scaleX(1); }
}

.scroll-hint {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 9px;
  color: var(--cream3); letter-spacing: 0.18em;
  animation: scrollBounce 2.4s ease-in-out infinite;
  z-index: 2;
}
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--purple), transparent); }
@keyframes scrollBounce {
  0%,100%{transform:translateX(-50%) translateY(0)}
  50%{transform:translateX(-50%) translateY(7px)}
}

.section-wrap {
  max-width: 1080px; margin: 0 auto;
  padding: 100px 32px;
  position: relative; z-index: 8;
}
section:not(#hero) .section-wrap {
  opacity: 0;
  transform: translateY(46px) rotate(-0.7deg) scale(.985);
  filter: blur(5px);
  transition:
    opacity .72s cubic-bezier(.18,.86,.24,1),
    transform .72s cubic-bezier(.18,.86,.24,1),
    filter .72s cubic-bezier(.18,.86,.24,1);
}
section:not(#hero).page-in .section-wrap {
  opacity: 1;
  transform: translateY(0) rotate(0deg) scale(1);
  filter: blur(0);
}
section:not(#hero) .section-wrap::before {
  content: '';
  position: absolute;
  top: 74px;
  left: 22px;
  width: min(190px, 34vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,220,190,0.55), rgba(155,127,212,0.28), transparent);
  transform: translateX(-34px) scaleX(.2) rotate(-2deg);
  transform-origin: left center;
  opacity: 0;
  pointer-events: none;
}
section:not(#hero).page-in .section-wrap::before {
  animation: pageInkSwipe .9s cubic-bezier(.18,.86,.24,1) .08s both;
}
section:not(#hero) .section-wrap::after {
  content: '';
  position: absolute;
  top: -58px;
  left: 50%;
  width: min(820px, 86vw);
  height: 120px;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse 52% 55% at 50% 50%, rgba(232,220,190,0.10), rgba(155,127,212,0.10) 42%, transparent 74%),
    linear-gradient(90deg, transparent, rgba(155,127,212,0.18), rgba(232,220,190,0.10), transparent);
  filter: blur(15px);
}
section:not(#hero).page-in .section-wrap::after {
  animation: sectionFogRise 1.2s cubic-bezier(.18,.86,.24,1) both;
}
@keyframes pageInkSwipe {
  0% { opacity: 0; transform: translateX(-34px) scaleX(.2) rotate(-2deg); }
  45% { opacity: .85; }
  100% { opacity: .38; transform: translateX(0) scaleX(1) rotate(-2deg); }
}
@keyframes sectionFogRise {
  0% { opacity: 0; transform: translateX(-50%) translateY(18px) scaleX(.82); }
  40% { opacity: .74; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-16px) scaleX(1.06); }
}

section { position: relative; }
#about, #projects, #education, #contact {
  background:
    radial-gradient(circle at 84% 12%, rgba(155,127,212,0.075), transparent 30%),
    radial-gradient(circle at 10% 90%, rgba(201,168,76,0.035), transparent 24%),
    var(--bg2);
}
#experience, #skills {
  background:
    linear-gradient(180deg, rgba(7,5,15,0.96), rgba(12,9,23,0.98)),
    var(--bg);
}
section:not(#hero)::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18px 18px, rgba(232,220,190,0.16) 0 1px, transparent 2px),
    radial-gradient(circle at calc(100% - 20px) 20px, rgba(201,168,76,0.13) 0 1px, transparent 2px),
    linear-gradient(90deg, transparent 49.65%, rgba(155,127,212,0.055) 49.8% 50.2%, transparent 50.35%),
    linear-gradient(0deg, transparent 49.65%, rgba(201,168,76,0.038) 49.8% 50.2%, transparent 50.35%),
    radial-gradient(ellipse at 50% 8%, transparent 0 44%, rgba(155,127,212,0.10) 44.2% 44.55%, transparent 44.8%),
    radial-gradient(ellipse at 50% 92%, transparent 0 46%, rgba(201,168,76,0.065) 46.2% 46.5%, transparent 46.8%);
  background-size:
    180px 180px,
    180px 180px,
    260px 260px,
    260px 260px,
    760px 460px,
    860px 520px;
  opacity: .48;
  mix-blend-mode: screen;
  mask-image: linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  animation: tarotDrift 32s linear infinite;
}
section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(155,127,212,0.035) 1px, transparent 1px),
    linear-gradient(rgba(155,127,212,0.024) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: .34;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}


.section-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 56px;
}
.sec-num {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-grid;
  place-items: center;
  font-size: 0;
  color: var(--purple);
}
.sec-num::before,
.sec-num::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
.sec-num::before {
  inset: 6px;
  border: 1px solid rgba(155,127,212,0.42);
  transform: rotate(45deg);
  box-shadow: 0 0 18px rgba(155,127,212,0.16);
  animation: headerSigilSpin 8s ease-in-out infinite;
}
.sec-num::after {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(232,220,190,0.80);
  box-shadow:
    -5px 0 0 1px var(--bg2),
    0 0 16px rgba(232,220,190,0.18);
}
.sec-title {
  font-family: var(--f-title);
  font-size: 28px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream);
}
.sec-line { flex: 1; height: 1px; background: linear-gradient(to right, var(--border2), transparent); max-width: 280px; }
@keyframes headerSigilSpin {
  0%,100% { transform: rotate(45deg) scale(.92); opacity: .62; }
  50% { transform: rotate(135deg) scale(1.04); opacity: 1; }
}
@keyframes tarotDrift {
  0% { background-position: 0 0, 0 0, 0 0, 0 0, 50% 0, 50% 100%; }
  100% { background-position: 180px 180px, -180px 180px, 260px 0, 0 260px, 50% 460px, 50% -520px; }
}

.about-grid { display: grid; grid-template-columns: 1fr 280px; gap: 64px; align-items: start; }

.about-lead {
  font-family: var(--f-body); font-size: 20px;
  font-style: italic; color: var(--cream);
  line-height: 1.65; margin-bottom: 20px;
}
.about-body { font-size: 16px; color: var(--cream2); margin-bottom: 16px; line-height: 1.85; }
.about-body,
.pc-desc,
.pc-sub,
.pc-det-v,
.project-tab p,
.tl-bullets li,
.edu-desc,
.contact-sub,
.arcana-face p {
  font-family: var(--f-body);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.about-quote {
  border-left: 2px solid var(--purple);
  padding: 12px 20px; margin: 28px 0;
  font-style: italic; font-size: 16px;
  color: var(--cream2); line-height: 1.7;
  background: var(--purple-glow);
}
.about-meta {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--cream3); flex-wrap: wrap;
}
.about-meta svg { vertical-align: middle; margin-right: 4px; }
.open-badge {
  color: var(--teal); background: rgba(58,175,133,0.1);
  border: 1px solid rgba(58,175,133,0.25);
  padding: 2px 10px; border-radius: 20px;
}

.about-right { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.about-photo-wrap { position: relative; }
.about-photo-frame {
  width: 220px; height: 260px;
  border: 1px solid var(--purple-border);
  border-radius: 4px;
  background: var(--bgcard);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 22px 70px rgba(0,0,0,0.42), 0 0 36px rgba(155,127,212,0.12);
  animation: portraitBreathe 7s ease-in-out infinite;
}
.about-photo-frame::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 24% 16%, rgba(201,168,76,0.22), transparent 24%),
    linear-gradient(135deg, rgba(155,127,212,0.18), transparent 58%);
  mix-blend-mode: screen;
  z-index: 2;
  pointer-events: none;
}
.about-photo-frame::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(232,220,190,0.18);
  border-radius: 3px;
  z-index: 3;
  pointer-events: none;
}
.about-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
  filter: contrast(1.04) saturate(.92);
  z-index: 1;
}
.about-photo-inner { text-align: center; z-index: 0; }
.photo-cm {
  font-family: var(--f-display);
  font-size: 52px; color: var(--purple);
  opacity: 0.5; display: block; line-height: 1;
}
.photo-hint {
  font-family: var(--f-mono); font-size: 9px;
  color: var(--cream3); letter-spacing: 0.1em;
  margin-top: 8px; opacity: 0.6;
}
.photo-ornament {
  position: absolute; bottom: -12px; right: -10px;
  font-size: 22px; color: var(--gold); opacity: 0.6;
  animation: floatOrn 6s ease-in-out infinite;
}
@keyframes floatOrn { 0%,100%{transform:translateY(0) rotate(0)} 50%{transform:translateY(-6px) rotate(20deg)} }
@keyframes portraitBreathe {
  0%,100% { transform: translateY(0); border-color: var(--purple-border); }
  50% { transform: translateY(-5px); border-color: rgba(201,168,76,0.28); }
}

.about-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.about-tags span {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.06em;
  color: var(--cream3); border: 1px solid var(--border2);
  border-radius: 20px; padding: 4px 12px;
  transition: all var(--t);
}
.about-tags span:hover { border-color: var(--purple); color: var(--purple); }

.proj-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.pf-btn {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--border);
  color: var(--cream3); padding: 7px 16px; border-radius: 20px;
  cursor: none; transition: all var(--t);
}
.pf-btn:hover, .pf-btn.active { border-color: var(--purple); color: var(--purple); background: var(--purple-glow); }

.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.proj-card {
  background: var(--bgcard);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden; cursor: none;
  display: flex; flex-direction: column;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.proj-card:hover {
  border-color: var(--purple-border);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 24px rgba(155,127,212,0.08);
}
.proj-card.large { grid-column: 1 / -1; flex-direction: row; }
.proj-card.hidden { display: none; }

.pc-visual {
  position: relative;
  min-height: 180px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.proj-card.large .pc-visual { width: 280px; min-height: unset; }

.pc-visual-inner {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.pc-ext {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px; border-radius: 6px;
  background: rgba(0,0,0,0.4); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--cream2);
  transition: all var(--t);
}
.pc-ext:hover { background: var(--purple-dim); color: var(--purple); border-color: var(--purple); }

.keri-visual {
  background: linear-gradient(135deg,
    rgba(180,60,100,0.25) 0%,
    rgba(100,50,140,0.35) 50%,
    rgba(155,127,212,0.2) 100%);
}
.bi-visual {
  background: linear-gradient(135deg,
    rgba(60,100,40,0.2) 0%,
    rgba(242,200,17,0.12) 60%,
    rgba(40,80,30,0.2) 100%);
}
.auto-visual {
  background: linear-gradient(135deg,
    rgba(80,50,140,0.25) 0%,
    rgba(50,30,90,0.35) 100%);
}
.sec-visual {
  background: linear-gradient(135deg,
    rgba(140,40,40,0.2) 0%,
    rgba(60,20,20,0.35) 100%);
}

.pc-info { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.pc-cat { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream3); }
.pc-title { font-family: var(--f-title); font-size: 22px; letter-spacing: 0.04em; color: var(--cream); }
.pc-sub { font-family: var(--f-body); font-size: 15px; color: var(--cream2); }
.pc-desc { font-size: 14px; color: var(--cream2); line-height: 1.8; }
.pc-details { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid var(--border); }
.pc-det-row { display: grid; grid-template-columns: 60px 1fr; gap: 10px; font-size: 13px; }
.pc-det-l { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple); padding-top: 2px; }
.pc-det-v { font-family: var(--f-body); color: var(--cream2); line-height: 1.5; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-tags span {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.05em;
  color: var(--cream3); border: 1px solid var(--border);
  border-radius: 4px; padding: 3px 9px;
  transition: all var(--t);
}
.pc-tags span:hover { border-color: var(--purple); color: var(--purple); }
.pc-link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--cream2); border: 1px solid var(--border2);
  border-radius: 20px; padding: 8px 16px;
  cursor: none; transition: all var(--t); align-self: flex-start;
}
.pc-link-btn:hover { border-color: var(--purple); color: var(--purple); }
.pc-private-badge, .pc-wip-badge {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.1em;
  padding: 3px 10px; border-radius: 20px; align-self: flex-start;
}
.pc-private-badge { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(201,168,76,0.25); }
.pc-wip-badge { background: rgba(58,175,133,0.1); color: var(--teal); border: 1px solid rgba(58,175,133,0.25); }

.project-showcase {
  position: relative;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(155,127,212,0.04), transparent 36%),
    radial-gradient(circle at 78% 22%, rgba(201,168,76,0.06), transparent 30%);
  overflow: visible;
}
.project-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232,220,190,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,220,190,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
  pointer-events: none;
}
.project-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}
.project-tab {
  min-height: 300px;
  background:
    linear-gradient(180deg, rgba(7,5,16,0.82), rgba(4,8,7,0.68)),
    radial-gradient(circle at 12% 8%, rgba(58,175,133,0.10), transparent 28%);
  border: 1px solid rgba(58,175,133,0.28);
  border-radius: 8px;
  color: var(--cream3);
  padding: 26px 24px;
  text-align: left;
  cursor: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: color var(--t), background var(--t), box-shadow var(--t), transform var(--t);
}
.project-tab::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(232,220,190,0.08);
  border-radius: 4px;
  pointer-events: none;
}
.project-tab::after {
  content: '';
  position: absolute;
  inset: auto 24px 20px 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(58,175,133,0.04), rgba(58,175,133,0.82), rgba(201,168,76,0.36), transparent);
  opacity: 0;
  transform: scaleX(.25);
  transform-origin: left center;
  transition: opacity var(--t), transform var(--t);
}
.project-tab:nth-child(2) {
  border-color: rgba(201,168,76,0.26);
  background:
    linear-gradient(180deg, rgba(7,5,16,0.82), rgba(12,9,4,0.60)),
    radial-gradient(circle at 12% 8%, rgba(201,168,76,0.09), transparent 28%);
}
.project-tab:nth-child(3) {
  border-color: rgba(155,127,212,0.28);
  background:
    linear-gradient(180deg, rgba(7,5,16,0.82), rgba(7,4,14,0.64)),
    radial-gradient(circle at 12% 8%, rgba(155,127,212,0.10), transparent 28%);
}
.project-status {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--teal);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.project-status::before,
.project-status::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}
.project-status.progress { color: var(--gold); }
.project-status.study { color: var(--purple); }
.project-tab p {
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.75;
  color: rgba(184,176,160,0.95);
  margin: 0;
}
.project-tab strong {
  font-family: var(--f-title);
  font-size: 24px;
  color: var(--cream);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}
.project-tab-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}
.project-tab-tags em {
  font-family: var(--f-mono);
  font-size: 10px;
  font-style: normal;
  color: var(--teal);
  border: 1px solid rgba(58,175,133,0.28);
  border-radius: 2px;
  padding: 3px 8px;
}
.project-tab:nth-child(2) .project-tab-tags em { color: var(--gold); border-color: rgba(201,168,76,0.28); }
.project-tab:nth-child(3) .project-tab-tags em { color: var(--purple); border-color: rgba(155,127,212,0.30); }
.project-tab small {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--cream2);
  border: 1px solid rgba(58,175,133,0.36);
  padding: 7px 14px;
  background: rgba(58,175,133,0.08);
}
.project-tab:hover,
.project-tab.active {
  color: var(--cream);
  box-shadow: 0 24px 70px rgba(0,0,0,0.36), 0 0 26px rgba(58,175,133,0.10);
  transform: translateY(-6px);
}
.project-tab:hover::after,
.project-tab.active::after {
  opacity: 1;
  transform: scaleX(1);
}
.project-panel {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 34px;
  align-items: center;
  min-height: 390px;
  padding: 42px;
  border: 1px solid rgba(155,127,212,0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(155,127,212,0.07), transparent 36%),
    radial-gradient(circle at 78% 22%, rgba(201,168,76,0.10), transparent 30%),
    rgba(15,12,28,0.86);
  box-shadow: 0 28px 90px rgba(0,0,0,0.42), inset 0 0 80px rgba(155,127,212,0.025);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  position: absolute;
  inset: 0;
  transition: opacity .38s ease, transform .38s ease;
  overflow: hidden;
}
.project-panel.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
  inset: auto;
  animation: panelRitualIn .52s cubic-bezier(.2,.8,.2,1);
}
.project-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(232,220,190,0.18);
  border-radius: 50%;
  background: rgba(7,5,16,0.56);
  color: var(--cream2);
  font-family: var(--f-mono);
  font-size: 15px;
  line-height: 1;
  cursor: none;
  z-index: 5;
  transition: color var(--t), border-color var(--t), transform var(--t), background var(--t);
}
.project-close:hover {
  color: var(--gold);
  border-color: rgba(201,168,76,0.48);
  background: rgba(201,168,76,0.08);
  transform: rotate(90deg);
}
.project-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.project-art {
  position: relative;
  min-height: 280px;
  border: 1px solid rgba(232,220,190,0.10);
  border-radius: 8px;
  background: rgba(7,5,16,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
@keyframes panelRitualIn {
  0% { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(4px); }
  55% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.project-art::before {
  content: '';
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(155,127,212,0.16);
  border-radius: 50%;
}
.candle-body {
  width: 92px;
  height: 130px;
  border-radius: 12px 12px 18px 18px;
  background: linear-gradient(180deg, #36233c, #120b1d);
  border: 1px solid rgba(232,220,190,0.18);
  box-shadow: inset 0 14px 26px rgba(255,255,255,0.05), 0 26px 55px rgba(0,0,0,0.42);
}
.wax-ring {
  position: absolute;
  width: 122px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(232,220,190,0.28), transparent 65%);
  transform: translateY(62px);
}
.candle-flame {
  position: absolute;
  width: 34px;
  height: 56px;
  border-radius: 60% 40% 65% 35%;
  background: radial-gradient(circle at 42% 70%, #fff8d8, #c9a84c 42%, rgba(155,127,212,0.24) 72%);
  transform: translateY(-88px) rotate(6deg);
  filter: drop-shadow(0 0 22px rgba(201,168,76,0.55));
  animation: flameFlicker 1.8s ease-in-out infinite;
}
@keyframes flameFlicker {
  0%,100% { transform: translateY(-88px) rotate(6deg) scale(1); }
  45% { transform: translateY(-90px) rotate(-4deg) scale(.92,1.08); }
  70% { transform: translateY(-86px) rotate(2deg) scale(1.08,.96); }
}
.security-art {
  background: radial-gradient(circle at center, rgba(58,175,133,0.12), rgba(7,5,16,0.45) 62%);
}
.radar-ring {
  position: absolute;
  width: 84px;
  height: 84px;
  border: 1px solid rgba(58,175,133,0.40);
  border-radius: 50%;
  animation: radarPulse 3s ease-out infinite;
}
.radar-ring.r2 { animation-delay: 1.2s; }
.radar-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 26px rgba(58,175,133,0.65);
}
@keyframes radarPulse {
  from { transform: scale(.45); opacity: 1; }
  to { transform: scale(2.4); opacity: 0; }
}
.next-art {
  background: linear-gradient(135deg, rgba(155,127,212,0.08), rgba(7,5,16,0.5));
}
.code-slit {
  position: absolute;
  width: 170px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  animation: codeScan 2.8s ease-in-out infinite;
}
.code-slit.delay { animation-delay: 1.4s; }
.code-sigil {
  font-family: var(--f-mono);
  font-size: 34px;
  color: rgba(232,220,190,0.78);
  text-shadow: 0 0 26px rgba(155,127,212,0.32);
}
@keyframes codeScan {
  0%,100% { transform: translateY(-70px); opacity: .2; }
  50% { transform: translateY(70px); opacity: 1; }
}

.timeline { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 24px; padding-bottom: 40px; position: relative; }
.tl-dot {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1px solid var(--border2);
  background: var(--bg); flex-shrink: 0;
  margin-top: 22px; z-index: 1;
}
.featured-dot {
  border-color: var(--purple);
  background: var(--purple-dim);
  box-shadow: 0 0 10px rgba(155,127,212,0.4);
}
.tl-line {
  position: absolute; left: 4px; top: 32px; bottom: 0;
  width: 1px; background: var(--border);
}
.tl-item:last-child .tl-line { display: none; }

.tl-card {
  flex: 1; background: var(--bgcard);
  border: 1px solid var(--border);
  border-radius: var(--r); padding: 26px 28px;
  transition: border-color var(--t);
}
.tl-card:hover { border-color: var(--border2); }
.featured-card {
  border-color: var(--purple-dim);
  background: linear-gradient(135deg, rgba(155,127,212,0.04) 0%, var(--bgcard) 100%);
}
.featured-card:hover { border-color: rgba(155,127,212,0.28); }

.tl-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 8px; flex-wrap: wrap; }
.tl-icon {
  width: 38px; height: 38px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.eve-icon { background: var(--purple-dim); border: 1px solid var(--purple-border); color: var(--purple); }
.tl-info { flex: 1; }
.tl-role { font-family: var(--f-title); font-size: 17px; letter-spacing: 0.02em; color: var(--cream); }
.tl-company {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 12px; color: var(--purple); margin-top: 2px;
}
.tl-badge {
  font-size: 9px; color: var(--gold); border: 1px solid rgba(201,168,76,0.3);
  border-radius: 20px; padding: 1px 8px; background: var(--gold-dim); letter-spacing: 0.06em;
}
.tl-date { font-family: var(--f-mono); font-size: 11px; color: var(--cream3); white-space: nowrap; }
.tl-loc {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--cream3); margin-bottom: 18px;
}
.tl-bullets { list-style: none; margin-bottom: 16px; display: flex; flex-direction: column; gap: 9px; }
.tl-bullets li {
  font-size: 14px; color: var(--cream2);
  padding-left: 18px; position: relative; line-height: 1.75;
}
.tl-bullets li::before { content: '*'; position: absolute; left: 0; color: var(--purple); font-size: 9px; top: 4px; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-tags span {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.06em;
  color: var(--cream3); border: 1px solid var(--border); border-radius: 4px;
  padding: 3px 8px; transition: all var(--t);
}
.tl-tags span:hover { border-color: var(--purple); color: var(--purple); }

.edu-timeline {
  position: relative;
  display: grid;
  gap: 28px;
  max-width: 860px;
  margin: 0 auto 56px;
}
.edu-timeline::before {
  content: '';
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 50px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(201,168,76,0.62), rgba(155,127,212,0.34), transparent);
  box-shadow: 0 0 18px rgba(155,127,212,0.18);
}
.edu-card {
  position: relative;
  background: linear-gradient(180deg, rgba(15,12,28,0.96), rgba(7,5,15,0.94));
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 30px 28px 26px 96px;
  min-height: 170px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
  overflow: hidden;
}
.edu-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(232,220,190,0.10);
  border-radius: 4px;
  pointer-events: none;
}
.edu-card:hover {
  border-color: var(--border2);
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.28);
}
.edu-date {
  position: absolute;
  right: 28px;
  top: 24px;
  width: auto;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: right;
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(201,168,76,0.045);
}
.edu-icon {
  position: absolute;
  left: 32px;
  top: 34px;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 0 22px rgba(0,0,0,0.38);
}
.grad-icon { background: var(--purple-dim); border: 1px solid var(--purple-border); color: var(--purple); }
.hs-icon { background: var(--gold-dim); border: 1px solid rgba(201,168,76,0.25); color: var(--gold); }
.edu-body { flex: 1; position: relative; z-index: 1; }
.edu-type { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--purple); display: block; margin-bottom: 4px; }
.edu-degree { font-family: var(--f-title); font-size: 16px; letter-spacing: 0.02em; color: var(--cream); margin-bottom: 3px; }
.edu-school { font-family: var(--f-mono); font-size: 11px; color: var(--cream3); margin-bottom: 2px; }
.edu-period { font-family: var(--f-mono); font-size: 10px; color: var(--cream3); margin-bottom: 10px; }
.edu-desc { font-size: 13px; color: var(--cream2); line-height: 1.75; margin-bottom: 12px; }
.edu-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.edu-tags span { font-family: var(--f-mono); font-size: 9px; color: var(--cream3); border: 1px solid var(--border); border-radius: 4px; padding: 2px 8px; }

#skills .section-wrap {
  max-width: 1320px;
}
.arcana-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  perspective: 1200px;
}
.arcana-card {
  min-height: 418px;
  position: relative;
}
.arcana-card.reveal.vis .arcana-face {
  animation: cardDeal .82s cubic-bezier(.18,.86,.24,1) both, cardIdle 8s ease-in-out infinite .82s;
}
.arcana-face {
  height: 100%;
  min-height: 418px;
  position: relative;
  padding: 26px 22px 24px;
  border: 1px solid rgba(155,127,212,0.34);
  border-radius: 7px;
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(232,220,190,0.045) 49.9% 50.1%, transparent 50.3%),
    linear-gradient(0deg, transparent 49.7%, rgba(155,127,212,0.048) 49.9% 50.1%, transparent 50.3%),
    radial-gradient(circle at 50% 34%, rgba(155,127,212,0.15), transparent 27%),
    linear-gradient(180deg, rgba(15,12,28,0.96), rgba(7,5,15,0.96));
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  box-shadow: 0 24px 70px rgba(0,0,0,0.42), inset 0 0 70px rgba(155,127,212,0.035);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), border-color var(--t), box-shadow var(--t);
  animation: cardIdle 8s ease-in-out infinite;
}
.arcana-face::before,
.arcana-face::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
.arcana-face::before {
  inset: 12px;
  border: 1px solid rgba(232,220,190,0.16);
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 1px rgba(155,127,212,0.06),
    inset 0 0 34px rgba(0,0,0,0.22);
}
.arcana-face::after {
  left: 50%;
  top: 58px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(155,127,212,0.22);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow:
    0 0 0 22px rgba(155,127,212,0.018),
    inset 0 0 34px rgba(155,127,212,0.05);
  animation: arcanaHalo 7s ease-in-out infinite;
}
.arcana-card:hover .arcana-face {
  transform: rotateX(5deg) rotateY(-6deg) translateY(-10px);
  border-color: rgba(201,168,76,0.42);
  box-shadow: 0 34px 90px rgba(0,0,0,0.54), 0 0 34px rgba(155,127,212,0.10);
}
.amber-arcana { border-color: rgba(201,168,76,0.34); }
.teal-arcana { border-color: rgba(58,175,133,0.30); }
.silver-arcana { border-color: rgba(232,220,190,0.28); }
.arcana-icon {
  position: absolute;
  top: 68px;
  left: 50%;
  width: 126px;
  height: 126px;
  transform: translateX(-50%);
  z-index: 1;
  display: grid;
  place-items: center;
  color: rgba(232,220,190,0.78);
  filter: drop-shadow(0 0 18px rgba(155,127,212,0.18));
  animation: arcanaIconFloat 5.8s ease-in-out infinite;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), color var(--t), filter var(--t);
}
.arcana-icon::before,
.arcana-icon::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(232,220,190,0.12);
  pointer-events: none;
}
.arcana-icon::before {
  inset: -10px;
  border-radius: 50%;
  border-color: rgba(155,127,212,0.20);
}
.arcana-icon::after {
  inset: 9px;
  transform: rotate(45deg);
  border-color: rgba(201,168,76,0.12);
}
.arcana-icon svg {
  width: 74px;
  height: 74px;
  overflow: visible;
}
.arcana-icon path,
.arcana-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.amber-arcana .arcana-icon { color: rgba(232,209,135,0.82); filter: drop-shadow(0 0 18px rgba(201,168,76,0.18)); }
.teal-arcana .arcana-icon { color: rgba(113,220,180,0.76); filter: drop-shadow(0 0 18px rgba(58,175,133,0.16)); }
.silver-arcana .arcana-icon { color: rgba(232,220,190,0.84); filter: drop-shadow(0 0 18px rgba(232,220,190,0.12)); }
.arcana-card:hover .arcana-icon {
  transform: translateX(-50%) translateY(-10px) scale(1.08) rotate(-3deg);
}
.arcana-card:hover .arcana-icon::after {
  animation: iconDiamond 1.6s ease-in-out infinite;
}
.arcana-face h3 {
  font-family: var(--f-title);
  margin-top: 182px;
  color: var(--cream);
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
  text-align: center;
}
.arcana-face p {
  margin-top: 12px;
  color: var(--cream2);
  line-height: 1.7;
  font-size: 13px;
  position: relative;
  z-index: 1;
  text-align: center;
}
.arcana-skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  text-align: center;
}
.arcana-skills span {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--cream2);
  border: 1px solid rgba(155,127,212,0.28);
  background: rgba(155,127,212,0.055);
  border-radius: 3px;
  padding: 4px 8px;
  transition: transform var(--t), border-color var(--t), color var(--t), background var(--t);
}
.arcana-skills span:hover {
  transform: translateY(-3px);
  color: var(--cream);
  border-color: rgba(232,220,190,0.34);
  background: rgba(232,220,190,0.055);
}
.amber-arcana .arcana-skills span { border-color: rgba(201,168,76,0.26); background: rgba(201,168,76,0.045); }
.teal-arcana .arcana-skills span { border-color: rgba(58,175,133,0.24); background: rgba(58,175,133,0.045); }
.silver-arcana .arcana-skills span { border-color: rgba(232,220,190,0.20); background: rgba(232,220,190,0.035); }
@keyframes arcanaHalo {
  0%,100% { opacity: .62; transform: translateX(-50%) scale(.96) rotate(0deg); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.04) rotate(6deg); }
}
@keyframes arcanaIconFloat {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-7px); }
}
@keyframes cardIdle {
  0%,100% { background-position: 0 0, 0 0, 50% 34%, 0 0; }
  50% { background-position: 0 0, 0 0, 50% 38%, 0 0; }
}
@keyframes iconDiamond {
  0%,100% { transform: rotate(45deg) scale(1); opacity: .7; }
  50% { transform: rotate(135deg) scale(1.08); opacity: 1; }
}
@keyframes cardDeal {
  0% {
    opacity: 0;
    transform: translateY(28px) rotateX(12deg) scale(.96);
    filter: blur(5px);
  }
  65% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
    filter: blur(0);
  }
}

#curriculum {
  background:
    radial-gradient(circle at 16% 28%, rgba(201,168,76,0.08), transparent 24%),
    radial-gradient(circle at 82% 64%, rgba(155,127,212,0.12), transparent 30%),
    linear-gradient(180deg, rgba(12,9,23,0.98), rgba(7,5,15,0.98));
}
.curriculum-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border: 1px solid rgba(155,127,212,0.24);
  background:
    linear-gradient(135deg, rgba(15,12,28,0.86), rgba(7,5,15,0.92)),
    radial-gradient(circle at 20% 20%, rgba(155,127,212,0.12), transparent 30%);
  box-shadow: 0 22px 80px rgba(0,0,0,0.38);
  overflow: hidden;
}
.curriculum-panel::before {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(232,220,190,0.08);
  pointer-events: none;
}
.curriculum-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .62;
}
.curriculum-orbit span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(155,127,212,0.24);
  animation: orbitSpin 18s linear infinite;
}
.curriculum-orbit span:nth-child(1) { width: 280px; height: 280px; right: 10%; top: -110px; }
.curriculum-orbit span:nth-child(2) { width: 420px; height: 420px; left: -160px; bottom: -210px; border-color: rgba(201,168,76,0.16); animation-direction: reverse; }
.curriculum-orbit span:nth-child(3) { width: 120px; height: 120px; right: 34%; bottom: 12%; border-radius: 0; transform: rotate(45deg); animation-duration: 24s; }
.curriculum-copy,
.curriculum-card {
  position: relative;
  z-index: 2;
}
.curriculum-kicker {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.curriculum-copy h3 {
  font-family: var(--f-title);
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.12;
  color: var(--cream);
  margin-bottom: 18px;
}
.curriculum-copy p {
  max-width: 660px;
  color: var(--cream2);
  font-size: 17px;
  line-height: 1.72;
  margin-bottom: 22px;
}
.curriculum-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.curriculum-highlights span {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--cream2);
  border: 1px solid rgba(155,127,212,0.20);
  background: rgba(155,127,212,0.04);
  padding: 6px 10px;
  border-radius: 4px;
}
.curriculum-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  font-family: var(--f-title);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--cream);
  border: 1px solid var(--cream);
  border-radius: 999px;
  transition: all var(--t);
}
.curriculum-download:hover {
  transform: translateY(-2px);
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 28px rgba(201,168,76,0.22);
}
.curriculum-card {
  min-height: 310px;
  padding: 28px;
  border: 1px solid rgba(232,220,190,0.16);
  background:
    linear-gradient(180deg, rgba(237,232,216,0.06), transparent 32%),
    rgba(7,5,15,0.62);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: inset 0 0 44px rgba(155,127,212,0.08);
}
.curriculum-card-top {
  display: flex;
  gap: 8px;
  margin-bottom: 34px;
}
.curriculum-card-top span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 14px rgba(155,127,212,0.48);
}
.curriculum-card strong {
  font-family: var(--f-display);
  font-size: 28px;
  letter-spacing: .04em;
  color: var(--cream);
  margin-bottom: 8px;
}
.curriculum-card em {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream3);
  margin-bottom: 28px;
}
.curriculum-lines {
  display: grid;
  gap: 10px;
}
.curriculum-lines i {
  display: block;
  height: 8px;
  background: linear-gradient(90deg, rgba(155,127,212,0.28), rgba(232,220,190,0.18), transparent);
}
.curriculum-lines i:nth-child(2) { width: 86%; }
.curriculum-lines i:nth-child(3) { width: 72%; }
.curriculum-lines i:nth-child(4) { width: 92%; }
.curriculum-lines i:nth-child(5) { width: 64%; }

.contact-inner { text-align: center; max-width: 600px; margin: 0 auto; }
.contact-inner .sec-num { display: block; margin-bottom: 12px; }
.contact-title {
  font-family: var(--f-display);
  font-size: clamp(36px, 6vw, 64px);
  color: var(--cream); letter-spacing: -0.01em; margin-bottom: 20px;
  text-shadow: 0 0 40px rgba(155,127,212,0.2);
}
.contact-sub { font-size: 16px; color: var(--cream2); line-height: 1.85; margin-bottom: 40px; }
.contact-email {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-title); font-size: clamp(16px,2.5vw,22px);
  letter-spacing: 0.04em; color: var(--purple);
  margin-bottom: 40px; padding-bottom: 2px;
  border-bottom: 1px solid transparent; transition: all var(--t);
}
.contact-email:hover { border-color: var(--purple); opacity: .75; }
.contact-links { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.c-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--cream2); border: 1px solid var(--border2);
  border-radius: 20px; padding: 10px 20px; cursor: none; transition: all var(--t);
  background: none;
}
.c-link:hover { border-color: var(--purple); color: var(--purple); }

footer {
  border-top: 1px solid var(--border);
  padding: 20px 32px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  max-width: 100%;
}
.foot-brand { font-family: var(--f-display); font-size: 14px; color: var(--cream3); }
.foot-copy { font-family: var(--f-mono); font-size: 10px; color: var(--cream3); letter-spacing: 0.06em; }

#cmd-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 9998;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 90px; backdrop-filter: blur(6px);
}
#cmd-overlay.hidden { display: none; }
#cmd-box {
  width: 100%; max-width: 500px;
  background: var(--bgcard); border: 1px solid var(--border2);
  border-radius: var(--r); overflow: hidden;
  box-shadow: 0 28px 80px rgba(0,0,0,0.6);
  animation: popIn .18s cubic-bezier(.4,0,.2,1);
}
@keyframes popIn { from{opacity:0;transform:translateY(-8px) scale(.99)} to{opacity:1;transform:none} }
.cmd-top {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--cream3);
}
#cmd-input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--f-mono); font-size: 13px; color: var(--cream);
}
#cmd-input::placeholder { color: var(--cream3); }
.cmd-esc { font-family: var(--f-mono); font-size: 9px; background: var(--border); color: var(--cream3); border-radius: 3px; padding: 2px 6px; }
.cmd-list { list-style: none; padding: 6px; }
.cmd-row {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; color: var(--cream2);
  padding: 10px 12px; border-radius: 6px; cursor: none; transition: all .15s;
}
.cmd-row:hover { background: var(--purple-glow); color: var(--cream); }

#term-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 9997;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
#term-overlay.hidden { display: none; }
#term-box {
  width: 90%; max-width: 580px;
  background: #06040e; border: 1px solid var(--border2);
  border-radius: var(--r); overflow: hidden;
  box-shadow: 0 0 80px rgba(155,127,212,0.1);
  animation: popIn .22s cubic-bezier(.4,0,.2,1);
}
.term-bar { background: var(--bg2); padding: 10px 16px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); }
.term-dots { display: flex; gap: 6px; }
.td { width: 10px; height: 10px; border-radius: 50%; }
.td.r { background: #ff5f57; }
.td.y { background: #ffbd2e; }
.td.g { background: #28ca41; }
.term-title { font-family: var(--f-mono); font-size: 11px; color: var(--cream3); flex: 1; text-align: center; letter-spacing: 0.1em; }
.term-body { padding: 20px 22px; font-family: var(--f-mono); }
.term-body p { margin-bottom: 4px; font-size: 12px; line-height: 1.6; }
.tp { color: var(--purple); margin-right: 8px; }
.tc { color: var(--cream); }
.to { color: var(--cream2); margin-bottom: 12px; padding-left: 2px; font-size: 12px; }
.tg { color: var(--teal); }
.t-blink { animation: blink 1s step-end infinite; color: var(--teal); }
.term-foot { padding: 10px 22px 14px; border-top: 1px solid var(--border); }
#term-close {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em;
  color: var(--cream3); background: none; border: 1px solid var(--border);
  border-radius: 4px; padding: 5px 12px; cursor: none; transition: all var(--t);
}
#term-close:hover { border-color: #ff5f57; color: #ff5f57; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s cubic-bezier(.4,0,.2,1), transform .75s cubic-bezier(.4,0,.2,1); }
.reveal.vis { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }
.d5 { transition-delay: .40s; }
.d6 { transition-delay: .48s; }

@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-right { flex-direction: row; flex-wrap: wrap; justify-content: center; width: 100%; }
  .about-photo-wrap { margin-inline: auto; }
  .about-tags { width: 100%; }
  .proj-grid { grid-template-columns: 1fr; }
  .proj-card.large { flex-direction: column; }
  .proj-card.large .pc-visual { width: 100%; min-height: 180px; }
  .project-panel { grid-template-columns: 1fr; }
  .project-art { min-height: 220px; }
  .arcana-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .curriculum-panel { grid-template-columns: 1fr; }
  .curriculum-card { min-height: 230px; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-cmd kbd { display: none; }
  .hamburger { display: flex; }
  .nav-inner { padding: 14px 20px; }
  .section-wrap { padding: 72px 20px; }
  #hero { padding: 110px 20px 70px; }
  .spline-stage {
    width: min(300px, 78vw);
    right: -18%;
    top: 8%;
    opacity: .52;
  }
  .lottie-orb { left: 4%; top: 16%; width: 70px; height: 70px; }
  .lottie-sigil { right: 6%; bottom: 16%; }
  .about-right {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .about-photo-wrap {
    margin-inline: auto;
  }
  .about-photo {
    object-position: center 24%;
  }
  .edu-timeline::before { left: 30px; }
  .edu-card { padding: 78px 22px 24px 72px; }
  .edu-icon { left: 12px; top: 30px; }
  .edu-date { left: 72px; right: auto; top: 28px; }
  .arcana-grid { grid-template-columns: 1fr; }
  .crescent { width: min(300px, 68vw); top: 7%; left: -32%; right: auto; }
  .left-moon-ornaments { width: 70vw; opacity: .44; }
  .project-selector { grid-template-columns: 1fr; }
  .project-tab { min-height: 240px; border-right: 1px solid rgba(58,175,133,0.22); border-bottom: 1px solid rgba(58,175,133,0.22); }
  .project-panel { padding: 26px; }
  .curriculum-panel { padding: 24px; }
  .curriculum-copy p { font-size: 15px; }
  #cursor-ring, #cursor-dot { display: none; }
  body, a, button, .project-tab, .proj-card { cursor: default; }
}
@media (max-width: 480px) {
  .hero-btns { gap: 8px; }
  .proj-filters { gap: 6px; }
  .project-tab { min-height: 220px; }
  .project-panel { padding: 22px; }
  .about-photo-frame { width: 210px; height: 250px; }
  .curriculum-card { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  #scroll-mist { display: none !important; }
}

