/* ─────────────────────────────────────────────────────────────
   Uncanny Winter Peaks — promo page
   Static, no build step, no external requests.
   ───────────────────────────────────────────────────────────── */

:root {
  --bg: #070912;
  --bg-2: #0b0f1d;
  --surface: #101528;
  --line: rgba(186, 186, 236, 0.14);
  --line-strong: rgba(186, 186, 236, 0.30);
  --text: #eceaf6;
  --muted: #a6a4c4;
  --dim: #7d7c9c;
  --vermilion: #c8321f;
  --vermilion-hi: #e2492f;
  --amber: #f0a44a;
  --snow: #c3c0ee;

  --wrap: 1180px;
  --radius: 4px;

  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino,
                  "Book Antiqua", Georgia, "KaiTi", "STKaiti", "Kaiti SC", "Songti SC", serif;
  --font-body: "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --font-kai: "KaiTi", "STKaiti", "Kaiti SC", "KaiTi_GB2312", "Songti SC", "SimSun", serif;
}

/* Latin stays in the display serif: SimKai's own Latin glyphs are monospaced and
   read as a typewriter face. CJK falls through to KaiTi as before. */
html[data-lang="zh"] {
  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino,
                  "Book Antiqua", Georgia, "KaiTi", "STKaiti", "Kaiti SC", "KaiTi_GB2312",
                  "Songti SC", "SimSun", serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--vermilion); color: #fff; }

img, video { max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--vermilion);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* ── header ───────────────────────────────────────────────── */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 18, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  margin-right: auto;
}

.seal {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  background: linear-gradient(155deg, var(--vermilion-hi), #9f2213);
  color: #fff;
  font-family: var(--font-kai);
  font-size: 1.3rem;
  line-height: 1;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 6px 18px -8px rgba(200, 50, 31, .9);
}
.seal-sm { width: 30px; height: 30px; font-size: 1.1rem; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-en {
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: .02em;
}
.brand-zh { font-size: .74rem; color: var(--dim); letter-spacing: .3em; }

.site-nav { display: flex; gap: 1.6rem; }
.site-nav a {
  font-size: .86rem;
  letter-spacing: .06em;
  color: var(--muted);
  text-decoration: none;
  padding: .35rem 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-nav a:hover { color: var(--text); border-bottom-color: var(--vermilion); }

.lang {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px;
  flex: none;
}
.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .78rem;
  letter-spacing: .06em;
  padding: .28rem .72rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.lang button[aria-pressed="true"] { background: var(--vermilion); color: #fff; }
.lang button:hover:not([aria-pressed="true"]) { color: var(--text); }

/* ── hero ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 44vw, 94vh);
  padding: 5rem 0 4.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 46%;
  animation: drift 16s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes drift {
  from { transform: scale(1.07); }
  to   { transform: scale(1); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 9, 18, .93) 0%, rgba(7, 9, 18, .78) 34%, rgba(7, 9, 18, .28) 62%, rgba(7, 9, 18, .50) 100%),
    linear-gradient(180deg, rgba(7, 9, 18, .55) 0%, rgba(7, 9, 18, 0) 26%, rgba(7, 9, 18, 0) 68%, var(--bg) 100%);
}

.hero-inner { max-width: 40rem; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.2rem;
  font-size: .78rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--amber);
}
.kicker::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--vermilion-hi);
}
html[data-lang="zh"] .kicker { letter-spacing: .22em; }

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: .005em;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .6);
}
html[data-lang="zh"] .hero-title { letter-spacing: .1em; line-height: 1.12; }

.hero-lead {
  margin: 1.4rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  color: #d6d4ea;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .8rem 1.6rem;
  font-size: .92rem;
  letter-spacing: .08em;
  text-decoration: none;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
}
.btn-primary {
  background: linear-gradient(180deg, var(--vermilion-hi), var(--vermilion));
  color: #fff;
  box-shadow: 0 14px 34px -16px rgba(226, 73, 47, .95);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 40px -14px rgba(226, 73, 47, 1); }
.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--snow); background: rgba(255, 255, 255, .08); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2.2rem;
  margin: 2.8rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.hero-meta div { padding: .2rem 0; }
.hero-meta dt {
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dim);
}
.hero-meta dd { margin: .1rem 0 0; font-size: .92rem; color: var(--snow); }

/* ── sections ─────────────────────────────────────────────── */

.section { padding: clamp(4.5rem, 8vw, 7.5rem) 0; }
.section-alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head { margin-bottom: clamp(2.2rem, 4vw, 3.4rem); max-width: 46rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 .9rem;
  font-size: .74rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--amber);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--vermilion-hi);
  transform: rotate(45deg);
}
html[data-lang="zh"] .eyebrow { letter-spacing: .2em; }

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  line-height: 1.12;
  text-wrap: balance;
}
html[data-lang="zh"] .section-head h2 { letter-spacing: .06em; }

.section-sub {
  margin: 1rem 0 0;
  color: var(--muted);
  max-width: 60ch;
}

/* ── trailer ──────────────────────────────────────────────── */

.player {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #000;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95);
  overflow: hidden;
}
.player video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 1042;
  background: #000;
}
.player-foot {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.1rem;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  font-size: .82rem;
  color: var(--dim);
}
.file-link { color: var(--snow); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.file-link:hover { color: #fff; border-bottom-color: var(--vermilion-hi); }

/* ── cards ────────────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.card {
  position: relative;
  padding: 1.7rem 1.5rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
  transition: border-color .25s, transform .25s;
}
.card::before {
  content: "";
  display: block;
  width: 1.6rem;
  height: 2px;
  margin-bottom: 1.1rem;
  background: var(--vermilion-hi);
  transition: width .25s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card:hover::before { width: 2.6rem; }
.card h3 {
  margin: 0 0 .6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.2;
}
.card p { margin: 0; font-size: .93rem; color: var(--muted); }

.journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2.6rem 0 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  counter-reset: none;
}
.journey li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding-left: 1.1rem;
}
.journey li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35rem;
  bottom: .35rem;
  width: 1px;
  background: var(--line-strong);
}
.journey .step-n {
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber);
}
.journey .step-t { font-family: var(--font-display); font-size: 1.2rem; }
.journey li.journey-end::before { background: var(--vermilion-hi); }
.journey-end .step-n { color: var(--vermilion-hi); }

/* ── gallery ──────────────────────────────────────────────── */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem 1.4rem;
}

.shot { margin: 0; }
.shot button {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #000;
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color .25s;
}
.shot button:hover { border-color: var(--line-strong); }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.shot button:hover img { transform: scale(1.035); }
.shot figcaption {
  padding-top: .65rem;
  font-size: .86rem;
  color: var(--muted);
}

/* ── controls ─────────────────────────────────────────────── */

.keys {
  display: grid;
  /* Explicit 4 / 2 / 1 instead of auto-fit: with 5 groups, auto-fit produces a 3-column
     band (≈885–1172px) where group 4 sits alone beside two empty cells. */
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.key-group {
  padding: 1.4rem 1.5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .02);
}
.key-group h3 {
  margin: 0 0 .8rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--amber);
}
.key-group dl { margin: 0; }
.key-group dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .62rem 0;
  border-top: 1px solid var(--line);
}
.key-group dt { display: flex; gap: .3rem; flex: none; }
.key-group dd { margin: 0; font-size: .9rem; color: var(--muted); text-align: right; }

/* The fifth group always lands alone on the last row of the grid — run it as a
   full-width strip with its rows side by side instead of leaving three empty cells. */
.key-group:last-child { grid-column: 1 / -1; }
.key-group:last-child dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  column-gap: 2.6rem;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: .22rem .5rem;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
}

/* ── download ─────────────────────────────────────────────── */

.download-slot { max-width: 46rem; display: grid; gap: 1.25rem; }

.dl-panel {
  padding: 2rem 2rem 1.9rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
}
.dl-panel h3 {
  margin: 0 0 .6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.2;
}
.dl-panel p { margin: 0; color: var(--muted); max-width: 56ch; }

.dl-pending { border: 1px dashed var(--line-strong); }
.dl-pending .dl-tag { color: var(--amber); }
.dl-ready { border: 1px solid var(--line-strong); }
.dl-ready .dl-tag { color: #7fd6a4; }

/* `.dl-panel p` (0,1,1) would otherwise beat this (0,1,0) and eat the gap above the h3. */
.dl-panel .dl-tag {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1rem;
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.dl-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .06);
}

.dl-actions { margin-top: 1.6rem; }
.dl-file {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .84rem;
  color: var(--dim);
}
.dl-file li { padding: .28rem 0; }
.dl-file b { color: var(--snow); font-weight: 500; }
.dl-file code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8rem;
  word-break: break-all;
  color: var(--muted);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 2rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .86rem;
  color: var(--dim);
}
.facts li { display: inline-flex; align-items: center; gap: .55rem; }
.facts li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--vermilion-hi);
  transform: rotate(45deg);
}

/* ── footer ───────────────────────────────────────────────── */

.site-foot {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 2.4rem 0;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.foot-brand { display: flex; align-items: center; gap: .8rem; }
.foot-title { margin: 0; font-family: var(--font-display); font-size: 1.05rem; }
.foot-sub { margin: .1rem 0 0; font-size: .78rem; color: var(--dim); letter-spacing: .08em; }
.foot-note { margin: 0; font-size: .8rem; color: var(--dim); }

/* ── lightbox ─────────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(4, 5, 11, .95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox[hidden] { display: none; }

.lb-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  min-width: 0;
}
.lb-figure img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.lb-figure figcaption { font-size: .9rem; color: var(--muted); text-align: center; }

.lb-close, .lb-nav {
  appearance: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .14); border-color: var(--snow); }
.lb-close { position: absolute; top: 1.2rem; right: 1.2rem; z-index: 1; font-size: 1.5rem; }

/* ── scroll reveal (added by JS only) ─────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ── responsive ───────────────────────────────────────────── */

@media (max-width: 1040px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .journey { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .keys { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .hero { min-height: clamp(540px, 78vh, 760px); }
  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(7, 9, 18, .9) 0%, rgba(7, 9, 18, .62) 60%, rgba(7, 9, 18, .5) 100%),
      linear-gradient(180deg, rgba(7, 9, 18, .6) 0%, rgba(7, 9, 18, 0) 30%, rgba(7, 9, 18, 0) 62%, var(--bg) 100%);
  }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr; }
  .keys { grid-template-columns: 1fr; }
  .hero-meta { gap: .9rem 1.6rem; }
  .lightbox { grid-template-columns: 1fr; grid-template-rows: 1fr auto; padding: 1rem; }
  .lb-nav { position: static; }
  .lb-figure { grid-row: 1; }
  .lb-prev { grid-column: 1; grid-row: 2; justify-self: start; }
  .lb-next { grid-column: 1; grid-row: 2; justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
