:root {
  --page-bg: #f5f7f4;
  --paper: #ffffff;
  --paper-edge: rgba(220, 229, 223, 0.9);
  --ink: #1f2937;
  --muted: #6b7280;
  --body: #374151;
  --line: #dce5df;
  --line-soft: #dce5df;
  --accent: #2f6b57;
  --accent-deep: #245443;
  --accent-soft: #7fbfa3;
  --tag-bg: #ddefe6;
  --panel: #ffffff;
  --button-hover: #285846;
  --shadow: 0 38px 96px rgba(31, 41, 55, 0.1);
  --shadow-soft: 0 16px 34px rgba(31, 41, 55, 0.06);
  --intro-blue: #80b8ff;
  --intro-blue-deep: #5a8fda;
  --intro-blue-soft: rgba(128, 184, 255, 0.14);
  --intro-blue-line: rgba(128, 184, 255, 0.3);
  --intro-blue-glow: rgba(118, 176, 255, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.76), transparent 34%),
    linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg) 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(47, 107, 87, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 107, 87, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 88%);
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 12%, rgba(127, 191, 163, 0.12), transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(47, 107, 87, 0.07), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
}

.site-bg::before,
.site-bg::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(22px);
}

.site-bg::before {
  top: 80px;
  left: 5vw;
  width: 260px;
  height: 260px;
  background: rgba(255, 255, 255, 0.62);
}

.site-bg::after {
  right: 5vw;
  bottom: 10vh;
  width: 300px;
  height: 300px;
  background: rgba(127, 191, 163, 0.2);
}

.intro-screen {
  --intro-card-width: min(44vw, 500px);
  --intro-card-height: clamp(150px, 20vh, 210px);
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
  contain: layout paint;
  background-color: #f5f7f4;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 247, 1) 38%, rgba(245, 247, 244, 1) 100%);
  transition: opacity 560ms ease, visibility 560ms ease;
}

.intro-panels {
  position: absolute;
  inset: 0;
}

.intro-panel {
  position: absolute;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(245, 247, 244, 1));
  box-shadow: inset 0 0 0 1px rgba(220, 229, 223, 0.66);
}

.intro-panel-left,
.intro-panel-right {
  top: 0;
  bottom: 0;
  width: 50%;
}

.intro-panel-left {
  left: 0;
  border-right: 1px solid rgba(220, 229, 223, 0.68);
  animation: panel-left 0.92s cubic-bezier(0.64, 0.01, 0.3, 1) forwards;
}

.intro-panel-right {
  right: 0;
  border-left: 1px solid rgba(220, 229, 223, 0.68);
  animation: panel-right 0.92s cubic-bezier(0.64, 0.01, 0.3, 1) forwards;
}

.intro-wave {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  contain: layout paint;
}

.intro-wave::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(248, 250, 247, 0.74) 28%,
    rgba(218, 228, 223, 0.68) 66%,
    rgba(197, 210, 204, 0.82) 100%
  );
  opacity: 0.9;
  transition: opacity 520ms ease;
}

.intro-wave-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--line-width, 2px);
  height: 180vmax;
  transform: translate(-50%, -50%) translateX(0) scaleY(0.9);
  transform-origin: center center;
  background: linear-gradient(
    180deg,
    rgba(127, 191, 163, 0),
    rgba(127, 191, 163, 0.76) 16%,
    rgba(47, 107, 87, 0.94) 50%,
    rgba(127, 191, 163, 0.76) 84%,
    rgba(127, 191, 163, 0)
  );
  opacity: 0;
  animation: wave-door var(--line-duration, 1.18s) cubic-bezier(0.54, 0.05, 0.3, 1) forwards;
  animation-delay: var(--line-delay, 0ms);
  z-index: 1;
}

.intro-wave-line--h {
  width: 180vmax;
  height: var(--line-width, 2px);
  transform: translate(-50%, -50%) translateY(0) scaleX(0.9);
  background: linear-gradient(
    90deg,
    rgba(127, 191, 163, 0),
    rgba(127, 191, 163, 0.76) 16%,
    rgba(47, 107, 87, 0.94) 50%,
    rgba(127, 191, 163, 0.76) 84%,
    rgba(127, 191, 163, 0)
  );
  animation-name: wave-door-h;
}

.intro-wave-crosses {
  position: absolute;
  inset: 0;
  z-index: 6;
  contain: layout paint;
}

.intro-wave-rects {
  position: absolute;
  inset: 0;
  z-index: 4;
  contain: layout paint;
}

.intro-focus-proxy {
  position: absolute;
  left: var(--intro-focus-left, 50%);
  top: var(--intro-focus-top, 50%);
  width: var(--intro-focus-width, 0px);
  height: var(--intro-focus-height, 0px);
  border: 1.3px solid rgba(215, 176, 74, 0.9);
  border-radius: var(--intro-focus-start-radius, 18px);
  box-sizing: border-box;
  opacity: 0;
  transform: translate(-50%, -50%)
    translate3d(var(--intro-focus-start-delta-x, 0), var(--intro-focus-start-delta-y, 0), 0)
    scale(var(--intro-focus-start-scale-x, 1), var(--intro-focus-start-scale-y, 1));
  box-shadow:
    0 0 10px rgba(215, 176, 74, 0.16),
    0 0 0 0.8px rgba(244, 213, 132, 0.26);
  transition:
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 160ms ease,
    box-shadow 520ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 5;
  will-change: transform, opacity;
}

.intro-screen.is-collapse-lines .intro-wave::before {
  opacity: 0.34;
}

.intro-screen.is-collapse-lines .intro-wave-line {
  animation: wave-door-out 560ms cubic-bezier(0.32, 0.02, 0.2, 1) var(--line-exit-delay, 0ms) both;
}

.intro-screen.is-collapse-lines .intro-wave-line--h {
  animation-name: wave-door-h-out;
}

.intro-cell-rect {
  position: absolute;
  left: var(--rect-left, 50%);
  top: var(--rect-top, 50%);
  width: var(--rect-width, 0px);
  height: var(--rect-height, 0px);
  box-sizing: border-box;
  border: 1.3px solid rgba(128, 184, 255, 0.82);
  border-radius: var(--rect-radius, 18px);
  box-shadow:
    0 0 10px rgba(118, 176, 255, 0.22),
    0 0 0 0.8px rgba(128, 184, 255, 0.34);
  opacity: 0;
  background: transparent;
  transform: translate(-50%, -50%) scale(0.95);
  transition:
    left 520ms cubic-bezier(0.22, 1, 0.36, 1),
    top 520ms cubic-bezier(0.22, 1, 0.36, 1),
    width 520ms cubic-bezier(0.22, 1, 0.36, 1),
    height 520ms cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 520ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 520ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.intro-cell-rect.is-on {
  opacity: var(--rect-opacity, 0.46);
  transform: translate(-50%, -50%) scale(1);
}

.intro-screen.is-rect-focus .intro-cell-rect {
  opacity: 0;
  transform: translate(-50%, -50%)
    scale(calc(0.28 + (1 - var(--rect-distance, 0)) * 0.14));
}

.intro-screen.is-rect-focus .intro-cell-rect.is-on:not(.is-focus-source) {
  opacity: 0;
  box-shadow: none;
  border-color: rgba(215, 176, 74, 0.12);
  transform: translate(-50%, -50%)
    scale(calc(0.04 + (1 - var(--rect-distance, 0)) * 0.1));
}

.intro-screen.is-load-phase .intro-cell-rect.is-on {
  border-color: rgba(215, 176, 74, 0.84);
  box-shadow:
    0 0 14px rgba(215, 176, 74, 0.18),
    0 0 0 0.8px rgba(244, 213, 132, 0.32);
  opacity: calc(var(--rect-opacity, 0.46) + 0.1);
}

.intro-screen.is-rect-focus .intro-cell-rect.is-focus-source {
  opacity: 0;
  box-shadow: none;
}

.intro-focus-proxy.is-active {
  opacity: 0.92;
  border-radius: var(--intro-focus-radius, 24px);
  transform: translate(-50%, -50%) translate3d(0, 0, 0) scale(1, 1);
  box-shadow:
    0 0 12px rgba(215, 176, 74, 0.24),
    0 0 0 1px rgba(244, 213, 132, 0.36);
}

.intro-cross {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--cross-size, 5px);
  height: var(--cross-size, 5px);
  border-radius: 999px;
  background: rgba(122, 182, 255, 0.98);
  box-shadow:
    0 0 8px rgba(118, 176, 255, 0.72),
    0 0 14px rgba(154, 204, 255, 0.4);
  opacity: 0;
  transform: translate(-50%, -50%) translateX(0) translateY(0) scale(0.5);
  animation: cross-move var(--cross-duration, 1.2s) cubic-bezier(0.54, 0.05, 0.3, 1) forwards;
  animation-delay: var(--cross-delay, 0ms);
}

.intro-cross::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 1px solid rgba(132, 190, 255, 0.84);
  opacity: 0;
  animation: cross-pulse-in 0.92s ease-out both;
  animation-delay: calc(var(--cross-delay, 0ms) + 120ms);
}

.intro-screen.is-collapse-lines .intro-cross {
  animation: cross-fade-out 420ms ease var(--cross-exit-delay, 0ms) both;
}

.intro-screen.is-collapse-lines .intro-cross::before {
  animation: cross-ring-fade-out 420ms ease var(--cross-exit-delay, 0ms) both;
}

.intro-core {
  position: relative;
  z-index: 7;
  width: min(var(--intro-card-width), calc(100vw - 44px));
  min-height: var(--intro-card-height);
  padding: 14px clamp(14px, 1.8vw, 24px);
  border-radius: 26px;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  color: var(--accent-deep);
  opacity: 0;
  transform: scale(0.965);
  transform-origin: center center;
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.intro-title-ghost {
  position: absolute;
  left: var(--intro-title-start-left, 50%);
  top: var(--intro-title-start-top, 50%);
  z-index: 8;
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-weight: 600;
  font-size: var(--intro-title-start-size, clamp(2.3rem, 6vw, 4.2rem));
  letter-spacing: var(--intro-title-start-spacing, 0.18em);
  text-indent: var(--intro-title-start-indent, 0.18em);
  line-height: var(--intro-title-start-line-height, 1.2);
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  will-change: transform, font-size, letter-spacing, text-indent, line-height, opacity;
  transition:
    transform 520ms cubic-bezier(0.2, 0.82, 0.2, 1),
    font-size 520ms cubic-bezier(0.22, 1, 0.36, 1),
    letter-spacing 520ms cubic-bezier(0.22, 1, 0.36, 1),
    text-indent 520ms cubic-bezier(0.22, 1, 0.36, 1),
    line-height 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 140ms ease;
}

.intro-screen.is-core-visible .intro-core {
  opacity: 1;
  transform: scale(1);
}

.intro-core::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 16px 30px -26px rgba(31, 41, 55, 0.42),
    0 4px 14px -12px rgba(31, 41, 55, 0.26);
  z-index: -2;
  transition: opacity 320ms ease;
}

.intro-core > * {
  position: relative;
  z-index: 1;
  transition:
    opacity 320ms ease,
    transform 320ms ease;
}

.intro-kicker,
.intro-subtitle {
  margin: 0;
  color: var(--muted);
}

.intro-kicker {
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  font-size: 0.88rem;
}

.intro-line {
  display: block;
  width: 78px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 107, 87, 0.72), transparent);
  opacity: 0.75;
}

.intro-title {
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: opacity 320ms ease;
}

.intro-screen.is-title-travel .intro-core::before {
  opacity: 0;
}

.intro-screen.is-title-travel .intro-core > :not(.intro-title) {
  opacity: 0;
  transform: scale(0.96);
}

.intro-screen.is-title-travel .intro-title {
  opacity: 0;
}

.intro-screen.is-title-travel .intro-title-ghost {
  transform: translate3d(var(--intro-title-delta-x, 0), var(--intro-title-delta-y, 0), 0);
  font-size: var(--intro-title-target-size, 4rem);
  letter-spacing: var(--intro-title-target-spacing, 0.08em);
  text-indent: var(--intro-title-target-indent, 0);
  line-height: var(--intro-title-target-line-height, 1.2);
  opacity: 1;
}

.intro-subtitle {
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  font-size: 0.94rem;
}

body.is-loaded .intro-screen {
  opacity: 0;
  visibility: hidden;
}

.resume-page {
  position: relative;
  width: min(1080px, calc(100% - 32px));
  margin: 28px auto 48px;
  padding: 28px 42px 46px;
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  border-radius: 24px;
  box-shadow: var(--shadow);
  contain: layout paint;
}

.resume-page::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0)),
    linear-gradient(120deg, rgba(128, 184, 255, 0.08), transparent 26%);
}

.resume-page::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 16px;
  border: 1px solid rgba(220, 229, 223, 0.9);
  pointer-events: none;
}

.resume-page .toolbar::before {
  content: "";
  position: absolute;
  top: -28px;
  left: 0;
  width: 160px;
  height: 2px;
  background: linear-gradient(90deg, rgba(128, 184, 255, 0.95), rgba(128, 184, 255, 0.08));
}

.toolbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 16px;
  background: var(--page-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding-bottom: 18px;
}

.toolbar-note,
.toolbar-link {
  font-size: 0.92rem;
  color: var(--muted);
}

.toolbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(128, 184, 255, 0.92), rgba(90, 143, 218, 0.96));
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 12px 24px -16px var(--intro-blue-glow);
  transition: background-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.toolbar-link:hover {
  background: linear-gradient(135deg, rgba(110, 170, 248, 0.96), rgba(82, 133, 210, 0.98));
  box-shadow: 0 14px 28px -16px rgba(118, 176, 255, 0.34);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 34px;
  align-items: start;
  padding: 34px 0 20px;
  border-bottom: 1px solid rgba(128, 184, 255, 0.18);
  background:
    radial-gradient(circle at 12% 18%, rgba(128, 184, 255, 0.08), transparent 26%),
    radial-gradient(circle at 88% 12%, rgba(128, 184, 255, 0.05), transparent 20%);
}

.hero-main {
  position: relative;
  padding: 8px 0 0;
}

.hero-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 92px;
  height: 2px;
  background: linear-gradient(90deg, rgba(128, 184, 255, 0.96), rgba(128, 184, 255, 0));
}

.hero h1,
.section-title h2,
.subheading,
.entry-head h3,
.strength-card h3,
.education-card h3 {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
}

.hero-kicker {
  margin: 0 0 14px;
  color: var(--intro-blue-deep);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
}

.hero h1,
.hero-title {
  margin: 0;
  font-size: clamp(2.5rem, 4.8vw, 4rem);
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: var(--ink);
  opacity: 1;
  filter: none;
  transform: none;
  transition: none;
}

.hero-summary {
  max-width: 44rem;
  margin: 18px 0 0;
  color: var(--body);
  font-size: 1.02rem;
  line-height: 1.95;
  position: relative;
  z-index: 2;
  box-shadow: 0 18px 30px -30px rgba(118, 176, 255, 0.35);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  position: relative;
  z-index: 1;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(128, 184, 255, 0.34);
  background: linear-gradient(180deg, rgba(236, 245, 255, 0.96), rgba(224, 238, 255, 0.9));
  color: var(--intro-blue-deep);
  font-size: 0.92rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 20px -20px rgba(118, 176, 255, 0.35);
}

.hero-side {
  display: grid;
  gap: 16px;
}

.portrait-frame {
  width: 132px;
  justify-self: end;
  border: 1px solid rgba(128, 184, 255, 0.26);
  padding: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(239, 246, 255, 0.96));
  box-shadow:
    var(--shadow-soft),
    0 0 0 1px rgba(128, 184, 255, 0.06);
  position: relative;
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(128, 184, 255, 0.24);
  pointer-events: none;
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-list {
  display: grid;
  gap: 8px;
  justify-items: end;
  padding: 0;
  margin: 0;
  list-style: none;
  color: color-mix(in srgb, var(--muted) 72%, var(--intro-blue-deep) 28%);
  font-size: 0.94rem;
}

.resume-section {
  position: relative;
  margin-top: 28px;
}

.section-title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.section-title h2 {
  margin: 0;
  font-size: 1.22rem;
  color: var(--accent-deep);
  letter-spacing: 0.04em;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 84px;
  height: 2px;
  background: linear-gradient(90deg, rgba(127, 191, 163, 0.95), rgba(127, 191, 163, 0.12));
}

.compact-title {
  margin-bottom: 12px;
}

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

.strength-card,
.side-panel,
.featured-entry {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 244, 0.98));
  border: 1px solid rgba(220, 229, 223, 0.95);
  box-shadow: var(--shadow-soft);
}

.strength-card {
  padding: 20px 20px 22px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}

.float-card {
  transition:
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 300ms ease,
    border-color 300ms ease;
}

.float-card:hover {
  transform: translate3d(0, -7px, 0);
  border-color: rgba(127, 191, 163, 0.6);
  box-shadow:
    0 14px 24px -18px rgba(40, 88, 70, 0.44),
    10px 12px 20px -20px rgba(40, 88, 70, 0.24),
    -10px 12px 20px -20px rgba(40, 88, 70, 0.24);
}

.strength-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(127, 191, 163, 0), rgba(127, 191, 163, 0.92), rgba(127, 191, 163, 0));
}

.strength-card::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(127, 191, 163, 0.14), transparent 68%);
}

.strength-index {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
}

.strength-card h3 {
  margin: 0;
  font-size: 1.18rem;
  color: var(--ink);
}

.strength-card p:last-child {
  margin: 12px 0 0;
  color: var(--body);
  line-height: 1.88;
}

.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.95fr);
  gap: 24px;
}

.overview-main,
.overview-side {
  min-width: 0;
}

.overview-side {
  display: grid;
  gap: 18px;
}

.side-panel {
  padding: 18px 18px 20px;
  border-radius: 18px;
  position: relative;
}

.side-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(127, 191, 163, 0), rgba(127, 191, 163, 0.72), rgba(127, 191, 163, 0));
}

.education-card {
  display: grid;
  gap: 4px;
  padding: 0 0 8px;
}

.education-card h3,
.education-card p,
.education-card span {
  margin: 0;
}

.education-card p,
.education-card span {
  color: var(--muted);
}

.side-text {
  margin-top: 2px;
}

.entry {
  --timeline-rail-x: 16px;
  --timeline-dot-size: 10px;
  --timeline-content-gap: 24px;
  position: relative;
  margin-top: 14px;
  padding: 0 0 0 calc(var(--timeline-rail-x) + var(--timeline-content-gap));
}

.entry::before {
  content: "";
  position: absolute;
  top: 8px;
  left: calc(var(--timeline-rail-x) - (var(--timeline-dot-size) / 2));
  width: var(--timeline-dot-size);
  height: var(--timeline-dot-size);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(127, 191, 163, 0.16);
}

.entry::after {
  content: "";
  position: absolute;
  left: calc(var(--timeline-rail-x) - 0.5px);
  top: 26px;
  bottom: -18px;
  width: 1px;
  background: linear-gradient(180deg, rgba(127, 191, 163, 0.5), rgba(127, 191, 163, 0.06));
}

.overview-main .entry:last-child::after {
  display: none;
}

.featured-entry {
  margin-top: 0;
  margin-left: var(--timeline-rail-x);
  padding: 18px 18px 18px var(--timeline-content-gap);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(245, 247, 244, 0.98));
}

.featured-entry::before {
  top: 24px;
  left: calc(var(--timeline-dot-size) / -2);
}

.featured-entry::after {
  left: -0.5px;
  top: 42px;
}

.entry-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: baseline;
}

.entry-head h3,
.entry-head span,
.subheading {
  margin: 0;
}

.entry-head h3 {
  font-size: 1.08rem;
  color: var(--ink);
}

.entry-head span {
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.95rem;
}

.body-text {
  margin: 10px 0 0;
  color: var(--body);
  line-height: 1.92;
  text-align: justify;
}

.float-text {
  display: inline-block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.36);
  transition:
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 280ms ease,
    background-color 280ms ease;
}

.float-text:hover {
  transform: translate3d(0, -6px, 0);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 10px 18px -14px rgba(40, 88, 70, 0.42),
    8px 10px 16px -16px rgba(40, 88, 70, 0.22),
    -8px 10px 16px -16px rgba(40, 88, 70, 0.22);
}

.subsection {
  margin-top: 16px;
}

.subheading {
  font-size: 0.98rem;
  color: var(--accent-deep);
}

.gpa-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.gpa-grid div {
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid rgba(220, 229, 223, 0.95);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f5f7f4);
  color: var(--body);
  line-height: 1.65;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.gpa-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--accent-deep);
}

.bullet-list {
  margin: 0;
  padding-left: 1.18rem;
  color: var(--body);
}

.bullet-list li {
  line-height: 1.9;
}

.bullet-list li + li {
  margin-top: 8px;
}

.honor-list li {
  font-weight: 500;
}

.codex-credit {
  position: fixed;
  right: 18px;
  bottom: 16px;
  z-index: 10;
  padding: 8px 12px;
  border: 1px solid rgba(220, 229, 223, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  color: var(--muted);
  font-size: 0.84rem;
  text-decoration: none;
  transition: transform 200ms ease, color 200ms ease, border-color 200ms ease;
}

.codex-credit:hover {
  transform: translateY(-2px);
  color: var(--accent-deep);
  border-color: rgba(127, 191, 163, 0.52);
}

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

.reveal .cascade-item {
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(0.98);
  transition:
    opacity 620ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--cascade-order, 0) * 90ms);
}

.reveal.is-cascade-visible .cascade-item {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.hero.reveal .cascade-item {
  transform: none;
  transition-duration: 520ms, 520ms;
  transition-delay: calc(var(--cascade-order, 0) * 105ms);
}

.hero.reveal .hero-title,
.hero.reveal.is-cascade-visible .hero-title {
  opacity: 1;
  transform: none;
  transition: none;
}

.hero.reveal .hero-tags.cascade-item {
  transform: none;
  opacity: 0;
  transition: opacity 520ms ease;
}

.hero.reveal.is-cascade-visible .hero-tags.cascade-item {
  opacity: 1;
}

.hero.reveal .hero-summary.cascade-item {
  transform: none;
  opacity: 0;
  transition: opacity 620ms ease;
}

.hero.reveal.is-cascade-visible .hero-summary.cascade-item {
  opacity: 1;
}

@keyframes panel-left {
  0%,
  12% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

@keyframes panel-right {
  0%,
  12% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(100%);
  }
}

@keyframes wave-door {
  0%,
  16% {
    transform: translate(-50%, -50%) translateX(0) scaleY(0.9);
    opacity: 0;
  }

  34% {
    opacity: 0.88;
  }

  100% {
    transform: translate(-50%, -50%) translateX(var(--line-travel, 0)) scaleY(1);
    opacity: 0.3;
  }
}

@keyframes wave-door-h {
  0%,
  16% {
    transform: translate(-50%, -50%) translateY(0) scaleX(0.9);
    opacity: 0;
  }

  34% {
    opacity: 0.88;
  }

  100% {
    transform: translate(-50%, -50%) translateY(var(--line-travel, 0)) scaleX(1);
    opacity: 0.3;
  }
}

@keyframes wave-door-out {
  from {
    transform: translate(-50%, -50%) translateX(var(--line-travel, 0)) scaleY(1);
    opacity: 0.3;
  }

  to {
    transform: translate(-50%, -50%) translateX(calc(var(--line-travel, 0) * 1.14)) scaleY(1.08);
    opacity: 0;
  }
}

@keyframes wave-door-h-out {
  from {
    transform: translate(-50%, -50%) translateY(var(--line-travel, 0)) scaleX(1);
    opacity: 0.3;
  }

  to {
    transform: translate(-50%, -50%) translateY(calc(var(--line-travel, 0) * 1.14)) scaleX(1.08);
    opacity: 0;
  }
}

@keyframes cross-move {
  0%,
  16% {
    transform: translate(-50%, -50%) translateX(0) translateY(0) scale(0.4);
    opacity: 0;
  }

  42% {
    opacity: 0.96;
  }

  100% {
    transform: translate(-50%, -50%) translateX(var(--cross-x, 0)) translateY(var(--cross-y, 0)) scale(1);
    opacity: 0.54;
  }
}

@keyframes cross-fade-out {
  from {
    transform: translate(-50%, -50%) translateX(var(--cross-x, 0)) translateY(var(--cross-y, 0)) scale(1);
    opacity: 0.54;
  }

  to {
    transform: translate(-50%, -50%) translateX(var(--cross-x, 0)) translateY(var(--cross-y, 0)) scale(0.72);
    opacity: 0;
  }
}

@keyframes cross-pulse-in {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }

  55% {
    opacity: 0.62;
    transform: scale(1.38);
  }

  100% {
    opacity: 0.16;
    transform: scale(1);
  }
}

@keyframes cross-ring-fade-out {
  from {
    opacity: 0.7;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(1.65);
  }
}


@media (max-width: 900px) {
  .resume-page {
    width: min(100% - 18px, 1080px);
    margin: 12px auto 24px;
    padding: 20px 20px 30px;
    border-radius: 16px;
  }

  .hero,
  .overview-layout,
  .strength-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 20px;
  }

  .hero-side {
    justify-items: start;
  }

  .portrait-frame {
    justify-self: start;
  }

  .contact-list {
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .intro-screen {
    --intro-card-width: min(76vw, 420px);
    --intro-card-height: clamp(142px, 22vh, 190px);
  }

  .intro-core {
    padding: 12px 12px;
    border-radius: 20px;
  }

  .intro-kicker,
  .intro-subtitle {
    letter-spacing: 0.16em;
    text-indent: 0.16em;
  }

  .intro-title {
    letter-spacing: 0.12em;
    text-indent: 0.12em;
  }

  .toolbar {
    align-items: start;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .hero-summary {
    font-size: 0.98rem;
  }

  .gpa-grid,
  .entry-head {
    grid-template-columns: 1fr;
  }

  .entry-head span {
    white-space: normal;
  }

  .codex-credit {
    right: 12px;
    bottom: 12px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-bg,
  .toolbar,
  .intro-screen,
  .codex-credit {
    display: none;
  }

  .resume-page {
    width: auto;
    margin: 0;
    padding: 0;
    opacity: 1;
    transform: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

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

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

  .intro-line,
  .resume-page,
  .intro-screen,
  .reveal,
  .float-text,
  .float-card,
  .cascade-item,
  .toolbar-link,
  .codex-credit,
  .intro-panel,
  .intro-wave-line,
  .intro-cell-rect,
  .intro-cross,
  .intro-cross::before,
  .intro-core {
    animation: none !important;
    transition: none !important;
  }

  .reveal .cascade-item {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
