:root {
  --cream: #fff6ea;
  --peach: #ffc99f;
  --orange: #ff8a4c;
  --ink: #140d12;
  --muted: rgba(255, 240, 225, 0.62);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --display: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", "Noto Serif CJK SC", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(255, 138, 76, 0.45);
  color: #fff;
}

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

.bg {
  position: fixed;
  inset: -2%;
  z-index: 0;
  background: url("bg-field.jpg") center center / cover no-repeat;
  transform: scale(1.06);
  animation: drift 36s ease-in-out infinite alternate;
  will-change: transform;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(12, 8, 14, 0.74) 0%, rgba(12, 8, 14, 0.42) 28%, rgba(12, 8, 14, 0.06) 60%, rgba(12, 8, 14, 0.26) 100%),
    radial-gradient(115% 85% at 50% 34%, rgba(12, 8, 14, 0) 0%, rgba(12, 8, 14, 0.1) 52%, rgba(12, 8, 14, 0.62) 100%),
    linear-gradient(180deg, rgba(12, 8, 14, 0.42) 0%, rgba(12, 8, 14, 0.06) 34%, rgba(12, 8, 14, 0.34) 62%, rgba(12, 8, 14, 0.84) 100%);
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.055;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/></svg>");
  mix-blend-mode: soft-light;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh clamp(28px, 8vw, 132px) 16vh;
  text-align: left;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 30px;
  color: var(--peach);
  font-family: "Baskerville", "Times New Roman", var(--serif);
  font-size: clamp(10px, 1vw, 12px);
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 1.1s 0.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.eyebrow::before {
  content: "";
  width: clamp(28px, 4vw, 54px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 201, 159, 0.55));
}

.eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 14px rgba(255, 138, 76, 0.9);
}

.quote {
  max-width: 11.5em;
  margin: 0;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6.4vw, 6rem);
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.46;
  text-shadow:
    0 2px 2px rgba(0, 0, 0, 0.22),
    0 10px 40px rgba(0, 0, 0, 0.52),
    0 0 90px rgba(255, 120, 60, 0.14);
}

.quote .line {
  display: block;
}

/* JS 可用时才做入场动画；JS 失效时静态文案仍然可见 */
.js .quote .line {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(7px);
  transition:
    opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(0.28s + var(--i, 0) * 0.13s);
}

.js .quote.is-visible .line {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.quote .accent {
  font-style: normal;
  color: #ffb27a;
  text-shadow:
    0 0 26px rgba(255, 138, 76, 0.42),
    0 0 70px rgba(255, 120, 60, 0.2);
}

.meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-top: clamp(26px, 4vw, 42px);
  opacity: 0;
  transform: translateY(12px);
  animation: reveal 1.2s 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.meta .rule {
  width: clamp(28px, 5vw, 62px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 201, 159, 0.5));
}

.meta .rule:last-child {
  background: linear-gradient(90deg, rgba(255, 201, 159, 0.5), transparent);
}

.meta-text {
  color: var(--muted);
  font-family: "Baskerville", "Times New Roman", var(--serif);
  font-size: clamp(9px, 0.9vw, 11px);
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: lowercase;
  white-space: nowrap;
}

.stamp {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-top: clamp(26px, 4vw, 38px);
  border-radius: 4px;
  background: #c8492f;
  color: #fff1e2;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
  transform: rotate(-4deg);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1.5px rgba(255, 240, 225, 0.2);
  opacity: 0;
  animation: stamp-in 0.9s 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ---------- footer ---------- */

.footer {
  position: fixed;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: max(20px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 0 clamp(24px, 6vw, 92px);
  color: rgba(255, 238, 222, 0.48);
  font-family: "Baskerville", "Times New Roman", var(--serif);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-indent: 0;
  text-transform: uppercase;
  opacity: 0;
  animation: reveal 1.2s 1.35s ease forwards;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 9px;
}

.filing {
  color: rgba(255, 238, 222, 0.42);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-indent: 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.filing:hover {
  color: var(--peach);
}

.footer-hint {
  font-family: var(--sans);
  letter-spacing: 0.16em;
  text-indent: 0.16em;
}

/* ---------- motion ---------- */

@keyframes drift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.2%, -0.8%, 0);
  }
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stamp-in {
  from {
    opacity: 0;
    transform: rotate(-12deg) scale(1.35);
  }
  to {
    opacity: 0.92;
    transform: rotate(-4deg) scale(1);
  }
}

/* ---------- responsive ---------- */

@media (max-width: 700px) {
  .veil {
    background:
      radial-gradient(130% 80% at 50% 38%, rgba(12, 8, 14, 0) 0%, rgba(12, 8, 14, 0.12) 50%, rgba(12, 8, 14, 0.72) 100%),
      linear-gradient(180deg, rgba(12, 8, 14, 0.46) 0%, rgba(12, 8, 14, 0.06) 32%, rgba(12, 8, 14, 0.5) 64%, rgba(12, 8, 14, 0.9) 100%);
  }

  .bg {
    background-position: 66% center;
  }

  .hero {
    align-items: center;
    padding: 14vh 7vw 17vh;
    text-align: center;
  }

  .eyebrow {
    margin-bottom: 24px;
    letter-spacing: 0.26em;
    text-indent: 0.26em;
  }

  .eyebrow::before {
    display: none;
  }

  .quote {
    max-width: 9em;
    font-size: clamp(2.35rem, 10.5vw, 3.6rem);
    letter-spacing: 0.06em;
    line-height: 1.55;
  }

  .meta {
    justify-content: center;
    gap: 11px;
  }

  .meta-text {
    font-size: 9px;
    letter-spacing: 0.18em;
    text-indent: 0.18em;
  }

  .footer {
    gap: 7px;
    font-size: 9px;
    letter-spacing: 0.14em;
    text-indent: 0;
  }

  .footer-row {
    justify-content: center;
    gap: 14px;
  }

  .filing {
    font-size: 8.5px;
    letter-spacing: 0.06em;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .hero {
    padding: 8vh 8vw 12vh;
  }

  .quote {
    font-size: clamp(2rem, 5.6vw, 3.8rem);
    line-height: 1.4;
  }

  .stamp {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg,
  .eyebrow,
  .meta,
  .stamp,
  .footer {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .js .quote .line {
    transition: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}
