:root {
  --ink: #f4f6f5;
  --paper: #050706;
  --muted: #9ba39d;
  --line: rgba(244, 246, 245, 0.14);
  --acid: #ffffff;
  --accent-soft: rgba(255, 255, 255, 0.16);
  --deep: #050706;
  --cream: #f4f6f5;
  --surface: #0b0f0d;
  --surface-soft: #101512;
  --copy: #a9b0ab;
  --copy-strong: #d3d8d4;
  --section-muted: #7c857e;
  color-scheme: dark;
}

html[data-theme="light"] {
  --ink: #0b0e0d;
  --paper: #e9e9e4;
  --muted: #6f7771;
  --line: rgba(11, 14, 13, 0.18);
  --deep: #101412;
  --cream: #f5f4ed;
  --acid: #0b0e0d;
  --accent-soft: rgba(11, 14, 13, 0.12);
  --surface: #f5f4ed;
  --surface-soft: #e1e3dd;
  --copy: #545c56;
  --copy-strong: #252b27;
  --section-muted: #717a73;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
}

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

.cursor-glow {
  position: fixed;
  z-index: 20;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, var(--accent-soft), transparent 65%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 0;
  height: 3px;
  background: var(--acid);
}

.site-header {
  position: fixed;
  top: 0;
  z-index: 50;
  width: 100%;
  height: 78px;
  padding: 0 3.5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--cream);
}

.brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.brand span {
  color: var(--acid);
}

.site-header nav {
  display: flex;
  gap: 2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header nav a,
.header-contact {
  position: relative;
}

.site-header nav a::after,
.header-contact::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}

.site-header nav a:hover::after,
.header-contact:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-contact {
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-toggle-track {
  position: relative;
  width: 36px;
  height: 20px;
  border: 1px solid rgba(244, 246, 245, 0.35);
  border-radius: 999px;
  background: rgba(244, 246, 245, 0.08);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.theme-toggle-track i {
  position: absolute;
  width: 12px;
  height: 12px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 12px var(--accent-soft);
  transition: transform 0.3s ease, background 0.3s ease;
}

html[data-theme="light"] .theme-toggle-track {
  border-color: rgba(11, 14, 13, 0.28);
  background: rgba(11, 14, 13, 0.08);
}

html[data-theme="light"] .theme-toggle-track i {
  background: #0b0e0d;
  box-shadow: none;
  transform: translateX(16px);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 11rem 5vw 2.2rem;
  overflow: hidden;
  background: var(--deep);
  color: var(--cream);
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(rgba(255,255,255,0.08) 0.7px, transparent 0.7px);
  background-size: 5px 5px;
}

.hero::before {
  content: "";
  position: absolute;
  width: 70vw;
  height: 70vw;
  top: -35vw;
  right: -20vw;
  border-radius: 50%;
  background: var(--accent-soft);
  filter: blur(80px);
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(850px, 70vw);
}

.eyebrow,
.section-label,
.project-index {
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--acid);
  margin: 0 0 1.8rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4.1rem, 8.9vw, 9.7rem);
  line-height: 0.85;
  letter-spacing: -0.1em;
  max-width: 1050px;
}

.hero h1 .outline {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cream);
}

.hero-summary {
  width: min(520px, 65vw);
  margin: 2.5rem 0 0;
  color: rgba(245, 244, 237, 0.68);
  font-size: 1rem;
  line-height: 1.8;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

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

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

.button-secondary {
  border: 1px solid rgba(245, 244, 237, 0.3);
}

.button-secondary:hover {
  background: var(--cream);
  color: var(--ink);
}

.hero-visual {
  position: absolute;
  z-index: 2;
  width: min(39vw, 540px);
  aspect-ratio: 1;
  right: 5vw;
  bottom: 8vh;
}

.orbit {
  position: absolute;
  border: 1px solid var(--accent-soft);
  border-radius: 50%;
  animation: rotate 18s linear infinite;
}

.orbit::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  top: -4px;
  left: 50%;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 20px var(--acid);
}

.orbit-one {
  inset: 3%;
}

.orbit-two {
  inset: 16%;
  animation-direction: reverse;
  animation-duration: 11s;
}

.chip {
  position: absolute;
  inset: 29%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(245, 244, 237, 0.2);
  background: linear-gradient(145deg, #1b211e, #090b0a);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6), inset 0 0 35px var(--accent-soft);
}

.chip::before,
.chip::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid var(--accent-soft);
}

.chip::after {
  inset: 22%;
}

.chip-label {
  z-index: 2;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.08em;
}

.chip-label span {
  color: var(--acid);
}

.chip-code {
  z-index: 2;
  margin-top: 0.5rem;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.54rem;
  letter-spacing: 0.16em;
}

.chip i {
  position: absolute;
  width: 12px;
  height: 1px;
  background: var(--acid);
}

.chip i:nth-of-type(1), .chip i:nth-of-type(2) { left: -12px; }
.chip i:nth-of-type(3), .chip i:nth-of-type(4) { right: -12px; }
.chip i:nth-of-type(5), .chip i:nth-of-type(6) { top: -7px; width: 1px; height: 7px; }
.chip i:nth-of-type(7), .chip i:nth-of-type(8) { bottom: -7px; width: 1px; height: 7px; }
.chip i:nth-of-type(1), .chip i:nth-of-type(3) { top: 35%; }
.chip i:nth-of-type(2), .chip i:nth-of-type(4) { top: 65%; }
.chip i:nth-of-type(5), .chip i:nth-of-type(7) { left: 35%; }
.chip i:nth-of-type(6), .chip i:nth-of-type(8) { left: 65%; }

.signal {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--acid), transparent);
  opacity: 0.35;
}

.signal-a { width: 44%; top: 16%; left: -4%; transform: rotate(-18deg); }
.signal-b { width: 40%; right: -5%; bottom: 19%; transform: rotate(-20deg); }
.signal-c { width: 34%; left: 7%; bottom: 14%; transform: rotate(25deg); }

.hero-footer {
  position: absolute;
  z-index: 3;
  right: 5vw;
  bottom: 2rem;
  left: 5vw;
  display: flex;
  justify-content: space-between;
  color: rgba(245, 244, 237, 0.48);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--acid);
}

.marquee-track {
  width: max-content;
  display: flex;
  gap: 2rem;
  align-items: center;
  padding: 1.15rem 0;
  animation: marquee 24s linear infinite;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.marquee b {
  font-size: 1.2rem;
  font-weight: 400;
}

.section {
  padding: 8rem 5vw;
}

.section-label {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
  color: var(--section-muted);
}

.section-label span {
  color: var(--ink);
}

.about-grid,
.experience-header,
.projects-heading,
.skills-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 8vw;
  padding-top: 4.5rem;
}

.section-title {
  margin: 0;
  font-size: clamp(2.8rem, 5.6vw, 6.3rem);
  line-height: 0.94;
  letter-spacing: -0.09em;
}

.section-title span {
  color: var(--section-muted);
}

.about-copy {
  padding-top: 0.4rem;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--copy);
}

.about-copy p:first-child {
  margin-top: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 6rem;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 2rem 0;
  background: var(--paper);
}

.stat:not(:first-child) {
  padding-left: 2rem;
}

.stat strong,
.stat > span {
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 1;
  letter-spacing: -0.09em;
}

.stat > span {
  color: var(--section-muted);
}

.stat p {
  width: 150px;
  color: var(--section-muted);
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  line-height: 1.6;
  text-transform: uppercase;
}

.experience {
  background: var(--surface);
}

.experience-header > p,
.projects-heading > p {
  max-width: 360px;
  margin-top: 1rem;
  color: var(--copy);
  line-height: 1.8;
}

.timeline {
  margin-top: 5rem;
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 0.65fr 1fr 1.35fr;
  gap: 3rem;
  padding: 2.4rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.35s ease, background 0.35s ease;
}

.timeline-item:hover {
  padding-left: 1.2rem;
  padding-right: 1.2rem;
  background: var(--accent-soft);
}

.timeline-year,
.timeline-role p {
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  line-height: 1.5;
  text-transform: uppercase;
}

.timeline-role h3 {
  margin: 0;
  font-size: 1.15rem;
}

.timeline-role p {
  margin: 0.5rem 0 0;
  color: var(--section-muted);
}

.timeline-description {
  margin: 0;
  color: var(--copy);
  line-height: 1.7;
}

.projects {
  background: var(--surface-soft);
  color: var(--cream);
}

.projects .section-label {
  border-color: rgba(245, 244, 237, 0.15);
  color: rgba(245, 244, 237, 0.45);
}

.projects .section-label span {
  color: var(--acid);
}

.projects .section-title span {
  color: rgba(245, 244, 237, 0.36);
}

.projects-heading > p {
  color: rgba(245, 244, 237, 0.54);
}

.project-list {
  display: grid;
  gap: 7rem;
  margin-top: 6rem;
}

.project-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 6vw;
  align-items: center;
}

.project-card.reverse .project-visual {
  order: 2;
}

.project-visual {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: #151b18;
  border: 1px solid rgba(245, 244, 237, 0.12);
}

.project-content {
  max-width: 480px;
}

.project-index {
  color: var(--acid);
}

.project-content h3 {
  margin: 1.3rem 0 1.2rem;
  font-size: clamp(2rem, 3.5vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.07em;
}

.project-content p {
  color: rgba(245, 244, 237, 0.6);
  line-height: 1.8;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.tags span {
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(245, 244, 237, 0.15);
  border-radius: 999px;
  color: rgba(245, 244, 237, 0.68);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.scan-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--accent-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent-soft) 1px, transparent 1px);
  background-size: 32px 32px;
}

.brain-ring,
.brain-core {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 44% 56% 48% 52% / 51% 42% 58% 49%;
  transform: translate(-50%, -50%);
}

.brain-ring {
  border: 1px solid var(--accent-soft);
  animation: breathe 5s ease-in-out infinite;
}

.ring-one {
  width: 52%;
  height: 52%;
}

.ring-two {
  width: 38%;
  height: 38%;
  animation-delay: -1.2s;
}

.brain-core {
  width: 24%;
  height: 24%;
  background: radial-gradient(circle at 40% 35%, var(--acid), var(--accent-soft) 58%, transparent 60%);
  filter: blur(1px);
  box-shadow: 0 0 60px var(--accent-soft);
}

.scan-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--acid);
  box-shadow: 0 0 25px var(--acid);
  animation: scan 4s ease-in-out infinite;
}

.tank-visual {
  background:
    radial-gradient(circle at center, var(--accent-soft), transparent 45%),
    #111613;
}

.radar {
  position: absolute;
  width: 310px;
  height: 310px;
  top: 50%;
  left: 50%;
  border: 1px solid var(--accent-soft);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(var(--accent-soft), var(--accent-soft)) center / 1px 100% no-repeat,
    linear-gradient(90deg, var(--accent-soft), var(--accent-soft)) center / 100% 1px no-repeat;
}

.radar::before,
.radar::after {
  content: "";
  position: absolute;
  border: 1px solid var(--accent-soft);
  border-radius: 50%;
}

.radar::before { inset: 18%; }
.radar::after { inset: 36%; }

.tank-body {
  position: absolute;
  z-index: 2;
  width: 180px;
  height: 115px;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(245,244,237,0.25);
  transform: translate(-50%, -50%);
  background: #1a211d;
}

.tank-body::before {
  content: "";
  position: absolute;
  width: 62px;
  height: 46px;
  top: 50%;
  left: 50%;
  border: 1px solid var(--accent-soft);
  transform: translate(-50%, -50%);
}

.tank-body::after {
  content: "";
  position: absolute;
  width: 95px;
  height: 3px;
  top: 50%;
  left: 50%;
  background: var(--acid);
  transform: translateY(-50%);
  box-shadow: 0 0 15px var(--accent-soft);
}

.tank-body span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
}

.tank-body span:nth-child(1) { top: 12px; left: 12px; }
.tank-body span:nth-child(2) { top: 12px; right: 12px; }
.tank-body span:nth-child(3) { bottom: 12px; left: 50%; }

.tank-track {
  position: absolute;
  z-index: 1;
  width: 36px;
  height: 156px;
  top: 50%;
  border: 1px solid rgba(245,244,237,0.2);
  transform: translateY(-50%);
  background: repeating-linear-gradient(0deg, #222b26 0 9px, #101512 9px 14px);
}

.tank-track.left { left: calc(50% - 116px); }
.tank-track.right { right: calc(50% - 116px); }

.sensor-beam {
  position: absolute;
  z-index: 1;
  width: 1px;
  height: 150px;
  left: 50%;
  bottom: 50%;
  background: linear-gradient(var(--acid), transparent);
  transform-origin: bottom;
  animation: radar-sweep 4s linear infinite;
}

.skills {
  background: var(--surface);
  color: var(--ink);
}

.skills .section-label {
  border-color: var(--line);
}

.skills .section-title span {
  color: var(--section-muted);
}

.skill-groups {
  border-top: 1px solid var(--line);
}

.skill-group {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.skill-group h3 {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-family: "DM Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skill-group p {
  margin: 0;
  line-height: 1.8;
}

.contact {
  min-height: 82vh;
  padding: 8rem 5vw 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--deep);
  color: var(--cream);
}

.contact h2 {
  margin: 0;
  font-size: clamp(3.5rem, 8.6vw, 9.5rem);
  line-height: 0.85;
  letter-spacing: -0.1em;
}

.contact h2 span {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cream);
}

.contact-link {
  align-self: flex-start;
  margin-top: 3.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(245,244,237,0.3);
  font-family: "DM Mono", monospace;
  font-size: clamp(0.8rem, 1.3vw, 1.1rem);
  color: var(--acid);
}

.contact-link span {
  display: inline-block;
  margin-left: 0.7rem;
  transition: transform 0.3s ease;
}

.contact-link:hover span {
  transform: translate(4px, -4px);
}

.contact-footer {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 5rem;
  color: rgba(245,244,237,0.45);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-footer div {
  display: flex;
  gap: 1.5rem;
}

.contact-footer a:hover {
  color: var(--acid);
}

.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes breathe {
  50% { transform: translate(-50%, -50%) scale(1.08) rotate(8deg); opacity: 0.45; }
}

@keyframes scan {
  0%, 100% { left: 12%; opacity: 0; }
  15%, 85% { opacity: 0.7; }
  50% { left: 88%; }
}

@keyframes radar-sweep {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .site-header nav {
    display: none;
  }

  .hero {
    padding-top: 9rem;
  }

  .hero-copy {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(4rem, 15vw, 7rem);
  }

  .hero-summary {
    width: 80%;
  }

  .hero-visual {
    width: 54vw;
    right: -10vw;
    bottom: 9vh;
    opacity: 0.6;
  }

  .about-grid,
  .experience-header,
  .projects-heading,
  .skills-layout,
  .project-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .project-card.reverse .project-visual {
    order: 0;
  }

  .timeline-item {
    grid-template-columns: 0.55fr 1fr;
  }

  .timeline-description {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  .site-header {
    height: 64px;
    padding: 0 1rem;
  }

  .header-contact {
    font-size: 0.62rem;
  }

  .hero {
    min-height: 760px;
    padding: 8rem 1rem 2rem;
  }

  .hero h1 {
    font-size: 4.15rem;
  }

  .hero-summary {
    width: 95%;
    font-size: 0.9rem;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .hero-visual {
    width: 80vw;
    right: -32vw;
    bottom: 12vh;
  }

  .hero-footer {
    right: 1rem;
    left: 1rem;
  }

  .hero-footer span:nth-child(2) {
    display: none;
  }

  .section {
    padding: 5.5rem 1rem;
  }

  .section-title {
    font-size: 3.25rem;
  }

  .about-grid,
  .experience-header,
  .projects-heading,
  .skills-layout {
    padding-top: 3rem;
  }

  .stats {
    grid-template-columns: 1fr;
    margin-top: 4rem;
  }

  .stat,
  .stat:not(:first-child) {
    padding: 1.5rem 0;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .timeline-description {
    grid-column: auto;
  }

  .project-list {
    gap: 5rem;
    margin-top: 4rem;
  }

  .project-visual {
    min-height: 310px;
  }

  .project-content h3 {
    font-size: 2.45rem;
  }

  .contact {
    min-height: 680px;
    padding: 6rem 1rem 1.5rem;
  }

  .contact h2 {
    font-size: 4.1rem;
  }

  .contact-footer {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .cursor-glow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Interactive avatar hero */
.hero {
  min-height: 100vh;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr minmax(420px, 0.9fr) 1fr;
  align-items: center;
  background: #000000;
  isolation: isolate;
}

.hero::before {
  width: 46vw;
  height: 46vw;
  top: auto;
  right: auto;
  bottom: -30vw;
  left: 50%;
  background: rgba(255, 255, 255, 0.06);
  filter: blur(100px);
  transform: translateX(-50%);
}

.hero-noise {
  opacity: 0.15;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 0.6px, transparent 0.6px);
  background-size: 4px 4px;
}

.hero-aura {
  position: absolute;
  z-index: 0;
  width: min(44vw, 670px);
  aspect-ratio: 1;
  left: 50%;
  bottom: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 38%, transparent 68%);
  transform: translateX(-50%);
  filter: blur(10px);
}

.hero-intro,
.hero-role,
.hero-resume {
  position: relative;
  z-index: 4;
}

.hero-intro {
  justify-self: end;
  width: 245px;
  margin-right: -1.5rem;
  padding-bottom: 7vh;
}

.hero-intro p,
.hero-role p {
  margin: 0 0 0.65rem;
  color: var(--acid);
  font-family: "DM Mono", monospace;
  font-size: clamp(1rem, 1.65vw, 1.55rem);
  letter-spacing: 0.08em;
}

.hero-intro h1 {
  margin: 0;
  color: #f4f6f5;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 0.9;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-intro span,
.hero-role em {
  display: block;
  margin-top: 1.15rem;
  color: rgba(244, 246, 245, 0.35);
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  font-style: normal;
  letter-spacing: 0.13em;
  line-height: 1.7;
  text-transform: uppercase;
}

.avatar-wrap {
  position: relative;
  z-index: 3;
  align-self: end;
  width: min(48vw, 62vh, 620px);
  height: 86vh;
  justify-self: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.avatar-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  transform-origin: 50% 62%;
  will-change: transform;
}

.avatar-stage img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 25px 30px rgba(0, 0, 0, 0.35));
}

.avatar-shadow {
  position: absolute;
  z-index: 1;
  width: 68%;
  height: 10%;
  bottom: 1%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(32px);
}

.avatar-eye {
  position: absolute;
  z-index: 4;
  width: 4.1%;
  aspect-ratio: 1;
  top: 39%;
  overflow: hidden;
  border-radius: 50%;
  opacity: 0.9;
  pointer-events: none;
}

.avatar-eye-left {
  left: 40.1%;
}

.avatar-eye-right {
  left: 58.7%;
}

.avatar-eye i {
  position: absolute;
  width: 58%;
  height: 58%;
  top: 21%;
  left: 21%;
  border-radius: 50%;
  background: #160f0b;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  will-change: transform;
}

.hero-role {
  justify-self: start;
  width: 390px;
  margin-left: -1rem;
  padding-bottom: 5vh;
}

.hero-role h2 {
  margin: 0;
  font-size: clamp(2.3rem, 3.7vw, 4rem);
  line-height: 0.82;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hero-role h2 span {
  display: block;
  color: transparent;
  background: linear-gradient(180deg, var(--acid) 0%, var(--accent-soft) 75%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-role h2 strong {
  display: block;
  margin-left: 1rem;
  color: #f4f6f5;
  font-weight: 700;
}

.hero-resume {
  position: absolute;
  right: 4vw;
  bottom: 3rem;
  left: 4vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(244, 246, 245, 0.35);
  font-family: "DM Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-resume a {
  color: rgba(244, 246, 245, 0.58);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.hero-resume a:hover {
  color: var(--acid);
}

.hero-resume b {
  color: var(--acid);
  font-weight: 400;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    padding: 7rem 1.5rem 0;
  }

  .hero-intro {
    align-self: end;
    justify-self: start;
    width: auto;
    margin: 0;
    padding: 0 0 1rem;
  }

  .hero-role {
    align-self: end;
    justify-self: end;
    width: auto;
    margin: 0;
    padding: 0 0 1rem;
  }

  .avatar-wrap {
    position: absolute;
    width: min(75vw, 620px);
    height: 72vh;
    left: 50%;
    bottom: 0;
    translate: -50% 0;
  }

  .hero-intro,
  .hero-role {
    z-index: 5;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 760px;
    display: block;
    padding: 6.5rem 1rem 0;
  }

  .hero-intro {
    position: relative;
    width: 46%;
    padding: 0;
  }

  .hero-intro p,
  .hero-role p {
    font-size: 0.82rem;
  }

  .hero-intro h1 {
    font-size: 2.2rem;
  }

  .hero-intro span,
  .hero-role em {
    display: none;
  }

  .hero-role {
    position: absolute;
    top: 7.25rem;
    right: 1rem;
    width: 48%;
    padding: 0;
  }

  .hero-role h2 {
    font-size: 1.65rem;
  }

  .hero-role h2 strong {
    margin-left: 0.7rem;
  }

  .avatar-wrap {
    width: 120vw;
    height: 66vh;
    left: 50%;
    bottom: 0;
  }

  .hero-resume {
    right: 1rem;
    bottom: 1.4rem;
    left: 1rem;
    font-size: 0.55rem;
  }

  .hero-resume a {
    font-size: 0.72rem;
  }

  .hero-resume span {
    visibility: hidden;
  }
}

html[data-theme="light"] .site-header {
  color: #0b0e0d;
}

html[data-theme="light"] .marquee {
  background: var(--acid);
  color: #ffffff;
}

html[data-theme="light"] .hero {
  background: #f2f1eb;
  color: #0b0e0d;
}

html[data-theme="light"] .hero-noise {
  background-image: radial-gradient(rgba(11, 14, 13, 0.1) 0.6px, transparent 0.6px);
}

html[data-theme="light"] .hero-intro h1,
html[data-theme="light"] .hero-role h2 strong {
  color: #0b0e0d;
}

html[data-theme="light"] .hero-intro span,
html[data-theme="light"] .hero-role em,
html[data-theme="light"] .hero-resume {
  color: rgba(11, 14, 13, 0.46);
}

html[data-theme="light"] .hero-resume a {
  color: rgba(11, 14, 13, 0.66);
}

html[data-theme="light"] .projects {
  color: var(--ink);
}

html[data-theme="light"] .projects .section-label {
  border-color: var(--line);
  color: var(--section-muted);
}

html[data-theme="light"] .projects .section-title span,
html[data-theme="light"] .projects-heading > p,
html[data-theme="light"] .project-content p {
  color: var(--copy);
}

html[data-theme="light"] .project-visual {
  border-color: rgba(11, 14, 13, 0.18);
}

html[data-theme="light"] .tags span {
  border-color: rgba(11, 14, 13, 0.2);
  color: var(--copy);
}

html[data-theme="light"] .contact {
  background: var(--surface-soft);
  color: var(--ink);
}

html[data-theme="light"] .contact h2 span {
  -webkit-text-stroke-color: var(--ink);
}

html[data-theme="light"] .contact-footer {
  color: var(--section-muted);
}
