:root {
  --bg-deep: #121924;
  --bg-mid: #1d2d42;
  --sky: #9dc6e4;
  --ink: #ece9e4;
  --warm: #901204;
  --warm-soft: #ca140d;
  --line: rgba(236, 233, 228, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Noto Sans SC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(157, 198, 228, 0.18), transparent 45%),
    radial-gradient(circle at 95% 100%, rgba(182, 67, 59, 0.22), transparent 40%),
    linear-gradient(145deg, var(--bg-deep) 0%, var(--bg-mid) 52%, #162230 100%);
  overflow-x: hidden;
}

.grain {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='12' cy='18' r='1'/%3E%3Ccircle cx='38' cy='42' r='1'/%3E%3Ccircle cx='67' cy='12' r='1'/%3E%3Ccircle cx='102' cy='37' r='1'/%3E%3Ccircle cx='140' cy='26' r='1'/%3E%3Ccircle cx='24' cy='82' r='1'/%3E%3Ccircle cx='58' cy='68' r='1'/%3E%3Ccircle cx='93' cy='95' r='1'/%3E%3Ccircle cx='126' cy='76' r='1'/%3E%3Ccircle cx='147' cy='118' r='1'/%3E%3Ccircle cx='16' cy='136' r='1'/%3E%3Ccircle cx='46' cy='118' r='1'/%3E%3Ccircle cx='84' cy='142' r='1'/%3E%3Ccircle cx='118' cy='128' r='1'/%3E%3Ccircle cx='146' cy='154' r='1'/%3E%3C/g%3E%3C/svg%3E");
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem clamp(1rem, 2vw, 2rem);
  border-bottom: 1px solid var(--line);
}

.brand {
  margin: 0;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
}

.jump {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: border-color 220ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.jump:hover {
  border-color: var(--warm-soft);
}

.layout {
  width: min(1320px, 96vw);
  margin: 1.5rem auto 2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.narrative {
  padding: clamp(1rem, 2vw, 2rem);
  align-self: start;
  animation: rise 820ms cubic-bezier(0.16, 0.84, 0.21, 0.99) both;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--warm-soft);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0;
  max-width: 14ch;
  font-family: "ZCOOL XiaoWei", "Noto Sans SC", serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  line-height: 1.1;
}

.lead {
  margin: 1rem 0 0;
  max-width: 48ch;
  color: rgba(236, 233, 228, 0.9);
  line-height: 1.6;
}

.cta-row {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.cta {
  border: 1px solid transparent;
  padding: 0.7rem 1rem;
  font: inherit;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 260ms cubic-bezier(0.2, 0.7, 0.25, 1),
    background-color 260ms cubic-bezier(0.2, 0.7, 0.25, 1),
    color 260ms cubic-bezier(0.2, 0.7, 0.25, 1);
}

.cta.primary {
  background: var(--warm);
  color: #fff;
}

.cta.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.cta:hover {
  transform: translateY(-2px);
}

.proof-list {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.proof-list li {
  border-left: 2px solid var(--warm-soft);
  padding-left: 0.7rem;
  color: rgba(236, 233, 228, 0.92);
}

.photo-wall {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.75rem;
  align-content: start;
  animation: rise 980ms cubic-bezier(0.16, 0.84, 0.21, 0.99) 80ms both;
}

.tile {
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(8, 12, 18, 0.42);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 140px;
}

.tile figcaption {
  padding: 0.5rem 0.6rem;
  font-size: 0.8rem;
  color: rgba(236, 233, 228, 0.84);
}

.t1 { grid-column: 1 / span 5; }
.t2 { grid-column: 6 / span 3; }
.t3 { grid-column: 2 / span 4; }
.t4 { grid-column: 6 / span 3; }
.t5 { grid-column: 1 / span 5; }

.strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.9fr;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.strip article {
  border: 1px solid var(--line);
  background: rgba(12, 20, 29, 0.62);
  padding: 1rem;
}

.strip h2 {
  margin: 0;
  color: var(--sky);
  font-size: clamp(1.05rem, 2vw, 1.6rem);
}

.strip p {
  margin: 0.45rem 0 0;
  color: rgba(236, 233, 228, 0.92);
  line-height: 1.6;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Page Transitions ─────────────────────────── */
body {
  animation: pageEnter 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

body.page-leaving {
  animation: pageLeave 0.4s cubic-bezier(0.55, 0.06, 0.68, 0.19) both;
}

@keyframes pageEnter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pageLeave {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
    width: min(720px, 94vw);
  }

  .photo-wall {
    grid-template-columns: repeat(6, 1fr);
  }

  .t1 { grid-column: 1 / span 4; }
  .t2 { grid-column: 5 / span 2; }
  .t3 { grid-column: 2 / span 4; }
  .t4 { grid-column: 1 / span 3; }
  .t5 { grid-column: 4 / span 3; }

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

@media (max-width: 560px) {
  .topbar {
    align-items: flex-start;
    gap: 0.6rem;
    flex-direction: column;
  }

  .photo-wall {
    grid-template-columns: 1fr;
  }

  .t1,
  .t2,
  .t3,
  .t4,
  .t5 {
    grid-column: auto;
  }
}
