:root {
  --bg: #17102d;
  --bg-soft: #241843;
  --surface: #2d1f50;
  --surface-bright: #39265f;
  --text: #fffaff;
  --text-muted: #d7caea;
  --ink: #21162f;
  --pink: #ff5f91;
  --orange: #ffad42;
  --yellow: #ffe267;
  --green: #72e9be;
  --teal: #58dbe8;
  --blue: #83a6ff;
  --purple: #c28cff;
  --white: #fff;
  --radius: 24px;
  --shadow: 0 18px 50px rgb(5 2 18 / 24%);
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 "Space Grotesk", system-ui, sans-serif;
}

body.party { animation: party-bg 6s linear infinite; }

button,
a { font: inherit; }

button { cursor: pointer; }

a { color: inherit; }

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2,
h3 {
  font-family: "Fredoka", system-ui, sans-serif;
  line-height: 1.08;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.scroll-progress {
  position: fixed;
  z-index: 80;
  inset: 0 auto auto 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pink), var(--yellow), var(--teal), var(--purple));
}

.blobs {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .32;
  animation: float 18s ease-in-out infinite alternate;
}

.blob-1 { width: 440px; height: 440px; top: -100px; left: -100px; background: var(--pink); }
.blob-2 { width: 390px; height: 390px; top: 24%; right: -130px; background: var(--purple); animation-delay: -4s; }
.blob-3 { width: 380px; height: 380px; bottom: -120px; left: 22%; background: var(--teal); animation-delay: -8s; }
.blob-4 { width: 320px; height: 320px; right: 12%; bottom: 12%; background: var(--orange); animation-delay: -12s; }

.nav {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgb(255 255 255 / 9%);
  background: rgb(23 16 45 / 82%);
  backdrop-filter: blur(16px);
}

.logo {
  width: max-content;
  font-family: "Fredoka", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links { display: flex; gap: clamp(16px, 3vw, 30px); }

.nav-links a {
  color: var(--text-muted);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible { color: var(--yellow); }

.party-btn {
  justify-self: end;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px dashed var(--purple);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 1.2rem;
  transition: transform .2s ease, background .2s ease;
}

.party-btn:hover { transform: rotate(18deg) scale(1.08); background: rgb(194 140 255 / 12%); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .55fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: center;
  width: min(calc(100% - 40px), var(--max));
  min-height: calc(100vh - 72px);
  margin: auto;
  padding: clamp(78px, 10vw, 135px) 0 90px;
}

.hero-eyebrow,
.section-kicker,
.note-kicker {
  margin-bottom: 10px;
  color: var(--yellow);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.hero-name {
  max-width: 900px;
  margin: 0;
  background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow), var(--green), var(--teal), var(--purple));
  background-size: 300% 100%;
  background-clip: text;
  color: transparent;
  font-size: clamp(4rem, 10vw, 8.7rem);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .88;
  cursor: pointer;
  animation: gradient-shift 7s linear infinite;
}

.hero-role {
  margin: 22px 0 0;
  color: var(--yellow);
  font: 600 clamp(1.35rem, 2.5vw, 2rem)/1.2 "Fredoka", sans-serif;
}

.hero-tagline {
  max-width: 680px;
  margin: 18px 0 28px;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover,
.btn:focus-visible { transform: translateY(-3px); }

.btn-primary {
  background: linear-gradient(100deg, var(--pink), var(--orange));
  color: var(--white);
  box-shadow: 0 10px 28px rgb(255 95 145 / 30%);
}

.btn-ghost {
  border: 2px solid var(--purple);
  color: var(--purple);
}

.btn-ghost:hover { background: rgb(194 140 255 / 13%); }

.btn-light { background: var(--white); color: var(--ink); }

.text-link {
  padding: 10px 4px;
  color: var(--text-muted);
  font-weight: 600;
  text-underline-offset: 5px;
}

.availability {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  color: var(--text-muted);
  font-size: .9rem;
}

.availability-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgb(114 233 190 / 12%);
  animation: pulse 2.2s ease-in-out infinite;
}

.hero-note {
  position: relative;
  max-width: 350px;
  justify-self: end;
  padding: 38px 30px 28px;
  border-radius: 5px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: var(--shadow);
  transform: rotate(3deg);
}

.hero-note .note-kicker { color: #9f3959; }
.hero-note p:last-of-type { margin-bottom: 0; font-size: 1.05rem; }

.tape {
  position: absolute;
  top: -18px;
  left: 50%;
  width: 110px;
  height: 34px;
  background: rgb(255 255 255 / 55%);
  transform: translateX(-50%) rotate(-2deg);
}

.doodle {
  display: block;
  margin-top: 4px;
  color: #9f3959;
  font: 700 3rem/1 "Fredoka", sans-serif;
  transform: rotate(20deg);
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 0;
  margin: 0;
  color: var(--text-muted);
  font-size: .88rem;
  animation: bounce 2s ease-in-out infinite;
}

.metrics-wrap {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding-bottom: 38px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 11%);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 5%);
  box-shadow: var(--shadow);
}

.metric { padding: 26px; border-right: 1px solid rgb(255 255 255 / 11%); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; margin-bottom: 2px; color: var(--yellow); font: 700 clamp(1.8rem, 4vw, 2.8rem)/1 "Fredoka", sans-serif; }
.metric span { color: var(--text-muted); font-size: .9rem; }

.section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: clamp(76px, 10vw, 118px) 0;
  border-top: 1px solid rgb(255 255 255 / 10%);
}

.section-heading { max-width: 930px; margin-bottom: 50px; }
.section-heading h2 { margin: 0; font-size: clamp(2.55rem, 6.5vw, 5.7rem); letter-spacing: -.045em; }

.rainbow-text {
  background: linear-gradient(90deg, var(--pink), var(--yellow), var(--teal), var(--purple));
  background-clip: text;
  color: transparent;
}

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

.card,
.education-card,
.journey-item {
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: var(--radius);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}

.about-card {
  min-height: 275px;
  padding: 28px;
  transition: transform .25s ease, background .25s ease;
}

.about-card:hover { transform: translateY(-6px) rotate(-.5deg); background: var(--surface); }
.about-card:nth-child(2):hover { transform: translateY(-6px) rotate(.5deg); }
.card-icon { display: block; margin-bottom: 28px; font-size: 2.8rem; }
.about-card h3 { margin-bottom: 12px; color: var(--yellow); font-size: 1.45rem; }
.about-card p { margin-bottom: 0; color: var(--text-muted); }

.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }

.filter {
  padding: 9px 15px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 999px;
  background: rgb(255 255 255 / 4%);
  color: var(--text-muted);
  font-weight: 600;
}

.filter:hover,
.filter.active { border-color: var(--yellow); background: var(--yellow); color: var(--ink); }
.project-count { min-height: 1.5em; margin-bottom: 24px; color: var(--text-muted); font-size: .9rem; }

.projects-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }

.project-card {
  --project-color: var(--pink);
  position: relative;
  grid-column: span 6;
  display: flex;
  min-height: 350px;
  flex-direction: column;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: var(--radius);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, opacity .2s ease;
}

.project-card:nth-child(3n + 1) { grid-column: span 7; }
.project-card:nth-child(3n + 2) { grid-column: span 5; }
.project-card:nth-child(3n) { grid-column: span 12; min-height: 310px; }
.project-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 7px; background: var(--project-color); }
.project-card:hover { z-index: 2; transform: translateY(-6px) rotate(-.25deg); box-shadow: 0 26px 70px rgb(2 0 12 / 35%); }
.project-card.hidden { display: none; }
.project-card.has-image { display: grid; grid-template-columns: 1fr minmax(230px, .8fr); gap: 28px; }

.project-image {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center top;
  border-radius: 18px;
}

.project-emoji { margin-bottom: 14px; font-size: 3rem; line-height: 1; }
.project-kicker { margin-bottom: 12px; color: var(--project-color); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.project-card h3 { margin: 0 0 14px; font-size: clamp(1.8rem, 3.4vw, 3rem); letter-spacing: -.035em; }
.project-summary { margin-bottom: 0; color: var(--text-muted); }

.project-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0 0; }
.project-tags span { padding: 6px 10px; border: 1px solid rgb(255 255 255 / 13%); border-radius: 999px; color: var(--text-muted); font-size: .8rem; font-weight: 600; }

.project-more {
  align-self: flex-start;
  margin-top: auto;
  padding: 24px 0 0;
  border: 0;
  background: transparent;
  color: var(--project-color);
  font-weight: 700;
}

.project-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.project-details { display: none; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / 11%); color: var(--text-muted); }
.project-card.open .project-details { display: block; }

.journey { position: relative; display: grid; gap: 14px; }
.journey::before { content: ""; position: absolute; top: 24px; bottom: 24px; left: 22px; width: 2px; background: linear-gradient(var(--pink), var(--yellow), var(--teal), var(--purple)); }

.journey-item {
  position: relative;
  margin-left: 56px;
  overflow: hidden;
}

.journey-item::before { content: ""; position: absolute; top: 27px; left: -43px; width: 14px; height: 14px; border: 5px solid var(--bg); border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2px var(--yellow); }

.journey-toggle {
  display: grid;
  grid-template-columns: 175px minmax(0, 1fr) auto;
  gap: 24px;
  width: 100%;
  align-items: center;
  padding: 24px 26px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.journey-period { color: var(--pink); font-size: .9rem; font-weight: 700; }
.journey-heading strong { display: block; font: 600 1.25rem/1.25 "Fredoka", sans-serif; }
.journey-heading span { color: var(--text-muted); font-size: .9rem; }
.journey-plus { color: var(--yellow); font: 600 1.6rem/1 "Fredoka", sans-serif; }

.journey-panel { display: none; padding: 0 26px 26px 225px; color: var(--text-muted); }
.journey-item.open .journey-panel { display: block; }
.journey-panel p { margin-bottom: 14px; }
.journey-panel ul { margin: 0; padding-left: 20px; }
.journey-panel li + li { margin-top: 7px; }

.skills-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.skill {
  --skill-color: var(--pink);
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  padding: 11px 19px;
  border: 2px solid var(--skill-color);
  border-radius: 16px;
  background: rgb(255 255 255 / 4%);
  color: var(--text);
  font-weight: 700;
  transform: rotate(var(--tilt));
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.skill:hover { background: var(--skill-color); color: var(--ink); transform: rotate(0) translateY(-4px); }

.education-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.education-card { min-height: 210px; padding: 28px; }
.education-icon { font-size: 2rem; }
.education-card h3 { margin: 20px 0 7px; font-size: 1.5rem; }
.education-card p { margin-bottom: 0; color: var(--text-muted); }

.contact-section { width: 100%; max-width: none; padding-right: max(20px, calc((100% - var(--max)) / 2)); padding-left: max(20px, calc((100% - var(--max)) / 2)); }

.contact-card {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 8vw, 90px);
  border-radius: 34px;
  background: linear-gradient(135deg, #f45488, #ef7d48 62%, #f7b348);
  color: var(--white);
  text-align: center;
  box-shadow: 0 26px 80px rgb(4 1 15 / 38%);
}

.contact-card::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; bottom: -120px; border: 46px solid rgb(255 255 255 / 12%); border-radius: 50%; }
.contact-card .section-kicker { color: var(--white); }
.contact-card h2 { position: relative; margin: 0; font-size: clamp(3rem, 7vw, 6.4rem); letter-spacing: -.05em; }
.contact-blurb { position: relative; max-width: 650px; margin: 22px auto 30px; font-size: 1.1rem; }
.contact-links { position: relative; justify-content: center; }
.contact-details { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 0; }
.contact-details a { font-weight: 700; text-underline-offset: 4px; }
.contact-sparkle { position: absolute; top: 28px; right: 45px; font-size: clamp(3rem, 8vw, 6rem); opacity: .55; animation: spin 8s linear infinite; }

.footer { padding: 30px 20px 42px; color: var(--text-muted); text-align: center; }
.footer p { margin-bottom: 3px; }
.footer-easter { font-size: .8rem; opacity: .75; }
.noscript { margin: 20px; padding: 15px; background: var(--yellow); color: var(--ink); text-align: center; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.seen { opacity: 1; transform: none; }
.confetti { position: fixed; z-index: 100; top: -16px; width: 11px; height: 16px; pointer-events: none; animation: confetti-fall linear forwards; }

@keyframes float { 0% { transform: translate(0) scale(1); } 50% { transform: translate(45px, -55px) scale(1.12); } 100% { transform: translate(-32px, 28px) scale(.95); } }
@keyframes gradient-shift { to { background-position: 300% 50%; } }
@keyframes bounce { 50% { transform: translateY(8px); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgb(114 233 190 / 4%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes party-bg { 0%, 100% { filter: hue-rotate(0deg); } 50% { filter: hue-rotate(35deg); } }
@keyframes confetti-fall { to { transform: translateY(108vh) rotate(900deg); opacity: .9; } }

@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-note { justify-self: start; max-width: 390px; margin: 8px 0 20px; }
  .hero-scroll { display: none; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n + 2) { border-bottom: 1px solid rgb(255 255 255 / 11%); }
  .about-grid { grid-template-columns: 1fr; }
  .about-card { min-height: auto; }
  .project-card,
  .project-card:nth-child(n) { grid-column: span 12; }
  .project-card.has-image { grid-template-columns: 1fr; }
  .project-image { max-height: 470px; }
  .journey-toggle { grid-template-columns: 135px minmax(0, 1fr) auto; }
  .journey-panel { padding-left: 185px; }
}

@media (max-width: 620px) {
  .nav { min-height: 64px; padding: 10px 16px; }
  .logo { font-size: 1.08rem; }
  .party-btn { width: 40px; height: 40px; }
  .hero,
  .section,
  .metrics-wrap { width: min(calc(100% - 28px), var(--max)); }
  .hero { padding: 70px 0; }
  .hero-name { font-size: clamp(3.5rem, 20vw, 5.2rem); }
  .hero-role { font-size: 1.25rem; }
  .hero-actions { align-items: stretch; }
  .hero-actions .btn { flex: 1 1 45%; }
  .hero-actions .text-link { flex-basis: 100%; }
  .availability { align-items: flex-start; }
  .hero-note { margin-top: 20px; padding: 34px 24px 24px; }
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid rgb(255 255 255 / 11%); }
  .metric:last-child { border-bottom: 0; }
  .section-heading h2 { font-size: clamp(2.5rem, 14vw, 4rem); }
  .project-card { min-height: 0; padding: 25px; }
  .project-card h3 { font-size: 2rem; }
  .journey::before { left: 10px; }
  .journey-item { margin-left: 32px; }
  .journey-item::before { left: -28px; }
  .journey-toggle { grid-template-columns: 1fr auto; gap: 8px 16px; padding: 22px; }
  .journey-period { grid-column: 1 / -1; }
  .journey-panel { padding: 0 22px 22px; }
  .education-grid { grid-template-columns: 1fr; }
  .contact-section { width: 100%; padding: 72px 14px; }
  .contact-card { padding: 58px 20px 48px; border-radius: 26px; }
  .contact-links { flex-direction: column; }
  .contact-links .btn { width: 100%; }
  .contact-details { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  :root { --bg: #fff; --bg-soft: #fff; --text: #17102d; --text-muted: #51495e; }
  .nav, .blobs, .scroll-progress, .filters, .party-btn, .project-more, .footer-easter { display: none !important; }
  .hero { min-height: auto; }
  .project-card, .journey-item, .education-card, .card { box-shadow: none; break-inside: avoid; }
  .project-details, .journey-panel { display: block !important; }
  .reveal { opacity: 1; transform: none; }
}
