:root {
  --bg: #eef3f7;
  --bg-warm: #f5efe6;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(16, 33, 58, 0.1);
  --line-strong: rgba(16, 33, 58, 0.16);
  --text: #10213a;
  --muted: #667184;
  --navy: #132845;
  --navy-soft: rgba(19, 40, 69, 0.08);
  --gold: #b6925a;
  --gold-strong: #8d6a37;
  --gold-soft: rgba(182, 146, 90, 0.14);
  --jade: #4b8077;
  --jade-soft: rgba(75, 128, 119, 0.12);
  --shadow: 0 20px 60px rgba(14, 28, 48, 0.08);
  --shadow-strong: 0 36px 90px rgba(14, 28, 48, 0.18);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --content-width: 1240px;
  --header-height: 96px;
  --hero-panel-height: min(66vh, 700px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Avenir Next", "SF Pro Display", "PingFang SC", "Hiragino Sans GB",
    "Noto Sans CJK SC", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(182, 146, 90, 0.11), transparent 24%),
    radial-gradient(circle at 88% 16%, rgba(75, 128, 119, 0.08), transparent 22%),
    linear-gradient(180deg, #f7f9fc 0%, #edf2f7 48%, #f7f2ea 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.16)),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 79px,
      rgba(19, 40, 69, 0.028) 79px,
      rgba(19, 40, 69, 0.028) 80px
    );
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 88%);
}

body::after {
  background:
    radial-gradient(circle at center, transparent 48%, rgba(10, 18, 32, 0.03) 100%);
}

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

button {
  font: inherit;
  color: inherit;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--navy), var(--gold), var(--jade));
  box-shadow: 0 0 18px rgba(19, 40, 69, 0.25);
}

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  filter: blur(46px);
  pointer-events: none;
  animation: float 16s ease-in-out infinite;
}

.ambient-one {
  top: 10vh;
  left: -4rem;
  width: 16rem;
  height: 16rem;
  background: rgba(182, 146, 90, 0.11);
}

.ambient-two {
  top: 40vh;
  right: -4rem;
  width: 18rem;
  height: 18rem;
  background: rgba(19, 40, 69, 0.08);
  animation-delay: -4s;
}

.ambient-three {
  bottom: 10vh;
  left: 46%;
  width: 14rem;
  height: 14rem;
  background: rgba(75, 128, 119, 0.08);
  animation-delay: -8s;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 42px), var(--content-width));
  margin: 0 auto;
  padding-bottom: 56px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--header-height);
  padding: 22px 0 18px;
  backdrop-filter: blur(16px);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 82px;
  right: 0;
  bottom: 8px;
  height: 1px;
  background: linear-gradient(90deg, rgba(19, 40, 69, 0.14), transparent 75%);
}

.brand-mark,
.nav-link,
.language-toggle,
.primary-button,
.secondary-button,
.resource-card,
.back-link {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  padding: 3px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.8));
  box-shadow: 0 16px 34px rgba(14, 28, 48, 0.1);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(19, 40, 69, 0.06);
}

.brand-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 28px rgba(14, 28, 48, 0.07);
}

.nav-link,
.language-toggle {
  display: inline-flex;
  align-items: center;
  min-width: 74px;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  justify-content: center;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(19, 40, 69, 0.06);
  color: var(--navy);
}

.language-toggle {
  min-width: 68px;
  background: linear-gradient(135deg, var(--navy), #29466c);
  color: white;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.nav-link:hover,
.nav-link:focus-visible,
.language-toggle:hover,
.language-toggle:focus-visible,
.brand-mark:hover,
.brand-mark:focus-visible,
.primary-button:hover,
.primary-button:focus-visible,
.secondary-button:hover,
.secondary-button:focus-visible,
.resource-card:hover,
.resource-card:focus-visible,
.back-link:hover,
.back-link:focus-visible {
  transform: translateY(-2px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(320px, 0.95fr);
  gap: 36px;
  align-items: stretch;
  min-height: 0;
  padding: 18px 0 4px;
}

.hero-media {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-items: stretch;
  min-height: var(--hero-panel-height);
  height: var(--hero-panel-height);
  padding-top: 10px;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 6% 10% auto;
  height: 42%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(182, 146, 90, 0.18), transparent 70%);
  filter: blur(34px);
}

.hero-media::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -16px;
  width: 92px;
  height: 92px;
  border-top: 1px solid rgba(19, 40, 69, 0.14);
  border-left: 1px solid rgba(19, 40, 69, 0.14);
  border-top-left-radius: 20px;
}

.hero-copy,
.section,
.resume-shell {
  position: relative;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 240, 232, 0.72));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-copy::before,
.section::before,
.resume-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 34px;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero-copy::after,
.section::after,
.resume-shell::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(182, 146, 90, 0.11), transparent 72%);
  pointer-events: none;
}

.hero-copy {
  min-height: var(--hero-panel-height);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 8px 0 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  padding-top: clamp(28px, 3vw, 40px);
}

.hero-copy::before,
.hero-copy::after {
  content: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h1,
h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Baskerville",
    "Times New Roman", serif;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.6rem, 4.4vw, 4.2rem);
  white-space: nowrap;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

h3 {
  font-size: 1.16rem;
  line-height: 1.18;
}

.hero-text,
.resource-copy,
.video-note,
.site-footer p,
.resume-intro,
.resume-block p,
.resume-list {
  color: var(--muted);
  font-size: 1rem;
}

.hero-text {
  max-width: 24rem;
  margin: 18px 0 0;
  font-size: 1.04rem;
}

.hero-name-stack {
  display: grid;
  align-items: start;
}

.hero-name-stack > * {
  grid-area: 1 / 1;
}

.hero-name {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--navy);
  line-height: 0.98;
}

.hero-name-shadow {
  transform: translate(14px, 16px);
  color: rgba(19, 40, 69, 0.08);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Baskerville",
    "Times New Roman", serif;
  font-size: clamp(2.6rem, 4.4vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.98;
  white-space: nowrap;
  user-select: none;
}

.hero-subtitle {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.resume-badge,
.resource-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.resume-badge {
  background: var(--navy-soft);
  color: var(--navy);
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: auto 0 0;
  padding-top: 22px;
}

.primary-button,
.secondary-button,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--navy), #29456b);
  color: white;
  box-shadow:
    0 18px 36px rgba(19, 40, 69, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.secondary-button,
.back-link {
  border-color: rgba(19, 40, 69, 0.1);
  background: rgba(255, 255, 255, 0.82);
  color: var(--navy);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.intro-video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 0;
  height: 100%;
  border: 0;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(5, 10, 17, 0.98), rgba(9, 16, 28, 0.98));
  object-fit: cover;
  box-shadow: var(--shadow-strong);
}

.video-note {
  position: static;
  z-index: 2;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(19, 40, 69, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 24px rgba(12, 22, 36, 0.08);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  line-height: 1.4;
}

.video-note a {
  color: var(--navy);
  font-weight: 700;
}

.section {
  margin-top: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 246, 250, 0.82));
}

.section-divider {
  height: 1px;
  margin: 0 4px 10px;
  background: linear-gradient(90deg, rgba(19, 40, 69, 0.16), rgba(182, 146, 90, 0.22), rgba(19, 40, 69, 0.08));
}

.section-heading {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.section-heading h2 {
  max-width: 34rem;
}

.resource-grid,
.resume-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.resource-card,
.resume-block {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 12px;
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(16, 33, 58, 0.08);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 252, 0.86));
  box-shadow: 0 16px 36px rgba(14, 28, 48, 0.06);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.resource-card::before,
.resume-block::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  opacity: 0.72;
}

.resource-card:nth-child(1)::after {
  content: "01";
}

.resource-card:nth-child(2)::after {
  content: "02";
}

.resource-card:nth-child(3)::after {
  content: "03";
}

.resource-card::after {
  position: absolute;
  top: 16px;
  right: 18px;
  color: rgba(16, 33, 58, 0.14);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: 1.12rem;
  line-height: 1;
}

.resource-card:hover,
.resource-card:focus-visible {
  border-color: rgba(182, 146, 90, 0.26);
  box-shadow: 0 24px 44px rgba(14, 28, 48, 0.1);
}

.resource-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy), #274465);
  color: white;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow:
    0 16px 26px rgba(19, 40, 69, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.resource-tag {
  justify-self: start;
  margin: 0;
  border: 1px solid rgba(16, 33, 58, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: var(--jade);
}

.resource-copy {
  max-width: none;
  font-size: 0.94rem;
  line-height: 1.5;
}

.resource-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--gold-strong);
  font-size: 0.92rem;
  font-weight: 700;
}

.resource-action::after {
  content: "↗";
  transition: transform 180ms ease;
}

.resource-card:hover .resource-action::after,
.resource-card:focus-visible .resource-action::after {
  transform: translate(2px, -2px);
}

.site-footer {
  display: flex;
  justify-content: center;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(16, 33, 58, 0.08);
}

.site-footer p {
  margin: 0;
  letter-spacing: 0.04em;
}

.resume-page {
  padding: 18px 0 48px;
}

.resume-shell {
  margin-top: 24px;
}

.resume-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.resume-title {
  margin-top: 22px;
}

.resume-grid {
  margin-top: 26px;
}

.resume-block h2 {
  font-size: 1.4rem;
}

.resume-list {
  margin: 0;
  padding-left: 18px;
}

.resume-note {
  margin-top: 18px;
  color: var(--gold-strong);
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
  transition-delay: var(--delay, 0ms);
}

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

.ripple {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.36);
  transform: scale(0);
  animation: ripple 620ms ease-out forwards;
}

@keyframes ripple {
  to {
    opacity: 0;
    transform: scale(1.8);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -16px, 0);
  }
}

@media (max-width: 980px) {
  .page-shell {
    width: min(calc(100% - 24px), var(--content-width));
  }

  .hero,
  .resource-grid,
  .resume-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 24px;
  }

  .hero-copy {
    min-height: auto;
    height: auto;
  }

  .hero-media {
    min-height: auto;
    height: auto;
  }

  .intro-video {
    min-height: 360px;
    height: 58vh;
  }

  .video-note {
    width: 100%;
  }

  .hero-copy {
    justify-content: center;
  }

  .site-footer,
  .resume-header {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
    padding-top: 18px;
  }

  .site-header::after {
    left: 0;
  }

  .site-nav {
    justify-content: space-between;
  }

  .hero-copy,
  .section,
  .resume-shell {
    padding: 22px;
    border-radius: 26px;
  }

  .hero-copy::before,
  .section::before,
  .resume-shell::before {
    left: 22px;
  }

  h1 {
    font-size: clamp(2.25rem, 12vw, 3.1rem);
    white-space: normal;
  }

  .hero-name-shadow {
    font-size: clamp(2.25rem, 12vw, 3.1rem);
    white-space: normal;
  }

  h2 {
    font-size: clamp(1.55rem, 8vw, 2rem);
  }

  .intro-video {
    min-height: 280px;
    height: 52vh;
    border-radius: 26px;
  }

  .section-heading {
    align-items: flex-start;
  }
}

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

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

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