:root {
  --bg: #070b14;
  --ink: #f4f8fc;
  --body: #d5deea;
  --muted: #a9bdd0;
  --link: #d7f4ff;
  --hair: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.12);
  --glass: rgba(8, 14, 24, 0.82);
  --glass-line: rgba(255, 255, 255, 0.14);
  --glass-sheen: rgba(255, 255, 255, 0.18);
  --header: #070b14;
  --chip: rgba(255, 255, 255, 0.06);
  --chip-line: rgba(255, 255, 255, 0.12);
  --solid: #e8f4ff;
  --solid-ink: #07131c;
  --solid-hover: #ffffff;
  --ghost-line: rgba(255, 255, 255, 0.22);
  --focus: #e7f7ff;
  --selection: #16485c;
  --selection-ink: #f4f8fc;
  --mark-bg: #0c1422;
  --photo-bg: #101826;
  --meter: rgba(255, 255, 255, 0.12);
  --dot: #d7f4ff;
  --dot-ring: rgba(122, 215, 255, 0.16);
  --bullet: #7ad7ff;
  --menu: #070b14;
  --shadow: rgba(0, 0, 0, 0.35);
  --field-1: rgba(90, 160, 255, 0.2);
  --field-2: rgba(150, 100, 255, 0.14);
  --field-3: rgba(40, 210, 200, 0.1);
  --wash-1: rgba(120, 210, 255, 0.28);
  --wash-2: rgba(180, 150, 255, 0.22);
  --streak-a: #ffffff;
  --streak-b: #7ad7ff;
  --title-a: rgba(122, 215, 255, 0.28);
  --title-b: rgba(196, 176, 255, 0.22);
  --orb-glow: rgba(110, 190, 255, 0.18);
  --display: "Syne", "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #e6edf5;
  --ink: #101826;
  --body: #243246;
  --muted: #3c5166;
  --link: #0a4e6a;
  --hair: rgba(16, 24, 38, 0.1);
  --line: rgba(16, 24, 38, 0.12);
  --glass: rgba(255, 255, 255, 0.74);
  --glass-line: rgba(16, 24, 38, 0.14);
  --glass-sheen: rgba(255, 255, 255, 0.9);
  --header: #f5f8fb;
  --chip: rgba(16, 24, 38, 0.045);
  --chip-line: rgba(16, 24, 38, 0.12);
  --solid: #121a28;
  --solid-ink: #f5f8fc;
  --solid-hover: #0c121c;
  --ghost-line: rgba(16, 24, 38, 0.28);
  --focus: #0a4e6a;
  --selection: #c9e6f6;
  --selection-ink: #101826;
  --mark-bg: #f7fbff;
  --photo-bg: #d7e0ea;
  --meter: rgba(16, 24, 38, 0.12);
  --dot: #123044;
  --dot-ring: rgba(11, 106, 140, 0.16);
  --bullet: #0b6a8c;
  --menu: #f5f8fb;
  --shadow: rgba(48, 68, 96, 0.16);
  --field-1: rgba(176, 198, 222, 0.85);
  --field-2: rgba(198, 184, 222, 0.7);
  --field-3: rgba(168, 206, 210, 0.65);
  --wash-1: rgba(255, 255, 255, 0.95);
  --wash-2: rgba(196, 208, 228, 0.9);
  --streak-a: #123044;
  --streak-b: #2f8fb4;
  --title-a: rgba(18, 70, 100, 0.16);
  --title-b: rgba(80, 50, 120, 0.12);
  --orb-glow: rgba(70, 110, 150, 0.22);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.2rem;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
}

::selection {
  background: var(--selection);
  color: var(--selection-ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0;
  transform: translateY(-140%);
  z-index: 80;
  background: var(--ink);
  color: var(--bg);
  padding: 0.7rem 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}

.skip-link:focus {
  transform: none;
  top: 0.6rem;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

#main:focus,
#main:focus-visible {
  outline: none;
}

.field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 58% 42% at 82% -8%, var(--field-1), transparent 62%),
    radial-gradient(ellipse 42% 36% at -8% 24%, var(--field-2), transparent 58%),
    radial-gradient(ellipse 36% 32% at 70% 108%, var(--field-3), transparent 60%),
    var(--bg);
}

.field::before,
.field::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.7;
}

.field::before {
  width: min(46vw, 560px);
  height: min(46vw, 560px);
  left: -8vw;
  top: 18vh;
  background: radial-gradient(circle, var(--wash-1), transparent 68%);
}

.field::after {
  width: min(38vw, 460px);
  height: min(38vw, 460px);
  right: -6vw;
  bottom: 8vh;
  background: radial-gradient(circle, var(--wash-2), transparent 70%);
}

#bubbles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 6%, transparent 14%, transparent 86%, #000 94%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 6%, transparent 14%, transparent 86%, #000 94%, #000 100%);
}

.chrome {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: var(--header-h);
  padding: 0.55rem 1.15rem;
  background: var(--header);
  border-bottom: 1px solid var(--line);
}

.mark {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), rgba(190, 230, 255, 0.2) 26%, rgba(8, 14, 24, 0.15) 42%, transparent 44%),
    var(--mark-bg);
  box-shadow: 0 0 24px var(--orb-glow);
}

.mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from 200deg, #ffffff, #7ad7ff, #c9b6ff, #ffffff, #9fd4ff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

#site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.1rem;
  margin-left: 0.35rem;
}

#site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--body);
  font-weight: 500;
  font-size: 0.95rem;
}

#site-nav a span {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

#site-nav a:hover,
#site-nav a.is-active,
#site-nav a[aria-current="true"] {
  color: var(--ink);
  background: var(--chip);
  box-shadow: inset 0 0 0 1px var(--chip-line);
}

#site-nav .nav-extra {
  display: none;
}

.resume-link {
  margin-left: 0.45rem;
  flex: none;
}

.theme-toggle {
  flex: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--ghost-line);
  background: var(--chip);
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle-orb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #fff, transparent 38%),
    conic-gradient(from 210deg, #f7fbff, #7ad7ff, #c9b6ff, #1c2838);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

html[data-theme="light"] .theme-toggle-orb {
  background:
    radial-gradient(circle at 32% 28%, #fff, transparent 42%),
    conic-gradient(from 210deg, #ffffff, #9fd4ea, #d7c8ee, #7f94a8);
  box-shadow: inset 0 0 0 1.5px #121a28;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: 0.4rem;
  border-radius: 10px;
  border: 1px solid var(--ghost-line);
  background: var(--chip);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.bars,
.bars::before,
.bars::after {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  background: currentColor;
  border-radius: 999px;
  position: relative;
}

.bars::before,
.bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.bars::before {
  top: -6px;
}

.bars::after {
  top: 6px;
}

.menu-btn[aria-expanded="true"] .bars {
  background: transparent;
}

.menu-btn[aria-expanded="true"] .bars::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] .bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

.page {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 2rem;
}

.window {
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  padding-top: clamp(3.4rem, 7vh, 5.2rem);
}

.window-hero {
  padding-top: 0;
  margin-top: 1.15rem;
}

.window-bar {
  display: flex;
  align-items: center;
  min-height: 0;
  padding: 0 0 0.7rem;
  background: none;
  border: 0;
  border-radius: 0;
}

.bead {
  display: none;
}

.window-body {
  padding: 0;
}

.hero {
  position: relative;
  border-radius: 24px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow:
    inset 0 1px 0 var(--glass-sheen),
    0 30px 80px var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(122, 215, 255, 0.35) 32%, rgba(190, 170, 255, 0.28) 68%, rgba(255, 255, 255, 0.08));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.hero .window-body {
  padding: clamp(1.35rem, 3vw, 2.5rem);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(200px, 0.7fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
}

.kicker {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--link);
}

.hero h1 {
  margin-top: 0.55rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3.3rem, 7.2vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--ink);
  text-shadow:
    0.6px 0 var(--title-a),
    -0.6px 0 var(--title-b);
}

.hero h1 .line {
  display: block;
}

.streak {
  display: block;
  width: 4.75rem;
  height: 1px;
  margin-top: 1.05rem;
  background: linear-gradient(90deg, var(--streak-a), var(--streak-b) 55%, transparent);
}

.lede {
  margin-top: 1rem;
  max-width: 34ch;
  color: var(--body);
  font-size: 1.15rem;
  font-weight: 400;
}

.lede a,
.prose a,
.where a,
.footer-links a,
.contact-list a,
.project-links a,
.more a,
.giant {
  color: var(--link);
  text-underline-offset: 0.18em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  border: 1px solid var(--ghost-line);
  background: var(--chip);
  cursor: pointer;
}

.btn-solid {
  color: var(--solid-ink);
  background: var(--solid);
  border-color: var(--solid);
}

.btn-ghost {
  background: transparent;
}

.btn:hover {
  border-color: var(--link);
}

.btn-solid:hover {
  background: var(--solid-hover);
  border-color: var(--solid-hover);
  color: var(--solid-ink);
}

.socials {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin-top: 1.15rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font-weight: 500;
  color: var(--link);
}

.orb-wrap {
  display: grid;
  justify-items: center;
}

.orb {
  position: relative;
  width: min(232px, 58vw);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(from 210deg, #f7fbff, #7ad7ff, #c9b6ff, #f7fbff 58%, #9ed4ff);
  box-shadow:
    0 24px 50px var(--shadow),
    0 0 48px var(--orb-glow);
}

.orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
}

.glint {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), transparent 34%);
  -webkit-mask: radial-gradient(circle, transparent 68%, #000 71%);
  mask: radial-gradient(circle, transparent 68%, #000 71%);
  pointer-events: none;
}

.index {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--link);
}

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 16ch;
}

#about,
#experience,
#skills,
#projects {
  border-top: 1px solid var(--hair);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(200px, 0.72fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: start;
  margin-top: 1.25rem;
}

.prose {
  display: grid;
  gap: 0.9rem;
  max-width: 64ch;
}

.prose p,
.education > p:last-child,
.project-copy > p,
.more p,
.also-used,
.timeline li li,
.contact-lead {
  color: var(--body);
}

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

.facts div {
  padding: 0.9rem 0.95rem 1rem;
  border-radius: 16px;
  background: var(--chip);
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 var(--glass-sheen);
}

.facts dt {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--link);
  margin-bottom: 0.35rem;
}

.facts dd {
  margin: 0;
  font-weight: 500;
  color: var(--ink);
}

.about-figure {
  margin: 0;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 28% 12%;
  border-radius: 18px;
  border: 1px solid var(--glass-line);
  background: var(--photo-bg);
}

.about-figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.timeline {
  list-style: none;
  margin-top: 1.7rem;
  display: grid;
  gap: 1.7rem;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.45rem;
  bottom: 0.4rem;
  width: 1px;
  background: linear-gradient(180deg, var(--ink), var(--bullet), transparent);
}

.timeline > li,
.education {
  position: relative;
  padding-left: 1.6rem;
}

.timeline > li::before,
.education::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 4px var(--dot-ring);
}

.when {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.timeline h3,
.education h3,
.more h3,
.project h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.timeline h3,
.education h3,
.more h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  margin: 0.2rem 0 0.15rem;
}

.where {
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.55rem;
}

.timeline ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  max-width: 68ch;
}

.timeline li li {
  position: relative;
  padding-left: 0.95rem;
}

.timeline li li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bullet);
}

.education {
  margin-top: 1.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--hair);
}

.education::before {
  top: 1.55rem;
}

.education > p:last-child {
  max-width: 68ch;
  margin-top: 0.35rem;
}

.skill-groups {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem 2.4rem;
}

.group-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.skills {
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.skills li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name level"
    "meter meter";
  gap: 0.25rem 0.75rem;
  align-items: baseline;
}

.skill-name {
  grid-area: name;
  font-weight: 500;
  color: var(--ink);
}

.skill-level {
  grid-area: level;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.meter {
  grid-area: meter;
  display: block;
  height: 2px;
  border-radius: 999px;
  background: var(--meter);
  overflow: hidden;
}

.meter > span {
  display: block;
  height: 100%;
  width: calc(var(--level) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, #7ad7ff, #d5c6ff);
}

.also-used {
  margin-top: 1.4rem;
  max-width: 68ch;
}

.project-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.6rem;
}

.project {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
  gap: 1.15rem 1.5rem;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hair);
}

.project.feature {
  grid-template-columns: minmax(200px, 340px) minmax(0, 1fr);
}

.project:last-child {
  border-bottom: 0;
  padding-bottom: 0.2rem;
}

.project-media {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--glass-line);
  background: var(--chip);
  box-shadow: inset 0 1px 0 var(--glass-sheen);
  overflow: hidden;
}

.shot {
  overflow: hidden;
  border-radius: inherit;
  background: var(--photo-bg);
}

.project-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.16), transparent 36%);
  pointer-events: none;
}

.project-index {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--link);
  margin-bottom: 0.3rem;
}

.project h3 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.1;
  margin-bottom: 0.45rem;
}

.project-copy > p {
  max-width: 58ch;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0.85rem 0 0.7rem;
}

.tags li {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--body);
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--glass-line);
}

.project-links,
.more a {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.project-links a,
.more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  text-decoration-thickness: 1px;
}

.more {
  margin-top: 1.8rem;
}

.more h3 {
  margin-bottom: 0.3rem;
}

.more ul {
  list-style: none;
}

.more li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 1.2rem;
  align-items: center;
  padding: 0.95rem 0;
  border-top: 1px solid var(--hair);
}

.more li:last-child {
  border-bottom: 1px solid var(--hair);
}

.more-title {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.more a {
  white-space: nowrap;
}

#contact.window {
  margin-top: clamp(3rem, 7vh, 4.5rem);
  padding: clamp(1.4rem, 3vw, 2.3rem);
  border-radius: 24px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 var(--glass-sheen);
}

.contact-lead {
  margin-top: 0.75rem;
  max-width: 46ch;
}

.giant {
  display: inline-block;
  margin-top: 0.95rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.2vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
  overflow-wrap: anywhere;
}

.contact-list {
  list-style: none;
  margin-top: 1.4rem;
  display: grid;
  gap: 0;
  max-width: 40rem;
}

.contact-list li {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  min-height: 48px;
  padding: 0.35rem 0;
  border-top: 1px solid var(--line);
}

.contact-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-list span {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list a {
  font-weight: 500;
  overflow-wrap: anywhere;
}

.foot {
  position: relative;
  z-index: 1;
  margin-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.foot-row {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.4rem;
  align-items: center;
  padding: 1rem 0 1.3rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.85rem;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-weight: 500;
  color: var(--body);
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.foot p {
  color: var(--muted);
  font-size: 0.86rem;
}

section {
  scroll-margin-top: 5.2rem;
}

@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .hero,
  #contact.window {
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
    backdrop-filter: blur(18px) saturate(1.35);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .project-media img {
    transition: transform 0.6s var(--ease);
  }

  .project:hover .project-media img {
    transform: scale(1.03);
  }

  .btn,
  #site-nav a,
  .bars,
  .bars::before,
  .bars::after {
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  }

  .field::before,
  .field::after {
    animation: wash 28s ease-in-out infinite;
  }

  .field::after {
    animation-duration: 34s;
    animation-delay: -8s;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.theme-ready body,
  html.theme-ready .chrome,
  html.theme-ready .hero,
  html.theme-ready .field,
  html.theme-ready .facts div,
  html.theme-ready #contact.window,
  html.theme-ready .btn,
  html.theme-ready .theme-toggle,
  html.theme-ready h1,
  html.theme-ready h2,
  html.theme-ready h3,
  html.theme-ready p,
  html.theme-ready a,
  html.theme-ready li {
    transition:
      background-color 0.4s var(--ease),
      color 0.4s var(--ease),
      border-color 0.4s var(--ease),
      box-shadow 0.4s var(--ease);
  }

  .js .hero h1 .line {
    animation: rise 0.7s var(--ease) both;
  }

  .js .hero h1 .line:nth-child(2) {
    animation-delay: 0.06s;
  }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  .js .meter > span {
    width: 0;
    transition: width 0.8s var(--ease);
  }

  .js .is-in .meter > span,
  .js .skill-groups.is-in .meter > span {
    width: calc(var(--level) * 100%);
  }
}

@keyframes rise {
  from {
    transform: translateY(10px);
  }
  to {
    transform: none;
  }
}

@keyframes wash {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(1.5vw, -1vh, 0);
  }
}

@media (max-width: 980px) {
  .about-grid,
  .facts {
    grid-template-columns: 1fr;
  }

  .about-photo {
    aspect-ratio: 16 / 11;
    max-height: 420px;
    object-position: 40% 18%;
  }
}

@media (max-width: 860px) {
  .js .menu-btn {
    display: inline-flex;
  }

  .js .resume-link {
    display: none;
  }

  .js #site-nav {
    display: none;
  }

  .js #site-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    margin: 0;
    padding: 1.2rem 1.25rem 2rem;
    gap: 0.15rem;
    overflow: auto;
    background: var(--menu);
  }

  .js #site-nav.is-open a {
    font-family: var(--display);
    font-size: clamp(1.7rem, 6vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
    background: none;
    box-shadow: none;
  }

  .js #site-nav.is-open a span {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 500;
  }

  .js #site-nav.is-open .nav-extra {
    display: inline-flex;
    margin-top: 0.6rem;
  }

  body.menu-open {
    overflow: hidden;
  }

  .hero-grid,
  .skill-groups,
  .project,
  .project.feature {
    grid-template-columns: 1fr;
  }

  .orb-wrap {
    order: -1;
  }

  .lede {
    max-width: 38ch;
  }

  .project-media {
    max-width: 440px;
  }

  .more li,
  .contact-list li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
    align-items: start;
  }

  .hero,
  #contact.window {
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
    backdrop-filter: blur(10px) saturate(1.2);
  }

  #bubbles {
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 3%, transparent 10%, transparent 90%, #000 97%, #000 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 3%, transparent 10%, transparent 90%, #000 97%, #000 100%);
  }
}

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

  .field::before,
  .field::after {
    animation: none;
  }
}

@media (prefers-contrast: more) {
  html[data-theme="dark"] .hero,
  html[data-theme="dark"] #contact.window,
  html[data-theme="dark"] .facts div,
  html[data-theme="dark"] .chrome {
    background: #0c1422;
    border-color: #f4f8fc;
  }

  html[data-theme="light"] .hero,
  html[data-theme="light"] #contact.window,
  html[data-theme="light"] .facts div,
  html[data-theme="light"] .chrome {
    background: #fff;
    border-color: #101826;
  }

  .lede a,
  .prose a,
  .where a,
  .footer-links a,
  .contact-list a,
  .project-links a,
  .more a,
  .giant,
  .socials a {
    text-decoration: underline;
  }
}

@media (forced-colors: active) {
  .field,
  .glint,
  .streak,
  .hero::before,
  .mark::before {
    display: none !important;
  }

  .hero,
  .chrome,
  .btn,
  .mark,
  .project-media,
  .tags li,
  .facts div,
  #contact.window,
  .foot {
    background: Canvas;
    color: CanvasText;
    border: 1px solid CanvasText;
    box-shadow: none;
  }

  .meter > span,
  .timeline > li::before,
  .education::before,
  .timeline li li::before {
    background: CanvasText;
  }

  :focus-visible {
    outline: 2px solid Highlight;
  }
}

@media print {
  .field,
  .menu-btn,
  .theme-toggle,
  .skip-link,
  .streak,
  .glint {
    display: none !important;
  }

  .chrome,
  .hero,
  #contact.window,
  .foot {
    position: static;
    background: #fff;
    color: #000;
    box-shadow: none;
    border-color: #000;
  }

  body,
  .page {
    background: #fff;
    color: #000;
  }

  a {
    text-decoration: underline;
  }
}
