:root {
  --color-background: #111111;
  --color-surface: rgba(20, 20, 20, 0.88);
  --color-surface-strong: #171717;
  --color-navigation: rgba(32, 32, 32, 0.88);
  --color-border: #27272a;
  --color-border-strong: #3a3a3f;
  --color-text: #ffffff;
  --color-text-soft: #d2d2d5;
  --color-text-muted: #a0a0a6;
  --color-focus: #ffffff;
  --font-sans: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius-small: 0.4rem;
  --radius-medium: 0.65rem;
  --radius-large: 1rem;
  --container: 70rem;
  --header-height: 3.5rem;
  --shadow-card: 0 1.5rem 5rem rgba(0, 0, 0, 0.22);
  color-scheme: dark;
  font-family: var(--font-sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 2rem);
}

body {
  min-width: 20rem;
  margin: 0;
  overflow-x: hidden;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(circle at 78% 8%, rgba(255, 255, 255, 0.04), transparent 28rem),
    radial-gradient(circle at 12% 62%, rgba(255, 255, 255, 0.025), transparent 24rem),
    var(--color-background);
  content: "";
}

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

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

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

button {
  color: inherit;
  font: inherit;
}

svg {
  display: block;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-150%);
  border-radius: var(--radius-small);
  background: var(--color-text);
  color: var(--color-background);
  font-weight: 700;
  transition: transform 180ms ease;
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-navigation);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100% - 2rem, var(--container));
  min-height: var(--header-height);
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 2.75rem;
  gap: 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition: color 180ms ease;
}

.brand:hover {
  color: var(--color-text-soft);
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-small);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: -0.03em;
}

.primary-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.primary-navigation a {
  position: relative;
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding-inline: 0.8rem;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  transition: color 180ms ease;
}

.primary-navigation a::after {
  position: absolute;
  right: 0.8rem;
  bottom: 0.45rem;
  left: 0.8rem;
  height: 1px;
  transform: scaleX(0);
  background: var(--color-text);
  content: "";
  transform-origin: left;
  transition: transform 180ms ease;
}

.primary-navigation a:hover,
.primary-navigation a[aria-current="location"] {
  color: var(--color-text);
}

.primary-navigation a:hover::after,
.primary-navigation a[aria-current="location"]::after {
  transform: scaleX(1);
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  min-height: 2.75rem;
  gap: 0.55rem;
  border-bottom: 1px solid var(--color-border-strong);
  font-size: 0.78rem;
  font-weight: 700;
  transition:
    border-color 180ms ease,
    color 180ms ease;
}

.nav-contact:hover {
  border-color: var(--color-text);
  color: var(--color-text-soft);
}

.nav-contact svg,
.button svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.menu-button {
  display: none;
}

.gravity-field {
  position: fixed;
  z-index: 0;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-position:
    0 calc(var(--grid-scroll-offset, 0px) * -1),
    0 0;
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.55));
}

.gravity-field[data-enhanced="true"] {
  background-image: none;
}

.gravity-field canvas {
  display: block;
  width: 100%;
  height: 100%;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.section-shell {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.surface-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 35rem) minmax(18rem, 22rem);
  align-items: center;
  justify-content: space-between;
  min-height: calc(100svh - var(--header-height));
  gap: 4rem;
  padding-block: clamp(3.75rem, 7.5vw, 6rem) 3rem;
}

.hero-copy {
  max-width: 46rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--color-text);
  box-shadow: 0 0 0 0.28rem rgba(255, 255, 255, 0.08);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5.25vw, 4.75rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.hero h1 span {
  display: block;
}

.text-muted {
  color: #85858b;
}

.hero-intro {
  max-width: 31rem;
  margin: 1.5rem 0 0;
  color: var(--color-text-soft);
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.7rem 1.05rem;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  font-size: 0.86rem;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

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

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

.button--primary:hover {
  background: var(--color-text-soft);
}

.button--secondary {
  border-color: var(--color-border-strong);
  background: rgba(17, 17, 17, 0.7);
  color: var(--color-text-soft);
}

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

.profile-card {
  position: relative;
  min-height: 21.75rem;
  padding: 1rem;
  overflow: clip;
}

.profile-card::after {
  position: absolute;
  right: -6rem;
  bottom: -8rem;
  width: 20rem;
  height: 20rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 3rem rgba(255, 255, 255, 0.015),
    0 0 0 6rem rgba(255, 255, 255, 0.01);
  content: "";
}

.profile-card__topline,
.profile-card__footer,
.project-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mono-label,
.section-index,
.skill-card__index {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.availability,
.project-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-text-soft);
  font-size: 0.72rem;
}

.availability::before,
.project-status span {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.monogram {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(72%, 11.25rem);
  aspect-ratio: 1;
  transform: translate(-50%, -54%);
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  background: #141414;
  box-shadow: inset 0 0 4rem rgba(255, 255, 255, 0.025);
  font-size: clamp(2.6rem, 5.25vw, 4.1rem);
  font-weight: 300;
  letter-spacing: -0.1em;
  line-height: 1;
}

.monogram::before,
.monogram::after {
  position: absolute;
  background: var(--color-border);
  content: "";
}

.monogram::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.monogram::after {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
}

.monogram span {
  display: grid;
  position: relative;
  z-index: 1;
  place-items: center;
}

.monogram span:last-child {
  align-self: end;
  padding-bottom: 1.1rem;
}

.profile-card__footer {
  position: absolute;
  z-index: 1;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  align-items: flex-end;
}

.detail-label {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--color-text-muted);
  font-size: 0.7rem;
}

.profile-card__footer strong {
  font-size: 0.78rem;
  font-weight: 600;
}

.profile-links {
  display: flex;
  gap: 0.45rem;
}

.profile-links a {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  background: rgba(17, 17, 17, 0.7);
  color: var(--color-text-soft);
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.profile-links a:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-strong);
  color: var(--color-text);
}

.profile-links svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-cue__line {
  width: 3rem;
  height: 1px;
  background: var(--color-border-strong);
}

.content-section {
  padding-block: clamp(4.125rem, 8.25vw, 6.75rem) clamp(2rem, 4vw, 3rem);
}

.content-section + .content-section {
  padding-top: 0;
}

.section-heading {
  max-width: 36.75rem;
  margin-bottom: clamp(1.5rem, 3.75vw, 2.625rem);
}

.section-index {
  margin: 0 0 0.8rem;
}

.section-heading h2,
.contact-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.75vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.052em;
  line-height: 1.05;
}

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 17.25rem);
  align-items: end;
  max-width: none;
  gap: clamp(3rem, 9vw, 9rem);
}

.section-heading--split > p {
  margin: 0 0 0.3rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  gap: 2rem;
}

.about-copy,
.fact-list {
  margin: 0;
  padding: clamp(1.3rem, 3vw, 2rem);
}

.about-copy p {
  max-width: 44rem;
  margin: 1.25rem 0 0;
  color: var(--color-text-muted);
}

.about-copy .lead {
  margin-top: 0;
  color: var(--color-text);
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  line-height: 1.45;
}

.fact-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fact-list div {
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--color-border);
}

.fact-list div:first-child {
  padding-top: 0;
}

.fact-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.fact-list dt {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact-list dd {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(17rem, 1fr) minmax(0, 1fr);
  min-height: 24rem;
  overflow: hidden;
}

.project-card__visual {
  position: relative;
  min-height: 18rem;
  overflow: hidden;
  border-right: 1px solid var(--color-border);
  background: #0e0e0e;
}

.project-grid-preview {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-position: center;
  background-size: 1.5rem 1.5rem;
  mask-image: radial-gradient(circle at 58% 42%, black 0, rgba(0, 0, 0, 0.75) 26%, transparent 72%);
}

.project-grid-preview::before,
.project-grid-preview::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.38);
  content: "";
}

.project-grid-preview::before {
  top: calc(42% + 1.2rem);
  left: calc(58% - 1rem);
  width: 2rem;
  height: 2rem;
}

.project-grid-preview::after {
  top: calc(42% + 2.2rem);
  left: calc(58% - 3rem);
  width: 2rem;
  height: 2rem;
}

.project-grid-preview__cursor {
  position: absolute;
  z-index: 2;
  top: 42%;
  left: 58%;
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid var(--color-text);
  border-radius: 50%;
  box-shadow:
    0 0 0 0.5rem rgba(255, 255, 255, 0.05),
    0 0 3rem 1rem rgba(255, 255, 255, 0.08);
}

.project-number {
  position: absolute;
  right: 1.25rem;
  bottom: 0.25rem;
  color: rgba(255, 255, 255, 0.045);
  font-size: clamp(6rem, 15vw, 11rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1;
}

.project-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.35rem, 3.75vw, 2.625rem);
}

.project-card__content h3,
.achievement-card h3 {
  margin: 1.4rem 0 0;
  font-size: clamp(1.5rem, 3vw, 2.325rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.project-card__content > p {
  margin: 1.25rem 0 0;
  color: var(--color-text-muted);
}

.project-features,
.tag-list {
  list-style: none;
  padding: 0;
}

.project-features {
  display: grid;
  margin: 1.5rem 0 0;
  gap: 0.4rem;
}

.project-features li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--color-text-soft);
  font-size: 0.85rem;
}

.project-features li::before {
  position: absolute;
  top: 0.7rem;
  left: 0;
  width: 0.35rem;
  height: 1px;
  background: var(--color-text-muted);
  content: "";
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.75rem 0 0;
}

.tag-list li {
  padding: 0.38rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.project-summary {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
}

.project-summary__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.project-summary__meta p {
  margin: 0;
}

.project-summary__meta > span {
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.project-summary__content {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: flex-start;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  flex-direction: column;
}

.project-summary__content h3 {
  margin: 0.85rem 0 0;
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-wrap: balance;
}

.project-summary__content > p:not(.mono-label) {
  margin: 0.9rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.project-summary .tag-list {
  margin-top: 1.25rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 1.35rem;
  color: var(--color-text-soft);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-link svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 180ms ease;
}

.project-link:hover svg {
  transform: translate(0.15rem, -0.15rem);
}

.project-card__content,
.project-summary__content,
.section-heading--split > * {
  min-width: 0;
}

.project-card__content h3,
.section-heading h2,
.contact-card h2 {
  text-wrap: balance;
}

.project-card__content > p,
.project-summary__content > p,
.section-heading--split > p {
  overflow-wrap: break-word;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.8rem;
}

.skill-card {
  position: relative;
  min-height: 12.75rem;
  grid-column: span 2;
  padding: 1.25rem;
  overflow: hidden;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.skill-card:nth-child(4),
.skill-card:nth-child(5) {
  grid-column: span 3;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-strong);
  background: rgba(25, 25, 25, 0.94);
}

.skill-card__index {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.skill-card__icon {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-medium);
  font-family: var(--font-mono);
  font-size: 1.3rem;
}

.skill-card__icon--word {
  font-size: 0.78rem;
}

.skill-card__icon--git svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.skill-card h3 {
  margin: 1.8rem 0 0;
  font-size: 1.05rem;
}

.skill-card p {
  max-width: 23rem;
  margin: 0.55rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.achievement-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.65fr);
  align-items: end;
  min-height: 17rem;
  gap: clamp(3rem, 8vw, 7rem);
  padding: clamp(1.35rem, 3.75vw, 2.625rem);
  overflow: hidden;
}

.achievement-card h3 {
  max-width: 40rem;
}

.achievement-card > p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.achievement-card__mark {
  position: absolute;
  top: -2.5rem;
  right: 0.75rem;
  color: rgba(255, 255, 255, 0.035);
  font-size: clamp(10rem, 25vw, 20rem);
  font-weight: 700;
  letter-spacing: -0.12em;
  line-height: 1;
}

.contact-section {
  padding-block: 0 clamp(4.5rem, 9vw, 7.5rem);
}

.contact-card {
  padding: clamp(1.5rem, 5.25vw, 3.75rem);
  text-align: center;
}

.contact-card .section-index {
  margin-bottom: 1.25rem;
}

.contact-card h2 {
  max-width: 50rem;
  margin-inline: auto;
  font-size: clamp(2.1rem, 5.25vw, 4.3rem);
}

.contact-card > p:not(.section-index) {
  max-width: 37rem;
  margin: 1.5rem auto 0;
  color: var(--color-text-muted);
}

.contact-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--color-border-strong);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  font-weight: 650;
  transition:
    border-color 180ms ease,
    color 180ms ease;
}

.contact-link span {
  min-width: 0;
  overflow-wrap: anywhere;
}

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

.contact-link svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  background: rgba(17, 17, 17, 0.92);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 6rem;
  gap: 1rem;
  color: var(--color-text-muted);
  font-size: 0.7rem;
}

.site-footer__inner p {
  margin: 0;
}

.site-footer__inner p:nth-child(2) {
  text-align: center;
}

.site-footer__inner a {
  justify-self: end;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-text-soft);
  transition: color 180ms ease;
}

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

@media (max-width: 56rem) {
  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .menu-button {
    display: inline-flex;
    min-width: 4.75rem;
    min-height: 2.75rem;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
  }

  .menu-button__icon {
    display: grid;
    width: 1.15rem;
    height: 1rem;
    align-content: center;
    gap: 0.3rem;
  }

  .menu-button__icon span {
    display: block;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .menu-button[aria-expanded="true"] .menu-button__icon span:first-child {
    transform: translateY(0.15rem) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] .menu-button__icon span:last-child {
    transform: translateY(-0.15rem) rotate(-45deg);
  }

  .primary-navigation {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    border-bottom: 1px solid var(--color-border);
    background: rgba(24, 24, 24, 0.98);
  }

  .primary-navigation[data-open="true"] {
    display: grid;
  }

  .primary-navigation a {
    min-height: 3rem;
    border-bottom: 1px solid var(--color-border);
  }

  .primary-navigation a:last-child {
    border-bottom: 0;
  }

  .primary-navigation a::after,
  .nav-contact {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 2.6rem;
    padding-block: 3.75rem 4.5rem;
  }

  .profile-card {
    min-height: 21rem;
  }

  .scroll-cue {
    display: none;
  }

  .section-heading--split,
  .about-grid,
  .achievement-card {
    grid-template-columns: 1fr;
  }

  .section-heading--split {
    align-items: start;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-card__visual {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .project-list {
    grid-template-columns: 1fr;
  }

  .skill-card {
    grid-column: span 3;
  }
}

@media (max-width: 38rem) {
  :root {
    --header-height: 4rem;
  }

  .section-shell,
  .nav-shell {
    width: min(100% - 1.25rem, var(--container));
  }

  .brand {
    font-size: 0.7rem;
  }

  .brand-mark {
    width: 1.8rem;
    height: 1.8rem;
  }

  .hero {
    padding-top: 3.25rem;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 11.25vw, 3.4rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .profile-card {
    min-height: 20rem;
  }

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

  .profile-links {
    align-self: flex-end;
  }

  .project-card__visual {
    min-height: 16rem;
  }

  .skill-grid {
    grid-template-columns: 1fr;
  }

  .skill-card,
  .skill-card:nth-child(4),
  .skill-card:nth-child(5) {
    min-height: 13rem;
    grid-column: auto;
  }

  .achievement-card {
    min-height: 18rem;
    gap: 1.5rem;
  }

  .contact-card {
    text-align: left;
  }

  .contact-link {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .site-footer__inner {
    grid-template-columns: 1fr auto;
    padding-block: 1.25rem;
  }

  .site-footer__inner p:nth-child(2) {
    display: none;
  }
}

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

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

  .button:hover,
  .profile-links a:hover,
  .skill-card:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  .gravity-field {
    display: none;
  }

  .surface-card,
  .profile-links a,
  .skill-card__icon {
    border: 1px solid CanvasText;
  }
}
