:root {
  --bg: #081924;
  --surface: rgba(8, 25, 36, 0.78);
  --surface-strong: rgba(8, 25, 36, 0.9);
  --text: #f1f5f9;
  --muted: #b8c9d3;
  --accent: #ff8a3d;
  --accent-soft: #ffd6b8;
  --border: rgba(232, 241, 247, 0.16);
  --display: "Archivo Black", sans-serif;
  --body: "Instrument Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(circle at 18% 20%, #1a4d69 0%, transparent 38%),
    radial-gradient(circle at 86% 5%, #6b2f21 0%, transparent 35%),
    linear-gradient(145deg, #07131c 0%, #0b2233 55%, #112f42 100%);
  background-size: 160% 160%;
  animation: bg-shift 22s ease-in-out infinite alternate;
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    radial-gradient(circle at 15% 80%, rgba(255, 124, 77, 0.18), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(60, 170, 255, 0.2), transparent 32%),
    radial-gradient(circle at 55% 55%, rgba(121, 255, 214, 0.12), transparent 40%);
  filter: blur(16px) saturate(118%);
  animation: aurora-drift 26s ease-in-out infinite;
}

body::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.1;
  mask-image: radial-gradient(circle at center, black 28%, transparent 90%);
  animation: grid-float 19s linear infinite;
}

.bg-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
  animation: glow-float 14s ease-in-out infinite alternate;
}

.bg-glow--one {
  width: 340px;
  height: 340px;
  top: 10%;
  left: -80px;
  background: #4ca4d3;
}

.bg-glow--two {
  width: 300px;
  height: 300px;
  bottom: 5%;
  right: -50px;
  background: #f27944;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(46px);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
}

.bg-orb--one {
  width: 210px;
  height: 210px;
  left: 8%;
  top: 62%;
  background: rgba(249, 126, 68, 0.62);
  animation: orb-wander-one 20s ease-in-out infinite;
}

.bg-orb--two {
  width: 170px;
  height: 170px;
  right: 13%;
  top: 44%;
  background: rgba(73, 154, 255, 0.58);
  animation: orb-wander-two 22s ease-in-out infinite;
}

.bg-orb--three {
  width: 150px;
  height: 150px;
  right: 30%;
  bottom: 8%;
  background: rgba(140, 255, 210, 0.48);
  animation: orb-wander-three 24s ease-in-out infinite;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px);
  background: rgba(7, 19, 28, 0.72);
  border-bottom: 1px solid var(--border);
  padding: 0.95rem clamp(1rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 180ms ease;
}

nav a:hover,
nav a.active {
  color: var(--accent-soft);
}

main {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: clamp(2.4rem, 5vw, 4.2rem) 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--accent-soft);
  margin: 0 0 0.8rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

h1,
h2 {
  font-family: var(--display);
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  max-width: 15ch;
}

h2 {
  font-size: clamp(1.3rem, 3.8vw, 2.35rem);
  max-width: 24ch;
}

h3 {
  font-size: 1.12rem;
}

p {
  margin: 0;
}

ul {
  margin: 0.8rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

li {
  margin-bottom: 0.42rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.75fr);
  gap: 1rem;
  align-items: start;
}

.hero-copy {
  max-width: 64ch;
  color: var(--muted);
  margin-top: 1.2rem;
  font-size: 1.05rem;
}

.hero-rail {
  display: grid;
  gap: 0.75rem;
  align-self: start;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.hero-looking-for {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  max-width: 72ch;
}

.hero-looking-for p {
  color: var(--muted);
}

.hero-looking-for .eyebrow {
  margin-bottom: 0.35rem;
}

.button {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.68rem 1.18rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

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

.button--solid {
  background: var(--accent);
  color: #081924;
}

.button--solid:hover {
  background: #ff9d59;
}

.button--ghost {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.button--ghost:hover {
  border-color: rgba(255, 214, 184, 0.45);
}

.linkedin-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
}

.linkedin-icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
}

.linkedin-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.hero-card,
.panel,
.proof article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.hero-card {
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hero-card .eyebrow {
  margin-bottom: 0.35rem;
}

.hero-card ul {
  margin-top: 0.15rem;
}

.hero-card li {
  margin-bottom: 0.25rem;
}

.hero-card .button {
  margin-top: 0.25rem;
  align-self: flex-start;
}

.hero-skills-card {
  padding: 0.95rem;
}

.hero-skills-card .eyebrow {
  margin-bottom: 0.35rem;
}

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

.proof article {
  padding: 1.15rem;
}

.metric {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-family: var(--display);
  color: var(--accent-soft);
  margin: 0 0 0.22rem;
}

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

.one-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.main-column,
.side-column {
  display: grid;
  gap: 1rem;
}

.panel {
  padding: 1.2rem;
}

.side-column {
  position: sticky;
  top: 86px;
}

.timeline {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
}

.timeline-item {
  border-left: 2px solid rgba(255, 214, 184, 0.32);
  padding-left: 0.9rem;
}

.role-meta {
  margin-top: 0.4rem;
  color: var(--accent-soft);
  font-weight: 600;
}

.research-list {
  margin-top: 1rem;
  display: grid;
  gap: 0;
}

.entry-card {
  border: 0;
  border-radius: 0;
  padding: 0.9rem 0;
  background: transparent;
}

.entry-card + .entry-card {
  border-top: 1px solid var(--border);
}

.entry-card p {
  margin-top: 0.6rem;
  color: var(--muted);
}

.stack {
  color: var(--accent-soft);
  font-weight: 600;
}

.compact-actions {
  margin-top: 0.8rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.52rem;
  margin-top: 0.75rem;
}

.skill-tags span {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.72rem;
  color: var(--accent-soft);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.92rem;
}

.vertical-actions {
  flex-direction: column;
  align-items: flex-start;
}

.vertical-actions .button {
  width: 100%;
  text-align: center;
}

.site-footer {
  text-align: center;
  padding: 1.8rem 1rem 2.2rem;
  color: var(--muted);
}

.easter-egg-active {
  animation: easter-hue 1300ms linear infinite;
}

.easter-egg-banner {
  position: fixed;
  top: 86px;
  right: 1rem;
  z-index: 1001;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--accent-soft);
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
}

.easter-egg-banner.visible {
  opacity: 1;
  transform: translateY(0);
}

.easter-dim-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  background: rgba(2, 8, 20, 0.58);
  backdrop-filter: blur(1px);
}

.easter-sparkle-layer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  overflow: hidden;
}

.easter-sparkle-plane {
  position: absolute;
  inset: -14%;
  will-change: transform;
}

.plane-near {
  opacity: 1;
}

.plane-mid {
  opacity: 0.82;
}

.plane-far {
  opacity: 0.64;
}

.easter-sparkle {
  position: absolute;
  width: var(--sparkle-size, 10px);
  height: var(--sparkle-size, 10px);
  border-radius: 999px;
  background: var(--sparkle-color, var(--accent-soft));
  box-shadow:
    0 0 14px var(--sparkle-color, var(--accent-soft)),
    0 0 30px color-mix(in srgb, var(--sparkle-color, var(--accent-soft)) 70%, white);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(0.28) rotate(0deg);
  animation: sparkle-pop var(--sparkle-duration, 1200ms) cubic-bezier(0.2, 0.8, 0.2, 1)
    forwards;
}

.easter-sparkle::after {
  content: "";
  position: absolute;
  inset: 25%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  filter: blur(1px);
}

@keyframes bg-shift {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 40%;
  }
  100% {
    background-position: 10% 100%;
  }
}

@keyframes aurora-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, -2%, 0) scale(1.06);
  }
  100% {
    transform: translate3d(-2%, 1%, 0) scale(1);
  }
}

@keyframes grid-float {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-20px, -20px, 0);
  }
}

@keyframes glow-float {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(10px, -14px, 0) scale(1.08);
  }
}

@keyframes orb-wander-one {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(60px, -46px, 0) scale(1.15);
  }
  100% {
    transform: translate3d(-24px, 26px, 0) scale(0.95);
  }
}

@keyframes orb-wander-two {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-52px, 40px, 0) scale(1.1);
  }
  100% {
    transform: translate3d(26px, -18px, 0) scale(0.93);
  }
}

@keyframes orb-wander-three {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-40px, -38px, 0) scale(1.12);
  }
  100% {
    transform: translate3d(20px, 24px, 0) scale(0.9);
  }
}

@keyframes easter-hue {
  0% {
    filter: hue-rotate(0deg) saturate(1);
  }
  50% {
    filter: hue-rotate(42deg) saturate(1.35);
  }
  100% {
    filter: hue-rotate(0deg) saturate(1);
  }
}

@keyframes sparkle-pop {
  0% {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.22) rotate(0deg);
  }
  18% {
    opacity: 1;
  }
  65% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--sparkle-drift, 0), -76px, 0) scale(1.18)
      rotate(var(--sparkle-rotation, 0deg));
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 450ms ease,
    transform 450ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

  .one-page-layout {
    grid-template-columns: 1fr;
  }

  .side-column {
    position: static;
  }
}

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

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
    gap: 0.75rem;
  }

  nav a {
    font-size: 0.9rem;
  }
}
