:root {
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-soft: #eef4ff;
  --surface-warm: #f8efe5;
  --text: #122033;
  --muted: #5d6b81;
  --accent: #1d63f2;
  --accent-deep: #0f3ea7;
  --border: rgba(17, 32, 51, 0.08);
  --shadow: 0 24px 60px rgba(17, 32, 51, 0.12);
  --shadow-soft: 0 14px 32px rgba(17, 32, 51, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content-width: 1180px;
  --header-height: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(29, 99, 242, 0.14), transparent 26%),
    radial-gradient(circle at 80% 20%, rgba(248, 239, 229, 0.95), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  overflow-x: hidden;
}

.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  transition: transform 180ms linear;
  will-change: transform;
}

.bg-orb-one {
  width: 22rem;
  height: 22rem;
  top: 8rem;
  left: -7rem;
  background: rgba(209, 224, 255, 0.7);
}

.bg-orb-two {
  width: 18rem;
  height: 18rem;
  right: 3rem;
  top: 30rem;
  background: rgba(255, 242, 227, 0.85);
}

.bg-orb-three {
  width: 14rem;
  height: 14rem;
  left: 48%;
  top: 10rem;
  background: rgba(235, 242, 255, 0.75);
}

a {
  color: inherit;
}

.page-shell {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  padding-bottom: 4rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.15rem 1.4rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(17, 32, 51, 0.07);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 14px 30px rgba(17, 32, 51, 0.07);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-mark {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 0.2rem;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(29, 99, 242, 0.08);
}

.brand-text {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-role {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

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

.site-nav a:hover,
.site-nav a:focus-visible,
.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--accent);
}

.hero,
.intro-grid,
.credentials {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.intro-grid {
  align-items: stretch;
}

.story-column {
  grid-column: span 7;
  display: grid;
  gap: 1rem;
  height: auto;
  align-content: start;
}

.hero {
  align-items: center;
  min-height: calc(100svh - var(--header-height) - 2.5rem);
  padding: 0.75rem 0 1rem;
  gap: 1.25rem;
}

.hero-copy {
  grid-column: span 7;
}

.hero-card {
  grid-column: span 5;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
}

.hero h1,
.section h2,
.hero-card h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
}

.hero-text,
.section-heading p,
.panel p,
.timeline-card p,
.project-card p,
.contact-note,
.quick-facts dd {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 42rem;
  margin: 0.9rem 0 0;
  font-size: 1rem;
  line-height: 1.65;
}

.hero-about {
  display: grid;
  gap: 0.7rem;
  max-width: 43rem;
  margin-top: 0.9rem;
}

.hero-about p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  box-shadow: 0 16px 30px rgba(29, 99, 242, 0.24);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(18, 32, 51, 0.1);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.5rem 0 0;
}

.quick-facts-education {
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  padding-top: 0;
  gap: 1rem;
}

.quick-facts div,
.panel,
.hero-card,
.timeline-card,
.project-card {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  animation: rise-in 700ms ease both;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.quick-facts div {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 128px;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px);
}

.quick-facts dt {
  margin-bottom: 0.4rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.quick-facts dd {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.hero-card,
.panel,
.timeline-card,
.project-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-xl);
}

.quick-facts div:hover,
.quick-facts div:focus-within,
.panel:hover,
.panel:focus-within,
.hero-card:hover,
.hero-card:focus-within,
.timeline-card:hover,
.timeline-card:focus-within,
.project-card:hover,
.project-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(29, 99, 242, 0.18);
  box-shadow: 0 24px 48px rgba(17, 32, 51, 0.14);
}

.quick-facts div:hover,
.quick-facts div:focus-within {
  background: rgba(255, 255, 255, 0.78);
}

.panel:hover,
.panel:focus-within,
.timeline-card:hover,
.timeline-card:focus-within,
.project-card:hover,
.project-card:focus-within {
  background: rgba(255, 255, 255, 0.9);
}

.hero-card:hover,
.hero-card:focus-within {
  background:
    linear-gradient(180deg, rgba(249, 241, 231, 0.98) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.hero-card {
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(248, 239, 229, 0.92) 0%, rgba(255, 255, 255, 0.88) 100%);
  box-shadow: var(--shadow);
}

.photo-frame {
  display: block;
  width: min(12.5rem, 100%);
  aspect-ratio: 1;
  margin: 0 auto 1rem;
  border-radius: 50%;
  padding: 0.45rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(219, 231, 255, 0.92));
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.6),
    0 18px 34px rgba(17, 32, 51, 0.12);
  overflow: hidden;
}

.profile-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 50%;
}

.card-kicker,
.project-type,
.role,
.timeline-meta span,
.credential-list span,
.credential-list small {
  color: var(--muted);
}

.card-kicker,
.project-type,
.role {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
}

.hero-card h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.9rem);
  margin-bottom: 0.75rem;
}

.stat-stack {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.stat-stack article {
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(17, 32, 51, 0.06);
}

.stat-stack strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.98rem;
}

.stat-stack span {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.9rem;
}

.section {
  padding: 2.5rem 0;
}

.panel {
  padding: 2rem;
}

.panel-skills {
  grid-column: span 5;
  height: 100%;
}

.panel-story {
  padding-bottom: 1.35rem;
}

.panel-skills {
  padding-bottom: 1.5rem;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 1rem;
}

.panel-story h2,
.panel-skills h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.02;
  max-width: 10ch;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.15rem;
}

.chip-grid span {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid rgba(29, 99, 242, 0.1);
  font-size: 0.92rem;
  font-weight: 600;
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 1.7rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.4rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.7rem;
  bottom: 0.7rem;
  left: 12.2rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(29, 99, 242, 0.25), rgba(18, 32, 51, 0.08));
}

.timeline-item {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.timeline-meta {
  position: sticky;
  top: 6rem;
  padding-top: 0.35rem;
}

.timeline-meta p {
  margin: 0 0 0.35rem;
  font-weight: 800;
}

.timeline-card {
  padding: 1.7rem 1.8rem;
  background: rgba(255, 255, 255, 0.84);
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: -0.5rem;
  top: 2rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(29, 99, 242, 0.12);
}

.timeline-card h3,
.project-card h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.timeline-card ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}

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

.project-card {
  min-height: 20rem;
  padding: 1.75rem;
}

.hero-copy > *:nth-child(1) {
  animation: slide-up 500ms ease both;
}

.hero-copy > *:nth-child(2) {
  animation: slide-up 650ms ease both;
}

.hero-copy > *:nth-child(3) {
  animation: slide-up 800ms ease both;
}

.hero-copy > *:nth-child(4) {
  animation: slide-up 950ms ease both;
}

.hero-copy > *:nth-child(5) {
  animation: slide-up 1100ms ease both;
}

.hero-copy > *:nth-child(6) {
  animation: slide-up 1250ms ease both;
}

.hero-card {
  animation: drift-in 900ms ease both;
}

.project-card::after {
  content: "";
  position: absolute;
  width: 8rem;
  height: 8rem;
  right: -1.4rem;
  bottom: -1.4rem;
  border-radius: 1.8rem;
  transform: rotate(14deg);
  opacity: 0.8;
}

.accent-blue {
  background: linear-gradient(180deg, rgba(240, 246, 255, 0.96), rgba(255, 255, 255, 0.9));
}

.accent-blue::after {
  background: linear-gradient(135deg, rgba(29, 99, 242, 0.18), rgba(29, 99, 242, 0.04));
}

.accent-slate {
  background: linear-gradient(180deg, rgba(247, 249, 252, 0.96), rgba(255, 255, 255, 0.9));
}

.accent-slate::after {
  background: linear-gradient(135deg, rgba(18, 32, 51, 0.16), rgba(18, 32, 51, 0.05));
}

.accent-cream {
  background: linear-gradient(180deg, rgba(250, 243, 234, 0.96), rgba(255, 255, 255, 0.9));
}

.accent-cream::after {
  background: linear-gradient(135deg, rgba(204, 149, 69, 0.18), rgba(248, 239, 229, 0.1));
}

.credentials {
  align-items: stretch;
  grid-template-columns: 1fr;
}

.credential-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.15rem;
}

.credential-list div {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 32, 51, 0.06);
}

.contact-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.contact-list a {
  text-decoration: none;
  font-weight: 700;
}

.contact-note {
  margin-top: 1.4rem;
}

@media (max-width: 1080px) {
  .hero {
    min-height: auto;
    padding-top: 1rem;
  }

  .hero-copy,
  .hero-card,
  .story-column,
  .panel-skills,
  .credentials .panel:first-child,
  .credentials .panel:last-child {
    grid-column: 1 / -1;
  }

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

  .quick-facts-education {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(calc(100% - 1.25rem), var(--content-width));
  }

  .site-header,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.1rem;
  }

  .brand {
    flex-wrap: wrap;
  }

  .quick-facts,
  .hero,
  .intro-grid,
  .credentials {
    grid-template-columns: 1fr;
  }

  .quick-facts {
    gap: 0.8rem;
    margin-top: 1rem;
  }

  .quick-facts-education {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    display: none;
  }

  .timeline-meta {
    position: static;
  }

  .timeline-card::before {
    left: auto;
    right: 1.4rem;
    top: 1.4rem;
    width: 0.85rem;
    height: 0.85rem;
  }

  .section,
  .hero {
    padding: 2rem 0;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    max-width: none;
  }

  .hero-card,
  .panel,
  .timeline-card,
  .project-card {
    border-radius: 24px;
  }

  .hero-card,
  .panel,
  .timeline-card,
  .project-card,
  .quick-facts div {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .btn {
    width: 100%;
  }

  .site-nav {
    gap: 0.85rem 1rem;
  }

  .hero-text,
  .section-heading p,
  .panel p,
  .timeline-card p,
  .project-card p,
  .timeline-card ul,
  .contact-note {
    line-height: 1.65;
    font-size: 0.98rem;
  }

  .photo-frame {
    width: min(12rem, 100%);
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .bg-orb {
    transform: none !important;
  }
}
