:root {
  --ink: #090a22;
  --gold: #ffc400;
  --deep-gold: #e87500;
  --orange: #ff6a1f;
  --green: #00a260;
  --cream: #fff3b4;
  --site-bg: #070604;
}

/* ================================
   GLOBAL RESET
================================ */

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

html,
body {
  width: 100%;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--site-bg);
  color: #ffffff;
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

img,
svg,
canvas {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ================================
   INTRO SCREEN
================================ */

.loading-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: grid;
  place-items: center;

  overflow: hidden;

  background:
    radial-gradient(circle at 50% 46%, rgba(255,255,255,.92) 0%, rgba(255,239,125,.62) 13%, transparent 31%),
    radial-gradient(circle at center, #fff35b 0%, #ffc400 34%, #f59a00 68%, #c95700 100%);
}

.loading-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;

  background:
    radial-gradient(circle at center, transparent 0%, transparent 48%, rgba(61, 20, 0, .22) 100%),
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 28%, rgba(0,0,0,.12));
}

.loading-intro.remove {
  display: none;
  pointer-events: none;
}

/* ================================
   INTRO CANVAS PARTICLES
================================ */

#particleCanvas {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* ================================
   INTRO BACKGROUND EFFECTS
================================ */

.liquid-bg {
  position: absolute;
  inset: -20%;
  z-index: 0;

  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.22), transparent 24%),
    radial-gradient(circle at 72% 64%, rgba(255,255,255,.18), transparent 28%),
    conic-gradient(from 90deg at 50% 50%, rgba(255,255,255,.18), transparent, rgba(255,106,31,.22), transparent, rgba(255,255,255,.16));

  filter: blur(42px);
  animation: liquidMove 8s ease-in-out infinite alternate;
}

.aura {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.aura-one {
  width: min(840px, 80vw);
  height: min(840px, 80vw);
  z-index: 1;

  background: radial-gradient(circle, rgba(255,255,255,.78), rgba(255,237,99,.36) 35%, transparent 68%);
  filter: blur(38px);

  opacity: 0;
  animation:
    auraReveal 1.2s ease forwards .2s,
    auraPulse 3.4s ease-in-out infinite 1.4s;
}

.aura-two {
  width: min(520px, 50vw);
  height: min(520px, 50vw);
  z-index: 1;

  background: radial-gradient(circle, rgba(255,255,255,.58), transparent 65%);
  filter: blur(26px);

  opacity: .55;
  animation: auraPulseSmall 2.8s ease-in-out infinite;
}

.smoke {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  z-index: 1;

  opacity: .42;
  mix-blend-mode: screen;
  filter: blur(52px);

  background: radial-gradient(circle, rgba(255,255,255,.38), rgba(255,255,255,.13) 34%, transparent 68%);
}

.smoke-left {
  left: 5vw;
  top: 18vh;
  animation: smokeLeft 8s ease-in-out infinite;
}

.smoke-right {
  right: 3vw;
  top: 22vh;
  animation: smokeRight 9s ease-in-out infinite;
}

/* ================================
   INTRO LOGO
================================ */

.logo-stage {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 8;

  width: min(900px, 88vw);

  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;
}

.logo-shell {
  position: relative;
  filter: drop-shadow(0 28px 38px rgba(79, 31, 0, .27));
}

.ananda-logo {
  width: 100%;
  display: block;
  overflow: visible;
}

/* SVG colouring */

.arch-part path,
.a-part path,
.dots-part path,
.line-part path {
  fill: url(#introInk);
}

.orange-part path {
  fill: url(#introOrange);
}

.stem-part path,
.leaf-part path {
  fill: url(#introLeaf);
}

.leaf-highlight path {
  fill: rgba(255,255,255,.9);
  opacity: 0;
  animation: highlightIn .35s ease forwards 3.35s;
}

/* SVG animation sequence */

.line-part {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  animation: lineReveal .9s cubic-bezier(.76, 0, .24, 1) forwards .2s;
}

.arch-part {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  animation: archReveal 1.1s cubic-bezier(.76, 0, .24, 1) forwards .65s;
}

.dots-part {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(.2);
  animation: dotsPop .48s cubic-bezier(.16, 1, .3, 1) forwards 1.55s;
}

.a-part {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: translateY(14px) scale(.82);
  filter: blur(14px);
  animation: aReveal .9s cubic-bezier(.16, 1, .3, 1) forwards 1.45s;
}

.smoke-trail {
  fill: none;
  stroke: rgba(255,255,255,.62);
  stroke-width: 22;
  stroke-linecap: round;
  stroke-dasharray: 210;
  stroke-dashoffset: 210;
  opacity: 0;
  filter: url(#smokeBlur);
  animation:
    smokeTrail 1.2s ease forwards 2s,
    smokeBreathe 3s ease-in-out infinite 3s;
}

.orange-part {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  filter: url(#logoGlow);
  animation: orangeFlow 1.05s cubic-bezier(.76, 0, .24, 1) forwards 2.05s;
}

.orange-shine {
  fill: none;
  stroke: rgba(255,255,255,.9);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 32 180;
  stroke-dashoffset: 210;
  opacity: 0;
  filter: blur(.7px);
  animation: orangeShine 1.2s ease forwards 2.85s;
}

.stem-part {
  opacity: 0;
  clip-path: inset(100% 0 0 0);
  animation: stemGrow .8s ease forwards 2.55s;
}

.leaf {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(.1) rotate(-8deg);
  filter: drop-shadow(0 0 8px rgba(255,255,255,.35));
  animation: leafGrow .42s cubic-bezier(.16, 1, .3, 1) forwards;
  animation-delay: calc(2.82s + (var(--i) * .045s));
}

/* Floor shine */

.floor-shine {
  position: absolute;
  left: 11%;
  right: 11%;
  bottom: 8.5%;
  height: 2px;
  z-index: -1;

  transform: scaleX(0);
  transform-origin: center;

  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent);
  box-shadow: 0 0 26px rgba(255,255,255,.92);

  animation:
    floorShine 1s cubic-bezier(.76, 0, .24, 1) forwards .2s,
    floorPulse 2.4s ease-in-out infinite 1.5s;
}

/* Intro text */

.intro-copy {
  position: absolute;
  left: 50%;
  bottom: -44px;

  display: flex;
  align-items: center;
  gap: 24px;

  opacity: 0;
  transform: translateX(-50%) translateY(14px);

  animation: copyReveal .85s ease forwards 3.8s;
}

.intro-copy p {
  color: #101010;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 10px;
  white-space: nowrap;
}

.intro-copy span {
  width: 76px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16,16,16,.75), transparent);
}


/* ================================
   KEYFRAMES
================================ */

@keyframes liquidMove {
  to {
    transform: translate3d(4%, -3%, 0) rotate(8deg) scale(1.08);
  }
}

@keyframes auraReveal {
  to {
    opacity: 1;
  }
}

@keyframes auraPulse {
  0%, 100% {
    transform: scale(.94);
    opacity: .66;
  }

  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@keyframes auraPulseSmall {
  0%, 100% {
    transform: scale(.9);
    opacity: .38;
  }

  50% {
    transform: scale(1.08);
    opacity: .7;
  }
}

@keyframes smokeLeft {
  0%, 100% {
    transform: translate(0,0) scale(1);
    opacity: .28;
  }

  50% {
    transform: translate(120px,-52px) scale(1.3);
    opacity: .56;
  }
}

@keyframes smokeRight {
  0%, 100% {
    transform: translate(0,0) scale(1);
    opacity: .28;
  }

  50% {
    transform: translate(-125px,50px) scale(1.34);
    opacity: .58;
  }
}

@keyframes lineReveal {
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes archReveal {
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes dotsPop {
  0% {
    opacity: 0;
    transform: scale(.2);
  }

  70% {
    opacity: 1;
    transform: scale(1.2);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes aReveal {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(.82);
    filter: blur(14px);
  }

  70% {
    opacity: 1;
    transform: translateY(0) scale(1.04);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes smokeTrail {
  0% {
    opacity: 0;
    stroke-dashoffset: 210;
  }

  100% {
    opacity: .9;
    stroke-dashoffset: 0;
  }
}

@keyframes smokeBreathe {
  0%, 100% {
    opacity: .2;
  }

  50% {
    opacity: .7;
  }
}

@keyframes orangeFlow {
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes orangeShine {
  0% {
    opacity: 0;
    stroke-dashoffset: 210;
  }

  15% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    stroke-dashoffset: 0;
  }
}

@keyframes stemGrow {
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes leafGrow {
  0% {
    opacity: 0;
    transform: scale(.1) rotate(-8deg);
  }

  75% {
    opacity: 1;
    transform: scale(1.13) rotate(2deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes highlightIn {
  to {
    opacity: .72;
  }
}

@keyframes floorShine {
  to {
    transform: scaleX(1);
  }
}

@keyframes floorPulse {
  0%, 100% {
    opacity: .55;
    filter: blur(0);
  }

  50% {
    opacity: 1;
    filter: blur(.8px);
  }
}

@keyframes copyReveal {
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Loading intro responsiveness only */
@media (max-width: 768px) {
  .logo-stage { width: 96vw; }
  .intro-copy { bottom: -28px; gap: 12px; }
  .intro-copy p { font-size: 10px; letter-spacing: 5px; }
  .intro-copy span { width: 36px; }
  .smoke { width: 360px; height: 360px; }
  .smoke-left { left: -18vw; top: 18vh; }
  .smoke-right { right: -18vw; top: 24vh; }
}

@media (prefers-reduced-motion: reduce) {
  .loading-intro *,
  .loading-intro *::before,
  .loading-intro *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
