@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --font-sans: 'Space Grotesk', 'Pretendard', 'SUIT', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  --safe-top: env(safe-area-inset-top);
  --header-bg-top: rgba(255, 255, 255, 0);
  --bg: #f6f6fb;
  --bg-soft: #ffffff;
  --bg-elevated: rgba(255, 255, 255, 0.8);
  --text: #0b0d15;
  --muted: #5c6277;
  --primary: #5a54ff;
  --primary-soft: #c3c1ff;
  --accent: #18c8ff;
  --border: rgba(12, 20, 39, 0.08);
  --card-border: rgba(90, 84, 255, 0.2);
  --shadow-lg: 0 30px 80px rgba(20, 22, 40, 0.12);
  --blur: saturate(160%) blur(24px);
  --header-offset: 72px;
  --app-height: 100vh;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --header-bg-top: rgba(0, 0, 0, 0);
  --bg: #05060a;
  --bg-soft: #0d0f17;
  --bg-elevated: rgba(13, 15, 23, 0.78);
  --text: #f5f7ff;
  --muted: #9aa0b7;
  --primary: #8f7dff;
  --primary-soft: #d6cdff;
  --accent: #00f5a0;
  --border: rgba(255, 255, 255, 0.08);
  --card-border: rgba(143, 125, 255, 0.4);
  --shadow-lg: 0 25px 80px rgba(0, 0, 0, 0.45);
}

:root[data-theme='light'] body::before,
:root[data-theme='light'] body::after {
  mix-blend-mode: multiply;
}

* {
  box-sizing: border-box;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  position: relative;
  isolation: isolate;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  word-break: keep-all;
  line-break: loose;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
  cursor: default;
}

:where(section[id]) {
  scroll-margin-top: calc(var(--header-offset) + var(--safe-top) + 16px);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: calc(var(--header-offset) + var(--safe-top));
  padding-top: var(--safe-top);
  display: flex;
  align-items: center;
  border-bottom: none;
  box-shadow: none;
  background: transparent;
  isolation: isolate;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--header-bg-top);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: none;
}

.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: transparent;
  pointer-events: none;
}

.site-nav {
  max-width: none;
  margin: 0;
  width: 100%;
  padding: 0 clamp(1.25rem, 6vw, 5rem);
  position: relative;
}

body::after,
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

body::after {
  background: radial-gradient(circle at 15% 20%, rgba(24, 200, 255, 0.32), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(255, 103, 180, 0.22), transparent 45%),
    radial-gradient(circle at 45% 85%, rgba(90, 84, 255, 0.2), transparent 55%);
  filter: blur(80px) saturate(1.15);
  opacity: 0.75;
}

body::before {
  inset: -20% -10%;
  background: conic-gradient(
    from 90deg,
    rgba(90, 84, 255, 0.35),
    rgba(24, 200, 255, 0.24),
    rgba(255, 103, 180, 0.3),
    rgba(90, 84, 255, 0.35)
  );
  filter: blur(180px) saturate(1.2);
  opacity: 0.6;
  z-index: 0;
}

.hero,
main,
.footer,
.blog-hero,
.post-hero,
.post-content {
  position: relative;
  z-index: 1;
}

.nav,
.hero-grid {
  position: relative;
  z-index: 2;
}

img {
  max-width: 100%;
  display: block;
}

a,
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  word-break: keep-all;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

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

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text);
}

::selection {
  background: var(--accent);
  color: #05060a;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.page-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 120% at 50% 40%, rgba(124, 243, 255, 0.12), rgba(138, 123, 255, 0.08), rgba(12, 15, 22, 0.96));
  backdrop-filter: blur(8px);
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-orb {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}

.loader-orb span {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #7cf3ff;
  border-right-color: #8a7bff;
  border-left-color: #ff8ad8;
  filter: drop-shadow(0 6px 24px rgba(124, 243, 255, 0.25));
  animation: spin 1.4s linear infinite;
}

.loader-orb span:nth-child(2) {
  width: 56px;
  height: 56px;
  animation-direction: reverse;
  animation-duration: 1.6s;
  opacity: 0.8;
}

.loader-orb span:nth-child(3) {
  width: 40px;
  height: 40px;
  animation-duration: 1.2s;
  opacity: 0.6;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.blog-listing {
  position: relative;
}

.blog-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 120% at 50% 50%, rgba(124, 243, 255, 0.08), rgba(138, 123, 255, 0.06), rgba(12, 15, 22, 0.94));
  backdrop-filter: blur(6px);
  border-radius: 32px;
  z-index: 5;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.blog-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

[data-blog-list] {
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.blog-listing.is-loading [data-blog-list] {
  opacity: 0.45;
  filter: blur(1px);
}

.blog-listing.is-skeleton [data-blog-list] img {
  opacity: 0;
}

.blog-listing.is-skeleton .post-card__media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(124, 243, 255, 0.08), rgba(138, 123, 255, 0.06), rgba(255, 138, 216, 0.08));
}

.blog-listing.is-skeleton .post-card__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-100%);
  animation: shimmer 1.2s linear infinite;
}

.blog-listing.is-skeleton .post-card__body h3,
.blog-listing.is-skeleton .post-card__body p {
  color: transparent;
  background: linear-gradient(90deg, rgba(124, 243, 255, 0.08), rgba(138, 123, 255, 0.06), rgba(255, 138, 216, 0.08));
  border-radius: 8px;
}

.blog-listing.is-skeleton .post-card__body h3 {
  min-height: 1.2em;
}

.blog-listing.is-skeleton .post-card__body p {
  min-height: 0.9em;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.hero {
  position: relative;
  padding: calc(var(--header-offset) + var(--safe-top) + clamp(1.5rem, 5vw, 4rem)) clamp(1.25rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  min-height: var(--app-height, 100vh);
  display: flex;
  align-items: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 70% 10%, rgba(90, 84, 255, 0.25), transparent 55%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10%;
  background: conic-gradient(from 120deg, rgba(90, 84, 255, 0.25), rgba(24, 200, 255, 0.16), rgba(255, 103, 180, 0.2), rgba(90, 84, 255, 0.25));
  filter: blur(160px);
  opacity: 0.9;
  z-index: -2;
}

.nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 99px;
  opacity: 0.85;
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(5, 6, 10, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  color: #05060a;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  margin-left: auto;
}

.nav-links a {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
  border-color: var(--border);
}

.nav-links a[aria-current='page'] {
  color: var(--accent);
  border-color: var(--border);
  background: rgba(90, 84, 255, 0.12);
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
}

.theme-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: none;
}

[data-theme='dark'] .theme-icon--sun {
  display: none;
}

[data-theme='light'] .theme-icon--moon {
  display: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  margin-top: 0;
  width: 100%;
}

.hero-copy {
  order: 1;
  max-width: 720px;
}

.hero-visual {
  order: 2;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.hero-visual__stage {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  perspective: 1000px;
  pointer-events: none;
}

.mock-window {
  position: relative;
  width: min(340px, 92%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  z-index: 2;
  transform: translate3d(0, 0, 0);
  animation: windowFloat 7.5s ease-in-out infinite;
}

:root[data-theme='light'] .mock-window {
  border-color: rgba(12, 20, 39, 0.1);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 24px 90px rgba(12, 20, 39, 0.14);
}

.mock-window::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(24, 200, 255, 0.18), transparent 52%),
    radial-gradient(circle at 85% 10%, rgba(90, 84, 255, 0.22), transparent 55%),
    radial-gradient(circle at 65% 90%, rgba(255, 103, 180, 0.16), transparent 58%);
  opacity: 0.9;
  pointer-events: none;
}

.mock-window::after {
  content: '';
  position: absolute;
  inset: -40% -60%;
  z-index: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.18), transparent 65%);
  transform: translate3d(-18%, 0, 0) rotate(8deg);
  opacity: 0.35;
  animation: windowSheen 6.5s ease-in-out infinite;
  pointer-events: none;
}

.mock-window__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1;
}

:root[data-theme='light'] .mock-window__bar {
  border-bottom-color: rgba(12, 20, 39, 0.08);
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.9;
}

.mock-dot--red {
  background: #ff5f57;
}

.mock-dot--yellow {
  background: #febc2e;
}

.mock-dot--green {
  background: #28c840;
}

.mock-title {
  margin-left: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mock-window__body {
  position: relative;
  padding: 1.25rem 1.25rem 1.5rem;
  display: grid;
  gap: 0.65rem;
  z-index: 1;
}

.mock-line {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  width: 100%;
  overflow: hidden;
  position: relative;
}

:root[data-theme='light'] .mock-line {
  background: rgba(12, 20, 39, 0.08);
}

.mock-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: translateX(-60%);
  animation: scan 3.2s ease-in-out infinite;
  opacity: 0.5;
}

.mock-window__body .mock-line:nth-child(1)::after {
  animation-delay: -0.6s;
}

.mock-window__body .mock-line:nth-child(2)::after {
  animation-delay: -1.3s;
}

.mock-window__body .mock-line:nth-child(3)::after {
  animation-delay: -2.1s;
}

.mock-window__body .mock-line:nth-child(4)::after {
  animation-delay: -0.9s;
}

.mock-window__body .mock-line:nth-child(5)::after {
  animation-delay: -1.8s;
}

.mock-window__body .mock-line:nth-child(6)::after {
  animation-delay: -2.6s;
}

.mock-line--short {
  width: 64%;
}

.mock-line--prompt {
  width: 86%;
  background: rgba(90, 84, 255, 0.18);
}

.mock-line--accent {
  width: 72%;
  background: rgba(24, 200, 255, 0.16);
}

.mock-caret {
  width: 14px;
  height: 18px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.22);
  animation: caretPulse 1.1s ease-in-out infinite;
  justify-self: start;
  margin-top: 0.25rem;
}

:root[data-theme='light'] .mock-caret {
  background: rgba(12, 20, 39, 0.14);
}

.mock-orbit {
  --orbit-tilt: 0deg;
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.5;
  animation: orbitSpin 18s linear infinite;
  z-index: 1;
}

:root[data-theme='light'] .mock-orbit {
  border-color: rgba(12, 20, 39, 0.1);
}

.mock-orbit--a {
  inset: 12%;
  animation-duration: 22s;
}

.mock-orbit--b {
  inset: 18%;
  --orbit-tilt: 22deg;
  animation-duration: 30s;
  opacity: 0.32;
}

.mock-orbit--c {
  inset: 26%;
  --orbit-tilt: -18deg;
  animation-duration: 36s;
  opacity: 0.22;
}

.mock-orbit::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 6%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(24, 200, 255, 0.28), transparent 70%);
  transform: translateY(-50%);
}

.mock-orbit--b::after {
  left: auto;
  right: 8%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(90, 84, 255, 0.24), transparent 70%);
}

.mock-orbit--c::after {
  left: 12%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(255, 103, 180, 0.2), transparent 70%);
}

@media (prefers-reduced-motion: reduce) {
  .mock-window,
  .mock-window::after,
  .mock-line::after,
  .mock-orbit,
  .mock-caret {
    animation: none !important;
  }
}

.hero-copy h1 {
  font-size: clamp(1.55rem, 5.8vw, 3.6rem);
  line-height: 1.18;
  margin: 0 0 1.2rem;
  transition: font-size 0.25s ease;
  text-wrap: wrap;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  animation: revealUp 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--reveal-delay, 0ms) + var(--reveal-order, 0) * 160ms);
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title-line {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    animation: none !important;
  }
}


.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  background: var(--bg-soft);
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn.primary {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: #05060a;
  box-shadow: var(--shadow-lg);
}

.btn.ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
}

.btn.cool {
  border-color: var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.btn.cool:hover {
  border-color: var(--card-border);
  color: var(--accent);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.hero-metrics dt {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-metrics dd {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.hero-panel {
  background: var(--bg-elevated);
  border-radius: 1.75rem;
  padding: 2rem;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-lg);
  backdrop-filter: var(--blur);
}

.featured-post {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.featured-post h3 {
  margin: 0;
}

.featured-post .meta-row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

.featured-post__cover {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
}

.featured-post__cover img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--primary);
  background: rgba(90, 84, 255, 0.12);
}

main {
  padding: 0 clamp(1.25rem, 6vw, 5rem) 5rem;
}

.section {
  margin-top: clamp(3rem, 8vw, 5rem);
}

.section-header {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.5rem 0;
}

.section-header p {
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  padding: 1.8rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  color: var(--text);
}

.card h3 {
  margin: 0;
}

.card p {
  margin: 0;
}

.post-card__body h3 {
  margin: 0;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  text-align: left;
  width: 100%;
  appearance: none;
}

.work-card__thumb {
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(90, 84, 255, 0.12);
  aspect-ratio: 16 / 9;
}

.work-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-modern {
  --timeline-gutter: 44px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.timeline-modern::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  left: calc(var(--timeline-gutter) / 2);
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(90, 84, 255, 0.4), rgba(24, 200, 255, 0.3));
  opacity: 0.7;
}

.timeline-entry {
  display: grid;
  grid-template-columns: var(--timeline-gutter) 160px 1fr;
  gap: 1.25rem;
  position: relative;
  align-items: start;
}

.timeline-gutter {
  position: relative;
  min-height: 100%;
}

.timeline-side {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
}

.timeline-dot {
  position: relative;
  width: 14px;
  height: 14px;
  margin-top: 0.35rem;
  margin-left: calc(var(--timeline-gutter) / 2 - 7px);
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 6px rgba(90, 84, 255, 0.12);
}

.timeline-year {
  font-weight: 600;
  color: var(--primary);
}

.timeline-card {
  padding: 1.2rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  width: 100%;
  text-align: left;
  appearance: none;
  color: var(--text);
}

.timeline-card:focus-visible,
.card:focus-visible {
  outline: 2px solid rgba(90, 84, 255, 0.55);
  outline-offset: 4px;
}

.timeline-title {
  margin: 0;
  font-size: 1.05rem;
}

.timeline-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.profile-list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  display: grid;
  gap: 0.35rem;
  color: var(--text);
}

.profile-list small {
  color: var(--muted);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.post-card {
  position: relative;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.post-card__meta > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.post-card__media {
  position: relative;
}

.post-card__media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.post-card__fallback {
  height: 180px;
  display: grid;
  place-items: center;
  font-size: 3rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(90, 84, 255, 0.25), rgba(24, 200, 255, 0.2));
}

.post-card__pill {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(5, 6, 10, 0.65);
  color: #fff;
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.post-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.post-card__meta {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
  align-items: center;
}

.post-card__series {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(90, 84, 255, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  width: fit-content;
  max-width: 100%;
  flex: 0 0 auto;
  white-space: nowrap;
}

.post-card__subtitle {
  color: var(--muted);
  margin: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(90, 84, 255, 0.15);
  color: var(--primary);
}

.ghost-link {
  position: absolute;
  inset: 0;
}

.blog-hero,
.post-hero {
  padding: calc(var(--header-offset) + var(--safe-top) + clamp(2.5rem, 6vw, 4rem)) clamp(1.25rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
}

.blog-hero {
  text-align: center;
}

.blog-page main {
  padding-top: 1rem;
}

.blog-series-nav {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.blog-group {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.blog-group__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.25rem;
}

.blog-group__header h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.post-hero {
  border-bottom: 1px solid var(--border);
}

.post-subtitle {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.post-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 1rem;
  align-items: center;
}

.meta-divider {
  color: var(--border);
  font-weight: 600;
}

.status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.status-pill {
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post-cover {
  margin: 2rem 0;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
}

.post-cover img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.post-content {
  padding: 2rem clamp(1.25rem, 6vw, 5rem) 5rem;
  max-width: 820px;
  margin: 0 auto;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: 2.5rem;
}

.post-content p {
  color: var(--text);
}

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.22em;
  text-decoration-color: rgba(24, 200, 255, 0.55);
  transition: color 0.2s ease, text-decoration-color 0.2s ease, background 0.2s ease;
}

.post-content a:hover {
  color: var(--primary);
  text-decoration-color: rgba(90, 84, 255, 0.75);
  background: rgba(90, 84, 255, 0.08);
}

.post-content a:focus-visible {
  outline: 2px solid rgba(90, 84, 255, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}

.post-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem;
  border-left: 4px solid var(--primary);
  background: rgba(90, 84, 255, 0.08);
  border-radius: 1.25rem;
}

.post-content pre {
  background: rgba(5, 6, 10, 0.78);
  color: #f5f7ff;
  padding: 1.25rem;
  border-radius: 1rem;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme='light'] .post-content pre {
  background: rgba(11, 13, 21, 0.92);
}

.code-block {
  position: relative;
}

.code-block pre {
  padding-top: 2.9rem;
}

.code-lang {
  position: absolute;
  top: 0.75rem;
  left: 0.9rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(11, 13, 21, 0.6);
  color: var(--text);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.code-copy {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(11, 13, 21, 0.6);
  color: var(--text);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.code-copy:hover {
  background: rgba(11, 13, 21, 0.85);
  border-color: var(--card-border);
  transform: translateY(-1px);
}

.code-copy:focus-visible {
  outline: 2px solid rgba(90, 84, 255, 0.55);
  outline-offset: 3px;
}

[data-theme='light'] .code-copy {
  background: rgba(255, 255, 255, 0.12);
}

[data-theme='light'] .code-lang {
  background: rgba(255, 255, 255, 0.12);
}

.post-content hr {
  border: none;
  height: 1px;
  margin: 2.5rem 0;
  background: linear-gradient(90deg, transparent, rgba(124, 243, 255, 0.4), rgba(138, 123, 255, 0.35), transparent);
}

.post-content figure img,
.post-content > img {
  cursor: zoom-in;
}

.image-modal {
  width: min(92vw, 960px);
  position: relative;
  border: none;
  padding: 0;
  background: transparent;
  color: var(--text);
  overscroll-behavior: contain;
}

.image-modal::backdrop {
  background: rgba(5, 6, 12, 0.72);
  backdrop-filter: blur(6px);
}

.image-modal__frame {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  background: rgba(12, 15, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  max-height: 82vh;
}

.image-modal__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  cursor: zoom-in;
}

.image-modal.is-zoomed .image-modal__frame {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.image-modal.is-zoomed .image-modal__img {
  width: 170%;
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}

.image-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(12, 15, 22, 0.7);
  color: var(--text);
  display: grid;
  place-items: center;
}

.image-modal__close:hover {
  background: rgba(12, 15, 22, 0.9);
}

.link-preview {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.4rem;
  padding: 1.2rem 1.4rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  margin: 1.6rem 0;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.link-preview__meta {
  display: grid;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
}

.link-preview__media {
  flex: 0 0 150px;
  width: 150px;
  height: 96px;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.link-preview__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link-preview__domain {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.link-preview__title {
  font-size: 1.05rem;
  color: var(--text);
}

.link-preview__url {
  font-size: 0.85rem;
  color: var(--muted);
  word-break: break-all;
}

.link-preview__icon {
  font-size: 1.1rem;
  color: var(--muted);
  margin-left: auto;
}

.link-preview:hover {
  transform: translateY(-2px);
  border-color: var(--card-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

@media (max-width: 640px) {
  .link-preview {
    flex-direction: column;
    align-items: stretch;
  }

  .link-preview__media {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .link-preview__icon {
    align-self: flex-end;
    margin-left: 0;
  }
}
.post-content pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 0.95rem;
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

code {
  background: rgba(12, 20, 39, 0.08);
  padding: 0.15rem 0.35rem;
  border-radius: 0.35rem;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: rgba(154, 160, 183, 0.9);
}

.token.punctuation {
  color: rgba(245, 247, 255, 0.78);
}

.token.namespace {
  opacity: 0.7;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
  color: #ff79c6;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: #8be9fd;
}

.token.operator,
.token.entity,
.token.url,
.token.variable {
  color: rgba(245, 247, 255, 0.9);
}

.token.atrule,
.token.attr-value,
.token.function,
.token.class-name {
  color: #bd93f9;
}

.token.keyword {
  color: #50fa7b;
}

.token.regex,
.token.important {
  color: #f1fa8c;
}

.token.important,
.token.bold {
  font-weight: 700;
}

.token.italic {
  font-style: italic;
}

.post-content ul,
.post-content ol {
  padding-left: 1.5rem;
}

.post-content li + li {
  margin-top: 0.35rem;
}

.post-content figure {
  margin: 2rem 0;
}

.post-content img {
  border-radius: 1rem;
}

.footer {
  padding: 2.5rem clamp(1.25rem, 6vw, 5rem);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

html.modal-open,
body.modal-open {
  overflow: hidden;
  height: 100%;
}

body.modal-open {
  position: fixed;
  width: 100%;
  top: calc(-1 * var(--scroll-y, 0px));
  left: 0;
  right: 0;
  overscroll-behavior: none;
}

dialog.modal {
  border: none;
  padding: 0;
  background: transparent;
  width: min(860px, calc(100vw - 1.5rem));
  max-width: 100%;
  color: var(--text);
}

dialog.modal::backdrop {
  background: rgba(5, 6, 10, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.modal__frame {
  border-radius: 1.75rem;
  background: rgba(13, 15, 23, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: calc(var(--app-height, 100vh) - 2.5rem);
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  animation: modalPop 0.22s ease forwards;
}

:root[data-theme='light'] .modal__frame {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(12, 20, 39, 0.12);
}

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

.modal__top {
  display: flex;
  justify-content: flex-end;
  padding: 0.9rem 0.9rem 0;
}

.modal__close {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.modal__close svg {
  width: 18px;
  height: 18px;
}

.modal__close:hover {
  transform: translateY(-2px);
  border-color: var(--card-border);
  background: rgba(255, 255, 255, 0.1);
}

.modal__close:focus-visible {
  outline: 2px solid rgba(90, 84, 255, 0.55);
  outline-offset: 4px;
}

.modal__content {
  padding: 1rem 1.6rem 1.6rem;
  flex: 1;
  min-height: 0;
  overflow: auto;
  scroll-padding-top: 1rem;
}

.modal-article {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.modal-hero {
  display: grid;
  gap: 0.5rem;
}

.modal-eyebrow {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.modal-title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
}

.modal-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.modal-media {
  margin: 0;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
}

.modal-media img {
  width: 100%;
  height: auto;
  display: block;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.modal-section {
  padding: 1rem 1.1rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

:root[data-theme='light'] .modal-section {
  background: rgba(255, 255, 255, 0.6);
}

.modal-section--full {
  grid-column: 1 / -1;
}

.modal-section h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.modal-section p {
  margin: 0;
  color: var(--muted);
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.modal-list {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  color: var(--text);
  display: grid;
  gap: 0.4rem;
}

@media (max-width: 960px) {
  :root {
    --header-offset: 68px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: auto;
    height: var(--app-height, 100vh);
    width: min(360px, 88vw);
    padding: calc(env(safe-area-inset-top) + 1.1rem) 1rem calc(env(safe-area-inset-bottom) + 1.4rem);
    border-radius: 1.5rem 0 0 1.5rem;
    border: 1px solid var(--border);
    border-right: none;
    background: var(--bg-soft);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    transform: translateX(105%);
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1000;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .nav-links a {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 0.9rem;
    border-color: transparent;
    background: transparent;
  }

  .nav-links a:hover {
    border-color: transparent;
    background: rgba(90, 84, 255, 0.12);
    color: var(--accent);
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    order: 2;
  }

  .hero-visual {
    order: 1;
  }

  .hero-visual {
    min-height: 360px;
  }

  .hero-visual__stage {
    width: min(420px, 92%);
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }

  dialog.modal {
    width: min(720px, calc(100vw - 1.25rem));
  }

  .modal__content {
    padding: 0.2rem 1.25rem 1.25rem;
  }

  .modal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    order: 2;
  }

  .hero-visual {
    order: 1;
  }
}

@media (max-width: 600px) {
  :root {
    --header-offset: 64px;
  }

  .timeline-modern {
    --timeline-gutter: 34px;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-metrics dd {
    font-size: 1.4rem;
  }

  .hero-visual {
    min-height: 300px;
  }

  .hero-visual__stage {
    width: min(360px, 92%);
  }

  .post-card__meta {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.6rem;
  }

  .post-card__meta > span:first-child {
    flex: 0 0 auto;
  }

  .post-card__body {
    padding: 1.05rem;
    gap: 0.45rem;
  }

  .card {
    padding: 1.45rem;
  }

  .timeline-entry {
    grid-template-columns: var(--timeline-gutter) 1fr;
    row-gap: 0.75rem;
  }

  .timeline-gutter {
    grid-row: 1 / span 2;
  }

  .timeline-modern::before {
    left: calc(var(--timeline-gutter) / 2);
  }

  .timeline-side,
  .timeline-card {
    grid-column: 2;
  }

  .post-content {
    margin: 1rem;
    padding: 1.25rem;
    border-radius: 1.25rem;
  }

  .post-cover img {
    max-height: 240px;
  }

  .blog-hero,
  .post-hero {
    padding: calc(var(--header-offset) + var(--safe-top) + 2.25rem) 1.25rem 2rem;
  }
}

html[data-nav-open='true'] .nav-scrim {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

html[data-nav-open='true'] .nav-links {
  transform: translateX(0);
}

html[data-nav-open='true'] body {
  overflow: hidden;
}

html[data-nav-open='true'] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

html[data-nav-open='true'] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

html[data-nav-open='true'] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle-bar {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.card:hover,
.timeline-card:hover,
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
  border-color: var(--card-border);
}

.post-card:hover .post-card__pill {
  transform: translateY(-2px);
}

.nav-links a:hover {
  color: var(--accent);
}

/* Custom cursor */
html.cursor-enabled,
html.cursor-enabled * {
  cursor: none !important;
}

body.cursor-enabled,
body.cursor-enabled * {
  cursor: none !important;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: difference;
  z-index: 9999;
  will-change: transform;
  transition: opacity 0.2s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
}

.cursor-dot {
  background: #fff;
}

.cursor-hidden .cursor-dot,
.cursor-hidden .cursor-ring {
  opacity: 0;
}

.cursor-active .cursor-ring {
  border-color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.08);
}

.cursor-pointer .cursor-ring {
  border-color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.cursor-pointer .cursor-ring::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0.9;
}

.cursor-pointer .cursor-dot {
  opacity: 0.35;
}

.cursor-text .cursor-ring {
  width: 18px;
  height: 34px;
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.cursor-text .cursor-ring::after {
  content: '';
  width: 2px;
  height: 18px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.85);
  opacity: 0.9;
}

.cursor-text .cursor-dot {
  opacity: 0;
}

@keyframes auroraFlow {
  0% {
    transform: translate3d(-10%, -5%, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate3d(5%, 8%, 0) rotate(10deg) scale(1.05);
  }
  100% {
    transform: translate3d(-6%, 12%, 0) rotate(-5deg) scale(0.95);
  }
}

@keyframes drift {
  0% {
    transform: translate3d(-4%, -2%, 0) scale(1);
  }
  50% {
    transform: translate3d(3%, 4%, 0) scale(1.05);
  }
  100% {
    transform: translate3d(-2%, 6%, 0) scale(0.98);
  }
}

@keyframes windowFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -12px, 0);
  }
}

@keyframes windowSheen {
  0%, 100% {
    transform: translate3d(-18%, 0, 0) rotate(8deg);
    opacity: 0.22;
  }
  50% {
    transform: translate3d(18%, 0, 0) rotate(8deg);
    opacity: 0.42;
  }
}

@keyframes scan {
  0% {
    transform: translateX(-60%);
  }
  50% {
    transform: translateX(60%);
  }
  100% {
    transform: translateX(60%);
  }
}

@keyframes caretPulse {
  0%, 100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.85;
  }
}

@keyframes orbitSpin {
  from {
    transform: rotate(var(--orbit-tilt)) rotate(0deg);
  }
  to {
    transform: rotate(var(--orbit-tilt)) rotate(360deg);
  }
}
