:root {
  color-scheme: dark;
  --paper: #06120d;
  --surface: #0b1a12;
  --ink: #e7f4f2;
  --muted: #90aaa8;
  --green: #36d99b;
  --green-soft: rgba(54, 217, 155, 0.12);
  --line: rgba(125, 184, 151, 0.22);
  --sans: "DM Sans", sans-serif;
  --mono: "DM Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

::selection {
  background: var(--green);
  color: var(--paper);
}

.site-header,
.section-shell {
  width: min(100% - 72px, 1360px);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.wordmark-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
}

.wordmark-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.wordmark-name strong {
  color: var(--green);
  font-weight: 700;
}

.site-navigation {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
  color: #a8bcba;
  font-size: 12px;
  font-weight: 500;
}

.site-navigation a:not(.nav-contact) {
  transition: color 160ms ease;
}

.site-navigation a:hover {
  color: var(--green);
}

.nav-contact {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--green);
}

.nav-contact span {
  font-size: 15px;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: min(790px, calc(100svh - 86px));
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  filter: blur(70px);
  pointer-events: none;
}

.hero::before {
  top: 24%;
  right: 9%;
  width: 420px;
  height: 420px;
  background: rgba(0, 103, 58, 0.11);
}

.hero::after {
  bottom: -28%;
  left: 12%;
  width: 360px;
  height: 360px;
  background: rgba(0, 80, 45, 0.08);
}

.code-atmosphere {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  color: rgba(54, 217, 155, 0.09);
  font-family: var(--mono);
  font-size: clamp(19px, 2.4vw, 32px);
  font-weight: 500;
  pointer-events: none;
}

.code-atmosphere span {
  position: absolute;
}

.code-atmosphere span:nth-child(1) { top: 16%; left: 7%; }
.code-atmosphere span:nth-child(2) { top: 12%; left: 36%; }
.code-atmosphere span:nth-child(3) { top: 26%; left: 57%; }
.code-atmosphere span:nth-child(4) { top: 18%; right: 12%; }
.code-atmosphere span:nth-child(5) { top: 50%; left: 25%; }
.code-atmosphere span:nth-child(6) { top: 70%; left: 49%; }
.code-atmosphere span:nth-child(7) { top: 39%; left: 4%; }
.code-atmosphere span:nth-child(8) { top: 67%; right: 29%; }
.code-atmosphere span:nth-child(9) { top: 77%; right: 9%; }
.code-atmosphere span:nth-child(10) { top: 36%; right: 6%; }
.code-atmosphere span:nth-child(11) { top: 84%; left: 18%; }
.code-atmosphere span:nth-child(12) { top: 55%; right: 44%; }

.hero-grid {
  position: relative;
  display: grid;
  min-height: inherit;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(30px, 5vw, 76px);
  padding-block: 70px;
}

.hero-content {
  max-width: 700px;
  padding-block: 28px;
}

.hero-kicker,
.eyebrow,
.section-number,
.hero-index,
.entry-year,
.project-meta,
.placeholder-note,
.visual-caption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 11px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(54, 217, 155, 0.1);
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(54px, 7vw, 98px);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.98;
}

.highlight-word {
  color: var(--ink);
}

.hero-name {
  color: var(--ink);
}

.hero-subtitle {
  max-width: 590px;
  margin: 29px 0 0;
  color: #d1e2df;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.35;
}

.hero-summary {
  max-width: 530px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: var(--green);
  background: var(--green);
  color: var(--paper);
}

.button-primary:hover {
  border-color: #66eab6;
  background: #66eab6;
}

.button-secondary {
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--green);
  color: var(--green);
}

.hero-visual {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hero-portrait {
  position: relative;
  display: flex;
  width: clamp(240px, 28vw, 320px);
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.hero-portrait::before,
.hero-portrait::after {
  position: absolute;
  z-index: -1;
  inset: 5%;
  border: 1px solid rgba(54, 217, 155, 0.65);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero-portrait::after {
  inset: 11%;
  border-color: rgba(54, 217, 155, 0.25);
}

.tech-symbol {
  position: absolute;
  z-index: 1;
  color: rgba(54, 217, 155, 0.72);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
  animation: code-float 3.4s ease-in-out infinite;
}

.tech-symbol-one {
  top: 10%;
  left: 15%;
}

.tech-symbol-two {
  top: 21%;
  right: 7%;
  animation-delay: -1.2s;
}

.tech-symbol-three {
  right: 12%;
  bottom: 15%;
  animation-delay: -2.1s;
}

.tech-symbol-four {
  bottom: 10%;
  left: 16%;
  animation-delay: -0.8s;
}

.tech-symbol-five {
  top: 48%;
  left: 3%;
  animation-delay: -2.6s;
}

.tech-symbol-six {
  top: 5%;
  right: 29%;
  animation-delay: -1.7s;
}

@keyframes code-float {
  0%,
  100% {
    opacity: 0.45;
    transform: translateY(0) rotate(-7deg);
  }

  50% {
    opacity: 1;
    transform: translateY(-10px) rotate(7deg);
  }
}

.portrait-switch {
  display: grid;
  width: 86%;
  aspect-ratio: 1;
  z-index: 0;
  padding: 0;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(54, 217, 155, 0.85);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 28px rgba(54, 217, 155, 0.17);
  cursor: pointer;
  touch-action: pan-y;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.portrait-switch:hover {
  box-shadow: 0 0 38px rgba(54, 217, 155, 0.28);
  transform: scale(1.025);
}

.portrait-switch:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 5px;
}

.portrait-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: opacity 160ms ease;
}

.portrait-switch.is-logo .portrait-image {
  padding: 0;
  background: #fff;
  object-fit: contain;
}

.portrait-switch.is-logo {
  background: #fff;
}

.logo-orbit {
  position: absolute;
  z-index: -1;
  width: 116%;
  height: 48%;
  border: 1px solid rgba(54, 217, 155, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.logo-orbit-one {
  transform: rotate(-24deg);
}

.logo-orbit-two {
  transform: rotate(24deg);
}

.visual-caption {
  position: absolute;
  top: calc(93% + 6px);
  left: 50%;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}

.visual-caption span {
  color: var(--green);
  font-size: 15px;
}

.section-space {
  padding-top: clamp(76px, 9vw, 125px);
  padding-bottom: clamp(76px, 9vw, 125px);
}

.section-tinted {
  background: var(--surface);
}

.section-bordered {
  border-top: 1px solid var(--line);
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
}

.section-number {
  color: var(--green);
}

.about-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 10%;
  align-items: end;
  padding-top: 56px;
}

.section-title {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 1.06;
}

.about-title {
  margin-bottom: 44px;
  text-align: center;
}

.about-card {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.about-intro {
  margin: 0 0 24px;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.5;
}

.about-intro strong {
  color: var(--text);
}

.about-details {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.about-details p:last-child {
  margin-bottom: 0;
}

.slashes {
  color: var(--green);
}

.section-copy,
.section-copy p,
.project-card > p,
.resource-card > div > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.section-copy {
  max-width: 520px;
  margin: 0;
}

.section-copy p {
  margin: 0 0 18px;
}

.education-heading {
  padding-top: 45px;
  text-align: center;
}

.education-heading .section-title {
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 500;
}

.education-heading .section-title span {
  font-weight: 400;
}

.education-heading > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.education-years {
  position: relative;
  display: grid;
  gap: 18px;
  max-width: 900px;
  margin: 42px auto 0;
}

.education-years::before {
  position: absolute;
  top: 34px;
  bottom: 34px;
  left: 64px;
  width: 1px;
  background: var(--line);
  content: "";
}

.education-year-card {
  position: relative;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 26px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.education-year-heading {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 2px 0;
}

.education-year-heading h3 {
  margin: 0;
  color: var(--green);
  font-size: 17px;
}

.education-year-marker {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 11px;
}

.semester-tabs {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 0;
}

.semester-tab {
  min-height: 42px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: var(--surface);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.semester-tab:hover,
.semester-tab.is-active {
  border-color: var(--green);
  color: var(--green);
  background: rgba(54, 217, 155, 0.1);
}

.semester-details {
  grid-column: 2;
  grid-row: 2;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}

.semester-details-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.semester-details .coming-soon-badge {
  margin: 0;
  white-space: nowrap;
}

.semester-details h4 {
  margin: 18px 0 0;
  font-size: 18px;
  letter-spacing: -0.035em;
}

.semester-details p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.entry-card h3,
.project-card h3,
.resource-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.entry-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.skills-heading,
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding-top: 48px;
}

.skills-heading .section-copy,
.section-heading .section-copy {
  max-width: 290px;
  margin-bottom: 6px;
}

.skills-heading .section-title {
  color: var(--green);
}

.skills-heading {
  justify-content: center;
  padding-top: 42px;
  text-align: center;
}

.skills-coming-soon {
  display: grid;
  min-height: 150px;
  max-width: 640px;
  margin: 32px auto 0;
  padding: 24px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.skills-coming-soon .eyebrow {
  color: var(--green);
  letter-spacing: 0.12em;
  font-size: 12px;
}

.projects-heading {
  padding-top: 45px;
  text-align: center;
}

.projects-heading .section-title {
  font-size: clamp(42px, 6vw, 66px);
}

.projects-heading > p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.project-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.project-category {
  display: flex;
  min-height: 278px;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.project-category-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.project-category-icon {
  display: grid;
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--green);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 18px;
}

.project-category-heading .eyebrow {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.project-category h3 {
  margin: 7px 0 0;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: -0.04em;
}

.project-category > p {
  margin: 28px 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.coming-soon-badge {
  margin-top: auto;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.project-art {
  position: relative;
  display: grid;
  min-height: clamp(230px, 32vw, 420px);
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(54, 217, 155, 0.18);
  border-radius: 12px;
  background-color: #052321;
  background-image: radial-gradient(rgba(54, 217, 155, 0.18) 0.8px, transparent 0.8px);
  background-size: 17px 17px;
}

.project-art span {
  z-index: 1;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 14px;
}

.project-art i {
  position: absolute;
  width: 43%;
  aspect-ratio: 1;
  border: 1px solid rgba(54, 217, 155, 0.56);
  border-radius: 50%;
  transform: scaleX(1.5) rotate(-32deg);
}

.project-art-one i {
  width: 36%;
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 0 35px rgba(54, 217, 155, 0.08);
}

.project-art-two i {
  border-radius: 8px;
  background: rgba(0, 17, 15, 0.65);
  transform: rotate(-8deg) scale(1.1);
}

.project-art-three i {
  border-style: dashed;
  transform: scaleX(1.6) rotate(35deg);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  color: var(--muted);
  font-size: 9px;
}

.project-meta span:last-child {
  color: var(--green);
}

.project-card h3 {
  margin-top: 9px;
}

.project-card > p {
  margin: 7px 0 0;
  font-size: 13px;
}

.resource-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  text-align: center;
}

.more-title {
  margin: 42px 0;
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 500;
  text-align: center;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.resource-icon {
  display: inline-grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--green);
  background: var(--surface);
  font-size: 17px;
  font-weight: 700;
}

.resource-card h3 {
  margin: 0;
  font-size: 20px;
}

.resource-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

#certificates,
#resume,
#linkedin {
  scroll-margin-top: 100px;
}

.contact-section {
  padding-bottom: 0;
}

.contact-heading {
  padding-top: 42px;
  text-align: center;
}

.contact-heading .section-title {
  font-size: clamp(50px, 8vw, 100px);
  font-weight: 500;
}

.contact-heading em {
  color: var(--green);
  font-style: normal;
}

.contact-heading > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  justify-content: center;
  gap: clamp(48px, 12vw, 150px);
  margin-top: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.contact-detail {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  text-decoration: none;
}

.contact-detail .eyebrow {
  color: var(--green);
  letter-spacing: 0.12em;
}

.contact-form {
  display: grid;
  gap: 12px;
  max-width: 850px;
  margin: 0 auto;
  padding: clamp(22px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px !important;
  height: 1px;
  opacity: 0;
}

.contact-form label {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  background: var(--paper);
  font: inherit;
  font-size: 14px;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  outline: 2px solid rgba(54, 217, 155, 0.16);
}

.contact-form .button {
  justify-self: start;
  margin-top: 10px;
}

.contact-form-note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.contact-form-note.is-error {
  color: #ff9a9a;
}

.contact-form-note.is-success {
  color: var(--green);
}

.site-footer {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.site-footer .wordmark-mark {
  width: 32px;
  height: 32px;
  font-size: 10px;
}

.site-footer .wordmark-name {
  color: var(--ink);
  font-size: 11px;
}

.site-footer .wordmark-name strong {
  color: var(--green);
}

.site-footer a:last-child {
  transition: color 160ms ease;
}

.site-footer a:last-child:hover {
  color: var(--green);
}

.menu-toggle:focus-visible,
a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

@media (max-width: 1100px) {
  .site-header,
  .section-shell {
    width: min(100% - 48px, 1360px);
  }

  .site-navigation {
    gap: 14px;
    font-size: 10px;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero h1 {
    font-size: clamp(50px, 6vw, 76px);
  }

  .hero-portrait {
    width: clamp(240px, 28vw, 320px);
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 72px;
  }

  .site-header,
  .section-shell {
    width: calc(100% - 40px);
  }

  .site-header {
    min-height: 72px;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0 10px 10px;
    border: 0;
    background: transparent;
    font-size: 11px;
  }

  .menu-toggle-icon,
  .menu-toggle-icon::after {
    display: block;
    width: 18px;
    height: 1px;
    background: var(--ink);
    transition: transform 180ms ease;
  }

  .menu-toggle-icon {
    position: relative;
  }

  .menu-toggle-icon::after {
    position: absolute;
    top: 6px;
    content: "";
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-icon {
    transform: translateY(3px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
    transform: translateY(-6px) rotate(-90deg);
  }

  .site-navigation {
    position: absolute;
    top: calc(100% + 1px);
    right: -20px;
    left: -20px;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .site-navigation.is-open {
    display: flex;
    flex-direction: column;
  }

  .site-navigation a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
  }

  .site-navigation .nav-contact {
    justify-content: space-between;
    margin-top: 10px;
    padding: 13px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 72px 58px;
  }

  .hero-content {
    padding: 0;
  }

  .hero-kicker {
    margin-bottom: 20px;
    font-size: 9px;
  }

  .hero h1 {
    font-size: clamp(48px, 12vw, 76px);
  }

  .hero-subtitle {
    margin-top: 23px;
    font-size: clamp(17px, 4.5vw, 21px);
  }

  .hero-summary {
    font-size: 14px;
  }

  .hero-visual {
    padding: 12px 0 0;
  }

  .hero-portrait {
    width: min(86vw, 350px);
  }

  .section-space {
    padding-top: 74px;
    padding-bottom: 74px;
  }

  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 38px;
  }

  .section-title {
    font-size: clamp(42px, 11vw, 64px);
  }

  .about-title {
    margin-bottom: 28px;
  }

  .about-card {
    padding: 22px;
  }

  .about-details {
    padding-left: 14px;
  }

  .section-copy,
  .section-copy p {
    font-size: 13px;
  }

  .education-years {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
  }

  .education-years::before {
    left: 39px;
  }

  .education-year-card {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .education-year-heading {
    align-items: center;
    text-align: center;
  }

  .education-year-heading h3 {
    font-size: 13px;
  }

  .education-year-marker {
    width: 32px;
    height: 32px;
    font-size: 9px;
  }

  .semester-tabs {
    gap: 6px;
  }

  .semester-tab {
    padding: 7px 4px;
    font-size: 10px;
  }

  .semester-details {
    padding: 13px;
  }

  .semester-details-meta {
    flex-wrap: wrap;
    font-size: 8px;
  }

  .semester-details .coming-soon-badge {
    padding: 7px 8px;
    font-size: 8px;
  }

  .semester-details h4 {
    font-size: 15px;
  }

  .semester-details p {
    font-size: 11px;
  }

  .skills-heading,
  .section-heading {
    display: block;
    padding-top: 34px;
  }

  .skills-heading {
    text-align: center;
  }

  .skills-coming-soon {
    min-height: 120px;
    margin-top: 24px;
  }

  .skills-heading .section-copy,
  .section-heading .section-copy {
    margin-top: 13px;
  }

  .project-categories {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 34px;
  }

  .project-category {
    min-height: 240px;
    padding: 22px;
  }

  .project-art {
    min-height: min(82vw, 350px);
  }

  .resource-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .more-title {
    margin: 30px 0;
  }

  .resource-card {
    min-height: 220px;
    padding: 24px;
  }

  .contact-heading {
    padding-top: 30px;
  }

  .contact-heading .section-title {
    font-size: clamp(48px, 13vw, 78px);
  }

  .contact-details {
    flex-direction: column;
    gap: 22px;
    margin-top: 32px;
    padding: 24px 0;
  }

  .contact-detail {
    overflow-wrap: anywhere;
    font-size: 13px;
  }

  .contact-form {
    padding: 20px;
  }

  .site-footer {
    min-height: 70px;
    gap: 8px;
    font-size: 8px;
  }

  .site-footer .wordmark-name {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
