:root {
  --paper: #f7f8fb;
  --paper-strong: #ffffff;
  --ink: #121417;
  --muted: #5f6673;
  --line: #dce1ea;
  --blue: #2154f4;
  --blue-deep: #1635a8;
  --coral: #ff5a3d;
  --mint: #00a878;
  --gold: #f4ad32;
  --night: #101114;
  --night-soft: #1b1d22;
  --shadow-soft: 0 24px 70px rgba(18, 20, 23, 0.12);
  --shadow-tight: 0 12px 32px rgba(18, 20, 23, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

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

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

::selection {
  background: rgba(33, 84, 244, 0.18);
}

.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    #0b0d12;
  background-size: 64px 64px;
  color: white;
  transition: opacity 0.75s ease, transform 0.75s ease, visibility 0.75s ease;
  overflow: hidden;
}

.intro-splash.is-hidden {
  opacity: 0;
  transform: scale(1.04);
  visibility: hidden;
  pointer-events: none;
}

.intro-splash h1,
.intro-splash p {
  position: relative;
  z-index: 2;
  margin: 0;
  animation: introText 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.intro-splash h1 {
  margin-top: 9rem;
  font-size: 3rem;
  font-weight: 900;
}

.intro-splash p {
  margin-top: 0.4rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
  font-weight: 800;
}

.intro-mark {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 9.5rem;
  height: 9.5rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(33, 84, 244, 0.78), rgba(0, 168, 120, 0.72)),
    #0c1017;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.04), 0 24px 80px rgba(33, 84, 244, 0.35);
  animation: markPulse 1.7s linear both;
}

.intro-mark span {
  font-size: 3.2rem;
  font-weight: 950;
}

.intro-sweep {
  position: absolute;
  left: -45%;
  width: 180%;
  transform: translateX(-80%) skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  filter: blur(18px);
  animation: lightSweep 1.85s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.intro-sweep-wide {
  top: 38%;
  height: 9rem;
}

.intro-sweep-thin {
  top: 51%;
  height: 2.5rem;
  background: linear-gradient(90deg, transparent, rgba(0, 168, 120, 0.72), transparent);
  animation-delay: 0.18s;
}

.site-header {
  position: fixed;
  top: 1rem;
  left: 50%;
  z-index: 80;
  display: flex;
  width: min(1180px, calc(100% - 2rem));
  transform: translateX(-50%);
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(220, 225, 234, 0.84);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-tight);
  backdrop-filter: blur(18px);
  padding: 0.45rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: max-content;
  padding: 0.3rem 0.55rem 0.3rem 0.35rem;
  border: 1px solid rgba(220, 225, 234, 0.95);
  background: #fff;
  font-weight: 900;
}

.brand img {
  width: 2.2rem;
  height: 2.2rem;
  object-fit: cover;
  object-position: center 18%;
}

.site-nav {
  display: flex;
  min-width: 0;
  flex: 1;
  gap: 0.2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a,
.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  gap: 0.45rem;
  border: 1px solid transparent;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-nav a {
  padding: 0.45rem 0.8rem;
  color: #333a45;
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a.is-active {
  border-color: rgba(33, 84, 244, 0.18);
  background: #fff;
  color: var(--blue);
}

.header-action {
  padding: 0.45rem 0.85rem;
  border-color: rgba(33, 84, 244, 0.2);
  background: var(--blue);
  color: #fff;
}

.header-action svg,
.button svg {
  width: 1rem;
  height: 1rem;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(33, 84, 244, 0.08), transparent 34%),
    linear-gradient(300deg, rgba(255, 90, 61, 0.1), transparent 36%),
    var(--paper);
  padding: 7rem max(1.5rem, calc((100vw - 1180px) / 2)) 2rem;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.72;
  background:
    linear-gradient(rgba(18, 20, 23, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 20, 23, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}

.hero-photo-wrap {
  position: absolute;
  right: max(1.5rem, calc((100vw - 1180px) / 2));
  bottom: 0;
  width: 27rem;
  max-width: 38vw;
  opacity: 0.32;
  transform: translateY(0) scale(1);
  transform-origin: bottom right;
  transition: opacity 0.2s ease;
  filter: drop-shadow(0 30px 45px rgba(18, 20, 23, 0.18));
}

.hero-photo-wrap::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, var(--paper));
  pointer-events: none;
  z-index: 1;
}

.hero-photo-wrap img {
  width: 100%;
}

.hero-kicker {
  position: absolute;
  top: 7rem;
  left: max(1.5rem, calc((100vw - 1180px) / 2));
  z-index: 2;
  margin: 0;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 950;
}

.hero-name {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  margin: 0;
  transform: translate(-50%, -50%) scale(1);
  color: var(--ink);
  font-size: 8rem;
  font-weight: 950;
  line-height: 0.92;
  will-change: transform, top, left;
}

.hero-copy {
  position: relative;
  z-index: 4;
  align-self: center;
  width: min(760px, 64%);
  margin-top: 3rem;
  opacity: 0;
  transform: translateY(42px);
  will-change: transform, opacity;
}

.hero-copy h2 {
  margin: 0;
  font-size: 3.2rem;
  line-height: 1.08;
  font-weight: 950;
}

.hero-copy p {
  max-width: 46rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.button {
  min-width: 9.2rem;
  padding: 0.8rem 1rem;
}

.button:hover,
.header-action:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
  box-shadow: 0 16px 36px rgba(33, 84, 244, 0.26);
}

.button.secondary {
  border-color: rgba(18, 20, 23, 0.18);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-top: 1.2rem;
  color: var(--muted);
  font-weight: 700;
}

.hero-contact span {
  width: 1px;
  height: 1rem;
  background: var(--line);
}

.hero-contact a:hover {
  color: var(--blue);
}

.hero-metrics {
  position: absolute;
  right: max(1.5rem, calc((100vw - 1180px) / 2));
  top: 7rem;
  z-index: 4;
  display: grid;
  width: 19rem;
  gap: 0.55rem;
}

.hero-metrics div {
  display: grid;
  grid-template-columns: 5.7rem 1fr;
  align-items: center;
  min-height: 4rem;
  border: 1px solid rgba(220, 225, 234, 0.9);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 26px rgba(18, 20, 23, 0.08);
  padding: 0.65rem 0.8rem;
}

.hero-metrics strong {
  color: var(--blue);
  font-size: 1.35rem;
  font-weight: 950;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.scroll-cue {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 4rem;
  transform: translateX(-50%);
  opacity: 1;
}

.scroll-cue span {
  display: block;
  width: 2px;
  height: 3rem;
  background: linear-gradient(180deg, var(--ink), transparent);
  animation: cuePulse 1.7s ease-in-out infinite;
}

.section {
  padding: 7rem max(1.5rem, calc((100vw - 1180px) / 2));
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 2.2rem;
}

.section-heading p,
.section-label {
  margin: 0 0 0.65rem;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 950;
}

.section-heading h2,
.story-copy h2,
.resume-copy h2 {
  margin: 0;
  font-size: 3rem;
  line-height: 1.12;
  font-weight: 950;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card,
.project-panel,
.timeline-item,
.skill-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-tight);
}

.feature-card {
  min-height: 21rem;
  padding: 1.4rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover,
.project-panel:hover,
.timeline-item:hover {
  transform: translateY(-4px);
  border-color: rgba(33, 84, 244, 0.28);
  box-shadow: var(--shadow-soft);
}

.feature-card.dark {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--night);
  color: #fff;
}

.feature-card.dark p {
  color: rgba(255, 255, 255, 0.72);
}

.feature-icon {
  display: grid;
  width: 3.7rem;
  height: 3.7rem;
  place-items: center;
  border: 1px solid rgba(33, 84, 244, 0.18);
  background: linear-gradient(135deg, rgba(33, 84, 244, 0.1), rgba(0, 168, 120, 0.08));
  color: var(--blue);
}

.feature-card.dark .feature-icon {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.feature-icon svg {
  width: 1.65rem;
  height: 1.65rem;
}

.feature-card h3,
.project-panel h3,
.skill-block h3 {
  margin: 1.35rem 0 0.6rem;
  font-size: 1.35rem;
  line-height: 1.22;
}

.feature-card p,
.project-panel p,
.skill-block p {
  margin: 0;
  color: var(--muted);
}

.section-dark {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    var(--night);
  background-size: 56px 56px;
  color: white;
  padding: 8rem 0;
}

.story-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.75fr);
  gap: 4rem;
  align-items: center;
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
}

.story-copy p:not(.section-label) {
  max-width: 48rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
}

.story-visual {
  display: grid;
  gap: 1.4rem;
}

.story-visual img {
  width: min(26rem, 100%);
  background: white;
  padding: 1.1rem;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.story-note {
  display: grid;
  gap: 0.45rem;
  border-left: 3px solid var(--coral);
  padding-left: 1rem;
}

.story-note strong {
  font-size: 1.2rem;
}

.story-note span {
  color: rgba(255, 255, 255, 0.72);
}

.marquee {
  display: grid;
  gap: 0.9rem;
  width: 100%;
  margin-top: 1.5rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-row {
  display: flex;
  width: max-content;
  gap: 0.9rem;
  animation: marqueeLeft 34s linear infinite;
}

.marquee-row.right {
  animation-name: marqueeRight;
  animation-duration: 39s;
}

.marquee-row span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.7rem 1rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  white-space: nowrap;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.35rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.timeline-item time {
  color: var(--blue);
  font-weight: 950;
}

.timeline-item h3 {
  margin: 0;
  font-size: 1.28rem;
}

.timeline-item p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.timeline-item ul,
.project-panel ul {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
  color: #29303a;
}

.timeline-item li + li,
.project-panel li + li {
  margin-top: 0.45rem;
}

.projects {
  background: #fff;
}

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

.project-panel {
  min-height: 29rem;
  padding: 1.35rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-panel-featured {
  grid-column: 1 / -1;
}

.project-panel-featured ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1.5rem;
  row-gap: 0.7rem;
}

.project-panel-featured li + li {
  margin-top: 0;
}

@media (max-width: 980px) {
  .project-panel-featured li + li {
    margin-top: 0.55rem;
  }
}

.project-panel span {
  color: var(--coral);
  font-weight: 950;
}

.skill-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.skill-block {
  padding: 1.35rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.tag-list span {
  border: 1px solid rgba(33, 84, 244, 0.14);
  background: rgba(33, 84, 244, 0.06);
  color: #243148;
  padding: 0.5rem 0.7rem;
  font-size: 0.92rem;
  font-weight: 800;
}

.tag-list span:nth-child(3n) {
  border-color: rgba(0, 168, 120, 0.18);
  background: rgba(0, 168, 120, 0.07);
}

.tag-list span:nth-child(4n) {
  border-color: rgba(255, 90, 61, 0.18);
  background: rgba(255, 90, 61, 0.07);
}

.resume {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(20rem, 0.92fr);
  gap: 3rem;
  align-items: start;
  background: linear-gradient(180deg, #fff, var(--paper));
}

.resume-copy {
  position: sticky;
  top: 6.5rem;
}

.resume-copy p:not(.section-label) {
  color: var(--muted);
}

.resume-preview {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.resume-preview img {
  width: 100%;
  height: auto;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--night);
  color: rgba(255, 255, 255, 0.68);
  padding: 1.4rem max(1.5rem, calc((100vw - 1180px) / 2));
  font-weight: 700;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: rgba(255, 255, 255, 0.92);
}

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

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

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

@keyframes lightSweep {
  0% {
    opacity: 0;
    transform: translateX(-80%) skewX(-22deg);
  }
  18%,
  76% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(88%) skewX(-22deg);
  }
}

@keyframes markPulse {
  0%,
  16%,
  20%,
  58%,
  63% {
    opacity: 0.22;
    filter: none;
  }
  10%,
  22%,
  56%,
  66%,
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 28px rgba(33, 84, 244, 0.5));
  }
}

@keyframes introText {
  0%,
  48% {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes cuePulse {
  0%,
  100% {
    opacity: 0.25;
    transform: scaleY(0.82);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes marqueeLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes marqueeRight {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: stretch;
  }

  .header-action span {
    display: none;
  }

  .hero {
    padding-top: 6.5rem;
  }

  .hero-name {
    font-size: 5.6rem;
  }

  .hero-copy {
    width: min(42rem, 100%);
  }

  .hero-copy h2,
  .section-heading h2,
  .story-copy h2,
  .resume-copy h2 {
    font-size: 2.25rem;
  }

  .hero-photo-wrap {
    right: -2.5rem;
    width: 22rem;
    max-width: 55vw;
  }

  .hero-metrics {
    left: max(1.5rem, calc((100vw - 1180px) / 2));
    right: auto;
    top: auto;
    bottom: 1rem;
    width: min(34rem, calc(100% - 3rem));
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-metrics div {
    grid-template-columns: 1fr;
    min-height: 5.2rem;
  }

  .scroll-cue {
    display: none;
  }

  .feature-grid,
  .project-grid,
  .story-inner,
  .resume,
  .skill-layout {
    grid-template-columns: 1fr;
  }

  .resume-copy {
    position: static;
  }

  .project-panel {
    min-height: auto;
  }

  .project-panel-featured ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    top: 0.5rem;
    width: calc(100% - 1rem);
    gap: 0.35rem;
  }

  .brand span {
    display: none;
  }

  .header-action {
    display: none;
  }

  .site-nav a {
    padding: 0.45rem 0.62rem;
    font-size: 0.84rem;
  }

  .hero {
    min-height: 112svh;
    padding: 6rem 1.1rem 8rem;
  }

  .hero-kicker {
    top: 5.8rem;
    left: 1.1rem;
    font-size: 0.85rem;
  }

  .hero-name {
    font-size: 4.4rem;
  }

  .hero-copy {
    align-self: end;
    margin-top: 8rem;
  }

  .hero-copy h2 {
    font-size: 2rem;
  }

  .hero-copy p {
    font-size: 0.98rem;
  }

  .hero-photo-wrap {
    right: -5rem;
    bottom: 8rem;
    width: 20rem;
    max-width: none;
  }

  .hero-contact {
    gap: 0.45rem;
    font-size: 0.86rem;
  }

  .hero-contact span {
    display: none;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    bottom: 1rem;
  }

  .hero-metrics div {
    grid-template-columns: 5rem 1fr;
    min-height: 3.7rem;
  }

  .section {
    padding: 4.5rem 1.1rem;
  }

  .section-dark {
    padding: 5rem 0;
  }

  .story-inner {
    width: calc(100% - 2.2rem);
    gap: 2.6rem;
  }

  .section-heading h2,
  .story-copy h2,
  .resume-copy h2 {
    font-size: 2rem;
  }

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

  .timeline-meta {
    grid-template-columns: 1fr auto;
    align-items: center;
    align-content: center;
    justify-items: stretch;
    text-align: left;
  }

  .company-logo {
    width: 6.4rem;
    height: 4.2rem;
  }

  .site-footer {
    flex-direction: column;
    padding: 1.4rem 1.1rem;
  }
}

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

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

  .intro-splash {
    display: none;
  }

  body.is-locked {
    overflow: auto;
  }
}

/* Dark editorial pass: CUHK purple is reserved for focus and interaction. */
:root {
  --paper: #0d0c12;
  --paper-strong: #17141f;
  --ink: #f6f1f8;
  --muted: #c6bdcf;
  --line: rgba(227, 211, 238, 0.18);
  --blue: #bf8ce0;
  --blue-deep: #6c2c91;
  --cuhk-purple: #6c2c91;
  --cuhk-purple-light: #c697e3;
  --night: #0d0c12;
  --night-soft: #1b1625;
}

body {
  background:
    radial-gradient(circle at 90% 14%, rgba(108, 44, 145, 0.18), transparent 28rem),
    #0d0c12;
  color: var(--ink);
}

.section:not(.section-dark),
.projects.section-page,
.skills.section-page,
.resume {
  background:
    linear-gradient(125deg, rgba(108, 44, 145, 0.12), transparent 38%),
    #0d0c12;
  color: var(--ink);
}

.section-heading h2,
.section-heading h3,
.project-panel h3,
.skill-block h3,
.resume h2 {
  color: var(--ink);
}

.section-heading p,
.section-heading span,
.project-panel p,
.project-panel li,
.skill-block p,
.resume p,
.timeline-item,
.project-index-item,
.project-index-item small {
  color: var(--muted);
}

.section-heading p,
.timeline-item.is-active,
.project-index-item.is-active,
.project-index-item.is-active b,
.project-index-item.is-active small,
.project-panel > span,
.project-panel strong,
.skill-block h3 {
  color: var(--cuhk-purple-light);
}

.timeline-item::before,
.project-index::before {
  background: rgba(198, 151, 227, 0.34);
}

.timeline-item.is-active::before,
.project-index-item.is-active::before {
  background: var(--cuhk-purple-light);
  box-shadow: 0 0 0 0.5rem rgba(108, 44, 145, 0.18), 0 0 1.1rem rgba(198, 151, 227, 0.72);
}

.experience-panel,
.project-panel,
.skill-block {
  border-color: rgba(215, 194, 230, 0.2);
  background: rgba(26, 22, 35, 0.8);
  box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.24);
}

.skill-tag {
  border-color: rgba(198, 151, 227, 0.28);
  background: rgba(108, 44, 145, 0.12);
  color: #f0e6f6;
}

.skill-tag:nth-child(3n + 2) {
  border-color: rgba(198, 151, 227, 0.34);
  background: rgba(198, 151, 227, 0.1);
}

.site-header .header-action {
  border-color: rgba(219, 183, 239, 0.5);
  background: linear-gradient(135deg, #7a359b, #53236f);
  box-shadow:
    0 8px 20px rgba(74, 27, 102, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.skills.section-page .skill-block h3 {
  color: #f7f0fb;
}

.projects.section-page .project-editorial {
  cursor: grab;
  touch-action: pan-y;
}

.projects.section-page .project-index-item {
  cursor: pointer;
}

.projects.section-page .project-editorial.is-dragging,
.projects.section-page .project-editorial.is-dragging * {
  cursor: grabbing;
  user-select: none;
}

@media (min-width: 981px) {
  .projects.section-page .project-stage {
    margin-top: 0.8rem;
  }

  .projects.section-page .project-case,
  .projects.section-page .project-case[hidden] {
    background: rgba(25, 20, 34, 0.92);
    border-color: rgba(198, 151, 227, 0.28);
  }

  .projects.section-page .project-case.is-active {
    transform: translate3d(var(--project-drag-offset, 0px), 0, 0) scale(1) !important;
    box-shadow: 0 1.35rem 3.5rem rgba(0, 0, 0, 0.36);
  }

  .projects.section-page #project-jiadibao {
    left: 8%;
    width: 84%;
  }

  .projects.section-page #project-jiadibao h3 {
    white-space: nowrap;
    font-size: clamp(1.28rem, 1.48vw, 1.55rem);
    line-height: 1.22;
  }

  .skills.section-page .skill-layout {
    width: min(100%, 64rem);
    height: auto;
    max-height: none;
    padding-right: 0;
    justify-self: center;
    align-self: start;
    overflow: visible;
  }

  .skills.section-page .skill-block {
    min-height: 0;
    padding: 1.55rem;
    align-self: start;
  }
}

@media (max-width: 980px) {
  .projects.section-page #project-jiadibao h3 {
    white-space: normal;
  }
}

/* 2026 personal narrative refresh */
body {
  background: #f5f7fa;
}

.intro-splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #090b10;
  background-size: 60px 60px;
  padding: 8svh 1.2rem 0;
}

.intro-mark {
  position: relative;
  width: 11rem;
  height: 11rem;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: #101114;
  box-shadow:
    0 0 0 12px rgba(255, 255, 255, 0.04),
    0 28px 90px rgba(33, 84, 244, 0.34);
  animation: markPulse 1.7s linear both;
}

.intro-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 47% 42%;
}

.intro-splash h1,
.intro-splash p {
  position: relative;
  z-index: 2;
  width: min(34rem, calc(100% - 2.4rem));
  text-align: center;
}

.intro-splash h1 {
  margin: 1rem 0 0;
  color: #fff;
  font-size: 3.2rem;
  line-height: 1.05;
  font-weight: 950;
}

.intro-splash p {
  margin: 0.65rem 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: 0;
}

.intro-splash .intro-line {
  margin-top: 1.25rem;
  color: #7dd3fc;
  font-size: 0.92rem;
  font-weight: 900;
}

.brand img {
  border-radius: 50%;
  object-position: 47% 42%;
}

.site-header {
  border-radius: 999px;
}

.brand,
.site-nav a,
.header-action,
.button {
  border-radius: 999px;
}

.hero {
  display: block;
  height: 220svh;
  min-height: 0;
  overflow: visible;
  border-bottom: 0;
  background: #090b10;
  padding: 0;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 38rem;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #090b10;
  background-size: 60px 60px;
}

.hero-bg {
  position: absolute;
  top: 16svh;
  right: max(1.5rem, calc((100vw - 1180px) / 2));
  bottom: auto;
  left: auto;
  z-index: 0;
  width: min(35rem, 42vw);
  height: 68svh;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  opacity: 0.34;
  transform: scale(1.04);
  transform-origin: center;
  will-change: transform, opacity, filter;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 45%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6, 8, 12, 0.42), rgba(6, 8, 12, 0.62) 56%, rgba(6, 8, 12, 0.86)),
    linear-gradient(90deg, rgba(6, 8, 12, 0.68), transparent 54%, rgba(6, 8, 12, 0.36));
}

.hero-kicker {
  top: 7rem;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0;
}

.hero-name {
  color: #fff;
  width: min(68rem, calc(100% - 3rem));
  font-size: 4rem;
  line-height: 1.06;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  transform-origin: top left;
}

.hero-line {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: min(62rem, calc(100% - 3rem));
  margin: 0;
  color: #fff;
  font-size: 3.15rem;
  line-height: 1.08;
  font-weight: 950;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 46px);
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
  will-change: transform, opacity;
}

.hero-copy {
  position: absolute;
  left: max(1.5rem, calc((100vw - 1180px) / 2));
  bottom: 6.2rem;
  width: min(46rem, calc(100% - 3rem));
  margin: 0;
  color: white;
}

.hero-copy p {
  max-width: 43rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}

.hero-copy .button.secondary {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.hero-contact {
  color: rgba(255, 255, 255, 0.66);
}

.hero-contact span {
  background: rgba(255, 255, 255, 0.22);
}

.hero-contact a:hover {
  color: #fff;
}

.hero-metrics {
  top: auto;
  right: max(1.5rem, calc((100vw - 1180px) / 2));
  bottom: 6.2rem;
  width: 20rem;
  opacity: 0;
  transform: translateY(28px);
  will-change: transform, opacity;
}

.hero-metrics div {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 0.18rem;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.hero-metrics strong {
  color: #fff;
}

.hero-metrics span {
  color: rgba(255, 255, 255, 0.68);
}

.hero-metrics p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
  font-weight: 780;
  line-height: 1.45;
}

.hero-metrics p strong {
  color: #fff;
  font-size: inherit;
  font-weight: 950;
}

@media (min-width: 981px) {
  .hero-metrics {
    width: 23rem;
  }
}

.scroll-cue {
  bottom: 2.2rem;
  width: auto;
  height: auto;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}

.scroll-cue span {
  width: auto;
  height: auto;
  background: none;
  animation: none;
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 2.7rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), transparent);
  animation: cuePulse 1.7s ease-in-out infinite;
}

.section-heading span {
  display: block;
  max-width: 45rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.04rem;
}

.positioning {
  background: #f5f7fa;
}

.feature-card,
.project-panel,
.timeline-item,
.skill-block,
.resume-preview {
  border-radius: 8px;
}

.feature-card {
  min-height: 22rem;
  background: rgba(255, 255, 255, 0.86);
}

.feature-card p,
.project-panel p,
.skill-block p,
.timeline-item p,
.resume-copy p:not(.section-label) {
  color: #586071;
}

.section-dark {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    #0b0e12;
}

.portrait-frame {
  width: min(27rem, 100%);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.story-visual .portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 47% 42%;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.education-panel {
  display: grid;
  gap: 0.95rem;
  width: min(30rem, 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
  padding: 1.1rem;
}

.education-panel > strong {
  color: #fff;
  font-size: 1.22rem;
}

.education-panel > span {
  display: block;
  border-left: 3px solid var(--coral);
  color: rgba(255, 255, 255, 0.72);
  padding-left: 0.85rem;
}

.school-card {
  display: grid;
  grid-template-columns: minmax(6rem, 9.5rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  padding: 0.85rem;
}

.school-logo {
  display: grid;
  min-height: 3rem;
  place-items: center;
  overflow: hidden;
}

.school-logo img {
  width: 76%;
  max-height: 2.8rem;
  object-fit: contain;
  object-position: center;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.school-logo-cuhk img {
  width: 92%;
  max-height: 2.9rem;
}

.school-logo-scu img {
  width: 76%;
  max-height: 2.35rem;
}

.school-card h3 {
  margin: 0;
  color: #171a20;
  font-size: 1.05rem;
  line-height: 1.2;
}

.school-card p {
  margin: 0.35rem 0 0;
  color: #4f5663;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.35;
}

.timeline-meta {
  display: grid;
  min-height: 100%;
  gap: 0.85rem;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.timeline-meta time {
  display: block;
  width: 100%;
  color: var(--blue);
  font-weight: 950;
}

.company-logo {
  display: grid;
  width: 8rem;
  height: 5.1rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(18, 20, 23, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.company-logo img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  padding: 0;
}

.vision {
  padding: 8rem 0;
}

.vision-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.62fr);
  gap: 3rem;
  align-items: start;
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
}

.vision-copy h2 {
  margin: 0;
  font-size: 3.2rem;
  line-height: 1.08;
  font-weight: 950;
}

.vision-copy p {
  max-width: 47rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
}

.vision-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 1.45rem;
}

.vision-card span {
  color: #7dd3fc;
  font-size: 0.88rem;
  font-weight: 950;
}

.vision-card h3 {
  margin: 1rem 0 1rem;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1.15;
}

.vision-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(255, 255, 255, 0.72);
}

.vision-card li + li {
  margin-top: 0.55rem;
}

.projects {
  background: #fff;
}

.resume {
  background: linear-gradient(180deg, #fff, #f5f7fa);
}

@media (max-width: 980px) {
  .hero {
    height: 215svh;
    padding: 0;
  }

  .hero-sticky {
    min-height: 42rem;
  }

  .hero-name {
    font-size: 3.15rem;
  }

  .hero-line {
    font-size: 2.45rem;
  }

  .hero-copy {
    width: min(42rem, calc(100% - 3rem));
  }

  .hero-metrics {
    width: min(34rem, calc(100% - 3rem));
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-metrics div {
    grid-template-columns: 1fr;
  }

  .vision-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .intro-mark {
    width: 8.5rem;
    height: 8.5rem;
  }

  .intro-splash h1 {
    font-size: 2.1rem;
  }

  .hero {
    height: 220svh;
    min-height: 0;
    padding: 0;
  }

  .hero-sticky {
    min-height: 100svh;
  }

  .hero-bg img {
    object-position: 52% 48%;
  }

  .hero-kicker {
    top: 5.8rem;
    left: 1.1rem;
  }

  .hero-name {
    width: calc(100% - 2rem);
    font-size: 2.08rem;
  }

  .hero-line {
    width: calc(100% - 2rem);
    font-size: 1.72rem;
  }

  .hero-copy {
    left: 1.1rem;
    bottom: 5.4rem;
    width: calc(100% - 2.2rem);
  }

  .hero-copy p {
    font-size: 0.96rem;
  }

  .hero-copy .hero-actions {
    gap: 0.55rem;
  }

  .hero-copy .button {
    min-width: 0;
    padding: 0.72rem 0.82rem;
  }

  .hero-contact {
    font-size: 0.82rem;
  }

  .hero-metrics {
    display: none;
  }

  .scroll-cue {
    bottom: 1.1rem;
  }

  .feature-card {
    min-height: auto;
  }

  .portrait-frame {
    width: 100%;
  }

  .school-card {
    grid-template-columns: 1fr;
  }

  .school-logo {
    min-height: 2.7rem;
  }

  .school-logo img {
    width: 76%;
    max-width: 12rem;
    max-height: 2.4rem;
  }

  .school-logo-cuhk img {
    width: 92%;
    max-width: 14.5rem;
    max-height: 2.55rem;
  }

  .timeline-meta {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: stretch;
    text-align: left;
  }

  .company-logo {
    width: 6.4rem;
    height: 4.2rem;
  }

  .vision-copy h2 {
    font-size: 2.2rem;
  }

  .vision {
    padding: 5rem 0;
  }

  .vision-inner {
    width: calc(100% - 2.2rem);
  }
}

/* Narrative refinement: editorial headings, restrained surfaces, factual emphasis. */
:root {
  --display-face: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --body-face: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --utility-face: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  --signal: #3d67ff;
  --signal-soft: #9eb4ff;
}

body {
  font-family: var(--body-face);
}

h1,
h2,
.section-heading h2,
.story-copy h2,
.vision-copy h2,
.resume-copy h2 {
  font-family: var(--display-face);
  font-weight: 800;
}

.site-header {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(13, 16, 22, 0.84);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
}

.brand {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.72);
}

.site-nav a:hover,
.site-nav a.is-active {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.header-action {
  border-color: rgba(115, 147, 255, 0.64);
  background: var(--signal);
}

.hero-kicker,
.section-heading p,
.section-label,
.experience-role,
.project-panel > span,
.vision-card span {
  font-family: var(--utility-face);
  letter-spacing: 0;
}

.hero-kicker {
  color: rgba(202, 215, 255, 0.88);
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-line {
  font-size: clamp(2.45rem, 4.2vw, 4.15rem);
  font-weight: 800;
  line-height: 1.13;
}

.hero-copy p {
  max-width: 46rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  line-height: 1.85;
}

.hero-metrics div {
  border-color: rgba(255, 255, 255, 0.16);
  border-left: 2px solid rgba(158, 180, 255, 0.92);
  border-radius: 0 8px 8px 0;
  background: rgba(8, 11, 16, 0.38);
  padding: 0.72rem 0.9rem;
}

.hero-metrics p {
  font-family: var(--utility-face);
  font-size: 0.91rem;
  font-weight: 700;
}

.story-copy h2,
.vision-copy h2 {
  max-width: 16ch;
  font-size: clamp(2.7rem, 4vw, 4rem);
  line-height: 1.2;
}

.story-copy p:not(.section-label) {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.08rem;
  line-height: 1.9;
}

.education-panel > span {
  font-family: var(--display-face);
  font-size: 1.03rem;
  line-height: 1.65;
}

.section-heading h2 {
  max-width: 19ch;
  font-size: clamp(2.45rem, 3.7vw, 3.6rem);
  line-height: 1.2;
}

.section-heading span {
  max-width: 48rem;
  line-height: 1.85;
}

.timeline {
  gap: 1.25rem;
}

.timeline-item {
  border-color: rgba(26, 31, 42, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
  padding: 1.7rem;
}

.timeline-item:hover {
  transform: translateY(-2px);
  border-color: rgba(61, 103, 255, 0.45);
  box-shadow: 0 18px 42px rgba(22, 37, 70, 0.1);
}

.timeline-item h3 {
  font-family: var(--display-face);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.25;
}

.experience-role {
  margin-top: 0.5rem !important;
  color: var(--signal) !important;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.55;
}

.timeline-item .experience-summary {
  margin-top: 0.9rem;
  color: #3c4655;
  font-size: 1rem;
  line-height: 1.8;
}

.timeline-item ul,
.project-panel ul {
  padding-left: 1.2rem;
  line-height: 1.78;
}

.timeline-item li strong,
.project-panel li strong {
  color: #263f9b;
  font-family: var(--utility-face);
  font-weight: 850;
}

.company-logo {
  border-color: rgba(28, 34, 46, 0.12);
  background: #fff;
}

.project-grid {
  gap: 1.25rem;
}

.project-panel {
  min-height: 100%;
  padding: 1.7rem;
  box-shadow: none;
}

.project-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(22, 37, 70, 0.1);
}

.project-panel h3 {
  font-family: var(--display-face);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
}

.project-panel > span {
  color: #3852b4;
  font-size: 0.83rem;
}

.vision-card {
  border-color: rgba(177, 194, 255, 0.22);
  background: rgba(61, 103, 255, 0.1);
}

.vision-card h3 {
  font-family: var(--display-face);
  font-weight: 800;
  line-height: 1.35;
}

.skill-block h3 {
  font-family: var(--display-face);
  font-size: 1.55rem;
  font-weight: 800;
}

.tag-list span {
  border-color: rgba(44, 58, 91, 0.14);
  background: rgba(61, 103, 255, 0.045);
}

.resume-copy h2 {
  max-width: 16ch;
  font-size: clamp(2.45rem, 3.7vw, 3.6rem);
  line-height: 1.2;
}

a:focus-visible {
  outline: 3px solid rgba(158, 180, 255, 0.9);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .site-header {
    background: rgba(13, 16, 22, 0.9);
  }

  .brand {
    padding-right: 0.42rem;
  }

  .hero-kicker {
    max-width: calc(100% - 2.2rem);
    font-size: 0.75rem;
    line-height: 1.45;
  }

  .hero-line {
    font-size: 1.92rem;
    line-height: 1.23;
  }

  .hero-copy p {
    font-size: 0.95rem;
    line-height: 1.72;
  }

  .story-copy h2,
  .vision-copy h2,
  .section-heading h2,
  .resume-copy h2 {
    font-size: 2.25rem;
    line-height: 1.25;
  }

  .story-copy p:not(.section-label) {
    font-size: 1rem;
    line-height: 1.78;
  }

  .timeline-item,
  .project-panel {
    padding: 1.25rem;
  }

  .timeline-item h3,
  .project-panel h3 {
    font-size: 1.4rem;
  }
}

/* Precision pass: semantic line breaks and legible numeric emphasis. */
:root {
  --number-face: "Avenir Next", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  font-variant-numeric: tabular-nums lining-nums;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.hero-bg img {
  object-position: 46% 44%;
}

.vision-copy h2 {
  max-width: none;
  font-size: clamp(2.55rem, 3.45vw, 3.5rem);
  line-height: 1.26;
}

.vision-card h3 {
  font-size: clamp(1.45rem, 1.85vw, 1.68rem);
  line-height: 1.42;
}

strong,
.hero-metrics p strong,
.timeline-item li strong,
.project-panel li strong {
  font-family: var(--number-face);
  font-weight: 700;
  font-synthesis: none;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0.01em;
}

.story-seascape {
  width: min(90%, 37.8rem);
  aspect-ratio: 16 / 8;
  margin: 0 auto 2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: #10151b;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.story {
  padding: 6.4rem 0 4.75rem;
}

.story-seascape img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(0.96) contrast(1.04) brightness(0.94);
}

.story-copy p:not(.section-label) {
  max-width: 37.8rem;
  margin-inline: auto;
}

.latin-regular {
  font-family: var(--number-face);
  font-weight: 500;
  font-synthesis: none;
}

.resume-copy h2.resume-heading-action {
  max-width: none;
  font-size: clamp(2rem, 3vw, 3.25rem);
  white-space: normal;
}

@media (max-width: 700px) {
  .story {
    padding: 4.5rem 0 3.5rem;
  }

  .story-seascape {
    aspect-ratio: 16 / 10;
    margin-bottom: 1.55rem;
  }

  .resume-copy h2.resume-heading-action {
    font-size: 1.92rem;
  }

  .vision-copy h2 {
    max-width: 100%;
    font-size: 2.12rem;
    line-height: 1.3;
  }

  .vision-card h3 {
    font-size: 1.38rem;
    line-height: 1.45;
  }
}

/* Hero-to-About handoff: keep the opening story, remove its former final panel. */
.hero {
  height: 155svh;
}

.story-inner {
  align-items: start;
}

.story-visual {
  padding-top: 2.1rem;
}

.story-actions {
  display: grid;
  gap: 0.9rem;
  width: min(30rem, 100%);
}

.story-action-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.story-action-buttons .button {
  min-width: 0;
}

.story-action-buttons .button.secondary {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.story-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
  font-weight: 700;
}

.story-contact a {
  justify-self: center;
  white-space: nowrap;
}

.story-contact span {
  display: none;
}

.story-contact a:hover {
  color: #fff;
}

@media (max-width: 980px) {
  .hero {
    height: 155svh;
  }

  .story-visual {
    padding-top: 0;
  }
}

@media (max-width: 700px) {
  .hero {
    height: 160svh;
  }

  .story-action-buttons {
    grid-template-columns: 1fr;
  }

  .story-contact {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

@media (min-width: 1200px) {
  .experience .section-heading,
  .experience .section-heading span {
    max-width: none;
  }

  .experience .section-heading span {
    white-space: nowrap;
  }
}

/* Redesign comparison: experience rail and editorial project cases. */
.experience-studio,
.project-editorial {
  display: grid;
  grid-template-columns: 14.5rem minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 4vw, 4.75rem);
}

.experience-rail,
.project-index {
  position: sticky;
  top: 7.25rem;
  display: grid;
  gap: 0.1rem;
  padding: 0.55rem 0 0.55rem 1.2rem;
  border-left: 1px solid rgba(38, 63, 155, 0.16);
}

.experience-rail-item,
.project-index-item {
  position: relative;
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  gap: 0.08rem 0.65rem;
  width: 100%;
  padding: 0.8rem 0.7rem 0.8rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #70798a;
  text-align: left;
  cursor: pointer;
  transition: color 0.24s ease, transform 0.24s ease;
}

.experience-rail-item::before,
.project-index-item::before {
  position: absolute;
  top: 50%;
  left: -1.52rem;
  width: 0.6rem;
  height: 0.6rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #cbd2df;
  content: "";
  transform: translateY(-50%);
  transition: background 0.24s ease, box-shadow 0.24s ease;
}

.experience-rail-item span,
.project-index-item span {
  grid-row: span 2;
  align-self: center;
  color: #9aa4b5;
  font-family: var(--number-face);
  font-size: 0.78rem;
  font-weight: 800;
}

.experience-rail-item b,
.project-index-item b {
  overflow: hidden;
  font-family: var(--utility-face);
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.experience-rail-item small,
.project-index-item small {
  overflow: hidden;
  color: currentcolor;
  font-family: var(--utility-face);
  font-size: 0.69rem;
  font-weight: 700;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.experience-rail-item:hover,
.project-index-item:hover,
.experience-rail-item:focus-visible,
.project-index-item:focus-visible {
  color: #263f9b;
  outline: none;
  transform: translateX(0.2rem);
}

.experience-rail-item.is-active,
.project-index-item.is-active {
  color: #1f3cb0;
}

.experience-rail-item.is-active::before,
.project-index-item.is-active::before {
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(37, 89, 255, 0.12);
}

.experience-stage {
  position: relative;
  gap: 1.25rem;
}

.experience-story {
  position: relative;
  overflow: hidden;
  border-color: rgba(31, 60, 176, 0.14);
  border-left: 4px solid rgba(31, 60, 176, 0.16);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

.experience-story::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 8rem;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 89, 255, 0.035));
  content: "";
  pointer-events: none;
}

.experience-story.is-active {
  border-left-color: var(--blue);
  background: #fff;
  box-shadow: 0 18px 42px rgba(22, 37, 70, 0.1);
}

.experience-story.is-active .timeline-meta time {
  color: #163dcc;
}

.project-editorial {
  grid-template-columns: 16rem minmax(0, 1fr);
}

.project-index-item {
  padding-block: 0.95rem;
}

.project-stage {
  display: block;
}

.project-editorial .project-case {
  position: relative;
  min-height: 33rem;
  padding: clamp(1.8rem, 4vw, 3.25rem);
  border: 1px solid rgba(28, 34, 46, 0.14);
  border-left: 6px solid var(--blue);
  border-radius: 0 8px 8px 0;
  background: #fff;
  box-shadow: 0 20px 50px rgba(22, 37, 70, 0.07);
}

.project-editorial .project-case::before {
  display: block;
  width: fit-content;
  margin-bottom: 1.35rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(38, 63, 155, 0.22);
  color: #3852b4;
  font-family: var(--utility-face);
  font-size: 0.75rem;
  font-weight: 900;
  content: "CASE STUDY";
  letter-spacing: 0.08em;
}

.project-editorial .project-case > span {
  display: block;
  margin-bottom: 1rem;
}

.project-editorial .project-case h3 {
  max-width: 16ch;
  margin-top: 0;
  font-size: clamp(1.7rem, 2.65vw, 2.5rem);
  line-height: 1.2;
}

.project-editorial .project-case > p {
  max-width: 52rem;
  font-size: 1.05rem;
  line-height: 1.9;
}

.project-editorial .project-panel-featured ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.project-editorial .project-case ul {
  max-width: none;
  margin-top: 1.7rem;
  padding-left: 1.2rem;
}

.project-editorial .project-case li + li {
  margin-top: 0;
}

.project-editorial .project-case:not(.project-panel-featured) li + li {
  margin-top: 0.7rem;
}

.project-case.is-active {
  animation: caseEnter 0.45s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

@keyframes caseEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

@media (max-width: 980px) {
  .experience-studio,
  .project-editorial {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .experience-rail,
  .project-index {
    position: static;
    grid-auto-columns: minmax(10.5rem, 1fr);
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    padding: 0.3rem 0.2rem 0.8rem;
    border-left: 0;
    border-bottom: 1px solid rgba(38, 63, 155, 0.16);
    scrollbar-width: thin;
  }

  .experience-rail-item,
  .project-index-item {
    padding: 0.65rem 0.35rem 0.65rem 0.55rem;
  }

  .experience-rail-item::before,
  .project-index-item::before {
    top: auto;
    bottom: -1.08rem;
    left: 50%;
    transform: translateX(-50%);
  }

  .experience-rail-item:hover,
  .project-index-item:hover,
  .experience-rail-item:focus-visible,
  .project-index-item:focus-visible {
    transform: none;
  }

  .project-editorial .project-case {
    min-height: auto;
  }

  .project-editorial .project-panel-featured ul {
    grid-template-columns: 1fr;
  }

  .project-editorial .project-case li + li {
    margin-top: 0.7rem;
  }
}

@media (max-width: 700px) {
  .experience-story,
  .project-editorial .project-case {
    padding: 1.3rem;
  }

  .experience-story {
    border-left-width: 3px;
  }

  .project-editorial .project-case {
    border-left-width: 4px;
  }

  .project-editorial .project-case h3 {
    max-width: none;
    font-size: 1.55rem;
  }
}

/* Interaction pass: lock only the experience reading pane, not the whole page. */
@media (min-width: 981px) {
  .experience-studio {
    align-items: stretch;
  }

  .experience-stage {
    max-height: min(39rem, calc(100svh - 20rem));
    overflow-y: auto;
    padding-right: 0.65rem;
    scrollbar-color: rgba(37, 89, 255, 0.42) transparent;
    scrollbar-width: thin;
  }

  .experience-stage::-webkit-scrollbar {
    width: 0.45rem;
  }

  .experience-stage::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: rgba(37, 89, 255, 0.38);
  }
}

/* Horizontal project timeline: labels alternate around a shared chronological line. */
.project-editorial {
  display: block;
}

.project-index {
  position: relative;
  top: auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 12.75rem;
  margin: 0 0 1.7rem;
  padding: 0;
  border: 0;
}

.project-index::before {
  position: absolute;
  top: 50%;
  right: 4%;
  left: 4%;
  height: 1px;
  background: rgba(38, 63, 155, 0.22);
  content: "";
}

.project-index-item {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.12rem;
  min-height: 12.75rem;
  padding: 0.35rem 0.35rem 6.65rem;
  color: #737d8f;
  text-align: center;
  transform: none;
}

.project-index-item:nth-child(even) {
  justify-content: flex-end;
  padding: 6.65rem 0.35rem 0.35rem;
}

.project-index-item::before {
  top: 50%;
  bottom: auto;
  left: 50%;
  width: 0.72rem;
  height: 0.72rem;
  border: 3px solid #fff;
  background: #c6cedc;
  box-shadow: 0 0 0 1px rgba(38, 63, 155, 0.12);
  transform: translate(-50%, -50%);
}

.project-index-item::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 1.7rem;
  background: rgba(38, 63, 155, 0.2);
  content: "";
  transform: translate(-50%, -100%);
  transition: height 0.24s ease, background 0.24s ease;
}

.project-index-item:nth-child(even)::after {
  transform: translate(-50%, 0);
}

.project-index-item span {
  grid-row: auto;
  align-self: auto;
  color: #99a3b3;
  font-size: 0.72rem;
}

.project-index-item b {
  max-width: 100%;
  color: currentcolor;
  font-size: 0.9rem;
}

.project-index-item small {
  max-width: 100%;
  font-size: 0.67rem;
}

.project-index-item:hover,
.project-index-item:focus-visible,
.project-index-item.is-active {
  color: #1f43bd;
  transform: none;
}

.project-index-item:hover::before,
.project-index-item:focus-visible::before,
.project-index-item.is-active::before {
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(37, 89, 255, 0.11), 0 0 18px rgba(37, 89, 255, 0.46);
  transform: translate(-50%, -50%) scale(1.2);
}

.project-index-item:hover::after,
.project-index-item:focus-visible::after,
.project-index-item.is-active::after {
  height: 2.1rem;
  background: rgba(37, 89, 255, 0.58);
}

.project-editorial .project-case::before {
  display: none;
}

.project-editorial .project-case > span {
  margin-bottom: 0.9rem;
}

.project-editorial .project-case h3 {
  max-width: none;
  font-size: clamp(1.65rem, 2.35vw, 2.35rem);
  overflow-wrap: break-word;
}

@media (max-width: 980px) {
  .experience-stage {
    overflow: visible;
    padding-right: 0;
  }

  .project-index {
    display: grid;
    grid-auto-columns: minmax(10rem, 1fr);
    grid-auto-flow: column;
    grid-template-columns: none;
    min-height: 10.5rem;
    overflow-x: auto;
    margin-bottom: 1.1rem;
    padding: 0.2rem 0 0.85rem;
    border-bottom: 0;
  }

  .project-index::before {
    top: 50%;
    right: 1.8rem;
    left: 1.8rem;
  }

  .project-index-item,
  .project-index-item:nth-child(even) {
    min-height: 9.5rem;
    padding: 0.35rem 0.35rem 4.8rem;
  }

  .project-index-item:nth-child(even) {
    justify-content: flex-start;
  }

  .project-index-item::after,
  .project-index-item:nth-child(even)::after {
    height: 1.25rem;
    transform: translate(-50%, -100%);
  }
}

/* Comparison iteration: lock the reading pane and turn projects into a horizontal timeline. */
@media (min-width: 981px) {
  .experience .experience-stage {
    grid-auto-rows: max-content;
    align-content: start;
    max-height: calc(100svh - 17rem);
    overflow-y: auto;
    padding-right: 0.8rem;
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
    scrollbar-color: rgba(37, 89, 255, 0.4) transparent;
    scrollbar-width: thin;
  }

  .experience .experience-stage::-webkit-scrollbar {
    width: 0.42rem;
  }

  .experience .experience-stage::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(37, 89, 255, 0.36);
  }

  .experience .experience-story {
    height: auto;
    min-height: max-content;
    scroll-snap-align: start;
  }
}

.project-editorial {
  display: block;
}

.project-editorial .project-index {
  position: relative;
  top: auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  min-height: 14rem;
  margin: 0 0 1.25rem;
  padding: 1rem 0;
  border: 0;
  overflow: visible;
}

.project-editorial .project-index::before {
  position: absolute;
  top: 50%;
  right: 7.5%;
  left: 7.5%;
  height: 2px;
  background: linear-gradient(90deg, rgba(37, 89, 255, 0.24), rgba(37, 89, 255, 0.54), rgba(37, 89, 255, 0.24));
  content: "";
}

.project-editorial .project-index-item {
  position: relative;
  display: block;
  min-height: 12rem;
  padding: 0;
  color: #6d7788;
  overflow: visible;
  text-align: center;
  transform: none;
}

.project-editorial .project-index-item::before {
  z-index: 1;
  top: 50%;
  bottom: auto;
  left: 50%;
  width: 0.88rem;
  height: 0.88rem;
  border: 3px solid #fff;
  background: #b7c0d0;
  box-shadow: 0 0 0 1px rgba(38, 63, 155, 0.15);
  transform: translate(-50%, -50%);
}

.project-editorial .project-index-item::after {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid transparent;
  border-radius: 50%;
  content: "";
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.65);
  transition: transform 0.28s ease, opacity 0.28s ease, border-color 0.28s ease;
}

.project-editorial .project-index-item span {
  position: absolute;
  top: calc(50% - 0.4rem);
  left: calc(50% + 1.1rem);
  display: block;
  color: #9aa4b5;
  font-size: 0.72rem;
  line-height: 1;
  transform: none;
}

.project-editorial .project-index-item b,
.project-editorial .project-index-item small {
  position: absolute;
  left: 50%;
  display: block;
  width: min(11.5rem, calc(100% - 1rem));
  overflow: visible;
  font-family: var(--utility-face);
  text-overflow: clip;
  white-space: normal;
  transform: translateX(-50%);
}

.project-editorial .project-index-item b {
  color: currentcolor;
  font-size: 0.96rem;
  font-weight: 850;
  line-height: 1.35;
}

.project-editorial .project-index-item small {
  color: currentcolor;
  font-size: 0.69rem;
  font-weight: 700;
  line-height: 1.35;
}

.project-editorial .project-index-item:nth-child(odd) b {
  bottom: calc(50% + 2.15rem);
}

.project-editorial .project-index-item:nth-child(odd) small {
  bottom: calc(50% + 0.85rem);
}

.project-editorial .project-index-item:nth-child(even) b {
  top: calc(50% + 2.15rem);
}

.project-editorial .project-index-item:nth-child(even) small {
  top: calc(50% + 0.85rem);
}

.project-editorial .project-index-item:hover,
.project-editorial .project-index-item:focus-visible {
  color: #1839a7;
  transform: none;
}

.project-editorial .project-index-item:hover::before,
.project-editorial .project-index-item:focus-visible::before,
.project-editorial .project-index-item.is-active::before {
  background: #2a6ff4;
  box-shadow: 0 0 0 0.45rem rgba(42, 111, 244, 0.12), 0 0 1rem rgba(42, 111, 244, 0.58);
  transform: translate(-50%, -50%) scale(1.18);
}

.project-editorial .project-index-item:hover::after,
.project-editorial .project-index-item:focus-visible::after,
.project-editorial .project-index-item.is-active::after {
  border-color: rgba(42, 111, 244, 0.45);
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.project-editorial .project-index-item.is-active {
  color: #1538b3;
}

.project-editorial .project-index-item.is-active b {
  font-weight: 950;
}

.project-editorial .project-stage {
  display: block;
}

.project-editorial .project-case {
  min-height: 0;
  padding: clamp(1.75rem, 3.2vw, 2.75rem);
  border-top: 3px solid rgba(37, 89, 255, 0.9);
  border-right: 1px solid rgba(28, 34, 46, 0.14);
  border-bottom: 1px solid rgba(28, 34, 46, 0.14);
  border-left: 1px solid rgba(28, 34, 46, 0.14);
  border-radius: 0 0 8px 8px;
}

.project-editorial .project-case::before {
  display: none;
  content: none;
}

.project-editorial .project-case h3 {
  max-width: none;
  font-size: clamp(1.55rem, 2.35vw, 2.2rem);
  line-height: 1.28;
  overflow-wrap: normal;
  word-break: normal;
}

.project-editorial .project-case > p {
  max-width: none;
}

.project-editorial .project-panel-featured ul {
  display: block;
}

.project-editorial .project-case li + li {
  margin-top: 0.7rem;
}

@media (max-width: 980px) {
  .experience .experience-stage {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .project-editorial .project-index {
    display: grid;
    grid-auto-columns: minmax(10.5rem, 1fr);
    grid-auto-flow: column;
    grid-template-columns: none;
    min-height: auto;
    margin-bottom: 1.25rem;
    padding: 0.4rem 0.25rem 1rem;
    overflow-x: auto;
    border-bottom: 1px solid rgba(38, 63, 155, 0.16);
  }

  .project-editorial .project-index::before {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
  }

  .project-editorial .project-index-item {
    min-height: 4.7rem;
    padding: 0.35rem 0.35rem 0.8rem 1.4rem;
    text-align: left;
  }

  .project-editorial .project-index-item::before {
    top: auto;
    bottom: -1.32rem;
    left: 0.75rem;
    transform: translate(-50%, 50%);
  }

  .project-editorial .project-index-item::after {
    top: auto;
    bottom: -1.32rem;
    left: 0.75rem;
    transform: translate(-50%, 50%) scale(0.65);
  }

  .project-editorial .project-index-item:hover::before,
  .project-editorial .project-index-item:focus-visible::before,
  .project-editorial .project-index-item.is-active::before {
    transform: translate(-50%, 50%) scale(1.12);
  }

  .project-editorial .project-index-item:hover::after,
  .project-editorial .project-index-item:focus-visible::after,
  .project-editorial .project-index-item.is-active::after {
    transform: translate(-50%, 50%) scale(1);
  }

  .project-editorial .project-index-item span,
  .project-editorial .project-index-item b,
  .project-editorial .project-index-item small {
    position: static;
    width: auto;
    transform: none;
  }

  .project-editorial .project-index-item span {
    float: left;
    margin: 0.18rem 0.55rem 0 0;
  }

  .project-editorial .project-index-item b,
  .project-editorial .project-index-item small {
    margin-left: 0.25rem;
  }
}

/* Presentation pass: each experience is a deliberate slide, not a scrolling stack. */
@media (min-width: 981px) {
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 6.5rem;
    scroll-snap-type: y mandatory;
  }

  main > section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .experience .experience-studio {
    grid-template-columns: 12.25rem minmax(0, 1fr);
    gap: clamp(1.8rem, 3vw, 3.35rem);
    align-items: start;
  }

  .experience .experience-rail {
    align-content: start;
    gap: 0.38rem;
    padding: 0.2rem 0 0.2rem 1rem;
  }

  .experience .experience-rail-item {
    grid-template-columns: 1.7rem minmax(0, 1fr);
    gap: 0.14rem 0.48rem;
    padding: 0.58rem 0.3rem 0.58rem 0;
  }

  .experience .experience-rail-item::before {
    left: -1.3rem;
    width: 0.66rem;
    height: 0.66rem;
  }

  .experience .experience-rail-item span {
    font-size: 0.72rem;
  }

  .experience .experience-rail-item b {
    overflow: visible;
    font-size: 1.14rem;
    font-weight: 900;
    line-height: 1.26;
    text-overflow: clip;
    white-space: normal;
  }

  .experience .experience-rail-item small {
    overflow: visible;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: clip;
    white-space: normal;
  }

  .experience .experience-stage {
    display: block;
    height: min(34rem, calc(100svh - 20rem));
    max-height: none;
    overflow: hidden;
    padding: 0;
    scroll-snap-type: none;
  }

  .experience .experience-story {
    position: absolute;
    inset: 0;
    display: grid;
    box-sizing: border-box;
    height: 100%;
    min-height: 0;
    overflow: auto;
    padding: clamp(1.45rem, 2.25vw, 2rem);
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 2rem, 0) scale(0.986);
    transition: opacity 0.32s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.42s ease;
  }

  .experience .experience-story[hidden] {
    display: none;
  }

  .experience .experience-story.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
  }

  .experience .experience-story.is-leaving {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, -1.35rem, 0) scale(0.986);
  }

  .experience .experience-story::-webkit-scrollbar {
    width: 0.38rem;
  }

  .experience .experience-story::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(37, 89, 255, 0.32);
  }

  .project-editorial .project-index {
    min-height: 8.7rem;
    margin: 0 0 0.95rem;
    padding: 0.15rem 0;
  }

  .project-editorial .project-index::before {
    top: 51%;
  }

  .project-editorial .project-index-item {
    min-height: 8.25rem;
  }

  .project-editorial .project-index-item::before,
  .project-editorial .project-index-item::after {
    top: 51%;
  }

  .project-editorial .project-index-item b {
    width: min(12.5rem, calc(100% - 0.5rem));
    font-size: 1.03rem;
    line-height: 1.25;
  }

  .project-editorial .project-index-item small {
    width: min(12.5rem, calc(100% - 0.5rem));
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .project-editorial .project-index-item:nth-child(odd) b {
    bottom: calc(49% + 1.38rem);
  }

  .project-editorial .project-index-item:nth-child(odd) small {
    bottom: calc(49% + 0.38rem);
  }

  .project-editorial .project-index-item:nth-child(even) b {
    top: calc(51% + 1.38rem);
  }

  .project-editorial .project-index-item:nth-child(even) small {
    top: calc(51% + 0.38rem);
  }
}

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

  .experience .experience-story {
    transition: none;
  }
}

/* Natural-height experience cards: one deliberate wheel gesture advances one story. */
@media (min-width: 981px) {
  .experience .experience-stage {
    display: grid;
    grid-auto-rows: max-content;
    align-content: start;
    height: min(var(--experience-active-height, 34rem), calc(100svh - 17rem));
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 0.8rem 0 0;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    transition: height 0.32s cubic-bezier(0.22, 0.84, 0.32, 1);
  }

  .experience .experience-story,
  .experience .experience-story[hidden] {
    position: relative;
    inset: auto;
    display: grid;
    box-sizing: border-box;
    height: auto;
    min-height: max-content;
    overflow: hidden;
    padding: clamp(1.45rem, 2.25vw, 2rem);
    opacity: 1;
    pointer-events: auto;
    transform: none;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transition: border-color 0.24s ease, box-shadow 0.24s ease;
  }

  .experience .experience-story.is-entering,
  .experience .experience-story.is-leaving {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .experience .experience-stage::-webkit-scrollbar {
    width: 0.38rem;
  }

  .experience .experience-stage::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(37, 89, 255, 0.34);
  }
}

@media (max-width: 980px) {
  .experience .experience-stage {
    display: grid;
    height: auto;
    max-height: none;
    overflow: visible;
    scroll-snap-type: none;
  }

  .experience .experience-story,
  .experience .experience-story[hidden] {
    position: relative;
    inset: auto;
    display: grid;
    height: auto;
    min-height: 0;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

/* A low-contrast liquid-glass navigation shell. */
.site-header {
  border-color: rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(132deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06) 42%, rgba(27, 34, 50, 0.14)),
    rgba(24, 28, 37, 0.48);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
  backdrop-filter: blur(24px) saturate(155%);
  box-shadow:
    0 16px 38px rgba(20, 25, 35, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.33),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.site-header .brand,
.site-header .site-nav a {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.055);
}

.site-header .site-nav a {
  color: rgba(255, 255, 255, 0.78);
}

.site-header .site-nav a:hover,
.site-header .site-nav a.is-active {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.site-header .header-action {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(47, 95, 255, 0.82);
  box-shadow:
    0 8px 18px rgba(33, 77, 215, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

/* Desktop deck: every major chapter settles into one complete viewport. */
@media (min-width: 981px) {
  html {
    scroll-padding-top: 0;
  }

  main > .section-page {
    box-sizing: border-box;
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
    overflow: hidden;
    scroll-margin-top: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .story.section-page {
    display: grid;
    align-items: center;
    padding: 6.25rem 0 2.5rem;
  }

  .story.section-page .story-inner {
    max-height: calc(100svh - 8.75rem);
  }

  .experience.section-page,
  .projects.section-page,
  .skills.section-page {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: stretch;
    padding-top: 6.9rem;
    padding-bottom: 2rem;
  }

  .experience.section-page .section-heading,
  .projects.section-page .section-heading,
  .skills.section-page .section-heading {
    margin-bottom: 1.15rem;
  }

  .experience.section-page .experience-studio,
  .projects.section-page .project-editorial,
  .skills.section-page .skill-layout {
    min-height: 0;
    height: 100%;
  }

  .experience.section-page .experience-rail,
  .projects.section-page .project-index {
    top: auto;
  }

  .projects.section-page .project-editorial {
    align-items: stretch;
  }

  .projects.section-page .project-stage {
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0.6rem;
  }

  .projects.section-page .project-stage::-webkit-scrollbar,
  .skills.section-page .skill-layout::-webkit-scrollbar {
    width: 0.38rem;
  }

  .projects.section-page .project-stage::-webkit-scrollbar-thumb,
  .skills.section-page .skill-layout::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(37, 89, 255, 0.28);
  }

  .skills.section-page .skill-layout {
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0.6rem;
  }

  .vision.section-page {
    display: grid;
    align-items: center;
    padding: 6.25rem 0 2.5rem;
  }

  .vision.section-page .vision-inner {
    max-height: calc(100svh - 8.75rem);
  }

  .resume.section-page {
    align-items: center;
    min-height: 100svh;
    padding-top: 6.25rem;
    padding-bottom: 2.5rem;
  }

  .resume.section-page .resume-preview {
    align-self: center;
    max-height: calc(100svh - 9rem);
    overflow: hidden;
  }

  .resume.section-page .resume-preview img {
    max-height: calc(100svh - 9rem);
    object-fit: cover;
    object-position: top;
  }
}

@media (min-width: 981px) and (max-height: 850px) {
  .story.section-page {
    padding-top: 4.9rem;
    padding-bottom: 1rem;
  }

  .story.section-page .story-seascape {
    width: min(78%, 30rem);
    margin-bottom: 0.9rem;
  }

  .story.section-page .story-copy p:not(.section-label) {
    font-size: 0.95rem;
    line-height: 1.68;
  }

  .story.section-page .education-panel {
    gap: 0.65rem;
    padding: 0.8rem;
  }

  .story.section-page .school-card {
    padding: 0.65rem;
  }

  .story.section-page .story-actions {
    gap: 0.55rem;
  }

  .story.section-page .marquee {
    gap: 0.5rem;
    margin-top: 0.8rem;
  }

  .story.section-page .marquee-row {
    gap: 0.5rem;
  }

  .story.section-page .marquee-row span {
    padding: 0.48rem 0.72rem;
    font-size: 0.78rem;
  }

  .experience.section-page,
  .projects.section-page,
  .skills.section-page {
    padding-top: 5.25rem;
    padding-bottom: 1.1rem;
  }

  .experience.section-page .section-heading,
  .projects.section-page .section-heading,
  .skills.section-page .section-heading {
    margin-bottom: 0.55rem;
  }

  .experience.section-page .section-heading p,
  .projects.section-page .section-heading p,
  .skills.section-page .section-heading p {
    margin-bottom: 0.25rem;
  }

  .experience.section-page .section-heading h2,
  .projects.section-page .section-heading h2,
  .skills.section-page .section-heading h2 {
    font-size: 2.7rem;
    line-height: 1.08;
  }

  .experience.section-page .section-heading span,
  .projects.section-page .section-heading span,
  .skills.section-page .section-heading span {
    margin-top: 0.45rem;
    font-size: 0.9rem;
    line-height: 1.55;
  }
}

/* Projects: a compact timeline controls one full-width, horizontal card stage. */
@media (min-width: 981px) {
  .projects.section-page {
    padding-top: 5.1rem;
    padding-bottom: 1.35rem;
  }

  .projects.section-page .section-heading {
    margin-bottom: 0.2rem;
  }

  .projects.section-page .section-heading p {
    margin-bottom: 0.25rem;
  }

  .projects.section-page .section-heading span {
    margin-top: 0.48rem;
  }

  .projects.section-page .project-editorial {
    gap: 0.2rem;
  }

  .projects.section-page .project-index {
    min-height: 7rem;
    margin: 0 0 0.45rem;
    padding: 0;
  }

  .projects.section-page .project-index-item {
    min-height: 7rem;
  }

  .projects.section-page .project-index::before,
  .projects.section-page .project-index-item::before,
  .projects.section-page .project-index-item::after {
    top: 50%;
  }

  .projects.section-page .project-index-item:nth-child(odd) b {
    bottom: calc(50% + 2.25rem);
  }

  .projects.section-page .project-index-item:nth-child(odd) small {
    bottom: calc(50% + 0.95rem);
  }

  .projects.section-page .project-index-item:nth-child(even) b {
    top: calc(50% + 2.25rem);
  }

  .projects.section-page .project-index-item:nth-child(even) small {
    top: calc(50% + 0.95rem);
  }

  .projects.section-page .project-stage {
    position: relative;
    display: block;
    height: min(var(--project-active-height, 31rem), 32rem, calc(100svh - 19rem));
    max-height: none;
    min-height: 0;
    overflow: hidden;
    padding-right: 0;
    margin-top: 0.55rem;
    isolation: isolate;
    touch-action: pan-y;
    cursor: grab;
    transition: height 0.32s cubic-bezier(0.22, 0.84, 0.32, 1);
  }

  .projects.section-page .project-stage.is-dragging,
  .projects.section-page .project-stage.is-dragging * {
    cursor: grabbing;
    user-select: none;
  }

  .projects.section-page .project-case,
  .projects.section-page .project-case[hidden] {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 12%;
    display: block;
    width: 76%;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    margin: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: block !important;
    opacity: 0;
    filter: blur(4px);
    pointer-events: none;
    transform: translate3d(var(--project-slide-offset, 0%), 0, 0) scale(0.9) !important;
    transform-origin: center center;
    will-change: transform, opacity, filter;
    transition:
      transform 0.72s cubic-bezier(0.22, 0.86, 0.28, 1),
      opacity 0.42s ease,
      filter 0.42s ease,
      box-shadow 0.42s ease;
  }

  .projects.section-page .project-case.is-neighbor {
    z-index: 1;
    opacity: 0.3;
    filter: blur(1.75px);
    transform: translate3d(var(--project-slide-offset, 0%), 0, 0) scale(0.94) !important;
  }

  .projects.section-page .project-case.is-far {
    z-index: 0;
  }

  .projects.section-page .project-case.is-active {
    z-index: 2;
    opacity: 1;
    filter: none;
    pointer-events: auto;
    transform: translate3d(var(--project-slide-offset, 0%), 0, 0) scale(1) !important;
    box-shadow: 0 1.25rem 2.8rem rgba(33, 55, 107, 0.13);
  }

  .projects.section-page .project-case > p {
    margin-bottom: 0.7rem;
  }

  .projects.section-page .project-case ul {
    margin-top: 0.7rem;
  }
}

@media (min-width: 981px) and (max-height: 850px) {
  .projects.section-page {
    padding-top: 4.65rem;
    padding-bottom: 1rem;
  }

  .projects.section-page .project-index,
  .projects.section-page .project-index-item {
    min-height: 6.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .projects.section-page .project-case {
    transition: none !important;
  }

  .projects.section-page .project-stage {
    transition: none;
  }
}

/* Final color hierarchy: purple stays in the atmosphere, blue carries information. */
:root {
  --info-blue: #4f7cff;
  --info-blue-bright: #89a8ff;
  --info-blue-deep: #2f5fff;
}

.experience.section-page .section-heading p,
.projects.section-page .section-heading p,
.skills.section-page .section-heading p,
.resume.section-page .section-heading p,
.experience-rail-item.is-active,
.experience-rail-item:hover,
.experience-rail-item:focus-visible,
.project-index-item.is-active,
.project-index-item:hover,
.project-index-item:focus-visible,
.project-index-item.is-active b,
.project-index-item.is-active small,
.project-panel > span,
.project-panel strong {
  color: var(--info-blue-bright);
}

.experience-rail-item.is-active::before,
.project-index-item.is-active::before,
.project-editorial .project-index-item:hover::before,
.project-editorial .project-index-item:focus-visible::before,
.project-editorial .project-index-item.is-active::before {
  background: var(--info-blue);
  box-shadow: 0 0 0 0.48rem rgba(79, 124, 255, 0.15), 0 0 1rem rgba(79, 124, 255, 0.68);
}

.project-editorial .project-index-item:hover::after,
.project-editorial .project-index-item:focus-visible::after,
.project-editorial .project-index-item.is-active::after {
  border-color: rgba(137, 168, 255, 0.62);
}

.skills.section-page .section-heading p,
.resume.section-page .section-heading p {
  color: var(--info-blue);
}

.skills.section-page .skill-block {
  border-color: rgba(134, 164, 255, 0.28);
  background:
    linear-gradient(145deg, rgba(72, 102, 192, 0.16), transparent 55%),
    rgba(20, 22, 33, 0.9);
  box-shadow: 0 1.35rem 3rem rgba(0, 0, 0, 0.3);
}

.skills.section-page .skill-block:nth-child(2) {
  background:
    linear-gradient(145deg, rgba(108, 44, 145, 0.16), transparent 55%),
    rgba(20, 22, 33, 0.9);
}

.skills.section-page .skill-block h3 {
  color: #f7f9ff;
}

.skills.section-page .skill-tag {
  border-color: rgba(134, 164, 255, 0.35);
  background: rgba(79, 124, 255, 0.12);
  color: #e8efff;
}

.skills.section-page .skill-tag:nth-child(3n + 2) {
  border-color: rgba(126, 205, 190, 0.38);
  background: rgba(66, 161, 143, 0.12);
}

.skills.section-page .skill-tag:nth-child(3n) {
  border-color: rgba(224, 147, 171, 0.36);
  background: rgba(164, 72, 105, 0.12);
}

.skills.section-page .tag-list span {
  border-color: rgba(134, 164, 255, 0.35);
  background: rgba(79, 124, 255, 0.12);
  color: #e8efff;
}

.skills.section-page .tag-list span:nth-child(3n + 2) {
  border-color: rgba(126, 205, 190, 0.38);
  background: rgba(66, 161, 143, 0.12);
}

.skills.section-page .tag-list span:nth-child(3n) {
  border-color: rgba(224, 147, 171, 0.36);
  background: rgba(164, 72, 105, 0.12);
}

.resume.section-page .button.primary {
  border-color: rgba(147, 174, 255, 0.75);
  background: linear-gradient(135deg, #3569ff, #2148c9);
  box-shadow: 0 0.9rem 1.9rem rgba(37, 89, 255, 0.24);
}

@media (min-width: 981px) {
  .skills.section-page .section-heading,
  .skills.section-page .skill-layout {
    transform: translateY(2.35rem);
  }

  .skills.section-page .skill-layout {
    align-self: center;
  }
}

/* Vision belongs to the same quiet purple atmosphere as the rest of the site. */
.vision.section-page {
  background:
    radial-gradient(circle at 10% 86%, rgba(108, 44, 145, 0.25), transparent 32rem),
    radial-gradient(circle at 90% 12%, rgba(187, 133, 219, 0.15), transparent 28rem),
    linear-gradient(135deg, #17111e 0%, #111019 58%, #18111e 100%);
}

.vision.section-page::before {
  background:
    linear-gradient(rgba(210, 187, 229, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(210, 187, 229, 0.035) 1px, transparent 1px);
}

.vision.section-page .vision-copy p {
  color: rgba(237, 229, 244, 0.76);
}

.vision.section-page .vision-card {
  border-color: rgba(207, 165, 231, 0.3);
  background:
    linear-gradient(145deg, rgba(130, 73, 169, 0.2), transparent 62%),
    rgba(28, 22, 37, 0.72);
  box-shadow: 0 1.35rem 3.2rem rgba(5, 3, 9, 0.28);
}

.vision.section-page .vision-card h3 {
  color: #fbf8ff;
}

.vision.section-page .vision-card ul {
  color: rgba(239, 232, 246, 0.78);
}

/* Unified night-violet system: one atmosphere, one hierarchy, one interaction color. */
:root {
  --night-violet: #0f0b14;
  --night-violet-deep: #0a0810;
  --violet-surface: #18111f;
  --violet-surface-raised: #21172a;
  --violet-line: rgba(209, 177, 229, 0.2);
  --violet-line-strong: rgba(209, 177, 229, 0.36);
  --violet-text: #f5eff8;
  --violet-text-soft: #c4b8cb;
  --violet-text-dim: #918596;
  --violet-accent: #a873cf;
  --violet-accent-bright: #d1ace7;
  --violet-accent-deep: #713f93;
}

body,
.section:not(.section-dark),
.projects.section-page,
.skills.section-page,
.resume.section-page {
  background:
    radial-gradient(circle at 88% 12%, rgba(127, 68, 160, 0.17), transparent 30rem),
    radial-gradient(circle at 8% 90%, rgba(96, 48, 124, 0.14), transparent 31rem),
    linear-gradient(135deg, var(--night-violet) 0%, #120d18 55%, var(--night-violet-deep) 100%);
  color: var(--violet-text);
}

.intro-splash,
.hero,
.story.section-page,
.vision.section-page {
  background-color: var(--night-violet);
}

.intro-splash,
.hero,
.story.section-page,
.vision.section-page,
.section:not(.section-dark),
.projects.section-page,
.skills.section-page,
.resume.section-page {
  color: var(--violet-text);
}

.section-heading h2,
.section-heading h3,
.story-copy h2,
.vision-copy h2,
.resume-copy h2,
.experience-story h3,
.project-editorial .project-case h3,
.skill-block h3,
.vision-card h3 {
  color: var(--violet-text);
}

.section-heading p,
.section-heading span,
.story-copy p:not(.section-label),
.vision-copy p,
.resume-copy p,
.experience-story p,
.experience-story li,
.project-editorial .project-case p,
.project-editorial .project-case li,
.vision-card ul,
.skill-block p {
  color: var(--violet-text-soft);
}

.section-label,
.experience-role,
.project-panel > span,
.project-editorial .project-case > span,
.vision-card span,
.skills.section-page .section-heading p,
.resume.section-page .section-heading p {
  color: var(--violet-accent-bright);
}

.site-header {
  border-color: rgba(227, 208, 239, 0.3);
  background:
    linear-gradient(132deg, rgba(241, 232, 247, 0.18), rgba(105, 72, 125, 0.08) 46%, rgba(20, 13, 27, 0.18)),
    rgba(20, 15, 27, 0.68);
  box-shadow:
    0 16px 38px rgba(4, 2, 7, 0.34),
    inset 0 1px 0 rgba(255, 248, 255, 0.24),
    inset 0 -1px 0 rgba(232, 213, 243, 0.08);
}

.site-header .brand,
.site-header .site-nav a {
  border-color: rgba(232, 214, 243, 0.18);
  background: rgba(255, 248, 255, 0.05);
  color: rgba(247, 239, 250, 0.82);
}

.site-header .site-nav a:hover,
.site-header .site-nav a.is-active {
  border-color: rgba(223, 193, 240, 0.4);
  background: rgba(178, 121, 209, 0.17);
  color: var(--violet-text);
}

.site-header .header-action,
.button.primary,
.resume.section-page .button.primary {
  border-color: rgba(237, 216, 248, 0.44);
  background: linear-gradient(135deg, #a36acb, #703d92);
  color: #fffaff;
  box-shadow:
    0 0.8rem 1.8rem rgba(91, 43, 122, 0.32),
    inset 0 1px 0 rgba(255, 249, 255, 0.28);
}

.button.secondary,
.story-action-buttons .button.secondary {
  border-color: var(--violet-line-strong);
  background: rgba(255, 248, 255, 0.06);
  color: var(--violet-text);
}

.button.secondary:hover,
.story-action-buttons .button.secondary:hover {
  border-color: rgba(218, 179, 239, 0.62);
  background: rgba(168, 115, 207, 0.15);
}

.experience-rail,
.project-index {
  border-color: var(--violet-line);
}

.experience-rail-item,
.project-index-item,
.experience-rail-item span,
.project-index-item span,
.project-index-item small {
  color: var(--violet-text-dim);
}

.experience-rail-item::before,
.project-index-item::before {
  border-color: rgba(245, 237, 249, 0.88);
  background: #63546d;
  box-shadow: 0 0 0 1px rgba(209, 177, 229, 0.14);
}

.experience-rail-item:hover,
.experience-rail-item:focus-visible,
.experience-rail-item.is-active,
.project-index-item:hover,
.project-index-item:focus-visible,
.project-index-item.is-active,
.project-index-item.is-active b,
.project-index-item.is-active small {
  color: var(--violet-accent-bright);
}

.experience-rail-item.is-active::before,
.project-index-item.is-active::before,
.project-editorial .project-index-item:hover::before,
.project-editorial .project-index-item:focus-visible::before,
.project-editorial .project-index-item.is-active::before {
  background: var(--violet-accent);
  box-shadow: 0 0 0 0.48rem rgba(168, 115, 207, 0.16), 0 0 1rem rgba(190, 142, 220, 0.58);
}

.project-index::before,
.project-editorial .project-index::before {
  background: linear-gradient(90deg, rgba(168, 115, 207, 0.18), rgba(196, 151, 225, 0.58), rgba(168, 115, 207, 0.18));
}

.project-index-item::after,
.project-editorial .project-index-item::after {
  background: rgba(183, 130, 213, 0.3);
}

.project-editorial .project-index-item:hover::after,
.project-editorial .project-index-item:focus-visible::after,
.project-editorial .project-index-item.is-active::after {
  border-color: rgba(209, 172, 231, 0.68);
  background: transparent;
}

.experience-story,
.experience-story.is-active,
.project-editorial .project-case,
.project-editorial .project-case.is-active,
.skills.section-page .skill-block,
.skills.section-page .skill-block:nth-child(2),
.vision.section-page .vision-card {
  border-color: var(--violet-line);
  background:
    linear-gradient(145deg, rgba(160, 107, 191, 0.12), transparent 58%),
    rgba(26, 18, 34, 0.88);
  box-shadow: 0 1.3rem 3rem rgba(3, 2, 7, 0.3);
}

.experience-story,
.experience-story.is-active {
  border-left-color: rgba(168, 115, 207, 0.66);
}

.experience-story::after {
  background: linear-gradient(90deg, transparent, rgba(168, 115, 207, 0.11));
}

.experience-story.is-active .timeline-meta time,
.project-editorial .project-case > span,
.project-editorial .project-case strong {
  color: var(--violet-accent-bright);
}

.project-editorial .project-case {
  border-top-color: var(--violet-accent);
  border-right-color: var(--violet-line);
  border-bottom-color: var(--violet-line);
  border-left-color: var(--violet-line);
}

.project-editorial .project-case li strong,
.experience-story li strong {
  color: var(--violet-accent-bright);
}

.experience-stage,
.projects.section-page .project-stage,
.skills.section-page .skill-layout {
  scrollbar-color: rgba(177, 124, 209, 0.48) transparent;
}

.experience-stage::-webkit-scrollbar-thumb,
.projects.section-page .project-stage::-webkit-scrollbar-thumb,
.skills.section-page .skill-layout::-webkit-scrollbar-thumb {
  background: rgba(177, 124, 209, 0.46);
}

.skills.section-page .skill-block h3 {
  color: var(--violet-text);
}

.skills.section-page .skill-tag,
.skills.section-page .tag-list span,
.skills.section-page .skill-tag:nth-child(3n + 2),
.skills.section-page .skill-tag:nth-child(3n),
.skills.section-page .tag-list span:nth-child(3n + 2),
.skills.section-page .tag-list span:nth-child(3n) {
  border-color: rgba(206, 176, 225, 0.28);
  background: rgba(182, 130, 211, 0.1);
  color: #e9dff0;
}

.skills.section-page .skill-tag:nth-child(3n + 2),
.skills.section-page .tag-list span:nth-child(3n + 2) {
  background: rgba(139, 101, 172, 0.13);
}

.skills.section-page .skill-tag:nth-child(3n),
.skills.section-page .tag-list span:nth-child(3n) {
  background: rgba(111, 78, 143, 0.15);
}

.company-logo {
  border-color: rgba(224, 206, 234, 0.3);
  background: rgba(250, 246, 252, 0.94);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.vision.section-page .vision-card {
  border-color: rgba(211, 174, 233, 0.3);
}

.vision.section-page .vision-card span {
  color: var(--violet-accent-bright);
}

.story-contact,
.story-contact a {
  color: var(--violet-text-soft);
}

.story-contact a:hover {
  color: var(--violet-accent-bright);
}

.experience.section-page .section-heading > p,
.projects.section-page .section-heading > p,
.skills.section-page .section-heading > p,
.resume.section-page .section-label {
  color: var(--violet-accent-bright);
}

.experience-story .experience-role {
  color: var(--violet-accent-bright) !important;
}

.experience-story .experience-summary {
  color: var(--violet-text-soft) !important;
}

/* Experience rail settles lower into the card field; internal scroll stays in the violet system. */
@media (min-width: 981px) {
  .experience.section-page .experience-rail {
    transform: translateY(1.3rem);
  }

  .experience.section-page .experience-story,
  .experience.section-page .experience-stage {
    scrollbar-color: rgba(177, 124, 209, 0.48) transparent;
  }

  .experience.section-page .experience-story::-webkit-scrollbar,
  .experience.section-page .experience-stage::-webkit-scrollbar {
    width: 0.38rem;
  }

  .experience.section-page .experience-story::-webkit-scrollbar-track,
  .experience.section-page .experience-stage::-webkit-scrollbar-track {
    background: rgba(255, 248, 255, 0.035);
  }

  .experience.section-page .experience-story::-webkit-scrollbar-thumb,
  .experience.section-page .experience-stage::-webkit-scrollbar-thumb {
    border: 1px solid rgba(245, 233, 252, 0.12);
    border-radius: 999px;
    background: rgba(177, 124, 209, 0.52);
  }
}

/* Keep the single-line opening statement near the visual center of the hero. */
@media (min-width: 981px) {
  .hero-line {
    top: 44%;
    width: min(64rem, calc(100% - 3rem));
    white-space: nowrap;
  }
}

.hero-kicker {
  color: rgba(229, 210, 241, 0.88);
}

.hero-metrics div {
  border-color: rgba(220, 194, 236, 0.22);
  border-left-color: rgba(193, 141, 223, 0.88);
  background: rgba(42, 27, 53, 0.42);
}

.hero-metrics span,
.hero-metrics p,
.hero-contact {
  color: rgba(235, 225, 242, 0.76);
}

/* Project deck: reserve space for the timeline and let every visible card follow the hand. */
@media (min-width: 981px) {
  .projects.section-page .section-heading {
    margin-bottom: 0.52rem;
  }

  .projects.section-page .project-editorial {
    gap: 0.45rem;
    margin-top: 0.34rem;
  }

  .projects.section-page .project-index {
    min-height: 7.5rem;
    margin-bottom: 0.86rem;
  }

  .projects.section-page .project-index-item {
    min-height: 7.5rem;
  }

  .projects.section-page .project-index-item:nth-child(even) b {
    top: calc(50% + 0.95rem);
  }

  .projects.section-page .project-index-item:nth-child(even) small {
    top: calc(50% + 2.25rem);
  }

  .projects.section-page .project-stage {
    margin-top: 0.92rem;
  }

  .projects.section-page .project-case,
  .projects.section-page .project-case[hidden] {
    transform: translate3d(
        calc(var(--project-slide-offset, 0%) + var(--project-drag-offset, 0px)),
        0,
        0
      ) scale(0.9) !important;
  }

  .projects.section-page .project-case.is-neighbor {
    transform: translate3d(
        calc(var(--project-slide-offset, 0%) + var(--project-drag-offset, 0px)),
        0,
        0
      ) scale(0.94) !important;
  }

  .projects.section-page .project-case.is-active {
    transform: translate3d(
        calc(var(--project-slide-offset, 0%) + var(--project-drag-offset, 0px)),
        0,
        0
      ) scale(1) !important;
  }
}

/* Hover and focus states stay in the same violet system as the active timeline node. */
.projects.section-page .project-index-item:hover,
.projects.section-page .project-index-item:focus-visible,
.projects.section-page .project-index-item.is-active,
.projects.section-page .project-index-item:hover b,
.projects.section-page .project-index-item:hover small,
.projects.section-page .project-index-item:focus-visible b,
.projects.section-page .project-index-item:focus-visible small,
.projects.section-page .project-index-item.is-active b,
.projects.section-page .project-index-item.is-active small {
  color: var(--violet-accent-bright) !important;
}

/* Keep the final two parts inside their own viewport while preserving the page-by-page scroll rhythm. */
.resume.section-page .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-sizing: border-box;
  color: rgba(249, 244, 255, 0.74);
  background: linear-gradient(100deg, #1a1022 0%, #281733 52%, #1c1126 100%);
  border-top: 1px solid rgba(207, 166, 236, 0.25);
  box-shadow: 0 -12px 30px rgba(7, 4, 12, 0.18);
}

@media (min-width: 981px) {
  .story.section-page .marquee {
    margin-top: 0.35rem;
    transform: translateY(-2.5rem);
  }

  .resume.section-page {
    grid-template-columns: minmax(19rem, 28rem) minmax(28rem, 39rem);
    grid-template-rows: minmax(0, 1fr) auto;
    justify-content: center;
    gap: 0.75rem clamp(2rem, 3vw, 3.5rem);
    align-items: stretch;
    padding-top: 5.6rem;
    padding-bottom: 0;
  }

  .resume.section-page .resume-copy {
    position: static;
    top: auto;
    align-self: center;
    justify-self: end;
    width: 100%;
    max-width: 28rem;
  }

  .resume.section-page .resume-preview {
    align-self: center;
    justify-self: start;
    width: auto;
    height: min(70svh, 43.5rem);
    max-width: 100%;
    max-height: none;
    aspect-ratio: 595.92 / 842.88;
    overflow: hidden;
    background: #ffffff;
  }

  .resume.section-page .resume-preview img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center;
  }

  .resume.section-page .site-footer {
    grid-column: 1 / -1;
    width: 100vw;
    min-height: 4.25rem;
    margin-inline: calc(50% - 50vw);
    padding: 1.05rem max(1.5rem, calc((100vw - 1180px) / 2));
    align-self: end;
  }
}

/* The opening sequence belongs to the same night-violet system as the rest of the site. */
.intro-splash {
  background:
    radial-gradient(circle at 50% 50%, rgba(134, 80, 164, 0.16), transparent 34rem),
    linear-gradient(90deg, rgba(230, 211, 244, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(230, 211, 244, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #181020 0%, #100b16 54%, #160d1e 100%);
  background-size: auto, 60px 60px, 60px 60px, auto;
}

.hero,
.hero-sticky {
  background:
    radial-gradient(ellipse at 76% 42%, rgba(132, 79, 163, 0.18), transparent 40rem),
    linear-gradient(135deg, #181020 0%, #100b16 54%, #160d1e 100%);
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(16, 10, 22, 0.38), rgba(16, 10, 22, 0.62) 56%, rgba(16, 10, 22, 0.86)),
    linear-gradient(90deg, rgba(16, 10, 22, 0.7), transparent 54%, rgba(16, 10, 22, 0.38));
}

@media (max-width: 980px) {
  .resume.section-page .site-footer {
    width: calc(100% + 3rem);
    margin: 1.5rem -1.5rem -1.5rem;
    padding: 1rem 1.5rem;
  }
}
