:root {
  --ink: #251c1a;
  --ink-soft: #5f504b;
  --cream: #f6f0e5;
  --paper: #fffdf8;
  --sand: #e5d5bd;
  --maroon: #661f25;
  --maroon-dark: #451216;
  --maroon-bright: #8a2c31;
  --gold: #dcae52;
  --gold-soft: #f1d99c;
  --forest: #2e4a3d;
  --line: rgba(70, 42, 35, 0.16);
  --shadow: 0 24px 70px rgba(53, 27, 24, 0.12);
  --serif: Georgia, "Times New Roman", "Songti TC", "PMingLiU", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", sans-serif;
  --shell: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.23;
  background-image: radial-gradient(rgba(90, 39, 32, 0.18) 0.6px, transparent 0.6px);
  background-size: 8px 8px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.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;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  color: white;
  background: var(--maroon);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.notice-bar {
  color: #fff9ed;
  background: var(--maroon-dark);
  font-size: 0.8rem;
}

.notice-bar__inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.notice-bar p {
  margin: 0;
}

.notice-bar a {
  margin-left: auto;
  color: var(--gold-soft);
  font-weight: 700;
  text-underline-offset: 3px;
}

.notice-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(220, 174, 82, 0.16);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand-copy {
  display: grid;
  line-height: 1.18;
}

.brand-copy strong {
  color: var(--maroon);
  font-family: var(--serif);
  font-size: 1.22rem;
}

.brand-copy span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(13px, 1.5vw, 23px);
}

.primary-nav a {
  position: relative;
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

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

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
}

.language-switch button {
  min-width: 36px;
  padding: 5px 7px;
  border: 0;
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
}

.language-switch button[aria-pressed="true"] {
  color: white;
  background: var(--maroon);
}

.language-switch > span {
  width: 1px;
  height: 18px;
  background: var(--line);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.nav-toggle__lines,
.nav-toggle__lines::before,
.nav-toggle__lines::after {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: auto;
  background: var(--ink);
  transition: transform 180ms ease;
}

.nav-toggle__lines {
  position: relative;
}

.nav-toggle__lines::before,
.nav-toggle__lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__lines::before { top: -6px; }
.nav-toggle__lines::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__lines { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__lines::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__lines::after { top: 0; transform: rotate(-45deg); }

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 120px));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
  background: var(--maroon-dark);
}

.hero__image,
.hero__veil {
  position: absolute;
  inset: 0;
}

.hero__image {
  background-image: url("../images/home/hero-ceremony.jpg");
  background-position: center 48%;
  background-size: cover;
  transform: scale(1.015);
}

.hero__veil {
  background:
    linear-gradient(90deg, rgba(33, 9, 12, 0.93) 0%, rgba(54, 14, 17, 0.75) 42%, rgba(54, 14, 17, 0.12) 78%),
    linear-gradient(0deg, rgba(30, 7, 9, 0.66), transparent 48%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: clamp(80px, 12vw, 150px) clamp(76px, 9vw, 115px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--maroon);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 1px;
  margin: 0 10px 4px 0;
  background: currentColor;
}

.eyebrow--light {
  color: var(--gold-soft);
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7vw, 6.9rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

html[data-language="zh"] .hero h1,
html[data-language="zh"] h2 {
  letter-spacing: 0.01em;
  line-height: 1.22;
}

.hero__lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.7;
}

.hero__actions,
.monastery__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 21px;
  border: 1px solid transparent;
  color: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--gold {
  color: #32170f;
  background: var(--gold);
}

.button--gold:hover {
  background: #efc66d;
}

.button--ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.04);
}

.button--outline {
  color: var(--maroon);
  border-color: var(--maroon);
  background: transparent;
}

.button--outline:hover,
.button--maroon {
  color: white;
  background: var(--maroon);
}

.button--maroon:hover {
  background: var(--maroon-bright);
}

.hero__seal {
  position: absolute;
  right: clamp(24px, 5vw, 72px);
  bottom: clamp(24px, 4vw, 52px);
  z-index: 2;
  width: 96px;
  height: 96px;
  display: grid;
  place-content: center;
  border: 1px solid rgba(241, 217, 156, 0.7);
  border-radius: 50%;
  color: var(--gold-soft);
  text-align: center;
  transform: rotate(-8deg);
}

.hero__seal::before,
.hero__seal::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(241, 217, 156, 0.32);
  border-radius: 50%;
}

.hero__seal::after {
  inset: 16px;
  border-style: dotted;
}

.hero__seal span,
.hero__seal small {
  position: relative;
  z-index: 1;
  display: block;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero__seal small {
  font-size: 0.55rem;
}

.next-gathering {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.next-gathering__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  align-items: center;
  gap: clamp(30px, 6vw, 80px);
  padding-block: 34px;
}

.next-gathering .eyebrow {
  margin-bottom: 7px;
}

.next-gathering h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  font-weight: 500;
  line-height: 1.16;
}

.next-gathering p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--maroon);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  font-size: 1.15em;
  transition: transform 160ms ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.text-link--light {
  color: var(--gold-soft);
}

.section {
  padding-block: clamp(86px, 11vw, 145px);
}

.section-heading h2,
.lineage h2,
.visit h2,
.coming-soon h2,
.monastery h2 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.75rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}

.intro__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(44px, 8vw, 110px);
}

.intro__copy {
  padding-top: 43px;
}

.intro__copy > p {
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
}

.intro__facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 20px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro__facts div {
  min-height: 152px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px clamp(18px, 3vw, 40px);
}

.intro__facts div + div {
  border-left: 1px solid var(--line);
}

.intro__facts dt {
  color: var(--maroon);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.intro__facts dd {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.practices {
  background: var(--cream);
}

.section-heading--row {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: end;
  gap: clamp(40px, 8vw, 110px);
  margin-bottom: 54px;
}

.section-heading--row > p {
  margin: 0 0 5px;
  color: var(--ink-soft);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.practice-card {
  min-height: 385px;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.4vw, 44px);
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.64);
}

.practice-card--featured {
  color: white;
  border-color: var(--maroon);
  background: var(--maroon);
  box-shadow: var(--shadow);
}

.practice-card--calendar {
  background:
    linear-gradient(rgba(255, 253, 248, 0.86), rgba(255, 253, 248, 0.86)),
    repeating-linear-gradient(45deg, var(--gold-soft) 0 1px, transparent 1px 15px);
}

.practice-card__day {
  margin: 0 0 auto;
  color: var(--maroon);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.practice-card--featured .practice-card__day {
  color: var(--gold-soft);
}

.practice-card h3 {
  margin: 58px 0 15px;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  font-weight: 500;
  line-height: 1.12;
}

.practice-card > p:not(.practice-card__day) {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.91rem;
}

.practice-card--featured > p:not(.practice-card__day) {
  color: rgba(255, 255, 255, 0.76);
}

.practice-card__time {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--maroon);
}

.practice-card--featured .practice-card__time {
  color: var(--gold-soft);
}

.section-cta {
  margin-top: 38px;
}

.monastery {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 760px;
  background: var(--maroon-dark);
}

.monastery__image {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

.monastery__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(30, 8, 10, 0.67));
}

.monastery__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.monastery__image-label {
  position: absolute;
  right: 36px;
  bottom: 30px;
  left: 36px;
  z-index: 1;
  color: white;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.7vw, 2.6rem);
}

.monastery__content {
  align-self: center;
  max-width: 660px;
  padding: clamp(70px, 9vw, 130px) clamp(40px, 7vw, 110px);
  color: white;
}

.monastery h2 {
  font-size: clamp(2.7rem, 5vw, 5.2rem);
}

.monastery__content > p:not(.eyebrow) {
  max-width: 580px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.74);
}

.progress-list {
  display: grid;
  gap: 0;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.progress-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.progress-list li > span {
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.progress-list li div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.progress-list small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.progress-list .is-current small {
  color: var(--gold-soft);
}

.activities {
  background: var(--paper);
}

.section-heading--end {
  align-items: end;
}

.activity-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.925fr 0.925fr;
  gap: 20px;
}

.activity-card {
  border: 1px solid var(--line);
  background: white;
}

.activity-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand);
}

.activity-card--lead .activity-card__image {
  aspect-ratio: 5 / 4;
}

.activity-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.activity-card:hover .activity-card__image img {
  transform: scale(1.025);
}

.activity-card__body {
  padding: clamp(24px, 3vw, 34px);
}

.activity-card__meta {
  margin: 0 0 14px;
  color: var(--maroon);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.activity-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  font-weight: 500;
  line-height: 1.16;
}

.activity-card__summary {
  margin: 17px 0 22px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.lineage {
  padding-block: clamp(88px, 12vw, 160px);
  background: var(--cream);
}

.lineage__grid {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  align-items: center;
  gap: clamp(50px, 10vw, 150px);
}

.lineage__mark {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.lineage__mark::before,
.lineage__mark::after {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px solid var(--gold);
  border-radius: inherit;
  transform: rotate(12deg);
}

.lineage__mark::after {
  inset: 17%;
  border-style: dotted;
  transform: rotate(-10deg);
}

.lineage__mark img {
  position: relative;
  z-index: 1;
  width: 54%;
  mix-blend-mode: multiply;
}

.lineage blockquote {
  margin: 35px 0 30px;
  padding-left: 27px;
  border-left: 2px solid var(--gold);
}

.lineage blockquote p {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.48rem);
  font-style: italic;
}

.lineage cite {
  display: block;
  margin-top: 12px;
  color: var(--maroon);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visit {
  background: var(--paper);
}

.visit__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(46px, 10vw, 150px);
  align-items: start;
}

.visit__heading > p:not(.eyebrow) {
  max-width: 540px;
  margin: 26px 0 30px;
  color: var(--ink-soft);
}

.contact-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  border-top: 3px solid var(--maroon);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.contact-card > div {
  padding: 28px 32px;
  border-bottom: 1px solid var(--line);
}

.contact-card > div:nth-child(even) {
  border-left: 1px solid var(--line);
}

.contact-card__label {
  display: block;
  margin-bottom: 7px;
  color: var(--maroon);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-card address {
  font-style: normal;
}

.contact-card a {
  text-underline-offset: 4px;
}

.contact-card__links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.contact-card__links a {
  color: var(--maroon);
  font-size: 0.84rem;
  font-weight: 800;
}

.coming-soon {
  border-top: 1px solid var(--line);
  background: var(--cream);
}

.coming-soon__inner {
  position: relative;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 70px;
}

.coming-soon h2 {
  max-width: 800px;
}

.coming-soon__inner > span {
  position: absolute;
  right: 0;
  display: grid;
  place-items: center;
  width: 130px;
  height: 130px;
  padding: 20px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--maroon);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(8deg);
}

.site-footer {
  padding-block: 46px;
  color: rgba(255, 255, 255, 0.75);
  background: #2c1112;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr auto;
  align-items: center;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
}

.footer-brand div {
  display: grid;
}

.footer-brand strong {
  color: white;
  font-family: var(--serif);
  font-weight: 500;
}

.footer-brand span,
.footer-grid > p,
.footer-meta {
  font-size: 0.78rem;
}

.footer-grid > p {
  margin: 0;
}

.footer-meta {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.footer-meta a {
  color: var(--gold-soft);
  font-weight: 700;
}

@media (max-width: 1080px) {
  .brand-copy { display: none; }
  .header-inner { gap: 18px; }
  .primary-nav { gap: 14px; }
  .primary-nav a { font-size: 0.78rem; }
  .monastery { grid-template-columns: 1fr 1fr; }
  .monastery__content { padding-inline: 52px; }
}

@media (max-width: 860px) {
  :root { --shell: min(100% - 32px, 700px); }

  .notice-bar__inner {
    padding-block: 8px;
    align-items: flex-start;
  }

  .notice-bar a { display: none; }

  .header-inner { min-height: 74px; }
  .brand img { width: 48px; height: 48px; }
  .brand-copy { display: grid; }
  .nav-toggle { display: block; }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    margin: 0;
    padding: 18px max(20px, calc((100vw - 700px) / 2));
    border-top: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 20px 35px rgba(38, 18, 16, 0.11);
  }

  .primary-nav.is-open {
    display: grid;
  }

  .primary-nav a {
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
  }

  .primary-nav a::after { display: none; }

  .hero {
    min-height: 680px;
  }

  .hero__veil {
    background: linear-gradient(90deg, rgba(36, 8, 10, 0.92), rgba(50, 12, 15, 0.52)),
                linear-gradient(0deg, rgba(31, 8, 10, 0.65), transparent);
  }

  .hero__seal { display: none; }

  .next-gathering__grid,
  .intro__grid,
  .section-heading--row,
  .lineage__grid,
  .visit__grid {
    grid-template-columns: 1fr;
  }

  .next-gathering__grid { gap: 18px; }
  .intro__copy { padding-top: 0; }

  .practice-grid,
  .activity-grid {
    grid-template-columns: 1fr 1fr;
  }

  .practice-card:last-child,
  .activity-card--lead {
    grid-column: 1 / -1;
  }

  .activity-card--lead {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .activity-card--lead .activity-card__image {
    aspect-ratio: auto;
  }

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

  .monastery__image { min-height: 520px; }
  .monastery__content { max-width: none; padding-inline: max(30px, calc((100vw - 700px) / 2)); }

  .lineage__mark {
    width: min(340px, 78vw);
    margin-inline: auto;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > p { display: none; }
}

@media (max-width: 600px) {
  :root { --shell: calc(100vw - 28px); }

  html { scroll-padding-top: 78px; }
  .notice-bar { font-size: 0.72rem; }
  .notice-dot { margin-top: 6px; }
  .header-inner { gap: 10px; }
  .brand-copy strong { font-size: 1rem; }
  .brand-copy span { font-size: 0.59rem; }
  .language-switch { order: 2; }
  .nav-toggle { order: 3; width: 40px; height: 40px; }

  .hero { min-height: 640px; }
  .hero__image { background-position: 61% center; }
  .hero__content { padding-block: 86px 62px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  .hero__lead { font-size: 0.98rem; }
  .hero__actions { align-items: stretch; }
  .hero__actions .button { flex: 1 1 100%; }

  .section { padding-block: 78px; }

  .section-heading h2,
  .lineage h2,
  .visit h2,
  .coming-soon h2,
  .monastery h2 {
    font-size: clamp(2.35rem, 12vw, 3.55rem);
  }

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

  .intro__facts div {
    min-height: 118px;
  }

  .intro__facts div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .practice-grid,
  .activity-grid {
    grid-template-columns: 1fr;
  }

  .practice-card,
  .practice-card:last-child,
  .activity-card--lead {
    grid-column: auto;
  }

  .practice-card { min-height: 340px; }

  .activity-card--lead {
    display: block;
  }

  .activity-card--lead .activity-card__image {
    aspect-ratio: 4 / 3;
  }

  .monastery__image { min-height: 390px; }
  .monastery__content { padding: 76px 22px; }
  .progress-list li div { display: grid; gap: 2px; }

  .contact-card { grid-template-columns: 1fr; }
  .contact-card > div:nth-child(even) { border-left: 0; }
  .contact-card__links { grid-column: auto; }

  .coming-soon__inner {
    min-height: 350px;
    padding-right: 0;
    padding-bottom: 125px;
  }

  .coming-soon__inner > span {
    right: auto;
    bottom: 36px;
    width: 90px;
    height: 90px;
  }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-meta { justify-items: start; }
}

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

/* Inner pages and expanded content */
.inner-page {
  background: var(--paper);
}

.page-hero {
  position: relative;
  min-height: 510px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
  background-color: var(--maroon-dark);
  background-position: center;
  background-size: cover;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(37, 7, 10, 0.94) 0%, rgba(70, 15, 20, 0.76) 48%, rgba(50, 10, 13, 0.2) 100%), linear-gradient(0deg, rgba(26, 5, 7, 0.58), transparent 58%);
}

.page-hero--about { background-image: url("../images/home/hero-ceremony.jpg"); }
.page-hero--practice { background-image: url("../images/practices/event1.jpg"); }
.page-hero--archive { background-image: url("../images/activities/yearly/2025/2025wesak.jpg"); background-position: center 43%; }
.page-hero--monastery { background-image: url("../images/monastery/foundation-progress.webp"); }
.page-hero--contact { background-image: url("../images/home/hero-ceremony.jpg"); }

.page-hero__content {
  position: relative;
  z-index: 1;
  padding-block: 92px 78px;
}

.page-hero h1,
.detail-copy h1,
.coming-page h1 {
  max-width: 880px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.15rem, 7vw, 6.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

.page-hero__content > p:not(.eyebrow) {
  max-width: 680px;
  margin: 25px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.08rem;
}

.page-hero .button { margin-top: 30px; }

.schedule-notice,
.archive-controls-section {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.schedule-notice__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  padding-block: 27px;
}

.schedule-notice__inner strong { color: var(--maroon); }
.schedule-notice__inner p { margin: 0; color: var(--ink-soft); font-size: 0.88rem; }

.practices-page .section-heading { margin-bottom: 48px; }
.practice-grid--all .practice-card { min-height: 360px; }
.calendar-practices { background: var(--cream); }

.teacher-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 72px;
  background: var(--line);
  border: 1px solid var(--line);
}

.teacher-strip article {
  min-width: 0;
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 18px;
  padding: 16px;
  background: var(--paper);
}

.teacher-strip img {
  width: 90px;
  height: 105px;
  object-fit: cover;
}

.teacher-strip span,
.teacher-profile__role {
  color: var(--maroon);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.teacher-strip h3 {
  margin: 5px 0 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.15;
}

.visit__more { margin: 18px 0 0 18px; }

.story-grid,
.monastery-story__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(50px, 10vw, 150px);
}

.story-grid h2,
.monastery-story h2,
.groundbreaking-section h2,
.teachers-section h2,
.progress-section h2,
.monastery-gallery-section h2,
.support-section h2,
.contact-page h2,
.lineage-article h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.45rem, 5vw, 4.7rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.prose-lead p {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.opening-gallery {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  margin-top: 70px;
}

.opening-gallery figure { margin: 0; }
.opening-gallery img { width: 100%; height: 430px; object-fit: cover; }
.opening-gallery figure:nth-child(2) img { height: 330px; margin-top: 100px; }
.opening-gallery figcaption,
.lineage-figure figcaption {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.teachers-section {
  padding-block: clamp(86px, 11vw, 145px);
  color: white;
  background: var(--maroon-dark);
}

.teachers-section .section-heading > p { color: rgba(255, 255, 255, 0.66); }
.teacher-profiles { display: grid; gap: 1px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.16); }
.teacher-profile { display: grid; grid-template-columns: 0.7fr 1.3fr; min-height: 440px; background: #371315; }
.teacher-profile--reverse { grid-template-columns: 1.3fr 0.7fr; }
.teacher-profile--reverse img { order: 2; }
.teacher-profile img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; object-position: center top; }
.teacher-profile > div { align-self: center; padding: clamp(34px, 6vw, 85px); }
.teacher-profile h3 { margin: 8px 0 24px; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 500; line-height: 1.04; }
.teacher-profile > div > p:last-child { margin: 0; color: rgba(255, 255, 255, 0.7); }
.teacher-profile__role { color: var(--gold-soft); }

.prose-shell { max-width: 900px; }
.lineage-article h2 { max-width: 820px; margin-bottom: 45px; }
.lineage-article .prose-shell > p { margin: 0 0 28px; color: var(--ink-soft); font-family: var(--serif); font-size: 1.16rem; line-height: 1.9; }
.lineage-figure { width: min(370px, 100%); margin: 58px auto; }
.lineage-figure img { width: 100%; max-height: 440px; object-fit: cover; }
.lineage-figure--wide { width: min(560px, 100%); }
.lineage-figure--right { margin-inline: auto; }
.turnings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 42px 0 64px; background: var(--line); border: 1px solid var(--line); }
.turnings-grid article { padding: 28px; background: var(--cream); }
.turnings-grid span { color: var(--maroon); font-family: var(--serif); font-size: 1.55rem; }
.turnings-grid h3 { margin: 28px 0 13px; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.turnings-grid p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.lineage-article .karma-note { padding: 26px 30px; border-left: 3px solid var(--gold); color: var(--maroon) !important; background: var(--cream); font-family: var(--sans) !important; font-weight: 700; }

.monastery-elevation { display: grid; place-items: center; padding: 45px; background: var(--cream); border: 1px solid var(--line); }
.monastery-elevation img { mix-blend-mode: multiply; }
.monastery-story__grid > div:last-child > p:not(.eyebrow) { color: var(--ink-soft); }
.groundbreaking-section { padding-block: clamp(70px, 9vw, 120px); color: white; background: var(--maroon-dark); }
.groundbreaking-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: clamp(45px, 8vw, 110px); }
.groundbreaking-grid img { width: 100%; min-height: 430px; object-fit: cover; }
.groundbreaking-grid p:not(.eyebrow) { color: rgba(255, 255, 255, 0.7); }
.progress-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.progress-cards article { border: 1px solid var(--line); background: var(--cream); }
.progress-cards article.is-current { border-top: 4px solid var(--gold); }
.progress-cards img { width: 100%; height: 340px; object-fit: cover; }
.progress-cards article > div { padding: 30px; }
.progress-cards span { color: var(--maroon); font-size: 0.7rem; font-weight: 850; letter-spacing: 0.11em; text-transform: uppercase; }
.progress-cards h3 { margin: 7px 0 15px; font-family: var(--serif); font-size: 2rem; font-weight: 500; }
.progress-cards p { margin: 0; color: var(--ink-soft); }
.monastery-gallery-section { padding-block: clamp(86px, 11vw, 140px); color: white; background: #271416; }
.monastery-gallery-section .section-heading > p { color: rgba(255, 255, 255, 0.65); }
.monastery-gallery { display: grid; grid-template-columns: 1.25fr 0.75fr 0.75fr; grid-template-rows: 280px 280px; gap: 12px; }
.monastery-gallery button { padding: 0; overflow: hidden; border: 0; background: #111; cursor: zoom-in; }
.monastery-gallery button:first-child { grid-row: 1 / 3; }
.monastery-gallery button:last-child { grid-column: 2 / 4; }
.monastery-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.monastery-gallery button:hover img { transform: scale(1.025); }
.support-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(48px, 9vw, 120px); align-items: start; }
.support-copy > p:not(.eyebrow) { max-width: 650px; color: var(--ink-soft); }
.support-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fraud-note { margin-top: 38px; padding: 22px 24px; border-left: 3px solid var(--gold); background: var(--cream); }
.fraud-note strong { color: var(--maroon); }
.fraud-note p { margin: 6px 0 0; color: var(--ink-soft); font-size: 0.86rem; }
.bank-card { display: grid; gap: 0; padding: 30px; color: white; background: var(--maroon-dark); box-shadow: var(--shadow); }
.bank-card img { width: 190px; aspect-ratio: 1; margin: 0 auto 26px; object-fit: cover; background: white; }
.bank-card > div { display: grid; gap: 3px; padding: 17px 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.bank-card span { color: var(--gold-soft); font-size: 0.69rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.bank-card p { color: rgba(255, 255, 255, 0.66); font-size: 0.83rem; }
.bank-card a { color: var(--gold-soft); font-weight: 750; text-underline-offset: 4px; }
.lightbox { width: min(1000px, calc(100vw - 32px)); max-height: 92vh; padding: 0; border: 0; background: #12090a; box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5); }
.lightbox::backdrop { background: rgba(15, 6, 7, 0.88); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox p { margin: 0; padding: 14px 20px; color: white; }
.lightbox__close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 50%; color: white; background: rgba(0, 0, 0, 0.72); cursor: pointer; font-size: 1.6rem; }

.archive-controls { display: grid; gap: 15px; padding-block: 24px; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-group > span { min-width: 78px; color: var(--ink-soft); font-size: 0.72rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.filter-group button { padding: 7px 13px; border: 1px solid var(--line); color: var(--ink-soft); background: var(--paper); cursor: pointer; font-size: 0.78rem; font-weight: 700; }
.filter-group button[aria-pressed="true"] { border-color: var(--maroon); color: white; background: var(--maroon); }
.archive { padding-block: clamp(70px, 10vw, 130px); }
.archive-year + .archive-year { margin-top: 100px; }
.archive-year__heading { display: flex; align-items: end; gap: 24px; margin-bottom: 35px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.archive-year__heading h2 { margin: 0; color: var(--maroon); font-family: var(--serif); font-size: clamp(3.7rem, 7vw, 6.5rem); font-weight: 500; line-height: 0.8; }
.archive-year__heading p { margin: 0; color: var(--ink-soft); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.archive-card { border: 1px solid var(--line); background: white; }
.archive-card__image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); }
.archive-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.archive-card:hover .archive-card__image img { transform: scale(1.025); }
.archive-card__body { padding: 24px; }
.archive-card h3 { margin: 0; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; line-height: 1.16; }
.archive-card h3 a { text-decoration: none; }
.archive-card__body > p:not(.activity-card__meta) { color: var(--ink-soft); font-size: 0.88rem; }
.archive-empty { min-height: 260px; display: grid; place-items: center; color: var(--ink-soft); background: var(--cream); }

.detail-page { min-height: 70vh; padding-block: clamp(70px, 10vw, 130px); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(42px, 8vw, 110px); align-items: start; }
.detail-image { padding: 16px; background: var(--cream); }
.detail-image img { width: 100%; max-height: 760px; object-fit: contain; }
.detail-copy { padding-top: 30px; }
.detail-copy h1 { font-size: clamp(2.8rem, 6vw, 5.6rem); }
.detail-summary { margin: 30px 0 0; color: var(--ink-soft); font-size: 1.08rem; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 36px; }
.detail-empty { padding-block: 100px; text-align: center; }
.detail-empty h1 { margin-bottom: 30px; font-family: var(--serif); font-size: 3rem; }

.contact-page__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(50px, 9vw, 120px); }
.contact-list { display: grid; gap: 0; margin-top: 38px; border-top: 1px solid var(--line); }
.contact-list > div { display: grid; gap: 4px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--maroon); font-size: 0.7rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-list address { font-style: normal; }
.contact-list a + a { margin-left: 16px; }
.map-frame { min-width: 0; }
.map-frame iframe { width: 100%; height: 520px; border: 0; background: var(--cream); }
.map-frame .text-link { margin-top: 18px; }

.coming-page { width: var(--shell); min-height: calc(100vh - 200px); margin-inline: auto; display: grid; grid-template-columns: 0.7fr 1.3fr; align-items: center; gap: clamp(55px, 10vw, 150px); padding-block: 80px; }
.coming-page__mark { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--cream); }
.coming-page__mark img { width: 55%; mix-blend-mode: multiply; }
.coming-page h1 { color: var(--ink); font-size: clamp(3rem, 6vw, 5.6rem); }
.coming-page > div:last-child > p:not(.eyebrow) { max-width: 620px; margin: 26px 0 30px; color: var(--ink-soft); }

@media (max-width: 900px) {
  .schedule-notice__inner { grid-template-columns: 1fr auto; }
  .schedule-notice__inner p { grid-column: 1 / -1; grid-row: 2; }
  .teacher-strip { grid-template-columns: 1fr; }
  .story-grid,
  .monastery-story__grid,
  .groundbreaking-grid,
  .support-grid,
  .detail-layout,
  .contact-page__grid,
  .coming-page { grid-template-columns: 1fr; }
  .teacher-profile,
  .teacher-profile--reverse { grid-template-columns: 0.8fr 1.2fr; }
  .teacher-profile--reverse img { order: 0; }
  .turnings-grid,
  .archive-grid { grid-template-columns: 1fr 1fr; }
  .monastery-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, 300px); }
  .monastery-gallery button:first-child { grid-row: auto; }
  .monastery-gallery button:last-child { grid-column: auto; }
  .coming-page__mark { width: min(350px, 75vw); margin-inline: auto; }
}

@media (max-width: 600px) {
  .page-hero { min-height: 500px; }
  .page-hero__content { padding-block: 76px 60px; }
  .page-hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .schedule-notice__inner { grid-template-columns: 1fr; }
  .schedule-notice__inner p { grid-column: auto; grid-row: auto; }
  .teacher-strip article { grid-template-columns: 74px 1fr; }
  .teacher-strip img { width: 74px; height: 88px; }
  .opening-gallery { grid-template-columns: 1fr; }
  .opening-gallery img,
  .opening-gallery figure:nth-child(2) img { height: 310px; margin-top: 0; }
  .teacher-profile,
  .teacher-profile--reverse { grid-template-columns: 1fr; }
  .teacher-profile img { height: 390px; }
  .turnings-grid,
  .progress-cards,
  .archive-grid { grid-template-columns: 1fr; }
  .groundbreaking-grid img { min-height: 300px; }
  .progress-cards img { height: 250px; }
  .monastery-gallery { grid-template-columns: 1fr; grid-template-rows: repeat(4, 270px); }
  .filter-group > span { flex: 1 0 100%; }
  .archive-year__heading { align-items: start; flex-direction: column; gap: 12px; }
  .detail-copy { padding-top: 0; }
  .map-frame iframe { height: 390px; }
}
