:root {
  --theme-dark-accent: #f59e0b;
  --theme-dark-accent-ink: #111827;
  --theme-dark-background: #08101c;
  --theme-dark-surface: #101c2c;
  --theme-light-accent: #d97706;
  --theme-light-accent-ink: #ffffff;
  --theme-light-background: #f4f6f8;
  --theme-light-surface: #ffffff;
  --accent: var(--theme-dark-accent);
  --accent-ink: var(--theme-dark-accent-ink);
  --bg: var(--theme-dark-background);
  --bg-elevated: color-mix(in srgb, var(--theme-dark-background) 55%, var(--theme-dark-surface));
  --surface: var(--theme-dark-surface);
  --surface-strong: color-mix(in srgb, var(--theme-dark-surface) 97%, var(--text));
  --surface-muted: color-mix(in srgb, var(--theme-dark-background) 42%, var(--theme-dark-surface));
  --text: #f5f7fa;
  --text-soft: #c5ced9;
  --muted: #8e9bad;
  --border: rgba(196, 207, 222, 0.17);
  --border-strong: rgba(196, 207, 222, 0.29);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --header-bg: color-mix(in srgb, var(--theme-dark-background) 90%, transparent);
  --grid-line: rgba(180, 195, 213, 0.055);
  --selection: color-mix(in srgb, var(--accent) 28%, transparent);
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --container: 74rem;
  --header-height: 4.75rem;
  --radius-small: 0.45rem;
  --radius-medium: 0.85rem;
  --radius-large: 1.35rem;
  --transition: 180ms ease;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.2, 0.85, 0.25, 1.15);
}

html[data-theme="light"] {
  --accent: var(--theme-light-accent);
  --accent-ink: var(--theme-light-accent-ink);
  --bg: var(--theme-light-background);
  --bg-elevated: var(--theme-light-surface);
  --surface: var(--theme-light-surface);
  --surface-strong: color-mix(in srgb, var(--theme-light-surface) 92%, var(--text));
  --surface-muted: color-mix(in srgb, var(--theme-light-background) 96%, var(--text));
  --text: #101824;
  --text-soft: #344154;
  --muted: #647184;
  --border: rgba(27, 42, 61, 0.14);
  --border-strong: rgba(27, 42, 61, 0.25);
  --shadow: 0 24px 60px rgba(32, 45, 62, 0.12);
  --header-bg: color-mix(in srgb, var(--theme-light-background) 92%, transparent);
  --grid-line: rgba(27, 42, 61, 0.055);
  --selection: color-mix(in srgb, var(--accent) 20%, transparent);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  background: var(--bg);
  transition: background-color 260ms ease;
}

/* Lenis Reset — prevents CSS scroll-behavior from fighting Lenis */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  transition: color 260ms ease;
}

/* Ground parallax canvas — grid + glow accents */
#site-background {
  position: fixed;
  z-index: -2;
  inset: -30vh 0;
  background-image:
    /* Accent glow orbs — visible enough to track movement */
    radial-gradient(ellipse 600px 400px at 12% 20%, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 88% 65%, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 50% 45%, color-mix(in srgb, var(--accent) 6%, transparent) 0%, transparent 60%),
    /* Scattered subtle dots as depth markers */
    radial-gradient(circle 2px at 22% 18%, color-mix(in srgb, var(--accent) 20%, transparent) 50%, transparent 51%),
    radial-gradient(circle 2px at 78% 32%, color-mix(in srgb, var(--accent) 15%, transparent) 50%, transparent 51%),
    radial-gradient(circle 2px at 35% 72%, color-mix(in srgb, var(--accent) 18%, transparent) 50%, transparent 51%),
    radial-gradient(circle 2px at 65% 55%, color-mix(in srgb, var(--accent) 12%, transparent) 50%, transparent 51%),
    radial-gradient(circle 2px at 90% 85%, color-mix(in srgb, var(--accent) 16%, transparent) 50%, transparent 51%),
    radial-gradient(circle 2px at 8% 60%, color-mix(in srgb, var(--accent) 14%, transparent) 50%, transparent 51%),
    /* Grid lines */
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size:
    100% 100%, 100% 100%, 100% 100%,
    100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%,
    4rem 4rem, 4rem 4rem;
  background-position: center;
  pointer-events: none;
  will-change: transform;
}

/* Crosshair accent marks — fixed geometric markers that reveal parallax */
#site-background::before {
  content: "";
  position: absolute;
  top: 25%;
  left: 18%;
  width: 60px;
  height: 60px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 50%;
  box-shadow:
    70vw 35vh 0 0 color-mix(in srgb, var(--accent) 12%, transparent),
    25vw 60vh 0 -10px color-mix(in srgb, var(--accent) 15%, transparent),
    55vw 15vh 0 5px color-mix(in srgb, var(--accent) 8%, transparent);
  pointer-events: none;
}

/* Soft vignette — subtle fade at edges */
#site-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 40%, var(--bg) 100%);
  pointer-events: none;
}

body.nav-open,
body.dialog-open {
  overflow: hidden;
}

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

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

img {
  height: auto;
}

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

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

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

button {
  border: 0;
}

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

h1,
h2,
h3,
p,
figure,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

.section {
  position: relative;
  padding-block: clamp(5rem, 9vw, 8rem);
  scroll-margin-top: var(--header-height);
}

.section-compact {
  padding-block: 1rem clamp(4rem, 7vw, 6rem);
}

.section-muted {
  border-block: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-muted) 92%, transparent);
}

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

.site-loader {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: none;
  padding: 1.25rem;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--bg);
  background-size: 3rem 3rem;
  opacity: 1;
  transition: opacity 420ms var(--ease-out-expo), visibility 420ms;
}

html.js:not(.admin-preview) .site-loader {
  display: grid;
}

.site-loader.is-exiting,
html.loader-timeout .site-loader {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.site-loader__panel {
  position: relative;
  width: min(28rem, 100%);
  padding: clamp(1.25rem, 5vw, 2rem);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-medium);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow);
}

.site-loader__panel::before,
.site-loader__panel::after {
  position: absolute;
  width: 2.5rem;
  height: 2.5rem;
  content: "";
  pointer-events: none;
}

.site-loader__panel::before {
  top: 0.65rem;
  left: 0.65rem;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}

.site-loader__panel::after {
  right: 0.65rem;
  bottom: 0.65rem;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
}

.site-loader__meta,
.site-loader__identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-loader__meta {
  margin-bottom: 2rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.site-loader__identity {
  justify-content: flex-start;
}

.site-loader__mark {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 0.35rem;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  animation: loader-mark-in 520ms var(--ease-spring) both;
}

.site-loader__name {
  font-size: clamp(1.25rem, 5vw, 1.8rem);
  font-weight: 790;
  letter-spacing: -0.045em;
  animation: loader-copy-in 520ms 90ms var(--ease-out-expo) both;
}

.site-loader__track {
  height: 3px;
  margin-top: 2rem;
  overflow: hidden;
  border-radius: 99rem;
  background: var(--border);
}

.site-loader__track span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 55%, transparent);
  transform: scaleX(0);
  transform-origin: left center;
  animation: loader-progress 720ms 80ms var(--ease-out-expo) forwards;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-small);
  color: var(--accent-ink);
  background: var(--accent);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform var(--transition);
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

html.portfolio-loaded .site-header {
  animation: header-drop-in 520ms var(--ease-out-expo) both;
}

.site-header.is-scrolled,
.site-header:focus-within {
  border-color: var(--border);
  background: var(--header-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(14px);
}

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

.brand {
  z-index: 2;
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-mark,
.footer-mark {
  display: inline-grid;
  width: 2.45rem;
  height: 2.45rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 65%, var(--border));
  border-radius: 0.25rem;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-copy {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-toggle {
  z-index: 2;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
  place-content: center;
  gap: 0.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(0.4rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-0.4rem) rotate(-45deg);
}

.site-nav {
  position: fixed;
  z-index: 1;
  inset: var(--header-height) 0 auto;
  visibility: hidden;
  max-height: 0;
  overflow: auto;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  opacity: 0;
  transition: max-height 260ms ease, opacity var(--transition), visibility var(--transition);
}

.site-nav.is-open {
  visibility: visible;
  max-height: calc(100vh - var(--header-height));
  opacity: 1;
}

.nav-list {
  display: flex;
  margin: 0;
  padding: 1rem;
  flex-direction: column;
  list-style: none;
}

.nav-link {
  position: relative;
  display: flex;
  padding: 0.8rem 0.5rem;
  align-items: center;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 650;
}

.nav-link::before {
  width: 0;
  height: 2px;
  margin-right: 0;
  content: "";
  background: var(--accent);
  transition: width var(--transition), margin var(--transition);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-link.is-active::before {
  width: 1rem;
  margin-right: 0.55rem;
}

.nav-actions {
  display: flex;
  padding: 0 1rem 1.2rem;
  align-items: center;
  gap: 0.65rem;
}

.icon-button {
  display: inline-flex;
  min-width: 2.65rem;
  min-height: 2.65rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--transition), background-color var(--transition), transform var(--transition);
}

.icon-button:hover {
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

.theme-toggle {
  gap: 0.45rem;
  padding-inline: 0.75rem;
}

.theme-icon {
  width: 1rem;
  font-size: 1rem;
  line-height: 1;
  transition: transform 360ms var(--ease-spring);
}

.theme-toggle:hover .theme-icon {
  transform: rotate(22deg) scale(1.08);
}

.theme-text {
  font-size: 0.8rem;
  font-weight: 750;
}

.scroll-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  overflow: hidden;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  padding: 0.72rem 1.1rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  font-size: 0.9rem;
  font-weight: 780;
  line-height: 1.2;
  text-align: center;
  transition: color var(--transition), background-color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

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

.button:active,
.icon-button:active,
.filter-button:active,
.social-link:active {
  transform: translateY(1px) scale(0.975);
  transition-duration: 80ms;
}

.button-accent {
  color: var(--accent-ink);
  background: var(--accent);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 22%, transparent);
}

.button-accent:hover {
  background: color-mix(in srgb, var(--accent) 88%, white);
}

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

.button-secondary:hover,
.button-ghost:hover {
  border-color: color-mix(in srgb, var(--accent) 65%, var(--border));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

.button-ghost {
  border-color: var(--border);
  color: var(--text-soft);
  background: transparent;
}

.button-small {
  min-height: 2.65rem;
  padding-inline: 0.9rem;
  font-size: 0.8rem;
}

.hero {
  display: grid;
  min-height: calc(100svh - var(--header-height));
  padding-top: clamp(4rem, 8vw, 7rem);
  align-items: center;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: 6%;
  right: -14rem;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 15%, transparent), transparent 68%);
  pointer-events: none;
}

html.portfolio-loaded .hero::after {
  animation: hero-glow-in 900ms 100ms var(--ease-out-expo) both;
}

.hero-blueprint {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  will-change: transform;
}

.hero-blueprint::before,
.hero-blueprint::after {
  position: absolute;
  content: "";
  border: 1px solid var(--border);
  transform: rotate(18deg);
}

.hero-blueprint::before {
  top: 7rem;
  right: 8%;
  width: 13rem;
  height: 13rem;
  animation: blueprint-drift 11s ease-in-out infinite alternate;
}

.hero-blueprint::after {
  right: 18%;
  bottom: 4rem;
  width: 6rem;
  height: 6rem;
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: clamp(3rem, 8vw, 6rem);
}

.section-eyebrow {
  display: flex;
  margin-bottom: 1.3rem;
  align-items: center;
  gap: 0.65rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow-marker {
  width: 1.8rem;
  height: 1px;
  background: currentColor;
}

.hero-title {
  max-width: 48rem;
  margin-bottom: 1.5rem;
}

.hero-name {
  display: block;
  margin-bottom: 0.75rem;
  font-size: clamp(3rem, 10vw, 6.3rem);
  font-weight: 820;
  letter-spacing: -0.07em;
  line-height: 0.92;
}

.hero-headline {
  display: block;
  max-width: 46rem;
  color: var(--text-soft);
  font-size: clamp(1.15rem, 3vw, 1.7rem);
  font-weight: 570;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.hero-summary {
  max-width: 42rem;
  margin-bottom: 1.25rem;
  color: var(--text-soft);
  font-size: clamp(1rem, 2vw, 1.14rem);
}

.availability-status {
  display: flex;
  margin-bottom: 1.75rem;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.42rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0.25rem rgba(52, 211, 153, 0.12);
  animation: status-pulse 1.8s 900ms ease-out 2;
}

.hero-actions,
.contact-actions,
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-list,
.footer-socials {
  display: flex;
  margin: 1.5rem 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.social-link {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-soft);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  transition: color var(--transition), border-color var(--transition), transform var(--transition);
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  width: min(100%, 28rem);
  margin-inline: auto;
}

.portrait-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-small);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 320ms ease, box-shadow 320ms ease, transform 420ms var(--ease-spring);
}

.hero-visual:hover .portrait-frame {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--border-strong));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  transform: translateY(-0.35rem) rotate(-0.35deg);
}

.portrait-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 58%, rgba(4, 9, 16, 0.72));
  pointer-events: none;
}

.portrait-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.portrait-caption {
  position: absolute;
  z-index: 1;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  color: #f8fafc;
}

.portrait-location {
  max-width: 14rem;
  font-size: 0.8rem;
  font-weight: 650;
}

.portrait-index,
.education-index {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.technical-corner {
  position: absolute;
  width: 3.4rem;
  height: 3.4rem;
  pointer-events: none;
}

.technical-corner-a {
  top: -0.75rem;
  left: -0.75rem;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.technical-corner-b {
  right: -0.75rem;
  bottom: -0.75rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}

.stats-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--border);
}

.stat-card {
  min-width: 0;
  padding: 1.4rem;
  background: var(--surface);
}

.stat-value {
  margin-bottom: 0.4rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1;
}

.stat-placeholder {
  color: var(--muted);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.stat-label {
  margin-bottom: 0.25rem;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 720;
}

.stat-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.73rem;
}

.section-header {
  max-width: 48rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-title {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 6vw, 3.85rem);
  font-weight: 800;
  letter-spacing: -0.055em;
}

.section-description {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

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

.about-lead {
  color: var(--text);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 590;
  line-height: 1.5;
}

.about-paragraph {
  color: var(--text-soft);
}

.about-highlights {
  display: grid;
  gap: 1rem;
}

.highlight-card {
  position: relative;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--surface);
  transition: border-color var(--transition), transform var(--transition);
}

.highlight-card:hover {
  border-color: var(--border-strong);
  --motion-hover-y: -3px;
}

.highlight-number {
  display: block;
  margin-bottom: 1.4rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
}

.highlight-title {
  margin-bottom: 0.55rem;
  font-size: 1.06rem;
}

.highlight-text {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.timeline {
  position: relative;
  margin-left: 0.35rem;
  padding-left: 1.45rem;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  content: "";
  background: var(--border-strong);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.25rem;
}

.timeline-marker {
  position: absolute;
  top: 1.7rem;
  left: -1.72rem;
  width: 0.58rem;
  height: 0.58rem;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.timeline-card {
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--surface);
}

.timeline-meta,
.education-meta,
.dialog-meta {
  display: flex;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.8rem;
}

.timeline-period,
.education-meta-item,
.dialog-status {
  display: inline-flex;
  padding: 0.25rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border));
  border-radius: 99rem;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.timeline-location {
  color: var(--muted);
  font-size: 0.78rem;
}

.timeline-role {
  margin-bottom: 0.35rem;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
}

.timeline-organization {
  margin-bottom: 1rem;
  color: var(--accent);
  font-weight: 700;
}

.timeline-description {
  color: var(--text-soft);
}

.responsibility-list {
  display: grid;
  margin-bottom: 1.3rem;
  padding: 0;
  gap: 0.55rem;
  color: var(--text-soft);
  list-style: none;
}

.responsibility-list li {
  position: relative;
  padding-left: 1.2rem;
}

.responsibility-list li::before {
  position: absolute;
  top: 0.72rem;
  left: 0;
  width: 0.38rem;
  height: 0.38rem;
  border: 1px solid var(--accent);
  content: "";
}

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

.tag {
  display: inline-flex;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  color: var(--muted);
  background: var(--surface-muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.project-controls {
  margin-bottom: 2rem;
}

.project-filters {
  display: flex;
  padding-bottom: 0.35rem;
  overflow-x: auto;
  gap: 0.45rem;
  scrollbar-width: thin;
}

.filter-button {
  min-height: 2.45rem;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 99rem;
  color: var(--muted);
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 720;
  white-space: nowrap;
  transition: color var(--transition), background-color var(--transition), border-color var(--transition);
}

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

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

.project-grid {
  display: grid;
  align-items: stretch;
  gap: 1.15rem;
}

.project-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--surface);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.project-card:hover,
.project-card:focus-within {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.15);
  --motion-hover-y: -5px;
}

.project-media {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}

.project-image,
.project-video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 450ms ease;
}

.project-card:hover .project-image,
.project-card:hover .project-video,
.project-card:focus-within .project-image,
.project-card:focus-within .project-video {
  transform: scale(1.035);
}

.project-video {
  display: block;
  background: var(--surface-muted);
}

.project-media-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(180deg, transparent 62%, rgba(3, 8, 15, 0.24));
  pointer-events: none;
}

.project-media-overlay::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 28%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  opacity: 0;
  transform: skewX(-16deg);
}

.project-card:hover .project-media-overlay::after,
.project-card:focus-within .project-media-overlay::after {
  animation: media-scan 720ms var(--ease-out-expo) both;
}

.project-media-format {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  padding: 0.28rem 0.48rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.25rem;
  color: #f8fafc;
  background: rgba(7, 13, 22, 0.72);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(7px);
}

.project-featured {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  padding: 0.32rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.25rem;
  color: var(--accent-ink);
  background: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-body {
  display: flex;
  padding: 1.25rem;
  flex: 1;
  flex-direction: column;
}

.project-categories {
  display: flex;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-category {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-title {
  margin-bottom: 0.75rem;
  font-size: 1.24rem;
}

.project-summary {
  margin-bottom: 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.technology-list {
  display: flex;
  margin: auto 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
}

.technology-list li {
  padding: 0.22rem 0.42rem;
  border-radius: 0.2rem;
  color: var(--text-soft);
  background: var(--surface-muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.technology-list .technology-more {
  color: var(--accent);
}

.project-footer {
  display: flex;
  margin-top: 1.3rem;
  padding-top: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  border-top: 1px solid var(--border);
}

.project-status {
  color: var(--muted);
  font-size: 0.7rem;
}

.project-actions {
  display: flex;
  margin-left: auto;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.text-button {
  padding: 0;
  cursor: pointer;
  color: var(--text);
  background: none;
  font-size: 0.76rem;
  font-weight: 780;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  text-underline-offset: 0.28rem;
}

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

.empty-state {
  margin: 0;
  padding: 2rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-medium);
  color: var(--muted);
  background: var(--surface);
  text-align: center;
}

.project-empty {
  grid-column: 1 / -1;
}

.skills-grid {
  display: grid;
  gap: 1rem;
}

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

.skill-group-title {
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}

.skill-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.7rem;
  list-style: none;
}

.skill-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.skill-name {
  color: var(--text-soft);
  font-size: 0.86rem;
}

.skill-level {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-align: right;
}

.process-grid {
  display: grid;
  margin: 0;
  padding: 0;
  counter-reset: process;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--border);
  list-style: none;
}

.process-step {
  position: relative;
  min-height: 13rem;
  padding: 1.45rem;
  overflow: hidden;
  background: var(--surface);
}

.process-step::after {
  position: absolute;
  right: -1rem;
  bottom: -3rem;
  color: color-mix(in srgb, var(--text) 3%, transparent);
  content: attr(data-step);
  font-family: var(--font-mono);
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
}

.process-number {
  display: block;
  margin-bottom: 2.5rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
}

.process-title {
  position: relative;
  z-index: 1;
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.process-description {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.education-card {
  display: grid;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--surface);
  gap: 1.5rem;
}

.education-index {
  align-self: start;
}

.education-program {
  margin-bottom: 0.45rem;
  font-size: clamp(1.35rem, 4vw, 2rem);
}

.education-institution {
  margin-bottom: 1.15rem;
  color: var(--accent);
  font-weight: 750;
}

.education-description {
  max-width: 48rem;
  color: var(--text-soft);
}

.education-focus {
  margin-top: 1.25rem;
}

.contact-section {
  overflow: hidden;
}

.contact-section::before {
  position: absolute;
  z-index: -1;
  top: 20%;
  left: -14rem;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 11%, transparent), transparent 68%);
}

.contact-card {
  position: relative;
  display: grid;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow);
  gap: 2.5rem;
}

.contact-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 6rem;
  height: 6rem;
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
  content: "";
  transform: translate(50%, -50%) rotate(45deg);
}

.contact-title {
  max-width: 44rem;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 7vw, 4rem);
  letter-spacing: -0.055em;
}

.contact-description {
  max-width: 42rem;
  color: var(--text-soft);
}

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

.contact-pending {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  padding: 0.9rem 1rem;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  background: var(--surface-muted);
  font-size: 0.88rem;
}

.contact-details {
  display: grid;
  margin: 0;
  padding: 0;
  align-content: center;
  gap: 0;
  list-style: none;
}

.contact-detail {
  display: grid;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  gap: 0.25rem;
}

.contact-detail:last-child {
  border-bottom: 0;
}

.contact-detail-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
}

.contact-detail-value {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 650;
}

a.contact-detail-value:hover {
  color: var(--accent);
}

.site-footer {
  padding-block: 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer-main,
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-main {
  padding-bottom: 1.5rem;
}

.footer-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-name {
  font-size: 0.95rem;
}

.footer-socials {
  margin: 0;
}

.footer-social-link,
.back-to-top {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.footer-social-link:hover,
.back-to-top:hover {
  color: var(--accent);
}

.back-to-top {
  width: max-content;
}

.footer-bottom {
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.footer-bottom p {
  margin-bottom: 0;
}

.project-dialog {
  width: min(calc(100% - 1.2rem), 58rem);
  max-height: min(90vh, 58rem);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-medium);
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-dialog::backdrop {
  background: rgba(2, 6, 12, 0.78);
  backdrop-filter: blur(5px);
}

.project-dialog[open] {
  animation: dialog-in 180ms ease both;
}

.dialog-shell {
  position: relative;
  max-height: min(90vh, 58rem);
  overflow-y: auto;
}

.dialog-close {
  position: sticky;
  z-index: 4;
  top: 0.75rem;
  float: right;
  margin: 0.75rem 0.75rem -3.4rem 0;
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  background: rgba(7, 13, 22, 0.78);
  font-size: 1.55rem;
  backdrop-filter: blur(8px);
}

.dialog-project-image,
.dialog-project-video {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}

.dialog-project-video {
  display: block;
}

.dialog-content-inner {
  padding: clamp(1.35rem, 4vw, 2.5rem);
}

.dialog-title {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: -0.045em;
}

.dialog-description {
  max-width: 48rem;
  color: var(--text-soft);
  font-size: 1rem;
}

.dialog-detail-grid {
  display: grid;
  margin-top: 2rem;
  gap: 1rem;
}

.dialog-detail-section,
.dialog-technologies,
.dialog-gallery {
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface-muted);
}

.dialog-detail-section h3,
.dialog-technologies h3,
.dialog-gallery h3 {
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
}

.dialog-detail-section p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.dialog-technologies,
.dialog-gallery,
.dialog-actions {
  margin-top: 1rem;
}

.dialog-gallery-grid {
  display: grid;
  gap: 0.7rem;
}

.dialog-gallery-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.3rem;
}

.toast {
  position: fixed;
  z-index: 220;
  right: 1rem;
  bottom: 1rem;
  max-width: min(24rem, calc(100% - 2rem));
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-small);
  color: var(--text);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
  transition: opacity var(--transition), transform var(--transition);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  --motion-hover-y: 0px;
  --reveal-x: 0px;
  --reveal-y: 1.2rem;
  --reveal-scale: 1;
  opacity: 1;
}

body.is-ready .reveal {
  opacity: 0;
  transform: translate3d(var(--reveal-x),
      calc(var(--reveal-y) + var(--motion-hover-y)),
      0) scale(var(--reveal-scale));
  transition:
    opacity 560ms var(--ease-out-expo) var(--reveal-delay, 0ms),
    transform 560ms var(--ease-out-expo) var(--reveal-delay, 0ms),
    border-color var(--transition),
    box-shadow var(--transition);
}

body.is-ready .reveal.reveal-left {
  --reveal-x: -1.5rem;
  --reveal-y: 0px;
}

body.is-ready .reveal.reveal-scale {
  --reveal-y: 0.75rem;
  --reveal-scale: 0.975;
}

body.is-ready .reveal:not(.is-visible) {
  will-change: opacity, transform;
}

body.is-ready .reveal.is-visible {
  --reveal-x: 0px;
  --reveal-y: 0px;
  --reveal-scale: 1;
  opacity: 1;
}

body.is-ready .hero-copy:not(.is-visible) .hero-intro-item {
  opacity: 0;
  transform: translateY(0.7rem);
}

body.is-ready .hero-copy.is-visible .hero-intro-item {
  animation: hero-item-in 560ms var(--ease-out-expo) both;
  animation-delay: var(--intro-delay, 70ms);
}

body.is-ready .section-header:not(.is-visible) .eyebrow-marker {
  transform: scaleX(0);
}

body.is-ready .section-header.is-visible .eyebrow-marker {
  animation: marker-draw 520ms 120ms var(--ease-out-expo) both;
  transform-origin: left center;
}

body.is-ready .hero-visual.is-visible .portrait-frame {
  animation: portrait-settle 680ms 100ms var(--ease-spring) both;
}

@keyframes loader-mark-in {
  from {
    opacity: 0;
    transform: translateY(0.7rem) rotate(-4deg) scale(0.88);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
  }
}

@keyframes loader-copy-in {
  from {
    opacity: 0;
    transform: translateX(-0.65rem);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes loader-progress {
  0% {
    transform: scaleX(0);
  }

  70% {
    transform: scaleX(0.82);
  }

  100% {
    transform: scaleX(1);
  }
}

@keyframes header-drop-in {
  from {
    opacity: 0;
    transform: translateY(-0.8rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-item-in {
  from {
    opacity: 0;
    transform: translateY(0.7rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes portrait-settle {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(0.965);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes marker-draw {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes hero-glow-in {
  from {
    opacity: 0;
    transform: scale(0.86);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes blueprint-drift {
  from {
    transform: translate3d(0, 0, 0) rotate(18deg);
  }

  to {
    transform: translate3d(-0.7rem, 0.5rem, 0) rotate(21deg);
  }
}

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.3);
  }

  75%,
  100% {
    box-shadow: 0 0 0 0.55rem rgba(52, 211, 153, 0);
  }
}

@keyframes media-scan {
  from {
    left: -45%;
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  to {
    left: 118%;
    opacity: 0;
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(0.8rem) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 34rem) {

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

  .education-card {
    grid-template-columns: 7rem minmax(0, 1fr);
  }

  .footer-main,
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-main .back-to-top {
    margin-left: auto;
  }
}

@media (min-width: 44rem) {
  .container {
    width: min(calc(100% - 3rem), var(--container));
  }

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

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

  .dialog-detail-grid,
  .dialog-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 52rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  }

  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .contact-card {
    grid-template-columns: minmax(0, 1.45fr) minmax(15rem, 0.55fr);
    align-items: center;
  }
}

@media (min-width: 64rem) {
  .about-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 5rem;
  }

  .about-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .skills-grid,
  .process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 72rem) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    visibility: visible;
    max-height: none;
    margin-left: auto;
    overflow: visible;
    align-items: center;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    transition: none;
  }

  .nav-list {
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 0.2rem;
  }

  .nav-link {
    padding: 0.65rem 0.58rem;
    font-size: 0.78rem;
  }

  .nav-link::before {
    position: absolute;
    right: 0.58rem;
    bottom: 0.28rem;
    left: 0.58rem;
    width: auto;
    height: 1px;
    margin: 0;
    transform: scaleX(0);
    transform-origin: left;
  }

  .nav-link.is-active::before {
    width: auto;
    margin: 0;
    transform: scaleX(1);
  }

  .nav-actions {
    padding: 0 0 0 0.65rem;
  }

  .theme-text {
    display: none;
  }

  .theme-toggle {
    padding-inline: 0;
  }

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

  .timeline {
    margin-left: 1rem;
    padding-left: 2.2rem;
  }

  .timeline-marker {
    left: -2.48rem;
  }
}

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

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

  html.js .site-loader {
    display: none;
  }

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

  body.is-ready .reveal,
  body.is-ready .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  body.is-ready .hero-copy .hero-intro-item {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .project-card:hover,
  .button:hover,
  .social-link:hover,
  .hero-visual:hover .portrait-frame {
    transform: none;
  }

  .project-media-overlay::after {
    display: none;
  }
}

@media (forced-colors: active) {

  .status-dot,
  .timeline-marker,
  .scroll-progress span {
    forced-color-adjust: none;
  }
}