:root {
  --bg: #10130f;
  --bg-soft: #171c17;
  --panel: rgba(245, 236, 215, 0.08);
  --panel-strong: rgba(245, 236, 215, 0.14);
  --paper: #f5ecd7;
  --muted: rgba(245, 236, 215, 0.68);
  --line: rgba(245, 236, 215, 0.16);
  --acid: #d6ff4f;
  --clay: #ff7f4f;
  --sky: #79dcff;
  --violet: #b59cff;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--paper);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background:
    linear-gradient(rgba(245, 236, 215, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 236, 215, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 15% 20%, rgba(214, 255, 79, 0.2), transparent 28%),
    radial-gradient(circle at 85% 5%, rgba(121, 220, 255, 0.18), transparent 28%),
    radial-gradient(circle at 70% 80%, rgba(255, 127, 79, 0.16), transparent 30%),
    var(--bg);
  background-size: 42px 42px, 42px 42px, auto, auto, auto, auto;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 34vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.28;
  pointer-events: none;
  animation: float 12s ease-in-out infinite alternate;
}

.ambient-one {
  top: 14vh;
  left: -11vw;
  background: var(--acid);
}

.ambient-two {
  right: -12vw;
  bottom: 4vh;
  background: var(--sky);
  animation-delay: -4s;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  font-weight: 800;
  text-decoration: none;
}

.brand span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--bg);
  background: var(--acid);
  box-shadow: 5px 5px 0 rgba(245, 236, 215, 0.12);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 19, 15, 0.62);
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a:hover {
  color: var(--paper);
  background: var(--panel-strong);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--paper);
  background: rgba(16, 19, 15, 0.72);
  font: inherit;
  font-weight: 800;
}

.section-grid,
.content-section,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: stretch;
  min-height: calc(100vh - 90px);
  padding: 64px 0 48px;
}

.hero-copy,
.hero-panel,
.timeline-card,
.project-card,
.education-card,
.contact-card,
.skill-board,
.answer-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--panel-strong), rgba(245, 236, 215, 0.045));
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 640px;
  padding: clamp(26px, 6vw, 56px);
  border-radius: 38px;
  overflow: hidden;
  position: relative;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 240px;
  aspect-ratio: 1;
  border: 1px solid rgba(214, 255, 79, 0.44);
  border-radius: 50%;
}

.kicker {
  margin: 0 0 16px;
  color: var(--acid);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Archivo Black", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

h1 {
  max-width: 950px;
  font-size: clamp(3.1rem, 8.8vw, 8.8rem);
  line-height: 0.86;
}

h2 {
  max-width: 870px;
  font-size: clamp(2.2rem, 5.6vw, 5.4rem);
  line-height: 0.9;
}

h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.18;
}

p {
  color: var(--muted);
}

.hero-text {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: clamp(1rem, 2vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--paper);
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  border-color: var(--acid);
  color: var(--bg);
  background: var(--acid);
  box-shadow: 7px 7px 0 rgba(245, 236, 215, 0.13);
}

.button.ghost {
  background: rgba(245, 236, 215, 0.04);
}

.hero-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 640px;
  padding: 24px;
  border-radius: 38px;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 190px;
  aspect-ratio: 1;
  border-radius: 44px;
  background: var(--clay);
  opacity: 0.28;
  transform: rotate(16deg);
}

.status-pill {
  position: relative;
  width: max-content;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(214, 255, 79, 0.44);
  border-radius: 999px;
  color: var(--acid);
  font-size: 0.84rem;
  font-weight: 800;
}

.profile-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  place-items: center;
  width: min(100%, 320px);
  aspect-ratio: 1;
  margin: 34px auto;
  border: 1px solid var(--line);
  border-radius: 42% 58% 52% 48%;
  color: var(--bg);
  background:
    radial-gradient(circle at 30% 30%, rgba(245, 236, 215, 0.9), transparent 20%),
    linear-gradient(135deg, var(--sky), var(--acid));
  font-family: "Archivo Black", Impact, sans-serif;
  animation: morph 8s ease-in-out infinite alternate;
}

.profile-mark span {
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(5rem, 16vw, 9rem);
  line-height: 0.82;
  letter-spacing: -0.12em;
}

.profile-mark small {
  margin-top: 14px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.quick-facts {
  position: relative;
  display: grid;
  gap: 12px;
  margin: 0;
}

.quick-facts div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(16, 19, 15, 0.34);
}

.quick-facts dt {
  color: var(--acid);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quick-facts dd {
  margin: 4px 0 0;
  color: var(--paper);
  font-weight: 700;
}

.marquee {
  width: 100%;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(16, 19, 15, 0.48);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 18px;
  padding: 18px 0;
  animation: marquee 22s linear infinite;
}

.marquee-track span {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper);
  font-weight: 900;
  text-transform: uppercase;
}

.content-section {
  padding: 86px 0;
}

.answer-summary {
  padding-bottom: 0;
}

.answer-card {
  padding: clamp(24px, 5vw, 44px);
  border-radius: 34px;
  background:
    radial-gradient(circle at 92% 8%, rgba(121, 220, 255, 0.2), transparent 30%),
    linear-gradient(145deg, rgba(245, 236, 215, 0.14), rgba(245, 236, 215, 0.045));
}

.answer-card h2 {
  font-size: clamp(2rem, 4.8vw, 4.8rem);
}

.answer-card p:last-child {
  max-width: 900px;
  margin-bottom: 0;
  font-size: 1.08rem;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: clamp(20px, 4vw, 34px);
  border-radius: 30px;
}

.timeline-date {
  color: var(--sky);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.company {
  margin: 6px 0 10px;
  color: var(--acid);
  font-weight: 800;
}

.timeline-card p:last-child {
  max-width: 830px;
  margin-bottom: 0;
}

.project-grid,
.education-grid,
.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card,
.education-card,
.credential-card {
  position: relative;
  min-height: 310px;
  padding: 24px;
  border-radius: 30px;
  overflow: hidden;
}

.project-card.large {
  grid-column: span 2;
  color: var(--bg);
  background:
    linear-gradient(135deg, rgba(214, 255, 79, 0.94), rgba(121, 220, 255, 0.86)),
    var(--acid);
}

.project-card.large p,
.project-card.large .project-number {
  color: rgba(16, 19, 15, 0.72);
}

.project-number {
  margin-bottom: 46px;
  color: var(--sky);
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 3.2rem;
  line-height: 1;
  opacity: 0.9;
}

.project-card p {
  margin: 14px 0 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tags span,
.skill-board span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.skill-board {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: clamp(20px, 4vw, 34px);
  border-radius: 30px;
}

.skill-board span:nth-child(3n + 1) {
  color: var(--acid);
}

.skill-board span:nth-child(3n + 2) {
  color: var(--sky);
}

.skill-board span:nth-child(3n + 3) {
  color: var(--clay);
}

.education-card {
  min-height: 220px;
}

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

.credential-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  color: var(--paper);
  text-decoration: none;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 15%, rgba(214, 255, 79, 0.22), transparent 28%),
    linear-gradient(145deg, var(--panel-strong), rgba(245, 236, 215, 0.045));
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease;
}

.credential-card:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 255, 79, 0.48);
}

.credential-card span {
  color: var(--acid);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.credential-card p {
  margin-bottom: 0;
}

.education-card:first-child {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(255, 127, 79, 0.35), rgba(245, 236, 215, 0.08));
}

.education-card p {
  margin: 14px 0 0;
}

.contact-card {
  padding: clamp(28px, 6vw, 62px);
  border-radius: 38px;
  background:
    radial-gradient(circle at 82% 0%, rgba(214, 255, 79, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(245, 236, 215, 0.14), rgba(245, 236, 215, 0.05));
}

.contact-card p:not(.kicker) {
  max-width: 680px;
  margin: 22px 0 28px;
  font-size: 1.08rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 0 46px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

.delay-1 {
  transition-delay: 120ms;
}

.delay-2 {
  transition-delay: 220ms;
}

@keyframes float {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(44px, -28px, 0);
  }
}

@keyframes morph {
  0% {
    border-radius: 42% 58% 52% 48%;
  }

  100% {
    border-radius: 58% 42% 46% 54%;
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 920px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 74px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
    padding: 12px;
    background: rgba(16, 19, 15, 0.94);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 34px;
  }

  .hero-copy,
  .hero-panel {
    min-height: auto;
  }

  .hero-panel {
    gap: 22px;
  }

  .profile-mark {
    align-items: flex-start;
    width: 100%;
    aspect-ratio: auto;
    margin: 0;
    padding: 22px;
    border-radius: 22px;
    animation: none;
  }

  .profile-mark span {
    font-size: clamp(3.5rem, 18vw, 6rem);
  }

  .profile-mark small {
    margin-top: 8px;
  }

  .timeline-card,
  .project-grid,
  .education-grid,
  .credential-grid {
    grid-template-columns: 1fr;
  }

  .project-card.large,
  .education-card:first-child {
    grid-column: span 1;
  }
}

@media (max-width: 600px) {
  .site-header,
  .section-grid,
  .content-section,
  .site-footer {
    width: min(100% - 22px, 1180px);
  }

  .brand strong {
    display: none;
  }

  .hero {
    padding-bottom: 30px;
  }

  .hero-copy,
  .hero-panel,
  .timeline-card,
  .project-card,
  .education-card,
  .credential-card,
  .contact-card,
  .skill-board,
  .answer-card {
    border-radius: 24px;
  }

  .hero-copy {
    padding: 24px;
  }

  .content-section {
    padding: 58px 0;
  }

  .project-card,
  .education-card {
    min-height: auto;
  }

  .project-number {
    margin-bottom: 28px;
    font-size: 2.5rem;
  }

  .hero-actions,
  .contact-links,
  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}
