:root {
  --background: #fbfbf8;
  --surface: #ffffff;
  --text: #181916;
  --muted: #5f625b;
  --line: #e2e3dd;
  --soft: #f2f3ee;
  --accent: #35654d;
  --max-width: 1080px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  overflow-x: hidden;
}

body {
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

body.menu-open {
  overflow: hidden;
}

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

img,
svg,
video,
iframe {
  max-width: 100%;
}

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

button {
  color: inherit;
  font: inherit;
}

:where(a, button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: #dce9e1;
}

.shell {
  width: min(100% - (var(--gutter) * 2), var(--max-width));
  min-width: 0;
  margin-inline: auto;
}

.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: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-150%);
  padding: 0.6rem 0.9rem;
  background: var(--text);
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 251, 248, 0.94);
  backdrop-filter: blur(12px);
}

.nav-shell {
  width: min(100% - (var(--gutter) * 2), var(--max-width));
  min-height: 4.25rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-avatar {
  width: 2.1rem;
  height: 2.1rem;
  display: block;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  object-position: 52% 35%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  transition: color 150ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  bottom: 0.2rem;
  left: 0;
  width: 1.35rem;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 150ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

.site-nav .nav-mobile-only {
  display: none;
}

.nav-cta {
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta[aria-current="true"] {
  border-color: var(--text);
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: transparent;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 1px;
  margin-block: 0.34rem;
  background: currentColor;
  transition: transform 150ms ease;
}

.audio-toggle {
  position: fixed;
  z-index: 40;
  right: max(1rem, calc((100vw - var(--max-width)) / 2));
  bottom: 1rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.75rem 0.4rem 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0.5rem 1.5rem rgba(24, 25, 22, 0.08);
  font-size: 0.68rem;
  font-weight: 650;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.audio-toggle:hover {
  border-color: #b8bbb2;
}

.audio-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.audio-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.audio-symbol {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.8rem;
}

.audio-toggle[aria-pressed="true"] .audio-symbol {
  background: var(--accent);
  color: #fff;
}

.hero {
  min-height: min(660px, calc(100vh - 4.25rem));
  padding-block: clamp(4rem, 8vw, 6rem);
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(100%, 850px);
}

.section-index {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0 0 1.25rem;
  font-size: clamp(3.1rem, 7vw, 5.75rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1;
}

.hero-intro {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.65;
}

.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.button {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--text);
  border-radius: 0.45rem;
  font-size: 0.78rem;
  font-weight: 650;
  transition: background-color 150ms ease, color 150ms ease;
}

.button-primary {
  background: var(--text);
  color: #fff;
}

.button-primary:hover {
  background: #343631;
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--text);
}

.text-link {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 650;
}

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

.hero-details {
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

.hero-details > span:not(:last-of-type)::after {
  content: "·";
  margin-left: 1.5rem;
  color: #b5b7af;
}

.social-row,
.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-details .social-row {
  margin-left: auto;
}

.social-row a,
.contact-socials a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: capitalize;
}

.social-row a:hover,
.contact-socials a:hover {
  color: var(--text);
}

.section {
  padding-block: clamp(3.75rem, 7vw, 5.5rem);
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.section-heading h2 {
  max-width: 680px;
  margin: -0.3rem 0 0.7rem;
  font-size: clamp(2.15rem, 4.2vw, 3.45rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.section-heading div > p {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.timeline {
  margin-left: 0;
}

.experience-item {
  padding-block: 1.65rem;
  border-top: 1px solid var(--line);
}

.experience-item:last-child {
  border-bottom: 1px solid var(--line);
}

.experience-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
}

.experience-item h3 {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.experience-company {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.experience-date {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: right;
  overflow-wrap: anywhere;
}

.experience-body {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.experience-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.experience-body li {
  position: relative;
  margin-bottom: 0.65rem;
  padding-left: 1rem;
  color: #4f514b;
  font-size: 0.88rem;
  line-height: 1.65;
}

.experience-body li:last-child {
  margin-bottom: 0;
}

.experience-body .tag-list {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.experience-body li::before {
  content: "";
  position: absolute;
  top: 0.68rem;
  left: 0;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: #9a9d94;
}

.tag-list {
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  max-width: 100%;
  padding: 0.25rem 0.5rem;
  border-radius: 0.3rem;
  background: var(--soft);
  color: #575952;
  font-size: 0.64rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

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

.project-card {
  min-height: 25rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--surface);
  transition: border-color 150ms ease;
}

.project-card:hover {
  border-color: #b8bbb2;
}

.project-meta,
.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.project-number {
  color: var(--accent);
}

.project-meta-short,
.project-result {
  display: none;
}

.project-title {
  margin: auto 0 0.85rem;
  font-size: clamp(1.75rem, 2.8vw, 2.45rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.project-description {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.project-highlights {
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
}

.project-highlights li {
  color: #555750;
  font-size: 0.66rem;
}

.project-highlights li:not(:last-child)::after {
  content: "·";
  margin-left: 0.4rem;
  color: #aeb1a8;
}

.project-footer {
  padding-top: 1.1rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
}

.project-footer .tag-list {
  max-width: 72%;
}

.project-links {
  display: flex;
  gap: 0.4rem;
}

.project-links a {
  min-height: 2.75rem;
  padding-inline: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 650;
}

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

.section-action {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
}

.text-link-large {
  font-size: 0.82rem;
}

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

.skill-group {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--surface);
}

.skill-group h3 {
  margin: 0 0 1rem;
  font-size: 0.82rem;
}

.skill-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-group li {
  display: inline;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.9;
}

.skill-group li:not(:last-child)::after {
  content: ", ";
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface);
}

.about-copy,
.about-strengths {
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.about-strengths {
  border-left: 1px solid var(--line);
  background: var(--soft);
}

.about-copy p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.72;
}

.about-copy .about-lede {
  margin-top: 0;
  color: var(--text);
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  font-weight: 550;
  letter-spacing: -0.025em;
  line-height: 1.45;
}

.about-kicker {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-stats {
  margin: 1.6rem 0 0;
  padding-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--line);
}

.about-stats div {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.about-stats dt {
  min-height: 2.7em;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.35;
}

.about-stats dd {
  order: -1;
  margin: 0 0 0.2rem;
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.principle {
  padding-block: 1rem;
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0.9rem;
  border-top: 1px solid var(--line);
}

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

.principle-index {
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border: 1px solid #d5d7cf;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  font-size: 0.58rem;
}

.principle h3 {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.background-grid {
  margin-top: clamp(2.25rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.background-panel {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--surface);
}

.subsection-title {
  margin: 0 0 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.background-item {
  padding-block: 1.2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  border-top: 1px solid var(--line);
}

.background-item:last-child {
  border-bottom: 1px solid var(--line);
}

.background-item h4 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
}

.background-item p,
.background-item time {
  color: var(--muted);
  font-size: 0.7rem;
}

.background-item p {
  margin: 0.3rem 0 0;
}

.background-item time {
  white-space: nowrap;
}

.writing-list {
  border-top: 1px solid var(--line);
}

.article {
  padding-block: 1.5rem;
  display: grid;
  grid-template-columns: minmax(9rem, 0.45fr) minmax(0, 1.55fr) 1.5rem;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.article-category {
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article h3 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.article p {
  max-width: 44rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.article-meta {
  margin-top: 1rem;
  justify-content: flex-start;
}

.article-arrow {
  transition: transform 150ms ease;
}

.article:hover .article-arrow {
  transform: translate(0.15rem, -0.15rem);
}

.contact-section {
  padding-block: clamp(3.75rem, 7vw, 5.5rem);
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr);
  gap: clamp(3rem, 8vw, 7rem);
}

.contact-section h2 {
  max-width: 600px;
  margin: 1rem 0 0;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.contact-copy {
  align-self: end;
}

.contact-copy > p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
  border-block: 1px solid #d3d5cc;
  font-size: clamp(0.86rem, 1.5vw, 1rem);
  font-weight: 650;
}

.contact-email:hover {
  color: var(--accent);
}

.contact-socials {
  margin-top: 1.25rem;
}

.online-presence {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  border-top: 1px solid #d3d5cc;
}

.online-presence-header {
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.online-presence-header h3 {
  margin: -0.2rem 0 0.45rem;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.online-presence-header div > p {
  max-width: 55ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

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

.online-profile-card {
  min-width: 0;
  min-height: 9.5rem;
  padding: 1.2rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid #d3d5cc;
  border-radius: 0.75rem;
  background: var(--surface);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.online-profile-card:hover {
  transform: translateY(-2px);
  border-color: #b8bbb2;
  box-shadow: 0 0.7rem 1.8rem rgba(24, 25, 22, 0.06);
}

.online-profile-mark {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--soft);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 700;
}

.online-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.online-profile-x {
  background: var(--text);
  color: #fff;
  font-size: 0.85rem;
}

.online-profile-github {
  border: 1px solid var(--line);
  background: var(--surface);
}

.online-profile-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.online-profile-network {
  margin-bottom: 0.25rem;
  color: var(--accent);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.online-profile-copy strong {
  overflow-wrap: anywhere;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.35;
}

.online-profile-copy > span:last-child {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.online-profile-arrow {
  align-self: start;
  color: var(--muted);
  transition: transform 150ms ease;
}

.online-profile-card:hover .online-profile-arrow {
  transform: translate(0.15rem, -0.15rem);
  color: var(--text);
}

.site-footer {
  background: var(--soft);
  color: var(--muted);
}

.footer-inner {
  padding-block: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid #d3d5cc;
  font-size: 0.68rem;
}

.footer-inner p {
  margin: 0;
}

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

.footer-inner a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.noscript,
.load-error {
  margin: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}

.load-error {
  color: #8a1d1d;
}

@media (max-width: 820px) {
  .timeline {
    margin-left: 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .experience-body {
    grid-template-columns: 1fr;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-strengths {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .online-presence-header {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .online-profile-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 1.15rem;
  }

  .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(2) {
    transform: translateY(0.34rem) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(3) {
    transform: translateY(-0.34rem) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: 4.25rem;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 1rem var(--gutter) 2rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    border-top: 1px solid rgba(226, 227, 221, 0.85);
    background: rgba(251, 251, 248, 0.9);
    box-shadow: 0 1.5rem 3rem rgba(24, 25, 22, 0.1);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    -webkit-backdrop-filter: blur(22px) saturate(130%);
    backdrop-filter: blur(22px) saturate(130%);
    overscroll-behavior: contain;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding-block: 1.1rem;
    border-bottom: 1px solid rgba(210, 212, 204, 0.9);
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 650;
  }

  .site-nav a::after {
    bottom: 0.45rem;
  }

  .site-nav .nav-mobile-only {
    display: inline-flex;
  }

  .site-nav .nav-cta {
    margin-top: 0;
    padding-inline: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .hero {
    min-height: auto;
    padding-block: 4rem;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 13vw, 4.4rem);
    letter-spacing: -0.05em;
  }

  .hero-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.9rem;
  }

  .hero-actions .button {
    width: min(100%, 20rem);
  }

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

  .hero-details > span:not(:last-of-type)::after {
    display: none;
  }

  .hero-details .social-row {
    margin: 0.5rem 0 0;
  }

  .experience-topline {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .experience-date {
    text-align: left;
  }

  .project-grid,
  .skill-grid,
  .background-grid,
  .contact-layout,
  .online-profile-grid {
    grid-template-columns: 1fr;
  }

  .online-profile-card:last-child {
    grid-column: auto;
  }

  .project-card {
    min-height: 0;
    padding: 1.25rem;
  }

  .project-meta {
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 0.75rem;
  }

  .project-meta-copy {
    margin-left: auto;
    text-align: right;
  }

  .project-meta-long {
    display: none;
  }

  .project-meta-short {
    display: inline;
  }

  .project-title {
    margin: 1.25rem 0 0.75rem;
  }

  .project-description {
    margin-bottom: 1rem;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }

  .project-result {
    margin: 0 0 1rem;
    padding: 0.75rem;
    display: block;
    border-left: 2px solid var(--accent);
    border-radius: 0.25rem;
    background: var(--soft);
    color: var(--text);
    font-size: 0.75rem;
    line-height: 1.5;
  }

  .project-result-label {
    margin-right: 0.3rem;
    color: var(--accent);
    font-size: 0.58rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .project-highlights {
    display: none;
  }

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

  .project-footer .tag-list {
    max-width: none;
  }

  .article {
    grid-template-columns: 1fr 1.25rem;
    gap: 1rem;
  }

  .article-category {
    grid-column: 1 / -1;
  }

  .article-arrow {
    grid-column: 2;
    grid-row: 2;
  }

  .contact-email {
    align-items: flex-start;
    overflow-wrap: anywhere;
  }

  .background-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .background-item time {
    white-space: normal;
  }

  .audio-toggle {
    right: 0.75rem;
    bottom: 0.75rem;
    width: 3rem;
    min-width: 3rem;
    height: 3rem;
    min-height: 3rem;
    padding: 0;
    justify-content: center;
    gap: 0;
    border-radius: 50%;
  }

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

  .audio-toggle .audio-symbol {
    width: 100%;
    height: 100%;
    background: transparent;
    color: currentColor;
    font-size: 1rem;
  }

  .audio-toggle[aria-pressed="true"] {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
  }

  .audio-toggle[aria-pressed="true"] .audio-symbol {
    background: transparent;
    color: inherit;
  }

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

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
