﻿:root {
  --bg: #0c0e10;
  --surface: #121517;
  --ink: #f0f1eb;
  --muted: #909795;
  --accent: #c6f177;
  --line: rgba(240, 241, 235, 0.12);
  --mono: "JetBrains Mono", monospace;
  --max: 1280px;
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--accent);
  color: var(--bg);
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
}
p {
  color: var(--muted);
  line-height: 1.8;
}
.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  background: var(--accent);
  color: var(--bg);
  padding: 16px;
}
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 90;
  pointer-events: none;
}
/* Navigation */
.site-header {
  height: 96px;
  padding: 0 max(36px, calc((100vw - var(--max)) / 2));
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 48px;
  border-bottom: 1px solid transparent;
  transition:
    background 0.3s,
    border-color 0.3s,
    height 0.3s;
}
.site-header.is-solid,
.site-header.menu-open {
  height: 76px;
  background: rgba(12, 14, 16, 0.93);
  backdrop-filter: blur(18px);
  border-color: var(--line);
}
.brand {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -2px;
  display: inline-flex;
  align-items: flex-start;
}
.brand span {
  font-size: 12px;
  letter-spacing: 0;
  margin: 4px 0 0 5px;
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav-links a {
  font-size: 12px;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
  padding: 12px 0;
}
.nav-links a:after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
}
.nav-links a.is-active:after {
  transform: scaleX(1);
}
.nav-cta {
  font-size: 12px;
  border: 1px solid var(--line);
  padding: 12px 18px;
  border-radius: 6px;
}
.nav-cta span {
  margin-left: 22px;
  color: var(--accent);
}
.nav-cta:hover {
  border-color: var(--accent);
}
.menu-toggle {
  display: none;
}
/* Hero and perspective scene */
.hero {
  position: relative;
  padding: 138px max(36px, calc((100vw - var(--max)) / 2)) 0;
  overflow: hidden;
  min-height: 850px;
}
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.023) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.023) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to right, transparent 10%, #000);
}
.hero-topline,
.hero-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 10px var(--mono);
  letter-spacing: 0.07em;
  color: var(--muted);
}
.hero-topline > span:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px #c6f14466;
}
.location {
  font-size: 9px;
}
.location > span {
  margin-left: 12px;
  color: var(--ink);
}
.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  position: relative;
  padding: 56px 0 60px;
}
.hero-content {
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.hero-content a {
  pointer-events: auto;
}
.eyebrow {
  font: 10px var(--mono);
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 24px;
}
h1 {
  font-size: clamp(60px, 6.1vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.065em;
  font-weight: 500;
}
.outline-text {
  color: transparent;
  -webkit-text-stroke: 1px #89908a;
}
.accent-text {
  color: var(--accent);
}
.hero-copy {
  max-width: 390px;
  font-size: 14px;
  margin-top: 28px;
  line-height: 1.9;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  min-height: 50px;
  padding: 0 23px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.button.primary {
  background: var(--accent);
  color: #11180a;
}
.button.primary:hover {
  background: #d7ff92;
  box-shadow: 0 0 35px #c6f1191c;
}
.button span {
  font-size: 18px;
}
.text-link {
  font-size: 11px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.hero-bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  font-size: 9px;
  gap: 16px;
}
.hero-bottom > a {
  display: flex;
  align-items: center;
  gap: 12px;
}
.scroll-icon {
  font-size: 18px;
  color: var(--accent);
}
.motion-toggle {
  background: transparent;
  color: var(--muted);
  font: 10px var(--mono);
  padding: 10px 0 10px 12px;
}
.motion-toggle:hover {
  color: var(--accent);
}
.scene {
  position: relative;
  height: 570px;
  margin-left: -65px;
  margin-right: -35px;
  perspective: 1100px;
  isolation: isolate;
  --scene-x: 0;
  --scene-y: 0;
}
.scene-glow {
  position: absolute;
  inset: 10%;
  background: radial-gradient(ellipse, #a1c5711c, transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}
.scene canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}
.scene canvas:active {
  cursor: grabbing;
}
.scene-orbit {
  position: absolute;
  width: 79%;
  height: 79%;
  left: 11%;
  top: 12%;
  border: 1px solid #c6f11913;
  border-radius: 50%;
  transform: rotateX(65deg) rotateZ(-25deg);
  pointer-events: none;
}
.scene-label {
  position: absolute;
  top: 12px;
  right: 20px;
  font: 9px var(--mono);
  color: #858d80;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.crosshair {
  font-size: 28px;
  font-weight: 400;
}
.floating-panel {
  position: absolute;
  background: linear-gradient(130deg, #242a2bd9, #111617e6);
  border: 1px solid #ffffff20;
  box-shadow:
    0 20px 60px #0005,
    0 1px 0 #ffffff08 inset;
  backdrop-filter: blur(18px);
  border-radius: 9px;
  pointer-events: none;
  will-change: transform;
}
.panel-code {
  left: 3%;
  top: 20%;
  width: 246px;
  transform: translate3d(
      calc(var(--scene-x) * -16px),
      calc(var(--scene-y) * -12px),
      45px
    )
    rotateY(-15deg) rotateZ(-7deg);
  animation: float-code 8s ease-in-out infinite;
}
.panel-title {
  padding: 12px 14px;
  border-bottom: 1px solid #ffffff0c;
  display: flex;
  justify-content: space-between;
  color: #a1a9a5;
  font: 9px var(--mono);
}
.panel-dots {
  font-size: 7px;
  letter-spacing: 2px;
  color: #677269;
}
.panel-code code {
  display: block;
  padding: 17px;
  font: 11px/2 var(--mono);
  color: #c9d0cb;
}
.code-purple {
  color: #baabea;
}
.code-green {
  color: var(--accent);
}
.panel-note {
  right: 0;
  bottom: 21%;
  padding: 17px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
  transform: translate3d(
      calc(var(--scene-x) * 24px),
      calc(var(--scene-y) * 18px),
      70px
    )
    rotateY(12deg) rotateZ(6deg);
  animation: float-note 7s ease-in-out infinite;
}
.note-icon {
  font-size: 25px;
  color: var(--accent);
  border: 1px solid #c6f14433;
  background: #c6f14409;
  padding: 5px 8px;
  border-radius: 7px;
}
.panel-note small {
  display: block;
  font: 8px var(--mono);
  color: var(--muted);
  margin-top: 7px;
  letter-spacing: 0.04em;
}
.note-check {
  color: var(--accent);
  font-size: 22px;
  margin-left: 18px;
}
.scene-caption {
  position: absolute;
  left: 18%;
  right: 0;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  font: 8px var(--mono);
  letter-spacing: 0.08em;
  color: var(--muted);
  pointer-events: none;
}
.scene-caption i {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 7px;
}
.drag-hint {
  opacity: 0.55;
}
.scene-idle .floating-panel {
  animation-play-state: paused;
}
/* Sections */
.discipline-strip {
  padding: 27px 36px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 24px;
  border-block: 1px solid var(--line);
  background: #101315;
  font: 11px var(--mono);
  letter-spacing: 0.07em;
  color: #a3aaa2;
}
.discipline-strip i {
  color: var(--accent);
  font-size: 24px;
  font-style: normal;
}
.section-pad {
  padding: 112px max(36px, calc((100vw - var(--max)) / 2));
}
.section-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 58px;
}
.section-label,
.section-aside {
  font: 10px var(--mono);
  letter-spacing: 0.07em;
}
.section-label {
  color: var(--accent);
}
.section-aside {
  color: #818c85;
}
h2 {
  font-size: clamp(38px, 4.5vw, 64px);
  line-height: 1.13;
  letter-spacing: -0.055em;
}
.serif-text {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
  letter-spacing: -0.055em;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 110px;
}
.section-intro {
  font-size: 15px;
  max-width: 400px;
  margin-top: 26px;
}
.resume-link {
  margin-top: 22px;
}
.about-detail {
  padding-top: 8px;
}
.about-detail > p {
  font-size: 15px;
  margin-bottom: 22px;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 27px;
}
.about-stats strong {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.06em;
}
.about-stats strong span {
  font-size: 17px;
  color: var(--muted);
  letter-spacing: -0.03em;
}
.about-stats small {
  display: block;
  font: 8px var(--mono);
  color: var(--muted);
  margin-top: 13px;
  line-height: 1.6;
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px;
  margin-top: 74px;
}
.principle {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.principle > span {
  font: 10px var(--mono);
  color: var(--accent);
}
.principle h3 {
  font-size: 18px;
  letter-spacing: -0.03em;
  margin: 22px 0 12px;
}
.principle p {
  font-size: 13px;
  max-width: 310px;
}
/* Project cards and CSS perspective previews */
.projects-section {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 46px;
}
.section-heading > p {
  font-size: 13px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.project-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #101315;
  transform-style: preserve-3d;
  transition:
    transform 0.45s var(--ease),
    border-color 0.3s;
  position: relative;
  --shine-x: 50%;
  --shine-y: 50%;
}
.project-card:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    400px circle at var(--shine-x) var(--shine-y),
    #d4ffac0b,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover {
  border-color: #c6f14448;
}
.project-card:hover:after {
  opacity: 1;
}
.project-art {
  height: 310px;
  position: relative;
  overflow: hidden;
  perspective: 900px;
}
.art-pos {
  background: radial-gradient(ellipse at 55% 80%, #405331, #18211c 70%);
}
.art-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#ffffff05 1px, transparent 1px),
    linear-gradient(90deg, #ffffff05 1px, transparent 1px);
  background-size: 32px 32px;
}
.art-label {
  position: absolute;
  top: 23px;
  left: 24px;
  font: 8px var(--mono);
  letter-spacing: 0.08em;
  color: #b2c0a0;
}
.art-footnote {
  position: absolute;
  bottom: 17px;
  left: 24px;
  font: 7px var(--mono);
  color: #a5b099;
  letter-spacing: 0.09em;
}
.pos-mockup {
  position: absolute;
  width: 75%;
  height: 205px;
  top: 70px;
  left: 14%;
  display: flex;
  background: #101714;
  border: 1px solid #b9d59850;
  border-radius: 7px;
  box-shadow: 15px 20px 40px #0008;
  transform: rotateX(15deg) rotateY(-16deg) rotateZ(-7deg);
  transition: transform 0.8s var(--ease);
}
.project-card:hover .pos-mockup {
  transform: rotateX(4deg) rotateY(-6deg) rotateZ(-3deg) translateY(-8px);
}
.mock-sidebar {
  width: 42px;
  padding: 15px 10px;
  border-right: 1px solid #ffffff0b;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 19px;
}
.mock-sidebar b {
  color: var(--accent);
  font-size: 18px;
}
.mock-sidebar i {
  width: 12px;
  height: 9px;
  background: #374334;
  border-radius: 2px;
}
.mock-main {
  flex: 1;
  padding: 17px;
  min-width: 0;
}
.mock-header {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}
.mock-header span:last-child {
  color: var(--accent);
}
.mock-stats {
  display: flex;
  gap: 30px;
  margin-top: 16px;
}
.mock-stats small {
  font: 6px var(--mono);
  color: #8c9c8c;
}
.mock-stats b {
  display: block;
  font-size: 18px;
  margin-top: 4px;
  letter-spacing: -0.04em;
}
.mock-stats em {
  font: 6px var(--mono);
  color: var(--accent);
}
.mock-chart {
  height: 60px;
  display: flex;
  align-items: end;
  gap: 7px;
  border-bottom: 1px solid #ffffff16;
  padding: 0 2px;
  margin-top: 5px;
}
.mock-chart i {
  width: 100%;
  height: var(--bar, 45%);
  background: linear-gradient(#c6f177, #688540);
  border-radius: 2px 2px 0 0;
  transform-origin: bottom;
  transition: transform 0.5s;
}
.mock-chart i:nth-child(3n) {
  --bar: 68%;
}
.mock-chart i:nth-child(4n) {
  --bar: 48%;
}
.mock-chart i:nth-child(2n) {
  --bar: 80%;
}
.mock-chart i:last-child {
  --bar: 100%;
}
.project-card:hover .mock-chart i {
  transform: scaleY(0.85);
}
.mock-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: #85937f;
  font: 6px var(--mono);
}
.mock-bottom span:last-child {
  color: var(--accent);
}
.art-road {
  background: radial-gradient(ellipse at 45% 65%, #23383a, #152025 70%);
}
.art-road .art-label,
.art-road .art-footnote {
  color: #93b2b4;
}
.vision-frame {
  position: absolute;
  top: 66px;
  left: 19%;
  width: 64%;
  height: 198px;
  border: 1px solid #94ced538;
  transform: rotateY(-10deg) rotateX(14deg) rotateZ(6deg);
  box-shadow: 16px 20px 40px #0006;
  overflow: hidden;
  transition: transform 0.8s var(--ease);
}
.project-card:hover .vision-frame {
  transform: rotateY(0) rotateX(3deg) rotateZ(2deg) translateY(-7px);
}
.road-surface {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    94deg,
    #303938 0,
    #303938 2px,
    #343d3c 3px,
    #303938 4px
  );
  transform: scale(1.3) rotate(-22deg);
}
.road-lane {
  position: absolute;
  left: 26%;
  width: 4px;
  top: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    to bottom,
    #d7d2b87a 0,
    #d7d2b87a 35px,
    transparent 35px,
    transparent 60px
  );
}
.road-crack {
  position: absolute;
  width: 55px;
  height: 43px;
  background: #161d1b;
  box-shadow: 0 0 0 3px #66736930;
  clip-path: polygon(
    20% 5%,
    54% 0,
    87% 24%,
    95% 59%,
    75% 90%,
    42% 96%,
    0 64%,
    8% 34%
  );
}
.crack-one {
  top: 43%;
  left: 51%;
  transform: rotate(15deg);
}
.crack-two {
  top: 5%;
  left: 30%;
  width: 12px;
  height: 65px;
  transform: rotate(-25deg);
}
.detection-box {
  position: absolute;
  border: 1px solid var(--accent);
  box-shadow: 0 0 15px #c6f14412;
}
.detection-box span {
  position: absolute;
  top: -16px;
  left: -1px;
  white-space: nowrap;
  background: var(--accent);
  color: #172112;
  font: 7px var(--mono);
  padding: 3px 5px;
}
.detection-box b {
  margin-left: 7px;
  font-weight: 400;
}
.detection-one {
  left: 47%;
  top: 40%;
  width: 29%;
  height: 37%;
}
.detection-two {
  left: 21%;
  top: 12%;
  width: 22%;
  height: 30%;
  border-color: #8fdae1;
}
.detection-two span {
  background: #8fdae1;
}
.scan-line {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: #c6f17780;
  box-shadow: 0 0 22px 5px #c6f14425;
  animation: scan 5s linear infinite;
}
.vision-status {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 37px;
  display: flex;
  align-items: center;
  gap: 7px;
  font: 7px var(--mono);
  color: #b1c7bb;
}
.vision-status > span {
  margin-left: auto;
}
.vision-status .status-dot {
  width: 4px;
  height: 4px;
}
.project-info {
  padding: 27px;
}
.project-meta {
  display: flex;
  justify-content: space-between;
  font: 8px var(--mono);
  color: var(--muted);
  letter-spacing: 0.07em;
}
.project-info h3 {
  font-size: 26px;
  letter-spacing: -0.045em;
  margin: 21px 0 15px;
}
.project-info h3 a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.project-info h3 a:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}
.project-info h3 a:focus-visible {
  outline-offset: 4px;
}
.project-info h3 a span {
  font-size: 26px;
  color: var(--accent);
  transition: transform 0.3s;
}
.project-card:hover h3 a span {
  transform: translate(3px, -3px);
}
.project-info p {
  font-size: 13px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 23px;
}
.tags span {
  font: 9px var(--mono);
  color: #aab3a7;
  padding: 7px 9px;
  border: 1px solid #ffffff10;
  border-radius: 4px;
  background: #ffffff02;
}
/* Experience, stack, education */
.experience-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 90px;
}
.experience-intro {
  position: sticky;
  top: 140px;
  align-self: start;
}
.experience-intro p {
  max-width: 310px;
  font-size: 14px;
  margin-top: 25px;
}
.experience-decoration {
  font-size: 145px;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-top: 50px;
  font-weight: 400;
  opacity: 0.7;
}
.timeline-item {
  padding: 0 0 35px 30px;
  border-left: 1px solid var(--line);
  position: relative;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-item:before {
  content: "";
  position: absolute;
  left: -4px;
  top: 4px;
  width: 7px;
  height: 7px;
  border: 1px solid #6a7563;
  border-radius: 50%;
  background: var(--bg);
}
.timeline-item:first-child:before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px #c6f14455;
}
.timeline-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font: 9px var(--mono);
  color: var(--muted);
  min-height: 15px;
}
.current-badge {
  color: var(--accent);
  font-size: 7px;
  border: 1px solid #c6f14425;
  background: #c6f14409;
  padding: 4px 6px;
  border-radius: 3px;
}
.timeline h3 {
  font-size: 24px;
  letter-spacing: -0.03em;
  margin: 18px 0 8px;
}
.timeline h4 {
  font-size: 12px;
  font-weight: 400;
  color: #b4bcb2;
}
.timeline p {
  font-size: 13px;
  margin-top: 17px;
  max-width: 550px;
}
.timeline .tags {
  margin-top: 16px;
}
.stack-section {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.stack-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 36px 0 26px;
}
.chip {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 5px;
  padding: 12px 16px;
  font-size: 11px;
  transition:
    background 0.2s,
    color 0.2s;
}
.chip span {
  font: 9px var(--mono);
  margin-left: 12px;
  opacity: 0.65;
}
.chip.active {
  background: var(--accent);
  color: #16210c;
  border-color: var(--accent);
}
.chip:not(.active):hover {
  background: #ffffff07;
  color: var(--ink);
}
.stack-cloud {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  min-height: 110px;
}
.stack-item {
  padding: 22px 18px;
  min-height: 106px;
  background: #0e1113;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition:
    border-color 0.25s,
    transform 0.25s;
  animation: stack-in 0.4s var(--ease) both;
  animation-delay: var(--delay, 0ms);
}
.stack-item:hover {
  border-color: #c6f14460;
  transform: translateY(-4px);
}
.stack-icon {
  font: 17px var(--mono);
  letter-spacing: -0.08em;
  color: var(--accent);
  min-width: 30px;
}
.stack-item strong {
  font-size: 12px;
  font-weight: 500;
}
.stack-item small {
  display: block;
  margin-top: 7px;
  font: 7px var(--mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.education-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.edu-card {
  padding: 27px 0;
  border-top: 1px solid var(--line);
}
.edu-date {
  font: 9px var(--mono);
  color: var(--muted);
}
.edu-card h3 {
  font-size: 21px;
  letter-spacing: -0.035em;
  line-height: 1.4;
  margin-top: 25px;
}
.edu-card p {
  font-size: 12px;
  margin: 14px 0 30px;
}
.edu-card strong {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.05em;
  color: var(--accent);
}
.edu-card strong span {
  font: 9px var(--mono);
  color: var(--muted);
  letter-spacing: 0;
}
.edu-symbol {
  font-size: 35px;
  color: var(--accent);
}
/* Contact */
.contact-section {
  position: relative;
  overflow: hidden;
  background: #151c13;
  text-align: center;
  border-block: 1px solid #c6f14426;
  padding-top: 98px;
  padding-bottom: 95px;
}
.contact-section > div:last-child {
  position: relative;
  z-index: 1;
}
.contact-section h2 {
  font-size: clamp(50px, 7vw, 98px);
  line-height: 1.02;
}
.contact-section .eyebrow {
  font-size: 9px;
  margin-bottom: 28px;
}
.contact-link {
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  gap: 60px;
  background: var(--accent);
  color: #15200d;
  padding: 18px 24px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
}
.contact-link span {
  font-size: 22px;
}
.contact-email {
  font: 10px var(--mono);
  margin-top: 23px;
  color: #939e8c;
  overflow-wrap: anywhere;
}
.contact-orb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 750px;
  height: 750px;
  transform: translate(-50%, -50%) rotateX(65deg) rotateZ(-15deg);
  border: 1px solid #c6f14415;
  border-radius: 50%;
  pointer-events: none;
}
.contact-orb:before,
.contact-orb:after {
  content: "";
  position: absolute;
  inset: 40px;
  border: 1px solid #c6f14415;
  border-radius: 50%;
}
.contact-orb:after {
  inset: -40px;
}
.site-footer {
  padding: 33px max(36px, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.site-footer .brand {
  font-size: 26px;
}
.site-footer p {
  font-size: 10px;
}
.site-footer > span {
  font: 8px var(--mono);
  color: #818c79;
  letter-spacing: 0.08em;
}
.back-top {
  font-size: 10px;
  color: var(--muted);
}
.back-top:hover {
  color: var(--accent);
}
/* Motion is progressive enhancement; content stays visible without JavaScript. */
.motion-ready .reveal {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.motion-ready .hero-enter {
  animation: hero-enter 0.9s var(--ease) both;
}
.hero-enter:nth-child(2) {
  animation-delay: 0.1s;
}
.hero-enter:nth-child(3) {
  animation-delay: 0.2s;
}
.hero-enter:nth-child(4) {
  animation-delay: 0.3s;
}
.motion-paused *,
.motion-paused *:before,
.motion-paused *:after {
  animation-play-state: paused !important;
}
.motion-paused .reveal,
.motion-paused .hero-enter {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}
.motion-paused .project-card:hover .pos-mockup {
  transform: rotateX(15deg) rotateY(-16deg) rotateZ(-7deg);
}
.motion-paused .project-card:hover .vision-frame {
  transform: rotateY(-10deg) rotateX(14deg) rotateZ(6deg);
}
.motion-paused .project-card:hover .mock-chart i {
  transform: none;
}
html.motion-paused,
html.motion-paused * {
  scroll-behavior: auto;
}
.motion-paused .stack-item {
  opacity: 1;
  animation: none !important;
}
.motion-paused .stack-item:hover {
  transform: none;
}
@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes stack-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes scan {
  0% {
    top: 0;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}
@keyframes float-code {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -13px;
  }
}
@keyframes float-note {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 12px;
  }
}
@media (min-width: 1550px) {
  .hero {
    min-height: 920px;
  }
  .hero-layout {
    padding-top: 75px;
    padding-bottom: 75px;
  }
  h1 {
    font-size: 94px;
  }
  .scene {
    height: 620px;
  }
}
@media (max-width: 1100px) {
  .hero {
    padding-top: 125px;
    min-height: auto;
  }
  .hero-layout {
    grid-template-columns: 1.05fr 1fr;
  }
  h1 {
    font-size: 65px;
  }
  .scene {
    height: 500px;
    margin-left: -70px;
  }
  .panel-code {
    width: 210px;
    left: 8%;
    top: 17%;
  }
  .panel-code code {
    font-size: 9px;
  }
  .panel-note {
    font-size: 10px;
    right: 5%;
    bottom: 18%;
    padding: 12px;
  }
  .panel-note small {
    font-size: 6px;
  }
  .note-check {
    margin-left: 3px;
  }
  .scene-caption {
    left: 22%;
    font-size: 7px;
  }
  .drag-hint {
    display: none;
  }
  .hero-actions {
    gap: 12px;
  }
  .hero-actions .text-link {
    font-size: 10px;
  }
  .about-grid {
    gap: 55px;
  }
  .experience-layout {
    gap: 50px;
  }
  .stack-cloud {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .discipline-strip {
    font-size: 9px;
    gap: 15px;
  }
  .section-pad {
    padding-top: 90px;
    padding-bottom: 90px;
  }
  .project-art {
    height: 285px;
  }
  .project-info {
    padding: 23px;
  }
  .mock-stats {
    gap: 15px;
  }
  .mock-main {
    padding: 12px;
  }
  .pos-mockup {
    height: 190px;
  }
  .project-info h3 {
    font-size: 23px;
  }
  .education-grid {
    gap: 25px;
  }
  .edu-card h3 {
    font-size: 18px;
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 96px;
  }
  .site-header {
    height: 80px;
    padding: 0 24px;
    gap: 20px;
  }
  .site-header.is-solid,
  .site-header.menu-open {
    height: 72px;
  }
  .brand {
    font-size: 29px;
  }
  .nav-cta {
    margin-left: auto;
    padding: 10px 14px;
    font-size: 11px;
  }
  .nav-cta span {
    margin-left: 15px;
  }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 38px;
    height: 44px;
    background: transparent;
    padding: 8px;
  }
  .menu-toggle span {
    width: 22px;
    height: 1px;
    background: var(--ink);
    transition: transform 0.25s;
  }
  .menu-open .menu-toggle span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }
  .menu-open .menu-toggle span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 15px 24px 24px;
    background: #0c0e10;
    border-bottom: 1px solid var(--line);
    margin: 0;
    gap: 5px;
  }
  .menu-open .nav-links {
    display: flex;
    flex-direction: column;
  }
  .nav-links a {
    font-size: 17px;
    padding: 15px 0;
  }
  .nav-links a:after {
    width: 24px;
  }
  .hero {
    padding: 115px 24px 0;
  }
  .hero-topline {
    font-size: 8px;
  }
  .location {
    display: none;
  }
  .hero-layout {
    grid-template-columns: 1fr;
    padding: 39px 0 20px;
  }
  .hero-content {
    max-width: 530px;
  }
  .eyebrow {
    font-size: 9px;
    margin-bottom: 20px;
  }
  h1 {
    font-size: clamp(60px, 11.3vw, 83px);
  }
  .hero-copy {
    max-width: 350px;
    font-size: 13px;
    margin-top: 23px;
  }
  .hero-actions {
    gap: 22px;
    margin-top: 27px;
  }
  .scene {
    width: min(100%, 520px);
    height: 410px;
    margin: -5px auto 0;
  }
  .panel-code {
    left: 0;
    top: 19%;
    width: 210px;
  }
  .panel-note {
    right: 0;
    bottom: 16%;
  }
  .scene-label {
    right: 0;
    top: 25px;
    font-size: 8px;
  }
  .scene-caption {
    left: 0;
    bottom: 15px;
    right: 0;
  }
  .drag-hint {
    display: block;
  }
  .hero-bottom {
    font-size: 8px;
    padding: 14px 0;
  }
  .hero-bottom > span {
    display: none;
  }
  .motion-toggle {
    font-size: 9px;
  }
  .discipline-strip {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 20px;
    padding: 22px 20px;
    font-size: 8px;
  }
  .discipline-strip i {
    font-size: 16px;
  }
  .discipline-strip span:last-of-type,
  .discipline-strip i:last-child {
    display: none;
  }
  .section-pad {
    padding: 74px 24px;
  }
  .section-top {
    margin-bottom: 35px;
  }
  .section-aside {
    display: none;
  }
  .section-label {
    font-size: 9px;
  }
  h2 {
    font-size: 43px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .section-intro {
    font-size: 14px;
  }
  .about-detail > p {
    font-size: 14px;
  }
  .about-stats {
    margin-top: 26px;
  }
  .principles {
    gap: 22px;
    margin-top: 45px;
  }
  .principle h3 {
    font-size: 15px;
  }
  .principle p {
    font-size: 11px;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
  }
  .section-heading > p {
    font-size: 12px;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .project-art {
    height: 320px;
  }
  .pos-mockup {
    max-width: 350px;
    left: 50%;
    margin-left: -36%;
    width: 72%;
    height: 210px;
    top: 70px;
  }
  .mock-main {
    padding: 18px;
  }
  .mock-chart {
    height: 64px;
  }
  .vision-frame {
    max-width: 330px;
    height: 207px;
    top: 63px;
  }
  .project-info {
    padding: 25px;
  }
  .project-info h3 {
    font-size: 26px;
  }
  .project-info p {
    font-size: 13px;
  }
  .experience-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .experience-intro {
    position: static;
  }
  .experience-intro p {
    max-width: 400px;
  }
  .experience-decoration {
    display: none;
  }
  .timeline-item {
    padding-left: 23px;
  }
  .timeline h3 {
    font-size: 23px;
  }
  .timeline h4 {
    font-size: 11px;
  }
  .timeline-meta {
    font-size: 8px;
  }
  .stack-cloud {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .stack-item {
    padding: 19px 12px;
    gap: 10px;
    min-height: 95px;
  }
  .stack-item strong {
    font-size: 11px;
  }
  .stack-icon {
    font-size: 15px;
    min-width: 25px;
  }
  .stack-item small {
    font-size: 6px;
  }
  .chip {
    padding: 11px 13px;
    font-size: 10px;
  }
  .stack-controls {
    gap: 7px;
    margin-top: 25px;
  }
  .education-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .edu-card {
    padding: 24px 0;
  }
  .edu-card h3 {
    font-size: 24px;
    margin-top: 16px;
  }
  .edu-card p {
    margin: 12px 0 20px;
  }
  .contact-section h2 {
    font-size: 60px;
  }
  .contact-section {
    padding-block: 75px;
  }
  .contact-orb {
    width: 550px;
    height: 550px;
  }
  .contact-link {
    gap: 45px;
  }
  .site-footer {
    padding: 27px 24px;
    flex-wrap: wrap;
    gap: 25px;
  }
  .site-footer p {
    font-size: 9px;
    margin-left: auto;
  }
  .site-footer > span {
    font-size: 7px;
  }
  .back-top {
    margin-left: auto;
  }
}
@media (max-width: 420px) {
  h1 {
    font-size: 57px;
  }
  .hero-topline {
    font-size: 7px;
    letter-spacing: 0.02em;
  }
  .hero-actions {
    gap: 14px;
  }
  .hero-actions .text-link {
    font-size: 9px;
  }
  .button {
    font-size: 11px;
    padding: 0 17px;
    gap: 25px;
  }
  .scene {
    height: 360px;
    margin-top: 12px;
  }
  .panel-code {
    width: 186px;
    top: 19%;
  }
  .panel-title {
    padding: 10px;
  }
  .panel-code code {
    padding: 12px;
    font-size: 8px;
  }
  .panel-note {
    padding: 10px;
    gap: 8px;
    font-size: 9px;
    bottom: 18%;
  }
  .note-icon {
    font-size: 19px;
  }
  .note-check {
    font-size: 18px;
  }
  .panel-note small {
    font-size: 6px;
  }
  .scene-caption {
    font-size: 6px;
  }
  .principles {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .principle {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 0 10px;
    padding-top: 19px;
  }
  .principle > span {
    padding-top: 5px;
  }
  .principle h3 {
    margin: 0 0 10px;
    font-size: 18px;
  }
  .principle p {
    grid-column: 2;
    font-size: 12px;
  }
  .stack-cloud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stack-item {
    padding: 18px 14px;
  }
  .stack-item strong {
    font-size: 12px;
  }
  .stack-item small {
    font-size: 7px;
  }
  .project-art {
    height: 280px;
  }
  .pos-mockup {
    top: 63px;
    height: 180px;
    width: 80%;
    margin-left: -40%;
  }
  .mock-main {
    padding: 12px;
  }
  .mock-chart {
    height: 48px;
  }
  .mock-stats {
    gap: 18px;
  }
  .mock-stats b {
    font-size: 16px;
  }
  .vision-frame {
    top: 65px;
    height: 160px;
    left: 16%;
    width: 70%;
  }
  .project-info {
    padding: 21px;
  }
  .project-info h3 {
    font-size: 23px;
  }
  .contact-section h2 {
    font-size: 52px;
  }
  .section-pad {
    padding-inline: 22px;
  }
  .site-footer {
    padding-inline: 22px;
  }
  .discipline-strip {
    font-size: 7px;
    gap: 10px;
  }
  .discipline-strip i {
    font-size: 13px;
  }
  .nav-cta {
    font-size: 10px;
  }
  .hero-bottom {
    font-size: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .motion-ready .reveal,
  .motion-ready .hero-enter {
    opacity: 1;
    transform: none;
  }
  .project-card:hover .pos-mockup {
    transform: rotateX(15deg) rotateY(-16deg) rotateZ(-7deg);
  }
  .project-card:hover .vision-frame {
    transform: rotateY(-10deg) rotateX(14deg) rotateZ(6deg);
  }
  .project-card:hover .mock-chart i,
  .stack-item:hover {
    transform: none;
  }
}

/* A visible keyboard focus ring also makes the interactive sculpture discoverable. */
.scene canvas:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: -8px;
  border-radius: 12px;
}
