:root {
  --canvas: oklch(96.5% 0.009 88);
  --paper: oklch(99% 0.005 88);
  --ink: oklch(28% 0.06 247);
  --ink-soft: oklch(43% 0.035 247);
  --navy: oklch(26% 0.075 247);
  --navy-deep: oklch(18% 0.05 247);
  --lime: oklch(88% 0.19 121);
  --lime-deep: oklch(63% 0.17 121);
  --line: color-mix(in oklch, var(--navy) 18%, transparent);
  --paper-line: color-mix(in oklch, var(--paper) 16%, transparent);
  --shadow-soft: 0 22px 60px rgba(20, 41, 61, 0.12);
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --display: "Bodoni 72", "Bodoni MT", "Songti SC", STSong, serif;
  --body: "Avenir Next", Avenir, "PingFang SC", "Hiragino Sans GB", sans-serif;
  --mono: "SFMono-Regular", Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--lime-deep);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: var(--paper);
  background: var(--navy-deep);
  transform: translateY(-160%);
  transition: transform 180ms ease-out;
}

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

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 74px;
  padding: 0 clamp(24px, 5vw, 76px);
  color: var(--ink);
  background: color-mix(in oklch, var(--canvas) 93%, transparent);
  box-shadow: 0 1px 0 var(--line);
}

.wordmark {
  display: flex;
  align-items: center;
  width: max-content;
  min-height: 44px;
  gap: 12px;
}

.wordmark-main {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.wordmark-meta {
  padding-inline-start: 12px;
  border-inline-start: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: 0.08em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.desktop-nav a {
  position: relative;
  display: grid;
  min-width: 62px;
  min-height: 44px;
  place-items: center;
  padding: 0 12px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.desktop-nav a::after {
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime-deep);
  content: "";
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 180ms ease-out, transform 180ms ease-out;
}

.desktop-nav a.is-active::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.header-resume {
  justify-self: end;
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  padding: 0 14px 0 16px;
  color: var(--paper);
  background: var(--navy);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  transition: transform 160ms ease-out, background-color 160ms ease-out;
}

.header-resume svg,
.primary-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.hero {
  position: relative;
  display: grid;
  min-height: 820px;
  padding: 138px clamp(24px, 5vw, 76px) 80px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 74px 0 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in oklch, var(--navy) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklch, var(--navy) 6%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 84%);
}

.hero::before {
  position: absolute;
  top: 76px;
  right: -16vw;
  width: 60vw;
  height: 60vw;
  min-width: 740px;
  min-height: 740px;
  border-radius: 50%;
  background: color-mix(in oklch, var(--lime) 13%, transparent);
  content: "";
  filter: blur(2px);
}

.hero::after {
  position: absolute;
  right: 7vw;
  bottom: 80px;
  width: min(28vw, 420px);
  height: 10px;
  background: var(--lime);
  content: "";
  transform: rotate(-4deg);
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-copy {
  align-self: center;
  width: min(58vw, 820px);
  padding-block-start: 12px;
}

.availability {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  gap: 9px;
  padding: 0 13px;
  color: var(--ink);
  background: color-mix(in oklch, var(--paper) 78%, transparent);
  box-shadow: 0 0 0 1px var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.availability-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime-deep);
  box-shadow: 0 0 0 5px color-mix(in oklch, var(--lime) 22%, transparent);
}

.hero-kicker,
.eyebrow {
  margin: 34px 0 13px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(56px, 6.4vw, 104px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero h1 > span {
  display: block;
}

.hero h1 > span:last-child {
  padding-inline-start: clamp(0px, 4vw, 60px);
}

.accent-mark {
  position: relative;
  z-index: 1;
  display: inline-block;
}

.accent-mark::after {
  position: absolute;
  z-index: -1;
  right: -0.08em;
  bottom: 0.04em;
  left: -0.04em;
  height: 0.2em;
  background: var(--lime);
  content: "";
  transform: rotate(-2deg);
}

.hero-summary {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.85;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-block-start: 32px;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  gap: 18px;
  padding: 0 18px 0 22px;
  color: var(--paper);
  background: var(--navy);
  border-radius: var(--radius-sm);
  box-shadow: 7px 7px 0 var(--lime);
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms ease-out;
}

.primary-action:active,
.header-resume:active {
  transform: scale(0.96);
}

.text-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  padding: 0 6px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 -1px 0 var(--ink);
}

.hero-stats {
  display: flex;
  gap: clamp(26px, 4vw, 60px);
  margin: 58px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 10px;
}

.hero-stats dt {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hero-stats dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  white-space: nowrap;
}

.hero-visual {
  position: absolute;
  top: 143px;
  right: clamp(26px, 5vw, 76px);
  width: min(31vw, 465px);
  height: 590px;
}

.visual-index {
  position: absolute;
  top: -1px;
  right: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.portrait-frame {
  position: absolute;
  z-index: 2;
  top: 36px;
  right: 25px;
  width: min(24vw, 345px);
  padding: 12px 12px 14px;
  background: var(--navy);
  box-shadow: 16px 16px 0 color-mix(in oklch, var(--lime) 84%, var(--paper));
  transform: rotate(2deg);
}

.portrait-crop {
  position: relative;
  width: 100%;
  aspect-ratio: 156 / 212;
  overflow: hidden;
  background: var(--paper);
}

.portrait-source {
  position: absolute;
  top: -41.5%;
  left: -44.2%;
  display: block;
  width: 762.8%;
  max-width: none;
  height: auto;
  filter: saturate(0.88) contrast(1.03);
}

.portrait-caption {
  display: block;
  margin-block-start: 10px;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.45;
  letter-spacing: 0.13em;
}

.orbit {
  position: absolute;
  z-index: 4;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--navy-deep);
  box-shadow: 0 9px 22px rgba(12, 31, 48, 0.22);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

.orbit::before {
  position: absolute;
  inset: -7px;
  border: 1px dashed color-mix(in oklch, var(--navy) 44%, transparent);
  border-radius: 50%;
  content: "";
}

.orbit-java {
  top: 92px;
  left: 0;
}

.orbit-ai {
  top: 252px;
  right: -7px;
  color: var(--navy-deep);
  background: var(--lime);
}

.orbit-data {
  top: 368px;
  left: 8px;
}

.terminal-card {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 2px;
  width: min(28vw, 340px);
  padding: 16px;
  color: color-mix(in oklch, var(--paper) 88%, transparent);
  background: var(--navy-deep);
  box-shadow: 0 20px 46px rgba(14, 33, 49, 0.28);
  border-radius: var(--radius-md);
  font-family: var(--mono);
}

.terminal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 14px;
  padding-block-end: 12px;
  border-bottom: 1px solid var(--paper-line);
  color: color-mix(in oklch, var(--paper) 53%, transparent);
  font-size: 9px;
}

.terminal-lights {
  display: flex;
  gap: 5px;
}

.terminal-lights i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: color-mix(in oklch, var(--paper) 32%, transparent);
}

.terminal-card code {
  display: block;
  padding: 6px 0;
  font-size: 10px;
}

.terminal-card code span {
  margin-inline-end: 14px;
  color: var(--lime);
}

.terminal-ready {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-block-start: 13px;
  color: var(--lime);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.terminal-ready i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.section {
  position: relative;
  padding: 124px clamp(24px, 5vw, 76px);
}

.section-marker {
  position: absolute;
  top: 130px;
  left: clamp(24px, 5vw, 76px);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 32px;
  gap: 10px;
  color: var(--ink-soft);
  font-family: var(--mono);
}

.section-marker span {
  font-size: 11px;
}

.section-marker i {
  width: 1px;
  height: 90px;
  background: var(--line);
}

.section-marker small {
  font-size: 8px;
  letter-spacing: 0.12em;
  transform: rotate(90deg) translateX(35px);
}

.section-intro,
.project-heading,
.credentials-layout {
  width: min(1120px, calc(100% - 96px));
  margin-inline: auto;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: end;
}

.section-intro .eyebrow,
.project-heading .eyebrow,
.education .eyebrow,
.contact .eyebrow {
  margin-top: 0;
  color: var(--lime-deep);
}

.section-intro h2,
.project-heading h2,
.education h2,
.contact h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-intro > p {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
  text-wrap: pretty;
}

.capability-map {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  grid-template-areas:
    "primary ai"
    "primary data";
  width: min(1120px, calc(100% - 96px));
  margin: 80px auto 0;
  gap: 1px;
  background: var(--line);
  box-shadow: 0 0 0 1px var(--line);
}

.capability {
  position: relative;
  min-height: 260px;
  padding: clamp(28px, 4vw, 52px);
  background: var(--paper);
}

.capability-primary {
  grid-area: primary;
  min-height: 521px;
  color: color-mix(in oklch, var(--paper) 90%, transparent);
  background: var(--navy);
}

.capability-primary::after {
  position: absolute;
  right: 36px;
  bottom: 30px;
  width: 140px;
  height: 140px;
  border: 1px dashed var(--paper-line);
  border-radius: 50%;
  content: "</>";
  display: grid;
  place-items: center;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 30px;
  transform: rotate(-8deg);
}

.capability-ai {
  grid-area: ai;
}

.capability-data {
  grid-area: data;
}

.capability-no {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.capability h3 {
  max-width: 410px;
  margin: 58px 0 16px;
  font-family: var(--display);
  font-size: clamp(30px, 3.2vw, 52px);
  line-height: 1;
  letter-spacing: -0.025em;
}

.capability:not(.capability-primary) h3 {
  margin-top: 34px;
  font-size: clamp(27px, 2.6vw, 39px);
}

.capability p {
  max-width: 480px;
  margin: 0;
  color: color-mix(in oklch, currentColor 70%, transparent);
  font-size: 14px;
  line-height: 1.85;
}

.skill-line {
  position: absolute;
  right: clamp(28px, 4vw, 52px);
  bottom: clamp(28px, 4vw, 46px);
  left: clamp(28px, 4vw, 52px);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-line span {
  padding: 7px 9px;
  background: color-mix(in oklch, currentColor 7%, transparent);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 9px;
}

.capability-primary .skill-line {
  right: 220px;
}

.projects {
  color: color-mix(in oklch, var(--paper) 88%, transparent);
  background: var(--navy-deep);
  overflow: hidden;
}

.projects::before {
  position: absolute;
  top: 0;
  right: -160px;
  width: 480px;
  height: 480px;
  border: 1px solid var(--paper-line);
  border-radius: 50%;
  content: "";
}

.projects::after {
  position: absolute;
  top: 120px;
  right: -48px;
  width: 270px;
  height: 270px;
  border: 1px dashed var(--paper-line);
  border-radius: 50%;
  content: "";
}

.marker-light {
  color: color-mix(in oklch, var(--paper) 45%, transparent);
}

.marker-light i {
  background: var(--paper-line);
}

.project-heading {
  position: relative;
  z-index: 2;
  padding-inline-end: 20vw;
}

.project-heading .eyebrow {
  color: var(--lime);
}

.project-list {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 96px));
  margin: 86px auto 0;
}

.project {
  display: grid;
  grid-template-columns: 84px minmax(140px, 0.42fr) minmax(360px, 1fr) minmax(150px, 0.38fr);
  gap: clamp(18px, 3vw, 44px);
  padding: 42px 0;
  border-top: 1px solid var(--paper-line);
  transform-style: preserve-3d;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), background-color 180ms ease-out;
}

.project:last-child {
  border-bottom: 1px solid var(--paper-line);
}

.project-sequence {
  color: var(--lime);
  font-family: var(--display);
  font-size: 50px;
  font-weight: 700;
  line-height: 1;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
}

.project-meta span {
  color: var(--lime);
  font-weight: 700;
}

.project-meta time {
  color: color-mix(in oklch, var(--paper) 48%, transparent);
  font-variant-numeric: tabular-nums;
}

.project-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.project h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(26px, 2.9vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.project-arrow {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--navy-deep);
  background: var(--lime);
  border-radius: 50%;
  font-size: 17px;
  transition: transform 180ms ease-out;
}

.project-body > p {
  margin: 24px 0 0;
  color: color-mix(in oklch, var(--paper) 58%, transparent);
  font-size: 13px;
  line-height: 1.85;
  text-wrap: pretty;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.project-tags li {
  padding: 7px 9px;
  color: color-mix(in oklch, var(--paper) 76%, transparent);
  background: color-mix(in oklch, var(--paper) 5%, transparent);
  box-shadow: inset 0 0 0 1px var(--paper-line);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 9px;
}

.project-outcome {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding-inline-start: clamp(12px, 2vw, 28px);
  border-inline-start: 1px solid var(--paper-line);
}

.project-outcome span {
  margin-block-end: 8px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.project-outcome strong {
  color: color-mix(in oklch, var(--paper) 70%, transparent);
  font-size: 11px;
  font-weight: 500;
}

.credentials {
  background:
    linear-gradient(90deg, transparent 49.95%, var(--line) 50%, transparent 50.05%),
    var(--canvas);
}

.credentials-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(60px, 10vw, 150px);
}

.education {
  align-self: start;
  position: sticky;
  top: 120px;
}

.education h2 {
  font-size: clamp(42px, 4.5vw, 67px);
}

.education-record {
  margin-block-start: 70px;
  padding-block-start: 26px;
  border-top: 1px solid var(--line);
}

.education-record time,
.credential-code {
  color: var(--lime-deep);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

.education-record h3 {
  margin: 20px 0 4px;
  font-family: var(--display);
  font-size: 34px;
  letter-spacing: -0.02em;
}

.education-record p {
  margin: 0;
  font-weight: 600;
}

.education-record small {
  display: block;
  margin-block-start: 24px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.9;
}

.credential-list article {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 29px 0;
  border-bottom: 1px solid var(--line);
}

.credential-list article:first-child {
  border-top: 1px solid var(--line);
}

.credential-list h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 31px);
  letter-spacing: -0.018em;
}

.credential-list p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.contact {
  padding-bottom: 32px;
  color: color-mix(in oklch, var(--paper) 90%, transparent);
  background: var(--navy);
}

.contact::before {
  position: absolute;
  top: 72px;
  right: clamp(24px, 5vw, 76px);
  width: 110px;
  height: 110px;
  border: 1px dashed var(--paper-line);
  border-radius: 50%;
  content: "+";
  display: grid;
  place-items: center;
  color: var(--lime);
  font-family: var(--display);
  font-size: 60px;
}

.contact-inner {
  width: min(1050px, calc(100% - 96px));
  margin-inline: auto;
}

.contact .eyebrow {
  color: var(--lime);
}

.contact h2 {
  max-width: 920px;
  font-size: clamp(48px, 6.1vw, 92px);
}

.contact-note {
  max-width: 560px;
  margin: 34px 0 0 auto;
  color: color-mix(in oklch, var(--paper) 60%, transparent);
  font-size: 15px;
  line-height: 1.8;
}

.contact-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 30px;
  margin-block-start: 82px;
}

.contact-mail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  padding: 0 24px 0 0;
  border-bottom: 1px solid var(--paper-line);
  font-family: var(--display);
  font-size: clamp(25px, 4vw, 58px);
  letter-spacing: -0.025em;
}

.contact-phone {
  display: flex;
  align-items: center;
  min-height: 54px;
  gap: 20px;
  padding: 0 18px;
  color: var(--navy-deep);
  background: var(--lime);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.contact-phone span:last-child {
  padding-inline-start: 18px;
  border-inline-start: 1px solid color-mix(in oklch, var(--navy) 30%, transparent);
  font-size: 9px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-block-start: 100px;
  padding-block-start: 25px;
  border-top: 1px solid var(--paper-line);
  color: color-mix(in oklch, var(--paper) 48%, transparent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

footer a {
  display: grid;
  min-height: 40px;
  place-items: center;
  color: var(--lime);
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: enter 760ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

.observe {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 680ms ease-out, transform 680ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

@media (hover: hover) {
  .desktop-nav a:hover {
    color: var(--ink);
  }

  .header-resume:hover {
    background: var(--navy-deep);
    transform: translateY(-2px);
  }

  .primary-action:hover {
    box-shadow: 3px 3px 0 var(--lime);
    transform: translate(4px, 4px);
  }

  .project:hover .project-arrow {
    transform: scale(1.08) translate(2px, -2px);
  }

  .contact-mail:hover {
    color: var(--lime);
  }

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

@media (max-width: 1120px) {
  .hero {
    min-height: 880px;
  }

  .hero-copy {
    width: 63vw;
  }

  .hero h1 {
    font-size: clamp(52px, 7vw, 78px);
  }

  .hero-visual {
    top: 194px;
    width: 34vw;
    height: 560px;
  }

  .portrait-frame {
    width: 26vw;
  }

  .project {
    grid-template-columns: 60px 150px minmax(320px, 1fr);
  }

  .project-outcome {
    display: none;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding-inline: 22px;
  }

  .desktop-nav {
    display: none;
  }

  .wordmark-meta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 112px 22px 76px;
  }

  .hero::before {
    top: 280px;
    right: -360px;
  }

  .hero::after {
    right: -30px;
    bottom: 51px;
    width: 220px;
  }

  .hero-copy {
    width: 100%;
    padding: 0;
  }

  .hero h1 {
    font-size: clamp(48px, 12.5vw, 78px);
  }

  .hero h1 > span:last-child {
    padding-inline-start: 0;
  }

  .hero-summary {
    max-width: 620px;
  }

  .hero-visual {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 610px;
    margin-block-start: 72px;
  }

  .portrait-frame {
    right: 12%;
    width: min(67vw, 360px);
  }

  .terminal-card {
    right: 2%;
    width: min(70vw, 340px);
  }

  .orbit-java {
    left: 7%;
  }

  .orbit-data {
    left: 8%;
  }

  .section {
    padding: 92px 22px;
  }

  .section-marker {
    display: none;
  }

  .section-intro,
  .project-heading,
  .credentials-layout,
  .contact-inner {
    width: 100%;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-intro > p {
    max-width: 560px;
  }

  .capability-map {
    width: 100%;
  }

  .capability-primary .skill-line {
    right: clamp(28px, 4vw, 52px);
  }

  .capability-primary::after {
    opacity: 0.42;
  }

  .project-heading {
    padding-inline-end: 8vw;
  }

  .project-list {
    width: 100%;
    margin-top: 56px;
  }

  .project {
    grid-template-columns: 58px minmax(130px, 0.35fr) minmax(0, 1fr);
    gap: 18px;
  }

  .credentials {
    background: var(--canvas);
  }

  .credentials-layout {
    grid-template-columns: 1fr;
  }

  .education {
    position: static;
  }

  .contact::before {
    width: 72px;
    height: 72px;
    opacity: 0.45;
  }

  .contact-actions {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .contact-phone {
    width: max-content;
  }
}

@media (max-width: 590px) {
  .site-header {
    min-height: 66px;
  }

  .header-resume {
    padding-inline: 13px;
  }

  .header-resume span {
    display: none;
  }

  .hero {
    padding-top: 98px;
  }

  .hero-kicker {
    margin-top: 26px;
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .hero h1 {
    font-size: clamp(45px, 13.2vw, 68px);
  }

  .hero-summary {
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-actions {
    gap: 18px;
  }

  .text-action {
    font-size: 12px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 44px;
  }

  .hero-stats div {
    display: block;
  }

  .hero-stats dt {
    font-size: 25px;
  }

  .hero-stats dd {
    margin-top: 4px;
    font-size: 9px;
    white-space: normal;
  }

  .hero-visual {
    height: 520px;
    margin-top: 58px;
  }

  .visual-index {
    right: 8px;
  }

  .portrait-frame {
    right: 13%;
    width: min(69vw, 290px);
  }

  .orbit {
    width: 50px;
    height: 50px;
    font-size: 9px;
  }

  .orbit-java {
    top: 98px;
    left: 1%;
  }

  .orbit-ai {
    top: 230px;
    right: 0;
  }

  .orbit-data {
    top: 318px;
    left: 3%;
  }

  .terminal-card {
    right: 0;
    bottom: 0;
    width: min(83vw, 316px);
  }

  .section-intro h2,
  .project-heading h2,
  .education h2 {
    font-size: clamp(39px, 11vw, 54px);
  }

  .capability-map {
    grid-template-columns: 1fr;
    grid-template-areas: "primary" "ai" "data";
  }

  .capability,
  .capability-primary {
    min-height: 360px;
  }

  .capability-primary::after {
    right: 24px;
    bottom: 80px;
    width: 100px;
    height: 100px;
  }

  .project-heading {
    padding: 0;
  }

  .project {
    grid-template-columns: 45px 1fr;
    gap: 12px 16px;
    padding: 34px 0;
  }

  .project-sequence {
    grid-row: 1 / span 2;
    font-size: 39px;
  }

  .project-meta {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .project-body {
    grid-column: 2;
  }

  .project-title-row {
    gap: 12px;
  }

  .project h3 {
    font-size: 27px;
  }

  .project-arrow {
    width: 36px;
    height: 36px;
  }

  .credentials-layout {
    gap: 64px;
  }

  .education-record {
    margin-top: 48px;
  }

  .credential-list article {
    grid-template-columns: 74px 1fr;
    gap: 14px;
  }

  .credential-list h3 {
    font-size: 22px;
  }

  .contact::before {
    top: 52px;
    right: 12px;
  }

  .contact h2 {
    font-size: clamp(42px, 12vw, 62px);
  }

  .contact-actions {
    margin-top: 58px;
  }

  .contact-mail {
    min-height: 72px;
    padding-right: 8px;
    font-size: clamp(19px, 6vw, 28px);
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 78px;
  }
}

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

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