:root {
  color-scheme: light;
  --bg: #f5f0e8;
  --surface: rgba(255, 252, 246, 0.82);
  --surface-strong: #fffaf2;
  --text: #19313a;
  --muted: #5f726f;
  --line: rgba(25, 49, 58, 0.12);
  --accent: #0f8b8d;
  --accent-strong: #0a6269;
  --accent-soft: rgba(15, 139, 141, 0.14);
  --sage: #75c8c7;
  --sage-soft: rgba(117, 200, 199, 0.16);
  --shadow: 0 22px 60px rgba(21, 42, 49, 0.12);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --backdrop-grid: rgba(25, 49, 58, 0.035);
  --backdrop-blob-one: rgba(15, 139, 141, 0.16);
  --backdrop-blob-two: rgba(239, 223, 199, 0.9);
  --backdrop-base-start: #fcf7ef;
  --backdrop-base-end: #f3eee6;
  --blur-one: rgba(15, 139, 141, 0.08);
  --blur-two: rgba(226, 183, 116, 0.16);
  --topbar-bg: rgba(255, 249, 242, 0.78);
  --topbar-border: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.68);
  --chip-bg: rgba(255, 255, 255, 0.72);
  --chip-strong-bg: rgba(255, 255, 255, 0.62);
  --chip-border: rgba(21, 35, 40, 0.08);
  --button-secondary-bg: rgba(255, 250, 244, 0.7);
  --hero-card-bg: linear-gradient(180deg, rgba(21, 52, 60, 0.96), rgba(18, 40, 46, 0.94));
  --hero-card-glow: rgba(117, 200, 199, 0.34);
  --hero-panel-bg: rgba(255, 255, 255, 0.08);
  --hero-panel-border: rgba(255, 255, 255, 0.08);
  --hero-card-ink: #edf3f1;
  --hero-card-muted: rgba(237, 243, 241, 0.78);
  --hero-card-soft: rgba(237, 243, 241, 0.68);
  --contact-tile-bg: rgba(255, 255, 255, 0.74);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --surface: rgba(9, 20, 26, 0.78);
  --surface-strong: #102028;
  --text: #ecf8f5;
  --muted: #9bb6b3;
  --line: rgba(179, 223, 215, 0.12);
  --accent: #4ad6c3;
  --accent-strong: #b4f2e8;
  --accent-soft: rgba(74, 214, 195, 0.16);
  --sage: #ffc784;
  --sage-soft: rgba(255, 199, 132, 0.16);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --backdrop-grid: rgba(124, 175, 166, 0.06);
  --backdrop-blob-one: rgba(74, 214, 195, 0.18);
  --backdrop-blob-two: rgba(255, 199, 132, 0.12);
  --backdrop-base-start: #051116;
  --backdrop-base-end: #0b1820;
  --blur-one: rgba(74, 214, 195, 0.14);
  --blur-two: rgba(255, 199, 132, 0.12);
  --topbar-bg: rgba(7, 18, 23, 0.78);
  --topbar-border: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.08);
  --chip-bg: rgba(255, 255, 255, 0.04);
  --chip-strong-bg: rgba(255, 255, 255, 0.05);
  --chip-border: rgba(255, 255, 255, 0.08);
  --button-secondary-bg: rgba(255, 255, 255, 0.04);
  --hero-card-bg: linear-gradient(180deg, rgba(11, 31, 36, 0.98), rgba(6, 19, 24, 0.96));
  --hero-card-glow: rgba(74, 214, 195, 0.28);
  --hero-panel-bg: rgba(255, 255, 255, 0.06);
  --hero-panel-border: rgba(255, 255, 255, 0.08);
  --hero-card-ink: #effbf7;
  --hero-card-muted: rgba(239, 251, 247, 0.76);
  --hero-card-soft: rgba(239, 251, 247, 0.64);
  --contact-tile-bg: rgba(255, 255, 255, 0.04);
}

* {
  box-sizing: border-box;
}

::selection {
  background: var(--accent);
  color: #fffaf2;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    linear-gradient(var(--backdrop-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--backdrop-grid) 1px, transparent 1px),
    radial-gradient(circle at top left, var(--backdrop-blob-one), transparent 30%),
    radial-gradient(circle at 85% 15%, var(--backdrop-blob-two), transparent 22%),
    linear-gradient(180deg, var(--backdrop-base-start) 0%, var(--backdrop-base-end) 100%);
  background-size: 72px 72px, 72px 72px, auto, auto, auto;
  min-height: 100vh;
  transition: background 260ms ease, color 260ms ease;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(18px);
  pointer-events: none;
}

body::before {
  width: 22rem;
  height: 22rem;
  top: 9rem;
  right: -6rem;
  background: var(--blur-one);
}

body::after {
  width: 18rem;
  height: 18rem;
  bottom: 8rem;
  left: -4rem;
  background: var(--blur-two);
}

a {
  color: inherit;
  text-decoration: none;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.link-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.icon-inline {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  color: currentColor;
}

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  position: relative;
  isolation: isolate;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 42px;
}

.site-shell::before {
  content: "";
  position: absolute;
  inset: 2rem 0 auto;
  height: 20rem;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
  filter: blur(36px);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--topbar-bg);
  border: 1px solid var(--topbar-border);
  border-radius: 24px;
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 36px rgba(20, 30, 34, 0.08);
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: 76px;
  height: auto;
  object-fit: contain;
  filter: brightness(0) saturate(100%);
  transition: filter 220ms ease;
}

html[data-theme="dark"] .brand-logo {
  filter: brightness(0) invert(1);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 1rem;
  letter-spacing: -0.04em;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  position: relative;
  padding: 8px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--sage));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

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

.nav a:hover::after {
  transform: scaleX(1);
}

.nav a:focus-visible,
.button:focus-visible,
.theme-toggle:focus-visible,
.menu-toggle:focus-visible,
.back-to-top:focus-visible,
.link-with-icon:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 4px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--chip-border);
  border-radius: 16px;
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(21, 35, 40, 0.06);
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease, transform 180ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.theme-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  color: var(--muted);
  transition: color 220ms ease, transform 220ms ease, opacity 220ms ease;
}

.theme-icon svg {
  width: 100%;
  height: 100%;
}

.theme-icon circle,
.theme-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.theme-icon-moon path {
  fill: currentColor;
  stroke: none;
}

html:not([data-theme="dark"]) .theme-icon-sun {
  display: none;
}

html:not([data-theme="dark"]) .theme-icon-moon {
  display: inline-flex;
  color: var(--accent-strong);
}

html[data-theme="dark"] .theme-icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-icon-sun {
  display: inline-flex;
  color: var(--sage);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 6px auto;
  background: var(--text);
}

.section {
  position: relative;
  padding: 88px 0;
}

.section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 30px;
  align-items: stretch;
  padding-top: 60px;
}

.hero::before {
  content: "";
  position: absolute;
  left: -2%;
  right: 26%;
  top: 12%;
  height: 18rem;
  background: linear-gradient(90deg, var(--accent-soft), transparent 72%);
  filter: blur(24px);
  z-index: -1;
}

.hero-copy {
  position: relative;
  padding: 18px 8px 18px 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.77rem;
  font-weight: 700;
}

.hero h1,
.section-heading h2,
.contact-copy h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.96;
  text-wrap: balance;
}

.hero h1 {
  font-size: clamp(3.4rem, 7vw, 6.3rem);
  max-width: 12.8ch;
}

.hero-text,
.section-heading p,
.timeline-card p,
.project-card p,
.skill-card p,
.education-card p,
.contact-copy p,
.availability-card p,
.footer p {
  color: var(--muted);
  line-height: 1.74;
}

.hero-text {
  max-width: 58ch;
  margin: 24px 0 30px;
  font-size: 1.05rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin-bottom: 24px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin-top: 24px;
}

.hero-metrics article {
  padding: 16px;
  border: 1px solid var(--chip-border);
  border-radius: 20px;
  background: var(--chip-strong-bg);
  box-shadow: 0 12px 26px rgba(21, 35, 40, 0.05);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  color: var(--accent-strong);
}

.hero-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 220ms ease, border-color 220ms ease, color 220ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, #0a66c2, #004182);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(10, 102, 194, 0.28);
}

.button-secondary {
  background: var(--button-secondary-bg);
  border-color: var(--chip-border);
}

.hero-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-details span {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--chip-strong-bg);
  border: 1px solid var(--chip-border);
  box-shadow: 0 8px 18px rgba(21, 35, 40, 0.04);
  font-size: 0.92rem;
}

.hero-card,
.intro-band,
.timeline-card,
.project-card,
.skill-card,
.education-card,
.contact-card,
.availability-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.hero-card,
.timeline-card,
.project-card,
.skill-card,
.education-card,
.contact-card,
.availability-card,
.intro-band {
  position: relative;
  overflow: hidden;
}

.hero-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--hero-card-bg);
  color: var(--hero-card-ink);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: auto -48px -68px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--hero-card-glow), transparent 70%);
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-card-header {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--hero-panel-bg);
  border: 1px solid var(--hero-panel-border);
  font-size: 0.92rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7df2ca;
  box-shadow: 0 0 16px rgba(125, 242, 202, 0.8);
}

.constellation {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 170px;
  height: 170px;
  pointer-events: none;
}

.constellation-core,
.constellation-ring,
.constellation-tag {
  position: absolute;
}

.constellation-core {
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--sage), #f7f0e8);
  box-shadow: 0 0 26px rgba(125, 242, 202, 0.35);
}

.constellation-ring {
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.constellation-ring-one {
  width: 92px;
  height: 92px;
}

.constellation-ring-two {
  width: 144px;
  height: 144px;
}

.constellation-tag {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--hero-card-ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.constellation-tag-one {
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
}

.constellation-tag-two {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.constellation-tag-three {
  left: 10px;
  bottom: 18px;
}

.focus-grid {
  display: grid;
  gap: 14px;
  margin: 24px 0 24px;
}

.focus-item {
  padding: 18px;
  border-radius: 18px;
  background: var(--hero-panel-bg);
  border: 1px solid var(--hero-panel-border);
}

.panel-label,
.panel-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent-strong);
}

.hero-card .panel-label,
.hero-card .panel-kicker {
  color: var(--hero-card-soft);
}

.focus-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.42rem;
  letter-spacing: -0.04em;
}

.focus-item p,
.hero-summary p {
  margin: 0;
  color: var(--hero-card-muted);
  line-height: 1.66;
}

.hero-summary {
  padding: 18px 0 22px;
  border-top: 1px solid var(--hero-panel-border);
  border-bottom: 1px solid var(--hero-panel-border);
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.contact-strip a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--hero-panel-bg);
  border: 1px solid var(--hero-panel-border);
  color: var(--hero-card-ink);
  font-size: 0.88rem;
}

.contact-strip a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.intro-band {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 24px;
  align-items: center;
  margin-top: 12px;
  padding: 30px;
  border-radius: 32px;
}

.intro-band::before {
  content: "";
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
}

.intro-band p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.84;
}

.intro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.intro-tags span,
.tool-tags span,
.skill-stack span {
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--text);
  font-weight: 700;
}

.intro-tags span {
  padding: 12px 16px;
  border-radius: 999px;
}

.section-heading {
  position: relative;
  max-width: 52rem;
  margin-bottom: 32px;
  padding-left: 24px;
}

.section-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 74px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), transparent);
}

.section-heading h2,
.contact-copy h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 18px;
}

.timeline,
.skill-grid,
.education-grid {
  display: grid;
  gap: 22px;
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-soft), transparent);
}

.timeline-card,
.project-card,
.skill-card,
.education-card,
.contact-card,
.availability-card {
  border-radius: var(--radius-lg);
}

.timeline-card,
.project-card,
.skill-card,
.education-card {
  padding: 28px;
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 30px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px var(--accent-soft);
}

.timeline-card:hover,
.project-card:hover,
.skill-card:hover,
.education-card:hover,
.contact-card:hover,
.availability-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(21, 42, 49, 0.18);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--glass-border));
}

.timeline-top,
.project-top,
.education-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.timeline-kind,
.timeline-date {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-kind {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.timeline-date {
  background: var(--sage-soft);
  color: var(--accent-strong);
}

.timeline-card h3,
.project-card h3,
.skill-card h3,
.education-card h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.timeline-location {
  margin: 0 0 18px;
  font-weight: 700;
}

.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.detail-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.72;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.project-card-featured {
  grid-row: span 2;
  padding: 32px;
  background: linear-gradient(145deg, rgba(18, 56, 63, 0.98), rgba(13, 34, 41, 0.96));
  color: var(--hero-card-ink);
}

.project-card-featured::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--hero-card-glow), transparent 72%);
}

.project-card-featured h3 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 13ch;
}

.project-card-featured p,
.project-card-featured .detail-list li {
  color: var(--hero-card-muted);
}

.project-card-featured .timeline-kind {
  background: rgba(255, 255, 255, 0.1);
  color: var(--hero-card-ink);
}

.project-card-featured .timeline-date {
  background: rgba(255, 255, 255, 0.08);
  color: var(--sage);
}

.project-card-featured .tool-tags span {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--hero-card-ink);
}

.project-card-featured .detail-list li::before {
  background: var(--sage);
}

.project-summary {
  margin: 0;
}

.tool-tags,
.skill-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-tags span,
.skill-stack span {
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.86rem;
}

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

.skill-card::after,
.education-card::after,
.contact-card::after,
.availability-card::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent 45%);
}

.skill-card p {
  margin: 0 0 18px;
}

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

.education-card strong {
  display: block;
  margin-top: 18px;
  font-size: 1rem;
}

.contact {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 26px;
  align-items: start;
}

.availability-card {
  margin-top: 26px;
  padding: 22px;
}

.availability-card::before {
  content: "";
  position: absolute;
  left: -28px;
  bottom: -38px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
}

.availability-card p {
  margin: 0;
}

.contact-card {
  padding: 28px;
}

.contact-actions {
  margin-top: 4px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.contact-actions .button {
  min-width: 190px;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.contact-list article {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--contact-tile-bg);
  border: 1px solid var(--chip-border);
}

.contact-list a,
.contact-list p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.contact-list a {
  width: fit-content;
}

.footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 10px;
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-mark {
  flex: 0 0 auto;
}

.footer-mark .brand-logo {
  width: 74px;
  height: auto;
}

.footer-name {
  display: block;
  font-weight: 700;
  color: var(--text);
}

.footer-links {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.footer-links p {
  margin: 0;
}

.footer-links a:hover {
  color: var(--text);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--chip-border);
  border-radius: 18px;
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: 0 16px 36px rgba(21, 35, 40, 0.14);
  backdrop-filter: blur(18px);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 220ms ease, transform 220ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.back-to-top:hover {
  transform: translateY(10px);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top .icon-inline {
  width: 1.1rem;
  height: 1.1rem;
}

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

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

@media (max-width: 1100px) {
  .hero,
  .intro-band,
  .contact,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card-featured {
    grid-row: auto;
  }

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

  .intro-tags {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
  }

  .topbar {
    padding: 12px 14px;
    gap: 10px;
  }

  .menu-toggle {
    display: inline-block;
    order: 3;
  }

  .theme-toggle {
    order: 2;
    margin-left: auto;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-left: 0;
    padding: 18px;
    background: var(--topbar-bg);
    border-radius: 20px;
    border: 1px solid var(--topbar-border);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .section {
    padding: 66px 0;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 4.9rem);
    max-width: 100%;
  }

  .hero-text {
    font-size: 1rem;
  }

  .skill-grid,
  .education-grid,
  .contact-list {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .constellation {
    width: 132px;
    height: 132px;
    top: 16px;
    right: 16px;
  }

  .constellation-ring-one {
    width: 76px;
    height: 76px;
  }

  .constellation-ring-two {
    width: 116px;
    height: 116px;
  }

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

  .footer-links {
    justify-items: start;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 16px, 1180px);
    padding-top: 12px;
  }

  .topbar {
    top: 8px;
    border-radius: 18px;
    padding: 10px;
  }

  .brand {
    gap: 8px;
    min-width: 0;
  }

  .brand-logo {
    width: 62px;
  }

  .menu-toggle,
  .theme-toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 14px;
  }

  .theme-icon {
    width: 19px;
    height: 19px;
  }

  .nav {
    max-height: calc(100vh - 86px);
    overflow-y: auto;
  }

  .nav a {
    width: 100%;
    padding: 10px 0;
  }

  .section {
    padding: 54px 0;
  }

  .hero {
    gap: 18px;
    padding-top: 34px;
  }

  .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    line-height: 1.55;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 13vw, 3.45rem);
    line-height: 1.02;
  }

  .hero-text {
    margin: 20px 0 24px;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
    min-height: 50px;
  }

  .hero-details,
  .contact-strip,
  .intro-tags,
  .tool-tags,
  .skill-stack {
    gap: 9px;
  }

  .hero-details span,
  .intro-tags span,
  .tool-tags span,
  .skill-stack span {
    font-size: 0.82rem;
  }

  .hero-metrics article,
  .focus-item,
  .timeline-card,
  .project-card,
  .skill-card,
  .education-card,
  .contact-card,
  .availability-card,
  .intro-band {
    border-radius: 22px;
  }

  .hero-card,
  .timeline-card,
  .project-card,
  .skill-card,
  .education-card,
  .contact-card {
    padding: 22px;
  }

  .intro-band {
    padding: 22px;
  }

  .intro-band p {
    font-size: 1rem;
  }

  .section-heading {
    padding-left: 16px;
    margin-bottom: 24px;
  }

  .section-heading::before {
    height: 54px;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: clamp(2rem, 11vw, 2.8rem);
  }

  .timeline-top,
  .project-top,
  .education-top {
    align-items: flex-start;
  }

  .timeline-kind,
  .timeline-date {
    font-size: 0.68rem;
    letter-spacing: 0.09em;
  }

  .contact-list article {
    padding: 16px;
  }

  .link-with-icon {
    overflow-wrap: anywhere;
  }

  .back-to-top {
    right: 18px;
    bottom: 18px;
    width: 50px;
    height: 50px;
  }

  .brand-text small {
    display: none;
  }

  .timeline {
    padding-left: 24px;
  }

  .timeline-card::before {
    left: -21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .button,
  .nav,
  .menu-toggle,
  .theme-toggle,
  .back-to-top,
  .hero-card,
  .intro-band,
  .timeline-card,
  .project-card,
  .skill-card,
  .education-card,
  .contact-card,
  .availability-card,
  body {
    transition: none;
  }
}
