:root {
  --ink: #18212f;
  --muted: #627085;
  --paper: #fffaf7;
  --surface: #ffffff;
  --rose: #d96f83;
  --coral: #ef9a76;
  --lake: #17677b;
  --leaf: #5f8f6a;
  --line: rgba(24, 33, 47, 0.12);
  --shadow: 0 22px 70px rgba(24, 33, 47, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  transition:
    background 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease;
}

.site-header.is-solid {
  color: var(--ink);
  background: rgba(255, 250, 247, 0.9);
  box-shadow: 0 10px 35px rgba(24, 33, 47, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: clamp(12px, 2.4vw, 30px);
  font-size: 14px;
}

.nav-links a {
  opacity: 0.86;
}

.nav-links a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #0d3344;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 28, 43, 0.82), rgba(10, 28, 43, 0.18) 62%, rgba(10, 28, 43, 0.1)),
    linear-gradient(0deg, rgba(10, 28, 43, 0.72), rgba(10, 28, 43, 0.04) 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(880px, 100%);
  padding: 132px clamp(22px, 7vw, 88px) 86px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd8ce;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(54px, 10vw, 132px);
  line-height: 0.95;
  letter-spacing: 0;
}

h1 span {
  display: inline-block;
  margin-right: 0.16em;
  font-size: 0.42em;
  font-weight: 500;
  vertical-align: middle;
}

.hero-copy {
  width: min(620px, 100%);
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 21px);
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
}

.primary-action {
  border-color: transparent;
  background: #fff;
  color: var(--ink);
}

.secondary-action {
  color: #fff;
}

.stats-section,
.intro-section,
.story-section,
.gallery-section,
.letters-section {
  width: min(1140px, calc(100% - 36px));
  margin: 0 auto;
}

.stats-section {
  transform: translateY(-42px);
}

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

.stat-card,
.profile-card,
.letter {
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat-card {
  min-height: 132px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  padding: 24px;
}

.time-card {
  padding: 0;
}

.time-toggle {
  display: grid;
  width: 100%;
  min-height: 132px;
  align-content: center;
  border: 0;
  border-radius: 8px;
  padding: 24px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.time-toggle:hover,
.time-toggle:focus-visible {
  outline: none;
  background: rgba(23, 103, 123, 0.06);
}

.stat-value {
  display: block;
  color: var(--lake);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  line-height: 1;
}

.stat-value-time {
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.stat-label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.section-heading {
  width: min(680px, 100%);
  margin-bottom: 34px;
}

.section-heading h2,
.promise-copy h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.12;
  letter-spacing: 0;
}

.intro-section {
  padding: 34px 0 82px;
}

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

.profile-card {
  border-radius: 8px;
  padding: clamp(24px, 4vw, 38px);
}

.profile-role {
  color: var(--leaf);
  font-size: 13px;
  font-weight: 800;
}

.profile-card h3 {
  margin: 10px 0 12px;
  font-size: 30px;
}

.profile-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.story-section,
.gallery-section,
.letters-section {
  padding: 76px 0;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 104px;
  width: 1px;
  background: var(--line);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 44px;
}

.timeline time {
  color: var(--lake);
  font-weight: 900;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 99px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 7px rgba(239, 154, 118, 0.18);
}

.timeline h3 {
  margin-bottom: 6px;
  font-size: 22px;
}

.timeline p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 220px;
  gap: 14px;
}

.photo-tile {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: #fff;
  cursor: pointer;
  background: #101820;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 380ms ease;
}

.photo-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 20, 28, 0.58), rgba(10, 20, 28, 0.02) 58%);
}

.photo-tile span {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
  bottom: 14px;
  font-weight: 800;
  text-align: left;
}

.photo-tile:hover img {
  transform: scale(1.04);
}

.tile-wide {
  grid-column: span 2;
  grid-row: span 2;
}

.tile-tall {
  grid-row: span 2;
}

.promise-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: 86px clamp(18px, 6vw, 84px);
  color: #fff;
  background: linear-gradient(135deg, #143746, #17677b 48%, #5f8f6a);
}

.promise-copy p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.promise-section .eyebrow {
  color: #ffd8ce;
}

.promise-list {
  display: grid;
  gap: 12px;
}

.promise-list p {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.1);
}

.letter {
  border-left: 5px solid var(--rose);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 44px);
}

.letter p {
  margin-bottom: 22px;
  color: #384457;
  font-size: clamp(17px, 2vw, 22px);
}

.letter footer {
  color: var(--lake);
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 34px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.lightbox {
  width: min(1120px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(11, 18, 28, 0.78);
  backdrop-filter: blur(8px);
}

.lightbox img {
  width: 100%;
  max-height: calc(100vh - 28px);
  object-fit: contain;
  border-radius: 8px;
  background: #111;
}

.lightbox-close {
  position: fixed;
  z-index: 2;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    gap: 12px;
    font-size: 13px;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-photo {
    object-position: 68% 50%;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(10, 28, 43, 0.86), rgba(10, 28, 43, 0.08) 58%),
      linear-gradient(90deg, rgba(10, 28, 43, 0.64), rgba(10, 28, 43, 0.1));
  }

  .hero-content {
    padding-top: 116px;
    padding-bottom: 58px;
  }

  .stats-grid,
  .profile-grid,
  .promise-section {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 180px;
  }

  .tile-wide {
    grid-column: span 2;
    grid-row: span 1;
  }

  .tile-tall {
    grid-row: span 1;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand {
    font-size: 14px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 240px;
    row-gap: 4px;
    font-size: 12px;
  }

  .hero {
    min-height: 84vh;
  }

  h1 {
    font-size: clamp(44px, 15vw, 64px);
  }

  .hero-copy {
    width: min(100%, 330px);
    font-size: 15px;
  }

  .hero-actions {
    gap: 10px;
  }

  .primary-action,
  .secondary-action {
    min-height: 44px;
    padding: 9px 18px;
  }

  .stats-section {
    transform: none;
    padding-top: 18px;
  }

  .stats-grid {
    gap: 10px;
  }

  .stat-card {
    min-height: 104px;
    padding: 18px;
  }

  .time-card {
    padding: 0;
  }

  .time-toggle {
    min-height: 104px;
    padding: 18px;
  }

  .stat-value-time {
    font-size: 27px;
  }

  .intro-section,
  .story-section,
  .gallery-section,
  .letters-section {
    padding: 50px 0;
  }

  .timeline::before {
    left: 74px;
  }

  .timeline li {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 34px;
  }

  .timeline li::before {
    left: 69px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }

  .tile-wide,
  .tile-tall {
    grid-column: auto;
    grid-row: auto;
  }
}
