/* ---------------------------------------------------------------
   Coldy · 缆车  — showcase site (Chinese-primary)
   --------------------------------------------------------------- */

:root {
  --bg: #07090f;
  --bg-2: #0c1220;
  --bg-3: #131a2c;
  --ink: #e8ecf3;
  --ink-soft: #aab3c5;
  --ink-mute: #6a7385;
  --rule: #1d2538;
  --glow: #6cc6ff;
  --glow-strong: #9adcff;
  --glow-warm: #f4e4c1;
  --max: 1180px;
  --pad: clamp(1.25rem, 4vw, 3.25rem);
  --serif-en: "Cormorant Garamond", serif;
  --serif: "Noto Serif SC", "Cormorant Garamond", serif;
  --sans-en: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --sans: "Noto Sans SC", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

em { font-style: normal; color: var(--glow-strong); font-weight: 400; }

::selection { background: rgba(108,198,255,.35); color: #fff; }

/* ---------- background atmospherics ---------- */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 30%, transparent 30%, rgba(0,0,0,.35) 75%, rgba(0,0,0,.7) 100%);
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  padding: var(--pad);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 40% at 50% 55%, rgba(108,198,255,.10), transparent 60%),
    linear-gradient(180deg, #060912 0%, #08101e 50%, #07090f 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px);
  pointer-events: none;
  opacity: .7;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(108,198,255,.18), transparent 12%),
    radial-gradient(circle at 82% 76%, rgba(108,198,255,.12), transparent 14%),
    radial-gradient(circle at 60% 40%, rgba(108,198,255,.08), transparent 18%);
  pointer-events: none;
  filter: blur(.5px);
}

.spark {
  position: absolute;
  top: 32%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--glow-strong);
  box-shadow:
    0 0 18px 6px rgba(108,198,255,.7),
    0 0 60px 24px rgba(108,198,255,.35),
    0 0 140px 60px rgba(108,198,255,.18);
  transform: translate(-50%, -50%);
  animation: drift 9s ease-in-out infinite, pulse 2.6s ease-in-out infinite;
  z-index: 2;
}

@keyframes pulse {
  0%, 100% { opacity: .9; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

@keyframes drift {
  0%   { top: 32%; left: 50%; }
  25%  { top: 28%; left: 56%; }
  50%  { top: 38%; left: 47%; }
  75%  { top: 30%; left: 53%; }
  100% { top: 32%; left: 50%; }
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 880px;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .42em;
  color: var(--ink-mute);
  margin: 0 0 2.5rem;
}

.hero-title {
  font-weight: 300;
  line-height: 1;
  margin: 0 0 2rem;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .35em;
}
.hero-zh {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.6rem, 9vw, 7.5rem);
  letter-spacing: .12em;
}
.hero-divider {
  display: inline-block;
  color: var(--glow);
  transform: translateY(-.1em);
  font-weight: 300;
  font-family: var(--serif-en);
  font-size: clamp(3rem, 7vw, 5.5rem);
}
.hero-en {
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 5rem);
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}

.hero-tagline-zh {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.05rem, 1.65vw, 1.35rem);
  line-height: 2;
  letter-spacing: .12em;
  color: var(--ink);
  max-width: 680px;
  margin: 0 auto 1.4rem;
}
.hero-tagline-en {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 300;
  font-size: clamp(.85rem, 1.15vw, 1rem);
  letter-spacing: .35em;
  color: var(--glow);
  max-width: 580px;
  margin: 0 auto 3rem;
  line-height: 1.8;
  text-transform: none;
}

.hero-meta {
  font-size: .72rem;
  letter-spacing: .35em;
  color: var(--ink-mute);
}
.hero-meta span { margin: 0 .35em; }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1px solid var(--ink-mute);
  border-radius: 12px;
  display: block;
}
.hero-scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 2px;
  height: 6px;
  background: var(--glow);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scroll-tick 1.8s ease-in-out infinite;
}
@keyframes scroll-tick {
  0%   { opacity: 0; transform: translate(-50%, 0); }
  50%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* ---------- generic section ---------- */

.section {
  position: relative;
  z-index: 2;
  padding: clamp(5rem, 11vw, 9rem) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
  max-width: 760px;
}

.kicker {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .42em;
  color: var(--glow);
  margin: 0 0 1.4rem;
}

.section h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: .12em;
  margin: 0;
  line-height: 1.2;
}

.h2-en {
  display: block;
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 300;
  font-size: .42em;
  letter-spacing: .02em;
  color: var(--ink-soft);
  margin-top: .5em;
}

.section-sub {
  font-family: var(--serif);
  font-weight: 300;
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
  max-width: 600px;
  font-size: 1.02rem;
  letter-spacing: .08em;
  line-height: 2;
}

/* ---------- 创作逻辑 ---------- */

.section-logic {
  border-top: 1px solid var(--rule);
}

.prose {
  max-width: 760px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.05rem;
  letter-spacing: .08em;
  line-height: 2.1;
  color: var(--ink);
}
.prose p {
  margin: 0 0 1.6em;
  text-align: justify;
}
.prose p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 3.6em;
  float: left;
  line-height: .9;
  margin: 0.05em 0.16em 0 -0.04em;
  color: var(--glow);
  font-weight: 400;
}

/* ---------- 人物设定 ---------- */

.section-character {
  border-top: 1px solid var(--rule);
}

.char-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 800px) {
  .char-grid { grid-template-columns: 1fr; }
}

.char-figure, .char-portrait {
  margin: 0;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 25px 50px -12px rgba(0,0,0,.6),
    0 0 0 1px rgba(108,198,255,.05);
}
.char-portrait {
  margin-top: 4rem;
  max-width: 400px;
}

.char-copy .lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.8;
  letter-spacing: .14em;
  color: var(--glow-strong);
  margin: 0 0 2rem;
}

.char-prose {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 2.1;
  letter-spacing: .08em;
  color: var(--ink);
  margin: 0 0 1.4rem;
  text-align: justify;
}
.char-prose:last-child { margin-bottom: 0; color: var(--ink-soft); }

/* ---------- 场景设定 ---------- */

.section-world {
  border-top: 1px solid var(--rule);
}

.world-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
  margin-bottom: 2.5rem;
}
@media (max-width: 800px) {
  .world-wrap { grid-template-columns: 1fr; }
}

.world-figure {
  margin: 0;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 25px 50px -12px rgba(0,0,0,.6),
    0 0 0 1px rgba(108,198,255,.05);
  display: flex;
  flex-direction: column;
}
.world-figure img { flex: 1; object-fit: cover; }
.world-figure figcaption {
  padding: 1rem 1.2rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: .88rem;
  letter-spacing: .12em;
  line-height: 1.7;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
}

.world-copy {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.15rem;
  line-height: 2;
  letter-spacing: .12em;
  color: var(--ink);
  margin: 0;
  max-width: 720px;
}

/* ---------- 分镜 ---------- */

.section-board {
  border-top: 1px solid var(--rule);
  max-width: 1320px;
}

.beats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 8vw, 7rem);
}

.beat {
  display: grid;
  grid-template-columns: 80px 1fr 1.1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  position: relative;
}

@media (max-width: 900px) {
  .beat {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .beat-num { font-size: 2.5rem !important; }
}

.beat-num {
  font-family: var(--serif-en);
  font-weight: 300;
  font-size: 3rem;
  line-height: 1;
  color: var(--glow);
  letter-spacing: -0.02em;
  padding-top: .3rem;
  position: relative;
}
.beat-num::after {
  content: "";
  position: absolute;
  left: 0;
  top: 4.2rem;
  width: 1px;
  height: calc(100% - 4.5rem);
  background: linear-gradient(to bottom, rgba(108,198,255,.4), transparent);
}
@media (max-width: 900px) {
  .beat-num::after { display: none; }
}

.beat-img {
  margin: 0;
  display: grid;
  gap: .55rem;
  align-items: stretch;
}
.beat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,.7),
    0 0 0 1px rgba(108,198,255,.04);
  transition: transform .6s ease, box-shadow .6s ease;
}
.beat-img img:hover {
  transform: translateY(-4px);
  box-shadow:
    0 40px 70px -20px rgba(0,0,0,.8),
    0 0 0 1px rgba(108,198,255,.12);
}
.beat-img-2 { grid-template-columns: 1fr 1fr; }
.beat-img-3 { grid-template-columns: repeat(3, 1fr); gap: .45rem; }
@media (max-width: 700px) {
  .beat-img-3 { grid-template-columns: 1fr 1fr; }
}

.beat-text h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.4;
  margin: 0 0 1.4rem;
  letter-spacing: .12em;
}

.beat-zh-main {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1rem;
  line-height: 2.1;
  letter-spacing: .08em;
  color: var(--ink);
  margin: 0 0 1.8rem;
  text-align: justify;
}

.beat-sound {
  background: linear-gradient(180deg, rgba(108,198,255,.04), rgba(108,198,255,.01));
  border: 1px solid rgba(108,198,255,.12);
  border-radius: 4px;
  padding: 1.1rem 1.3rem;
}
.beat-sound-label {
  display: inline-block;
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .35em;
  color: var(--glow);
  margin-bottom: .65rem;
}
.beat-sound p {
  margin: 0 0 .6rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: .95rem;
  letter-spacing: .06em;
  line-height: 1.95;
  color: var(--ink-soft);
}
.beat-sound p:last-child { margin-bottom: 0; }

.beat-refs {
  list-style: none;
  margin: .8rem 0 0;
  padding: .8rem 0 0;
  border-top: 1px dashed rgba(108,198,255,.15);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--ink-mute);
}
.beat-refs li {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .25rem .6rem;
  background: rgba(108,198,255,.05);
  border: 1px solid rgba(108,198,255,.1);
  border-radius: 3px;
  transition: border-color .3s ease, background .3s ease;
}
.beat-refs li:hover {
  background: rgba(108,198,255,.1);
  border-color: rgba(108,198,255,.3);
}
.beat-refs a {
  color: var(--glow);
  font-weight: 400;
  letter-spacing: .04em;
}

/* climax beat — slightly amplified */
.beat-climax .beat-num {
  color: var(--glow-strong);
  text-shadow: 0 0 28px rgba(154,220,255,.45);
}
.beat-climax .beat-img {
  box-shadow:
    0 40px 80px -20px rgba(0,0,0,.8),
    0 0 0 1px rgba(108,198,255,.18),
    0 0 60px -10px rgba(108,198,255,.25);
}
.beat-climax-title {
  color: var(--glow-strong) !important;
}

/* ---------- 声音哲学 ---------- */

.section-sound {
  border-top: 1px solid var(--rule);
}

.sound-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 800px) {
  .sound-grid { grid-template-columns: 1fr; }
}

.sound-card {
  padding: 1.9rem 1.8rem;
  background: linear-gradient(180deg, rgba(108,198,255,.04), rgba(108,198,255,.0));
  border: 1px solid var(--rule);
  border-radius: 4px;
  transition: border-color .4s ease, transform .4s ease;
}
.sound-card:hover {
  border-color: rgba(108,198,255,.25);
  transform: translateY(-3px);
}
.sound-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: .12em;
  margin: 0 0 1.1rem;
  color: var(--glow-strong);
}
.sound-card p {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: .98rem;
  letter-spacing: .06em;
  color: var(--ink-soft);
  line-height: 2;
  text-align: justify;
}

/* ---------- FOOTER ---------- */

.site-foot {
  position: relative;
  z-index: 2;
  padding: 5rem var(--pad) 4rem;
  border-top: 1px solid var(--rule);
  background:
    radial-gradient(ellipse 60% 60% at 50% 100%, rgba(108,198,255,.08), transparent 70%),
    var(--bg);
}
.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
.foot-title {
  font-weight: 300;
  font-size: 1.85rem;
  letter-spacing: .12em;
  margin: 0 0 .5rem;
  display: inline-flex;
  gap: .4em;
  align-items: center;
}
.foot-zh {
  font-family: var(--serif);
}
.foot-divider {
  color: var(--glow);
  font-family: var(--serif-en);
}
.foot-en {
  font-family: var(--serif-en);
  font-style: italic;
  color: var(--ink-soft);
  font-size: .9em;
}
.foot-meta {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .35em;
  color: var(--ink-mute);
  margin: 0 0 2rem;
}
.foot-note {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 2;
  letter-spacing: .14em;
  color: var(--ink);
  margin: 0 0 1.4rem;
}
.foot-sub {
  font-family: var(--serif);
  font-weight: 300;
  font-size: .95rem;
  line-height: 2;
  letter-spacing: .1em;
  color: var(--ink-mute);
  margin: 0;
}

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.2s cubic-bezier(.22,.61,.36,1), transform 1.2s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .spark, .hero-scroll span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
