:root {
  --bg: #f5ede2;
  --bg-soft: rgba(255, 251, 245, 0.78);
  --paper: rgba(255, 248, 239, 0.88);
  --ink: #13233a;
  --muted: #5d6675;
  --line: rgba(19, 35, 58, 0.12);
  --accent: #c55335;
  --accent-deep: #95311f;
  --gold: #caa25a;
  --teal: #3d7a78;
  --shadow: 0 24px 70px rgba(45, 47, 58, 0.14);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(202, 162, 90, 0.22), transparent 30%),
    radial-gradient(circle at 85% 12%, rgba(197, 83, 53, 0.16), transparent 26%),
    linear-gradient(180deg, #f7f0e6 0%, #efe3d2 45%, #f4ede3 100%);
  font-family: "Manrope", "Noto Serif SC", "Noto Serif JP", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(19, 35, 58, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 35, 58, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 90%);
}

html[lang="zh"] body {
  font-family: "Noto Serif SC", "Manrope", serif;
}

html[lang="ja"] body {
  font-family: "Noto Serif JP", "Manrope", serif;
}

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

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 22px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(248, 241, 231, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(19, 35, 58, 0.08);
}

.brand-kicker,
.section-index,
.eyebrow,
.stat-label,
.song-era,
.timeline-year,
.legacy-label,
.footer-title {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-kicker,
.footer-copy,
.section-heading p,
.hero-lead,
.story-panel p,
.motif-list li,
.timeline-copy,
.song-card p,
.legacy-card p {
  color: var(--muted);
}

.brand-kicker {
  margin: 0 0 4px;
  font-size: 0.75rem;
}

.brand-title {
  font-family: "Cormorant Garamond", "Noto Serif SC", "Noto Serif JP", serif;
  font-size: clamp(1.35rem, 1.7vw, 1.72rem);
  font-weight: 700;
  line-height: 1;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 0.88rem;
}

.site-nav a {
  position: relative;
  padding-bottom: 4px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.lang-switch {
  display: inline-flex;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(19, 35, 58, 0.07);
}

.header-tools {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
}

.sound-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(19, 35, 58, 0.08);
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.sound-toggle svg {
  width: 18px;
  height: 18px;
}

.sound-toggle::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-42deg);
  opacity: 1;
  transition: opacity 180ms ease;
}

.sound-toggle.is-active {
  background: var(--ink);
  color: #fffaf4;
  box-shadow: 0 10px 22px rgba(19, 35, 58, 0.18);
}

.sound-toggle.is-active::after {
  opacity: 0;
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
  transform: translateY(-1px);
}

.lang-btn {
  border: 0;
  min-width: 42px;
  padding: 9px 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.lang-btn.active {
  background: var(--ink);
  color: #fffaf4;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  transform: translateY(-1px);
}

.section {
  margin-bottom: 22px;
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.88), rgba(255, 245, 232, 0.7));
  box-shadow: var(--shadow);
  overflow: clip;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 40px;
  min-height: 72vh;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-deep);
  font-size: 0.78rem;
}

.hero-title,
.section-heading h2,
.story-aside h3 {
  margin: 0;
  font-family: "Cormorant Garamond", "Noto Serif SC", "Noto Serif JP", serif;
  line-height: 1.05;
}

.hero-title {
  font-size: clamp(2.45rem, 6.4vw, 4.6rem);
  text-wrap: balance;
  max-width: 10.5ch;
}

html[lang="zh"] .hero-title,
html[lang="zh"] .section-heading h2,
html[lang="zh"] .story-aside h3 {
  font-family: "Noto Serif SC", serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

html[lang="zh"] .hero-title {
  max-width: 9ch;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

html[lang="en"] .hero-title {
  max-width: 14ch;
  line-height: 1.04;
}

html[lang="ja"] .hero-title {
  max-width: 11ch;
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-lead {
  max-width: 54ch;
  margin: 20px 0 0;
  font-size: 0.96rem;
}

.hero-sticker {
  position: absolute;
  top: 118px;
  right: -20px;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: 184px;
  padding: 14px 12px 12px;
  border: 1px solid rgba(19, 35, 58, 0.12);
  border-radius: 28px 26px 30px 24px;
  background:
    linear-gradient(165deg, rgba(255, 251, 246, 0.96), rgba(244, 236, 224, 0.88)),
    rgba(255, 250, 244, 0.95);
  box-shadow:
    0 18px 40px rgba(19, 35, 58, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transform: rotate(7deg);
  pointer-events: none;
}

.hero-sticker::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px dashed rgba(19, 35, 58, 0.16);
  border-radius: 22px 20px 24px 18px;
  opacity: 0.75;
}

.hero-sticker-tape {
  position: absolute;
  top: -12px;
  width: 60px;
  height: 20px;
  border-radius: 6px;
  background: rgba(229, 216, 194, 0.7);
  border: 1px solid rgba(180, 159, 129, 0.3);
  transform: rotate(-10deg);
  box-shadow: 0 6px 16px rgba(19, 35, 58, 0.05);
}

.hero-sticker-photo-frame {
  position: relative;
  z-index: 1;
}

.hero-sticker-photo-frame {
  display: grid;
  place-items: center;
  width: 100%;
  padding: 4px;
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid rgba(19, 35, 58, 0.08);
  box-shadow:
    0 10px 22px rgba(19, 35, 58, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.hero-sticker-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  background: #f7f3ec;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.primary-link {
  background: var(--ink);
  color: #fff7ef;
}

.primary-link:hover,
.primary-link:focus-visible,
.secondary-link:hover,
.secondary-link:focus-visible {
  transform: translateY(-2px);
}

.secondary-link {
  background: rgba(255, 255, 255, 0.42);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.stat-card {
  display: grid;
  align-content: start;
  min-height: 158px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid rgba(19, 35, 58, 0.08);
}

.stat-value {
  display: block;
  margin-bottom: 4px;
  font-family: "Manrope", "Noto Serif SC", "Noto Serif JP", sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: lining-nums tabular-nums;
}

.stat-label {
  display: block;
  max-width: 12ch;
  font-size: 0.82rem;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: none;
  text-wrap: balance;
}

.hero-visual {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.hero-visual::before {
  inset: 10% 8% auto auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(197, 83, 53, 0.22), transparent 68%);
}

.hero-visual::after {
  inset: auto auto 14% 2%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(61, 122, 120, 0.18), transparent 68%);
}

.orbit,
.photo-collage,
.floating-note {
  position: absolute;
}

.orbit {
  border: 1px solid rgba(19, 35, 58, 0.11);
  border-radius: 50%;
}

.orbit-large {
  width: min(92%, 460px);
  aspect-ratio: 1;
  animation: spin 24s linear infinite;
}

.orbit-small {
  width: min(65%, 300px);
  aspect-ratio: 1;
  animation: spin-reverse 16s linear infinite;
}

.photo-collage {
  inset: 0;
}

.photo-card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 26px;
  background: rgba(255, 248, 240, 0.62);
  box-shadow: 0 18px 50px rgba(19, 35, 58, 0.18);
}

.photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-card-main img {
  object-position: 50% 50%;
  transform: scale(1);
  transform-origin: center;
}

.photo-card figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(12, 24, 42, 0.72);
  color: #fff7ef;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
}

.photo-card-main {
  left: 18%;
  top: 5%;
  width: min(52%, 260px);
  height: min(80%, 430px);
  transform: rotate(-3deg);
}

.photo-card-top {
  right: 8%;
  top: 10%;
  width: min(44%, 230px);
  aspect-ratio: 1 / 1.12;
  transform: rotate(5deg);
}

.photo-card-bottom {
  right: 14%;
  bottom: 7%;
  width: min(48%, 250px);
  aspect-ratio: 1;
  transform: rotate(-6deg);
}

.floating-note {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 24px rgba(19, 35, 58, 0.1);
}

.note-a {
  top: 14%;
  right: 8%;
  animation: drift 5.2s ease-in-out infinite;
}

.note-b {
  left: 4%;
  bottom: 22%;
  animation: drift 6s ease-in-out infinite 0.8s;
}

.note-c {
  right: 14%;
  bottom: 10%;
  animation: drift 4.8s ease-in-out infinite 0.2s;
}

.section-heading {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.section-index {
  margin: 10px 0 0;
  color: var(--accent);
  font-size: 0.8rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4.1vw, 3.4rem);
}

.section-heading p {
  max-width: 60ch;
  margin: 10px 0 0;
  font-size: 0.96rem;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 22px;
  margin-bottom: 34px;
}

.story-panel,
.story-aside,
.song-card,
.legacy-card,
.timeline-item {
  position: relative;
  border: 1px solid rgba(19, 35, 58, 0.08);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(19, 35, 58, 0.08);
}

.story-panel,
.story-aside {
  padding: 24px;
}

.story-panel p {
  margin: 0;
}

.story-panel p + p {
  margin-top: 16px;
}

.story-aside h3 {
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  margin-bottom: 16px;
}

.motif-list {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.motif-list li {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(19, 35, 58, 0.05);
}

.timeline-shell {
  position: relative;
  padding-left: 34px;
}

.timeline-line {
  position: absolute;
  top: 8px;
  left: 11px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(19, 35, 58, 0.08));
}

.timeline-list {
  display: grid;
  gap: 18px;
}

.timeline-item {
  padding: 22px 24px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: #fff9f3;
  box-shadow: 0 0 0 6px rgba(197, 83, 53, 0.12);
}

.timeline-year {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent-deep);
  font-size: 0.78rem;
}

.timeline-item h3,
.song-card h3,
.legacy-card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", "Noto Serif SC", "Noto Serif JP", serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.timeline-copy {
  margin: 10px 0 0;
}

.story-panel p,
.motif-list li,
.timeline-copy,
.song-card p,
.legacy-card p,
.footer-copy {
  font-size: 0.96rem;
}

.song-grid,
.legacy-grid {
  display: grid;
  gap: 18px;
}

.song-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.song-card {
  padding: 24px;
  overflow: hidden;
}

.song-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 83, 53, 0.12), transparent 70%);
}

.song-era,
.legacy-label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.74rem;
}

.song-card p,
.legacy-card p {
  margin: 12px 0 18px;
}

.song-tracks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.song-track {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(19, 35, 58, 0.07);
  font-size: 0.88rem;
}

.legacy-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legacy-card {
  padding: 24px;
  min-height: 220px;
}

.site-footer {
  padding: 18px 6px 0;
}

.footer-panel {
  position: relative;
  max-width: 720px;
  padding: 24px 28px 22px;
  border: 1px solid rgba(19, 35, 58, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 251, 245, 0.86), rgba(247, 238, 225, 0.72)),
    rgba(255, 250, 244, 0.78);
  box-shadow: 0 18px 40px rgba(19, 35, 58, 0.06);
}

.footer-panel::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(19, 35, 58, 0.08);
  border-radius: 18px;
  pointer-events: none;
}

.footer-title {
  margin: 0 0 8px;
  font-size: 0.74rem;
  color: var(--accent);
}

.footer-copy {
  margin: 0;
  max-width: 58ch;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.footer-meta span {
  position: relative;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(19, 35, 58, 0.05);
  color: var(--ink);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: rise 720ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.reveal-delay-1 {
  animation-delay: 120ms;
}

.reveal-delay-2 {
  animation-delay: 240ms;
}

.reveal-delay-3 {
  animation-delay: 360ms;
}

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

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-reverse {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 980px) {
  .site-header,
  .hero-section,
  .story-layout,
  .legacy-grid,
  .song-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
    border-radius: 28px;
  }

  .site-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-sticker {
    right: 4px;
    top: 132px;
    transform: rotate(6deg) scale(0.92);
  }

  .photo-card-main {
    left: 10%;
    width: min(50%, 230px);
    height: min(78%, 360px);
  }

  .photo-card-top {
    right: 4%;
    width: min(42%, 190px);
  }

  .photo-card-bottom {
    right: 8%;
    width: min(44%, 200px);
  }

  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legacy-grid,
  .song-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
  }

}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 16px, 1200px);
    padding-top: 16px;
  }

  .section {
    padding: 28px 20px;
    border-radius: 24px;
  }

  .site-header {
    padding: 18px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 12vw, 3.35rem);
  }

  .hero-sticker {
    display: none;
  }

  .section-heading {
    flex-direction: column;
    gap: 8px;
  }

  .footer-panel {
    padding: 20px 18px;
    border-radius: 20px;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .timeline-shell {
    padding-left: 24px;
  }

  .timeline-item::before {
    left: -19px;
  }

  .floating-note {
    font-size: 0.85rem;
  }

  .hero-visual {
    min-height: 500px;
  }

  .photo-card-main {
    left: 7%;
    top: 8%;
    width: 54%;
    height: 64%;
  }

  .photo-card-top {
    top: 4%;
    right: 2%;
    width: 42%;
  }

  .photo-card-bottom {
    right: 6%;
    bottom: 8%;
    width: 46%;
  }

  .photo-card figcaption {
    left: 10px;
    bottom: 10px;
    font-size: 0.68rem;
  }
}

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