:root {
  color-scheme: dark;
  --bg: #0d0f14;
  --panel: rgba(17, 21, 29, 0.9);
  --text: #f4f7fb;
  --muted: #a3aab7;
  --accent: #8ab4ff;
  --accent-strong: #c8d7ff;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(138, 180, 255, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Avenir Next", "Segoe UI Variable", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 10%, rgba(138, 180, 255, 0.18), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(104, 196, 164, 0.14), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.04), transparent 26%),
    linear-gradient(180deg, #0d0f14 0%, #10141b 45%, #0b0d12 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: -10rem;
  right: -8rem;
  background: rgba(138, 180, 255, 0.16);
}

body::after {
  bottom: -12rem;
  left: -10rem;
  background: rgba(120, 140, 255, 0.08);
}

.site-header {
  width: min(72rem, calc(100% - 4rem));
  margin: 1.25rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: rgba(10, 12, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  backdrop-filter: blur(18px);
  position: sticky;
  top: 1rem;
  z-index: 4;
}

.site-branding {
  display: grid;
  gap: 0.15rem;
}

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

.brand-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  transition: background-color 160ms ease, color 160ms ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.9rem;
}

.account-chip a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 700;
}

.account-chip form {
  margin: 0;
}

.account-chip button,
.button {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.account-chip button,
.button {
  background: linear-gradient(135deg, var(--accent), #709dff);
  color: #08111d;
}

.button:hover,
.account-chip button:hover,
.account-chip a:hover {
  opacity: 0.92;
}

.shell {
  min-height: calc(100vh - 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 2rem 2.5rem;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.site-footer {
  width: min(72rem, calc(100% - 4rem));
  margin: 0 auto 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem 0.25rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.site-footer__copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer__links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 0;
  border: 0;
  background: transparent;
}

.site-footer__links a:hover {
  color: var(--text);
}

.site-footer__links span {
  color: rgba(163, 170, 183, 0.7);
}

.hero,
.content-panel,
.spotlight-card,
.timeline-card,
.section-card,
.section-card--project {
  backdrop-filter: blur(18px);
}

.hero {
  width: min(72rem, 100%);
  padding: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(180deg, rgba(17, 21, 29, 0.94), rgba(12, 15, 21, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

.hero--about {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(18rem, 0.9fr);
  gap: 2rem;
  align-items: start;
}

.hero--aidq {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(20rem, 0.95fr);
  gap: 2rem;
  align-items: start;
}

.hero-copy h1 {
  max-width: 18ch;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.hero--aidq .hero-card h2 {
  margin-bottom: 0.75rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.hero-badges span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--accent-strong);
  font-size: 0.82rem;
}

.hero-card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-card--glass {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

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

.button-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.auth-card {
  width: min(38rem, 100%);
}

.auth-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.auth-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

.auth-form input:focus {
  outline: 2px solid rgba(138, 180, 255, 0.32);
  outline-offset: 2px;
}

.hero-card h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.card-kicker {
  margin-bottom: 1rem;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
}

.hero-metrics {
  display: grid;
  gap: 0.75rem;
}

.metric-card {
  padding: 0.95rem 1rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.metric-card p,
.metric-card span,
.content-panel p,
.timeline-card p,
.section-card--project p,
.section-card p,
.section-heading p,
.spotlight-card p,
.content-panel--contact p {
  color: var(--muted);
}

.metric-card p {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.metric-card h2 {
  margin: 0;
  font-size: 1.05rem;
}

.metric-card span {
  display: block;
  margin-top: 0.45rem;
  line-height: 1.45;
  font-size: 0.94rem;
}

.stack-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.6rem;
  line-height: 1.5;
}

.content-grid {
  width: min(72rem, 100%);
  display: grid;
  gap: 1rem;
}

.content-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-panel {
  padding: 1.35rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(17, 21, 29, 0.92), rgba(13, 16, 22, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.content-panel h2 {
  margin: 0.15rem 0 0.75rem;
}

.chip-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.chip-list li {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(138, 180, 255, 0.1);
  color: var(--text);
  border: 1px solid rgba(138, 180, 255, 0.18);
}

.lede--small {
  max-width: none;
  margin-top: 0;
  font-size: 1rem;
}

.spotlight-grid,
.timeline-grid,
.section-grid,
.section-grid--projects {
  display: grid;
  gap: 1rem;
}

.spotlight-grid,
.timeline-grid,
.section-grid,
.section-grid--projects {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-grid--projects .section-card--project {
  min-height: 100%;
}

.spotlight-card,
.timeline-card,
.section-card,
.section-card--project {
  padding: 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(17, 21, 29, 0.92), rgba(13, 16, 22, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.section-card--protected {
  border-color: rgba(138, 180, 255, 0.18);
}

.timeline-card h3,
.section-card--project h3,
.section-card h3,
.spotlight-card h3 {
  margin: 0.35rem 0 0.5rem;
}

.timeline-period {
  margin: 0;
  color: var(--accent);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-card a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 700;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(138, 180, 255, 0.12);
  color: var(--accent-strong);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

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

h1,
h2,
h3 {
  letter-spacing: -0.03em;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.95;
}

.section-heading h2,
.content-panel h2,
.hero-card h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.lede {
  max-width: 30rem;
  margin: 1.25rem 0 0;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero .lede {
  max-width: 44ch;
  font-size: 1.05rem;
  line-height: 1.65;
}

.section-block {
  width: min(72rem, 100%);
  margin-top: 1.25rem;
}

.section-heading {
  margin-bottom: 1rem;
}

.section-heading--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.section-heading--split > p {
  max-width: 30rem;
  margin: 0;
  color: var(--muted);
}

.section-heading h2 {
  margin: 0;
  font-size: 1.65rem;
}

.section-heading p:last-child {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.section-card p,
.content-panel p,
.timeline-card p,
.spotlight-card p {
  line-height: 1.6;
}

.section-block--contact .content-panel {
  display: grid;
  gap: 0.4rem;
}

.section-block--focus .chip-list {
  margin-top: 0.75rem;
}

.section-block--spotlight .spotlight-card h3,
.section-card--project h3,
.timeline-card h3 {
  max-width: 18ch;
}

.section-block--contact .content-panel--contact {
  max-width: 42rem;
}

@media (max-width: 900px) {
  .hero--about,
  .hero--aidq,
  .content-grid--two,
  .spotlight-grid,
  .timeline-grid,
  .section-grid,
  .section-grid--projects {
    grid-template-columns: 1fr;
  }

  .site-header {
    width: min(72rem, calc(100% - 2rem));
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
  }

  .site-actions {
    justify-content: space-between;
  }

  .site-footer {
    width: min(72rem, calc(100% - 2rem));
  }

  .site-footer__links {
    justify-content: center;
  }

  .hero-actions {
    width: 100%;
  }

  .section-heading--split {
    align-items: start;
    flex-direction: column;
  }
}
