:root {
  --bg: #11100f;
  --bg-elevated: #1a1917;
  --bg-soft: #242220;
  --text: #f3f0ea;
  --muted: #b0aaa0;
  --quiet: #817b73;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #c9b07a;
  --accent-hover: #d8c08f;
  --accent-warm: #9eb5a8;
  --accent-muted: #8a8578;
  --accent-rgb: 201, 176, 122;
  --accent-warm-rgb: 158, 181, 168;
  --max: 1280px;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-ui: "DM Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

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

html {
  scroll-behavior: auto;
}

html.lenis,
html.lenis body {
  height: auto;
}

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

body {
  margin: 0;
  background:
    radial-gradient(ellipse 70% 45% at 85% -5%, rgba(var(--accent-rgb), 0.14), transparent 55%),
    radial-gradient(ellipse 55% 40% at 5% 95%, rgba(var(--accent-warm-rgb), 0.1), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

.dot-grid {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.22;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 0.6px, transparent 0.6px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 50% 20%, black 10%, transparent 72%);
}

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

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

.ambient {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(90px);
  will-change: transform;
}

.ambient--mist {
  top: 4%;
  right: 8%;
  width: min(38vw, 460px);
  height: min(38vw, 460px);
  opacity: 0.6;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.16), transparent 70%);
}

.ambient--warm {
  bottom: 10%;
  left: 4%;
  width: min(30vw, 360px);
  height: min(30vw, 360px);
  opacity: 0.55;
  background: radial-gradient(circle, rgba(var(--accent-warm-rgb), 0.14), transparent 72%);
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  z-index: 80;
}

.shell {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
}

.nav {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 70;
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 18, 26, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateZ(0);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.nav.is-scrolled {
  border-color: rgba(var(--accent-rgb), 0.28);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.nav-brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-warm);
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 12px;
  color: var(--muted);
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #1a1814;
  font-size: 12px;
  font-weight: 700;
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 140px 0 100px;
  position: relative;
}

.hero-glow {
  position: absolute;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}

.hero-glow--a {
  top: -10%;
  right: -5%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.22), transparent 68%);
}

.hero-glow--b {
  bottom: 0;
  left: -10%;
  background: radial-gradient(circle, rgba(var(--accent-warm-rgb), 0.16), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
  animation: eyebrow-pulse 3.2s ease-in-out infinite;
}

@keyframes eyebrow-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(0.92);
  }
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5vw, 3.75rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.hero-title-line {
  display: block;
}

.hero-title-line--soft {
  color: var(--muted);
  font-weight: 600;
}

.hero-copy {
  margin: 24px 0 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease;
}

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.32);
  }

  .btn:active {
    transform: translateY(0) scale(0.98);
  }
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1814;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.08);
}

.hero-portrait {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
  width: min(340px, 34vw);
  margin: 0;
  justify-self: start;
}

.hero-portrait-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  aspect-ratio: 4 / 5;
  min-height: 360px;
  max-height: 58vh;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.36);
}

.hero-portrait-frame picture,
.hero-portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-portrait-frame img {
  object-fit: cover;
  object-position: 50% 12%;
}

.hero-portrait-meta {
  padding: 0 4px;
  text-align: left;
}

.hero-portrait-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.hero-portrait-meta span {
  color: var(--muted);
  font-size: 13px;
}

main {
  position: relative;
  z-index: 1;
}

.section {
  padding: clamp(96px, 14vw, 168px) 0;
}

.aside-line {
  margin: 14px 0 0;
  color: var(--quiet);
  font-size: 14px;
  max-width: 42ch;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-chip {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transform: translateY(8px);
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (hover: hover) and (pointer: fine) {
  .hero-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--accent-rgb), 0.35);
    background: rgba(var(--accent-rgb), 0.06);
  }
}

.section-header {
  margin-bottom: 8px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.section-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), transparent 72%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-header.is-drawn::after {
  transform: scaleX(1);
}

.section-header .section-title {
  margin-top: 6px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--quiet);
  margin: 0 0 14px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 3.1rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 22ch;
}

.section-intro {
  margin: 18px 0 0;
  max-width: 58ch;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
}

.project-compact-grid .project-compact {
  opacity: 1;
}

.domain-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.domain-card {
  padding: 26px 26px 26px 30px;
  border-radius: 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-warm);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent);
  min-height: 200px;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.domain-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  border-left-color: var(--accent);
}

.domain-card .num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 11px;
}

.domain-card h3 {
  margin: 16px 0 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.domain-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.proof-pin {
  position: relative;
}

.proof-heading {
  margin-bottom: 28px;
}

.proof-heading .section-header {
  margin-bottom: 14px;
  padding-bottom: 18px;
}

.domain-card h3,
.proof-card-body h3,
.project-body h3,
.research-feature h3,
.hw-entry-head h3 {
  font-family: var(--font-display);
  font-weight: 600;
}

.proof-track-wrap {
  overflow: hidden;
}

.proof-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding-left: max(28px, calc((100vw - var(--max)) / 2));
  padding-right: 0;
}

.proof-track-spacer {
  flex: 0 0 max(28vw, 220px);
  width: max(28vw, 220px);
}

.proof-card {
  width: min(420px, 78vw);
  flex: 0 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  transform: translateY(var(--lift, 0));
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .proof-card:hover {
    --lift: -4px;
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
    border-color: rgba(var(--accent-rgb), 0.22);
  }
}

.proof-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #f5f2e8;
}

.proof-card.is-cert img {
  object-fit: contain;
  padding: 12px;
}

.proof-card-body {
  padding: 18px;
}

.proof-card-body h3 {
  margin: 8px 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.proof-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.project-showcase {
  margin-top: 52px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.project-showcase .project-card--featured {
  opacity: 1;
  transform: none;
}

.project-card {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.26);
}

.project-card--featured {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
}

.project-card--featured::before {
  content: attr(data-index);
  position: absolute;
  top: 14px;
  left: 18px;
  z-index: 3;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.project-media {
  position: relative;
  background: #070605;
  min-height: 240px;
}

.project-card--featured .project-media {
  min-height: 100%;
}

.project-media video,
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  min-height: 280px;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .project-card--featured:hover .project-media video,
  .project-card--featured:hover .project-media img {
    transform: scale(1.02);
  }
}

.project-media img {
  object-fit: cover;
  background: #0e1118;
}

.project-body {
  padding: 32px 34px;
}

.project-body h3 {
  margin: 12px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.2;
  font-weight: 700;
}

.project-body p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 42ch;
}

.project-pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
}

.project-compact-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-compact {
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.project-compact:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
  background: rgba(var(--accent-rgb), 0.04);
}

.project-compact h3 {
  margin: 10px 0 8px;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.25;
}

.project-compact p {
  margin: 0;
  color: var(--quiet);
  font-size: 14px;
  line-height: 1.55;
}

.project-compact a {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.research-feature {
  margin-top: 44px;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background:
    linear-gradient(155deg, rgba(var(--accent-rgb), 0.07), transparent 55%),
    rgba(255, 255, 255, 0.02);
}

.research-feature h3 {
  margin: 10px 0 16px;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.2;
  max-width: 28ch;
}

.research-feature p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 72ch;
}

.research-feature p:last-of-type {
  margin-bottom: 0;
}

.research-github {
  margin-top: 20px !important;
  margin-bottom: 0 !important;
}

.research-github a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  transition: gap 0.25s ease, color 0.25s ease;
}

.research-github a:hover,
.research-github a:focus-visible {
  color: var(--accent-hover);
  gap: 10px;
}

.hw-stack {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 64px);
}

.hw-entry {
  padding: clamp(22px, 3vw, 32px);
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.03), transparent 58%),
    rgba(255, 255, 255, 0.015);
}

.hw-entry-head {
  margin-bottom: 18px;
}

.hw-entry-head h3 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.25;
}

.hw-collage {
  display: grid;
  gap: 6px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0908;
  max-width: 620px;
}

.hw-collage--ps4 {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, minmax(68px, 96px));
}

.hw-collage--laptop {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, minmax(100px, 130px));
  max-width: 480px;
}

.hw-tile {
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.96);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.hw-tile.is-visible {
  opacity: 1;
  transform: scale(1);
}

.hw-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
  .hw-tile:hover img {
    transform: scale(1.06);
    filter: brightness(1.08);
  }
}

.hw-collage--ps4 .hw-tile--a {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.hw-collage--ps4 .hw-tile--b {
  grid-column: 3;
  grid-row: 1;
}

.hw-collage--ps4 .hw-tile--c {
  grid-column: 4;
  grid-row: 1;
}

.hw-collage--ps4 .hw-tile--d {
  grid-column: 3;
  grid-row: 2;
}

.hw-collage--ps4 .hw-tile--e {
  grid-column: 4;
  grid-row: 2;
}

.hw-collage--ps4 .hw-tile--f {
  grid-column: 3 / 5;
  grid-row: 3;
}

.hw-copy {
  margin-top: 18px;
  max-width: 62ch;
}

.hw-copy p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.hw-copy p:last-child {
  margin-bottom: 0;
}

.repo-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.repo-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  font-family: var(--font-ui);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.repo-mini::before {
  content: "›";
  margin-right: 2px;
  color: var(--accent-warm);
  font-weight: 700;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .repo-mini:hover::before {
    transform: translateX(3px);
  }
}

.repo-mini:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.05);
}

.repo-mini-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repo-mini-tag {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-muted);
}

.repo-foot {
  margin: 18px 0 0;
  text-align: right;
  font-size: 14px;
}

.repo-foot a {
  color: var(--accent);
  font-weight: 600;
}

.contact-panel {
  padding: clamp(32px, 5vw, 48px);
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.contact-header {
  margin-bottom: 0;
  padding-bottom: 18px;
}

.contact-copy {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 16px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.footer a {
  color: var(--accent);
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-portrait {
    order: -1;
    width: min(280px, 72vw);
    margin: 0 auto;
    justify-self: center;
  }

  .hero-portrait-frame {
    min-height: 320px;
    max-height: none;
  }

  .hero-content {
    text-align: left;
  }

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

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

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

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

  .hw-collage {
    max-width: 100%;
  }

  .hw-collage--ps4 {
    grid-template-rows: repeat(3, minmax(80px, 110px));
  }

  .hw-collage--laptop {
    grid-template-rows: repeat(2, minmax(110px, 140px));
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    flex-direction: column;
    gap: 12px;
    min-width: 160px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(17, 19, 24, 0.97);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  }

  .nav.nav--open .nav-links {
    display: flex;
  }

  .menu-btn {
    display: inline-flex;
  }

  .domain-grid,
  .repo-grid {
    grid-template-columns: 1fr;
  }
}

.reduced-motion .eyebrow-dot {
  animation: none;
}

.reduced-motion .hero-chip {
  opacity: 1;
  transform: none;
}

.reduced-motion .section-header::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .ambient {
    display: none;
  }

  .eyebrow-dot {
    animation: none;
  }

  .proof-card:hover {
    transform: none;
  }

  .reveal,
  .project-card--featured,
  .project-compact,
  .hero-chip,
  .hw-tile {
    opacity: 1;
    transform: none;
  }

  .section-header::after {
    transform: scaleX(1);
  }

  .nav-links a::after {
    transform: scaleX(1);
  }
}