:root {
  --bg: #0c0c0c;
  --fg: #f3ede2;
  --muted: rgba(243, 237, 226, 0.56);
  --line: rgba(243, 237, 226, 0.18);
  --accent: #c8a96a;
  --nav-bg: rgba(12, 12, 12, 0.78);
  --font-display: Georgia, 'Times New Roman', 'Songti SC', 'STSong', serif;
  --font-sans: system-ui, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;
}

body {
  background: var(--bg);
  color: var(--fg);
  animation: page-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 42%,
    transparent 40%,
    rgba(0, 0, 0, 0.62) 100%
  );
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 81;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: var(--accent);
  color: #0c0c0c;
}

@keyframes page-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 140px 6vw 72px;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 16px;
  z-index: 1;
  border: 1px solid rgba(200, 169, 106, 0.2);
  pointer-events: none;
}

.scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.95;
}

.scene-fallback {
  background:
    radial-gradient(circle at 68% 36%, rgba(200, 169, 106, 0.32), transparent 20%),
    radial-gradient(circle at 68% 38%, transparent 22%, rgba(243, 237, 226, 0.12) 22.2%, transparent 22.6%),
    radial-gradient(circle at 68% 38%, transparent 32%, rgba(200, 169, 106, 0.18) 32.2%, transparent 32.6%);
}

.hero-top {
  position: absolute;
  top: 86px;
  left: 6vw;
  right: 6vw;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1040px;
}

.eyebrow,
.act-label {
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 8.6rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-lead {
  max-width: 560px;
  margin: 0;
  font-size: clamp(13px, 1.15vw, 16px);
  line-height: 1.95;
  color: var(--muted);
}

.hero-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  max-width: 700px;
  margin-top: 42px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.scroll-cue {
  position: absolute;
  right: 6vw;
  bottom: 72px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* ---------- acts ---------- */

.act,
.selected {
  padding: clamp(80px, 10vw, 150px) 6vw;
  border-top: 1px solid var(--line);
}

.act-head {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.act-label {
  margin: 0;
}

.act-head h2,
.selected-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.act-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-left: 160px;
}

.act-body p {
  max-width: 560px;
  margin: 0;
  font-size: 13.5px;
  line-height: 2;
  color: var(--muted);
}

.filmstrip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 56px;
}

.frame {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 4 / 5;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #101010;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.frame:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 169, 106, 0.5);
}

.frame::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(243, 237, 226, 0.1);
  pointer-events: none;
}

.frame-no {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.frame > div {
  position: relative;
  z-index: 2;
}

.frame h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 400;
}

.frame p {
  margin: 0;
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}

.frame--one::after {
  content: '';
  position: absolute;
  left: 15%;
  top: 22%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(200, 169, 106, 0.5), transparent 62%);
  filter: blur(4px);
}

.frame--two::after {
  content: '';
  position: absolute;
  inset: 24% 16% 18%;
  background: repeating-linear-gradient(
    90deg,
    rgba(243, 237, 226, 0.2) 0 1px,
    transparent 1px 16px
  );
}

.frame--three::after {
  content: '';
  position: absolute;
  left: 27%;
  top: 27%;
  width: 46%;
  aspect-ratio: 1;
  border: 1px solid rgba(200, 169, 106, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 34px rgba(200, 169, 106, 0.18);
}

/* ---------- selected ---------- */

.selected-head {
  margin-bottom: 36px;
}

.selected-list {
  border-top: 1px solid var(--line);
}

.selected-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 30px;
  gap: 20px;
  align-items: center;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  transition:
    padding 0.3s ease,
    background 0.3s ease;
}

.selected-row:hover,
.selected-row:focus-visible {
  padding-left: 18px;
  background: rgba(200, 169, 106, 0.06);
}

.row-index {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.row-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
  letter-spacing: -0.02em;
}

.row-note {
  font-size: 12px;
  color: var(--muted);
}

.row-arrow {
  justify-self: end;
  color: var(--accent);
}

/* ---------- contact ---------- */

.contact {
  padding: clamp(90px, 12vw, 180px) 6vw;
  border-top: 1px solid var(--line);
  text-align: center;
}

.contact-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.contact h2 {
  margin: 22px 0 30px;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 10vw, 11rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.065em;
}

.contact h2 em {
  font-style: italic;
  color: var(--accent);
}

.contact p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 30px;
  margin-top: 34px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.contact-links a {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.contact-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 6vw;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.footer a:hover {
  color: var(--accent);
}

@media (max-width: 980px) {
  .act-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .act-body {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-left: 0;
  }

  .selected-row {
    grid-template-columns: 54px 1fr 30px;
  }

  .row-note {
    display: none;
  }
}

@media (max-width: 680px) {
  .hero {
    padding-bottom: 92px;
  }

  .hero-top {
    top: 76px;
  }

  .hero-top span:last-child {
    display: none;
  }

  .scroll-cue {
    bottom: 90px;
  }

  .filmstrip {
    grid-template-columns: 1fr;
  }

  .frame {
    aspect-ratio: 1 / 1;
  }

  .hero-acts {
    gap: 10px 20px;
  }
}
