/* ================================================
   RESET
================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  cursor: none;
  overflow-x: hidden;
}

/* ================================================
   CUSTOM CURSOR
================================================ */
#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--indigo-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 6px 2px rgba(129,140,248,0.8),
    0 0 18px 6px rgba(129,140,248,0.25);
  transition: transform 0.18s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.2s;
}
body.cursor-hover #cursor-dot {
  transform: translate(-50%,-50%) scale(1.5);
  box-shadow:
    0 0 7px 2px rgba(129,140,248,0.9),
    0 0 14px 4px rgba(129,140,248,0.2);
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--indigo); border-radius: 2px; opacity: 0.5; }


/* ================================================
   LAYOUT
================================================ */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}
.section {
  padding: 108px 0;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--indigo-light);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-heading {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 500px;
  margin-bottom: 64px;
}

/* ================================================
   FADE-IN SCROLL ANIMATION
================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ================================================
   KEYFRAMES
================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Light mode scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track { background: var(--bg-2); }

/* ================================================
   VIEW TRANSITIONS — ripple from toggle button
================================================ */

/* New theme: circle expands from button position */
@keyframes vt-circle-in {
  from { clip-path: circle(0%   at var(--vt-x, 50%) var(--vt-y, 50%)); }
  to   { clip-path: circle(160% at var(--vt-x, 50%) var(--vt-y, 50%)); }
}

/* Old theme: blur-zoom out as new one wipes in */
@keyframes vt-old-out {
  0%   { opacity: 1; filter: blur(0);   transform: scale(1);    }
  100% { opacity: 0; filter: blur(10px); transform: scale(1.05); }
}

/* Button pulse ring (spawned via JS, keyframe lives here) */
@keyframes vt-ring-pulse {
  0%   { width: 0;     height: 0;     opacity: 1;   }
  100% { width: 320px; height: 320px; opacity: 0;   }
}

::view-transition-old(root) {
  animation: 550ms cubic-bezier(0.4, 0, 1, 1) both vt-old-out;
}
::view-transition-new(root) {
  animation: 850ms cubic-bezier(0.76, 0, 0.24, 1) both vt-circle-in;
}
