body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

.page-shell {
  position: relative;
  isolation: isolate;
}

.noise-layer {
  position: fixed;
  inset: -40px;
  z-index: -1;
  opacity: 0.12;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='noStitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.65'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.nav-glass {
  background: radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.95), rgba(248, 250, 252, 0.9));
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(24px) saturate(1.25);
}

.nav-link {
  position: relative;
  padding-bottom: 0.15rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 1.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f97316, #ec4899, #22c55e, #0ea5e9);
  transform-origin: left;
  transition: width 220ms ease-out;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link--active {
  color: rgb(15, 23, 42);
}

.nav-link--active::after {
  width: 100%;
}

/* Brand orb */
.brand-orb {
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
  background:
    radial-gradient(circle at 10% 0, rgba(249, 115, 22, 0.8), transparent 55%),
    radial-gradient(circle at 80% 120%, rgba(56, 189, 248, 0.9), transparent 55%),
    radial-gradient(circle at 50% 40%, rgba(244, 63, 94, 0.8), transparent 60%),
    #020617;
}

.brand-orb-core {
  position: relative;
  display: inline-flex;
  height: 0.38rem;
  width: 1.4rem;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.96);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.7),
    0 0 24px rgba(248, 250, 252, 0.85);
}

.brand-orb-core::before,
.brand-orb-core::after {
  content: "";
  position: absolute;
  inset: -260%;
  border-radius: inherit;
  background: conic-gradient(from 180deg, rgba(248, 250, 252, 0.8), transparent, rgba(248, 250, 252, 0.65));
  opacity: 0.4;
  mix-blend-mode: screen;
}

.brand-orb-core::before {
  animation: orbSpin 16s linear infinite;
}

.brand-orb-core::after {
  animation: orbSpin 22s linear infinite reverse;
}

@keyframes orbSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Shadows */
.shadow-soft {
  box-shadow:
    0 12px 30px rgba(15, 23, 42, 0.06),
    0 1px 0 rgba(148, 163, 184, 0.3);
}

.shadow-soft-heavy {
  box-shadow:
    0 22px 60px rgba(15, 23, 42, 0.28),
    0 0 0 1px rgba(148, 163, 184, 0.35);
}

/* Pulses */
.animate-pulse-soft {
  animation: pulseSoft 1600ms ease-in-out infinite;
}

@keyframes pulseSoft {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translate3d(0, -1px, 0) scale(1.25);
    opacity: 0.5;
  }
}

/* Hero orbits */
.hero-orbit {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.9), transparent 55%),
    radial-gradient(circle at 100% 0, rgba(224, 231, 255, 0.9), transparent 55%),
    radial-gradient(circle at 0 100%, rgba(233, 213, 255, 0.8), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(190, 242, 255, 0.9), transparent 50%);
  opacity: 0.8;
  filter: blur(18px);
  transform-origin: center;
  animation: heroOrbit 32s linear infinite;
}

.hero-orbit--reverse {
  mix-blend-mode: soft-light;
  opacity: 0.7;
  animation-direction: reverse;
}

.hero-orbit--soft {
  opacity: 0.6;
  filter: blur(26px);
}

@keyframes heroOrbit {
  0% {
    transform: rotate(0deg) scale(1.05);
  }
  50% {
    transform: rotate(180deg) scale(1.12);
  }
  100% {
    transform: rotate(360deg) scale(1.05);
  }
}

/* Hero highlight */
.hero-highlight {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 0.16em 0.26em;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.8), transparent 60%),
    linear-gradient(120deg, rgba(248, 113, 113, 0.15), rgba(56, 189, 248, 0.2));
  box-shadow:
    0 0 0 1px rgba(248, 250, 252, 0.8),
    0 18px 45px rgba(15, 23, 42, 0.3);
}

.hero-highlight::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from 200deg,
    rgba(252, 211, 77, 0.75),
    rgba(248, 113, 113, 0.8),
    rgba(56, 189, 248, 0.85),
    rgba(45, 212, 191, 0.9),
    rgba(252, 211, 77, 0.75)
  );
  opacity: 0.25;
  mix-blend-mode: screen;
  filter: blur(3px);
  z-index: -1;
  animation: spinHighlight 26s linear infinite;
}

@keyframes spinHighlight {
  to {
    transform: rotate(360deg);
  }
}

/* Cards */
.card-heavy {
  position: relative;
  border-radius: 1.25rem;
  padding: 1.1rem 1.1rem 1.15rem;
  background: radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.9), transparent 60%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.96));
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.25),
    0 0 0 1px rgba(148, 163, 184, 0.4);
  overflow: hidden;
}

.card-heavy::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0 0, rgba(248, 113, 113, 0.18), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.18), transparent 55%);
  opacity: 0.65;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* Post cards */
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.25rem 1.25rem 1.3rem;
  border-radius: 1.4rem;
  background: radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.94), transparent 60%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(148, 163, 184, 0.32);
  transform-origin: center top;
  transition:
    transform 200ms cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 200ms ease,
    border-color 200ms ease,
    background 220ms ease;
}

.post-card:hover {
  transform: translate3d(0, -6px, 0) scale(1.01);
  box-shadow:
    0 26px 60px rgba(15, 23, 42, 0.26),
    0 0 0 1px rgba(148, 163, 184, 0.5);
  border-color: rgba(148, 163, 184, 0.85);
}

.post-card--wide {
  border-radius: 1.6rem;
}

.post-chip {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(148, 163, 184);
}

.post-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgb(15, 23, 42);
}

.post-body {
  font-size: 0.75rem;
  line-height: 1.55;
  color: rgb(100, 116, 139);
}

.post-meta {
  margin-top: 0.4rem;
  padding-left: 1rem;
  font-size: 0.7rem;
  line-height: 1.5;
  color: rgb(148, 163, 184);
  list-style-type: disc;
}

.post-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgb(51, 65, 85);
}

.post-link::after {
  content: "→";
  display: inline-block;
  font-size: 0.75rem;
  transform: translateX(0);
  transition: transform 180ms ease;
}

.post-card:hover .post-link::after {
  transform: translateX(3px);
}

/* Pills / tags */
.pill-tag {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(12px);
}

.about-pill {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.9), transparent 65%),
    rgba(255, 255, 255, 0.98);
  font-size: 0.7rem;
}

/* About page blocks */
.about-section {
  padding: 1.25rem 1.4rem;
  border-radius: 1.4rem;
  background: radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.94), transparent 60%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.97));
  border: 1px solid rgba(226, 232, 240, 0.96);
  box-shadow:
    0 16px 38px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(148, 163, 184, 0.2);
}

.about-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgb(15, 23, 42);
  margin-bottom: 0.35rem;
}

.about-body {
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgb(71, 85, 105);
}

.about-list {
  margin-top: 0.35rem;
  padding-left: 1rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgb(100, 116, 139);
}

.about-card {
  padding: 1.2rem 1.3rem 1.35rem;
  border-radius: 1.4rem;
  background: radial-gradient(circle at 10% 0, rgba(248, 250, 252, 0.96), transparent 65%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.96));
  border: 1px solid rgba(226, 232, 240, 0.96);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(148, 163, 184, 0.3);
  transition:
    transform 200ms cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 200ms ease,
    border-color 200ms ease;
}

.about-card:hover {
  transform: translate3d(0, -4px, 0) scale(1.01);
  border-color: rgba(148, 163, 184, 0.85);
  box-shadow:
    0 26px 65px rgba(15, 23, 42, 0.24),
    0 0 0 1px rgba(148, 163, 184, 0.5);
}

.about-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgb(15, 23, 42);
  margin-bottom: 0.2rem;
}

.about-card-body {
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgb(100, 116, 139);
}

.floating-card {
  position: relative;
  padding: 1.5rem 1.6rem 1.7rem;
  border-radius: 1.7rem;
  background: radial-gradient(circle at 0 0, rgba(248, 113, 113, 0.16), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.18), transparent 60%),
    rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.96);
  box-shadow:
    0 24px 70px rgba(15, 23, 42, 0.3),
    0 0 0 1px rgba(148, 163, 184, 0.3);
  overflow: hidden;
}

.floating-card::before {
  content: "";
  position: absolute;
  inset: -60%;
  background:
    radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.9), transparent 55%),
    radial-gradient(circle at 100% 0, rgba(248, 113, 113, 0.4), transparent 60%),
    radial-gradient(circle at 0 100%, rgba(56, 189, 248, 0.35), transparent 60%);
  opacity: 0.7;
  mix-blend-mode: soft-light;
}

/* Marquee */
.marquee {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.9), transparent 60%),
    rgba(255, 255, 255, 0.96);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.15),
    0 0 0 1px rgba(148, 163, 184, 0.35);
}

.marquee-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding-inline: 1.5rem;
  white-space: nowrap;
  animation: marqueeSlide 32s linear infinite;
}

.marquee-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.72rem;
  color: rgb(71, 85, 105);
  background: radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.9), transparent 60%),
    linear-gradient(135deg, rgba(226, 232, 240, 0.95), rgba(241, 245, 249, 0.95));
}

@keyframes marqueeSlide {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Contact form */
.contact-form::before {
  content: "";
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(circle at 0 0, rgba(248, 113, 113, 0.12), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(45, 212, 191, 0.16), transparent 60%);
  opacity: 0.85;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.form-field {
  position: relative;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.98);
  background: rgba(248, 250, 252, 0.96);
  box-shadow:
    0 12px 36px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(148, 163, 184, 0.35);
  overflow: hidden;
}

.form-field textarea.contact-input {
  border-radius: 1.25rem;
  padding: 0.9rem 1rem 0.85rem;
  line-height: 1.5;
}

.contact-input {
  width: 100%;
  border-radius: inherit;
  border: none;
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem;
  color: rgb(30, 41, 59);
  background: transparent;
  outline: none;
}

.contact-input::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

.contact-input:focus-visible {
  outline: none;
}

.form-field:has(.contact-input:focus-visible) {
  border-color: rgba(59, 130, 246, 0.9);
  box-shadow:
    0 18px 42px rgba(37, 99, 235, 0.26),
    0 0 0 1px rgba(37, 99, 235, 0.9);
}

.contact-form.sent {
  animation: contactSent 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes contactSent {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  30% {
    transform: translate3d(0, -6px, 0) scale(1.01);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* Scroll reveal base state */
[data-reveal],
[data-reveal-stagger] > *,
[data-hero-spotlight] {
  opacity: 0;
  transform: translate3d(0, 12px, 0) scale(0.99);
}

.is-revealed {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
  transition:
    opacity 650ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

.is-revealed-stagger > * {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
}

.is-revealed-stagger > * {
  transition:
    opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.is-revealed-stagger > *:nth-child(1) {
  transition-delay: 40ms;
}

.is-revealed-stagger > *:nth-child(2) {
  transition-delay: 120ms;
}

.is-revealed-stagger > *:nth-child(3) {
  transition-delay: 200ms;
}

.is-revealed-stagger > *:nth-child(4) {
  transition-delay: 280ms;
}

.is-revealed-stagger > *:nth-child(5) {
  transition-delay: 360ms;
}

/* Tilt hover (base, actual tilt handled in JS) */
[data-tilt] {
  will-change: transform;
  transform-style: preserve-3d;
  transform-origin: center;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .marquee-inner {
    animation-duration: 26s;
  }

  .post-card,
  .about-card,
  .about-section,
  .floating-card {
    box-shadow:
      0 14px 32px rgba(15, 23, 42, 0.2),
      0 0 0 1px rgba(148, 163, 184, 0.28);
  }
}

