:root {
  --ink: #070806;
  --night: #100d09;
  --brown: #241306;
  --lacquer: #4b0f0e;
  --cinnabar: #9e2820;
  --gold: #d7a45a;
  --bright-gold: #f0d184;
  --jade: #214c45;
  --river: #8aac9d;
  --silk: #f8ecd8;
  --muted: rgba(248, 236, 216, 0.72);
  --soft: rgba(248, 236, 216, 0.1);
  --line: rgba(240, 209, 132, 0.24);
  --shadow: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--silk);
  font-family: "Noto Serif TC", "Source Han Serif TC", "Songti TC", "PMingLiU", "MingLiU", serif;
  background: linear-gradient(180deg, #090806 0%, #170e0b 46%, #0d1512 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.1;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 5px 5px;
  mix-blend-mode: soft-light;
}

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: 66px;
  background: rgba(34, 17, 6, 0.72);
  border-bottom: 1px solid rgba(240, 209, 132, 0.1);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, height 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  height: 60px;
  background: rgba(18, 10, 5, 0.92);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.header-shell {
  width: min(1180px, calc(100% - 48px));
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
}

.brand-emblem {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(240, 209, 132, 0.62);
  color: var(--bright-gold);
  background: linear-gradient(145deg, rgba(132, 27, 18, 0.88), rgba(44, 14, 7, 0.96));
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.18);
  font-size: 1.05rem;
  font-weight: 900;
}

.brand-text strong {
  display: block;
  font-size: 1.03rem;
  line-height: 1;
  letter-spacing: 0.04em;
}

.brand-text small {
  display: block;
  margin-top: 5px;
  color: rgba(240, 209, 132, 0.82);
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  height: 100%;
  color: rgba(248, 236, 216, 0.78);
  font-size: 0.88rem;
  font-weight: 800;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 2px;
  transition: color 160ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--cinnabar);
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: #fff7e8;
}

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

.header-tools {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: rgba(248, 236, 216, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(240, 209, 132, 0.26);
  background: rgba(248, 236, 216, 0.04);
}

.language-btn {
  min-width: 30px;
  height: 28px;
  border: 0;
  color: rgba(248, 236, 216, 0.7);
  background: transparent;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 900;
}

.language-btn:hover,
.language-btn:focus-visible,
.language-btn.is-active {
  color: var(--ink);
  background: linear-gradient(180deg, #f0d184, #b9782e);
}

.header-cta {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid rgba(240, 209, 132, 0.42);
  color: var(--bright-gold);
  background: rgba(248, 236, 216, 0.04);
  font-weight: 900;
  transition: background 160ms ease, color 160ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  color: var(--ink);
  background: linear-gradient(180deg, #f0d184, #b9782e);
}

.menu-toggle {
  display: none;
  justify-self: end;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  color: var(--silk);
  background: rgba(7, 8, 6, 0.32);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  padding: 112px max(56px, calc((100vw - 1180px) / 2)) 96px;
  overflow: hidden;
  isolation: isolate;
}

.hero-video,
.hero-mask {
  position: absolute;
  inset: 0;
}

.hero-video {
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.06) brightness(0.8);
}

.hero-mask {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(6, 6, 5, 0.92), rgba(12, 8, 5, 0.42) 48%, rgba(6, 6, 5, 0.76)),
    linear-gradient(180deg, rgba(6, 6, 5, 0.1), rgba(6, 6, 5, 0.2) 54%, rgba(6, 6, 5, 0.9));
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: 32%;
  background: linear-gradient(180deg, transparent, rgba(9, 8, 6, 0.94));
}

.hero-inner {
  width: min(980px, 100%);
  padding-top: 28px;
}

.eyebrow,
.section-label,
.note-kicker {
  margin: 0 0 18px;
  color: var(--bright-gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  width: max-content;
  max-width: 100%;
  font-size: 7.8rem;
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: transparent;
  background:
    linear-gradient(180deg, #fff8e8 0%, #f5dec0 42%, #b98845 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.48));
  text-shadow:
    0 0 22px rgba(240, 209, 132, 0.16),
    0 2px 0 rgba(255, 255, 255, 0.08);
}

.hero-lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(248, 236, 216, 0.92);
  font-size: 1.24rem;
  line-height: 1.95;
  font-weight: 700;
}

.hero-actions,
.visit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid rgba(240, 209, 132, 0.42);
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

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

.btn-primary {
  color: var(--ink);
  background: linear-gradient(180deg, #f0d184, #b9782e);
  box-shadow: 0 18px 32px var(--shadow);
}

.btn-ghost {
  color: var(--silk);
  background: rgba(7, 8, 6, 0.3);
  backdrop-filter: blur(12px);
}

.hero-note {
  width: min(760px, 100%);
  margin-top: 28px;
  padding: 30px 34px;
  border: 1px solid rgba(240, 209, 132, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.04)),
    linear-gradient(90deg, rgba(18, 18, 16, 0.66), rgba(7, 8, 6, 0.32));
  backdrop-filter: blur(22px) saturate(1.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 30px 80px rgba(0, 0, 0, 0.32);
}

.hero-note strong {
  display: block;
  font-size: 2.05rem;
  line-height: 1.28;
}

.hero-note p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.88;
  max-width: 620px;
}

.hero-note dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 26px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.hero-note dl div {
  min-height: 72px;
  padding: 14px 12px;
  background: rgba(7, 8, 6, 0.58);
}

.hero-note dt {
  color: rgba(240, 209, 132, 0.82);
  font-size: 0.72rem;
  font-weight: 900;
}

.hero-note dd {
  margin: 8px 0 0;
  color: rgba(248, 236, 216, 0.9);
  font-weight: 900;
}

.banner-controls {
  position: absolute;
  right: max(56px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(240, 209, 132, 0.22);
  background: rgba(7, 8, 6, 0.34);
  backdrop-filter: blur(16px);
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  color: var(--silk);
  background: rgba(248, 236, 216, 0.08);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  border-color: rgba(240, 209, 132, 0.48);
  background: rgba(240, 209, 132, 0.14);
  transform: translateY(-1px);
}

.pause-icon,
.sound-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.pause-icon::before,
.pause-icon::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 4px;
  height: 14px;
  background: currentColor;
}

.pause-icon::before {
  left: 4px;
}

.pause-icon::after {
  right: 4px;
}

.video-play.is-paused .pause-icon::before {
  left: 5px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid currentColor;
  background: transparent;
}

.video-play.is-paused .pause-icon::after {
  display: none;
}

.sound-icon::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 6px;
  width: 7px;
  height: 7px;
  background: currentColor;
}

.sound-icon::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 3px;
  width: 8px;
  height: 12px;
  border: 2px solid currentColor;
  border-left: 0;
}

.video-sound.is-muted .sound-icon::after {
  width: 2px;
  height: 18px;
  left: 12px;
  top: 0;
  border: 0;
  background: currentColor;
  transform: rotate(45deg);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 42px;
  z-index: 3;
  color: rgba(248, 236, 216, 0.56);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  transform: translateX(-50%);
  writing-mode: vertical-rl;
}

.hero-scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 42px;
  margin: 12px auto 0;
  background: linear-gradient(180deg, rgba(240, 209, 132, 0.7), transparent);
}

.opening-band {
  padding: 28px 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0b0d0b;
}

.opening-band p {
  max-width: 1120px;
  margin: 0 auto;
  color: rgba(248, 236, 216, 0.82);
  font-size: 1.22rem;
  line-height: 1.7;
  text-align: center;
}

.about-section,
.ritual-section,
.venue-section,
.visit-section {
  padding: 104px max(56px, calc((100vw - 1180px) / 2));
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 64px;
  align-items: end;
}

.about-copy h2,
.story-copy h2,
.section-heading h2,
.venue-copy h2,
.visit-card h2 {
  margin: 0;
  max-width: 900px;
  font-size: 4rem;
  line-height: 1.15;
  font-weight: 900;
}

.about-copy p,
.story-copy p,
.venue-copy p,
.ritual-card p,
.visit-grid p,
.site-footer p {
  color: var(--muted);
  line-height: 1.9;
}

.about-copy p {
  max-width: 760px;
  margin: 28px 0 0;
  font-size: 1.08rem;
}

.about-note {
  padding: 30px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(158, 40, 32, 0.2), rgba(33, 76, 69, 0.18)),
    rgba(248, 236, 216, 0.04);
}

.about-note span {
  color: var(--bright-gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.about-note strong {
  display: block;
  margin-top: 18px;
  font-size: 2.4rem;
}

.about-note p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.85;
}

.image-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 560px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #10110e;
}

.story-image {
  min-height: 560px;
  background:
    linear-gradient(90deg, rgba(9, 11, 10, 0.03), rgba(9, 11, 10, 0.28)),
    url("assets/river-banquet-bg.png") center / cover no-repeat;
}

.story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px clamp(36px, 6vw, 96px);
  background:
    linear-gradient(145deg, rgba(75, 15, 14, 0.86), rgba(9, 11, 10, 0.9)),
    radial-gradient(circle at 30% 30%, rgba(215, 164, 90, 0.12), transparent 360px);
}

.story-copy p:last-child {
  max-width: 680px;
  margin: 26px 0 0;
  font-size: 1.05rem;
}

.ritual-section {
  background:
    linear-gradient(180deg, rgba(33, 76, 69, 0.16), rgba(75, 15, 14, 0.16)),
    #11100d;
}

.section-heading {
  margin-bottom: 44px;
}

.ritual-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.ritual-card {
  min-height: 340px;
  padding: 30px;
  border-right: 1px solid var(--line);
  background: rgba(7, 8, 6, 0.34);
  transition: transform 180ms ease, background 180ms ease;
}

.ritual-card:last-child {
  border-right: 0;
}

.ritual-card:hover {
  transform: translateY(-6px);
  background: rgba(75, 15, 14, 0.4);
}

.ritual-card span {
  color: var(--gold);
  font-size: 3rem;
  font-weight: 900;
}

.ritual-card h3 {
  margin: 82px 0 14px;
  color: var(--silk);
  font-size: 1.9rem;
}

.venue-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.55fr);
  gap: 64px;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(9, 11, 10, 0.2), rgba(9, 11, 10, 0.8)),
    radial-gradient(circle at 78% 22%, rgba(138, 172, 157, 0.17), transparent 400px);
}

.venue-copy p:last-child {
  max-width: 720px;
  margin: 28px 0 0;
  font-size: 1.06rem;
}

.venue-list {
  border: 1px solid var(--line);
  background: rgba(7, 8, 6, 0.38);
}

.venue-list div {
  padding: 28px;
  border-bottom: 1px solid var(--line);
}

.venue-list div:last-child {
  border-bottom: 0;
}

.venue-list strong {
  display: block;
  color: var(--bright-gold);
  font-size: 2rem;
}

.venue-list span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.75;
}

.visit-section {
  background:
    linear-gradient(rgba(9, 11, 10, 0.82), rgba(9, 11, 10, 0.92)),
    url("assets/river-banquet-bg.png") center / cover no-repeat;
}

.visit-card {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(9, 11, 10, 0.92), rgba(75, 15, 14, 0.72));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  background: var(--line);
  border: 1px solid var(--line);
}

.visit-grid div {
  min-height: 220px;
  padding: 28px;
  background: rgba(7, 8, 6, 0.72);
}

.visit-grid span {
  color: var(--bright-gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.visit-grid strong {
  display: block;
  margin-top: 24px;
  font-size: 1.45rem;
  line-height: 1.45;
}

.visit-actions span {
  color: rgba(248, 236, 216, 0.64);
  line-height: 1.7;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 36px max(56px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  background: #070807;
}

.site-footer strong {
  display: block;
  color: var(--bright-gold);
  font-size: 1.8rem;
}

.site-footer p {
  max-width: 720px;
  margin: 8px 0 0;
}

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

.reveal.is-visible {
  animation: revealLift 560ms ease both;
}

@keyframes revealLift {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

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

@media (max-width: 1080px) {
  .site-header {
    height: 62px;
  }

  .header-shell {
    width: calc(100% - 36px);
    grid-template-columns: 1fr auto;
  }

  .site-nav,
  .header-tools {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-header.is-open .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 18px;
    right: 18px;
    display: grid;
    height: auto;
    gap: 0;
    padding: 10px 18px;
    border: 1px solid var(--line);
    background: rgba(18, 10, 5, 0.96);
    backdrop-filter: blur(18px);
  }

  .site-header.is-open .site-nav a {
    height: auto;
    padding: 15px 0;
  }

  .site-header.is-open .header-tools {
    position: absolute;
    top: calc(100% + 288px);
    left: 18px;
    right: 18px;
    display: flex;
    justify-content: space-between;
    padding: 12px 18px;
    border: 1px solid var(--line);
    background: rgba(18, 10, 5, 0.96);
    backdrop-filter: blur(18px);
  }

  .hero {
    min-height: 94svh;
    padding: 104px 28px 88px;
  }

  .hero h1 {
    font-size: 5.2rem;
  }

  .hero-note {
    max-width: 560px;
  }

  .banner-controls {
    right: 28px;
    bottom: 26px;
  }

  .hero-scroll {
    display: none;
  }

  .about-section,
  .ritual-section,
  .venue-section,
  .visit-section {
    padding-left: 28px;
    padding-right: 28px;
  }

  .about-grid,
  .image-story,
  .venue-section {
    grid-template-columns: 1fr;
  }

  .story-image {
    min-height: 420px;
  }

  .story-copy {
    padding-left: 28px;
    padding-right: 28px;
  }

  .ritual-grid,
  .visit-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ritual-card:nth-child(2) {
    border-right: 0;
  }

  .ritual-card {
    border-bottom: 1px solid var(--line);
  }

  .about-copy h2,
  .story-copy h2,
  .section-heading h2,
  .venue-copy h2,
  .visit-card h2 {
    font-size: 3.1rem;
  }
}

@media (max-width: 680px) {
  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 0.98rem;
  }

  .hero {
    min-height: 96svh;
    padding: 96px 18px 86px;
  }

  .hero h1 {
    font-size: 3.25rem;
    letter-spacing: 0;
  }

  .hero-lead {
    font-size: 1.02rem;
    line-height: 1.82;
  }

  .hero-note {
    padding: 20px;
    margin-top: 22px;
  }

  .hero-note strong {
    font-size: 1.55rem;
  }

  .hero-note dl {
    grid-template-columns: 1fr;
  }

  .banner-controls {
    right: 18px;
    bottom: 22px;
  }

  .opening-band,
  .about-section,
  .ritual-section,
  .venue-section,
  .visit-section,
  .story-copy,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .about-copy h2,
  .story-copy h2,
  .section-heading h2,
  .venue-copy h2,
  .visit-card h2 {
    font-size: 2.3rem;
    line-height: 1.2;
  }

  .about-section,
  .ritual-section,
  .venue-section,
  .visit-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .about-grid,
  .venue-section {
    gap: 36px;
  }

  .story-image {
    min-height: 300px;
  }

  .story-copy {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .ritual-grid,
  .visit-grid {
    grid-template-columns: 1fr;
  }

  .ritual-card,
  .ritual-card:nth-child(2) {
    min-height: 250px;
    border-right: 0;
  }

  .ritual-card h3 {
    margin-top: 42px;
  }

  .visit-card {
    padding: 26px 18px;
  }

  .site-footer {
    display: grid;
  }
}

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

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