:root {
  --ink: #0b0d0f;
  --ink-soft: #15191c;
  --paper: #f1eee6;
  --paper-deep: #dedad0;
  --white: #fbfaf6;
  --muted: #858b8f;
  --accent: #ff5a36;
  --signal: #bdeec7;
  --max-width: 1480px;
  --side-pad: clamp(22px, 4vw, 64px);
  --radius: 24px;
  --control-bar-height: 72px;
}

@view-transition {
  navigation: auto;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--ink);
  font-family: Inter, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.scroll-progress {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
}

body::selection {
  color: var(--white);
  background: var(--accent);
}

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

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--white);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  left: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: var(--control-bar-height);
  align-items: center;
  width: 100%;
  padding: 10px max(var(--side-pad), calc((100vw - var(--max-width)) / 2 + var(--side-pad)));
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  background: rgba(11, 13, 15, 0.84);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 760;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  gap: clamp(12px, 2vw, 30px);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.nav-links a,
.header-cta,
.identity-links a,
.contact-email {
  transition: color 180ms ease;
}

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

body[data-page="home"] .nav-links [data-page-link="home"],
body[data-page="education"] .nav-links [data-page-link="education"],
body[data-page="projects"] .nav-links [data-page-link="projects"],
body[data-page="internship"] .nav-links [data-page-link="internship"],
body[data-page="skills"] .nav-links [data-page-link="skills"],
body[data-page="interests"] .nav-links [data-page-link="interests"] {
  color: var(--white);
}

body[data-page="home"] .nav-links [data-page-link="home"]::after,
body[data-page="education"] .nav-links [data-page-link="education"]::after,
body[data-page="projects"] .nav-links [data-page-link="projects"]::after,
body[data-page="internship"] .nav-links [data-page-link="internship"]::after,
body[data-page="skills"] .nav-links [data-page-link="skills"]::after,
body[data-page="interests"] .nav-links [data-page-link="interests"]::after {
  display: block;
  width: 5px;
  height: 5px;
  margin: 4px auto -9px;
  content: "";
  border-radius: 999px;
  background: var(--accent);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 18px;
  padding: 13px 17px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 650;
}

.header-social-links {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.header-social-links .header-cta {
  justify-self: initial;
}

.header-cta-secondary {
  color: var(--accent);
  border-color: rgba(255, 90, 54, 0.48);
}

.header-cta:hover,
.header-cta:focus-visible {
  color: var(--ink);
  background: var(--white);
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 10px;
  color: var(--white);
  background: transparent;
  cursor: pointer;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(120px, 0.38fr) minmax(0, 1.5fr) minmax(180px, 0.5fr);
  align-items: end;
  min-height: 100svh;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 140px var(--side-pad) clamp(56px, 8vh, 90px);
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 16% 22%, rgba(255, 90, 54, 0.23), transparent 25%),
    radial-gradient(circle at 84% 66%, rgba(43, 88, 106, 0.18), transparent 28%),
    linear-gradient(135deg, #0b0d0f 20%, #0f1012 63%, #090b0e);
}

.page-hero:not(.hero) {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(360px, 46svh, 520px);
  padding: clamp(76px, 10vw, 128px) var(--side-pad) clamp(56px, 7vw, 84px);
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 76% 24%, rgba(255, 90, 54, 0.17), transparent 28%),
    linear-gradient(135deg, var(--ink-soft) 0%, var(--ink) 72%);
}

.page-hero:not(.hero)::after {
  position: absolute;
  z-index: -1;
  inset: auto -8% -35% auto;
  width: min(54vw, 560px);
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.page-hero:not(.hero) .hero-content {
  width: min(100%, calc(var(--max-width) - (var(--side-pad) * 2)));
  margin: 0 auto;
  padding-top: 0;
}

.page-hero:not(.hero) .hero-role {
  margin-left: 0;
}

.page-hero:not(.hero) h1 {
  margin: 0;
  font-size: clamp(54px, 7.8vw, 112px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.96;
}

.page-hero:not(.hero) .hero-intro {
  max-width: 640px;
  margin: 24px 0 0;
}

.page-hero:not(.hero) .hero-role::before {
  margin-right: 10px;
  color: var(--accent);
  content: "PAGE / ";
}

body[data-page="education"] .page-hero .hero-role::after { content: " / 01"; }
body[data-page="projects"] .page-hero .hero-role::after { content: " / 02"; }
body[data-page="internship"] .page-hero .hero-role::after { content: " / 03"; }
body[data-page="skills"] .page-hero .hero-role::after { content: " / 04"; }
body[data-page="interests"] .page-hero .hero-role::after { content: " / 05"; }

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.12;
  background-image: radial-gradient(rgba(255, 255, 255, 0.8) 0.45px, transparent 0.6px);
  background-size: 4px 4px;
}

.hero::after {
  position: absolute;
  z-index: -2;
  top: 14%;
  left: 46%;
  width: min(50vw, 680px);
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  box-shadow: 0 0 160px rgba(255, 90, 54, 0.08) inset;
  transform: translateX(-50%);
}

.hero-atmosphere {
  position: absolute;
  z-index: -1;
  top: var(--glow-y, 44%);
  left: var(--glow-x, 56%);
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(255, 90, 54, 0.1), transparent 67%);
  transform: translate(-50%, -50%);
  transition: top 200ms ease-out, left 200ms ease-out;
  pointer-events: none;
}

.hero-meta {
  position: absolute;
  top: 105px;
  right: var(--side-pad);
  left: var(--side-pad);
  display: flex;
  justify-content: space-between;
  color: #9d9fa1;
}

.eyebrow,
.section-index,
.section-name,
.project-meta,
.visual-label,
.timeline-type {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-content {
  position: relative;
  z-index: 2;
  align-self: center;
  min-width: 0;
  padding-top: 10vh;
}

.hero-role {
  margin: 0 0 20px 8px;
  color: #a8aaac;
  font-size: clamp(10px, 1vw, 12px);
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(76px, 11.2vw, 176px);
  font-weight: 760;
  letter-spacing: -0.075em;
  line-height: 0.74;
}

.hero h1 > span {
  display: block;
}

.hero h1 > span:first-child {
  margin-left: -0.04em;
  font-size: 0.46em;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.accent-dot {
  color: var(--accent);
}

.hero-intro {
  max-width: 630px;
  margin: 34px 0 0 4px;
  color: #c4c6c7;
  font-size: clamp(15px, 1.35vw, 20px);
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

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

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent);
}

.button-ghost {
  color: #b9bbbd;
  border-color: rgba(255, 255, 255, 0.14);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.hero-side {
  color: #a1a3a5;
  font-size: 12px;
  line-height: 1.6;
}

.hero-side-left {
  align-self: end;
  padding-bottom: 7vh;
}

.hero-side-left strong {
  display: block;
  margin-left: -6px;
  color: var(--accent);
  font-size: clamp(62px, 6.7vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.hero-side-right {
  align-self: end;
  justify-self: end;
  max-width: 210px;
  padding-bottom: 7vh;
}

.hero-side-right > span {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(16px, 1.6vw, 24px);
}

.hero-side-right strong {
  display: block;
  margin-top: -3px;
  color: var(--white);
  font-size: clamp(24px, 2.3vw, 36px);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.hero-side-right p {
  margin: 16px 0 0;
}

.scroll-cue {
  position: absolute;
  right: var(--side-pad);
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #777a7c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.section {
  padding: clamp(86px, 11vw, 168px) var(--side-pad);
}

.section > * {
  width: min(100%, calc(var(--max-width) - (var(--side-pad) * 2)));
  margin-right: auto;
  margin-left: auto;
}

.page-content {
  background: var(--paper);
}

.projects-content,
.skills-content {
  color: var(--white);
  background: var(--ink-soft);
}

.projects-content .section-heading > p,
.skills-content .section-heading > p {
  color: #b0b4b5;
}

.projects-content .section-name,
.skills-content .section-name {
  color: #d9d8d4;
}

.skills-content .capability-grid article {
  color: var(--white);
}

.profile-section,
.journey-section {
  background: var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(130px, 0.44fr) minmax(280px, 1.2fr) minmax(230px, 0.7fr);
  gap: clamp(28px, 5vw, 90px);
  align-items: start;
  padding-bottom: clamp(54px, 7vw, 100px);
}

.section-heading > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-index {
  color: var(--accent);
}

.section-name {
  letter-spacing: 0.08em;
}

.section-heading h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(40px, 5.4vw, 82px);
  font-weight: 620;
  letter-spacing: -0.06em;
  line-height: 1.03;
  text-wrap: balance;
}

.section-heading > p {
  margin: 4px 0 0;
  color: #55595c;
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.8;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(370px, 0.82fr);
  gap: 18px;
}

.identity-card {
  display: grid;
  grid-template-columns: minmax(210px, 0.82fr) minmax(280px, 1.18fr);
  min-height: 590px;
  color: var(--white);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-soft);
}

.portrait-wrap {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #cdc9bf;
}

.portrait-wrap::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 50%, rgba(11, 13, 15, 0.72));
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: saturate(0.78) contrast(1.04);
  transform: scale(1.02);
}

.availability {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 11px;
  background: rgba(11, 13, 15, 0.62);
  backdrop-filter: blur(12px);
  font-size: 12px;
}

.availability i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7cff82;
  box-shadow: 0 0 12px rgba(124, 255, 130, 0.8);
}

.identity-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(32px, 4vw, 66px);
}

.identity-copy .eyebrow {
  margin: 0 0 auto;
  color: var(--accent);
}

.identity-copy h3 {
  margin: 50px 0 22px;
  font-size: clamp(34px, 3.6vw, 58px);
  font-weight: 580;
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.identity-copy > p:not(.eyebrow) {
  margin: 0;
  color: #aeb1b2;
  font-size: 15px;
  line-height: 1.85;
}

.identity-links {
  display: flex;
  gap: 28px;
  margin-top: 38px;
  font-size: 13px;
  font-weight: 700;
}

body[data-page="home"] .profile-grid {
  grid-template-columns: 1fr;
}

.profile-summary-card {
  display: block;
  min-height: 0;
}

.profile-summary-card .identity-copy {
  display: grid;
  grid-template-columns: minmax(130px, 0.44fr) minmax(0, 1.56fr);
  gap: 28px clamp(28px, 5vw, 90px);
  padding: clamp(36px, 6vw, 82px);
}

.profile-summary-card .identity-copy .eyebrow,
.profile-summary-card .identity-copy h3,
.profile-summary-card .identity-copy > p:not(.eyebrow),
.profile-summary-card .identity-copy .identity-links {
  grid-column: 2;
}

.profile-summary-card .identity-copy .eyebrow {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  margin: 0;
}

.profile-summary-card .identity-copy h3 {
  grid-row: 1;
  margin: 0;
  font-size: clamp(38px, 5.2vw, 76px);
}

.profile-summary-card .identity-copy > p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
}

.profile-summary-card .identity-links {
  margin-top: 4px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.proof-card {
  display: flex;
  flex-direction: column;
  min-height: 284px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid rgba(11, 13, 15, 0.17);
  border-radius: var(--radius);
}

.proof-card > span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.proof-card strong {
  margin: auto 0 0;
  font-size: clamp(46px, 5.4vw, 76px);
  font-weight: 640;
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.proof-card p {
  max-width: 180px;
  margin: 18px 0 0;
  color: #5d6062;
  font-size: 13px;
  line-height: 1.65;
}

.accent-card {
  color: var(--white);
  border-color: var(--accent);
  background: var(--accent);
}

.accent-card p {
  color: rgba(255, 255, 255, 0.82);
}

.outline-card {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
}

.outline-card p {
  color: #a9abad;
}

.routes-section {
  background: var(--paper-deep);
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.route-card {
  position: relative;
  display: flex;
  min-height: 116px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 18px 16px;
  overflow: hidden;
  border: 1px solid rgba(11, 13, 15, 0.17);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(11, 13, 15, 0.035);
  font-size: clamp(17px, 1.45vw, 23px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.15;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.route-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: var(--accent);
  opacity: 0;
  transition: opacity 180ms ease;
}

.route-card span {
  margin-top: 8px;
  color: #55595c;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
}

.route-card:hover,
.route-card:focus-visible,
.route-card[aria-current="page"] {
  border-color: rgba(11, 13, 15, 0.4);
  box-shadow: 0 18px 34px rgba(11, 13, 15, 0.1);
  transform: translateY(-3px);
}

.route-card:hover::before,
.route-card:focus-visible::before,
.route-card[aria-current="page"]::before {
  opacity: 1;
}

.routes-section .section-heading {
  padding-bottom: clamp(28px, 4vw, 54px);
}

.projects-section {
  color: var(--white);
  background: var(--ink);
}

.projects-section .section-heading > p {
  color: #9c9fa1;
}

.projects-section .section-name {
  color: #d9d8d4;
}

.projects-list {
  display: grid;
  gap: 28px;
}

.project-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: var(--ink-soft);
  transition: border-color 260ms ease, box-shadow 260ms ease;
}

.project-details,
.timeline-details-panel {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.project-details > summary,
.timeline-details-panel > summary,
.details-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  padding: 16px clamp(22px, 4vw, 58px);
  cursor: pointer;
  list-style: none;
  color: var(--white);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.project-details > summary::-webkit-details-marker,
.timeline-details-panel > summary::-webkit-details-marker {
  display: none;
}

.project-details > summary::marker,
.timeline-details-panel > summary::marker {
  content: "";
}

.details-icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--accent);
  font-size: 16px;
  line-height: 1;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.project-details[open],
.timeline-details-panel[open] {
  background: rgba(255, 255, 255, 0.025);
}

.project-details[open] > summary,
.timeline-details-panel[open] > summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.project-details[open] .details-icon { transform: rotate(45deg); }

.timeline-details-panel[open] .details-icon {
  color: var(--white);
  background: var(--accent);
  transform: rotate(45deg);
}

.project-overview {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(480px, 1.08fr);
}

.project-overview-split {
  grid-template-columns: minmax(0, 1.34fr) minmax(300px, 0.66fr);
}

.project-copy {
  display: flex;
  flex-direction: column;
  min-height: 630px;
  padding: clamp(28px, 4vw, 58px);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #7f8385;
  letter-spacing: 0.11em;
}

.project-meta span:last-child {
  color: var(--accent);
}

.project-copy h3 {
  max-width: 780px;
  margin: auto 0 26px;
  font-size: clamp(42px, 5.3vw, 78px);
  font-weight: 570;
  letter-spacing: -0.065em;
  line-height: 1;
}

.project-copy > p {
  margin: 0;
  color: #aeb1b2;
  font-size: 16px;
  line-height: 1.8;
}

.project-points {
  display: grid;
  gap: 11px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: #d0d2d2;
  font-size: 14px;
  line-height: 1.72;
}

.project-points li::before {
  margin-right: 10px;
  color: var(--accent);
  content: "↳";
}

.project-points strong {
  color: var(--white);
  font-weight: 650;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 30px;
}

.tag-list span {
  padding: 8px 10px;
  color: #b7b9bb;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.05em;
}

.project-visual {
  position: relative;
  min-height: 630px;
  overflow: hidden;
  background: #1a1d20;
}

.visual-label {
  position: absolute;
  z-index: 3;
  top: 25px;
  left: 25px;
  color: rgba(255, 255, 255, 0.6);
}

.agent-visual {
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 50% 52%, rgba(255, 90, 54, 0.26), transparent 30%),
    #16191c;
  background-size: 38px 38px, 38px 38px, auto, auto;
}

.agent-visual svg {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(96%, 650px);
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-dasharray: 5 9;
  transform: translate(-50%, -50%);
}

.agent-core,
.agent-node {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(11, 13, 15, 0.84);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

.agent-core {
  width: 150px;
  height: 150px;
  border-color: var(--accent);
  border-radius: 50%;
}

.agent-core span {
  align-self: end;
  color: #8b8f91;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.agent-core strong {
  align-self: start;
  color: var(--white);
  font-size: 18px;
}

.agent-node {
  min-width: 98px;
  height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  color: #bbbdbf;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.node-chat {
  top: 14%;
  left: 10%;
}

.node-fitness {
  top: 13%;
  right: 8%;
}

.node-nutrition {
  right: 7%;
  bottom: 13%;
}

.node-expert {
  bottom: 12%;
  left: 9%;
  color: var(--ink);
  border-color: var(--accent);
  background: var(--accent);
}

.metric-pill {
  position: static;
  align-self: flex-start;
  width: fit-content;
  padding: 10px 12px;
  color: var(--ink);
  border-radius: 9px;
  background: var(--white);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.project-gallery {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: #0e1113;
}

.phone-gallery {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ios-gallery {
  grid-template-columns: repeat(3, minmax(0, 300px));
  justify-content: center;
  gap: clamp(16px, 3vw, 42px);
  padding-block: clamp(28px, 5vw, 66px);
}

.project-shot {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: #171a1c;
}

.project-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  object-position: top center;
}

.project-shot figcaption,
.robot-shot figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 14px 16px;
  color: #c6c8c9;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
}

.project-shot figcaption span,
.robot-shot figcaption span {
  color: var(--accent);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 850;
  letter-spacing: 0.14em;
}

.project-fact-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 630px;
  padding: clamp(30px, 5vw, 64px);
  color: var(--ink);
  background: #e7e3da;
}

.project-fact-panel > span {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.project-fact-panel ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-fact-panel li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(11, 13, 15, 0.18);
  font-size: clamp(18px, 2vw, 28px);
  letter-spacing: -0.03em;
}

.project-fact-panel li:first-child {
  border-top: 1px solid rgba(11, 13, 15, 0.18);
}

.project-fact-panel b {
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 0.13em;
}

.project-metrics {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  min-height: 630px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  background: #15181a;
}

.project-metrics div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(26px, 4vw, 52px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.project-metrics div:last-child {
  border-bottom: 0;
}

.project-metrics strong {
  color: var(--white);
  font-size: clamp(48px, 6vw, 86px);
  font-weight: 520;
  letter-spacing: -0.07em;
  line-height: 1;
}

.project-metrics span {
  margin-top: 12px;
  color: #8c9092;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.robot-shot {
  margin: 0;
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: #0e1113;
}

.robot-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 2.05 / 1;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.robot-shot figcaption {
  padding-inline: 2px;
}

.wiki-visual {
  padding: 0;
  background: #111416;
}

.wiki-visual img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (hover: hover) and (pointer: fine) {
  .project-card:hover {
    border-color: rgba(255, 90, 54, 0.42);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
  }

  .project-shot img,
  .wiki-visual img {
    transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .project-shot:hover img,
  .wiki-visual:hover img {
    transform: scale(1.025);
  }
}

.wiki-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.wiki-flow article {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: clamp(26px, 3.5vw, 48px);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.wiki-flow article:last-child {
  border-right: 0;
}

.wiki-flow article > span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.wiki-flow strong {
  margin-top: auto;
  color: var(--white);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 570;
  letter-spacing: -0.045em;
}

.wiki-flow p {
  margin: 14px 0 0;
  color: #8f9395;
  font-size: 12px;
  line-height: 1.7;
}

.journey-section .section-heading {
  grid-template-columns: minmax(130px, 0.44fr) minmax(0, 1.9fr);
}

.journey-group + .journey-group {
  margin-top: clamp(88px, 10vw, 150px);
}

.journey-group-heading {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(320px, 1.35fr);
  gap: clamp(30px, 6vw, 100px);
  align-items: end;
  padding-bottom: 36px;
}

.journey-group-heading span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.journey-group-heading h3 {
  margin: 10px 0 0;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 580;
  letter-spacing: -0.055em;
}

.journey-group-heading > p {
  margin: 0;
  color: #55595b;
  font-size: 14px;
  line-height: 1.8;
}

.timeline {
  border-top: 1px solid rgba(11, 13, 15, 0.17);
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(160px, 0.44fr) minmax(240px, 0.82fr) minmax(320px, 1.3fr);
  gap: clamp(24px, 4vw, 70px);
  padding: 38px 0;
  border-bottom: 1px solid rgba(11, 13, 15, 0.17);
}

.timeline-item time {
  font-size: 13px;
  font-weight: 750;
}

.timeline-type {
  margin: 0 0 14px;
  color: var(--accent);
}

.timeline-item h3 {
  margin: 0 0 7px;
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.045em;
}

.timeline-item > div:nth-child(2) > p:last-child {
  margin: 0;
  color: #66696b;
  font-size: 14px;
}

.timeline-description > p {
  margin: 0;
  color: #4f5355;
  font-size: 14px;
  line-height: 1.8;
}

.timeline-details {
  display: grid;
  gap: 15px;
  margin: 22px 0;
  padding: 0;
  color: #3f4345;
  list-style: none;
  font-size: 14px;
  line-height: 1.82;
}

.timeline-details li {
  position: relative;
  padding-left: 20px;
}

.timeline-details li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--accent);
  content: "↳";
  font-weight: 850;
}

.timeline-details strong {
  color: var(--ink);
}

.timeline-description .timeline-result {
  padding: 15px 17px;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  background: rgba(11, 13, 15, 0.045);
  font-weight: 650;
}

.project-preview {
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 48px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: #0e1113;
}

.project-preview .project-shot {
  width: min(100%, 320px);
}

.project-full-content {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.project-full-content > .project-copy {
  min-height: clamp(430px, 32vw, 560px);
  justify-content: space-between;
  padding: clamp(42px, 5vw, 76px);
}

.project-full-content > .project-copy > p {
  max-width: 1180px;
  color: #c8cbcb;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.9;
}

.project-full-content > .project-copy .project-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px clamp(28px, 4vw, 68px);
  max-width: 1280px;
  margin-top: 38px;
  color: #e0e2e1;
  font-size: clamp(15px, 1.08vw, 18px);
  line-height: 1.85;
}

.project-full-content > .project-copy .project-points strong {
  color: var(--white);
}

.timeline-details-panel {
  margin-top: 22px;
  border-color: rgba(11, 13, 15, 0.17);
}

.timeline-details-panel > summary {
  min-height: 52px;
  padding: 12px 0;
  color: var(--ink);
}

.timeline-details-panel[open] {
  background: transparent;
}

.timeline-details-panel[open] > summary {
  border-color: rgba(11, 13, 15, 0.17);
}

.compact-list {
  margin-bottom: 0;
}

.education-item {
  padding-top: 28px;
  padding-bottom: 28px;
}

.capabilities-section {
  color: var(--white);
  background: #15181b;
}

.capabilities-section .section-heading > p {
  color: #9da0a2;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.capability-grid article {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  padding: clamp(28px, 3.5vw, 52px);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: color 220ms ease, background 220ms ease;
}

.capability-grid article:hover {
  color: var(--ink);
  background: var(--accent);
}

.capability-number {
  color: #717476;
  font-size: 12px;
  font-weight: 800;
}

.capability-grid .eyebrow {
  margin: auto 0 12px;
  color: var(--accent);
}

.capability-grid article:hover .eyebrow,
.capability-grid article:hover .capability-number,
.capability-grid article:hover > p:not(.eyebrow) {
  color: rgba(11, 13, 15, 0.7);
}

.capability-grid h3 {
  margin: 0 0 18px;
  font-size: clamp(34px, 3.3vw, 50px);
  font-weight: 570;
  letter-spacing: -0.055em;
}

.capability-grid article > p:not(.eyebrow) {
  margin: 0;
  color: #a6a9aa;
  font-size: 14px;
  line-height: 1.8;
  transition: color 220ms ease;
}

.capability-grid article:hover .tag-list span {
  color: var(--ink);
  border-color: rgba(11, 13, 15, 0.28);
}

.skill-matrix {
  margin-top: clamp(84px, 11vw, 154px);
  padding-top: clamp(58px, 8vw, 104px);
  border-top: 1px solid rgba(11, 13, 15, 0.17);
}

.skill-matrix .section-heading {
  grid-template-columns: minmax(130px, 0.44fr) minmax(0, 1.2fr);
  padding-bottom: clamp(36px, 5vw, 64px);
}

.skill-matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(11, 13, 15, 0.17);
  border-left: 1px solid rgba(11, 13, 15, 0.17);
}

.skill-matrix-grid [data-skill-group] {
  display: flex;
  min-width: 0;
  min-height: 250px;
  flex-direction: column;
  padding: clamp(21px, 2.5vw, 34px);
  color: var(--ink);
  border-right: 1px solid rgba(11, 13, 15, 0.17);
  border-bottom: 1px solid rgba(11, 13, 15, 0.17);
  background: var(--paper);
}

.skill-matrix-grid h3 {
  margin: 0;
  font-size: clamp(21px, 2.2vw, 30px);
  font-weight: 650;
  letter-spacing: -0.04em;
}

.skill-matrix-grid .tag-list {
  margin-top: auto;
}

.skill-matrix-grid .tag-list span {
  color: #454a4d;
  border-color: rgba(11, 13, 15, 0.2);
}

.interest-card,
body[data-page="interests"] .capability-grid article {
  color: var(--ink);
  border-color: rgba(11, 13, 15, 0.17);
  background: var(--paper);
}

body[data-page="interests"] .capability-grid {
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  border-color: rgba(11, 13, 15, 0.17);
}

body[data-page="interests"] .interests-content {
  padding-top: clamp(72px, 7vw, 104px);
  padding-bottom: clamp(72px, 7vw, 104px);
}

body[data-page="interests"] .interests-content > * {
  width: min(100%, 1180px);
  margin-inline: auto;
}

body[data-page="interests"] .interests-content .section-heading {
  padding-bottom: clamp(44px, 5vw, 72px);
}

.interest-card,
body[data-page="interests"] .capability-grid article {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

body[data-page="interests"] .capability-grid article > * {
  width: min(100%, 900px);
  margin-inline: auto;
  align-self: center;
}

body[data-page="interests"] .capability-grid article > .capability-number,
body[data-page="interests"] .capability-grid article > .eyebrow,
body[data-page="interests"] .capability-grid article > h3,
body[data-page="interests"] .capability-grid article > p,
body[data-page="interests"] .capability-grid article > .tag-list {
  width: min(100%, 760px);
  text-align: center;
}

body[data-page="interests"] .capability-grid article > .tag-list {
  justify-content: center;
}

.interest-card .capability-number,
body[data-page="interests"] .capability-number {
  color: var(--accent);
}

.interest-card .eyebrow,
body[data-page="interests"] .capability-grid .eyebrow,
body[data-page="interests"] .capability-grid article:hover .eyebrow {
  color: var(--accent);
}

.interest-card > p:not(.eyebrow),
body[data-page="interests"] .capability-grid article > p:not(.eyebrow),
body[data-page="interests"] .capability-grid article:hover > p:not(.eyebrow) {
  max-width: 900px;
  color: #55595c;
  font-size: 16px;
}

.interest-card > p:not(.eyebrow) + p:not(.eyebrow) {
  margin-top: 14px;
}

.interest-card-media {
  position: relative;
  display: block;
  width: min(100%, 900px);
  max-width: 900px;
  min-width: 0;
  margin: 28px auto 0;
  overflow: hidden;
  border-radius: 12px;
  background: #d8d8d4;
}

.interest-card-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  transition: transform 500ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.interest-card-media figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  color: var(--white);
  border-radius: 999px;
  background: rgba(11, 13, 15, 0.72);
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.interest-game-gallery {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-top: 28px;
}

.interest-game-gallery .interest-card-media {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
}

.interest-game-small-grid {
  display: grid;
  min-width: 0;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.interest-game-gallery .interest-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.interest-game-small-grid .interest-card-media figcaption {
  right: 9px;
  bottom: 9px;
  padding: 6px 9px;
  font-size: 12px;
}

@media (hover: hover) and (pointer: fine) {
  .interest-card-media:hover img {
    transform: scale(1.025);
  }
}

.interest-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-top: auto;
  padding: 5px 8px;
  color: #244b31;
  border-radius: 999px;
  background: var(--signal);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.project-copy > .metric-pill {
  margin: 28px 0 0;
}

.interest-card .tag-list span,
body[data-page="interests"] .capability-grid .tag-list span,
body[data-page="interests"] .capability-grid article:hover .tag-list span {
  color: #244b31;
  border-color: transparent;
  background: var(--signal);
}

.contact-section {
  --contact-ink: #0b0d0f;
  padding: clamp(30px, 3.8vw, 50px) var(--side-pad) 16px;
  color: var(--contact-ink);
  background: var(--accent);
}

.contact-section > * {
  width: min(100%, calc(var(--max-width) - (var(--side-pad) * 2)));
  margin-right: auto;
  margin-left: auto;
}

.contact-section > .eyebrow {
  color: var(--contact-ink);
}

.contact-section > p {
  display: none;
  margin-top: 0;
  margin-bottom: 0;
  color: var(--contact-ink);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.contact-section h2 {
  max-width: min(100%, 1280px);
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(26px, 3.2vw, 48px);
  line-height: 1.08;
  text-align: center;
}

.contact-actions {
  margin-top: 20px;
  margin-left: 0;
}

.button-light {
  color: var(--contact-ink);
  background: var(--white);
}

.button-outline-light {
  color: var(--contact-ink);
  border-color: rgba(11, 13, 15, 0.5);
}

.button-outline-light:hover,
.button-outline-light:focus-visible {
  color: var(--contact-ink);
  background: var(--white);
}

.contact-email {
  display: inline-block;
  width: auto;
  margin-top: 24px;
  margin-left: 0;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(11, 13, 15, 0.72);
  font-size: clamp(15px, 1.5vw, 21px);
  font-weight: 600;
}

.contact-email-note {
  margin-left: 10px;
  color: rgba(11, 13, 15, 0.66);
  font-size: 0.58em;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: var(--contact-ink);
  border-color: var(--contact-ink);
}

.contact-section footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding-top: 12px;
  border-top: 1px solid rgba(11, 13, 15, 0.36);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: -6px -8px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 8px;
  color: inherit;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

summary:focus-visible,
.details-toggle:focus-visible {
  outline-offset: -4px;
}

.contact-section :focus-visible {
  outline-color: var(--contact-ink);
}

@keyframes page-exit {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

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

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 680ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 680ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motion-ready .route-card.reveal.is-visible:hover,
.motion-ready .route-card.reveal.is-visible:focus-visible {
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) {
    animation: page-exit 180ms ease both;
  }

  ::view-transition-new(root) {
    animation: page-enter 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  body:not([data-page="interests"]) .page-hero .hero-role,
  body:not([data-page="interests"]) .page-hero h1,
  body:not([data-page="interests"]) .page-hero .hero-intro,
  body:not([data-page="interests"]) .page-hero .hero-actions,
  body:not([data-page="interests"]) .hero-side {
    animation: hero-enter 680ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  body:not([data-page="interests"]) .page-hero h1 {
    animation-delay: 80ms;
  }

  body:not([data-page="interests"]) .page-hero .hero-intro {
    animation-delay: 180ms;
  }

  body:not([data-page="interests"]) .page-hero .hero-actions {
    animation-delay: 280ms;
  }

  body:not([data-page="interests"]) .hero-side {
    animation-delay: 340ms;
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(90px, 0.25fr) minmax(0, 1.45fr);
  }

  .hero-side-right {
    display: none;
  }

  .hero h1 {
    font-size: clamp(80px, 14vw, 145px);
  }

  .section-heading {
    grid-template-columns: minmax(110px, 0.35fr) minmax(0, 1.4fr);
  }

  .section-heading > p {
    grid-column: 2;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .proof-card {
    min-height: 220px;
  }

  .project-overview,
  .project-overview-split {
    grid-template-columns: 1fr;
  }

  .project-copy {
    min-height: 560px;
  }

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

  .project-fact-panel {
    min-height: 470px;
  }

  .project-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 1fr;
    min-height: 250px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }

  .project-metrics div {
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 0;
  }

  .project-metrics div:last-child {
    border-right: 0;
  }

  .timeline-item {
    grid-template-columns: minmax(130px, 0.34fr) minmax(220px, 0.75fr) minmax(280px, 1.2fr);
    gap: 25px;
  }

  .routes-section .route-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--accent) transparent;
  }

  .routes-section .route-card {
    flex: 0 0 min(210px, 42vw);
    min-height: 112px;
    scroll-snap-align: start;
  }

}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 12px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links.is-open {
    position: absolute;
    top: calc(100% + 1px);
    right: var(--side-pad);
    left: var(--side-pad);
    display: grid;
    gap: 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: var(--ink-soft);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
  }

  .nav-links.is-open a {
    padding: 12px 14px;
    border-radius: 9px;
  }

  .nav-links.is-open a:hover,
  .nav-links.is-open a:focus-visible {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: center;
  }

  .hero-content {
    padding-top: 6vh;
  }

  .hero-side-left {
    position: absolute;
    right: var(--side-pad);
    bottom: 58px;
    left: auto;
    display: flex;
    align-items: flex-end;
    gap: 16px;
    padding: 0;
  }

  .hero-side-left strong {
    font-size: 64px;
  }

  .scroll-cue {
    display: none;
  }

  .section-heading,
  .journey-section .section-heading {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .section-heading > p {
    grid-column: auto;
    max-width: 620px;
  }

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

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

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

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

  .journey-group-heading {
    grid-template-columns: 1fr 1fr;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .capability-grid article {
    min-height: 380px;
  }

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

  .interest-grid,
  body[data-page="interests"] .capability-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="interests"] .interests-content {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .interest-game-gallery {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .interest-game-small-grid {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 12px;
  }

  .routes-section .route-card {
    flex-basis: min(190px, 64vw);
    min-height: 108px;
    padding: 16px;
  }
}

@media (max-width: 620px) {
  :root {
    --side-pad: 19px;
    --radius: 18px;
  }

  .site-header {
    min-height: 64px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .header-cta {
    padding: 11px 14px;
    font-size: 12px;
  }

  .header-social-links {
    gap: 6px;
  }

  .header-social-links .header-cta {
    gap: 6px;
    padding: 10px 9px;
    font-size: 10px;
  }

  .hero {
    min-height: 780px;
    padding-top: 120px;
    padding-bottom: 76px;
  }

  .hero-meta {
    top: 82px;
  }

  .hero h1 {
    font-size: clamp(63px, 21vw, 105px);
    line-height: 0.78;
  }

  .hero-intro {
    margin-top: 28px;
    font-size: 15px;
  }

  .hero-actions {
    display: flex;
  }

  .hero-actions .button {
    padding: 0 12px;
    font-size: 11px;
  }

  .hero-side-left {
    right: 20px;
    bottom: 22px;
  }

  .hero-side-left strong {
    font-size: 48px;
  }

  .hero-side-left span {
    font-size: 10px;
  }

  .section-heading {
    padding-bottom: 48px;
  }

  .section-heading h2,
  .contact-section h2 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .contact-section h2 {
    font-size: clamp(26px, 8vw, 42px);
  }

  .identity-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .profile-summary-card .identity-copy {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .profile-summary-card .identity-copy .eyebrow,
  .profile-summary-card .identity-copy h3,
  .profile-summary-card .identity-copy > p:not(.eyebrow),
  .profile-summary-card .identity-copy .identity-links {
    grid-column: auto;
    grid-row: auto;
  }

  .profile-summary-card .identity-copy h3 {
    margin: 0;
  }

  .portrait-wrap {
    min-height: 420px;
  }

  .identity-copy {
    min-height: 460px;
  }

  .proof-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .proof-card {
    min-height: 190px;
    padding: 20px;
  }

  .proof-card strong {
    font-size: 44px;
  }

  .proof-card p {
    font-size: 11px;
  }

  .project-copy {
    min-height: auto;
    padding: 28px 22px 36px;
  }

  .project-full-content > .project-copy {
    min-height: auto;
    justify-content: flex-start;
    padding: 34px 22px 42px;
  }

  .project-full-content > .project-copy .project-points {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
    font-size: 16px;
    line-height: 1.8;
  }

  .project-copy h3 {
    margin: 92px 0 22px;
    font-size: 44px;
  }

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

  .project-gallery {
    padding: 12px;
  }

  .project-preview {
    padding: 20px 12px;
  }

  .phone-gallery,
  .ios-gallery {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    overflow-x: auto;
    scroll-padding-inline: 12px;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--accent) #202326;
  }

  .project-shot {
    flex: 0 0 min(76vw, 300px);
    scroll-snap-align: start;
  }

  .project-shot figcaption {
    min-height: 54px;
  }

  .project-fact-panel {
    min-height: 410px;
    padding: 28px 22px;
  }

  .project-metrics {
    min-height: 170px;
  }

  .project-metrics div {
    padding: 20px 14px;
  }

  .project-metrics strong {
    font-size: clamp(30px, 10vw, 44px);
  }

  .project-metrics span {
    font-size: 8px;
    line-height: 1.45;
  }

  .robot-shot {
    padding: 12px;
  }

  .robot-shot img {
    aspect-ratio: 1.35 / 1;
  }

  .robot-shot figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .wiki-flow {
    grid-template-columns: 1fr;
  }

  .wiki-flow article {
    min-height: 210px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .wiki-flow article:last-child {
    border-bottom: 0;
  }

  .project-meta {
    flex-wrap: wrap;
    font-size: 9px;
  }

  .agent-core {
    width: 112px;
    height: 112px;
  }

  .agent-node {
    min-width: 74px;
    height: 38px;
    padding: 0 9px;
    font-size: 7px;
  }

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

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

  .journey-group-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .capability-grid article {
    min-height: 360px;
  }

  .page-hero:not(.hero) {
    min-height: 330px;
    padding-top: 64px;
    padding-bottom: 52px;
  }

  .page-hero:not(.hero) h1 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .skill-matrix-grid,
  .interest-grid,
  body[data-page="interests"] .capability-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="interests"] .capability-grid article,
  body[data-page="interests"] .capability-grid article:last-child {
    grid-column: auto;
    min-height: 0;
    padding: 26px 22px;
  }

  body[data-page="interests"] .interests-content {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  body[data-page="interests"] .interests-content .section-heading {
    gap: 24px;
    padding-bottom: 38px;
  }

  .routes-section .route-card {
    flex-basis: min(190px, 72vw);
    min-height: 104px;
  }

  .project-details > summary,
  .timeline-details-panel > summary,
  .details-toggle {
    padding-right: 20px;
    padding-left: 20px;
  }

  .contact-section > p {
    margin-top: 0;
  }

  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact-email {
    margin-top: 22px;
  }

  .contact-section footer {
    flex-direction: column;
    margin-top: 26px;
  }

  main,
  section,
  article,
  aside,
  nav,
  details {
    min-width: 0;
  }

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

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

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }

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

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