@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #ffffff;
  --paper-soft: #f5f5f2;
  --paper-muted: #ecece7;
  --ink: #111111;
  --ink-soft: #3b3b38;
  --muted: #686863;
  --faint: #92928b;
  --line: #deded7;
  --danger-bg: #fff1ef;
  --danger: #8f241f;
  --success-bg: #edf7ef;
  --success: #225c30;
  --radius-card: 28px;
  --radius-control: 16px;
  --radius-pill: 999px;
  --shadow-soft: 0 24px 70px rgb(17 17 17 / 0.08);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: var(--paper);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Geist", "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

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

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

button {
  color: inherit;
}

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

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

[hidden] {
  display: none !important;
}

.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;
}

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

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: currentColor;
  vertical-align: -0.125em;
}

.page-shell {
  width: min(calc(100% - 2rem), 1240px);
  margin-inline: auto;
}

.section-space {
  padding-block: clamp(5rem, 10vw, 8rem);
}

.pre-line {
  white-space: pre-line;
}

.muted-copy {
  color: var(--muted);
  line-height: 1.75;
}

.fine-print {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-180%);
  border-radius: var(--radius-pill);
  background: var(--ink);
  padding: 0.8rem 1.15rem;
  color: var(--paper);
  font-size: 0.875rem;
  font-weight: 700;
  transition: transform 180ms var(--ease-out);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: 72px;
  background: rgb(255 255 255 / 0.94);
  box-shadow: 0 14px 42px rgb(17 17 17 / 0.045);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
  font-weight: 750;
  transition: transform 200ms var(--ease-out);
}

.brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.05);
}

.brand-name {
  max-width: 15rem;
  overflow: hidden;
  font-size: 0.95rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-radius: var(--radius-pill);
  padding-inline: 0.95rem;
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 650;
  transition: color 160ms ease, background-color 160ms ease;
}

.nav-link:hover,
.nav-link[aria-current="location"] {
  background: var(--paper-soft);
  color: var(--ink);
}

.round-button {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}

.menu-trigger {
  display: none;
}

.mobile-navigation {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--paper);
  padding: 1rem;
}

.mobile-navigation-inner {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.mobile-navigation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-brand {
  max-width: 16rem;
  overflow: hidden;
  font-size: 1.1rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-nav {
  display: grid;
  gap: 0.25rem;
  margin-block: auto;
  padding-block: 3rem;
}

.mobile-nav a {
  border-radius: 22px;
  padding: 0.75rem 1rem;
  font-size: clamp(2rem, 11vw, 3.5rem);
  font-weight: 720;
  letter-spacing: -0.065em;
  transition: background-color 160ms ease;
}

.mobile-nav a:hover {
  background: var(--paper-soft);
}

.display-title {
  margin: 1.75rem 0 0;
  font-size: clamp(2.6rem, 6.5vw, 5.6rem);
  font-weight: 760;
  letter-spacing: -0.075em;
  line-height: 0.96;
  text-wrap: balance;
}

.section-title {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  font-weight: 730;
  letter-spacing: -0.065em;
  line-height: 1;
  text-wrap: balance;
}

.section-copy {
  max-width: 62ch;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 2;
}

.section-heading-action {
  margin-top: 1.5rem;
}

.eyebrow-line {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  color: var(--muted);
  font-family: "Geist Mono", monospace;
  font-size: 0.73rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-line::before {
  width: 1.8rem;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  content: "";
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.3rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms var(--ease-out), background-color 180ms ease,
    color 180ms ease, box-shadow 180ms ease;
}

.primary-button {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 12px 28px rgb(17 17 17 / 0.18);
}

.primary-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgb(17 17 17 / 0.22);
}

.secondary-button {
  background: var(--paper-soft);
  color: var(--ink);
}

.secondary-button:hover {
  background: var(--paper-muted);
  transform: translateY(-3px);
}

.primary-button:active,
.secondary-button:active {
  transform: translateY(0) scale(0.98);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.text-link .icon {
  font-size: 0.78em;
}

.surface-card {
  border-radius: var(--radius-card);
  background: var(--paper-soft);
}

.hero {
  display: flex;
  min-height: 100dvh;
  align-items: center;
  padding-block: 7rem 3.5rem;
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 3rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-location .icon {
  font-size: 0.75rem;
}

.hero-intro {
  max-width: 35rem;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 2;
}

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

.hero-visual {
  min-width: 0;
}

.hero-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 360px;
  margin: 0;
  place-items: center;
  overflow: hidden;
  border-radius: 48px 48px 22px 48px;
  background: var(--paper-soft);
  box-shadow: var(--shadow-soft);
  transform-style: preserve-3d;
}

.hero-stage::after {
  position: absolute;
  right: 8%;
  bottom: 7%;
  width: 18%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  content: "";
  opacity: 0.06;
}

.scene-host,
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-canvas {
  z-index: 1;
  touch-action: pan-y;
}

.scene-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
}

.fallback-orb {
  display: grid;
  width: 58%;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 42%;
  background: var(--ink);
  box-shadow: 0 30px 70px rgb(17 17 17 / 0.18);
  transform: rotate(-6deg);
}

.fallback-orb div {
  width: 58%;
  aspect-ratio: 1;
  border-radius: 38%;
  background: var(--paper);
  transform: rotate(14deg);
}

.scene-host[data-scene-ready="true"] .scene-fallback {
  display: none;
}

.motion-card,
.project-card,
.credential-card {
  transform-style: preserve-3d;
  transition: transform 450ms var(--ease-out), box-shadow 450ms var(--ease-out);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .motion-card:hover,
  .project-card:hover,
  .credential-card:hover {
    box-shadow: var(--shadow-soft);
    transform: perspective(1000px) rotateX(1.2deg) rotateY(-1.2deg) translateY(-6px);
  }
}

.about-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.about-copy {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 2.15;
}

.about-skills {
  padding: 1.6rem;
}

.about-skills h3 {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.pill-list,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  border-radius: var(--radius-pill);
  background: var(--paper);
  padding: 0.7rem 1rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 650;
  box-shadow: 0 8px 24px rgb(17 17 17 / 0.045);
}

.project-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.project-card {
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--paper-soft);
}

.project-visual {
  min-height: 13rem;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}

.project-card:hover .project-visual img,
.credential-card:hover .credential-visual img {
  transform: scale(1.035);
}

.project-mark {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 13rem;
  place-items: center;
  background: var(--paper-muted);
  color: var(--faint);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 760;
  letter-spacing: -0.09em;
}

.project-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
}

.badge {
  border-radius: var(--radius-pill);
  background: var(--paper);
  padding: 0.35rem 0.65rem;
}

.badge-dark {
  background: var(--ink);
  color: var(--paper);
}

.project-copy h3,
.credential-body h3 {
  margin: 1rem 0 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.045em;
}

.project-copy .muted-copy,
.credential-body .muted-copy {
  max-width: 48ch;
  margin-block: 0.75rem 0;
}

.tag-list {
  gap: 0.5rem;
}

.tag-list li {
  border-radius: var(--radius-pill);
  background: var(--paper);
  padding: 0.38rem 0.75rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 650;
}

.project-copy .text-link,
.credential-body .text-link {
  width: fit-content;
  margin-top: 1rem;
}

.empty-state {
  display: grid;
  min-height: 18rem;
  margin-top: 2.5rem;
  padding: 2rem;
  place-items: center;
  border-radius: var(--radius-card);
  background: var(--paper-soft);
  text-align: center;
}

.empty-state h2,
.empty-state h3 {
  margin: 1.25rem 0 0;
}

.empty-state .muted-copy {
  max-width: 32rem;
  margin-inline: auto;
}

.empty-icon {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  margin-inline: auto;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
}

.github-panel {
  margin-top: 2.5rem;
  border-radius: 32px;
  background: var(--paper-soft);
  padding: 1.5rem;
}

.github-empty {
  min-height: 13rem;
  margin: 0;
  background: transparent;
}

.github-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.github-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.github-profile h3 {
  margin: 0;
  font-size: 1.125rem;
}

.github-profile p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.github-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
}

.github-stats {
  display: flex;
  gap: 2rem;
  margin: 0;
}

.github-stats dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
}

.github-stats dd {
  margin: 0.25rem 0 0;
  font-size: 2rem;
  font-weight: 760;
  letter-spacing: -0.05em;
}

.contribution-scroll {
  overflow-x: auto;
  padding-block: 1.75rem 0.75rem;
}

.contribution-grid {
  display: grid;
  width: max-content;
  grid-auto-columns: 10px;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 10px);
  gap: 4px;
}

.contribution-cell {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #efefe9;
}

.contribution-cell[data-level="1"] {
  background: #d7d7cf;
}

.contribution-cell[data-level="2"] {
  background: #ababa2;
}

.contribution-cell[data-level="3"] {
  background: #5a5a55;
}

.contribution-cell[data-level="4"] {
  background: #111111;
}

.contribution-empty {
  background: transparent;
}

.github-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.contribution-legend {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.notice {
  margin: 2rem 0 0;
  border-radius: 20px;
  background: var(--paper);
  padding: 1.25rem;
  color: var(--muted);
  line-height: 1.75;
}

.credential-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.credential-card {
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--paper-soft);
}

.credential-visual {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.credential-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}

.credential-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 13rem;
  place-items: center;
  background: var(--paper-muted);
}

.credential-placeholder .icon {
  width: 5rem;
  height: 5rem;
  padding: 1.2rem;
  border-radius: 50%;
  background: var(--paper);
}

.credential-body {
  padding: 1.5rem;
}

.credential-issuer {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 650;
}

.section-action {
  margin-top: 1.75rem;
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

.contact-email {
  margin-top: 1.5rem;
}

.contact-card {
  padding: 1.5rem;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

.field-label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.field-input {
  width: 100%;
  min-height: 3.2rem;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--paper);
  padding: 0.85rem 1rem;
  color: var(--ink);
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.field-input::placeholder {
  color: var(--muted);
}

.field-input:hover {
  background: #fbfbf8;
}

.field-input:focus {
  background: var(--paper);
  box-shadow: inset 0 0 0 3px var(--ink);
  outline: none;
}

.field-input[aria-invalid="true"] {
  box-shadow: inset 0 0 0 3px var(--danger);
}

.field-textarea {
  min-height: 10rem;
  resize: vertical;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-feedback {
  margin: 0;
  border-radius: var(--radius-control);
  padding: 1rem;
  font-size: 0.875rem;
  font-weight: 650;
}

.form-feedback.is-error {
  background: var(--danger-bg);
  color: var(--danger);
}

.form-feedback.is-success {
  background: var(--success-bg);
  color: var(--success);
}

.form-submit {
  width: fit-content;
}

.site-footer {
  padding-block: 4rem 2rem;
}

.footer-card {
  display: grid;
  gap: 2rem;
  border-radius: var(--radius-card);
  background: var(--paper-soft);
  padding: 1.5rem;
}

.footer-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.footer-copy {
  max-width: 28rem;
  margin-block: 0.5rem 0;
  font-size: 0.875rem;
}

.footer-copyright {
  margin-block: 1.25rem 0;
  color: var(--faint);
  font-size: 0.75rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.footer-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-radius: var(--radius-pill);
  padding-inline: 0.95rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 650;
}

.footer-nav a:hover {
  background: var(--paper);
  color: var(--ink);
}

.credentials-hero {
  padding-block: 9rem 3rem;
}

.credentials-title {
  max-width: 15ch;
  margin-top: 1.5rem;
  font-size: clamp(3rem, 8vw, 6rem);
}

.credentials-intro {
  max-width: 62ch;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 2;
}

.credential-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin: 2.5rem 0 0;
}

.credential-stats dt {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 650;
}

.credential-stats dd {
  margin: 0.2rem 0 0;
  font-size: 2.25rem;
  font-weight: 760;
  letter-spacing: -0.06em;
}

.credentials-list {
  padding-block: 2rem 5rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-button {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--paper-soft);
  padding-inline: 1.25rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 750;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.filter-button:hover {
  background: var(--paper-muted);
}

.filter-button.is-active {
  background: var(--ink);
  color: var(--paper);
}

.filter-button span {
  margin-left: 0.35rem;
  opacity: 0.65;
}

.filter-empty {
  margin-top: 2rem;
}

.error-page {
  min-height: 100dvh;
  background: var(--paper);
}

.error-shell {
  display: grid;
  min-height: 100dvh;
  padding: 1.5rem;
  place-items: center;
}

.error-card {
  width: min(100%, 36rem);
  border-radius: 32px;
  background: var(--paper-soft);
  padding: 2rem;
}

.error-code {
  margin: 0;
  color: var(--faint);
  font-family: "Geist Mono", monospace;
  font-size: 0.875rem;
}

.error-card h1 {
  margin: 0.75rem 0 0;
  font-size: clamp(2rem, 7vw, 3.5rem);
  letter-spacing: -0.06em;
}

.error-card .primary-button {
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-copy,
  .credential-body,
  .about-skills,
  .contact-card {
    padding: 2rem;
  }

  .github-panel {
    padding: 2.25rem;
  }
}

@media (min-width: 768px) {
  .project-grid,
  .credential-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card-wide {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1.1fr 0.9fr;
  }

  .project-card-wide .project-visual {
    height: 100%;
    min-height: 27rem;
    aspect-ratio: auto;
  }

  .footer-card {
    grid-template-columns: 1fr auto;
    align-items: end;
    padding: 2rem;
  }

  .footer-nav {
    justify-content: flex-end;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .about-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }

  .menu-trigger {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 4rem;
  }

  .about-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
    gap: 4rem;
  }

  .contact-grid {
    grid-template-columns: 0.82fr 1.18fr;
    gap: 4rem;
  }
}

@media (max-width: 1023px) {
  .desktop-nav {
    display: none;
  }

  .menu-trigger {
    display: grid;
  }
}

@media (max-width: 767px) {
  .page-shell {
    width: min(calc(100% - 1.5rem), 1240px);
  }

  .site-header {
    height: 66px;
  }

  .hero {
    padding-top: 6rem;
  }

  .hero-stage {
    min-height: 300px;
    border-radius: 36px 36px 18px 36px;
  }

  .github-stats {
    gap: 1.5rem;
  }

  .display-title {
    letter-spacing: -0.065em;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .motion-on .hero-enter {
    animation: rise-in 800ms var(--ease-out) both;
  }

  .motion-on .hero-enter-delay {
    animation: rise-in 900ms 120ms var(--ease-out) both;
  }

  .motion-on .hero-stage {
    animation: stage-in 1000ms 90ms var(--ease-out) both;
  }

  .motion-on .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  }

  .motion-on .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stage-in {
  from {
    opacity: 0;
    transform: translateY(32px) rotate(2deg) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
  }
}

.motion-off *,
.motion-off *::before,
.motion-off *::after {
  scroll-behavior: auto !important;
  animation-duration: 0.01ms !important;
  animation-delay: 0ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
