:root {
  --ink: #002733;
  --ink-soft: rgba(0, 39, 51, 0.72);
  --blue: #006fff;
  --blue-soft: #dff4ff;
  --teal: #008c82;
  --mint: #99d1cd;
  --line: rgba(0, 39, 51, 0.16);
  --neon: #c2fe06;
  --paper: #fbfeff;
  --white: #ffffff;
  --shadow: 0 30px 80px rgba(0, 39, 51, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "The Group TEXT", "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 140, 130, 0.1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 39, 51, 0.06) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}

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

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

.share-image {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.1;
  background-image:
    radial-gradient(circle at 20% 24%, rgba(0, 39, 51, 0.22) 0 1px, transparent 1px),
    radial-gradient(circle at 76% 62%, rgba(0, 111, 255, 0.16) 0 1px, transparent 1px);
  background-size: 8px 8px, 13px 13px;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 24px;
  right: 24px;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 9px 12px 9px 16px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 39, 51, 0.2);
  backdrop-filter: blur(18px);
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(251, 254, 255, 0.9);
  border-color: var(--line);
  box-shadow: 0 14px 40px rgba(0, 39, 51, 0.12);
}

.brand {
  display: grid;
  line-height: 1.05;
}

.brand span {
  font-size: 0.95rem;
  font-weight: 850;
}

.brand small {
  margin-top: 4px;
  font-size: 0.62rem;
  font-weight: 760;
  letter-spacing: 0;
  opacity: 0.76;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  font-size: 0.76rem;
  font-weight: 850;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.16);
  outline: 0;
  transform: translateY(-1px);
}

.slide {
  position: relative;
  min-height: 100svh;
  padding: 104px 6vw 58px;
  overflow: hidden;
  isolation: isolate;
}

.slide::after {
  content: "";
  position: absolute;
  right: 6vw;
  bottom: 44px;
  z-index: -1;
  width: 32vw;
  max-width: 460px;
  height: 12px;
  background: var(--neon);
}

.slide-meta {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 16px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.74rem;
  font-weight: 760;
}

.hero .slide-meta {
  position: absolute;
  top: 104px;
  left: 6vw;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 5vw;
  align-items: end;
  color: var(--white);
  background: var(--ink);
}

.hero-bg,
.hero-bg img {
  position: absolute;
  inset: 0;
}

.hero-bg {
  z-index: -4;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  filter: saturate(1.08) contrast(0.96) brightness(1.06);
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(0, 39, 51, 0.9), rgba(0, 111, 255, 0.44) 62%, rgba(255, 255, 255, 0.08)),
    linear-gradient(0deg, rgba(0, 39, 51, 0.82), rgba(0, 39, 51, 0) 58%);
}

.hero-copy {
  grid-column: 1;
  max-width: 780px;
}

.kicker,
.slide-title p {
  margin: 0 0 14px;
  color: var(--neon);
  font-size: 0.82rem;
  font-weight: 900;
}

.hero h1 {
  margin: 0;
  font-family: "The Group HEAD Light", "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: clamp(4.8rem, 13vw, 9.4rem);
  font-weight: 300;
  line-height: 0.92;
}

.roman {
  margin: 18px 0 0;
  font-size: clamp(1.1rem, 3.2vw, 2.25rem);
  font-weight: 850;
}

.role {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
  font-weight: 760;
}

.portrait-plate {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: end;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.54);
  background: rgba(251, 254, 255, 0.9);
  box-shadow: var(--shadow);
}

.portrait-plate img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
}

figcaption {
  padding: 12px 14px;
  color: var(--ink);
  background: var(--paper);
  font-size: 0.8rem;
  font-weight: 850;
}

.hero-tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.hero-tags span,
.place-line span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 850;
}

.profile,
.travel,
.city {
  background: var(--paper);
}

.slide-number {
  position: absolute;
  right: 6vw;
  top: 96px;
  color: rgba(0, 39, 51, 0.08);
  font-size: clamp(7rem, 20vw, 16rem);
  font-weight: 900;
  line-height: 0.8;
}

.slide-title {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.slide-title h2 {
  margin: 0;
  font-family: "The Group HEAD Light", "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: clamp(3rem, 9vw, 6.7rem);
  font-weight: 300;
  line-height: 1;
}

.slide-title.light h2 {
  color: var(--white);
}

.fact-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 980px;
  margin-top: 72px;
  background: var(--line);
  border: 1px solid var(--line);
}

.fact {
  min-height: 164px;
  display: grid;
  align-content: space-between;
  padding: 22px;
  background: rgba(255, 255, 255, 0.82);
}

.fact span {
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 900;
}

.fact strong {
  font-family: "The Group HEAD Light", "Songti SC", "STSong", serif;
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  font-weight: 400;
  line-height: 1.08;
}

.route-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 16px;
  max-width: 980px;
  margin-top: 54px;
  color: var(--ink);
}

.route-strip span {
  position: relative;
  padding-top: 26px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 850;
}

.route-strip span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: -16px;
  height: 3px;
  background: var(--teal);
}

.route-strip span::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 13px;
  height: 13px;
  background: var(--neon);
  border: 2px solid var(--ink);
}

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

.work::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 140, 130, 0.28) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 96px 96px;
}

.work .slide-number {
  color: rgba(255, 255, 255, 0.08);
}

.work-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  margin-top: 58px;
}

.photo-main {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: var(--shadow);
}

.photo-main img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.milestones {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.milestone {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.milestone span {
  color: var(--neon);
  font-size: 0.8rem;
  font-weight: 900;
}

.milestone strong {
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  line-height: 1.18;
}

.work-note {
  margin: 32px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  font-weight: 820;
}

.travel-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 0.82fr 0.82fr;
  gap: 16px;
  align-items: stretch;
  margin-top: 60px;
}

.travel-photo,
.city-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 39, 51, 0.12);
  box-shadow: 0 24px 70px rgba(0, 39, 51, 0.12);
}

.travel-photo img,
.city-photo img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 700ms ease, filter 700ms ease;
}

.travel-photo.tall img {
  min-height: 520px;
}

.travel-photo figcaption,
.city-photo figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 8px 10px;
  color: var(--ink);
  background: rgba(251, 254, 255, 0.92);
}

.travel-photo:hover img,
.city-photo:hover img {
  transform: scale(1.035);
  filter: saturate(1.08) brightness(1.03);
}

.place-line {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.place-line span {
  border-color: var(--line);
  color: var(--ink);
  background: var(--blue-soft);
}

.city {
  background: linear-gradient(180deg, var(--paper), #edf9ff);
}

.city-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.8fr;
  gap: 16px;
  margin-top: 60px;
}

.city-photo.wide {
  grid-row: span 2;
}

.city-photo.wide img {
  min-height: 620px;
}

.closing {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 34px;
  color: var(--ink);
}

.closing strong {
  font-family: "The Group HEAD Light", "Songti SC", "STSong", serif;
  font-size: clamp(2rem, 6vw, 4.8rem);
  font-weight: 300;
  line-height: 1;
}

.closing span {
  color: var(--teal);
  font-size: 0.95rem;
  font-weight: 900;
}

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

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

@media (max-width: 980px) {
  .hero,
  .work-stage,
  .travel-grid,
  .city-grid {
    grid-template-columns: 1fr;
  }

  .portrait-plate {
    grid-column: 1;
    grid-row: auto;
    max-width: 300px;
    justify-self: end;
  }

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

  .city-photo.wide {
    grid-row: auto;
  }
}

@media (max-width: 700px) {
  .site-header {
    top: 10px;
    left: 10px;
    right: 10px;
  }

  .brand small {
    display: none;
  }

  .slide {
    padding: 86px 20px 48px;
  }

  .slide::after {
    right: 20px;
    bottom: 28px;
    width: 52vw;
  }

  .slide-meta {
    display: grid;
    gap: 4px;
  }

  .hero h1 {
    font-size: clamp(4rem, 21vw, 6.2rem);
  }

  .portrait-plate {
    max-width: 230px;
  }

  .slide-number {
    top: 80px;
    right: 18px;
    font-size: 6.4rem;
  }

  .fact-grid,
  .route-strip {
    grid-template-columns: 1fr;
  }

  .fact {
    min-height: 124px;
  }

  .route-strip span::before {
    right: 0;
  }

  .travel-photo img,
  .travel-photo.tall img,
  .city-photo img,
  .city-photo.wide img {
    min-height: 340px;
  }

  .closing {
    display: grid;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
