@font-face {
  font-family: 'Shaolin Display';
  src: url('assets/display-bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Shaolin Sans';
  src: url('assets/body-regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Shaolin Sans';
  src: url('assets/body-bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --background: #f6f3e9;
  --surface: #eeeadf;
  --foreground: #193c2f;
  --muted: #526659;
  --gold: #916c27;
  --gold-ink: #805d22;
  --maroon: #851c22;
  --maroon-dark: #661419;
  --jade: #24563f;
  --on-jade: #f6f3e9;
  --light-gold: #dfbd78;
  --line: #193c2f29;
  --whatsapp-color: #25d366;
  --display: 'Shaolin Display', 'Cinzel', 'Arial Narrow', Impact, sans-serif;
  --body: 'Shaolin Sans', system-ui, -apple-system, Arial, sans-serif;
  --gutter: clamp(24px, 5.4vw, 88px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}
body.intro-playing, body.menu-open { overflow: hidden; }

button, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button, a, summary { touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; }

button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
}
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--background); }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  padding: 10px 20px;
  background: var(--foreground);
  color: var(--background);
  z-index: 150;
}
.skip-link:focus { transform: translateY(0); }

.section-shell {
  padding: 110px var(--gutter);
  max-width: 1680px;
  margin: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 700;
  line-height: 1.5;
}
.small-line { width: 28px; height: 1px; background: var(--gold); }
.section-number {
  color: var(--gold-ink);
  font-weight: 400;
  letter-spacing: 0.04em;
  padding-right: 14px;
  border-right: 1px solid var(--line);
}
.gold-text { color: var(--gold); }
.maroon-text {
  color: var(--maroon);
  font-weight: 700;
  display: inline-block;
  text-shadow: 0 1px 2px rgba(133, 28, 34, 0.15);
}
.outline-text {
  -webkit-text-stroke: 1px var(--foreground);
  color: transparent;
}

/* Buttons & SVGs */
.svg-icon { width: 18px; height: 18px; fill: currentColor; display: inline-block; flex-shrink: 0; }
.svg-icon-white { width: 20px; height: 20px; fill: #ffffff; display: inline-block; flex-shrink: 0; }
.svg-icon-mini { width: 15px; height: 15px; fill: currentColor; display: inline-block; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  min-height: 58px;
  line-height: 1.3;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.25s, transform 0.25s, color 0.25s;
}
.button-primary { background: var(--jade); color: var(--on-jade); }
.button-primary:hover { background: #193c2f; transform: translateY(-3px); }
.button-outline {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--foreground);
}
.button-outline:hover {
  border-color: var(--gold);
  color: var(--gold-ink);
  transform: translateY(-2px);
}
.button-whatsapp {
  background: #1e7e4e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.button-whatsapp:hover {
  background: #16633d;
  transform: translateY(-2px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  line-height: 1.4;
  padding: 12px 0;
  border-bottom: 1px solid #8d9d8b;
  transition: color 0.25s, border-color 0.25s;
}
.text-link:hover { color: var(--gold-ink); border-color: var(--gold-ink); }
.text-link:hover span { transform: translate(3px, -3px); }

/* Header */
.site-header {
  height: 104px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 20;
  max-width: 1680px;
  margin: auto;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand img { width: 54px; height: 54px; object-fit: contain; object-position: center; border-radius: 50%; background: #fff; padding: 3px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--display); font-size: 20px; line-height: 1.1; letter-spacing: 0.02em; }
.brand-sub { font-family: var(--body); font-size: 11px; letter-spacing: 0.12em; color: var(--muted); margin-top: 3px; }
.desktop-nav { display: flex; align-items: center; gap: 28px; }
.desktop-nav a { font-size: 14px; color: var(--foreground); position: relative; }
.desktop-nav a:after {
  content: ''; position: absolute; bottom: -8px; left: 0; width: 0; height: 1px; background: var(--gold); transition: width 0.25s;
}
.desktop-nav a:hover:after { width: 100%; }

.header-right { display: flex; align-items: center; gap: 16px; }
.whatsapp-btn-compact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #25d36688;
  background: #25d36615;
  color: #125e30;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
  transition: all 0.2s;
}
.whatsapp-btn-compact:hover {
  background: #25d36630;
  border-color: #25d366;
}
.header-cta {
  display: flex; gap: 12px; align-items: center; border: 1px solid #916c2780; font-size: 14px; padding: 10px 18px;
}
.header-cta:hover { border-color: var(--gold-ink); color: var(--gold-ink); }

.menu-toggle {
  display: none; background: none; border: 0; width: 46px; height: 46px; padding: 10px;
}
.menu-toggle span { display: block; width: 25px; height: 1px; background: var(--foreground); margin: 7px 0; transition: transform 0.25s; }
.mobile-nav {
  position: absolute; left: 0; top: 100%; width: 100%; padding: 30px var(--gutter); background: var(--background);
  border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; font-size: 19px;
}
.mobile-whatsapp {
  color: #1b6d39 !important; font-weight: 700; font-size: 16px; border-top: 1px solid var(--line); padding-top: 16px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(35px, 5vw, 80px);
  position: relative;
  padding: 68px var(--gutter) 106px;
  max-width: 1680px;
  margin: auto;
  min-height: 730px;
}
.hero-copy { padding-top: 16px; position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(80px, 9.5vw, 150px);
  line-height: 0.94;
  letter-spacing: -0.012em;
  margin: 30px 0;
}
.hero h1 > span { display: block; }
.hero-description { font-size: clamp(17px, 1.45vw, 20px); color: var(--muted); line-height: 1.6; max-width: 580px; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.hero-footnote {
  display: flex; gap: 16px; align-items: flex-start; margin-top: 40px; font-size: 13px; color: var(--muted); line-height: 1.6;
}
.hero-footnote p { margin-bottom: 4px; }
.hero-footnote strong { color: var(--foreground); }
.vertical-line { height: 42px; width: 1px; background: var(--gold); flex-shrink: 0; }

.hero-visual { position: relative; min-width: 0; margin-right: 28px; align-self: stretch; min-height: 600px; }
.hero-image-wrap {
  position: absolute; inset: 0; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}
.hero-image {
  width: 100%; height: 100%; object-fit: cover; object-position: center 47%;
  filter: saturate(0.85) contrast(1.03);
}
.hero-photo-shade {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11, 35, 23, 0.25) 0%, transparent 35%), linear-gradient(90deg, #193c2f0a, transparent);
}
.image-corner { position: absolute; width: 52px; height: 52px; z-index: 3; pointer-events: none; }
.corner-one { top: -10px; left: -10px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.corner-two { bottom: -10px; right: -10px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.hero-side-label { position: absolute; right: -36px; top: 0; writing-mode: vertical-rl; font-size: 12px; letter-spacing: 0.25em; color: var(--muted); }

.scroll-cue {
  position: absolute; bottom: 32px; left: var(--gutter); display: flex; align-items: center; gap: 16px; font-size: 12px; letter-spacing: 0.17em; color: var(--muted);
}
.scroll-line { height: 24px; width: 1px; background: var(--muted); position: relative; }
.scroll-line:after {
  position: absolute; content: ''; width: 5px; height: 5px; border-bottom: 1px solid var(--muted); border-right: 1px solid var(--muted); bottom: 0; left: -2px; transform: rotate(45deg);
}

/* Values Strip */
.values-strip {
  padding: 26px var(--gutter); background: var(--foreground); color: var(--background); display: flex; justify-content: space-between; align-items: center; gap: 24px; overflow: hidden;
}
.values-strip > span { font-family: var(--display); font-size: 28px; line-height: 1; letter-spacing: 0.055em; white-space: nowrap; }
.values-strip i { color: var(--light-gold); font-style: normal; font-size: 22px; }

/* Lineage & Masters */
.lineage-masters { border-top: 1px solid var(--line); }
.parent-org-badge {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px 22px;
  border-left: 3px solid var(--gold);
  max-width: 440px;
}
.badge-title { font-size: 11px; letter-spacing: 0.14em; color: var(--gold-ink); display: block; margin-bottom: 4px; font-weight: 700; }
.parent-org-badge strong { font-size: 17px; display: block; color: var(--foreground); }
.parent-org-badge p { font-size: 13px; color: var(--muted); margin-top: 4px; }

.masters-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 40px;
}
.master-card {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 38px 34px;
  position: relative;
  box-shadow: 0 4px 18px #193c2f0a;
}
.master-card.parent-master { border-top: 4px solid var(--maroon); }
.master-card.local-master { border-top: 4px solid var(--gold); }
.master-photo-wrap {
  position: relative;
  height: 380px;
  overflow: hidden;
  margin: -38px -34px 28px -34px;
  background: #0f221a;
}
.master-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(0.92);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.master-card:hover .master-photo {
  transform: scale(1.03);
}
.master-photo-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(20, 35, 28, 0.75) 100%);
  pointer-events: none;
}
.master-photo-badge {
  position: absolute;
  bottom: 16px;
  left: 20px;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #ffffff;
  background: rgba(14, 30, 23, 0.85);
  backdrop-filter: blur(4px);
  padding: 6px 14px;
  border-left: 2px solid var(--gold);
}
.master-role-tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--muted);
  display: inline-block;
  margin-bottom: 8px;
}
.master-card h3 { font-size: 36px; line-height: 1.1; margin-bottom: 6px; }
.master-subheading { font-size: 14px; color: var(--gold-ink); margin-bottom: 20px; font-weight: 700; }
.master-card-body p { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.master-highlights { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.master-highlights span {
  font-size: 12px; background: var(--surface); border: 1px solid #d4d0c3; padding: 4px 10px; color: var(--foreground);
}
.shifu-social-callout {
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; font-size: 13px;
}
.social-chip {
  display: inline-flex; align-items: center; gap: 6px; background: #fff0f2; border: 1px solid #ffd0d6; color: #a31d36; padding: 5px 12px; font-weight: 700; font-size: 13px;
}

.nainital-spotlight {
  margin-top: 44px;
  background: #181b19;
  color: #ffffff;
  padding: 36px;
  border: 1px solid #373e38;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.nainital-image-wrap {
  position: relative;
  width: 320px;
  min-width: 260px;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #373e38;
}
.nainital-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.5s ease;
}
.nainital-spotlight:hover .nainital-image {
  transform: scale(1.04);
}
.nainital-tag-overlay {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(10, 20, 15, 0.85);
  color: var(--light-gold);
  font-size: 10px;
  letter-spacing: 0.15em;
  font-weight: 700;
  padding: 4px 8px;
  backdrop-filter: blur(4px);
  border-left: 2px solid var(--gold);
}
.nainital-content {
  flex: 1;
}
.spotlight-tag { font-size: 11px; letter-spacing: 0.15em; color: var(--light-gold); font-weight: 700; }
.nainital-spotlight h3 { font-size: 32px; margin: 8px 0 10px; color: #ffffff; }
.nainital-spotlight p { font-size: 15px; color: #d0d6cd; max-width: 820px; line-height: 1.65; }
.nainital-cta .button-outline { border-color: #637064; color: #ffffff; }
.nainital-cta .button-outline:hover { border-color: var(--light-gold); color: var(--light-gold); }

/* 1. Prevent text from breaking onto multiple lines */
.desktop-nav a {
  white-space: nowrap;
}

.whatsapp-btn-compact {
  white-space: nowrap;
  flex-shrink: 0;
}

.header-cta {
  white-space: nowrap;
  flex-shrink: 0;
}

/* 2. Optimize header spacing so all items fit comfortably on laptop screens */
.site-header {
  gap: clamp(12px, 2vw, 24px);
}

.desktop-nav {
  gap: clamp(14px, 1.8vw, 24px);
}

.header-right {
  gap: 12px;
  flex-shrink: 0;
}

/* Training Section */
.training { border-top: 1px solid var(--line); }
.section-heading {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 44px;
}
.section-heading h2 { font-size: clamp(48px, 5.3vw, 82px); line-height: 1.02; letter-spacing: -0.01em; margin: 20px 0 0; }
.section-heading > p { color: var(--muted); font-size: 16px; padding-bottom: 6px; }

.training-layout { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 70px; align-items: start; }
.program-visual { height: 600px; position: relative; overflow: hidden; background: #cfd8c6; }
.program-visual > img { height: 100%; width: 100%; object-fit: cover; filter: saturate(0.85); transition: transform 0.6s; }
.program-visual:hover > img { transform: scale(1.03); }
.program-image-shade { position: absolute; inset: 0; background: linear-gradient(0deg, #0f2f21e6, transparent 65%); }
.program-image-top {
  position: absolute; top: 24px; left: 24px; font-size: 12px; letter-spacing: 0.15em; color: var(--on-jade); background: #193c2fe6; padding: 5px 10px;
}
.program-caption { color: var(--on-jade); position: absolute; bottom: 30px; left: 30px; right: 20px; }
.program-caption > span { font-size: 12px; letter-spacing: 0.15em; }
.program-caption strong { display: block; font-family: var(--display); font-size: 46px; line-height: 1.08; margin-top: 12px; }

.programs { display: grid; gap: 10px; }
.programs .program { background: #181b19; color: #ffffff; border: 1px solid #373e38; transition: background 0.2s, border-color 0.2s; }
.programs .program summary { display: flex; align-items: center; gap: 18px; padding: 22px 24px; cursor: pointer; list-style: none; }
.programs .program summary::-webkit-details-marker { display: none; }
.programs .program summary:hover { background: #232a24; }
.program-number { font-size: 12px; color: #a4aca0; align-self: flex-start; padding-top: 6px; }
.program-name { font-family: var(--display); font-size: 32px; line-height: 1.2; flex: 1; color: #ffffff; }
.program-name small { display: block; font-family: var(--body); font-size: 12px; letter-spacing: 0.1em; color: #cfd6cb; margin-top: 6px; }
.program-symbol { height: 28px; width: 28px; position: relative; flex-shrink: 0; }
.program-symbol:before, .program-symbol:after {
  content: ''; position: absolute; top: 13px; left: 6px; width: 16px; height: 1px; background: #ffffff; transition: transform 0.2s;
}
.program-symbol:after { transform: rotate(90deg); }
.program[open] { background: #202922; border-color: var(--gold); box-shadow: inset 3px 0 0 var(--light-gold); }
.program[open] .program-symbol:after { transform: rotate(0); }
.program[open] .program-name, .program[open] .program-number { color: var(--light-gold); }

.program-content { margin: 0 24px 26px 56px; animation: detail-enter 0.3s ease both; }
.program-content > p { font-size: 15px; line-height: 1.65; color: #dce2d8; max-width: 520px; }
.class-locations-list { margin: 12px 0; padding-left: 20px; color: #dce2d8; font-size: 14px; }
.class-locations-list li { margin-bottom: 6px; }
.program-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 14px; }
.program-tags span { border: 1px solid #75816f; padding: 4px 10px; font-size: 12px; color: #e0e5dc; }
.program-content .text-link { color: #ffffff; border-bottom-color: #b4a077; }
.program-content .text-link:hover { color: var(--light-gold); border-bottom-color: var(--light-gold); }

/* Gallery */
.gallery-section { border-top: 1px solid var(--line); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  height: 340px;
  background: #181b19;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); transition: transform 0.5s ease, filter 0.5s;
}
.gallery-item:hover img { transform: scale(1.05); filter: saturate(1.05); }
.gallery-overlay {
  position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16, 40, 30, 0.92) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; color: #ffffff;
  transform: translateY(10px); opacity: 0.9; transition: all 0.3s ease;
}
.gallery-item:hover .gallery-overlay { transform: translateY(0); opacity: 1; }
.gallery-tag { font-size: 11px; letter-spacing: 0.15em; color: var(--light-gold); margin-bottom: 4px; font-weight: 700; }
.gallery-overlay h4 { font-size: 24px; line-height: 1.15; }

/* Gallery Modal */
.gallery-modal {
  border: 0; padding: 0; background: rgba(10, 20, 15, 0.92); backdrop-filter: blur(8px);
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
}
.gallery-modal[open] { display: flex; align-items: center; justify-content: center; }
.modal-shell {
  max-width: 900px; width: 90%; background: #181b19; border: 1px solid #434d44; position: relative; color: #ffffff;
}
.modal-close {
  position: absolute; top: 16px; right: 16px; background: rgba(0,0,0,0.6); color: #fff; border: 0;
  width: 38px; height: 38px; border-radius: 50%; font-size: 18px; z-index: 5;
}
.modal-shell img { width: 100%; max-height: 65vh; object-fit: contain; background: #0b110e; }
.modal-info { padding: 24px; }
.modal-info h3 { font-size: 28px; margin-bottom: 6px; color: var(--light-gold); }
.modal-info p { font-size: 15px; color: #d0d6cd; }

/* Locations Section */
.locations-section { border-top: 1px solid var(--line); }
.locations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.location-card {
  background: var(--surface);
  border: 1px solid #cbd0bb;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.location-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px #193c2f12;
}
.location-badge { font-size: 11px; letter-spacing: 0.15em; color: var(--gold-ink); font-weight: 700; display: block; margin-bottom: 8px; }
.location-card h3 { font-size: 32px; margin-bottom: 12px; }
.location-address { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.location-meta { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--foreground); margin-bottom: 24px; border-top: 1px solid var(--line); padding-top: 14px; }
.location-card .button { width: 100%; font-size: 13px; min-height: 48px; padding: 12px 18px; }

/* Approach / Philosophy */
.approach {
  position: relative; isolation: isolate; min-height: 610px; display: flex; align-items: center; overflow: hidden;
}
.approach-photo { position: absolute; inset: 0; z-index: -2; }
.approach-photo img { height: 100%; object-fit: cover; object-position: center 50%; filter: saturate(0.8); }
.approach:after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, #f6f3e9fa 0%, #f6f3e9eb 45%, #f6f3e999 100%); z-index: -1;
}
.approach-content { width: 100%; padding-top: 90px; padding-bottom: 90px; }
.approach h2 { font-size: clamp(46px, 5.7vw, 90px); line-height: 1.05; margin: 27px 0; }
.approach-content > p:not(.eyebrow) { font-size: 18px; color: var(--foreground); }
.approach-values {
  display: flex; gap: 32px; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line); max-width: 840px; flex-wrap: wrap;
}
.approach-values > span { font-size: 12px; color: var(--gold-ink); display: flex; gap: 13px; }
.approach-values strong { font-size: 14px; font-weight: 400; color: var(--foreground); }

/* Contact Section & Social Media */
.contact {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: start;
  padding-top: 120px;
  padding-bottom: 120px;
  border-top: 1px solid var(--line);
}
.contact h2 { font-size: clamp(52px, 6.3vw, 100px); margin: 20px 0 24px; line-height: 1; }
.contact-heading > p:not(.eyebrow) { font-size: 17px; color: var(--muted); max-width: 540px; }

.social-channels { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.social-label { font-size: 12px; letter-spacing: 0.16em; color: var(--gold-ink); font-weight: 700; display: block; margin-bottom: 16px; }
.social-list { display: flex; flex-wrap: wrap; gap: 12px; }
.social-icon-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--surface); border: 1px solid #d0d6c4; font-size: 13px; font-weight: 700; color: var(--foreground); transition: all 0.2s;
}
.social-icon-btn:hover { background: var(--foreground); color: var(--background); border-color: var(--foreground); }
.shifu-direct-social {
  margin-top: 18px; font-size: 14px; color: var(--muted);
}
.shifu-direct-social a { color: var(--maroon); font-weight: 700; margin-left: 6px; }
.shifu-direct-social a:hover { text-decoration: underline; }

.contact-panel {
  background: var(--surface);
  padding: 36px;
  position: relative;
  border: 1px solid #cbd0bb;
}
.contact-panel > img {
  position: absolute; top: 28px; right: 28px; width: 48px; height: 48px; border-radius: 50%; mix-blend-mode: multiply; opacity: 0.85;
}
.contact-item { margin-bottom: 24px; padding-right: 20px; }
.contact-label { display: block; font-size: 11px; letter-spacing: 0.17em; color: var(--gold-ink); margin-bottom: 6px; font-weight: 700; }
.contact-item > strong { font-size: 21px; font-weight: 700; display: block; }
.contact-item > strong a:hover { color: var(--gold-ink); }
.contact-item p { font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.contact-rule { display: block; height: 1px; background: var(--line); margin: 26px 0 20px; }
.contact-bottom { font-size: 12px; color: var(--muted); line-height: 1.7; }
.contact-panel .button { width: 100%; font-size: 14px; }

/* Site Footer */
.site-footer {
  padding: 36px var(--gutter);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  max-width: 1680px;
  margin: auto;
}
.site-footer .brand img { width: 38px; height: 38px; }
.site-footer .brand-name { font-size: 18px; line-height: 1.2; letter-spacing: 0; white-space: nowrap; }
.footer-center { text-align: center; font-size: 12px; color: var(--muted); }
.footer-handles { display: flex; gap: 18px; justify-content: center; margin-top: 4px; font-size: 11px; color: var(--foreground); }
.back-top { display: flex; align-items: center; gap: 16px; font-size: 12px; letter-spacing: 0.12em; }
.back-top span { font-size: 18px; color: var(--gold-ink); }

/* Intro Overlay */
.intro {
  position: fixed; inset: 0; z-index: 100; background: #0d2118; color: var(--on-jade); isolation: isolate; overflow: hidden;
  transition: opacity 0.7s ease, visibility 0.7s;
}
.intro.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-aura { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 44%, #c39b4230 0%, transparent 58%); }
#fire-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.intro-center {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 100%; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.intro-logo {
  width: 185px; height: 185px; object-fit: cover; mix-blend-mode: screen; filter: sepia(0.2);
  border-radius: 50%; overflow: hidden;
  mask-image: radial-gradient(circle, black 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle, black 60%, transparent 100%);
  animation: logo-ignite 1.75s cubic-bezier(0.18, 0.7, 0.2, 1) both;
}
.intro-title {
  font-family: var(--display);
  font-size: clamp(22px, 4.4vw, 32px);
  letter-spacing: 0.08em;
  margin-top: 76px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.12;
  text-align: center;
  color: #ffffff;
}
.intro-title-line {
  font-family: var(--display);
  font-size: inherit;
  font-weight: 700;
  letter-spacing: inherit;
  color: #ffffff;
  display: inline-block;
  white-space: nowrap;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75), 0 0 24px rgba(223, 189, 120, 0.35);
}
.intro-title-line sup {
  font-size: 0.55em;
  top: -0.45em;
  margin-left: 3px;
  color: var(--light-gold);
}
.intro-subtitle {
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.28em;
  font-weight: 700;
  color: #d6d9c5;
  margin-top: 8px;
  text-transform: uppercase;
}
.intro-affiliation {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--light-gold);
  margin-top: 10px;
  font-weight: 700;
}
.skip-intro {
  position: absolute; bottom: 40px; right: var(--gutter); background: none; border: 0; border-bottom: 1px solid #a99158; color: #f6f3e9;
  font-size: 14px; padding: 10px 0; display: flex; gap: 20px; align-items: center;
}
.skip-intro > span { color: var(--light-gold); font-size: 22px; }
.intro-progress {
  height: 2px; background: linear-gradient(90deg, #916c27, #f5d89c); position: absolute; bottom: 0; left: 0; width: 100%; transform-origin: left; animation: intro-progress 3.6s linear both;
}

/* Animations */
.reveal { opacity: 1; transform: none; }
body.motion-enabled .reveal {
  opacity: 0; transform: translateY(30px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
body.motion-enabled .reveal.is-visible { opacity: 1; transform: none; }

@keyframes logo-ignite {
  0% { opacity: 0; transform: scale(0.8); clip-path: circle(0% at 50% 50%); filter: sepia(1) saturate(7) brightness(1.8) drop-shadow(0 0 24px #e8ae3e); }
  40% { opacity: 1; filter: sepia(1) saturate(5) brightness(1.5) drop-shadow(0 0 20px #ffd277); }
  100% { opacity: 1; transform: scale(1); clip-path: circle(50% at 50% 50%); filter: sepia(0.2) drop-shadow(0 0 12px #d7af5233); }
}
@keyframes intro-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes detail-enter { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* Gallery zoom touch icon */
.gallery-zoom-icon {
  position: absolute;
  top: 12px;
  right: 14px;
  color: #ffffff;
  font-size: 20px;
  background: rgba(0, 0, 0, 0.45);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.gallery-item:hover .gallery-zoom-icon {
  opacity: 0.9;
}

/* Note: All device media queries and screen responsiveness are maintained in media.css */