:root {
  --ink: #04050c;
  --night: #0a0f26;
  --text: #e8ebff;
  --muted: #a4abd8;
  --faint: #6f76a8;
  --gold: #ffd896;
  --gold_deep: #e8a95a;
  --cyan: #8fdcff;
  --violet: #a994ff;
  --panel: rgba(9, 12, 30, 0.62);
  --panel_edge: rgba(169, 148, 255, 0.22);
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Noto Serif TC", "Source Han Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: system-ui, -apple-system, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color-scheme: dark;
}

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

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.8;
  background:
    radial-gradient(ellipse 80% 60% at 50% 38%, #141c45 0%, rgba(20, 28, 69, 0) 70%),
    radial-gradient(ellipse 60% 40% at 85% 90%, rgba(80, 40, 140, 0.35) 0%, rgba(80, 40, 140, 0) 70%),
    linear-gradient(180deg, #070a1a 0%, var(--ink) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

#sky {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 46% 26% at 50% 62%, rgba(4, 5, 12, 0.62) 0%, rgba(4, 5, 12, 0.3) 60%, rgba(4, 5, 12, 0) 100%);
}

.hero,
main,
.footer {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 16px 120px;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.85;
  padding-left: 0.42em;
}

.wordmark {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(52px, 13vw, 156px);
  line-height: 1;
  letter-spacing: 0.16em;
  padding-left: 0.16em;
  white-space: nowrap;
  text-shadow: 0 0 42px rgba(255, 216, 150, 0.28);
}

.wordmark span {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 18%, var(--gold) 58%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.wordmark_sub {
  margin: 20px 0 0;
  font-family: var(--serif);
  font-size: clamp(18px, 3.2vw, 28px);
  letter-spacing: 0.6em;
  padding-left: 0.6em;
  color: var(--gold);
}

.lead {
  margin: 40px auto 0;
  max-width: 34em;
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--text);
  text-shadow: 0 0 10px rgba(4, 5, 12, 1), 0 0 26px rgba(4, 5, 12, 0.95), 0 0 48px rgba(4, 5, 12, 0.8);
}

.lead_en {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92em;
  color: var(--muted);
}

.scroll_cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
  color: var(--muted);
  text-decoration: none;
}

.scroll_cue::after {
  content: "";
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--gold), rgba(255, 216, 150, 0));
  transform-origin: top;
  animation: cue_fall 2.6s ease-in-out infinite;
}

main {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px 80px;
  display: grid;
  gap: 72px;
}

.panel {
  position: relative;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(169, 148, 255, 0.08), rgba(143, 220, 255, 0.02) 45%, rgba(255, 216, 150, 0.05)),
    var(--panel);
  border: 1px solid var(--panel_edge);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 216, 150, 0), var(--gold), rgba(143, 220, 255, 0.9), rgba(169, 148, 255, 0));
  opacity: 0.8;
}

.panel_index {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.3em;
  color: var(--gold_deep);
}

.panel h2 {
  margin: 4px 0 22px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4.6vw, 44px);
  line-height: 1.25;
  letter-spacing: 0.06em;
}

.panel h2 span,
.card h3 span {
  display: inline-block;
  margin-left: 0.8em;
  font-size: 0.5em;
  font-style: italic;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.panel p {
  margin: 0 0 14px;
  max-width: 40em;
}

.english {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
}

.constellation {
  display: block;
  width: 100%;
  height: auto;
  margin: 28px 0 0;
  overflow: visible;
}

.constellation_lines line {
  stroke: rgba(143, 220, 255, 0.35);
  stroke-width: 1.2;
  stroke-dasharray: 3 7;
}

.star_halo {
  fill: rgba(255, 216, 150, 0.16);
  transform-box: fill-box;
  transform-origin: center;
  animation: star_breathe 4.8s ease-in-out infinite;
}

.star_core {
  fill: #fff6e2;
  filter: drop-shadow(0 0 6px rgba(255, 216, 150, 0.9));
}

.star text {
  fill: var(--text);
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.06em;
  text-anchor: middle;
}

.star:nth-child(2) .star_halo { animation-delay: -0.6s; }
.star:nth-child(3) .star_halo { animation-delay: -1.2s; }
.star:nth-child(4) .star_halo { animation-delay: -1.8s; }
.star:nth-child(5) .star_halo { animation-delay: -2.4s; }
.star:nth-child(6) .star_halo { animation-delay: -3s; }
.star:nth-child(7) .star_halo { animation-delay: -3.6s; }
.star:nth-child(8) .star_halo { animation-delay: -4.2s; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.card {
  padding: 24px 24px 18px;
  border-radius: 16px;
  background: rgba(14, 19, 46, 0.7);
  border: 1px solid rgba(143, 220, 255, 0.14);
}

.card h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.card p {
  font-size: 16px;
}

.card .english {
  font-size: 16px;
}

.address {
  font-family: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 16px;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(143, 220, 255, 0.4);
  overflow-wrap: anywhere;
}

.address:hover,
.address:focus-visible {
  color: #ffffff;
  border-bottom-color: var(--gold);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 6px;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text);
  background: rgba(169, 148, 255, 0.12);
  border: 1px solid rgba(169, 148, 255, 0.3);
}

.footer {
  padding: 24px 16px 48px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--faint);
}

.footer p {
  margin: 4px 0;
}

.engine {
  font-size: 11px;
  letter-spacing: 0.24em;
}

.visually_hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

.js .wordmark span {
  opacity: 0;
  transform: translateY(0.25em);
  animation: letter_rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.js .wordmark span:nth-child(1) { animation-delay: 0.15s; }
.js .wordmark span:nth-child(2) { animation-delay: 0.25s; }
.js .wordmark span:nth-child(3) { animation-delay: 0.35s; }
.js .wordmark span:nth-child(4) { animation-delay: 0.45s; }
.js .wordmark span:nth-child(5) { animation-delay: 0.55s; }
.js .wordmark span:nth-child(6) { animation-delay: 0.65s; }
.js .wordmark span:nth-child(7) { animation-delay: 0.75s; }
.js .wordmark span:nth-child(8) { animation-delay: 0.85s; }

.js .wordmark_sub,
.js .lead,
.js .eyebrow {
  opacity: 0;
  animation: fade_in 1.4s ease forwards;
}

.js .eyebrow { animation-delay: 0.1s; }
.js .wordmark_sub { animation-delay: 1.1s; }
.js .lead { animation-delay: 1.5s; }

.js .reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is_shown {
  opacity: 1;
  transform: none;
}

@keyframes letter_rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade_in {
  to {
    opacity: 1;
  }
}

@keyframes cue_fall {
  0% { transform: scaleY(0); opacity: 0; }
  30% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(24px); opacity: 0; }
}

@keyframes star_breathe {
  0%, 100% { transform: scale(0.8); opacity: 0.55; }
  50% { transform: scale(1.25); opacity: 1; }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  main {
    gap: 40px;
  }

  .panel {
    border-radius: 18px;
  }

  .panel h2 span,
  .card h3 span {
    display: block;
    margin: 2px 0 0;
  }

  .star text {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .wordmark span,
  .js .wordmark_sub,
  .js .lead,
  .js .eyebrow,
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
