/* Shaolin Dewu — visual system
   Forest ink · stone mist · temple cinnabar
   Avoid: purple gradients, cream+terracotta, broadsheet */

:root {
  --ink: #101612;
  --ink-soft: #1c2620;
  --forest: #24392f;
  --moss: #3d5c4a;
  --stone: #dfe4df;
  --mist: #f4f6f3;
  --paper: #fbfcfb;
  --cinnabar: #9c2f28;
  --cinnabar-deep: #7a221c;
  --gold-mute: #a68b4b;
  --text: #1a221d;
  --muted: #5a675f;
  --line: rgba(16, 22, 18, 0.12);
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(16, 22, 18, 0.18);
  --radius: 2px;
  --font-display: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  --font-cn: "Noto Serif SC", "Cormorant Garamond", serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.zh {
  font-feature-settings: "kern";
}

body.zh h1,
body.zh h2,
body.zh h3,
body.zh .brand-en,
body.zh .hero-brand,
body.zh .eyebrow,
body.zh .pillar-glyph,
body.zh .train-glyph {
  font-family: var(--font-cn);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--cinnabar);
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: rgba(251, 252, 251, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--mist);
  font-family: var(--font-cn);
  font-size: 1.15rem;
  font-weight: 600;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-en {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-zh {
  font-family: var(--font-cn);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--cinnabar);
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  background: var(--ink);
  color: var(--mist) !important;
}

.nav-cta:hover {
  background: var(--cinnabar-deep);
  color: var(--white) !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lang-toggle {
  border: 1px solid var(--line);
  background: transparent;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  border-color: var(--ink);
  outline: none;
}

.menu-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  display: grid;
  gap: 6px;
  place-content: center;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem 1.5rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 2rem) 1.25rem 3.5rem;
  color: var(--mist);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  animation: heroZoom 14s var(--ease) forwards;
  filter: saturate(0.85) brightness(0.72);
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 14, 12, 0.88) 0%, rgba(10, 14, 12, 0.62) 42%, rgba(10, 14, 12, 0.28) 68%, rgba(10, 14, 12, 0.45) 100%),
    linear-gradient(180deg, rgba(10, 14, 12, 0.25) 0%, transparent 40%, rgba(10, 14, 12, 0.55) 100%);
}

.hero-portrait {
  position: absolute;
  z-index: 1;
  margin: 0;
  right: 0;
  bottom: 0;
  width: min(48vw, 520px);
  height: min(88vh, 920px);
  pointer-events: none;
  animation: riseIn 1.1s var(--ease) 0.12s both;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: min(560px, 92vw);
  animation: riseIn 1s var(--ease) both;
}

.hero-kicker {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 246, 243, 0.78);
}

.hero h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.8rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 500;
  font-style: italic;
  opacity: 0.92;
}

.hero-lead {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  font-size: 1.05rem;
  color: rgba(244, 246, 243, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-side {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-40%);
  z-index: 2;
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  font-family: var(--font-cn);
  font-size: 1.35rem;
  letter-spacing: 0.3em;
  writing-mode: vertical-rl;
  opacity: 0.55;
}

@media (max-width: 899px) {
  .hero {
    align-items: end;
    padding-bottom: 2.5rem;
  }

  .hero-portrait {
    width: min(78vw, 360px);
    height: min(72vh, 640px);
    opacity: 0.72;
    right: -8%;
  }

  .hero-content {
    max-width: 100%;
    padding-right: 18vw;
  }

  .hero-veil {
    background:
      linear-gradient(115deg, rgba(10, 14, 12, 0.92) 0%, rgba(10, 14, 12, 0.72) 55%, rgba(10, 14, 12, 0.4) 100%),
      linear-gradient(180deg, rgba(10, 14, 12, 0.3) 0%, transparent 35%, rgba(10, 14, 12, 0.7) 100%);
  }
}

@media (min-width: 1100px) {
  .hero-portrait {
    width: min(44vw, 560px);
    height: min(92vh, 980px);
  }

  .hero-content {
    padding-bottom: 1rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--cinnabar);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--cinnabar-deep);
  color: var(--white);
}

.btn-ghost {
  border-color: rgba(244, 246, 243, 0.45);
  color: var(--mist);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--mist);
  color: var(--mist);
}

.btn-ghost-light {
  border-color: rgba(244, 246, 243, 0.35);
  color: var(--mist);
}

.btn-outline {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--mist);
}

/* Sections */
section {
  padding: 5.5rem 1.25rem;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head-light {
  color: var(--mist);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 500;
}

.section-head-light .eyebrow {
  color: var(--gold-mute);
}

.section-head h2,
.master-copy h2,
.life-copy h2,
.location-inner h2,
.join-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section-lead {
  margin: 1rem auto 0;
  color: var(--muted);
  max-width: 38rem;
}

.section-head-light .section-lead {
  color: rgba(244, 246, 243, 0.72);
}

/* Pillars */
.pillars {
  background: var(--mist);
}

.pillar-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.pillar {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--line);
}

.pillar-glyph {
  display: block;
  font-family: var(--font-cn);
  font-size: 2rem;
  color: var(--cinnabar);
  margin-bottom: 0.75rem;
}

.pillar h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
}

.pillar p {
  margin: 0;
  color: var(--muted);
}

/* Marquee */
.marquee {
  padding: 0;
  overflow: hidden;
  background: var(--ink);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 55s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee figure {
  margin: 0;
  position: relative;
  width: min(28vw, 280px);
  flex: 0 0 auto;
}

.marquee img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(0.92);
}

.marquee figcaption {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  color: var(--mist);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Master */
.master {
  background: var(--paper);
}

.master-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.master-meta {
  margin: 0.75rem 0 1.25rem;
  color: var(--cinnabar);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.master-copy p {
  color: var(--muted);
}

.master-copy p strong {
  color: var(--text);
  font-weight: 600;
}

.master-tags {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.master-tags li {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--forest);
}

.master-portrait {
  margin: 0 auto;
  position: relative;
  max-width: 420px;
}

.master-portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 560px;
  object-fit: cover;
  object-position: center 15%;
  box-shadow: var(--shadow);
}

.master-portrait figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  background: linear-gradient(transparent, rgba(10, 14, 12, 0.75));
  color: var(--mist);
  font-size: 0.9rem;
}

/* Training */
.training {
  background:
    linear-gradient(160deg, rgba(16, 22, 18, 0.92), rgba(36, 57, 47, 0.88)),
    url("../assets/images/scene-forest.jpg") center / cover;
  color: var(--mist);
}

.training-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1px;
  background: rgba(244, 246, 243, 0.12);
  border: 1px solid rgba(244, 246, 243, 0.12);
  grid-template-columns: 1fr;
}

.train-card {
  background: rgba(16, 22, 18, 0.55);
  padding: 1.75rem 1.5rem;
  backdrop-filter: blur(4px);
}

.train-glyph {
  font-family: var(--font-cn);
  font-size: 1.75rem;
  color: var(--gold-mute);
}

.train-card h3 {
  margin: 0.65rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.train-card p {
  margin: 0;
  color: rgba(244, 246, 243, 0.72);
  font-size: 0.98rem;
}

.training-cta {
  max-width: 1100px;
  margin: 2rem auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Life */
.life {
  padding: 0;
}

.life-grid {
  display: grid;
}

.life-visual {
  margin: 0;
  min-height: 420px;
  overflow: hidden;
}

.life-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center 18%;
}

.life-copy {
  padding: 4rem 1.5rem;
  background: var(--forest);
  color: var(--mist);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 900px) {
  .life-copy {
    padding: 3rem 2.5rem;
  }
}

.life-copy .eyebrow {
  color: var(--gold-mute);
}

.life-copy p:not(.eyebrow) {
  color: rgba(244, 246, 243, 0.8);
  max-width: 34rem;
}

/* Courses */
.courses {
  background: var(--mist);
}

.course-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.course-card {
  background: var(--paper);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.course-card.featured {
  border-color: var(--cinnabar);
  box-shadow: var(--shadow);
}

.course-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cinnabar);
  font-weight: 600;
}

.course-duration {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
}

.course-note {
  margin: 0 0 auto;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Location */
.location {
  padding: 0;
  display: grid;
  background: var(--ink);
  color: var(--mist);
}

.location-inner {
  padding: 4.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-inner .eyebrow {
  color: var(--gold-mute);
}

.location-inner p:not(.eyebrow) {
  color: rgba(244, 246, 243, 0.78);
  max-width: 34rem;
}

.location-visual {
  min-height: 260px;
  max-height: 480px;
  overflow: hidden;
}

.location-visual img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  max-height: 480px;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.9);
}

/* Gallery */
.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.gallery-item {
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ink);
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 320px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 0.7s var(--ease), opacity 0.4s;
  opacity: 0.95;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
  opacity: 1;
}

/* Videos */
.videos {
  background: var(--mist);
}

.video-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

.video-card {
  margin: 0;
  background: var(--ink);
  overflow: hidden;
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0a0e0c;
}

.video-card figcaption {
  padding: 0.75rem 1rem;
  color: rgba(244, 246, 243, 0.78);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}

/* Testimonials */
.story-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.story {
  margin: 0;
  padding: 2rem 1.5rem;
  border-left: 3px solid var(--cinnabar);
  background: var(--mist);
}

.story p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.45;
}

.story footer {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: normal;
  font-family: var(--font-body);
}

/* FAQ */
.faq {
  background: var(--mist);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0.25rem 0;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 2rem 1.15rem 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--cinnabar);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 40rem;
}

/* Join */
.join {
  background:
    linear-gradient(120deg, rgba(16, 22, 18, 0.94), rgba(28, 38, 32, 0.9)),
    url("../assets/images/scene-mist.jpg") center / cover;
  color: var(--mist);
}

.join-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}

.join-copy .eyebrow {
  color: var(--gold-mute);
}

.join-lead,
.contact-list {
  color: rgba(244, 246, 243, 0.8);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  display: grid;
  gap: 0.2rem;
}

.contact-list span:first-child {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-mute);
}

.contact-list a {
  color: var(--mist);
  text-decoration: none;
  font-size: 1.1rem;
}

.contact-list a:hover {
  color: #f0c9c6;
}

.contact-wechat .wechat-name {
  color: rgba(244, 246, 243, 0.88);
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.contact-wechat .wechat-qr {
  width: min(220px, 70%);
  height: auto;
  margin-top: 0.35rem;
  background: var(--white);
  padding: 0.5rem;
}

.contact-wechat .wechat-hint {
  font-size: 0.82rem !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  color: rgba(244, 246, 243, 0.65) !important;
}

.join-form {
  background: rgba(251, 252, 251, 0.96);
  color: var(--text);
  padding: 1.75rem 1.35rem;
  display: grid;
  gap: 1rem;
}

.join-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 500;
}

.join-form input,
.join-form select,
.join-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.75rem 0.85rem;
  color: var(--text);
}

.join-form input:focus,
.join-form select:focus,
.join-form textarea:focus {
  outline: 2px solid rgba(156, 47, 40, 0.35);
  border-color: var(--cinnabar);
}

.join-form .full {
  grid-column: 1 / -1;
}

.form-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(244, 246, 243, 0.78);
  padding: 3.5rem 1.25rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  display: grid;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.footer-brand strong {
  display: block;
  color: var(--mist);
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.footer-brand p {
  margin: 0;
  max-width: 28rem;
  font-size: 0.95rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-cols h3 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-mute);
  font-weight: 500;
}

.footer-cols a {
  display: block;
  text-decoration: none;
  margin-bottom: 0.45rem;
  color: rgba(244, 246, 243, 0.78);
}

.footer-cols a:hover {
  color: var(--white);
}

.copyright {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244, 246, 243, 0.12);
  font-size: 0.82rem;
  color: rgba(244, 246, 243, 0.5);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 12, 10, 0.92);
  display: grid;
  place-items: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-height: 90vh;
  max-width: min(920px, 100%);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--mist);
  font-size: 2rem;
  cursor: pointer;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg,
  .hero-portrait,
  .marquee-track,
  .reveal,
  .hero-content {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 640px) {
  .pillar-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pillar {
    border-top: 0;
    border-left: 1px solid var(--line);
    padding-left: 1.75rem;
  }

  .pillar:first-child {
    border-left: 0;
    padding-left: 0;
  }

  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .training-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .story-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .join-form {
    grid-template-columns: repeat(2, 1fr);
    padding: 2rem;
  }
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .hero-side {
    display: flex;
  }

  .master-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
  }

  .training-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .life-grid {
    grid-template-columns: 0.95fr 1.05fr;
    min-height: 720px;
  }

  .life-visual,
  .life-copy {
    min-height: 720px;
    height: auto;
    max-height: none;
    overflow: hidden;
  }

  .life-visual img {
    min-height: 720px;
    max-height: none;
    object-position: center 12%;
  }

  .location-visual {
    height: 100%;
    min-height: 420px;
    max-height: 460px;
  }

  .gallery-item {
    max-height: 260px;
  }

  .marquee img {
    height: 280px;
  }

  .location {
    grid-template-columns: 1fr 1fr;
  }

  .course-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .join-grid {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: start;
  }

  .footer-inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

@media (min-width: 1100px) {
  section {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .hero {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}
