:root {
  --blue: #1769ff;
  --blue-deep: #0b2d72;
  --blue-soft: #dbe9ff;
  --ink: #10244a;
  --muted: #657693;
  --paper: #f6f9ff;
  --white: #ffffff;
  --mint: #bdf4e3;
  --lime: #dfff9c;
  --line: rgba(26, 76, 157, 0.15);
  --shadow: 0 24px 70px rgba(45, 91, 157, 0.14);
  --radius-lg: 38px;
  --radius-md: 26px;
  --radius-sm: 16px;
  --max: 1220px;
  --font: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(159, 196, 255, 0.42), transparent 30rem),
    radial-gradient(circle at 90% 12%, rgba(188, 244, 226, 0.36), transparent 29rem),
    linear-gradient(180deg, #f9fbff 0%, #eef5ff 45%, #f8fbff 100%);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

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

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

.sr-only {
  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 {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 15px;
  color: white;
  background: var(--blue-deep);
  border-radius: 12px;
  transform: translateY(-150%);
}

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

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

.ambient {
  position: fixed;
  z-index: -2;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(23, 105, 255, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

.ambient::before,
.ambient::after {
  content: "";
  position: absolute;
  inset: 50%;
  border: 1px solid rgba(23, 105, 255, 0.1);
  border-radius: inherit;
  transform: translate(-50%, -50%);
}

.ambient::before {
  width: 72%;
  height: 72%;
}

.ambient::after {
  width: 38%;
  height: 38%;
}

.ambient-one {
  top: -260px;
  right: -180px;
}

.ambient-two {
  bottom: -320px;
  left: -250px;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  padding: 18px 24px 0;
  pointer-events: none;
}

.nav-shell {
  display: flex;
  width: min(100%, 1320px);
  min-height: 66px;
  align-items: center;
  gap: 24px;
  padding: 9px 12px 9px 14px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 22px;
  background: rgba(250, 252, 255, 0.78);
  box-shadow: 0 12px 40px rgba(44, 83, 145, 0.1);
  backdrop-filter: blur(24px) saturate(160%);
  pointer-events: auto;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.scrolled .nav-shell {
  background: rgba(250, 252, 255, 0.94);
  box-shadow: 0 16px 44px rgba(24, 60, 115, 0.16);
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-copy strong {
  font-size: 12px;
  letter-spacing: 0.12em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.nav-links {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.nav-links a {
  position: relative;
  padding: 10px 13px;
  color: #536580;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
  background: rgba(23, 105, 255, 0.09);
}

.nav-resume {
  flex: 0 0 auto;
  padding: 11px 15px;
  color: #fff;
  background: var(--ink);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-resume:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
}

.section {
  position: relative;
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  align-items: center;
  gap: 70px;
  padding-top: 126px;
  padding-bottom: 92px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 15%;
  left: -18%;
  z-index: -1;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 105, 255, 0.15), transparent 65%);
  filter: blur(10px);
}

.eyebrow,
.section-index {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.eyebrow {
  margin-bottom: 22px;
  font-size: clamp(15px, 1.15vw, 17px);
  letter-spacing: .12em;
}

.eyebrow span {
  width: 10px;
  height: 10px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(23, 105, 255, 0.11);
  animation: pulse 2.2s ease-in-out infinite;
}

.hero-im {
  position: relative;
  display: inline-flex;
  width: max-content;
  align-items: center;
  justify-content: center;
  margin: -4px 0 13px 10px;
  padding: 10px 17px 10px 20px;
  color: white;
  background: var(--blue);
  border-radius: 8px 12px 9px 11px;
  box-shadow: 0 9px 22px rgba(23,105,255,.2);
  font-family: var(--font);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 850;
  letter-spacing: .16em;
  line-height: 1;
  transform: rotate(-3deg);
}

.hero-im::after {
  content: "";
  position: absolute;
  right: -9px;
  bottom: -9px;
  width: 15px;
  height: 15px;
  background: var(--mint);
  border: 3px solid var(--paper);
  border-radius: 50%;
}

.hero-name {
  max-width: 780px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(88px, 9.3vw, 136px);
  font-weight: 760;
  letter-spacing: -0.09em;
  line-height: 0.88;
}

.name-dot {
  color: var(--blue);
}

.hero-name-en {
  margin: 16px 0 27px;
  color: #7185a5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .22em;
}

.hero-identity {
  display: block;
  margin-bottom: 25px;
}

.hero-identity-name {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  column-gap: 18px;
}

.hero-identity .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 19px;
}

.hero-identity .hero-im {
  grid-column: 1;
  grid-row: 2;
  justify-self: end;
  margin: 0;
}

.hero-identity .hero-name {
  grid-column: 2;
  grid-row: 2;
  max-width: none;
  font-size: clamp(108px, 10vw, 150px);
  letter-spacing: -.055em;
  white-space: nowrap;
}

.hero-identity .hero-name-en {
  grid-column: 2;
  grid-row: 3;
  margin: 12px 0 0;
  padding-top: 10px;
  text-align: right;
  border-top: 1px solid rgba(23,105,255,.16);
}

.hero-statement {
  max-width: 650px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 3.25vw, 46px);
  font-weight: 700;
  letter-spacing: -.06em;
  line-height: 1.17;
}

.hero-statement span {
  position: relative;
  display: inline-block;
  color: var(--blue);
  padding: 0 .04em;
}

.hero-statement span::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -.06em;
  left: 0;
  height: .12em;
  background: var(--blue);
  border-radius: 999px;
  transform: rotate(-1deg);
}

.hero-role {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 23px 0 16px;
  color: var(--blue);
  font-size: clamp(17px, 1.65vw, 22px);
  font-weight: 760;
  letter-spacing: -0.02em;
}

.hero-role i {
  color: #9db9e8;
  font-style: normal;
  font-weight: 400;
}

.hero-intro {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 25px 0 30px;
}

.hero-tags span,
.evidence-tags span,
.honors span {
  padding: 9px 13px;
  border: 1px solid rgba(23, 105, 255, 0.14);
  color: #315681;
  background: rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 21px;
  border: 0;
  border-radius: 15px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 30px rgba(23, 105, 255, 0.24);
}

.button-primary:hover {
  box-shadow: 0 16px 36px rgba(23, 105, 255, 0.32);
}

.button-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.hero-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  color: #75859e;
  font-size: 11px;
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  background: #21c484;
  border-radius: 50%;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid #21c484;
  border-radius: 50%;
  animation: ping 2s infinite;
}

.hero-visual {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.portrait-frame {
  position: relative;
  z-index: 2;
  width: min(100%, 410px);
  aspect-ratio: 0.83;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 190px 190px 36px 36px;
  background: linear-gradient(145deg, #d6e7ff, #eef7ff);
  box-shadow: 0 35px 80px rgba(24, 78, 161, 0.23), inset 0 0 0 7px rgba(255, 255, 255, 0.38);
  transform: rotate(1.2deg);
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 8px solid rgba(255, 255, 255, 0.22);
  border-radius: inherit;
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 31%;
  filter: saturate(0.9) contrast(1.02);
  transform: scale(1.14);
  transform-origin: 35% 42%;
  transition: transform .65s cubic-bezier(.2,.8,.2,1), filter .4s ease;
}

.portrait-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(255,255,255,.38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.38) 1px, transparent 1px);
  background-size: 46px 46px;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.high-five-hit {
  position: absolute;
  top: 25%;
  left: 0;
  z-index: 8;
  width: 51%;
  height: 43%;
  padding: 0;
  color: #fff;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.high-five-hit span {
  position: absolute;
  bottom: 7px;
  left: 10px;
  padding: 10px 13px;
  color: var(--ink);
  border: 2px solid rgba(189,244,227,.95);
  background: rgba(255,255,255,.92);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .03em;
  box-shadow: 0 10px 28px rgba(5,24,58,.28), 0 0 0 5px rgba(189,244,227,.16);
  transition: background .25s ease, transform .25s ease;
}

.high-five-hit i {
  position: absolute;
  right: 4px;
  bottom: 11px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  font-size: 13px;
  font-style: normal;
  box-shadow: 0 9px 25px rgba(5,24,58,.24), 0 0 0 7px rgba(23,105,255,.14);
  transition: transform .25s ease;
  animation: click-cue 1.7s ease-in-out infinite;
}

.high-five-hit:hover span,
.high-five-hit:focus-visible span {
  color: var(--blue);
  background: #fff;
  transform: translateY(-3px);
}

.high-five-hit:hover i,
.high-five-hit:focus-visible i {
  animation: none;
  transform: translate(3px,-3px) scale(1.08);
}

.five-sparks {
  position: absolute;
  top: 43%;
  left: 24%;
  z-index: 7;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.five-sparks i {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
  opacity: 0;
}

.hero-visual.celebrate .five-sparks i:nth-child(1) { animation: spark-one .7s ease-out; }
.hero-visual.celebrate .five-sparks i:nth-child(2) { animation: spark-two .75s ease-out .04s; }
.hero-visual.celebrate .five-sparks i:nth-child(3) { animation: spark-three .7s ease-out .07s; }
.hero-visual.celebrate .five-sparks i:nth-child(4) { animation: spark-four .8s ease-out .02s; }
.hero-visual.celebrate .five-sparks i:nth-child(5) { animation: spark-five .7s ease-out .1s; }

.hero-visual.celebrate .portrait-frame img {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.17) rotate(-.6deg);
}

.hero-visual.celebrate .portrait-frame::after {
  content: "";
  position: absolute;
  top: 43%;
  left: 24%;
  z-index: 6;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(223,255,156,.95);
  border-radius: 50%;
  pointer-events: none;
  animation: high-five-ring .75s ease-out;
}

.five-panel {
  position: absolute;
  top: 48%;
  right: -20px;
  z-index: 10;
  display: grid;
  width: 235px;
  gap: 7px;
  padding: 18px;
  visibility: hidden;
  border: 1px solid rgba(255,255,255,.94);
  background: rgba(250,252,255,.94);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(18,58,124,.24);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translate(16px, 8px) rotate(2deg) scale(.96);
  transition: opacity .3s ease, transform .3s cubic-bezier(.2,.8,.2,1), visibility .3s;
}

.five-panel.open {
  visibility: visible;
  opacity: 1;
  transform: translate(0,0) rotate(0) scale(1);
}

.five-panel > p {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .13em;
}

.five-panel > div {
  display: grid;
  grid-template-columns: 27px minmax(0,1fr);
  gap: 7px;
  align-items: center;
  padding: 7px 8px;
  color: #39577e;
  background: #edf4ff;
  border-radius: 10px;
}

.five-panel > div span {
  color: var(--blue);
  font-size: 8px;
  font-weight: 850;
}

.five-panel > div strong {
  font-size: 10px;
}

.five-panel-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #657693;
  border: 0;
  background: #e8f0fc;
  border-radius: 50%;
  cursor: pointer;
}

.scan-line {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 4;
  height: 2px;
  background: linear-gradient(90deg, transparent, #6ef7d4, #fff, transparent);
  box-shadow: 0 0 18px rgba(117, 255, 218, 0.8);
  animation: scan 4.8s ease-in-out infinite;
}

.portrait-label {
  position: absolute;
  z-index: 5;
  display: grid;
  gap: 3px;
  padding: 11px 13px;
  color: #fff;
  background: rgba(11, 45, 114, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 13px;
  backdrop-filter: blur(12px);
}

.portrait-label span,
.portrait-label small {
  font-size: 8px;
  letter-spacing: 0.13em;
}

.portrait-label strong {
  font-size: 11px;
  letter-spacing: 0.04em;
}

.label-top {
  top: 72px;
  right: 18px;
}

.label-bottom {
  right: 18px;
  bottom: 22px;
}

.orbit {
  position: absolute;
  z-index: 0;
  width: 500px;
  height: 500px;
  border: 1px dashed rgba(23, 105, 255, 0.25);
  border-radius: 50%;
  animation: rotate 28s linear infinite;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  background: var(--blue);
  border: 5px solid #eaf2ff;
  border-radius: 50%;
}

.orbit::before {
  top: 52px;
  right: 70px;
}

.orbit::after {
  bottom: 84px;
  left: 38px;
  background: #20c48b;
}

.orbit-two {
  width: 605px;
  height: 605px;
  border-style: solid;
  opacity: 0.35;
  animation-direction: reverse;
  animation-duration: 38s;
}

.floating-chip {
  position: absolute;
  z-index: 5;
  padding: 10px 14px;
  color: #315681;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 999px;
  box-shadow: 0 16px 32px rgba(48, 96, 166, 0.15);
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 750;
  animation: float 5s ease-in-out infinite;
}

.chip-one {
  top: 12%;
  left: -5%;
}

.chip-two {
  right: -3%;
  bottom: 30%;
  animation-delay: -1.5s;
}

.chip-three {
  bottom: 14%;
  left: -8%;
  animation-delay: -3s;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #7d8ca3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transform: translateX(-50%);
}

.scroll-cue i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: white;
  background: var(--blue);
  border-radius: 50%;
  font-style: normal;
  animation: bounce 2s infinite;
}

.projects-section,
.experience-section,
.capability-section,
.education-section,
.life-section {
  padding-top: 140px;
  padding-bottom: 70px;
}

.section-heading {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: start;
  gap: 30px;
  margin-bottom: 58px;
}

.section-heading h2,
.life-copy h2,
.contact-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(43px, 5.3vw, 72px);
  font-weight: 690;
  letter-spacing: -0.065em;
  line-height: 1.08;
}

.section-heading h2 span,
.life-copy h2 span,
.contact-card h2 span {
  color: var(--blue);
}

.section-heading > div > p,
.life-copy > p:last-child {
  max-width: 600px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.project-card {
  position: relative;
  display: grid;
  min-height: 650px;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 20px;
  padding: 24px;
  margin-bottom: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.project-card::before {
  content: "";
  position: absolute;
  right: -150px;
  bottom: -190px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(188, 244, 226, 0.35);
  filter: blur(60px);
  pointer-events: none;
}

.project-visual,
.project-copy {
  position: relative;
  z-index: 1;
  border-radius: 27px;
}

.project-visual {
  overflow: hidden;
}

.phone-stage {
  min-height: 600px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 10%, rgba(80, 142, 255, 0.92), transparent 35%),
    linear-gradient(145deg, #0b2d72 10%, #165aca 62%, #79d7d1 130%);
}

.window-bar {
  display: flex;
  height: 54px;
  align-items: center;
  gap: 7px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.window-bar > span {
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.46);
  border-radius: 50%;
}

.window-bar p {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.phone-gallery {
  position: relative;
  height: calc(100% - 54px);
  min-height: 546px;
  touch-action: pan-y;
  user-select: none;
}

.phone-gallery:focus-visible {
  outline: 3px solid rgba(223, 255, 156, .9);
  outline-offset: -6px;
}

.phone-gallery.dragging .phone {
  transition-duration: .2s;
}

.phone {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 7px solid rgba(255, 255, 255, 0.9);
  border-radius: 29px;
  background: white;
  box-shadow: 0 26px 50px rgba(4, 21, 58, 0.35);
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1), z-index 0s 0.3s;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.phone-main {
  top: 42px;
  left: 17%;
  z-index: 3;
  width: 37%;
  transform: rotate(-3deg);
}

.phone-back {
  top: 80px;
  right: 15%;
  z-index: 2;
  width: 35%;
  transform: rotate(5deg) scale(0.94);
  opacity: 0.88;
}

.phone-gallery.swapped .phone-main {
  z-index: 2;
  transform: translateX(85%) rotate(4deg) scale(0.94);
  opacity: 0.88;
}

.phone-gallery.swapped .phone-back {
  z-index: 3;
  transform: translateX(-92%) rotate(-3deg) scale(1);
  opacity: 1;
}

.gallery-switch {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 9px 9px 9px 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(5, 25, 65, 0.4);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  font-size: 10px;
}

.gallery-switch b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--blue);
  background: #fff;
  border-radius: 50%;
}

.visual-note {
  position: absolute;
  bottom: 26px;
  left: 24px;
  z-index: 4;
  color: rgba(255,255,255,.7);
  font-size: 9px;
  letter-spacing: .12em;
}

.project-copy {
  padding: 37px 34px 32px;
}

.project-number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 26px;
  color: #fff;
  background: var(--blue);
  border-radius: 16px;
  font-size: 12px;
  font-weight: 800;
  transform: rotate(-5deg);
  box-shadow: 0 12px 25px rgba(23, 105, 255, 0.2);
}

.project-number-green {
  color: #0c553e;
  background: var(--mint);
  box-shadow: none;
}

.project-meta {
  margin: 0 0 9px;
  color: #6f82a1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.project-copy h3 {
  margin: 0;
  font-size: clamp(36px, 4.2vw, 54px);
  font-weight: 720;
  letter-spacing: -0.055em;
}

.project-lead {
  margin: 17px 0 23px;
  color: #526785;
  font-size: 14px;
  line-height: 1.85;
}

.workflow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 25px 0 12px;
}

.workflow-track {
  position: absolute;
  top: 15px;
  right: 9%;
  left: 9%;
  height: 2px;
  overflow: hidden;
  background: #dbe5f5;
}

.workflow-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue);
  transition: width .45s ease;
}

.workflow-node {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #8b99ad;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 9px;
}

.workflow-node b {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 4px solid #fff;
  background: #dbe5f5;
  border-radius: 50%;
  font-size: 8px;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.workflow-node.active {
  color: var(--blue);
}

.workflow-node.active b {
  color: white;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(23,105,255,.12);
}

.workflow-detail {
  min-height: 88px;
  padding: 15px 17px;
  border: 1px solid rgba(23,105,255,.12);
  background: rgba(225, 237, 255, .55);
  border-radius: 16px;
}

.workflow-detail strong {
  color: var(--blue-deep);
  font-size: 12px;
}

.workflow-detail p {
  margin: 6px 0 0;
  color: #657693;
  font-size: 11px;
  line-height: 1.65;
}

.project-points {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 20px 0 24px;
  list-style: none;
}

.project-points li {
  position: relative;
  padding-left: 17px;
  color: #4f627f;
  font-size: 12px;
  line-height: 1.65;
}

.project-points li::before {
  content: "";
  position: absolute;
  top: .62em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
}

.text-button {
  padding: 10px 2px;
  color: var(--blue);
  border: 0;
  border-bottom: 1px solid rgba(23,105,255,.28);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.project-secondary {
  grid-template-columns: 0.84fr 1.16fr;
  min-height: 540px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 25px 0;
}

.metric-row div {
  display: grid;
  gap: 4px;
  padding: 15px 12px;
  background: #edf4ff;
  border-radius: 15px;
}

.metric-row strong {
  color: var(--blue);
  font-size: 22px;
  letter-spacing: -.04em;
}

.metric-row span {
  color: #71829d;
  font-size: 9px;
}

.map-stage {
  min-height: 490px;
  background: #d8ebff;
}

.map-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 35, 88, 0.05), rgba(8, 35, 88, 0.34));
}

.map-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: linear-gradient(145deg, #dceaff, #edf5ff);
  transition: opacity .25s ease, transform .5s ease;
}

.map-stage:hover .map-image {
  transform: none;
}

.map-tabs {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 5;
  display: flex;
  padding: 5px;
  background: rgba(255,255,255,.78);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.map-tabs button {
  padding: 8px 14px;
  color: #657693;
  border: 0;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.map-tabs button.active {
  color: white;
  background: var(--blue);
}

.map-overlay {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 4;
  display: grid;
  gap: 3px;
  padding: 13px 15px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(6,31,76,.55);
  border-radius: 14px;
  backdrop-filter: blur(10px);
}

.map-overlay span {
  font-size: 8px;
  letter-spacing: .13em;
}

.map-overlay strong {
  font-size: 11px;
}

.experience-section {
  width: min(calc(100% - 48px), 1080px);
}

.section-heading.compact {
  grid-template-columns: 170px minmax(0, 1fr);
}

.timeline {
  position: relative;
  display: grid;
  gap: 22px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 76px;
  width: 1px;
  background: linear-gradient(var(--blue), rgba(23,105,255,.08));
}

.timeline-card {
  position: relative;
  display: grid;
  grid-template-columns: 115px 150px minmax(0, 1fr);
  align-items: start;
  min-height: 245px;
  padding: 34px 38px 34px 26px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 28px;
  background: rgba(255,255,255,.67);
  box-shadow: 0 20px 55px rgba(45,91,157,.1);
  backdrop-filter: blur(16px);
  transition: transform .25s ease, box-shadow .25s ease;
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(45,91,157,.15);
}

.timeline-marker {
  position: relative;
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-left: 27px;
  color: white;
  background: var(--blue);
  border: 8px solid #edf4ff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(23,105,255,.2);
}

.timeline-marker span {
  font-size: 9px;
  font-weight: 800;
}

.timeline-date {
  padding-top: 11px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
}

.company-type {
  margin: 0 0 8px;
  color: #8493aa;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.timeline-content h3 {
  margin: 0;
  color: var(--ink);
  font-size: 25px;
  letter-spacing: -.035em;
}

.timeline-content h4 {
  margin: 7px 0 14px;
  color: var(--blue);
  font-size: 12px;
}

.timeline-content > p:not(.company-type) {
  margin: 0;
  color: #5f718c;
  font-size: 12px;
  line-height: 1.8;
}

.timeline-result {
  padding: 12px 15px;
  margin: 15px 0;
  color: #33577f;
  border-left: 3px solid var(--blue);
  background: rgba(219,233,255,.52);
  border-radius: 0 12px 12px 0;
  font-size: 11px;
  line-height: 1.65;
}

.evidence-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.evidence-tags span {
  padding: 7px 10px;
  font-size: 9px;
}

.capability-section {
  width: min(calc(100% - 48px), 1140px);
}

.section-heading.centered {
  display: block;
  text-align: center;
}

.section-heading.centered .section-index {
  justify-content: center;
}

.section-heading.centered > div > p {
  margin-right: auto;
  margin-left: auto;
}

.router {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 20px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.9);
  background: rgba(255,255,255,.6);
  border-radius: 36px;
  box-shadow: var(--shadow);
}

.router-controls {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 12px;
}

.router-button {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 3px 11px;
  padding: 18px;
  color: #6d7d94;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 18px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border .25s ease, transform .25s ease;
}

.router-button:hover {
  transform: translateX(4px);
}

.router-button.active {
  color: var(--ink);
  border-color: rgba(23,105,255,.12);
  background: #fff;
  box-shadow: 0 13px 30px rgba(45,91,157,.09);
}

.router-button > span {
  grid-row: 1 / 3;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
}

.router-button strong {
  font-size: 14px;
}

.router-button small {
  color: #8b99ad;
  font-size: 10px;
}

.router-output {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  padding: 52px 48px;
  color: white;
  background:
    radial-gradient(circle at 90% 0%, rgba(79, 151, 255, .8), transparent 40%),
    linear-gradient(135deg, #082a68, #1769ff 70%, #39aee5);
  border-radius: 27px;
}

.router-output::after {
  content: "";
  position: absolute;
  right: 36px;
  bottom: 32px;
  width: 10px;
  height: 10px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(223,255,156,.16);
}

.router-label {
  position: relative;
  z-index: 2;
  margin: 0 0 18px;
  color: rgba(255,255,255,.68);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .15em;
}

.router-output h3 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -.05em;
}

.router-summary {
  position: relative;
  z-index: 2;
  max-width: 540px;
  margin: 15px 0 24px;
  color: rgba(255,255,255,.74);
  font-size: 12px;
  line-height: 1.8;
}

.router-evidence {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
}

.router-evidence div {
  display: grid;
  grid-template-columns: 50px minmax(0,1fr);
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  border-radius: 12px;
}

.router-evidence small {
  color: var(--lime);
  font-size: 9px;
}

.router-evidence strong {
  font-size: 10px;
  font-weight: 600;
}

.router-output > a {
  position: relative;
  z-index: 2;
  display: inline-flex;
  gap: 13px;
  padding-bottom: 4px;
  margin-top: 20px;
  border-bottom: 1px solid rgba(255,255,255,.4);
  font-size: 10px;
  font-weight: 700;
}

.router-orbit {
  position: absolute;
  top: -150px;
  right: -100px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  animation: rotate 25s linear infinite;
}

.router-orbit::before,
.router-orbit::after {
  content: "";
  position: absolute;
  inset: 20%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: inherit;
}

.router-orbit::after {
  inset: 40%;
}

.router-orbit span {
  position: absolute;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.router-orbit span:nth-child(1) { top: 12%; left: 22%; }
.router-orbit span:nth-child(2) { right: 2%; bottom: 38%; background: var(--lime); }
.router-orbit span:nth-child(3) { bottom: 4%; left: 27%; background: var(--mint); }

.skill-marquee {
  width: 100vw;
  margin-top: 70px;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  border-top: 1px solid rgba(23,105,255,.12);
  border-bottom: 1px solid rgba(23,105,255,.12);
  background: rgba(255,255,255,.4);
}

.skill-marquee > div {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;
  padding: 17px 0;
}

.skill-marquee span {
  color: #44678f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

.skill-marquee i {
  color: var(--blue);
  font-style: normal;
}

.life-copy-mobile {
  display: none;
}

.education-section {
  width: min(calc(100% - 48px), 1080px);
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.education-card:nth-child(1) { order: 2; }
.education-card:nth-child(2) { order: 1; }

.education-card {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255,255,255,.9);
  background: rgba(255,255,255,.7);
  border-radius: 28px;
  box-shadow: 0 20px 55px rgba(45,91,157,.1);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}

.education-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 30px 70px rgba(45,91,157,.17);
}

.education-current {
  color: white;
  background: linear-gradient(145deg, #0a2f72, #1769ff);
}

.education-visual {
  position: relative;
  height: 225px;
  overflow: hidden;
  background: #dbe8f8;
}

.education-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,31,74,.02) 35%, rgba(8,31,74,.5));
  pointer-events: none;
}

.campus-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}

.education-current .campus-photo {
  object-position: center 46%;
}

.education-card:not(.education-current) .campus-photo {
  object-position: center 48%;
}

.education-card:hover .campus-photo {
  transform: scale(1.04);
}

.education-logo {
  position: absolute;
  right: 22px;
  bottom: 17px;
  z-index: 3;
  width: 78px;
  height: 78px;
  padding: 7px;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,.92);
  background: rgba(255,255,255,.94);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(8,31,74,.25);
}

.education-body {
  position: relative;
  min-height: 275px;
  padding: 30px 35px 47px;
}

.education-date {
  margin: 0 0 24px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.education-current .education-date {
  color: var(--mint);
}

.education-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  padding: 8px 12px;
  color: var(--blue-deep);
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.86);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  backdrop-filter: blur(10px);
}

.education-current .education-badge {
  color: var(--blue-deep);
  border-color: rgba(255,255,255,.7);
  background: rgba(189,244,227,.92);
}

.education-card h3 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 27px;
  letter-spacing: -.04em;
}

.education-card h4 {
  position: relative;
  z-index: 2;
  margin: 8px 0 17px;
  color: var(--blue);
  font-size: 12px;
}

.education-current h4 {
  color: var(--mint);
}

.education-body > p:not(.education-date) {
  position: relative;
  z-index: 2;
  max-width: 450px;
  margin: 0;
  color: #536580;
  font-size: 13px;
  font-weight: 520;
  line-height: 1.7;
}

.education-current .education-body > p:not(.education-date) {
  color: rgba(255,255,255,.84);
}

.education-line {
  position: absolute;
  right: 35px;
  bottom: 27px;
  left: 35px;
  height: 3px;
  overflow: hidden;
  background: rgba(23,105,255,.1);
  border-radius: 999px;
}

.education-current .education-line {
  background: rgba(255,255,255,.12);
}

.education-line span {
  display: block;
  width: var(--score);
  height: 100%;
  background: var(--blue);
}

.education-current .education-line span {
  background: var(--mint);
}

.honors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
  margin-top: 31px;
}

.honors span {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  color: #344f73;
  border: 2px solid rgba(255,255,255,.88);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(45,91,157,.11);
  font-size: 12px;
  font-weight: 760;
}

.honors span::before {
  content: "✦";
  color: rgba(23,68,123,.55);
  font-size: 10px;
}

.honors span:nth-child(1) { background: #ffdce8; }
.honors span:nth-child(2) { background: #e5ddff; }
.honors span:nth-child(3) { background: #d8f6e9; }
.honors span:nth-child(4) { background: #fff0bb; }
.honors span:nth-child(5) { background: #dcecff; }

.honors span:hover {
  transform: translateY(-3px) rotate(-1deg);
}

.life-section {
  display: grid;
  width: min(calc(100% - 48px), 1100px);
  grid-template-columns: .72fr 1.28fr;
  align-items: center;
  gap: 55px;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.interest-card {
  position: relative;
  min-height: 355px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.9);
  background: rgba(255,255,255,.68);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(45,91,157,.1);
  outline: none;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), background .35s ease;
}

.interest-card:hover,
.interest-card:focus-visible {
  transform: translateY(-12px) rotate(-1deg);
}

.interest-card:nth-child(2):hover,
.interest-card:nth-child(2):focus-visible {
  transform: translateY(-12px) rotate(1deg);
}

.interest-icon {
  display: grid;
  height: 205px;
  place-items: center;
  overflow: hidden;
  color: var(--blue);
  background: #edf4ff;
  border-radius: 18px;
}

.interest-card > p {
  margin: 17px 0 5px;
  color: #8a98ad;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}

.interest-card h3 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -.04em;
}

.interest-hidden {
  display: block;
  margin-top: 12px;
  color: #536580;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.65;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}

.interest-card:hover .interest-hidden,
.interest-card:focus-visible .interest-hidden {
  opacity: 1;
  transform: translateY(0);
}

.music-card:hover {
  background: #f5f1ff;
}

.note {
  position: absolute;
  color: var(--blue);
  font-size: 33px;
  font-weight: 900;
  transition: transform .4s ease;
}

.note-one { margin: -70px 0 0 -70px; }
.note-two { margin: -35px 0 0 85px; color: #906fff; }
.music-card:hover .note-one { transform: translateY(-18px) rotate(-12deg); }
.music-card:hover .note-two { transform: translateY(-28px) rotate(12deg); }

.sound-wave {
  display: flex;
  height: 65px;
  align-items: center;
  gap: 6px;
}

.sound-wave i {
  width: 7px;
  height: 25%;
  background: var(--blue);
  border-radius: 999px;
}

.music-card:hover .sound-wave i {
  animation: wave .8s ease-in-out infinite alternate;
}

.sound-wave i:nth-child(2) { height: 55%; animation-delay: -.15s !important; }
.sound-wave i:nth-child(3) { height: 90%; animation-delay: -.3s !important; }
.sound-wave i:nth-child(4) { height: 60%; animation-delay: -.45s !important; }
.sound-wave i:nth-child(5) { height: 30%; animation-delay: -.6s !important; }

.anime-frame {
  position: relative;
  display: grid;
  width: 125px;
  height: 150px;
  place-items: center;
  overflow: hidden;
  border: 4px solid var(--ink);
  background: white;
  box-shadow: 10px 10px 0 var(--blue-soft);
  transform: rotate(-3deg);
}

.anime-frame::before,
.anime-frame::after {
  content: "";
  position: absolute;
  width: 130%;
  height: 2px;
  background: var(--ink);
  transform: rotate(-35deg);
}

.anime-frame::after {
  transform: rotate(30deg);
}

.anime-frame span {
  z-index: 2;
  width: 58px;
  height: 58px;
  background: var(--mint);
  border: 3px solid var(--ink);
  border-radius: 50%;
  transition: transform .4s ease;
}

.anime-frame b {
  position: absolute;
  bottom: 8px;
  z-index: 3;
  color: white;
  padding: 4px 8px;
  background: var(--blue);
  font-size: 8px;
  letter-spacing: .1em;
}

.anime-card:hover .anime-frame span {
  transform: scale(1.5);
}

.gamepad {
  position: relative;
  width: 145px;
  height: 94px;
  border: 4px solid var(--ink);
  background: white;
  border-radius: 44px 44px 35px 35px;
  box-shadow: 0 12px 0 var(--blue-soft);
  transition: transform .25s ease;
}

.gamepad::before,
.gamepad::after {
  content: "";
  position: absolute;
  bottom: -18px;
  width: 48px;
  height: 50px;
  border: 4px solid var(--ink);
  border-top: 0;
  background: white;
  border-radius: 0 0 28px 28px;
}

.gamepad::before { left: -1px; transform: rotate(13deg); }
.gamepad::after { right: -1px; transform: rotate(-13deg); }

.gamepad span {
  position: absolute;
  top: 28px;
  left: 25px;
  font-size: 28px;
  font-weight: 900;
}

.gamepad i {
  position: absolute;
  top: 35px;
  right: 33px;
  width: 13px;
  height: 13px;
  background: var(--blue);
  border-radius: 50%;
}

.gamepad i:last-child {
  top: 22px;
  right: 19px;
  background: #24c489;
}

.game-card:hover .gamepad {
  animation: game 1s ease-in-out infinite alternate;
}

.contact-section {
  width: min(calc(100% - 48px), 1240px);
  padding: 130px 0 30px;
}

.contact-card {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  padding: 78px;
  color: white;
  background:
    radial-gradient(circle at 85% 15%, rgba(65, 150, 255, .72), transparent 29%),
    radial-gradient(circle at 20% 100%, rgba(71, 209, 181, .2), transparent 30%),
    linear-gradient(140deg, #061b42, #0a2f72 58%, #1351a6);
  border-radius: 42px;
  box-shadow: 0 30px 80px rgba(10,47,114,.25);
}

.contact-card::before,
.contact-card::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
}

.contact-card::before {
  top: -170px;
  right: -80px;
  width: 520px;
  height: 520px;
  box-shadow: inset 0 0 0 70px rgba(255,255,255,.018), inset 0 0 0 140px rgba(255,255,255,.018);
}

.contact-card::after {
  bottom: -180px;
  left: 35%;
  width: 420px;
  height: 420px;
}

.contact-card .section-index {
  color: var(--mint);
}

.contact-card h2 {
  position: relative;
  z-index: 2;
  max-width: 850px;
  color: white;
  font-size: clamp(54px, 7vw, 92px);
}

.contact-card h2 span {
  color: var(--mint);
}

.contact-card h2 .mobile-keep {
  color: inherit;
}

.contact-card h2 .mobile-line-break {
  display: none;
  color: inherit;
}

.contact-card h2 .mobile-keep .accent {
  color: var(--mint);
}

.contact-card > p:not(.section-index) {
  position: relative;
  z-index: 2;
  max-width: 660px;
  margin: 26px 0 32px;
  color: rgba(255,255,255,.63);
  font-size: 13px;
  line-height: 1.85;
}

.contact-actions {
  position: relative;
  z-index: 2;
}

.button-light {
  color: var(--blue-deep);
  background: var(--mint);
}

.button-dark {
  color: white;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
}

.copy-wechat.copied {
  color: #0b563e;
  border-color: transparent;
  background: var(--mint);
  box-shadow: 0 10px 28px rgba(49, 199, 151, .2);
}

.contact-footer {
  position: absolute;
  right: 70px;
  bottom: 50px;
  left: 78px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,.45);
  font-size: 9px;
  letter-spacing: .08em;
}

.contact-footer a {
  color: rgba(255,255,255,.75);
}

.modal {
  width: min(calc(100% - 32px), 700px);
  padding: 30px;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.9);
  background: rgba(250,252,255,.95);
  border-radius: 28px;
  box-shadow: 0 35px 100px rgba(3,25,66,.35);
  backdrop-filter: blur(24px);
}

.modal::backdrop {
  background: rgba(4, 21, 54, 0.55);
  backdrop-filter: blur(10px);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--line);
  background: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
}

.qr-modal[open] {
  display: grid;
  grid-template-columns: 1fr 280px;
  align-items: center;
  gap: 30px;
}

.qr-modal img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.modal-copy > p,
.process-copy > p:first-child {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}

.modal-copy h2,
.process-copy h2 {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -.04em;
}

.modal-copy span,
.process-copy > p:last-child {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.process-modal {
  width: min(calc(100% - 32px), 920px);
}

.process-modal[open] {
  display: grid;
  gap: 22px;
}

.process-modal img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #eaf1fb;
  border-radius: 17px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 999;
  padding: 12px 17px;
  color: white;
  background: var(--ink);
  border-radius: 999px;
  box-shadow: 0 15px 40px rgba(5,27,70,.25);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity .25s ease, transform .25s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.2,.8,.2,1);
}

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

@keyframes pulse {
  0%, 100% { transform: scale(.88); opacity: .7; }
  50% { transform: scale(1.1); opacity: 1; }
}

@keyframes ping {
  0% { transform: scale(.6); opacity: .9; }
  75%, 100% { transform: scale(1.35); opacity: 0; }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-13px) rotate(1deg); }
}

@keyframes scan {
  0%, 100% { top: 8%; opacity: .1; }
  50% { top: 90%; opacity: .9; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

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

@media (max-width: 580px) {
  .skill-marquee > div { gap: 11px 14px; padding: 15px 14px; }
  .skill-marquee span { font-size: 9px; }
  .skill-marquee i { font-size: 8px; }
}

@keyframes wave {
  from { transform: scaleY(.6); }
  to { transform: scaleY(1.3); }
}

@keyframes game {
  from { transform: translateY(0) rotate(-2deg); }
  to { transform: translateY(-8px) rotate(2deg); }
}

@keyframes click-cue {
  0%, 100% { transform: scale(1); box-shadow: 0 9px 25px rgba(5,24,58,.24), 0 0 0 7px rgba(23,105,255,.14); }
  50% { transform: scale(1.12); box-shadow: 0 12px 30px rgba(5,24,58,.3), 0 0 0 12px rgba(23,105,255,.05); }
}

@keyframes high-five-ring {
  0% { opacity: 1; transform: translate(-50%,-50%) scale(.4); }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(6); }
}

@keyframes spark-one {
  0% { opacity: 1; transform: translate(0,0) scale(.4); }
  100% { opacity: 0; transform: translate(-70px,-85px) scale(1.4); }
}

@keyframes spark-two {
  0% { opacity: 1; transform: translate(0,0) scale(.4); }
  100% { opacity: 0; transform: translate(64px,-78px) scale(1.1); }
}

@keyframes spark-three {
  0% { opacity: 1; transform: translate(0,0) scale(.4); }
  100% { opacity: 0; transform: translate(88px,18px) scale(1.4); }
}

@keyframes spark-four {
  0% { opacity: 1; transform: translate(0,0) scale(.4); }
  100% { opacity: 0; transform: translate(-82px,45px) scale(1); }
}

@keyframes spark-five {
  0% { opacity: 1; transform: translate(0,0) scale(.4); }
  100% { opacity: 0; transform: translate(25px,88px) scale(1.3); }
}

/* Desktop floating navigation rail */
@media (min-width: 1081px) {
  html { scroll-padding-top: 28px; }

  .site-header {
    top: 50%;
    right: 20px;
    left: auto;
    width: 116px;
    padding: 0;
    transform: translateY(-50%);
  }

  .nav-shell {
    width: 116px;
    min-height: 0;
    flex-direction: column;
    gap: 10px;
    padding: 11px 9px;
    margin: 0;
    border-radius: 28px;
  }

  .brand { justify-content: center; }
  .brand-copy { display: none; }
  .brand-mark { width: 46px; height: 46px; border-radius: 16px; }

  .nav-links {
    display: grid;
    width: 100%;
    flex: 0 0 auto;
    gap: 3px;
  }

  .nav-links a {
    width: 100%;
    padding: 9px 4px;
    text-align: center;
    border-radius: 12px;
    font-size: 11px;
    white-space: nowrap;
  }

  .nav-resume {
    width: 100%;
    padding: 10px 5px;
    text-align: center;
    border-radius: 13px;
    font-size: 10px;
  }

  .section {
    width: min(calc(100% - 180px), var(--max));
    margin-right: 0;
    margin-left: max(24px, calc((100vw - var(--max)) / 2 - 48px));
  }

  .hero {
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr);
    gap: 52px;
    padding-top: 72px;
  }
}

@media (max-width: 1080px) {
  .nav-links a { padding: 10px 9px; font-size: 11px; }
  .hero { gap: 35px; }
  .hero-visual { min-height: 550px; }
  .portrait-frame { width: 340px; }
  .orbit { width: 430px; height: 430px; }
  .orbit-two { width: 520px; height: 520px; }
  .project-card { grid-template-columns: 1fr; }
  .project-primary .project-copy { grid-row: 1; }
  .project-secondary { grid-template-columns: 1fr; }
  .phone-stage, .map-stage { min-height: 560px; }
  .life-section { grid-template-columns: 1fr; }
  .life-copy { max-width: 650px; }
}

@media (max-width: 1080px) {
  html { scroll-padding-top: 90px; }
  .site-header { top: 0; right: 0; left: 0; width: auto; padding: 10px 12px 0; transform: none; }
  .nav-shell { width: min(100%, 1320px); min-height: 58px; flex-direction: row; gap: 24px; padding: 9px 12px 9px 14px; margin: 0 auto; border-radius: 18px; }
  .brand-copy { display: none; }
  .brand-mark { width: 39px; height: 39px; }
  .nav-toggle {
    position: relative;
    display: grid;
    width: 40px;
    height: 40px;
    place-content: center;
    gap: 6px;
    margin-left: auto;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .nav-toggle-icon { display: grid; place-items: center; gap: 6px; }
  .nav-toggle-icon i { width: 20px; height: 2px; background: var(--ink); transition: transform .25s ease; }
  .nav-toggle-label { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon i:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon i:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-links {
    position: absolute;
    top: 66px;
    right: 0;
    left: 0;
    display: grid;
    gap: 4px;
    padding: 14px;
    visibility: hidden;
    border: 1px solid rgba(255,255,255,.9);
    background: rgba(250,252,255,.97);
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(24,60,115,.16);
    opacity: 0;
    transform: translateY(-8px);
    transition: none;
  }
  .nav-shell .nav-links.open { visibility: visible !important; opacity: 1 !important; transform: translateY(0); }
  .nav-links a { padding: 12px 14px; }
  .nav-resume { width: auto; padding: 10px 13px; text-align: left; font-size: 12px; }
  .section { width: min(calc(100% - 28px), var(--max)); margin: 0 auto; }
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 120px;
  }
  .hero-name { font-size: clamp(82px, 21vw, 118px); }
  .hero-statement { font-size: clamp(31px, 8vw, 43px); }
  .hero-visual { min-height: 560px; }
  .portrait-frame { width: min(82vw, 380px); }
  .five-panel { right: 1%; width: 220px; }
  .scroll-cue { display: none; }
  .projects-section, .experience-section, .capability-section, .education-section, .life-section { padding-top: 100px; }
  .section-heading, .section-heading.compact { grid-template-columns: 1fr; gap: 4px; }
  .section-heading h2, .life-copy h2 { font-size: clamp(41px, 10vw, 62px); }
  .project-card { padding: 13px; border-radius: 28px; }
  .project-copy { padding: 28px 20px; }
  .phone-stage, .map-stage { min-height: 500px; }
  .timeline::before { left: 37px; }
  .timeline-card { grid-template-columns: 65px minmax(0,1fr); gap: 0; padding: 26px 22px 26px 10px; }
  .timeline-marker { margin-left: 4px; }
  .timeline-date { grid-column: 2; padding-top: 10px; }
  .timeline-content { grid-column: 2; margin-top: 18px; }
  .router { grid-template-columns: 1fr; }
  .router-output { min-height: 410px; }
  .education-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 55px 32px; min-height: 610px; }
  .contact-footer { right: 32px; bottom: 31px; left: 32px; }
}

@media (max-width: 580px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  main .section {
    scroll-margin-top: 88px;
  }

  .nav-shell {
    gap: 10px;
  }

  .brand,
  .nav-toggle,
  .nav-resume {
    min-width: 44px;
    min-height: 44px;
  }

  .brand { justify-content: center; }
  .brand-mark { width: 42px; height: 42px; }
  .nav-toggle {
    display: inline-flex;
    width: 70px;
    height: 44px;
    padding: 0 9px;
    align-items: center;
    justify-content: center;
    gap: 7px;
  }
  .nav-toggle-icon { gap: 5px; }
  .nav-toggle-icon i { width: 17px; }
  .nav-toggle-label {
    display: inline;
    color: var(--ink);
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
  }
  .nav-resume {
    position: relative;
    display: inline-flex;
    min-width: 82px;
    padding: 0 11px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
  }
  .nav-resume::before {
    content: none;
  }
  .nav-resume span {
    position: static;
    font-size: 11px;
  }
  .nav-links { max-height: calc(100svh - 84px); overflow-y: auto; overscroll-behavior: contain; }
  .nav-links a { min-height: 44px; display: flex; align-items: center; }
  .hero { padding-bottom: 40px; }
  .hero-identity-name { grid-template-columns: 1fr; }
  .hero-identity .eyebrow { grid-column: 1; grid-row: 1; }
  .hero-identity .hero-im { grid-column: 1; grid-row: 2; justify-self: start; margin-left: 7px; }
  .hero-identity .hero-name { grid-column: 1; grid-row: 3; font-size: clamp(76px, 22vw, 96px); line-height: .9; }
  .hero-identity .hero-name-en { grid-column: 1; grid-row: 4; text-align: left; }
  .hero-im { margin: -3px 0 12px 7px; padding: 8px 14px 8px 17px; font-size: 18px; }
  .hero-name-en { margin: 13px 0 24px; font-size: 8px; }
  .hero-statement { font-size: clamp(29px, 8.7vw, 37px); line-height: 1.2; text-wrap: balance; }
  .hero-statement br,
  .section-heading h2 br,
  .life-copy h2 br { display: none; }
  .hero-role { font-size: 18px; gap: 7px; }
  .hero-intro { font-size: 14px; }
  .hero-actions .button { flex: 1 1 140px; }
  .hero-status { align-items: flex-start; }
  .hero-visual { min-height: 480px; }
  .portrait-frame { width: min(80vw, 330px); }
  .portrait-frame .label-top { top: 88px; right: auto; left: 10px; }
  .high-five-hit span { left: 8px; }
  .five-panel { top: 49%; right: 0; width: 205px; padding: 15px; }
  .orbit { width: 355px; height: 355px; }
  .orbit-two { width: 420px; height: 420px; }
  .chip-one { left: 0; }
  .chip-two { right: -5px; }
  .chip-three { left: 4px; }
  .section-heading { margin-bottom: 35px; }
  .section-heading h2,
  .life-copy h2 {
    font-size: clamp(35px, 10.1vw, 39px);
    line-height: 1.13;
    text-wrap: balance;
  }
  .project-card { min-height: auto; }
  .project-copy h3 { font-size: 37px; }
  .phone-stage { min-height: 420px; }
  .phone-gallery { min-height: 366px; }
  .gallery-switch { min-height: 46px; padding: 8px 8px 8px 15px; font-size: 11px; }
  .gallery-switch b { width: 30px; height: 30px; }
  .phone-main { width: 46%; left: 10%; top: 32px; }
  .phone-back { width: 43%; right: 8%; top: 60px; }
  .phone-gallery.swapped .phone-main { transform: translateX(76%) rotate(4deg) scale(.94); }
  .phone-gallery.swapped .phone-back { transform: translateX(-78%) rotate(-3deg); }
  .workflow { gap: 0; }
  .project-actions .button { width: 100%; }
  .text-button { display: inline-flex; min-height: 44px; align-items: center; padding: 10px 2px; }
  .project-secondary .project-copy { padding-top: 26px; }
  .metric-row strong { font-size: 18px; }
  .map-stage { min-height: 360px; }
  .map-tabs button { min-width: 52px; min-height: 44px; padding: 10px 14px; }
  .timeline-card { grid-template-columns: 55px minmax(0,1fr); padding-right: 16px; }
  .timeline::before { left: 32px; }
  .timeline-marker { width: 42px; height: 42px; border-width: 7px; }
  .timeline-content h3 { font-size: 21px; }
  .router { padding: 10px; border-radius: 27px; }
  .router-controls { padding: 5px; }
  .router-button { padding: 15px 12px; }
  .router-output { padding: 38px 25px; border-radius: 21px; }
  .router-evidence div { grid-template-columns: 42px minmax(0,1fr); }
  .router-output > a { display: inline-flex; min-height: 44px; align-items: center; }
  .skill-marquee > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 4px;
    padding: 16px 10px;
  }
  .skill-marquee span {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 9px;
    letter-spacing: .04em;
    white-space: nowrap;
  }
  .skill-marquee span::before {
    content: "✦";
    flex: 0 0 auto;
    color: var(--blue);
    font-size: 8px;
  }
  .skill-marquee i { display: none; }
  .education-card { min-height: 0; padding: 0; }
  .education-card:nth-child(1) { order: 1; }
  .education-card:nth-child(2) { order: 2; }
  .education-visual { height: 190px; }
  .education-body { min-height: 275px; padding: 25px 23px 45px; }
  .education-body > p:not(.education-date) {
    max-width: none;
    font-size: 10.5px;
    line-height: 1.5;
    letter-spacing: -.035em;
    white-space: nowrap;
  }
  .education-badge { top: 14px; right: auto; left: 14px; }
  .education-logo { right: 15px; bottom: 14px; width: 66px; height: 66px; padding: 6px; }
  .education-card h3 { font-size: 24px; }
  .education-line { right: 23px; bottom: 24px; left: 23px; }
  .honors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .honors span { justify-content: center; min-height: 52px; padding: 11px 10px; text-align: center; font-size: 10px; }
  .honors span:last-child { grid-column: 1 / -1; }
  .life-copy-desktop { display: none; }
  .life-copy-mobile { display: inline; }
  .interest-grid { grid-template-columns: 1fr; }
  .interest-card { min-height: 320px; transform: none; }
  .interest-hidden { opacity: 1; transform: none; }
  .contact-section { padding-top: 95px; }
  .contact-card { min-height: 660px; padding: 48px 23px; border-radius: 29px; }
  .contact-card h2 { font-size: clamp(40px, 11.3vw, 44px); line-height: 1.13; text-wrap: balance; }
  .contact-card h2 .mobile-line-break { display: inline; }
  .contact-card h2 .mobile-line-break br { display: block; }
  .contact-card h2 .mobile-keep { white-space: nowrap; }
  .contact-actions { display: grid; }
  .contact-footer { right: 23px; left: 23px; flex-direction: column; gap: 8px; }
  .contact-footer a { display: inline-flex; min-height: 44px; align-items: center; }
  .qr-modal[open] { grid-template-columns: 1fr; padding: 24px; }
  .qr-modal img { width: min(100%, 310px); margin: 0 auto; }
  .modal { max-height: calc(100svh - 24px); overflow: auto; }
  .modal-close { width: 44px; height: 44px; }
  .process-modal { padding: 54px 20px 20px; }
}

@media (hover: none), (pointer: coarse) {
  .interest-hidden {
    opacity: 1;
    transform: none;
  }

  .interest-card:hover,
  .interest-card:focus-visible,
  .interest-card:nth-child(2):hover,
  .interest-card:nth-child(2):focus-visible,
  .timeline-card:hover,
  .education-card:hover {
    transform: none;
  }

  .education-card:hover .campus-photo,
  .map-stage:hover .map-image {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
