/*
 * ECCCA — Tradition in Motion
 * A final visual layer that consolidates the existing prototype into one
 * restrained, accessible and responsive design system.
 */

:root {
  --tim-red: #a6192e;
  --tim-red-deep: #6f101b;
  --tim-red-bright: #c6283b;
  --tim-gold: #c79a3b;
  --tim-gold-soft: #f1d58a;
  --tim-jade: #861b29;
  --tim-jade-deep: #201718;
  --tim-ink: #181313;
  --tim-muted: #675d56;
  --tim-paper: #fffdf7;
  --tim-cream: #f6eddc;
  --tim-white: #fffef9;
  --tim-line: rgba(111, 74, 33, 0.18);
  --tim-shadow: 0 22px 55px rgba(54, 25, 19, 0.12);
  --tim-shadow-soft: 0 12px 30px rgba(54, 25, 19, 0.08);
  --tim-radius: 22px;
  --tim-ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  background: var(--tim-paper);
  accent-color: var(--tim-red);
}

body.tradition-in-motion {
  overflow-x: hidden;
  color: var(--tim-ink);
  background:
    linear-gradient(90deg, rgba(191, 145, 66, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(191, 145, 66, 0.018) 1px, transparent 1px),
    var(--tim-paper);
  background-size: 52px 52px;
  font-family: "DM Sans", "Noto Sans TC", sans-serif;
  font-size: 17px;
  line-height: 1.68;
}

body.tradition-in-motion .hero {
  background:
    radial-gradient(circle at 8% 15%, rgba(199, 154, 59, 0.14), transparent 30%),
    linear-gradient(115deg, #fbf3e5 0%, #fbf3e5 54%, #f0dfbd 54%, #f0dfbd 100%) !important;
}

body.tradition-in-motion h1,
body.tradition-in-motion h2,
body.tradition-in-motion h3 {
  color: inherit;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

body.tradition-in-motion h1 {
  font-size: clamp(3rem, 7.2vw, 7rem);
}

body.tradition-in-motion h2 {
  font-size: clamp(2rem, 4.2vw, 4.2rem);
}

body.tradition-in-motion h3 {
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
}

body.tradition-in-motion p {
  text-wrap: pretty;
}

body.tradition-in-motion a,
body.tradition-in-motion button,
body.tradition-in-motion input,
body.tradition-in-motion textarea {
  font: inherit;
}

body.tradition-in-motion a:focus-visible,
body.tradition-in-motion button:focus-visible,
body.tradition-in-motion input:focus-visible,
body.tradition-in-motion textarea:focus-visible,
body.tradition-in-motion figure[role="button"]:focus-visible {
  outline: 3px solid #1675b8;
  outline-offset: 4px;
}

.silk-progress {
  position: fixed;
  z-index: 9999;
  inset: 0 0 auto;
  height: 3px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.25);
}

.silk-progress span {
  display: block;
  width: calc(var(--progress, 0) * 100%);
  height: 100%;
  background: linear-gradient(90deg, var(--tim-red), var(--tim-gold));
  box-shadow: 0 0 12px rgba(181, 42, 55, 0.45);
  transition: width 90ms linear;
}

/* Header and announcement */
.notice {
  position: relative;
  z-index: 80;
  min-height: 42px;
  background: var(--tim-jade-deep) !important;
  color: #fff !important;
  border: 0 !important;
}

.notice__in {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 7px !important;
}

.notice p {
  margin: 0;
  flex: 1;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.88) !important;
}

.notice p b {
  color: var(--tim-gold-soft);
}

.notice a {
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

.notice-dismiss {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.header {
  z-index: 70;
  background: rgba(251, 248, 242, 0.92) !important;
  border-bottom: 1px solid rgba(104, 19, 29, 0.1) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px) saturate(1.2);
  transition: background 220ms ease, box-shadow 220ms ease;
}

.header.is-scrolled {
  background: rgba(251, 248, 242, 0.98) !important;
  box-shadow: 0 10px 28px rgba(25, 26, 23, 0.08) !important;
}

.nav {
  min-height: 94px !important;
  gap: clamp(12px, 1.25vw, 24px) !important;
}

.brand--full {
  width: clamp(250px, 19vw, 330px) !important;
  min-width: 235px;
}

.brand--full img {
  width: 100% !important;
  max-height: 72px !important;
  object-fit: contain;
  object-position: left center;
  filter: none !important;
}

.navlinks {
  gap: clamp(4px, 0.5vw, 10px) !important;
}

.navlinks a {
  position: relative;
  padding: 13px 7px !important;
  color: #29302d !important;
  font-size: clamp(0.77rem, 0.82vw, 0.92rem) !important;
  font-weight: 700;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.navlinks a::before {
  display: none !important;
}

.navlinks a::after {
  right: 7px !important;
  bottom: 5px !important;
  left: 7px !important;
  height: 2px !important;
  background: linear-gradient(90deg, var(--tim-red), var(--tim-gold)) !important;
  border-radius: 3px;
  transform-origin: left;
  transition: transform 180ms ease !important;
}

.navlinks a:not(.active)::after {
  transform: scaleX(0);
}

.navlinks a:hover::after {
  transform: scaleX(1);
}

.site-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-tool {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--tim-line);
  border-radius: 999px;
  color: var(--tim-ink);
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.site-tool span {
  font-size: 1.35rem;
  line-height: 1;
}

.site-tool b {
  display: none;
  font-size: 0.74rem;
}

.site-tool:hover {
  color: var(--tim-red);
  border-color: rgba(148, 31, 43, 0.4);
  background: #fff;
}

.lang {
  min-width: 102px !important;
  min-height: 48px !important;
  padding: 4px !important;
  border: 1px solid rgba(78, 63, 47, 0.2) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.7) !important;
}

.lang span {
  min-width: 44px;
  min-height: 38px;
  display: grid !important;
  place-items: center;
  padding: 0 8px !important;
  border-radius: 999px !important;
  font-size: 0.8rem !important;
}

.lang span.on {
  color: #fff !important;
  background: var(--tim-ink) !important;
}

.btn {
  min-height: 50px;
  padding: 0.85rem 1.35rem !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background: var(--tim-red) !important;
  box-shadow: 0 12px 24px rgba(148, 31, 43, 0.17) !important;
  color: #fff !important;
  font-weight: 700;
  transition: transform 180ms var(--tim-ease), background 180ms ease,
    box-shadow 180ms ease !important;
}

.btn:hover {
  background: var(--tim-red-deep) !important;
  box-shadow: 0 16px 32px rgba(104, 19, 29, 0.22) !important;
  transform: translateY(-2px) !important;
}

.nav > .btn {
  flex: 0 0 auto;
  min-width: 132px !important;
  min-height: 50px !important;
  padding-inline: 18px !important;
  text-align: center;
}

/* Search */
.site-search {
  width: min(700px, calc(100% - 30px));
  max-height: min(720px, calc(100dvh - 40px));
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: transparent;
  box-shadow: var(--tim-shadow);
}

.site-search::backdrop,
.lightbox::backdrop {
  background: rgba(15, 24, 22, 0.7);
  backdrop-filter: blur(8px);
}

.site-search__panel {
  position: relative;
  padding: clamp(26px, 6vw, 56px);
  border: 1px solid rgba(191, 145, 66, 0.35);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(191, 145, 66, 0.09), transparent 35%),
    var(--tim-paper);
}

.site-search__panel h2 {
  margin: 8px 0 28px;
  font-size: clamp(1.8rem, 4vw, 3.2rem) !important;
}

.site-search__panel label span,
.program-search span {
  display: block;
  margin-bottom: 8px;
  color: var(--tim-jade-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-search__panel input,
.program-search input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(36, 91, 80, 0.28);
  border-radius: 12px;
  background: #fff;
}

.site-search__close,
.lightbox__close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--tim-red-deep);
  cursor: pointer;
}

.site-search__results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 22px;
}

.site-search__results a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--tim-line);
  border-radius: 12px;
  color: var(--tim-ink);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 650;
}

/* Remove scattered prototype decorations; retain the small interactive seal. */
.festival-paper-cut,
.heritage-lanterns,
.jade-disc,
.jade-calendar,
.moon-gate,
.tea-fan,
.panda-bamboo-scene,
.lucky-red-panda-scene,
.week-ribbon,
.chapter-tabs,
.gallery-filter-note,
.market-banner,
.form-welcome {
  display: none !important;
}

.heritage-seal {
  position: absolute !important;
  z-index: 6 !important;
  right: clamp(18px, 3vw, 54px) !important;
  bottom: clamp(16px, 3vw, 40px) !important;
  width: 54px !important;
  height: 54px !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 8px !important;
  background: var(--tim-red) !important;
  box-shadow: 0 12px 28px rgba(50, 20, 24, 0.2) !important;
  opacity: 0.88;
  transform: rotate(-3deg);
}

.heritage-seal:hover {
  opacity: 1;
  transform: rotate(0) scale(1.04);
}

.page-signature {
  position: absolute;
  z-index: 2;
  right: clamp(90px, 9vw, 165px);
  bottom: clamp(25px, 4vw, 58px);
  color: currentColor;
  font-family: "Noto Serif TC", serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  opacity: 0.38;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

/* Shared editorial rhythm */
.section {
  position: relative;
  padding-block: clamp(64px, 8vw, 118px) !important;
  background: transparent !important;
}

.section::before {
  display: none !important;
}

.section:nth-of-type(even):not(.section--dark) {
  background: rgba(243, 237, 226, 0.56) !important;
}

.section--cream {
  background: var(--tim-cream) !important;
}

.section--dark {
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(191, 145, 66, 0.18), transparent 28%),
    var(--tim-jade-deep) !important;
}

.heading {
  display: grid !important;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.75fr);
  align-items: end !important;
  gap: clamp(25px, 5vw, 90px) !important;
  margin-bottom: clamp(32px, 5vw, 68px) !important;
}

.heading h2 {
  margin: 8px 0 0 !important;
  max-width: 800px;
}

.heading > p {
  max-width: 590px;
  margin: 0 !important;
  color: var(--tim-muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.section--dark .heading > p,
.section--dark p {
  color: rgba(255, 255, 255, 0.74) !important;
}

.eyebrow {
  color: var(--tim-red) !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.19em !important;
  text-transform: uppercase;
}

.section--dark .eyebrow {
  color: var(--tim-gold-soft) !important;
}

.textlink {
  color: var(--tim-red) !important;
  font-weight: 750 !important;
  text-decoration-color: rgba(148, 31, 43, 0.35);
  text-underline-offset: 5px;
}

.textlink.white {
  color: #fff !important;
}

.card,
.feature-card,
.schedule-card,
.document-card,
.person,
.info-box,
.directory article,
.contact-card,
.evergreen-benefit {
  border: 1px solid rgba(66, 54, 42, 0.12) !important;
  border-radius: var(--tim-radius) !important;
  background: rgba(255, 254, 251, 0.92) !important;
  box-shadow: var(--tim-shadow-soft) !important;
}

.card::before,
.schedule-card::before,
.document-card::before {
  display: none !important;
}

.card:hover,
.feature-card:hover,
.schedule-card:hover,
.directory article:hover {
  border-color: rgba(191, 145, 66, 0.55) !important;
  box-shadow: var(--tim-shadow) !important;
  transform: translateY(-5px) !important;
}

/* Home hero */
.hero {
  min-height: auto !important;
  padding: clamp(44px, 5vw, 72px) 0 clamp(34px, 4vw, 52px) !important;
  overflow: hidden;
  color: var(--tim-ink) !important;
  background:
    radial-gradient(circle at 8% 15%, rgba(191, 145, 66, 0.13), transparent 30%),
    linear-gradient(115deg, #f8f1e5 0 54%, #e7eee9 54% 100%) !important;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: 0.09;
  background: url("assets/cultural-red-plum-v1.webp") 74% 26% / cover no-repeat;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, transparent 32%, #000 68%);
  mask-image: linear-gradient(90deg, transparent 32%, #000 68%);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto -8vw 15% 38%;
  height: 22%;
  border-radius: 50% 0 0 50%;
  background:
    linear-gradient(180deg, transparent 48%, rgba(36, 91, 80, 0.12) 49% 51%, transparent 52%),
    repeating-linear-gradient(165deg, transparent 0 70px, rgba(36, 91, 80, 0.06) 71px 73px);
  transform: rotate(-4deg);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 3;
  min-height: 0 !important;
  padding: 0 !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr) !important;
  align-items: center !important;
  gap: clamp(38px, 5vw, 82px) !important;
}

.hero h1 {
  max-width: 890px;
  margin: 14px 0 26px !important;
  font-size: clamp(3rem, 4.8vw, 5.25rem) !important;
  line-height: 0.98 !important;
  text-wrap: balance;
}

.hero h1 em {
  color: var(--tim-red) !important;
  font-family: "Noto Serif TC", serif;
  font-style: normal !important;
}

.hero__lead {
  max-width: 680px !important;
  color: #4f5a56 !important;
  font-size: clamp(1.05rem, 1.55vw, 1.35rem) !important;
}

.hero__visual {
  min-height: 0 !important;
  aspect-ratio: 3 / 2;
}

.hero__photo {
  inset: 0 !important;
  border: 0 !important;
  border-radius: 52% 52% 20px 20px !important;
  box-shadow: 0 35px 70px rgba(34, 50, 45, 0.2) !important;
}

.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: inherit;
  box-shadow: inset 0 -120px 100px rgba(15, 35, 31, 0.14);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center center;
}

.float {
  border: 1px solid rgba(255, 255, 255, 0.62) !important;
  background: rgba(255, 254, 251, 0.88) !important;
  box-shadow: 0 18px 40px rgba(20, 33, 29, 0.15) !important;
  backdrop-filter: blur(14px);
}

.float--hello b {
  color: var(--tim-red) !important;
  font-family: "Noto Serif TC", serif;
}

.quick {
  position: relative;
  z-index: 5;
  margin-top: clamp(32px, 4vw, 50px) !important;
  margin-bottom: 0 !important;
  border: 1px solid rgba(191, 145, 66, 0.28) !important;
  border-radius: 20px !important;
  background: rgba(255, 254, 251, 0.9) !important;
  box-shadow: 0 -10px 40px rgba(38, 35, 28, 0.06) !important;
  backdrop-filter: blur(12px);
}

.quick a {
  min-height: 102px !important;
  color: var(--tim-ink) !important;
  border-color: rgba(65, 52, 38, 0.12) !important;
}

.quick a:hover {
  background: rgba(191, 145, 66, 0.1) !important;
}

.quick__icon,
.card__symbol {
  color: var(--tim-red) !important;
  background: rgba(148, 31, 43, 0.07) !important;
  font-family: "Noto Serif TC", serif;
}

body.tradition-in-motion[data-page="home"] .section--cream {
  background:
    linear-gradient(rgba(248, 243, 234, 0.91), rgba(248, 243, 234, 0.94)),
    url("assets/cultural-red-plum-v1.webp") center 34% / cover no-repeat !important;
}

.impact-strip {
  padding-block: 0 !important;
  background: var(--tim-red-deep) !important;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.impact-grid article {
  min-height: 165px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px clamp(24px, 4vw, 60px);
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.impact-grid article:last-child {
  border: 0;
}

.impact-grid strong {
  font-family: "Noto Serif TC", serif;
  font-size: clamp(1.65rem, 3vw, 3rem);
  line-height: 1;
}

.impact-grid strong i {
  color: var(--tim-gold-soft);
  font-style: normal;
}

.impact-grid span {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.cards,
.feature-cards {
  gap: clamp(18px, 2.5vw, 32px) !important;
}

.card {
  min-height: 270px !important;
  padding: clamp(26px, 3vw, 42px) !important;
}

.feature-card {
  min-height: 430px !important;
  overflow: hidden;
  color: #fff !important;
  border-color: rgba(234, 213, 168, 0.2) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: none !important;
}

.feature-card:nth-child(2) {
  transform: translateY(25px);
}

.feature-card__art {
  color: rgba(234, 213, 168, 0.24) !important;
  font-family: "Noto Serif TC", serif;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.7) !important;
}

body.tradition-in-motion .section.story-scroll {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 8% 12%, rgba(234, 213, 168, 0.12), transparent 28%),
    radial-gradient(circle at 92% 84%, rgba(151, 35, 45, 0.3), transparent 34%),
    linear-gradient(118deg, #173b35 0%, #13302d 48%, #65151f 100%) !important;
}

body.tradition-in-motion .section.story-scroll::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background: url("assets/nine-dragons-handscroll.webp") center / cover no-repeat;
  mix-blend-mode: screen;
  filter: invert(0.88) sepia(0.82) saturate(0.42) contrast(1.4);
  -webkit-mask-image: linear-gradient(90deg, #000 0 42%, rgba(0, 0, 0, 0.72) 70%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0 42%, rgba(0, 0, 0, 0.72) 70%, transparent 100%);
}

body.tradition-in-motion .section.story-scroll::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(45deg, transparent 46%, rgba(234, 213, 168, 0.22) 48%, rgba(234, 213, 168, 0.22) 52%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, rgba(234, 213, 168, 0.18) 48%, rgba(234, 213, 168, 0.18) 52%, transparent 54%);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, transparent 8%, #000 58%, transparent 100%);
}

.story-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(50px, 9vw, 150px);
  align-items: start;
}

.story-intro {
  position: sticky;
  top: 155px;
}

.story-intro::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: -8%;
  bottom: -18%;
  width: 116%;
  height: 72%;
  pointer-events: none;
  background: url("assets/nine-dragons-handscroll.webp") center / contain no-repeat;
  filter: grayscale(1) invert(1) contrast(1.45);
  mix-blend-mode: screen;
  opacity: 0.13;
}

.story-intro > * {
  position: relative;
  z-index: 1;
}

.story-intro h2 {
  position: relative;
  margin: 10px 0 22px;
  padding-bottom: 22px;
  color: #fff !important;
  text-wrap: balance;
}

.story-intro h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(118px, 32%);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tim-gold-soft), #b94a3e);
  transform-origin: left center;
}

body.tradition-in-motion .section.story-scroll .eyebrow {
  color: var(--tim-gold-soft) !important;
}

body.tradition-in-motion .section.story-scroll .story-intro > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.84) !important;
}

body.tradition-in-motion .section.story-scroll .textlink {
  color: #f4d89a !important;
  text-decoration-color: rgba(244, 216, 154, 0.55);
}

body.tradition-in-motion .section.story-scroll .textlink:hover,
body.tradition-in-motion .section.story-scroll .textlink:focus-visible {
  color: #fff4d6 !important;
}

.story-timeline {
  position: relative;
  display: grid;
  gap: 26px;
  margin: 0;
  padding: 0 0 0 62px;
  list-style: none;
}

.story-timeline::before {
  content: "";
  position: absolute;
  top: 11px;
  bottom: 6px;
  left: 18px;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6b3e1f 0 18%, #b7783d 23% 67%, #71411f 72% 100%);
  box-shadow:
    0 0 0 1px rgba(244, 216, 154, 0.12),
    0 8px 18px rgba(0, 0, 0, 0.24);
}

.story-timeline::after {
  content: "";
  position: absolute;
  bottom: -13px;
  left: 14px;
  width: 13px;
  height: 24px;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  background: linear-gradient(90deg, #6b3e1f, #bd8248 50%, #71411f);
  filter: drop-shadow(0 6px 4px rgba(0, 0, 0, 0.2));
}

.story-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 22px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid rgba(234, 213, 168, 0.28);
  border-radius: 10px 24px 24px 24px;
  background: linear-gradient(118deg, rgba(5, 22, 20, 0.68), rgba(55, 21, 25, 0.62));
  backdrop-filter: blur(11px);
  box-shadow: 0 20px 50px rgba(5, 20, 18, 0.16);
}

.story-timeline li::before {
  content: "";
  position: absolute;
  left: -58px;
  top: 32px;
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 226, 166, 0.72);
  border-radius: 50%;
  background:
    radial-gradient(circle at 31% 24%, rgba(255, 255, 255, 0.96) 0 5%, rgba(255, 240, 214, 0.78) 6% 10%, transparent 11%),
    radial-gradient(circle at 38% 30%, #f45d50 0, #bd2330 53%, #72121b 100%);
  box-shadow:
    inset -7px -8px 11px rgba(72, 8, 14, 0.34),
    inset 5px 5px 8px rgba(255, 255, 255, 0.12),
    0 5px 14px rgba(0, 0, 0, 0.3),
    0 0 0 4px rgba(151, 35, 45, 0.28);
}

.story-timeline time {
  color: var(--tim-gold-soft);
  font-family: "Noto Serif TC", serif;
  font-size: 1.2rem;
  font-weight: 800;
}

.story-timeline h3 {
  margin: 0 0 8px;
  color: #fff !important;
}

body.tradition-in-motion .section.story-scroll .story-timeline p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78) !important;
}

.story-motion-ready:not(.is-story-visible) .story-intro > * {
  opacity: 0;
  transform: translateY(24px);
}

.story-motion-ready:not(.is-story-visible) .story-intro h2::after {
  transform: scaleX(0);
}

.story-motion-ready:not(.is-story-visible) .story-timeline::before {
  transform: scaleY(0);
}

.story-motion-ready:not(.is-story-visible) .story-timeline li {
  opacity: 0;
  transform: translateX(44px);
}

.story-motion-ready:not(.is-story-visible) .story-timeline li::before {
  opacity: 0;
  transform: scale(0);
}

.story-motion-ready.is-story-visible .story-intro > * {
  opacity: 1;
  transform: none;
  transition:
    opacity 640ms ease,
    transform 640ms cubic-bezier(0.22, 1, 0.36, 1);
}

.story-motion-ready.is-story-visible .story-intro .eyebrow {
  transition-delay: 40ms;
}

.story-motion-ready.is-story-visible .story-intro h2 {
  transition-delay: 130ms;
}

.story-motion-ready.is-story-visible .story-intro > p:not(.eyebrow) {
  transition-delay: 240ms;
}

.story-motion-ready.is-story-visible .story-intro .textlink {
  transition-delay: 340ms;
}

.story-motion-ready.is-story-visible .story-intro h2::after {
  transform: scaleX(1);
  transition: transform 880ms 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.story-motion-ready .story-timeline::before {
  transform-origin: top center;
}

.story-motion-ready.is-story-visible .story-timeline::before {
  transform: scaleY(1);
  transition: transform 1100ms 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.story-motion-ready.is-story-visible .story-timeline li {
  opacity: 1;
  transform: none;
  transition:
    opacity 620ms ease,
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(320ms + (var(--story-order) * 170ms));
}

.story-motion-ready.is-story-visible .story-timeline li::before {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 240ms ease,
    transform 480ms cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: calc(430ms + (var(--story-order) * 170ms));
}

.community-closing {
  position: relative;
  min-height: 610px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--tim-ink);
}

.community-closing__image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 24, 22, 0.68) 0 32%, rgba(16, 24, 22, 0.24) 68%, transparent 84%),
    linear-gradient(0deg, rgba(16, 24, 22, 0.48), transparent 54%),
    url("assets/home-community-canada-day-2025.webp")
      center 58% / cover no-repeat;
  transform: scale(1.01);
}

.community-closing__content {
  position: relative;
  z-index: 2;
  padding-block: clamp(70px, 10vw, 130px);
}

.community-closing__content h2 {
  max-width: 720px;
  margin: 10px 0 18px;
  color: #fff;
}

.community-closing__content p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.78);
}

.community-closing__content > div {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
}

/* Inner page heroes — shared structure with page-specific character */
.pagehero {
  min-height: 480px !important;
  padding: 0 !important;
  overflow: hidden;
  clip-path: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--tim-cream) !important;
}

.pagehero::before {
  content: "" !important;
  position: absolute !important;
  z-index: 1 !important;
  inset: 0 !important;
  display: block !important;
  opacity: 0.55;
  background:
    linear-gradient(90deg, transparent 0 68%, rgba(191, 145, 66, 0.11) 68%),
    repeating-linear-gradient(90deg, transparent 0 55px, rgba(36, 91, 80, 0.08) 56px 57px),
    repeating-linear-gradient(0deg, transparent 0 55px, rgba(36, 91, 80, 0.06) 56px 57px) !important;
}

.pagehero::after {
  content: "" !important;
  position: absolute !important;
  z-index: 1 !important;
  top: 0 !important;
  right: 8vw !important;
  bottom: auto !important;
  left: auto !important;
  width: 34vw !important;
  height: 100% !important;
  display: block !important;
  border: 0 !important;
  border-radius: 0 !important;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(36, 91, 80, 0.28) 0 47%, transparent 48%),
    radial-gradient(ellipse at 60% 130%, rgba(148, 31, 43, 0.2) 0 38%, transparent 39%) !important;
  opacity: 0.8 !important;
  transform: none !important;
}

.pagehero__grid {
  position: relative;
  z-index: 3;
  min-height: 480px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.68fr) !important;
  align-items: center !important;
  gap: clamp(42px, 8vw, 130px) !important;
  padding-block: clamp(65px, 8vw, 105px) !important;
}

.pagehero__grid > div {
  max-width: none !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.pagehero__grid > div::before {
  display: none !important;
}

.pagehero h1 {
  max-width: 960px;
  margin: 12px 0 0 !important;
  color: var(--tim-ink) !important;
  font-size: clamp(3rem, 6vw, 6.3rem) !important;
}

.pagehero__grid > p {
  position: relative;
  max-width: 520px !important;
  margin: 0 !important;
  padding: 28px 0 28px 28px !important;
  border: 0 !important;
  border-left: 2px solid var(--tim-gold) !important;
  border-radius: 0 !important;
  color: #4e5a56 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: clamp(1.05rem, 1.55vw, 1.3rem) !important;
}

.heritage-about .pagehero {
  background:
    linear-gradient(100deg, rgba(245, 238, 227, 0.97) 0 46%, rgba(223, 234, 229, 0.84) 74%),
    url("assets/public-domain-plum-blossom.webp") center / cover no-repeat !important;
}

.heritage-events .pagehero {
  color: #fff;
  background: linear-gradient(112deg, var(--tim-red-deep) 0 70%, #421218 70%) !important;
}

.heritage-events .pagehero h1,
.heritage-events .pagehero .eyebrow,
.heritage-events .pagehero p {
  color: #fff !important;
}

.heritage-events .pagehero .eyebrow,
.heritage-gallery .pagehero .eyebrow,
.heritage-join .pagehero .eyebrow,
.heritage-directory .pagehero .eyebrow {
  border-color: rgba(234, 213, 168, 0.36) !important;
  color: #f4d89a !important;
  background: rgba(11, 29, 26, 0.34) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.tradition-in-motion.heritage-events .pagehero__grid > p,
.tradition-in-motion.heritage-gallery .pagehero__grid > p {
  border-left-color: var(--tim-gold) !important;
  color: #fff !important;
  background: rgba(10, 22, 19, 0.32) !important;
  backdrop-filter: blur(10px);
}

.heritage-weekly .pagehero {
  background:
    linear-gradient(100deg, rgba(238, 245, 240, 0.97) 0 60%, rgba(211, 229, 219, 0.9) 100%),
    #e7f0eb !important;
}

.heritage-weekly .pagehero::before {
  opacity: 0.72 !important;
  background:
    linear-gradient(90deg, var(--tim-red) 0 8px, transparent 8px),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(36, 91, 80, 0.1) 80px 81px),
    repeating-linear-gradient(0deg, transparent 0 63px, rgba(36, 91, 80, 0.08) 64px 65px) !important;
}

.heritage-weekly .pagehero::after {
  top: 50% !important;
  right: clamp(18px, 7vw, 130px) !important;
  width: clamp(220px, 24vw, 340px) !important;
  height: clamp(220px, 24vw, 340px) !important;
  border: 1px solid rgba(191, 145, 66, 0.48) !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle, rgba(255, 253, 248, 0.82) 0 31%, transparent 31.5% 42%, rgba(148, 31, 43, 0.13) 42.5% 44%, transparent 44.5% 58%, rgba(191, 145, 66, 0.24) 58.5% 59.5%, transparent 60%),
    conic-gradient(from -15deg, rgba(148, 31, 43, 0.08), transparent 12% 25%, rgba(36, 91, 80, 0.11) 26% 38%, transparent 39% 52%, rgba(191, 145, 66, 0.12) 53% 66%, transparent 67% 80%, rgba(148, 31, 43, 0.08) 81%) !important;
  box-shadow:
    inset 0 0 0 13px rgba(255, 253, 248, 0.3),
    0 24px 60px rgba(36, 91, 80, 0.08);
  opacity: 1 !important;
  transform: translateY(-50%) rotate(-4deg) !important;
}

.heritage-evergreen .pagehero {
  min-height: 680px !important;
  background:
    linear-gradient(90deg, rgba(236, 244, 239, 0.96) 0 46%, rgba(236, 244, 239, 0.28) 78%),
    var(--tim-paper) !important;
}

.heritage-evergreen .pagehero__grid {
  min-height: 680px !important;
  grid-template-columns: minmax(430px, 0.9fr) minmax(520px, 1.1fr) !important;
  grid-template-areas:
    "copy slider"
    "intro slider" !important;
  align-content: center;
}

.heritage-evergreen .pagehero h1 {
  font-size: clamp(3.4rem, 4.6vw, 4.6rem) !important;
}

.heritage-evergreen .pagehero__grid > div {
  grid-area: copy !important;
}

.heritage-evergreen .pagehero__grid > p {
  grid-area: intro !important;
  align-self: start;
}

.heritage-gallery .pagehero {
  color: #fff;
  background: linear-gradient(112deg, var(--tim-ink) 0 68%, #2d403b 68%) !important;
}

.heritage-gallery .pagehero::after {
  top: 50% !important;
  right: clamp(24px, 8vw, 145px) !important;
  width: clamp(230px, 25vw, 360px) !important;
  height: clamp(230px, 25vw, 360px) !important;
  border: 1px solid rgba(234, 213, 168, 0.58) !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle, transparent 0 53%, rgba(234, 213, 168, 0.13) 53.5% 54.5%, transparent 55%),
    linear-gradient(142deg, rgba(255, 255, 255, 0.04), rgba(148, 31, 43, 0.13)) !important;
  box-shadow:
    inset 0 0 0 10px rgba(255, 255, 255, 0.025),
    0 0 70px rgba(234, 213, 168, 0.06);
  opacity: 1 !important;
  transform: translateY(-50%) !important;
}

.heritage-gallery .pagehero h1,
.heritage-gallery .pagehero .eyebrow,
.heritage-gallery .pagehero p {
  color: #fff !important;
}

.heritage-join .pagehero {
  color: #fff;
  background: linear-gradient(112deg, #8a1013 0%, #a51b25 62%, #561116 100%) !important;
}

.heritage-join .pagehero::before {
  opacity: 0.16 !important;
  background:
    url("assets/prosperity-ligature.svg") right 6vw center / min(32vw, 350px) auto no-repeat,
    repeating-linear-gradient(45deg, transparent 0 26px, rgba(234, 213, 168, 0.13) 27px 28px),
    repeating-linear-gradient(-45deg, transparent 0 26px, rgba(234, 213, 168, 0.09) 27px 28px) !important;
}

.heritage-join .pagehero::after {
  top: auto !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 52% !important;
  height: 78% !important;
  background:
    linear-gradient(145deg, transparent 0 49.5%, rgba(234, 213, 168, 0.18) 50% 50.8%, transparent 51.2%),
    linear-gradient(215deg, transparent 0 49.5%, rgba(234, 213, 168, 0.14) 50% 50.8%, transparent 51.2%) !important;
  opacity: 1 !important;
}

.heritage-join .pagehero h1,
.heritage-join .pagehero .eyebrow,
.heritage-join .pagehero p {
  color: #fff !important;
}

.tradition-in-motion.heritage-join .pagehero__grid > p {
  border-left-color: var(--tim-gold-soft) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  background: rgba(45, 8, 12, 0.28) !important;
  backdrop-filter: blur(9px);
}

.heritage-directory .pagehero {
  color: #fff;
  background: linear-gradient(112deg, #102f2b 0 64%, #1d554b 64% 100%) !important;
}

.heritage-directory .pagehero::before {
  opacity: 0.11 !important;
  background:
    url("assets/prosperity-ligature.svg") right 8vw center / min(31vw, 330px) auto no-repeat,
    repeating-linear-gradient(45deg, transparent 0 37px, rgba(234, 213, 168, 0.16) 38px 39px),
    repeating-linear-gradient(-45deg, transparent 0 37px, rgba(234, 213, 168, 0.12) 38px 39px) !important;
}

.heritage-directory .pagehero::after {
  top: 50% !important;
  right: clamp(26px, 8vw, 150px) !important;
  width: clamp(230px, 24vw, 340px) !important;
  height: clamp(230px, 24vw, 340px) !important;
  border: 1px solid rgba(234, 213, 168, 0.43) !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle, transparent 0 26%, rgba(234, 213, 168, 0.14) 26.5% 28%, transparent 28.5% 48%, rgba(234, 213, 168, 0.22) 48.5% 49.5%, transparent 50%),
    rgba(9, 38, 34, 0.2) !important;
  opacity: 1 !important;
  transform: translateY(-50%) !important;
}

.heritage-directory .pagehero h1,
.heritage-directory .pagehero .eyebrow {
  color: #fff !important;
}

.heritage-directory .pagehero p {
  color: #183246 !important;
}

.tradition-in-motion.heritage-directory .pagehero__grid > p {
  border-left-color: var(--tim-gold-soft) !important;
  color: #183246 !important;
}

.heritage-contact .pagehero {
  background:
    linear-gradient(100deg, rgba(248, 242, 230, 0.98) 0 62%, rgba(232, 236, 228, 0.9) 100%),
    #f4eee3 !important;
}

.heritage-contact .pagehero::before {
  opacity: 0.72 !important;
  background:
    linear-gradient(90deg, transparent 0 61%, rgba(191, 145, 66, 0.1) 61%),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(95, 79, 55, 0.08) 39px 40px) !important;
}

.heritage-contact .pagehero::after {
  top: 50% !important;
  right: clamp(32px, 10vw, 170px) !important;
  width: clamp(190px, 21vw, 300px) !important;
  height: clamp(190px, 21vw, 300px) !important;
  border: 2px solid rgba(148, 31, 43, 0.42) !important;
  border-radius: 18px 58px 18px 58px !important;
  background:
    url("assets/prosperity-ligature.svg") center / 64% auto no-repeat,
    rgba(255, 253, 248, 0.42) !important;
  box-shadow:
    inset 0 0 0 8px rgba(148, 31, 43, 0.045),
    0 28px 70px rgba(70, 45, 25, 0.09);
  opacity: 0.72 !important;
  transform: translateY(-50%) rotate(3deg) !important;
}

.heritage-events .pagehero p.eyebrow,
.heritage-gallery .pagehero p.eyebrow,
.heritage-join .pagehero p.eyebrow,
.heritage-directory .pagehero p.eyebrow {
  color: #f4d89a !important;
}

/* Subtle auspicious-cloud dividers keep the cultural language consistent. */
.tradition-in-motion main > .section {
  position: relative;
}

.cultural-cloud-divider {
  position: absolute;
  z-index: 4;
  top: 18px;
  left: 50%;
  width: 176px;
  height: 28px;
  display: block;
  pointer-events: none;
  background: url("assets/auspicious-cloud-divider.svg") center / contain no-repeat;
  opacity: 0.55;
  transform: translateX(-50%);
}

.section--dark > .cultural-cloud-divider,
.story-scroll > .cultural-cloud-divider,
.community-closing > .cultural-cloud-divider {
  filter: brightness(1.25);
  opacity: 0.46;
}

/* About */
.history-ribbon {
  width: min(1320px, calc(100% - 40px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto 60px;
  border: 1px solid rgba(191, 145, 66, 0.32);
  border-radius: 18px;
  overflow: hidden;
  background: var(--tim-white);
  box-shadow: var(--tim-shadow-soft);
}

.history-ribbon div {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 35px;
  border-right: 1px solid var(--tim-line);
}

.history-ribbon div:last-child {
  border: 0;
}

.history-ribbon strong {
  color: var(--tim-red);
  font-family: "Noto Serif TC", serif;
  font-size: 1.65rem;
}

.history-ribbon span {
  margin-top: 6px;
  color: var(--tim-muted);
}

.heritage-about .content-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr) !important;
  gap: clamp(35px, 6vw, 90px) !important;
}

.heritage-about .prose {
  padding: 0 !important;
  background: transparent !important;
}

.heritage-about .sidecard {
  position: sticky !important;
  top: 145px;
  align-self: start;
  padding: 38px !important;
  color: #fff;
  background: var(--tim-jade-deep) !important;
}

.board {
  gap: 12px !important;
}

.person {
  min-height: 112px !important;
  padding: 24px !important;
  box-shadow: none !important;
}

/* Events */
.hospital-announcement {
  display: grid !important;
  grid-template-columns: 190px 1fr !important;
  gap: clamp(25px, 4vw, 55px) !important;
  align-items: center;
  padding: clamp(28px, 5vw, 62px) !important;
  border-color: rgba(234, 213, 168, 0.24) !important;
  color: #fff !important;
  background: var(--tim-red-deep) !important;
}

.announcement-qr {
  width: 100% !important;
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 14px !important;
  background: #fff;
}

.announcement-scan {
  color: var(--tim-gold-soft) !important;
  font-weight: 700;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 30px;
}

.filter-bar button {
  min-height: 44px;
  padding: 8px 17px;
  border: 1px solid rgba(36, 91, 80, 0.24);
  border-radius: 999px;
  color: var(--tim-jade-deep);
  background: transparent;
  cursor: pointer;
}

.filter-bar button:hover,
.filter-bar button.is-active {
  border-color: var(--tim-jade-deep);
  color: #fff;
  background: var(--tim-jade-deep);
}

.event {
  min-height: 155px !important;
  padding: 24px clamp(22px, 3vw, 38px) !important;
  border: 1px solid var(--tim-line) !important;
  border-radius: 18px !important;
  background: rgba(255, 254, 251, 0.84) !important;
  box-shadow: var(--tim-shadow-soft) !important;
}

.event time {
  border-radius: 14px !important;
  background: var(--tim-red) !important;
}

.event .pill {
  color: var(--tim-jade-deep) !important;
  background: rgba(36, 91, 80, 0.1) !important;
}

.home-update-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px !important;
}

.home-update-card {
  position: relative;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(26px, 3vw, 40px);
  overflow: hidden;
  border: 1px solid var(--tim-line);
  border-radius: 20px;
  background: var(--tim-white);
  box-shadow: var(--tim-shadow-soft);
}

.home-update-card > span {
  position: absolute;
  top: 18px;
  right: 22px;
  color: rgba(148, 31, 43, 0.12);
  font-family: "Noto Serif TC", serif;
  font-size: 4.8rem;
  font-weight: 800;
  line-height: 1;
}

.home-update-card h3 {
  position: relative;
  margin: 18px 0 15px;
  font-size: clamp(1.45rem, 2vw, 2.1rem) !important;
}

.home-update-card > p:not(.eyebrow) {
  position: relative;
  color: var(--tim-muted);
}

.home-update-card .textlink {
  margin-top: auto;
}

.event-empty__panel {
  max-width: 920px;
  padding: clamp(34px, 6vw, 70px);
  border: 1px solid rgba(191, 145, 66, 0.34);
  border-radius: 22px;
  background:
    linear-gradient(115deg, rgba(191, 145, 66, 0.1), transparent 42%),
    var(--tim-white);
  box-shadow: var(--tim-shadow-soft);
}

.event-empty__panel h2 {
  margin: 10px 0 18px;
}

.event-empty__panel > div {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
}

/* Weekly */
.program-search {
  max-width: 620px;
  display: block;
  margin: 0 0 28px;
}

.schedule {
  display: grid !important;
  grid-template-columns: repeat(12, 1fr) !important;
  gap: 18px !important;
}

.schedule-card {
  grid-column: span 4 !important;
  min-height: 235px !important;
  padding: 28px !important;
}

.schedule-card:nth-child(1),
.schedule-card:nth-child(7) {
  grid-column: span 6 !important;
  color: #fff;
  background: var(--tim-jade-deep) !important;
}

.schedule-card:nth-child(1) p,
.schedule-card:nth-child(7) p {
  color: rgba(255, 255, 255, 0.72) !important;
}

.resource-hub {
  margin-top: 70px !important;
  padding: clamp(28px, 5vw, 58px) !important;
  border: 1px solid rgba(191, 145, 66, 0.3) !important;
  border-radius: 24px !important;
  background: var(--tim-white) !important;
}

.document-grid {
  gap: 20px !important;
}

.document-card {
  overflow: hidden;
  padding: 0 !important;
}

.pdf-preview,
.document-icon {
  background: #ece5da !important;
}

.calendar-icon svg {
  stroke: var(--tim-red) !important;
}

.document-copy {
  padding: 28px !important;
}

/* Evergreen — larger type, clear controls, uncropped photography */
.heritage-evergreen main {
  font-size: 1.04rem;
}

.heritage-evergreen .evergreen-hero-slider {
  grid-area: slider !important;
  width: 100% !important;
  max-width: none !important;
  align-self: center;
  border: 0 !important;
  border-radius: 30px !important;
  background: #d9e5df !important;
  box-shadow: 0 30px 65px rgba(32, 62, 54, 0.18) !important;
}

.heritage-evergreen .evergreen-hero-slider .photo-slider__viewport {
  border-radius: 30px !important;
}

.heritage-evergreen .evergreen-hero-slider .photo-slider__slide {
  min-height: 490px !important;
  height: 490px !important;
  background:
    linear-gradient(135deg, rgba(36, 91, 80, 0.12), rgba(255, 255, 255, 0.6)) !important;
}

.heritage-evergreen .evergreen-hero-slider .photo-slider__slide img {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #dbe5e0;
  filter: none !important;
}

.photo-slider__controls {
  width: auto !important;
  max-width: calc(100% - 28px);
  left: 50% !important;
  bottom: 16px !important;
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  padding: 7px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(21, 60, 53, 0.84) !important;
  box-shadow: 0 10px 28px rgba(15, 31, 27, 0.2) !important;
  backdrop-filter: blur(10px);
  transform: translateX(-50%) !important;
}

.photo-slider__arrow {
  width: 42px !important;
  height: 42px !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.photo-slider__pause {
  min-height: 38px;
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
}

.photo-slider__dot {
  width: 8px !important;
  height: 8px !important;
  background: rgba(255, 255, 255, 0.45) !important;
}

.photo-slider__dot.is-active {
  width: 26px !important;
  background: var(--tim-gold-soft) !important;
}

.evergreen-hero {
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr) !important;
  gap: clamp(35px, 7vw, 100px) !important;
  align-items: center !important;
}

.evergreen-photo {
  min-height: 540px !important;
  border-radius: 28px !important;
  overflow: hidden;
  background: #dce8e2;
}

.evergreen-photo img {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: contain !important;
  background: #dce8e2 !important;
}

.heritage-evergreen .cards {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
}

.heritage-evergreen .cards .card:nth-child(n) {
  grid-column: auto !important;
  min-height: 220px !important;
  border-radius: 20px !important;
  background: var(--tim-white) !important;
}

.evergreen-benefits {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.evergreen-benefit,
.evergreen-benefit:nth-child(even) {
  min-height: 230px !important;
  padding: clamp(26px, 3vw, 40px) !important;
  transform: none !important;
}

.evergreen-moments {
  padding-block: clamp(70px, 9vw, 120px) !important;
  background: var(--tim-jade-deep) !important;
}

.heritage-evergreen .evergreen-decor-grid {
  display: grid !important;
  grid-template-columns: repeat(12, 1fr) !important;
  grid-auto-rows: 78px !important;
  gap: 14px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.heritage-evergreen .evergreen-decor-card:nth-child(n) {
  grid-column: span 4 !important;
  grid-row: span 3 !important;
  min-height: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 18px !important;
  background: #dbe5df !important;
  box-shadow: none !important;
  transform: none !important;
}

.heritage-evergreen .evergreen-decor-card:nth-child(1),
.heritage-evergreen .evergreen-decor-card:nth-child(5) {
  grid-column: span 6 !important;
  grid-row: span 4 !important;
}

.heritage-evergreen .evergreen-decor-card:nth-child(4) {
  grid-column: span 8 !important;
}

.heritage-evergreen .evergreen-decor-card img {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
}

.join-ribbon {
  border-radius: 24px !important;
  background: var(--tim-jade-deep) !important;
}

/* Gallery */
.heritage-gallery .gallery {
  display: grid !important;
  grid-template-columns: repeat(12, 1fr) !important;
  grid-auto-rows: 90px !important;
  gap: 14px !important;
}

.heritage-gallery .gallery figure {
  grid-column: span 4 !important;
  grid-row: span 3 !important;
  min-height: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 16px !important;
  background: #e8e6df !important;
  box-shadow: none !important;
  cursor: zoom-in;
}

.heritage-gallery .gallery figure:nth-child(7n + 1),
.heritage-gallery .gallery figure.is-wide {
  grid-column: span 6 !important;
  grid-row: span 4 !important;
}

.heritage-gallery .gallery figure.is-portrait {
  grid-column: span 3 !important;
  grid-row: span 5 !important;
}

.heritage-gallery .gallery img {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 450ms var(--tim-ease);
}

.heritage-gallery .gallery figure:hover img {
  transform: scale(1.025);
}

.heritage-gallery .gallery figcaption {
  right: 12px !important;
  bottom: 12px !important;
  left: 12px !important;
  width: auto !important;
  padding: 12px 14px !important;
  border-radius: 10px !important;
  color: #fff !important;
  background: rgba(21, 32, 30, 0.82) !important;
  backdrop-filter: blur(8px);
}

.gallery figure.image-unavailable {
  display: none !important;
}

.lightbox {
  width: min(1160px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: #111916;
}

.lightbox figure {
  width: 100%;
  height: min(82dvh, 850px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  margin: 0;
}

.lightbox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111916;
}

.lightbox figcaption {
  padding: 18px 70px 18px 24px;
  color: #fff;
  background: #111916;
}

/* Join, directory and contact */
.join-path {
  grid-column: 1 / -1;
  min-height: 86px !important;
  border: 1px solid rgba(191, 145, 66, 0.3) !important;
  border-radius: 18px !important;
  background: var(--tim-white) !important;
}

.heritage-join .join-grid {
  grid-template-columns: repeat(12, 1fr) !important;
  gap: 20px !important;
}

.heritage-join .info-box {
  padding: clamp(30px, 4vw, 52px) !important;
}

.heritage-join .join-grid > .info-box.info-box--accent {
  grid-column: span 7 !important;
  min-height: 460px !important;
  color: #fff !important;
  border-color: rgba(234, 213, 168, 0.34) !important;
  border-radius: 10px 36px 36px 36px !important;
  background:
    url("assets/prosperity-ligature.svg") right 28px top 22px / 120px auto no-repeat,
    var(--tim-red-deep) !important;
}

.heritage-join .join-grid > .info-box:not(.info-box--accent):not(.full) {
  grid-column: span 5 !important;
  border-radius: 32px 10px 32px 32px !important;
  background:
    linear-gradient(135deg, transparent 0 70%, rgba(191, 145, 66, 0.09) 70%),
    var(--tim-white) !important;
}

.heritage-join .info-box.full {
  grid-column: 1 / -1 !important;
  min-height: 270px !important;
  border-top: 3px solid rgba(191, 145, 66, 0.74) !important;
  background: linear-gradient(105deg, var(--tim-white) 0 70%, #e3ece7 70%) !important;
}

.heritage-directory .directory {
  display: grid !important;
  grid-template-columns: repeat(12, 1fr) !important;
  gap: 18px !important;
}

.heritage-directory .directory article:nth-child(n) {
  grid-column: span 4 !important;
  min-height: 260px !important;
  padding: 34px !important;
  border-top: 3px solid rgba(191, 145, 66, 0.72) !important;
  border-radius: 8px 28px 28px 28px !important;
  color: var(--tim-ink) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 239, 229, 0.82)),
    var(--tim-white) !important;
}

.heritage-directory .directory article:nth-child(1),
.heritage-directory .directory article:nth-child(6) {
  grid-column: span 6 !important;
  color: #fff !important;
  border-top-color: rgba(234, 213, 168, 0.82) !important;
  background:
    url("assets/prosperity-ligature.svg") right 22px bottom 16px / 95px auto no-repeat,
    var(--tim-jade-deep) !important;
}

.heritage-contact .contact-grid {
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr) !important;
  gap: clamp(30px, 5vw, 70px) !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.heritage-contact .contact-card {
  padding: clamp(32px, 4vw, 52px) !important;
  border: 1px solid rgba(234, 213, 168, 0.28) !important;
  border-radius: 54px 12px 54px 12px !important;
  color: #fff !important;
  background:
    radial-gradient(circle at 100% 0, rgba(234, 213, 168, 0.18), transparent 34%),
    linear-gradient(145deg, var(--tim-jade-deep), #173e38) !important;
}

.heritage-contact form {
  padding: clamp(28px, 4vw, 48px) !important;
  border: 1px solid var(--tim-line);
  border-top: 3px solid rgba(191, 145, 66, 0.68);
  border-radius: 10px 30px 30px 30px !important;
  background:
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(80, 69, 54, 0.028) 39px 40px),
    var(--tim-white) !important;
  box-shadow: var(--tim-shadow-soft) !important;
}

.heritage-weekly .schedule-card {
  border-top: 3px solid rgba(191, 145, 66, 0.72) !important;
  border-radius: 8px 24px 24px 24px !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(235, 244, 239, 0.76)),
    var(--tim-white) !important;
}

.heritage-weekly .schedule-card:nth-child(1),
.heritage-weekly .schedule-card:nth-child(7) {
  border-top-color: var(--tim-gold-soft) !important;
  background:
    repeating-linear-gradient(45deg, transparent 0 26px, rgba(234, 213, 168, 0.045) 27px 28px),
    linear-gradient(135deg, #204f47, #2c6a5f) !important;
}

.heritage-contact input,
.heritage-contact textarea {
  min-height: 52px;
  padding: 12px 14px !important;
  border: 1px solid rgba(36, 91, 80, 0.24) !important;
  border-radius: 10px !important;
  background: #fff !important;
}

.heritage-contact textarea {
  min-height: 170px;
}

.heritage-contact [aria-invalid="true"] {
  border-color: #b00020 !important;
  box-shadow: 0 0 0 3px rgba(176, 0, 32, 0.12);
}

.form-status {
  margin: 0;
  color: #9c1726;
  font-weight: 700;
}

/* Sponsors and footer */
.funders {
  position: relative;
  overflow: hidden;
  padding-block: clamp(70px, 9vw, 120px) !important;
  background: transparent !important;
}

.funders h2 {
  max-width: 900px;
  margin: 10px auto 14px;
  text-align: center;
}

.sponsor-intro {
  max-width: 720px !important;
  margin: 0 auto 45px !important;
  color: var(--tim-muted) !important;
  text-align: center;
}

.sponsor-kicker {
  text-align: center;
}

.funder-row {
  width: max-content;
  display: flex !important;
  align-items: stretch;
  gap: 18px !important;
  animation: sponsor-scroll 32s linear infinite;
  will-change: transform;
}

.sponsor-viewport {
  position: relative;
  width: min(1500px, calc(100vw - 32px));
  margin-inline: 50%;
  overflow: hidden;
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );
}

@keyframes sponsor-scroll {
  to {
    transform: translateX(calc(-50% - 9px));
  }
}

.funder-bubble {
  width: clamp(285px, 23vw, 390px) !important;
  min-height: 190px !important;
  flex: 0 0 clamp(285px, 23vw, 390px);
  display: grid !important;
  place-items: center;
  padding: 25px !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: transparent !important;
  box-shadow: none !important;
  animation: none !important;
  transform: none !important;
  transition: border-color 220ms ease, box-shadow 220ms ease,
    transform 220ms var(--tim-ease) !important;
}

.funder-bubble img {
  width: 100% !important;
  max-width: 285px !important;
  max-height: 115px !important;
  object-fit: contain !important;
  filter: none !important;
  opacity: 1;
  transition: filter 220ms ease, opacity 220ms ease, transform 220ms ease !important;
}

.funder-bubble:hover,
.funder-bubble:focus-within {
  z-index: 2;
  border-color: transparent !important;
  box-shadow: none !important;
  transform: translateY(-5px) scale(1.035) !important;
}

.funder-bubble:hover img,
.funder-bubble:focus img {
  filter: none !important;
  opacity: 1;
  transform: scale(1.04);
}

.sponsor-marquee__clone {
  pointer-events: none;
}

.footer {
  padding-top: clamp(65px, 8vw, 100px) !important;
  color: rgba(255, 255, 255, 0.72) !important;
  background: #14211e !important;
}

.footer-grid {
  grid-template-columns: minmax(300px, 1.35fr) repeat(3, minmax(170px, 0.65fr)) !important;
  gap: clamp(30px, 5vw, 75px) !important;
}

.footer .brand--full {
  width: min(380px, 100%) !important;
}

.footer .brand--full img {
  max-height: 80px !important;
}

.footer h3 {
  color: var(--tim-gold-soft) !important;
  font-size: 0.77rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer a {
  color: rgba(255, 255, 255, 0.82) !important;
  text-underline-offset: 4px;
}

.social-list {
  display: grid !important;
  gap: 10px;
}

.social-link {
  width: fit-content;
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
}

.social-icon {
  width: 25px !important;
  height: 25px !important;
}

/* Page transition */
.page-transition {
  background: rgba(251, 248, 242, 0.96) !important;
  backdrop-filter: blur(8px);
}

.page-transition::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(148, 31, 43, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(191, 145, 66, 0.05);
}

.page-transition img {
  width: 90px !important;
  filter: none !important;
}

.transition-ring {
  border-color: rgba(148, 31, 43, 0.2) !important;
}

/* Responsive */
@media (max-width: 1280px) {
  .brand--full {
    width: 270px !important;
    min-width: 225px;
  }

  .navlinks a {
    padding-inline: 5px !important;
    font-size: 0.75rem !important;
  }

  .nav > .btn {
    min-width: 116px !important;
    padding-inline: 13px !important;
  }
}

@media (max-width: 1120px) {
  body.tradition-in-motion {
    font-size: 16px;
  }

  .nav {
    min-height: 82px !important;
  }

  .brand--full {
    width: min(350px, calc(100vw - 225px)) !important;
  }

  .site-tools {
    display: none;
  }

  .navlinks.open {
    top: var(--mobile-menu-top, 82px) !important;
    right: 12px !important;
    bottom: auto !important;
    left: 12px !important;
    max-height: calc(100dvh - var(--mobile-menu-top, 82px) - 12px) !important;
    display: flex !important;
    flex-direction: column;
    gap: 2px !important;
    padding: 14px !important;
    overflow-y: auto !important;
    border: 1px solid rgba(191, 145, 66, 0.28);
    border-radius: 18px !important;
    background: rgba(251, 248, 242, 0.98) !important;
    box-shadow: var(--tim-shadow) !important;
  }

  .navlinks a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 9px 14px !important;
    border-radius: 10px;
    font-size: 0.95rem !important;
  }

  .navlinks a.active {
    color: var(--tim-red) !important;
    background: rgba(148, 31, 43, 0.07);
  }

  .hero {
    min-height: auto !important;
  }

  .hero__grid {
    grid-template-columns: 1fr 0.9fr !important;
  }

  .hero__visual {
    min-height: 0 !important;
  }

  .pagehero__grid {
    grid-template-columns: 1fr 0.65fr !important;
  }

  .heritage-evergreen .pagehero__grid {
    grid-template-columns: minmax(300px, 0.7fr) minmax(420px, 1.3fr) !important;
  }

  .schedule-card {
    grid-column: span 6 !important;
  }

  .heritage-weekly .schedule-card:nth-child(n) {
    grid-column: span 6 !important;
  }

  .heritage-gallery .gallery figure,
  .heritage-gallery .gallery figure:nth-child(n) {
    grid-column: span 6 !important;
    grid-row: span 4 !important;
  }

  .heritage-gallery .gallery figure.is-portrait {
    grid-column: span 4 !important;
    grid-row: span 5 !important;
  }

  .heritage-directory .directory article:nth-child(n) {
    grid-column: span 6 !important;
  }
}

@media (max-width: 800px) {
  .notice p b {
    display: none;
  }

  .notice__in {
    gap: 10px;
  }

  .notice a {
    white-space: nowrap;
  }

  .nav > .btn {
    display: none !important;
  }

  .brand--full {
    width: min(330px, calc(100vw - 175px)) !important;
  }

  .hero {
    padding-top: 35px !important;
  }

  .hero__grid {
    grid-template-columns: 1fr !important;
  }

  .hero__visual {
    min-height: 0 !important;
  }

  .hero__photo {
    border-radius: 220px 220px 18px 18px !important;
  }

  .quick {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
  }

  .quick a {
    min-height: 95px !important;
  }

  .impact-grid,
  .history-ribbon {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .home-update-grid {
    grid-template-columns: 1fr !important;
  }

  .impact-grid article:last-child,
  .history-ribbon div:last-child {
    grid-column: 1 / -1;
  }

  .heading,
  .story-layout,
  .heritage-about .content-grid,
  .heritage-contact .contact-grid {
    grid-template-columns: 1fr !important;
  }

  .story-intro,
  .heritage-about .sidecard {
    position: static !important;
  }

  .pagehero,
  .pagehero__grid {
    min-height: 430px !important;
  }

  .pagehero__grid {
    grid-template-columns: 1fr !important;
    align-content: center;
    gap: 22px !important;
  }

  .pagehero__grid > p {
    max-width: 620px !important;
  }

  .heritage-evergreen .pagehero {
    min-height: auto !important;
  }

  .heritage-evergreen .pagehero__grid {
    min-height: auto !important;
    grid-template-columns: 1fr !important;
    grid-template-areas: "copy" "intro" "slider" !important;
    padding-bottom: 50px !important;
  }

  .heritage-evergreen .evergreen-hero-slider .photo-slider__slide {
    min-height: 390px !important;
    height: 390px !important;
  }

  .evergreen-hero,
  .heritage-evergreen .cards,
  .evergreen-benefits {
    grid-template-columns: 1fr !important;
  }

  .evergreen-photo {
    min-height: 420px !important;
  }

  .heritage-join .info-box:nth-of-type(n) {
    grid-column: 1 / -1 !important;
  }

  .heritage-join .join-grid {
    grid-template-columns: 1fr !important;
  }

  .heritage-join .join-grid > .info-box.info-box--accent,
  .heritage-join .join-grid > .info-box:not(.info-box--accent):not(.full),
  .heritage-join .join-grid > .info-box.full {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    width: 100% !important;
    min-height: 0 !important;
  }

  .heritage-join .info-box--accent .btn,
  .heritage-join .info-box--accent .textlink.white {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 0 0 !important;
    text-align: center;
  }

  .hospital-announcement {
    grid-template-columns: 145px 1fr !important;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  body.tradition-in-motion h1 {
    font-size: clamp(2.65rem, 13vw, 4.1rem) !important;
  }

  body.tradition-in-motion h2 {
    font-size: clamp(1.85rem, 9vw, 3rem) !important;
  }

  .shell {
    width: min(100% - 28px, var(--max)) !important;
  }

  .nav {
    gap: 6px !important;
  }

  .notice p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .notice a {
    display: none;
  }

  .brand--full {
    width: min(220px, calc(100vw - 166px)) !important;
    min-width: 0;
  }

  .brand--full img {
    max-height: 56px !important;
  }

  .lang {
    min-width: 82px !important;
  }

  .lang span {
    min-width: 34px;
    padding: 0 5px !important;
  }

  .hero__actions,
  .community-closing__content > div {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .hero__visual {
    min-height: 0 !important;
  }

  .float--event {
    right: 8px !important;
    left: 40px !important;
  }

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

  .impact-grid,
  .history-ribbon,
  .site-search__results,
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .impact-grid article,
  .history-ribbon div,
  .impact-grid article:last-child,
  .history-ribbon div:last-child {
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .story-timeline {
    padding-left: 48px;
  }

  .story-timeline li {
    grid-template-columns: 1fr;
  }

  .story-timeline li::before {
    left: -46px;
    width: 28px;
    height: 28px;
  }

  .story-timeline::before {
    left: 14px;
  }

  .story-timeline::after {
    left: 10px;
  }

  .cultural-cloud-divider {
    top: 12px;
    width: 136px;
  }

  .pagehero__grid > p {
    padding: 16px 0 16px 18px !important;
  }

  .page-signature {
    display: none;
  }

  .schedule {
    grid-template-columns: 1fr !important;
  }

  .heritage-weekly .schedule-card:nth-child(n) {
    grid-column: auto !important;
  }

  .hospital-announcement {
    grid-template-columns: 1fr !important;
  }

  .announcement-qr {
    max-width: 180px;
  }

  .heritage-gallery .gallery {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-rows: 100px !important;
    gap: 8px !important;
  }

  .heritage-gallery .gallery figure,
  .heritage-gallery .gallery figure:nth-child(n),
  .heritage-gallery .gallery figure.is-wide,
  .heritage-gallery .gallery figure.is-portrait {
    grid-column: span 1 !important;
    grid-row: span 2 !important;
    border-radius: 10px !important;
  }

  .heritage-gallery .gallery figure:nth-child(5n + 1) {
    grid-column: span 2 !important;
    grid-row: span 3 !important;
  }

  .heritage-gallery .gallery figcaption {
    right: 6px !important;
    bottom: 6px !important;
    left: 6px !important;
    padding: 8px !important;
    font-size: 0.68rem !important;
  }

  .heritage-evergreen .evergreen-hero-slider .photo-slider__slide {
    min-height: 300px !important;
    height: 300px !important;
  }

  .photo-slider__controls {
    max-width: calc(100% - 16px);
    bottom: 8px !important;
  }

  .photo-slider__dots {
    max-width: 90px;
    overflow: hidden;
  }

  .heritage-evergreen .evergreen-decor-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-rows: 110px !important;
  }

  .heritage-evergreen .evergreen-decor-card:nth-child(n) {
    grid-column: span 1 !important;
    grid-row: span 2 !important;
  }

  .heritage-evergreen .evergreen-decor-card:nth-child(1),
  .heritage-evergreen .evergreen-decor-card:nth-child(4) {
    grid-column: span 2 !important;
    grid-row: span 3 !important;
  }

  .heritage-directory .directory {
    grid-template-columns: 1fr !important;
  }

  .heritage-directory .directory article:nth-child(n) {
    grid-column: auto !important;
  }

  .footer-grid > div:first-child {
    grid-column: auto;
  }
}

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

  .story-motion-ready .story-intro > *,
  .story-motion-ready .story-timeline li,
  .story-motion-ready .story-timeline li::before {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .story-motion-ready .story-intro h2::after {
    transform: scaleX(1) !important;
    transition: none !important;
  }

  .story-motion-ready .story-timeline::before {
    transform: scaleY(1) !important;
    transition: none !important;
  }
}

/* Cultural art direction v3 — restrained imagery, clearer hierarchy */
:root {
  --culture-red-art: url("assets/cultural-red-plum-v1.webp");
  --culture-ink-art: url("assets/cultural-ink-landscape-v1.webp");
  --culture-jade-art: url("assets/cultural-jade-bamboo-v1.webp");
  --culture-gold-line: rgba(191, 139, 55, 0.58);
  --culture-ink: #171b19;
  --culture-paper: #fbf6eb;
}

.header {
  border-bottom: 1px solid rgba(167, 112, 39, 0.24);
  background: rgba(255, 252, 246, 0.94);
  box-shadow: 0 12px 34px rgba(54, 33, 18, 0.07);
  backdrop-filter: blur(14px) saturate(1.08);
}

.navlinks a {
  border-radius: 999px;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.navlinks a:hover,
.navlinks a:focus-visible {
  background: rgba(151, 30, 43, 0.07);
  color: #941d2d;
  transform: translateY(-1px);
}

.navlinks a.active {
  color: #8f1d2b;
}

.navlinks a.active::after {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #971f30 0 58%, #c99b4d 58%);
}

.heading {
  position: relative;
}

.heading::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 0;
  width: 92px;
  height: 2px;
  background: linear-gradient(90deg, #981f30, #c99b4d 68%, transparent);
}

.heading .eyebrow,
.pagehero .eyebrow,
.story-intro .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.35rem 0.72rem;
  border: 1px solid rgba(166, 106, 34, 0.27);
  border-radius: 999px;
  background: rgba(255, 251, 243, 0.78);
  color: #8d1e2d;
  box-shadow: 0 5px 16px rgba(66, 39, 21, 0.05);
  backdrop-filter: blur(8px);
}

.heritage-card,
.card,
.schedule-card,
.directory article {
  border-color: rgba(180, 128, 53, 0.28);
  box-shadow:
    0 16px 38px rgba(58, 35, 19, 0.08),
    inset 0 1px rgba(255, 255, 255, 0.78);
}

.heritage-card:hover,
.card:hover,
.schedule-card:hover,
.directory article:hover {
  border-color: rgba(161, 31, 46, 0.36);
  box-shadow:
    0 24px 54px rgba(68, 37, 21, 0.13),
    inset 0 1px rgba(255, 255, 255, 0.9);
}

.btn {
  border: 1px solid rgba(255, 220, 151, 0.34);
  box-shadow:
    0 12px 24px rgba(121, 20, 34, 0.16),
    inset 0 1px rgba(255, 255, 255, 0.18);
}

.btn:hover,
.btn:focus-visible {
  box-shadow:
    0 16px 32px rgba(121, 20, 34, 0.23),
    0 0 0 4px rgba(197, 150, 74, 0.12);
}

/* Home: retain authentic community photography and add art to supporting stories. */
.heritage-home .story-scroll {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(251, 247, 238, 0.98) 0 43%, rgba(251, 247, 238, 0.86) 61%, rgba(251, 247, 238, 0.42)),
    var(--culture-ink-art) center bottom / cover no-repeat;
  color: #211f1b;
}

.heritage-home .story-scroll::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-top: 1px solid var(--culture-gold-line);
  border-bottom: 1px solid rgba(191, 139, 55, 0.32);
  pointer-events: none;
}

.heritage-home .story-intro h2,
.heritage-home .story-timeline h3 {
  color: #1c211f;
}

.heritage-home .story-intro > p:not(.eyebrow),
.heritage-home .story-timeline p {
  color: #554e45;
}

.heritage-home .section--dark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(68, 8, 18, 0.96), rgba(113, 15, 29, 0.88) 58%, rgba(71, 8, 17, 0.78)),
    var(--culture-red-art) center / cover no-repeat;
}

.heritage-home .section--dark::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 20px;
  border: 1px solid rgba(237, 194, 108, 0.28);
  border-radius: 30px;
  pointer-events: none;
}

.heritage-home .section--dark .heading::before {
  background: linear-gradient(90deg, #f0c979, rgba(240, 201, 121, 0));
}

.heritage-home .section--dark .feature-card {
  border: 1px solid rgba(246, 216, 157, 0.28);
  background: rgba(43, 8, 15, 0.55);
  box-shadow: 0 20px 44px rgba(28, 2, 7, 0.2);
  backdrop-filter: blur(10px);
}

/* Page heroes: distinct cultural moods with legible overlays. */
.heritage-about .pagehero,
.heritage-contact .pagehero {
  background:
    linear-gradient(90deg, rgba(252, 248, 239, 0.99) 0 48%, rgba(252, 248, 239, 0.86) 66%, rgba(252, 248, 239, 0.26)),
    var(--culture-ink-art) center / cover no-repeat;
}

.heritage-weekly .pagehero,
.heritage-directory .pagehero {
  background:
    linear-gradient(90deg, rgba(252, 248, 239, 0.98) 0 50%, rgba(252, 248, 239, 0.78) 70%, rgba(252, 248, 239, 0.18)),
    var(--culture-ink-art) center / cover no-repeat;
}

.heritage-events .pagehero,
.heritage-gallery .pagehero,
.heritage-join .pagehero {
  background:
    linear-gradient(105deg, rgba(76, 7, 17, 0.95) 0 46%, rgba(119, 15, 31, 0.77) 74%, rgba(76, 7, 17, 0.52)),
    var(--culture-red-art) center / cover no-repeat;
  color: #fffaf0;
}

.heritage-events .pagehero h1,
.heritage-events .pagehero p,
.heritage-events .pagehero .eyebrow,
.heritage-gallery .pagehero h1,
.heritage-gallery .pagehero p,
.heritage-gallery .pagehero .eyebrow,
.heritage-join .pagehero h1,
.heritage-join .pagehero p,
.heritage-join .pagehero .eyebrow {
  color: #fffaf0;
}

.heritage-events .pagehero .eyebrow,
.heritage-gallery .pagehero .eyebrow,
.heritage-join .pagehero .eyebrow {
  border-color: rgba(247, 213, 143, 0.38);
  background: rgba(48, 3, 11, 0.42);
}

.heritage-join .pagehero .lucky-red-panda-scene,
.heritage-directory .pagehero .lucky-red-panda-scene {
  opacity: 0.12;
  mix-blend-mode: luminosity;
}

/* Evergreen: serene jade identity without loose decorative sprites. */
.heritage-evergreen .pagehero {
  background:
    linear-gradient(90deg, rgba(10, 49, 42, 0.96) 0 45%, rgba(15, 70, 59, 0.77) 68%, rgba(8, 42, 36, 0.5)),
    var(--culture-jade-art) center / cover no-repeat;
  border-bottom: 1px solid rgba(215, 176, 91, 0.54);
}

.heritage-evergreen .pagehero h1,
.heritage-evergreen .pagehero p,
.heritage-evergreen .pagehero .eyebrow {
  color: #fff9eb;
}

.heritage-evergreen .pagehero .eyebrow {
  border-color: rgba(224, 189, 109, 0.45);
  background: rgba(6, 42, 35, 0.54);
}

.heritage-evergreen .pagehero .panda-bamboo-scene {
  display: none;
}

.heritage-evergreen .evergreen-moments {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(rgba(9, 50, 42, 0.86), rgba(9, 50, 42, 0.9)),
    var(--culture-jade-art) center / cover no-repeat;
}

.heritage-evergreen .evergreen-moments::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 22px;
  border: 1px solid rgba(218, 181, 99, 0.26);
  border-radius: 30px;
}

.heritage-evergreen .evergreen-photo-wall figure {
  background: rgba(255, 252, 244, 0.12);
  box-shadow: 0 18px 36px rgba(0, 18, 14, 0.24);
}

.heritage-evergreen .evergreen-join .join-ribbon {
  background:
    linear-gradient(105deg, rgba(91, 8, 20, 0.96), rgba(145, 25, 40, 0.88)),
    var(--culture-red-art) center / cover no-repeat;
  border: 1px solid rgba(230, 189, 102, 0.4);
}

/* Section rhythm: soft paper surfaces and clearer separation. */
.heritage-page > .section:nth-of-type(even):not(.section--dark):not(.evergreen-moments) {
  background:
    radial-gradient(circle at 86% 10%, rgba(195, 148, 75, 0.08), transparent 24%),
    linear-gradient(180deg, #fffdf8, #faf3e7);
}

.pagehero__grid > div:first-child {
  position: relative;
  max-width: 760px;
}

.pagehero__grid > div:first-child::after {
  content: "";
  display: block;
  width: 112px;
  height: 3px;
  margin-top: 1.45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #9a2031 0 58%, #d0a455 58%);
}

.heritage-events .pagehero__grid > div:first-child::after,
.heritage-gallery .pagehero__grid > div:first-child::after,
.heritage-join .pagehero__grid > div:first-child::after,
.heritage-evergreen .pagehero__grid > div:first-child::after {
  background: linear-gradient(90deg, #f2c96e 0 58%, rgba(242, 201, 110, 0.2) 58%);
}

@media (max-width: 760px) {
  .header {
    backdrop-filter: none;
  }

  .heading::before {
    top: -14px;
    width: 72px;
  }

  .heritage-home .story-scroll {
    background:
      linear-gradient(rgba(251, 247, 238, 0.91), rgba(251, 247, 238, 0.95)),
      var(--culture-ink-art) 68% bottom / auto 100% no-repeat;
  }

  .heritage-home .section--dark,
  .heritage-events .pagehero,
  .heritage-gallery .pagehero,
  .heritage-join .pagehero {
    background-position: 68% center;
  }

  .heritage-about .pagehero,
  .heritage-contact .pagehero,
  .heritage-weekly .pagehero,
  .heritage-directory .pagehero {
    background:
      linear-gradient(rgba(252, 248, 239, 0.9), rgba(252, 248, 239, 0.94)),
      var(--culture-ink-art) 70% center / auto 100% no-repeat;
  }

  .heritage-evergreen .pagehero {
    background-position: 50% center;
  }

  .heritage-home .section--dark::after,
  .heritage-evergreen .evergreen-moments::after {
    inset: 10px;
    border-radius: 20px;
  }
}

/* Keep destination colours last in the cascade. */
.page-transition {
  background:
    radial-gradient(circle at 50% 43%, var(--route-loader-glow), transparent 29%),
    linear-gradient(135deg, var(--route-loader-a), var(--route-loader-b) 56%, var(--route-loader-a)) !important;
}

.transition-progress {
  margin-top: 14px;
}

/* Bilingual switch — finish the thumb movement before the translated page loads. */
.lang {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease !important;
}

.lang::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 12px) / 2);
  border-radius: 999px;
  background: linear-gradient(145deg, #2d2723, #151312);
  box-shadow:
    0 5px 12px rgba(28, 20, 16, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.16);
  transform: translate3d(0, 0, 0);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lang.is-zh::before {
  transform: translate3d(calc(100% + 4px), 0, 0);
}

.lang span,
.lang span.on {
  position: relative;
  z-index: 1;
  color: #70665e !important;
  background: transparent !important;
  transition:
    color 200ms ease,
    opacity 200ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.lang:not(.is-zh) span:first-child,
.lang.is-zh span:last-child {
  color: #fffaf0 !important;
  opacity: 1;
  transform: scale(1.03);
}

.lang:not(.is-zh) span:last-child,
.lang.is-zh span:first-child {
  opacity: 0.72;
  transform: scale(0.96);
}

.lang.is-switching {
  pointer-events: none;
  transform: scale(0.98);
  border-color: rgba(151, 30, 43, 0.34) !important;
  box-shadow: 0 0 0 4px rgba(151, 30, 43, 0.08);
}

.lang.is-switching::before {
  box-shadow:
    0 7px 16px rgba(28, 20, 16, 0.24),
    0 0 0 3px rgba(207, 164, 82, 0.12),
    inset 0 1px rgba(255, 255, 255, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .lang,
  .lang::before,
  .lang span,
  .lang span.on {
    transition: none !important;
  }

  .lang.is-switching {
    transform: none;
  }
}

/* Motion direction pass — calm loading, arrivals and media feedback */
.page-transition {
  --route-loader-a: #6f0910;
  --route-loader-b: #a50f1a;
  --route-loader-glow: rgba(244, 206, 124, 0.2);
  background:
    radial-gradient(circle at 50% 43%, var(--route-loader-glow), transparent 29%),
    linear-gradient(135deg, var(--route-loader-a), var(--route-loader-b) 56%, var(--route-loader-a)) !important;
}

.page-transition[data-destination="about"],
.page-transition[data-destination="contact"] {
  --route-loader-a: #43151b;
  --route-loader-b: #8f1d2b;
}

.page-transition[data-destination="events"],
.page-transition[data-destination="gallery"] {
  --route-loader-a: #760b18;
  --route-loader-b: #b62535;
  --route-loader-glow: rgba(255, 215, 128, 0.24);
}

.page-transition[data-destination="weekly"] {
  --route-loader-a: #522b12;
  --route-loader-b: #9a5a1d;
  --route-loader-glow: rgba(255, 229, 159, 0.25);
}

.page-transition[data-destination="evergreen"] {
  --route-loader-a: #092f29;
  --route-loader-b: #176254;
  --route-loader-glow: rgba(225, 193, 116, 0.2);
}

.page-transition[data-destination="directory"] {
  --route-loader-a: #1f1717;
  --route-loader-b: #5b2027;
}

.transition-seal {
  position: absolute;
  right: -2px;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid rgba(255, 248, 225, 0.88);
  border-radius: 10px;
  color: #fff9e9;
  background: #971c2c;
  box-shadow: 0 8px 20px rgba(49, 5, 10, 0.24);
  font: 700 1.08rem/1 "Noto Serif TC", serif;
  transform: rotate(3deg);
}

.page-transition[data-destination="evergreen"] .transition-seal {
  background: #155448;
}

.page-transition[data-destination="weekly"] .transition-seal {
  background: #87501c;
}

.transition-destination {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  margin-top: 16px;
  padding: 5px 13px;
  border: 1px solid rgba(255, 242, 211, 0.24);
  border-radius: 999px;
  color: rgba(255, 250, 237, 0.92);
  background: rgba(42, 4, 9, 0.16);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.transition-destination i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f3ce7d;
  box-shadow: 0 0 0 4px rgba(243, 206, 125, 0.12);
}

.transition-destination b {
  font-weight: 700;
}

.transition-progress {
  margin-top: 14px;
}

.page-transition.is-active .transition-destination {
  animation: routeDestinationIn 420ms 180ms ease both;
}

.page-transition.is-active .transition-seal {
  animation: routeSealSet 520ms 190ms cubic-bezier(0.34, 1.45, 0.64, 1) both;
}

@keyframes routeDestinationIn {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes routeSealSet {
  from {
    opacity: 0;
    transform: translateY(-8px) rotate(-8deg) scale(1.18);
  }
  to {
    opacity: 1;
    transform: rotate(3deg) scale(1);
  }
}

body.route-arriving main > .hero,
body.route-arriving main > .pagehero {
  animation: routeContentArrival 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.route-arriving.arrive-left {
  --route-arrive-x: -16px;
  --route-arrive-y: 0px;
}

body.route-arriving.arrive-right {
  --route-arrive-x: 16px;
  --route-arrive-y: 0px;
}

body.route-arriving.arrive-top {
  --route-arrive-x: 0px;
  --route-arrive-y: -12px;
}

body.route-arriving.arrive-bottom {
  --route-arrive-x: 0px;
  --route-arrive-y: 12px;
}

body.route-arriving .pagehero__grid > div:first-child::after {
  animation: routeRuleDraw 720ms 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: left center;
}

@keyframes routeContentArrival {
  from {
    opacity: 0.72;
    transform: translate3d(var(--route-arrive-x, 0), var(--route-arrive-y, 10px), 0);
    filter: saturate(0.86);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes routeRuleDraw {
  from {
    opacity: 0;
    transform: scaleX(0.12);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

.premium-ready .heading.premium-enter::before,
.premium-ready .about-board-heading.premium-enter::before {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 680ms 120ms cubic-bezier(0.22, 1, 0.36, 1);
}

.premium-ready .heading.premium-enter.is-premium-visible::before,
.premium-ready .about-board-heading.premium-enter.is-premium-visible::before {
  transform: scaleX(1);
}

.motion-image-shell {
  background-color: #eadfce;
  background-image: linear-gradient(105deg, rgba(255, 255, 255, 0) 28%, rgba(255, 250, 238, 0.76) 46%, rgba(255, 255, 255, 0) 64%);
  background-position: 160% 0;
  background-size: 220% 100%;
}

.motion-image-shell.is-image-loading {
  animation: mediaLoadingSweep 1.45s ease-in-out infinite;
}

.motion-image-shell > img {
  transition: opacity 520ms ease, filter 620ms ease;
}

.motion-image-shell.is-image-loading > img {
  opacity: 0.34;
  filter: saturate(0.55) contrast(0.9);
}

.motion-image-shell.is-image-loaded > img {
  opacity: 1;
  filter: none;
}

.motion-image-shell.is-image-error {
  background: #eee6da;
}

@keyframes mediaLoadingSweep {
  to {
    background-position: -80% 0;
  }
}

@media (max-width: 640px) {
  .transition-destination {
    margin-top: 13px;
  }

  .transition-seal {
    width: 34px;
    height: 34px;
    font-size: 0.96rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-transition.is-active .transition-destination,
  .page-transition.is-active .transition-seal,
  body.route-arriving main > .hero,
  body.route-arriving main > .pagehero,
  body.route-arriving .pagehero__grid > div:first-child::after,
  .motion-image-shell.is-image-loading {
    animation: none !important;
  }

  .premium-ready .heading.premium-enter::before,
  .premium-ready .about-board-heading.premium-enter::before {
    transform: scaleX(1) !important;
    transition: none !important;
  }

  .motion-image-shell > img {
    opacity: 1 !important;
    filter: none !important;
    transition: none !important;
  }
}

html.reduce-motion .page-transition.is-active .transition-destination,
html.reduce-motion .page-transition.is-active .transition-seal,
html.reduce-motion body.route-arriving main > .hero,
html.reduce-motion body.route-arriving main > .pagehero,
html.reduce-motion .motion-image-shell.is-image-loading {
  animation: none !important;
}

/* Refined page-change interlude */
.page-transition {
  background:
    radial-gradient(circle at 50% 45%, rgba(244, 206, 124, 0.2), transparent 28%),
    linear-gradient(135deg, #6f0910 0%, #a50f1a 54%, #751018 100%) !important;
  backdrop-filter: none !important;
  overflow: hidden;
  transition: transform 0.56s cubic-bezier(0.7, 0, 0.2, 1), opacity 0.18s ease !important;
}

.page-transition::before,
.page-transition::after {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  pointer-events: none;
}

.page-transition::before {
  opacity: 0.17;
  background:
    linear-gradient(45deg, transparent 46%, rgba(247, 218, 152, 0.38) 47% 49%, transparent 50%) 0 0 / 46px 46px,
    linear-gradient(-45deg, transparent 46%, rgba(247, 218, 152, 0.28) 47% 49%, transparent 50%) 0 0 / 46px 46px;
}

.page-transition::after {
  inset: auto 0 0;
  height: 34%;
  opacity: 0.2;
  background: url("assets/auspicious-cloud-divider.svg") center bottom / min(920px, 92vw) auto no-repeat;
}

.transition-scene {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(560px, 88vw);
  min-height: 340px;
  color: #fff8e9;
}

.transition-emblem {
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  width: clamp(126px, 15vw, 178px);
  aspect-ratio: 1;
  margin-top: 42px;
  border: 1px solid rgba(251, 219, 148, 0.72);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(250, 221, 155, 0.96), rgba(205, 151, 55, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 220, 0.7),
    0 22px 54px rgba(42, 0, 4, 0.3),
    0 0 0 9px rgba(247, 207, 113, 0.12);
}

.page-transition .transition-emblem img {
  position: static;
  width: 68% !important;
  max-height: 68%;
  object-fit: contain;
  filter: none !important;
  opacity: 1;
}

.page-transition small {
  position: static;
  z-index: 4;
  margin-top: 25px;
  color: rgba(255, 249, 235, 0.9);
  font-size: clamp(0.58rem, 1.2vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1.5;
  text-align: center;
}

.page-transition strong {
  position: relative;
  z-index: 4;
  margin-top: 8px;
  color: #f4d287;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(1.05rem, 2vw, 1.34rem);
  font-weight: 700;
  letter-spacing: 0.22em;
}

.page-transition .transition-ring {
  position: absolute;
  z-index: 2;
  top: 5px;
  left: 50%;
  width: 264px;
  height: 264px;
  border: 1px solid rgba(247, 212, 135, 0.34) !important;
  border-radius: 50%;
  opacity: 0;
  transform: translateX(-50%) scale(0.65);
}

.transition-progress {
  position: relative;
  z-index: 4;
  width: 172px;
  height: 2px;
  margin-top: 23px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 244, 219, 0.2);
}

.transition-progress::after {
  content: "";
  display: block;
  width: 54%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #f7d88e, #fff5d6, transparent);
  transform: translateX(-115%);
}

.transition-lantern {
  position: absolute;
  z-index: 5;
  top: -34px;
  left: calc(50% - 21px);
  width: 42px;
  height: 50px;
  border: 2px solid #efc36a;
  border-radius: 48% 48% 43% 43%;
  background: linear-gradient(90deg, #8f0e17, #d12a2e 48%, #8e0b14);
  box-shadow: 0 0 28px rgba(255, 198, 90, 0.3);
  transform-origin: 50% -38px;
}

.transition-lantern::before,
.transition-lantern::after {
  content: "";
  position: absolute;
  left: 8px;
  width: 22px;
  height: 5px;
  border-radius: 3px;
  background: #d9a43e;
}

.transition-lantern::before {
  top: -7px;
}

.transition-lantern::after {
  bottom: -7px;
}

.transition-lantern i {
  position: absolute;
  top: 49px;
  left: 18px;
  width: 2px;
  height: 16px;
  background: #e7b44f;
}

.transition-cloud {
  position: absolute;
  z-index: 1;
  width: 154px;
  height: 56px;
  border: 2px solid rgba(248, 216, 147, 0.45);
  border-color: rgba(248, 216, 147, 0.45) transparent transparent;
  border-radius: 50%;
  opacity: 0;
}

.transition-cloud--one {
  top: 44%;
  left: -16%;
}

.transition-cloud--two {
  right: -12%;
  bottom: 15%;
  transform: scale(0.72);
}

.page-transition.is-active .transition-emblem {
  animation: transitionEmblemIn 0.48s 0.06s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

.page-transition.is-active .transition-ring {
  animation: transitionHalo 0.62s 0.03s ease-out both;
}

.page-transition.is-active .transition-progress::after {
  animation: transitionProgress 0.82s 0.1s ease-in-out both;
}

.page-transition.is-active .transition-lantern {
  animation: transitionLantern 1.6s ease-in-out infinite;
}

.page-transition.is-active .transition-cloud--one {
  animation: transitionCloudIn 0.58s 0.08s ease-out both;
}

.page-transition.is-active .transition-cloud--two {
  animation: transitionCloudIn 0.58s 0.16s ease-out both reverse;
}

@keyframes transitionEmblemIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.82);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes transitionHalo {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.58);
  }
  to {
    opacity: 0.72;
    transform: translateX(-50%) scale(1);
  }
}

@keyframes transitionProgress {
  to {
    transform: translateX(205%);
  }
}

@keyframes transitionLantern {
  0%,
  100% {
    transform: translate3d(-3px, 0, 0) rotate(-2deg);
  }
  50% {
    transform: translate3d(3px, -7px, 0) rotate(2deg);
  }
}

@keyframes transitionCloudIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 0.62;
    transform: translateX(0);
  }
}

@media (max-width: 640px) {
  .transition-scene {
    min-height: 300px;
  }

  .page-transition .transition-ring {
    width: 218px;
    height: 218px;
  }

  .transition-cloud {
    width: 112px;
  }

  .page-transition small {
    max-width: 300px;
    letter-spacing: 0.17em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-transition.is-active .transition-emblem,
  .page-transition.is-active .transition-ring,
  .page-transition.is-active .transition-progress::after,
  .page-transition.is-active .transition-lantern,
  .page-transition.is-active .transition-cloud {
    animation: none !important;
  }
}

/* 2026-07-27 visibility and crop repair */
.heritage-evergreen .evergreen-photo-wall:has(.evergreen-decor-grid) {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  grid-auto-rows: auto !important;
  overflow: visible !important;
}

.heritage-evergreen .evergreen-photo-wall:has(.evergreen-decor-grid) .evergreen-decor-grid {
  height: auto !important;
  min-height: 0 !important;
  align-content: start;
}

.heritage-evergreen .evergreen-moments {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

.heritage-evergreen .evergreen-decor-card img,
.heritage-gallery .gallery img {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #21191a !important;
}

.heritage-gallery .gallery figure:hover img {
  transform: none !important;
}

.shell,
.nav,
.hero__grid,
.pagehero__grid,
.heading,
.cards,
.feature-cards,
.schedule,
.directory,
.contact-grid {
  min-width: 0;
  max-width: 100%;
}

.heading > *,
.hero__grid > *,
.pagehero__grid > *,
.contact-grid > *,
.directory > *,
.schedule > * {
  min-width: 0;
}

html.reduce-motion *,
html.reduce-motion *::before,
html.reduce-motion *::after {
  scroll-behavior: auto !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

html.reduce-motion .page-transition,
html.reduce-motion .logo-intro {
  display: none !important;
}

html.reduce-motion .story-motion-ready .story-intro > *,
html.reduce-motion .story-motion-ready .story-timeline li,
html.reduce-motion .story-motion-ready .story-timeline li::before {
  opacity: 1 !important;
  transform: none !important;
}

html.reduce-motion .story-motion-ready .story-intro h2::after {
  transform: scaleX(1) !important;
}

html.reduce-motion .story-motion-ready .story-timeline::before {
  transform: scaleY(1) !important;
}

@media (prefers-reduced-motion: reduce) {
  .sponsor-viewport {
    width: 100%;
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    transform: none;
    margin-inline: 0;
    scrollbar-width: thin;
  }

  .sponsor-marquee {
    animation: none !important;
  }

  .sponsor-marquee__clone {
    display: none !important;
  }

  .sponsor-motion-toggle {
    display: none;
  }
}

html.reduce-motion .sponsor-viewport {
  width: 100%;
  overflow-x: auto;
  margin-inline: 0;
  -webkit-mask-image: none;
  mask-image: none;
  transform: none;
  scrollbar-width: thin;
}

html.reduce-motion .sponsor-marquee {
  animation: none !important;
}

html.reduce-motion .sponsor-marquee__clone {
  display: none !important;
}

html.reduce-motion .sponsor-motion-toggle {
  display: none !important;
}

/* July refinement: clearer About page, focused cultural accents and richer motion */

/* About page — clear chapter order and a stable reading width */
.heritage-about .about-overview {
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(39, 94, 85, 0.08), transparent 24%),
    linear-gradient(180deg, #fbf8f1, #f5efe4);
}

.about-jump-nav {
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 32px;
  padding: 7px;
  overflow-x: auto;
  border: 1px solid rgba(191, 145, 66, 0.32);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.9);
  box-shadow: 0 14px 36px rgba(74, 45, 24, 0.07);
  scrollbar-width: thin;
}

.about-jump-nav > span {
  padding: 10px 14px;
  color: var(--tim-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.about-jump-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 17px;
  border-radius: 999px;
  color: var(--tim-jade-deep);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 220ms ease,
    background 220ms ease,
    transform 220ms var(--tim-ease);
}

.about-jump-nav a:hover,
.about-jump-nav a:focus-visible {
  color: #fff;
  background: var(--tim-red);
  transform: translateY(-1px);
}

.heritage-about .history-ribbon {
  width: 100%;
  margin-bottom: clamp(38px, 5vw, 70px);
}

.heritage-about .about-overview__content {
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.62fr) !important;
  gap: clamp(30px, 5vw, 72px) !important;
  align-items: start;
}

.heritage-about .about-overview__story {
  position: relative;
  grid-column: 1 !important;
  grid-row: 1 !important;
  min-width: 0;
  padding: clamp(30px, 4vw, 58px) !important;
  overflow: hidden;
  border: 1px solid rgba(191, 145, 66, 0.25);
  border-radius: 28px 28px 86px 28px !important;
  background: rgba(255, 253, 249, 0.9) !important;
  box-shadow: 0 24px 58px rgba(74, 45, 24, 0.08) !important;
}

.heritage-about .about-overview__story h2 {
  max-width: 720px;
  margin: 0 0 24px;
  font-size: clamp(2.15rem, 4vw, 4.4rem);
}

.heritage-about .about-overview__story > p:not(.eyebrow) {
  max-width: 760px;
  font-size: clamp(1rem, 1.35vw, 1.1rem);
}

.about-story-mark {
  position: absolute;
  right: 26px;
  bottom: 18px;
  width: 150px;
  height: 98px;
  color: rgba(20, 72, 63, 0.075);
  pointer-events: none;
}

.about-story-mark span {
  position: absolute;
  right: 8px;
  bottom: -14px;
  font: 800 6.8rem/1 "Noto Serif TC", serif;
}

.about-story-mark i {
  position: absolute;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(157, 38, 50, 0.18);
  border-radius: 58% 42% 62% 38%;
  transform: rotate(34deg);
}

.about-story-mark i:nth-child(1) {
  left: 5px;
  top: 40px;
}

.about-story-mark i:nth-child(2) {
  left: 34px;
  top: 18px;
}

.about-story-mark i:nth-child(3) {
  left: 66px;
  top: 33px;
}

.heritage-about .about-overview__aside {
  position: sticky !important;
  top: 145px;
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-height: 390px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(30px, 4vw, 48px) !important;
  overflow: hidden;
  border: 1px solid rgba(234, 213, 168, 0.34) !important;
  border-radius: 28px 86px 28px 28px !important;
  background:
    linear-gradient(165deg, rgba(18, 81, 70, 0.98), rgba(10, 55, 49, 0.99)) !important;
  box-shadow: 0 24px 64px rgba(20, 72, 63, 0.2);
}

.heritage-about .about-overview__aside .eyebrow {
  margin-bottom: 8px;
  color: #f4d89a !important;
}

.heritage-about .about-overview__aside h3 {
  margin-bottom: 15px;
  color: #fff;
  font-size: clamp(1.65rem, 2.4vw, 2.25rem);
}

.heritage-about .about-overview__aside > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.98rem;
}

.purpose-seal {
  position: absolute;
  top: 22px;
  right: 26px;
  color: rgba(255, 255, 255, 0.08);
  font: 800 9rem/1 "Noto Serif TC", serif;
}

.heritage-about .about-board-section {
  position: relative;
  grid-column: 1 / -1;
  min-width: 0;
  padding-top: clamp(48px, 7vw, 90px);
  overflow: hidden;
  scroll-margin-top: 145px;
}

.about-board-heading {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}

.about-board-heading h2 {
  margin: 0;
}

.about-board-heading > p {
  margin: 0;
  color: var(--tim-muted);
}

.heritage-about .about-board-section .board {
  position: relative;
  z-index: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.heritage-about .about-board-section .person {
  min-height: 132px !important;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px !important;
  border: 1px solid rgba(20, 72, 63, 0.12) !important;
  border-radius: 18px 18px 38px 18px !important;
  background: rgba(255, 253, 249, 0.88) !important;
  transform: none !important;
  transition:
    transform 220ms var(--tim-ease),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.heritage-about .about-board-section .person:hover {
  border-color: rgba(157, 38, 50, 0.36) !important;
  box-shadow: 0 18px 36px rgba(74, 45, 24, 0.09) !important;
  transform: translateY(-4px) !important;
}

.person__number {
  margin-bottom: 20px;
  color: var(--tim-gold) !important;
  font-family: "Noto Serif TC", serif;
  font-size: 0.75rem !important;
  font-weight: 800;
  letter-spacing: 0.11em;
}

/* Tanghulu — a tactile wooden skewer with changeable candied fruit */
.story-timeline {
  padding-left: 72px;
}

.story-timeline::before {
  left: 21px;
  width: 7px;
  background:
    linear-gradient(
      90deg,
      #3f210d 0%,
      #7a431e 18%,
      #d29a5d 40%,
      #f0bb75 52%,
      #8b4a20 75%,
      #45230e 100%
    );
  box-shadow:
    inset 1px 0 rgba(255, 236, 191, 0.34),
    inset -1px 0 rgba(38, 15, 4, 0.45),
    0 8px 18px rgba(0, 0, 0, 0.3);
}

.story-timeline::after {
  left: 17px;
  width: 15px;
  background: linear-gradient(90deg, #3f210d, #e3aa68 50%, #45230e);
}

.story-timeline li::before {
  left: -69px;
  top: 29px;
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 225, 161, 0.86);
  box-shadow:
    inset -8px -9px 12px rgba(72, 8, 14, 0.34),
    inset 5px 5px 8px rgba(255, 255, 255, 0.13),
    0 7px 15px rgba(0, 0, 0, 0.34),
    0 0 0 5px rgba(151, 35, 45, 0.25);
}

.story-timeline[data-fruit="strawberry"] li::before {
  border-radius: 52% 52% 47% 47% / 60% 60% 42% 42%;
  background:
    radial-gradient(circle at 30% 23%, rgba(255, 255, 255, 0.96) 0 5%, transparent 7%),
    radial-gradient(ellipse at 28% 48%, #ffe09a 0 3%, transparent 4%),
    radial-gradient(ellipse at 60% 36%, #ffe09a 0 3%, transparent 4%),
    radial-gradient(ellipse at 46% 67%, #ffe09a 0 3%, transparent 4%),
    linear-gradient(145deg, #ff665b, #d5283a 58%, #7e1320);
}

.story-timeline[data-fruit="grape"] li::before {
  width: 46px;
  height: 46px;
  border-color: rgba(234, 213, 168, 0.7);
  background:
    radial-gradient(circle at 25% 30%, #cf9cff 0 14%, #73409d 15% 24%, transparent 25%),
    radial-gradient(circle at 55% 24%, #d9a5ff 0 14%, #7642a1 15% 24%, transparent 25%),
    radial-gradient(circle at 75% 47%, #b879e7 0 14%, #633189 15% 24%, transparent 25%),
    radial-gradient(circle at 43% 55%, #c98ef3 0 16%, #6b348f 17% 27%, transparent 28%),
    radial-gradient(circle at 55% 78%, #a764d4 0 15%, #542771 16% 26%, transparent 27%);
  box-shadow:
    0 7px 15px rgba(0, 0, 0, 0.34),
    0 0 0 5px rgba(94, 47, 126, 0.24);
}

.story-timeline[data-fruit="orange"] li::before {
  border-color: rgba(255, 230, 168, 0.82);
  background:
    radial-gradient(circle at 31% 23%, rgba(255, 255, 255, 0.95) 0 5%, transparent 7%),
    repeating-radial-gradient(circle at 65% 60%, transparent 0 3px, rgba(128, 59, 8, 0.09) 4px),
    radial-gradient(circle at 40% 35%, #ffbf4b 0, #ef7d17 58%, #9a3e09 100%);
  box-shadow:
    inset -8px -9px 12px rgba(113, 42, 5, 0.3),
    0 7px 15px rgba(0, 0, 0, 0.34),
    0 0 0 5px rgba(195, 99, 17, 0.24);
}

.story-timeline.is-fruit-changing li::before {
  animation: tanghuluFruitPop 520ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(var(--story-order) * 55ms);
}

@keyframes tanghuluFruitPop {
  0% {
    transform: scale(0.72) rotate(-12deg);
  }
  60% {
    transform: scale(1.16) rotate(5deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

.tanghulu-picker {
  width: fit-content;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 26px;
  padding: 8px 13px 8px 9px;
  border: 1px solid rgba(244, 216, 154, 0.42);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    transform 220ms var(--tim-ease);
}

.tanghulu-picker:hover,
.tanghulu-picker:focus-visible {
  border-color: rgba(244, 216, 154, 0.8);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.tanghulu-picker > span:nth-child(2) {
  display: grid;
  min-width: 92px;
  text-align: left;
}

.tanghulu-picker small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.61rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tanghulu-picker strong {
  color: #fff;
  font-size: 0.83rem;
}

.tanghulu-picker b {
  color: var(--tim-gold-soft);
  font-size: 1.1rem;
  transition: transform 280ms ease;
}

.tanghulu-picker:hover b {
  transform: rotate(90deg);
}

.tanghulu-picker__sample {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 226, 166, 0.78);
  border-radius: 50%;
  background:
    radial-gradient(circle at 31% 24%, #fff 0 6%, transparent 8%),
    radial-gradient(circle at 38% 30%, #f45d50 0, #bd2330 53%, #72121b 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.tanghulu-picker[data-fruit="strawberry"] .tanghulu-picker__sample {
  border-radius: 52% 52% 47% 47% / 60% 60% 42% 42%;
  background:
    radial-gradient(circle at 30% 23%, #fff 0 5%, transparent 7%),
    radial-gradient(ellipse at 28% 48%, #ffe09a 0 3%, transparent 4%),
    radial-gradient(ellipse at 60% 36%, #ffe09a 0 3%, transparent 4%),
    linear-gradient(145deg, #ff665b, #d5283a 58%, #7e1320);
}

.tanghulu-picker[data-fruit="grape"] .tanghulu-picker__sample {
  background:
    radial-gradient(circle at 28% 30%, #cf9cff 0 17%, #73409d 18% 28%, transparent 29%),
    radial-gradient(circle at 66% 34%, #d9a5ff 0 17%, #7642a1 18% 28%, transparent 29%),
    radial-gradient(circle at 48% 70%, #b879e7 0 19%, #633189 20% 31%, transparent 32%);
}

.tanghulu-picker[data-fruit="orange"] .tanghulu-picker__sample {
  background:
    radial-gradient(circle at 31% 23%, #fff 0 5%, transparent 7%),
    radial-gradient(circle at 40% 35%, #ffbf4b 0, #ef7d17 58%, #9a3e09 100%);
}

/* Focused cultural cameos: one motif per page, not a repeated wallpaper */
.has-cultural-cameo {
  position: relative;
  isolation: isolate;
}

.cultural-cameo {
  position: absolute;
  z-index: -1;
  display: block;
  pointer-events: none;
}

.cultural-cameo--dragon {
  right: -42px;
  top: 34px;
  width: 440px;
  height: 148px;
  border-radius: 80px 0 0 80px;
  background:
    linear-gradient(90deg, transparent, rgba(245, 239, 225, 0.2)),
    url("assets/nine-dragons-handscroll.webp") right center / auto 100% no-repeat;
  opacity: 0.13;
  filter: sepia(0.35) saturate(0.75);
}

.cultural-cameo--lantern {
  right: 30px;
  top: 30px;
  width: 74px;
  height: 86px;
  border: 3px solid #e0b45d;
  border-radius: 42% 42% 48% 48%;
  background:
    repeating-linear-gradient(90deg, transparent 0 13px, rgba(255, 225, 154, 0.26) 14px 16px),
    linear-gradient(90deg, #7f1420, #dc3a46 50%, #7f1420);
  box-shadow: 0 12px 24px rgba(71, 16, 21, 0.18);
  opacity: 0.3;
  transform-origin: 50% -30px;
  animation: cameoLanternSway 6.8s ease-in-out infinite;
}

.cultural-cameo--lantern::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -34px;
  width: 2px;
  height: 32px;
  background: #c9963d;
}

.cultural-cameo--lantern::after {
  content: "";
  position: absolute;
  left: calc(50% - 1px);
  bottom: -27px;
  width: 2px;
  height: 26px;
  background: #c9963d;
}

@keyframes cameoLanternSway {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(4deg);
  }
}

.cultural-cameo--prosperity {
  right: 22px;
  top: 18px;
  width: 160px;
  height: 160px;
  background: url("assets/prosperity-ligature.svg") center / contain no-repeat;
  opacity: 0.085;
  transform: rotate(7deg);
}

.cultural-cameo--lion {
  right: 8px;
  bottom: -22px;
  width: 160px;
  height: 148px;
  background: radial-gradient(circle at 34% 36%, #f6d67e 0 10%, #a91f31 11% 31%, transparent 32%);
  opacity: 0.23;
  animation: cameoLionNod 5.6s ease-in-out infinite;
}

@keyframes cameoLionNod {
  0%,
  100% {
    transform: rotate(-2deg) translateY(0);
  }
  50% {
    transform: rotate(2deg) translateY(-5px);
  }
}

.cultural-cameo--coin {
  right: 22px;
  top: 50%;
  width: 78px;
  height: 78px;
  border: 5px double rgba(191, 145, 66, 0.55);
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 37%, rgba(191, 145, 66, 0.32) 38% 62%, transparent 63%),
    linear-gradient(-45deg, transparent 37%, rgba(191, 145, 66, 0.32) 38% 62%, transparent 63%);
  opacity: 0.38;
  transform: translateY(-50%) rotate(45deg);
}

.cultural-cameo--panda {
  right: -28px;
  bottom: -28px;
  width: 210px;
  height: 190px;
  background: radial-gradient(circle at 50% 50%, rgba(191, 145, 66, 0.32) 0 30%, rgba(151, 31, 45, 0.2) 31% 58%, transparent 59%);
  opacity: 0.22;
}

.heritage-contact .contact-card.has-cultural-cameo {
  overflow: hidden;
}

/* Different page families keep different motifs instead of repeating lanterns everywhere. */
.heritage-about .heritage-lanterns,
.heritage-weekly .heritage-lanterns,
.heritage-evergreen .heritage-lanterns,
.heritage-gallery .heritage-lanterns,
.heritage-directory .heritage-lanterns,
.heritage-contact .heritage-lanterns {
  display: none;
}

/* Sponsors — larger, steady and readable with no sweep/shine effect */
.sponsor-showcase .funder-bubble::before {
  display: none !important;
  animation: none !important;
  content: none !important;
}

.funder-row {
  animation-duration: 40s !important;
}

.funder-bubble {
  width: clamp(340px, 27vw, 455px) !important;
  min-height: 220px !important;
  flex-basis: clamp(340px, 27vw, 455px) !important;
  padding: 30px !important;
}

.funder-bubble img,
.sponsor-showcase .funder-bubble img {
  max-width: 340px !important;
  max-height: 140px !important;
  height: 140px !important;
}

.funder-bubble--link {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.funder-bubble img[src*="sponsor-wrh-foundation"] {
  max-height: 170px !important;
  height: 170px !important;
}

/* A more ceremonial first-load moment */
.logo-intro {
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 50% 44%, rgba(245, 209, 137, 0.2), transparent 24%),
    linear-gradient(145deg, #0d3d36 0%, #102f2b 52%, #6f111b 100%) !important;
}

.logo-intro::before,
.logo-intro::after {
  content: "";
  position: absolute;
  inset: auto -8% -34% auto;
  width: 560px;
  aspect-ratio: 1;
  border: 1px solid rgba(244, 216, 154, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(244, 216, 154, 0.035),
    0 0 0 86px rgba(244, 216, 154, 0.025);
}

.logo-intro::before {
  inset: -38% auto auto -12%;
  width: 480px;
}

.logo-intro__stage {
  position: relative;
  width: min(720px, calc(100vw - 38px));
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 62px 30px 44px;
  border: 1px solid rgba(244, 216, 154, 0.28);
  border-radius: 180px 180px 30px 30px;
  background: rgba(8, 31, 28, 0.24);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.logo-intro__stage > img {
  position: relative;
  z-index: 2;
  width: min(420px, 66vw) !important;
  filter: brightness(0) invert(1);
  animation: introSealReveal 1.18s 120ms cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

.logo-intro__stage > p {
  z-index: 2;
  margin: 25px 0 2px;
  color: #fff;
  font-size: clamp(0.72rem, 1.7vw, 0.96rem);
  font-weight: 800;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
  animation: introTextLift 620ms 720ms ease both;
}

.logo-intro__stage > small {
  z-index: 2;
  color: #f4d89a;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(0.8rem, 1.8vw, 1.08rem);
  letter-spacing: 0.18em;
  animation: introTextLift 620ms 850ms ease both;
}

.logo-intro__seal {
  position: absolute;
  z-index: 3;
  right: 8%;
  bottom: 16%;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 2px solid #f4d89a;
  border-radius: 15px;
  color: #f8e7b7;
  background: #971d2b;
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.08),
    0 12px 30px rgba(0, 0, 0, 0.25);
  font: 800 1.8rem "Noto Serif TC", serif;
  transform: rotate(-7deg);
  animation: introSealStamp 520ms 980ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.logo-intro__cloud {
  position: absolute;
  width: 190px;
  height: 38px;
  background: url("assets/auspicious-cloud-divider.svg") center / contain no-repeat;
  opacity: 0.45;
}

.logo-intro__cloud--left {
  left: -38px;
  bottom: 42px;
  animation: introCloudLeft 1.4s 120ms ease both;
}

.logo-intro__cloud--right {
  right: -38px;
  top: 70px;
  transform: scaleX(-1);
  animation: introCloudRight 1.4s 180ms ease both;
}

.logo-intro__lantern {
  position: absolute;
  top: -30px;
  width: 56px;
  height: 70px;
  border: 3px solid #e9bd67;
  border-radius: 45%;
  background:
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(255, 226, 166, 0.24) 11px 13px),
    linear-gradient(90deg, #831622, #db3e4c 50%, #831622);
  box-shadow: 0 15px 32px rgba(0, 0, 0, 0.28);
  transform-origin: 50% -55px;
  animation: introLanternSwing 2.1s ease-in-out infinite;
}

.logo-intro__lantern::before {
  content: "";
  position: absolute;
  left: calc(50% - 1px);
  top: -58px;
  width: 2px;
  height: 56px;
  background: #d4a450;
}

.logo-intro__lantern::after {
  content: "";
  position: absolute;
  left: calc(50% - 1px);
  bottom: -26px;
  width: 2px;
  height: 24px;
  background: #d4a450;
  box-shadow: -5px 6px #d4a450, 5px 6px #d4a450;
}

.logo-intro__lantern--left {
  left: 15%;
}

.logo-intro__lantern--right {
  right: 15%;
  animation-delay: -0.9s;
}

@keyframes introSealReveal {
  0% {
    opacity: 0;
    transform: scale(0.42) rotate(-18deg);
    filter: brightness(0) invert(1) blur(9px);
  }
  70% {
    opacity: 1;
    transform: scale(1.06) rotate(2deg);
    filter: brightness(0) invert(1) blur(0);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: brightness(0) invert(1);
  }
}

@keyframes introTextLift {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes introSealStamp {
  from {
    opacity: 0;
    transform: scale(1.8) rotate(-18deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(-7deg);
  }
}

@keyframes introCloudLeft {
  from {
    opacity: 0;
    transform: translateX(-55px);
  }
}

@keyframes introCloudRight {
  from {
    opacity: 0;
    transform: translateX(55px) scaleX(-1);
  }
}

@keyframes introLanternSwing {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(5deg);
  }
}

@media (max-width: 900px) {
  .heritage-about .about-overview__content {
    grid-template-columns: 1fr !important;
  }

  .heritage-about .about-overview__story,
  .heritage-about .about-overview__aside {
    position: relative !important;
    top: auto !important;
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .heritage-about .about-overview__aside {
    min-height: 320px;
  }

  .about-board-heading {
    grid-template-columns: 1fr;
  }

  .heritage-about .about-board-section .board {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .cultural-cameo--dragon {
    width: 330px;
    opacity: 0.1;
  }
}

@media (max-width: 600px) {
  .about-jump-nav {
    width: 100%;
    justify-content: flex-start;
    border-radius: 16px;
  }

  .about-jump-nav > span {
    display: none;
  }

  .about-jump-nav a {
    min-height: 42px;
    padding-inline: 14px;
  }

  .heritage-about .history-ribbon {
    border-radius: 18px;
  }

  .heritage-about .about-overview__story,
  .heritage-about .about-overview__aside {
    padding: 28px !important;
    border-radius: 22px !important;
  }

  .heritage-about .about-board-section .board {
    grid-template-columns: 1fr !important;
  }

  .heritage-about .about-board-section .person {
    min-height: 112px !important;
  }

  .story-timeline {
    padding-left: 57px;
  }

  .story-timeline::before {
    left: 16px;
  }

  .story-timeline::after {
    left: 12px;
  }

  .story-timeline li::before {
    left: -55px;
    width: 36px;
    height: 36px;
  }

  .funder-bubble {
    width: min(82vw, 390px) !important;
    min-height: 195px !important;
    flex-basis: min(82vw, 390px) !important;
  }

  .funder-bubble img,
  .sponsor-showcase .funder-bubble img {
    height: 120px !important;
    max-height: 120px !important;
  }

  .logo-intro__stage {
    min-height: 320px;
    padding-inline: 20px;
    border-radius: 120px 120px 24px 24px;
  }

  .logo-intro__lantern--left {
    left: 10%;
  }

  .logo-intro__lantern--right {
    right: 10%;
  }

  .logo-intro__seal {
    right: 7%;
    bottom: 11%;
    width: 52px;
    height: 52px;
  }

  .cultural-cameo {
    opacity: 0.1;
  }

  .cultural-cameo--panda {
    right: -8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-timeline.is-fruit-changing li::before,
  .cultural-cameo--lantern,
  .cultural-cameo--lion,
  .logo-intro__lantern,
  .logo-intro__stage > img,
  .logo-intro__stage > p,
  .logo-intro__stage > small,
  .logo-intro__seal,
  .logo-intro__cloud {
    animation: none !important;
  }
}

/* Recovered image-backed tanghulu from the previous website. */
.story-timeline::before {
  left: 18px;
  width: 13px;
  background: url("assets/tanghulu-skewer-cutout.png") center / 100% 100% no-repeat !important;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.28) !important;
}

.story-timeline::after {
  display: none;
}

.story-timeline li::before {
  border: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  box-shadow: none !important;
  filter:
    drop-shadow(0 5px 7px rgba(0, 0, 0, 0.38))
    drop-shadow(0 0 5px rgba(255, 223, 158, 0.18));
}

.story-timeline[data-fruit="grape"] li::before {
  left: -72px;
  top: 20px;
  width: 48px;
  height: 60px;
  background-image: url("assets/tanghulu-green-grape.png") !important;
}

.story-timeline[data-fruit="strawberry"] li::before {
  left: -76px;
  top: 18px;
  width: 56px;
  height: 64px;
  background-image: url("assets/tanghulu-strawberry.png") !important;
}

.story-timeline[data-fruit="plum"] li::before {
  left: -75px;
  top: 23px;
  width: 54px;
  height: 54px;
  background-image: url("assets/tanghulu-plum.png") !important;
}

.story-timeline[data-fruit="mandarin"] li::before {
  left: -81px;
  top: 27px;
  width: 66px;
  height: 48px;
  background-image: url("assets/tanghulu-mandarin.png") !important;
}

.tanghulu-picker__sample {
  width: 42px;
  height: 42px;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  box-shadow: none !important;
  filter:
    drop-shadow(0 4px 5px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 4px rgba(255, 223, 158, 0.2));
}

.tanghulu-picker[data-fruit="grape"] .tanghulu-picker__sample {
  background-image: url("assets/tanghulu-green-grape.png") !important;
}

.tanghulu-picker[data-fruit="strawberry"] .tanghulu-picker__sample {
  background-image: url("assets/tanghulu-strawberry.png") !important;
}

.tanghulu-picker[data-fruit="plum"] .tanghulu-picker__sample {
  background-image: url("assets/tanghulu-plum.png") !important;
}

.tanghulu-picker[data-fruit="mandarin"] .tanghulu-picker__sample {
  width: 48px;
  background-image: url("assets/tanghulu-mandarin.png") !important;
}

@media (max-width: 600px) {
  .story-timeline::before {
    left: 12px;
    width: 11px;
  }

  .story-timeline[data-fruit="grape"] li::before {
    left: -62px;
    width: 42px;
    height: 50px;
  }

  .story-timeline[data-fruit="strawberry"] li::before {
    left: -65px;
    width: 48px;
    height: 54px;
  }

  .story-timeline[data-fruit="plum"] li::before {
    left: -64px;
    width: 46px;
    height: 46px;
  }

  .story-timeline[data-fruit="mandarin"] li::before {
    left: -68px;
    width: 54px;
    height: 42px;
  }
}

/* User-supplied story artwork and individually customizable tanghulu */
body.tradition-in-motion .section.story-scroll {
  background:
    linear-gradient(100deg, rgba(18, 42, 36, 0.93) 0%, rgba(35, 48, 39, 0.8) 48%, rgba(91, 24, 27, 0.78) 100%),
    linear-gradient(180deg, rgba(18, 31, 27, 0.08), rgba(48, 15, 17, 0.4)),
    url("assets/cultural-red-plum-v1.webp") center / cover no-repeat !important;
}

body.tradition-in-motion .section.story-scroll::before {
  opacity: 1;
  background:
    radial-gradient(circle at 18% 38%, rgba(5, 28, 24, 0.12), rgba(7, 26, 23, 0.54) 74%),
    linear-gradient(90deg, rgba(6, 32, 28, 0.44), transparent 52%, rgba(81, 18, 22, 0.2));
  filter: none;
  mix-blend-mode: normal;
  -webkit-mask-image: none;
  mask-image: none;
}

body.tradition-in-motion .section.story-scroll::after {
  opacity: 0.09;
  background-size: 68px 68px;
}

.story-timeline[data-fruit-picker-ready] li::before {
  display: none !important;
}

.tanghulu-fruit {
  position: absolute;
  z-index: 3;
  left: -87px;
  top: 11px;
  width: 74px;
  height: 78px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  cursor: pointer;
  filter:
    drop-shadow(0 7px 8px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 7px rgba(255, 224, 159, 0.24));
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 220ms ease;
}

.tanghulu-fruit:hover,
.tanghulu-fruit:focus-visible {
  transform: scale(1.13) rotate(-3deg);
  filter:
    drop-shadow(0 10px 11px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 10px rgba(255, 224, 159, 0.48));
}

.tanghulu-fruit:focus-visible {
  outline: 3px solid #f4d89a;
  outline-offset: 4px;
}

.tanghulu-fruit[data-fruit="hawthorn"] {
  left: -84px;
  top: 16px;
  width: 68px;
  height: 68px;
  background-image: url("assets/tanghulu-hawthorn.png");
}

.tanghulu-fruit[data-fruit="strawberry"] {
  left: -88px;
  top: 7px;
  width: 76px;
  height: 84px;
  background-image: url("assets/tanghulu-strawberry.png");
}

.tanghulu-fruit[data-fruit="grape"] {
  left: -84px;
  top: 7px;
  width: 68px;
  height: 84px;
  background-image: url("assets/tanghulu-green-grape.png");
}

.tanghulu-fruit[data-fruit="mandarin"] {
  left: -94px;
  top: 18px;
  width: 88px;
  height: 62px;
  background-image: url("assets/tanghulu-mandarin.png");
}

.story-timeline li.is-fruit-changing .tanghulu-fruit {
  animation: tanghuluFruitPop 520ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.tanghulu-picker[data-fruit="hawthorn"] .tanghulu-picker__sample {
  background-image: url("assets/tanghulu-hawthorn.png") !important;
}

@media (max-width: 600px) {
  .tanghulu-fruit[data-fruit="hawthorn"] {
    left: -72px;
    width: 58px;
    height: 58px;
  }

  .tanghulu-fruit[data-fruit="strawberry"] {
    left: -76px;
    width: 65px;
    height: 72px;
  }

  .tanghulu-fruit[data-fruit="grape"] {
    left: -72px;
    width: 58px;
    height: 72px;
  }

  .tanghulu-fruit[data-fruit="mandarin"] {
    left: -79px;
    width: 72px;
    height: 53px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-timeline li.is-fruit-changing .tanghulu-fruit {
    animation: none !important;
  }
}

/* Site-wide red, gold, ivory and ink colour pass */
body.tradition-in-motion {
  background:
    radial-gradient(circle at 6% 14%, rgba(198, 40, 59, 0.05), transparent 25%),
    radial-gradient(circle at 94% 70%, rgba(199, 154, 59, 0.07), transparent 27%),
    var(--tim-paper) !important;
}

.tradition-in-motion .header,
.tradition-in-motion .navlinks {
  background-color: rgba(255, 253, 247, 0.97) !important;
}

.tradition-in-motion .section--dark,
.tradition-in-motion .evergreen-moments,
.heritage-evergreen .evergreen-moments {
  background:
    radial-gradient(circle at 88% 18%, rgba(166, 25, 46, 0.2), transparent 34%),
    linear-gradient(132deg, #211718, #32191d 58%, #65131f) !important;
}

.heritage-about .pagehero,
.heritage-events .pagehero,
.heritage-weekly .pagehero,
.heritage-evergreen .pagehero,
.heritage-gallery .pagehero,
.heritage-join .pagehero,
.heritage-directory .pagehero,
.heritage-contact .pagehero {
  color: #fffaf0 !important;
  background:
    radial-gradient(circle at 88% 22%, rgba(241, 213, 138, 0.18), transparent 31%),
    linear-gradient(112deg, #211718 0%, #55131c 52%, #8d1727 100%) !important;
}

.heritage-about .pagehero h1,
.heritage-events .pagehero h1,
.heritage-weekly .pagehero h1,
.heritage-evergreen .pagehero h1,
.heritage-gallery .pagehero h1,
.heritage-join .pagehero h1,
.heritage-directory .pagehero h1,
.heritage-contact .pagehero h1,
.heritage-about .pagehero p,
.heritage-events .pagehero p,
.heritage-weekly .pagehero p,
.heritage-evergreen .pagehero p,
.heritage-gallery .pagehero p,
.heritage-join .pagehero p,
.heritage-directory .pagehero p,
.heritage-contact .pagehero p {
  color: #fffaf0 !important;
}

.heritage-about .pagehero .eyebrow,
.heritage-events .pagehero .eyebrow,
.heritage-weekly .pagehero .eyebrow,
.heritage-evergreen .pagehero .eyebrow,
.heritage-gallery .pagehero .eyebrow,
.heritage-join .pagehero .eyebrow,
.heritage-directory .pagehero .eyebrow,
.heritage-contact .pagehero .eyebrow {
  color: var(--tim-gold-soft) !important;
}

.heritage-evergreen main,
.heritage-evergreen .evergreen-hero-slider,
.heritage-evergreen .evergreen-hero-slider .photo-slider__slide,
.heritage-evergreen .evergreen-photo,
.heritage-evergreen .evergreen-photo img,
.heritage-evergreen .evergreen-decor-card:nth-child(n) {
  background-color: #f1e6d3 !important;
}

.heritage-evergreen .photo-slider__caption {
  background: rgba(41, 19, 20, 0.9) !important;
}

.heritage-evergreen .photo-slider__dot {
  background: rgba(123, 18, 32, 0.24) !important;
}

.heritage-evergreen .photo-slider__dot.is-active {
  background: var(--tim-gold) !important;
}

.tradition-in-motion .card,
.tradition-in-motion .person,
.tradition-in-motion .schedule-card,
.tradition-in-motion .directory article,
.tradition-in-motion .info-box,
.tradition-in-motion .evergreen-benefit {
  border-color: rgba(123, 18, 32, 0.14) !important;
  background: rgba(255, 254, 249, 0.94) !important;
}

.tradition-in-motion .card:hover,
.tradition-in-motion .person:hover,
.tradition-in-motion .directory article:hover {
  border-color: rgba(199, 154, 59, 0.55) !important;
  box-shadow: 0 20px 44px rgba(85, 27, 20, 0.12) !important;
}

body.tradition-in-motion .section.story-scroll {
  background:
    linear-gradient(100deg, rgba(28, 20, 19, 0.94) 0%, rgba(75, 24, 26, 0.84) 48%, rgba(116, 16, 28, 0.8) 100%),
    linear-gradient(180deg, rgba(30, 18, 17, 0.1), rgba(62, 13, 18, 0.42)),
    url("assets/cultural-red-plum-v1.webp") center / cover no-repeat !important;
}

body.tradition-in-motion .section.story-scroll::before {
  background:
    radial-gradient(circle at 18% 38%, rgba(24, 15, 14, 0.12), rgba(22, 13, 13, 0.56) 74%),
    linear-gradient(90deg, rgba(22, 14, 13, 0.5), transparent 52%, rgba(104, 15, 25, 0.22));
}

.story-timeline li {
  border-color: rgba(241, 213, 138, 0.28);
  background: linear-gradient(118deg, rgba(25, 16, 16, 0.76), rgba(82, 20, 27, 0.68));
}

.tradition-in-motion .market-banner,
.tradition-in-motion .contact-card,
.tradition-in-motion .info-box--accent {
  background:
    radial-gradient(circle at 90% 15%, rgba(241, 213, 138, 0.14), transparent 28%),
    linear-gradient(135deg, #721522, #39191c) !important;
}

.tradition-in-motion .pill,
.tradition-in-motion .quick__icon {
  color: var(--tim-red-deep) !important;
  background: #f7e8c6 !important;
}

/* Award-inspired interaction and editorial polish */
.heritage-about .pagehero {
  background:
    radial-gradient(circle at 82% 32%, rgba(241, 213, 138, 0.2), transparent 25%),
    linear-gradient(118deg, #1f1717 0 44%, #55131d 44% 72%, #8d1727 72%) !important;
}

.heritage-events .pagehero {
  background:
    linear-gradient(132deg, transparent 0 62%, rgba(241, 213, 138, 0.13) 62% 63%, transparent 63%),
    radial-gradient(circle at 12% 22%, rgba(241, 213, 138, 0.16), transparent 24%),
    linear-gradient(108deg, #9b182b, #55131d 60%, #211718) !important;
}

.heritage-weekly .pagehero {
  background:
    linear-gradient(90deg, transparent 0 52%, rgba(199, 154, 59, 0.13) 52% 52.4%, transparent 52.4%),
    radial-gradient(circle at 84% 24%, rgba(199, 154, 59, 0.22), transparent 28%),
    linear-gradient(125deg, #211718, #35191c 58%, #761522) !important;
}

.heritage-evergreen .pagehero {
  background:
    radial-gradient(circle at 86% 30%, rgba(255, 250, 240, 0.1), transparent 23%),
    linear-gradient(124deg, #2b1919, #5f1520 56%, #a6192e) !important;
}

.heritage-gallery .pagehero {
  background:
    radial-gradient(circle at 76% 46%, rgba(199, 154, 59, 0.16) 0 12%, transparent 12.3%),
    radial-gradient(circle at 76% 46%, transparent 0 18%, rgba(241, 213, 138, 0.1) 18.3% 18.8%, transparent 19%),
    linear-gradient(118deg, #1e1717 0 54%, #65131f 54% 78%, #9d192c 78%) !important;
}

.heritage-join .pagehero {
  background:
    radial-gradient(circle at 88% 24%, rgba(255, 250, 240, 0.15), transparent 26%),
    linear-gradient(112deg, #a6192e, #761522 64%, #28191a) !important;
}

.heritage-directory .pagehero {
  background:
    linear-gradient(138deg, transparent 0 68%, rgba(199, 154, 59, 0.2) 68% 69%, transparent 69%),
    radial-gradient(circle at 90% 18%, rgba(199, 154, 59, 0.16), transparent 26%),
    linear-gradient(118deg, #211718, #32191c 62%, #6f101b) !important;
}

.heritage-contact .pagehero {
  background:
    radial-gradient(circle at 18% 78%, rgba(241, 213, 138, 0.14), transparent 27%),
    linear-gradient(122deg, #6f101b, #9c1a2d 52%, #28191a) !important;
}

.hero-orbit {
  position: absolute;
  z-index: 0;
  right: clamp(22px, 5vw, 90px);
  top: 14%;
  width: clamp(130px, 17vw, 260px);
  aspect-ratio: 1;
  pointer-events: none;
  border: 1px solid rgba(241, 213, 138, 0.24);
  border-radius: 50%;
  opacity: 0.72;
  animation: heroOrbitFloat 12s ease-in-out infinite alternate;
}

.hero-orbit::before,
.hero-orbit::after,
.hero-orbit i,
.hero-orbit b {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hero-orbit::before {
  inset: 15%;
  border: 1px solid rgba(255, 250, 240, 0.18);
}

.hero-orbit::after {
  inset: 33%;
  background: rgba(199, 154, 59, 0.12);
  box-shadow: 0 0 0 18px rgba(166, 25, 46, 0.06);
}

.hero-orbit i {
  top: 12%;
  left: 7%;
  width: 12px;
  height: 12px;
  background: var(--tim-gold-soft);
  box-shadow: 0 0 22px rgba(241, 213, 138, 0.6);
}

.hero-orbit b {
  right: 4%;
  bottom: 20%;
  width: 8px;
  height: 8px;
  background: #fffaf0;
}

.hero .hero-orbit {
  top: 19%;
  right: 5%;
  opacity: 0.32;
}

@keyframes heroOrbitFloat {
  from {
    transform: translate3d(0, -5px, 0) rotate(-4deg);
  }
  to {
    transform: translate3d(-9px, 11px, 0) rotate(5deg);
  }
}

.premium-ready .hero__grid > div:first-child,
.premium-ready .pagehero__grid > div:first-child {
  animation: premiumHeroCopy 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.premium-ready .hero__visual,
.premium-ready .pagehero__grid > p {
  animation: premiumHeroVisual 850ms 90ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes premiumHeroCopy {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes premiumHeroVisual {
  from {
    opacity: 0;
    transform: translate3d(18px, 0, 0) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.premium-ready .premium-enter {
  opacity: 0;
  transition:
    opacity 620ms ease var(--enter-delay, 0ms),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1) var(--enter-delay, 0ms),
    box-shadow 240ms ease,
    border-color 240ms ease;
}

.premium-ready .premium-enter--0 {
  transform: translate3d(0, 28px, 0);
}

.premium-ready .premium-enter--1 {
  transform: translate3d(26px, 0, 0);
}

.premium-ready .premium-enter--2 {
  transform: translate3d(-26px, 0, 0);
}

.premium-ready .premium-enter.is-premium-visible {
  opacity: 1;
  transform: none;
}

.tradition-in-motion .card,
.tradition-in-motion .schedule-card,
.tradition-in-motion .person,
.tradition-in-motion .directory article,
.tradition-in-motion .evergreen-benefit,
.tradition-in-motion .info-box {
  position: relative;
  overflow: hidden;
}

.tradition-in-motion .card::after,
.tradition-in-motion .schedule-card::after,
.tradition-in-motion .person::after,
.tradition-in-motion .directory article::after,
.tradition-in-motion .evergreen-benefit::after,
.tradition-in-motion .info-box::after {
  content: "";
  position: absolute;
  inset: -45% auto -45% -55%;
  width: 32%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 247, 224, 0.56), transparent);
  transform: translate3d(-170%, 0, 0) rotate(12deg);
  transition: transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tradition-in-motion .card:hover::after,
.tradition-in-motion .schedule-card:hover::after,
.tradition-in-motion .person:hover::after,
.tradition-in-motion .directory article:hover::after,
.tradition-in-motion .evergreen-benefit:hover::after,
.tradition-in-motion .info-box:hover::after {
  transform: translate3d(620%, 0, 0) rotate(12deg);
}

.tradition-in-motion .btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.tradition-in-motion .btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(105deg, transparent 22%, rgba(255, 255, 255, 0.28) 48%, transparent 72%);
  transform: translate3d(-135%, 0, 0);
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tradition-in-motion .btn:hover::before,
.tradition-in-motion .btn:focus-visible::before {
  transform: translate3d(135%, 0, 0);
}

.tradition-in-motion .textlink {
  background-image: linear-gradient(90deg, var(--tim-gold), var(--tim-red));
  background-position: left calc(100% - 1px);
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition:
    color 220ms ease,
    background-size 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tradition-in-motion .textlink:hover,
.tradition-in-motion .textlink:focus-visible {
  background-size: 100% 2px;
}

.tradition-in-motion .navlinks a::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.42rem;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--tim-red), var(--tim-gold));
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tradition-in-motion .navlinks a:hover::before,
.tradition-in-motion .navlinks a:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left center;
}

.tradition-in-motion .heading h2 {
  position: relative;
  padding-left: clamp(16px, 2vw, 28px);
}

.tradition-in-motion .heading h2::before {
  content: "";
  position: absolute;
  top: 0.12em;
  bottom: 0.08em;
  left: 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--tim-red), var(--tim-gold));
}

.sponsor-viewport {
  position: relative;
}

.sponsor-viewport::before,
.sponsor-viewport::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  width: clamp(36px, 7vw, 110px);
  pointer-events: none;
}

.sponsor-viewport::before {
  left: 0;
  background: linear-gradient(90deg, var(--tim-paper), transparent);
}

.sponsor-viewport::after {
  right: 0;
  background: linear-gradient(-90deg, var(--tim-paper), transparent);
}

.lantern-top {
  position: fixed;
  z-index: 44;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(16px, 3vw, 34px);
  width: 58px;
  height: 76px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 24px, 0) scale(0.84);
  contain: layout paint style;
  isolation: isolate;
  backface-visibility: hidden;
  transition:
    opacity 240ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lantern-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.lantern-top__float {
  position: absolute;
  inset: 0;
  display: block;
  transform: translate3d(0, 0, 0);
  transform-origin: center center;
  backface-visibility: hidden;
  perspective: 800px;
}

.lantern-top__glow {
  position: absolute;
  inset: 8px 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 218, 117, 0.72), rgba(244, 73, 54, 0.2) 44%, transparent 72%);
  opacity: 0;
  transform: scale(0.55);
  pointer-events: none;
}

.lantern-top__cap {
  position: absolute;
  top: 3px;
  left: 19px;
  width: 20px;
  height: 7px;
  border-radius: 4px 4px 1px 1px;
  background: var(--tim-gold);
  box-shadow: 0 4px 0 #5f3516;
}

.lantern-top__body {
  position: absolute;
  top: 13px;
  left: 7px;
  width: 44px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 2px solid #f0c66f;
  border-radius: 46% 46% 42% 42% / 30% 30% 55% 55%;
  color: #fffaf0;
  background:
    linear-gradient(90deg, transparent 20%, rgba(255, 255, 255, 0.15) 21% 23%, transparent 24% 48%, rgba(255, 255, 255, 0.12) 49% 51%, transparent 52% 76%, rgba(255, 255, 255, 0.12) 77% 79%, transparent 80%),
    linear-gradient(145deg, #c6283b, #7b1220);
  box-shadow:
    0 9px 22px rgba(69, 18, 24, 0.28),
    inset 0 0 12px rgba(255, 190, 93, 0.28);
}

.lantern-top__body b {
  font-size: 1.15rem;
  line-height: 1;
}

.lantern-top__tassel {
  position: absolute;
  top: 56px;
  left: 27px;
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: var(--tim-gold);
  transform-origin: top center;
}

.lantern-top__tassel::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: -4px;
  width: 12px;
  height: 6px;
  border-radius: 50%;
  background: var(--tim-red);
}

.lantern-top:hover,
.lantern-top:focus-visible {
  transform: translate3d(0, -5px, 0) scale(1.05);
}

.lantern-top:hover .lantern-top__tassel,
.lantern-top:focus-visible .lantern-top__tassel {
  animation: lanternTassel 620ms ease-in-out infinite alternate;
}

.lantern-top:focus-visible {
  outline: 3px solid var(--tim-gold-soft);
  outline-offset: 4px;
  border-radius: 14px;
}

.lantern-top.is-launching {
  opacity: 1;
  pointer-events: none;
  animation:
    lanternLift 1.08s cubic-bezier(0.22, 0.58, 0.3, 1) both,
    lanternFade 1.08s linear both;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform-origin: center center;
}

.lantern-top.is-launching .lantern-top__float {
  transform: translate3d(0, 0, 0);
}

.lantern-top.is-launching .lantern-top__body {
  filter: none;
  box-shadow:
    0 7px 18px rgba(255, 115, 51, 0.28),
    0 0 14px rgba(255, 210, 92, 0.25),
    inset 0 0 12px rgba(255, 227, 151, 0.42);
  backface-visibility: hidden;
}

.lantern-top.is-launching .lantern-top__glow {
  animation: none;
  opacity: 0.82;
  transform: scale(1.35);
}

.lantern-top.is-launching .lantern-top__tassel {
  animation: lanternTasselFlight 420ms ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes lanternTassel {
  from {
    transform: rotate(-7deg);
  }
  to {
    transform: rotate(7deg);
  }
}

@keyframes lanternLift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(7px, -280px, 0) scale(0.92) rotate(0.65deg);
  }
}

@keyframes lanternFade {
  0%,
  82% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes lanternTasselFlight {
  from {
    transform: rotate(-5deg);
  }
  to {
    transform: rotate(5deg);
  }
}

@media (max-width: 760px) {
  .hero-orbit {
    width: 130px;
    opacity: 0.38;
  }

  .premium-ready .premium-enter--0,
  .premium-ready .premium-enter--1,
  .premium-ready .premium-enter--2 {
    transform: translate3d(0, 20px, 0);
  }

  .tradition-in-motion .heading h2 {
    padding-left: 16px;
  }

  .lantern-top {
    right: 10px;
    bottom: 12px;
    transform: translate3d(0, 20px, 0) scale(0.78);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orbit,
  .premium-ready .hero__grid > div:first-child,
  .premium-ready .pagehero__grid > div:first-child,
  .premium-ready .hero__visual,
  .premium-ready .pagehero__grid > p,
  .story-timeline li.is-fruit-changing .tanghulu-fruit {
    animation: none !important;
  }

  .lantern-top.is-launching,
  .lantern-top.is-launching .lantern-top__body,
  .lantern-top.is-launching .lantern-top__glow,
  .lantern-top.is-launching .lantern-top__tassel {
    animation: none !important;
  }

  .premium-ready .premium-enter,
  .premium-ready .premium-enter--0,
  .premium-ready .premium-enter--1,
  .premium-ready .premium-enter--2 {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

html.reduce-motion .hero-orbit,
html.reduce-motion .premium-ready .hero__grid > div:first-child,
html.reduce-motion .premium-ready .pagehero__grid > div:first-child,
html.reduce-motion .premium-ready .hero__visual,
html.reduce-motion .premium-ready .pagehero__grid > p {
  animation: none !important;
}

html.reduce-motion .premium-ready .premium-enter,
html.reduce-motion .premium-ready .premium-enter--0,
html.reduce-motion .premium-ready .premium-enter--1,
html.reduce-motion .premium-ready .premium-enter--2 {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Cultural art direction v3 — final cascade */
.header {
  border-bottom: 1px solid rgba(167, 112, 39, 0.24);
  background: rgba(255, 252, 246, 0.94);
  box-shadow: 0 12px 34px rgba(54, 33, 18, 0.07);
  backdrop-filter: blur(14px) saturate(1.08);
}

.navlinks a {
  border-radius: 999px;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.navlinks a:hover,
.navlinks a:focus-visible {
  background: rgba(151, 30, 43, 0.07);
  color: #941d2d;
  transform: translateY(-1px);
}

.navlinks a.active {
  color: #8f1d2b;
}

.navlinks a.active::after {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #971f30 0 58%, #c99b4d 58%);
}

.heading {
  position: relative;
}

.heading::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 0;
  width: 92px;
  height: 2px;
  background: linear-gradient(90deg, #981f30, #c99b4d 68%, transparent);
}

.heading .eyebrow,
.pagehero .eyebrow,
.story-intro .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.35rem 0.72rem;
  border: 1px solid rgba(166, 106, 34, 0.27);
  border-radius: 999px;
  background: rgba(255, 251, 243, 0.78);
  color: #8d1e2d;
  box-shadow: 0 5px 16px rgba(66, 39, 21, 0.05);
  backdrop-filter: blur(8px);
}

.heritage-card,
.card,
.schedule-card,
.directory article {
  border-color: rgba(180, 128, 53, 0.28);
  box-shadow: 0 16px 38px rgba(58, 35, 19, 0.08), inset 0 1px rgba(255, 255, 255, 0.78);
}

.heritage-card:hover,
.card:hover,
.schedule-card:hover,
.directory article:hover {
  border-color: rgba(161, 31, 46, 0.36);
  box-shadow: 0 24px 54px rgba(68, 37, 21, 0.13), inset 0 1px rgba(255, 255, 255, 0.9);
}

.heritage-home .story-scroll {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(251, 247, 238, 0.98) 0 43%, rgba(251, 247, 238, 0.86) 61%, rgba(251, 247, 238, 0.42)),
    var(--culture-ink-art) center bottom / cover no-repeat;
  color: #211f1b;
}

.heritage-home .story-scroll::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-top: 1px solid var(--culture-gold-line);
  border-bottom: 1px solid rgba(191, 139, 55, 0.32);
  pointer-events: none;
}

.heritage-home .story-intro h2,
.heritage-home .story-timeline h3 {
  color: #1c211f;
}

.heritage-home .story-intro > p:not(.eyebrow),
.heritage-home .story-timeline p {
  color: #554e45;
}

.heritage-home .section--dark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(68, 8, 18, 0.96), rgba(113, 15, 29, 0.88) 58%, rgba(71, 8, 17, 0.78)),
    var(--culture-red-art) center / cover no-repeat;
}

.heritage-home .section--dark::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 20px;
  border: 1px solid rgba(237, 194, 108, 0.28);
  border-radius: 30px;
  pointer-events: none;
}

.heritage-home .section--dark .feature-card {
  border: 1px solid rgba(246, 216, 157, 0.28);
  background: rgba(43, 8, 15, 0.55);
  box-shadow: 0 20px 44px rgba(28, 2, 7, 0.2);
  backdrop-filter: blur(10px);
}

.heritage-about .pagehero,
.heritage-contact .pagehero,
.heritage-weekly .pagehero,
.heritage-directory .pagehero {
  background:
    linear-gradient(90deg, rgba(252, 248, 239, 0.99) 0 48%, rgba(252, 248, 239, 0.84) 68%, rgba(252, 248, 239, 0.22)),
    var(--culture-ink-art) center / cover no-repeat;
}

.heritage-events .pagehero,
.heritage-gallery .pagehero,
.heritage-join .pagehero {
  background:
    linear-gradient(105deg, rgba(76, 7, 17, 0.95) 0 46%, rgba(119, 15, 31, 0.77) 74%, rgba(76, 7, 17, 0.52)),
    var(--culture-red-art) center / cover no-repeat;
  color: #fffaf0;
}

.heritage-events .pagehero h1,
.heritage-events .pagehero p,
.heritage-events .pagehero .eyebrow,
.heritage-gallery .pagehero h1,
.heritage-gallery .pagehero p,
.heritage-gallery .pagehero .eyebrow,
.heritage-join .pagehero h1,
.heritage-join .pagehero p,
.heritage-join .pagehero .eyebrow {
  color: #fffaf0;
}

.heritage-events .pagehero .eyebrow,
.heritage-gallery .pagehero .eyebrow,
.heritage-join .pagehero .eyebrow {
  border-color: rgba(247, 213, 143, 0.38);
  background: rgba(48, 3, 11, 0.42);
}

.heritage-join .pagehero .lucky-red-panda-scene,
.heritage-directory .pagehero .lucky-red-panda-scene {
  opacity: 0.12;
  mix-blend-mode: luminosity;
}

.heritage-evergreen .pagehero {
  background:
    linear-gradient(90deg, rgba(10, 49, 42, 0.96) 0 45%, rgba(15, 70, 59, 0.77) 68%, rgba(8, 42, 36, 0.5)),
    var(--culture-jade-art) center / cover no-repeat;
  border-bottom: 1px solid rgba(215, 176, 91, 0.54);
}

.heritage-evergreen .pagehero h1,
.heritage-evergreen .pagehero p,
.heritage-evergreen .pagehero .eyebrow {
  color: #fff9eb;
}

.heritage-evergreen .pagehero .eyebrow {
  border-color: rgba(224, 189, 109, 0.45);
  background: rgba(6, 42, 35, 0.54);
}

.heritage-evergreen .pagehero .panda-bamboo-scene {
  display: none;
}

.heritage-evergreen .evergreen-moments {
  position: relative;
  isolation: isolate;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  background:
    linear-gradient(rgba(9, 50, 42, 0.86), rgba(9, 50, 42, 0.9)),
    var(--culture-jade-art) center / cover no-repeat;
}

.heritage-evergreen .evergreen-moments::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 22px;
  border: 1px solid rgba(218, 181, 99, 0.26);
  border-radius: 30px;
}

.heritage-evergreen .evergreen-join .join-ribbon {
  background:
    linear-gradient(105deg, rgba(91, 8, 20, 0.96), rgba(145, 25, 40, 0.88)),
    var(--culture-red-art) center / cover no-repeat;
  border: 1px solid rgba(230, 189, 102, 0.4);
}

.pagehero__grid > div:first-child::after {
  content: "";
  display: block;
  width: 112px;
  height: 3px;
  margin-top: 1.45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #9a2031 0 58%, #d0a455 58%);
}

.heritage-events .pagehero__grid > div:first-child::after,
.heritage-gallery .pagehero__grid > div:first-child::after,
.heritage-join .pagehero__grid > div:first-child::after,
.heritage-evergreen .pagehero__grid > div:first-child::after {
  background: linear-gradient(90deg, #f2c96e 0 58%, rgba(242, 201, 110, 0.2) 58%);
}

@media (max-width: 760px) {
  .header {
    backdrop-filter: none;
  }

  .heading::before {
    top: -14px;
    width: 72px;
  }

  .heritage-home .story-scroll {
    background:
      linear-gradient(rgba(251, 247, 238, 0.91), rgba(251, 247, 238, 0.95)),
      var(--culture-ink-art) 68% bottom / auto 100% no-repeat;
  }

  .heritage-home .section--dark,
  .heritage-events .pagehero,
  .heritage-gallery .pagehero,
  .heritage-join .pagehero {
    background-position: 68% center;
  }

  .heritage-about .pagehero,
  .heritage-contact .pagehero,
  .heritage-weekly .pagehero,
  .heritage-directory .pagehero {
    background:
      linear-gradient(rgba(252, 248, 239, 0.9), rgba(252, 248, 239, 0.94)),
      var(--culture-ink-art) 70% center / auto 100% no-repeat;
  }

  .heritage-evergreen .pagehero {
    background-position: 50% center;
  }

  .heritage-home .section--dark::after,
  .heritage-evergreen .evergreen-moments::after {
    inset: 10px;
    border-radius: 20px;
  }
}
/* Featured event poster */
.event-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-bottom: clamp(48px, 7vw, 92px);
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(202, 155, 63, 0.52);
  border-radius: 30px;
  background: rgba(255, 249, 238, 0.9);
  box-shadow: 0 24px 70px rgba(71, 9, 15, 0.18);
}
.event-feature__poster { display:block; max-width:560px; margin-inline:auto; overflow:hidden; border-radius:20px; background:#fff; box-shadow:0 18px 44px rgba(58,17,14,.18); }
.event-feature__poster img { display:block; width:100%; height:auto; object-fit:contain; }
.event-feature__details h2 { margin:8px 0 16px; font-size:clamp(2.2rem,4.8vw,4.7rem); line-height:.98; color:#6f1018; }
.event-feature__date { margin-bottom:18px; color:#151311; font-size:clamp(1.15rem,2vw,1.45rem); font-weight:700; }
.event-feature__facts { display:grid; gap:10px; margin:0 0 22px; padding:0; list-style:none; color:#4f3d35; font-weight:600; }
.event-feature__facts li { position:relative; padding-left:24px; }
.event-feature__facts li::before { content:""; position:absolute; left:0; top:.58em; width:9px; height:9px; border-radius:50%; background:#c79a35; }
.event-feature__actions { display:flex; flex-wrap:wrap; gap:18px; align-items:center; margin-top:28px; }
.events-overview { margin-top:0; }
@media (max-width:860px) { .event-feature { grid-template-columns:1fr; padding:15px; border-radius:22px; } .event-feature__details { padding:8px 10px 18px; } }

/* Community directory */
.heritage-directory .pagehero {
  min-height: 480px;
  background:
    linear-gradient(90deg, rgba(28, 9, 10, .93) 0 46%, rgba(73, 10, 16, .62) 72%, rgba(73, 10, 16, .3)),
    radial-gradient(circle at 80% 20%, rgba(218, 169, 78, .26), transparent 32%),
    #24090c;
  color: #fffaf0;
}
.heritage-directory .pagehero::after {
  content: "錄";
  position: absolute;
  right: clamp(28px, 8vw, 150px);
  bottom: -42px;
  color: rgba(227, 181, 91, .14);
  font-family: "Noto Serif TC", serif;
  font-size: clamp(12rem, 28vw, 27rem);
  line-height: .8;
  pointer-events: none;
}
.heritage-directory .pagehero__grid { position: relative; z-index: 1; }
.heritage-directory .pagehero h1 { max-width: 820px; color: #fffaf0; }
.heritage-directory .pagehero p { max-width: 760px; color: rgba(255, 250, 240, .8); }
.heritage-directory .pagehero .eyebrow { color: #e7bc69; }
.directory-emergency { background: #f5ead4; border-block: 1px solid rgba(154, 32, 49, .18); }
.directory-emergency > .shell { display: grid; grid-template-columns: .85fr 1.35fr; gap: clamp(28px, 6vw, 88px); align-items: center; padding-block: clamp(38px, 5vw, 66px); }
.directory-emergency h2 { margin: .3rem 0 .75rem; font-size: clamp(2rem, 3.6vw, 3.6rem); color: #2a1715; }
.directory-emergency p { margin: 0; color: #67544c; }
.directory-emergency__numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.directory-emergency__numbers a { display: grid; min-height: 130px; place-items: center; padding: 18px; border: 1px solid rgba(138, 16, 19, .18); border-radius: 22px; background: rgba(255,255,255,.72); color: #5f1018; text-align: center; text-decoration: none; box-shadow: 0 14px 34px rgba(71, 23, 21, .08); transition: transform .22s ease, border-color .22s ease, background .22s ease; }
.directory-emergency__numbers a:hover, .directory-emergency__numbers a:focus-visible { transform: translateY(-3px); border-color: #9a2031; background: #fff; }
.directory-emergency__numbers strong { display: block; font-size: clamp(2.4rem, 4vw, 4.2rem); line-height: 1; }
.directory-emergency__numbers span { color: #4e3a34; font-weight: 700; }
.tradition-in-motion .directory-browser { padding-top: clamp(18px, 2vw, 30px); background: linear-gradient(180deg, rgba(255,252,246,.86), rgba(251,247,239,.96)), repeating-linear-gradient(135deg, rgba(151,31,45,.035) 0 22px, transparent 22px 44px); }
.directory-tools { position: sticky; top: 82px; z-index: 8; display: grid; grid-template-columns: minmax(250px, .72fr) minmax(560px, 1.28fr); gap: 14px; align-items: center; margin: 0 0 22px; padding: 12px 14px; border: 1px solid rgba(172, 124, 51, .28); border-radius: 18px; background: #fffaf2; box-shadow: 0 12px 30px rgba(54, 18, 17, .1); }
.directory-tools input { width: 100%; min-height: 46px; padding: 0 15px; border: 1px solid rgba(82, 44, 39, .2); border-radius: 12px; background: #fff; color: #211918; font: inherit; font-size: .92rem; font-weight: 600; }
.directory-tools input:focus { outline: 3px solid rgba(177, 35, 51, .2); border-color: #9a2031; }
.directory-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.directory-filters button { min-height: 38px; padding: 7px 11px; border: 1px solid rgba(121, 78, 50, .22); border-radius: 999px; background: #fffdf8; color: #452d29; font: inherit; font-size: .82rem; font-weight: 700; line-height: 1.1; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.directory-filters button:hover, .directory-filters button:focus-visible, .directory-filters button.is-active { border-color: #8a1013; background: #8a1013; color: #fff; }
.directory-count { position: relative; z-index: 1; margin: 0 0 14px; color: #705b52; font-size: .86rem; font-weight: 700; letter-spacing: .04em; }
.directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.directory-card { position: relative; display: flex; min-width: 0; min-height: 0; flex-direction: column; overflow: hidden; padding: 18px; border: 1px solid rgba(166, 116, 44, .22); border-radius: 18px; background: rgba(255,255,255,.9); box-shadow: 0 10px 28px rgba(58, 28, 24, .065); }
.directory-card::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg, #8f1721, #d1a34c); opacity: .75; }
.directory-card[hidden] { display: none; }
.directory-card__top { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.directory-card__mark { display: grid; width: 40px; aspect-ratio: 1; place-items: center; border-radius: 11px 3px 11px 3px; background: #8f1721; color: #f4d27b; font-family: "Noto Serif TC", serif; font-size: 1.05rem; }
.directory-card__category { margin: 0 0 4px; color: #9a2031; font-size: .64rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.tradition-in-motion .directory-card h2 { margin: 0; color: #201817; font-size: clamp(1.02rem, 1.28vw, 1.24rem); line-height: 1.2; letter-spacing: -.018em; }
.directory-card__note, .directory-card__address { margin: 11px 0 0; color: #66534c; font-size: .88rem; line-height: 1.45; }
.directory-card__note { font-weight: 700; }
.directory-card__actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 14px; }
.directory-card__actions a { padding: 7px 9px; border-radius: 8px; background: #f4ead8; color: #7d1420; font-size: .79rem; font-weight: 700; line-height: 1.2; text-decoration: none; }
.directory-card__actions a:hover, .directory-card__actions a:focus-visible { background: #8a1013; color: #fff; }
.directory-empty { padding: 48px; border: 1px dashed #b8905b; border-radius: 22px; text-align: center; }
.directory-notice { margin-top: 34px; padding: 22px 24px; border-left: 4px solid #c59a48; background: #efe2ca; color: #4d3b34; }
.directory-notice p { margin: 7px 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1180px) { .directory-tools { position: static; grid-template-columns: 1fr; } .directory-filters { justify-content: flex-start; } }
@media (max-width: 1050px) { .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .heritage-directory .pagehero { min-height: 390px; background: linear-gradient(rgba(33,8,10,.88),rgba(51,9,14,.86)),#24090c; }
  .directory-emergency > .shell { grid-template-columns: 1fr; }
  .directory-emergency__numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .directory-emergency__numbers a { min-height: 105px; padding: 12px 6px; border-radius: 16px; }
  .directory-emergency__numbers strong { font-size: 2.25rem; }
  .directory-emergency__numbers span { font-size: .78rem; }
  .directory-tools { position: static; padding: 11px; border-radius: 15px; }
  .directory-grid { grid-template-columns: 1fr; }
}
