:root {
  --gold: #d1a546;
  --gold-hi: #e2bb63;
  --gold-dark: #8a6a26;
  --red: #c23b2a;
  --ink: #000;
  --bg-alt: #0c0b0a;
  --panel: #151413;
  --text: #f4efe4;
  --text-2: #e6dfd2;
  --text-3: #cfc7b8;
  --muted: #b9b1a3;
  --faint: #8f887c;
  --line: rgba(209, 165, 70, .2);
  --line-2: rgba(209, 165, 70, .3);
  --serif: Cinzel, serif;
  --sans: 'Libre Franklin', sans-serif;
  --pad-x: clamp(16px, 4vw, 48px);
  --pad-y: clamp(56px, 8vw, 112px);
}

* { box-sizing: border-box; }
html { scroll-padding-top: var(--header-h, 109px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--text); }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }
p { margin: 0; }
.gold { color: var(--gold); }
.muted { color: var(--muted); text-wrap: pretty; }
.lead { font-size: clamp(17px, 1.8vw, 20px); color: var(--text-2); text-wrap: pretty; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

/* Header */
/* Over the hero: transparent, so the hero image shows behind it.
   Past the hero (.solid, toggled in script.js): dark blurred bar. */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 100%);
  border-bottom: 1px solid rgba(209, 165, 70, .12);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
}
.site-header.solid {
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: rgba(209, 165, 70, .25);
}
.site-header:not(.solid) .nav a { color: var(--text-2); text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.site-header:not(.solid) .nav a:hover { color: var(--gold); }
.header-top { padding-top: 10px; padding-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; }
.brand:hover { color: inherit; }
.brand-mark { width: 44px; height: 44px; object-fit: cover; object-position: 50% 47%; }
.wordmark { font-family: var(--serif); font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.brand .wordmark { font-size: 15px; }

.langs { display: flex; align-items: center; gap: 4px; }
.langs button {
  min-width: 40px; height: 40px;
  border: 1px solid rgba(209, 165, 70, .3);
  background: transparent; color: var(--text);
  font: 600 13px var(--sans); letter-spacing: .06em;
  cursor: pointer;
}
.langs button:hover { border-color: var(--gold); }
.langs button[aria-pressed="true"] { border-color: var(--gold); background: var(--gold); color: #000; }

.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: none; height: 44px; padding: 0 12px;
  display: flex; align-items: center;
  border-bottom: 2px solid transparent;
  color: var(--text-3); font: 500 14px var(--sans); white-space: nowrap;
}
.nav a:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-solid { background: var(--gold); color: #000; border: 0; }
.btn-solid:hover { background: var(--gold-hi); color: #000; }
.btn-outline { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn-outline:hover { background: rgba(209, 165, 70, .12); color: var(--gold); }

/* Hero */
/* Exactly one screen tall, starting at the very top behind the fixed header.
   --header-h is measured in script.js */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  padding-top: var(--header-h, 109px);
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden; background: var(--panel);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
/* Phones: shift the cropped image left (shows more of its right side). */
@media (max-width: 640px) {
  .hero-bg img { object-position: 72% 50%; }
}
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.3) 40%, rgba(0,0,0,.9) 100%);
}
.hero-content {
  position: relative; width: 100%; max-width: 900px;
  padding: 0 var(--pad-x) clamp(48px, 7vw, 96px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: clamp(18px, 2.6vw, 28px);
}
.hero-glyph { font-family: 'Noto Sans SC', sans-serif; font-weight: 700; font-size: clamp(40px, 6vw, 72px); line-height: 1; color: var(--gold); }
.hero h1 { font-size: clamp(34px, 6vw, 68px); line-height: 1.05; letter-spacing: .02em; text-wrap: balance; }
.hero-content p { max-width: 560px; color: var(--text-2); font-size: clamp(16px, 1.8vw, 19px); text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-ctas .btn { min-height: 52px; padding: 0 28px; font-size: 15px; letter-spacing: .04em; }

/* Sections */
.sec { border-top: 1px solid var(--line); }
.sec.alt { background: var(--bg-alt); }
.sec > .wrap { padding-top: var(--pad-y); padding-bottom: var(--pad-y); }
.sec-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec h2 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.05; }
.intro { max-width: 560px; }
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow span { font: 600 13px var(--sans); letter-spacing: .2em; color: var(--red); }
.eyebrow i { height: 1px; width: 48px; background: var(--gold); }

/* Image frame: an <img> inside .slot fills it (cropped) */
.slot {
  position: relative; width: 100%; height: 100%;
  display: grid; place-items: center; overflow: hidden;
  background: repeating-linear-gradient(135deg, rgba(209,165,70,.04) 0 12px, transparent 12px 24px);
}
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* About */
/* Two rows: photo left + text, then text + photo right (stacks on phones).
   Both photos share one height; width follows each photo's own ratio. */
.about { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 96px); }
.about-row { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-row.reverse { flex-direction: row-reverse; }
.about-photo {
  flex: none; height: clamp(240px, 30vw, 420px); aspect-ratio: 1;
  border: 1px solid rgba(209,165,70,.4); background: #111; overflow: hidden;
}
.about-photo.wide { aspect-ratio: 4 / 3; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.about-photo.wide img { object-position: 50% 50%; }
@media (max-width: 820px) {
  .about-row, .about-row.reverse { flex-direction: column; align-items: stretch; }
  .about-row.reverse .about-text { order: -1; }
  .about-photo { width: 100%; height: auto; }
  .about-row .about-text { flex: none; }
}
.about-text { flex: 1 1 360px; display: flex; flex-direction: column; gap: 20px; }

/* Disciplines */
.disc-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1px; background: rgba(209,165,70,.25); border: 1px solid rgba(209,165,70,.25);
}
.disc { background: var(--bg-alt); padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 12px; }
.disc-head { display: flex; align-items: center; gap: 14px; }
.hex {
  width: 34px; height: 38px; flex: none; display: grid; place-items: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--gold); color: #000; font: 700 13px var(--sans);
}
.disc h3 { font-size: 22px; line-height: 1.2; }

/* Certificates */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); gap: clamp(14px, 2.4vw, 28px); }
.cert { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.cert-frame { aspect-ratio: 3 / 4; padding: 8px; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); }
.cert-frame .slot { background-color: var(--panel); }
.cert figcaption { font-size: 14px; line-height: 1.4; color: var(--text-3); }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.video { display: flex; flex-direction: column; gap: 12px; }
.video-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--panel); border: 1px solid var(--line-2); }
.video-thumb video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }

/* Photos */
.photo-grid { columns: 4 220px; column-gap: clamp(8px, 1.4vw, 16px); }
.photo {
  display: block; width: 100%; margin: 0 0 clamp(8px, 1.4vw, 16px);
  padding: 0; border: 0; background: var(--panel); cursor: zoom-in;
  break-inside: avoid;
}
.photo img { width: 100%; height: auto; transition: opacity .2s; }
.photo:hover img { opacity: .85; }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, .94);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox img { max-width: calc(100vw - 120px); max-height: calc(100vh - 48px); object-fit: contain; }
.lb-btn {
  position: absolute; width: 48px; height: 48px;
  border: 1px solid var(--line-2); background: rgba(0, 0, 0, .6); color: var(--gold);
  font: 400 30px/1 var(--sans); cursor: pointer;
}
.lb-btn:hover { border-color: var(--gold); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox img { max-width: 100vw; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
}

/* Testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.testi { margin: 0; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 18px; }
.testi .q { font-family: var(--serif); font-size: 56px; line-height: .6; color: var(--red); height: 24px; }
.testi blockquote { margin: 0; font-size: 18px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.testi figcaption { font-size: 14px; color: var(--muted); }
.testi figcaption b { color: var(--gold); font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid rgba(209,165,70,.25); }
.footer-row { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.copy { font-size: 14px; color: var(--faint); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
