:root {
  --black: #030303;
  --ink: #080808;
  --charcoal: #11100e;
  --gold: #d8ad56;
  --gold-soft: #f1d18a;
  --ivory: #f5efe4;
  --muted: #c8bda8;
  --quiet: #8d8374;
  --line: rgba(216, 173, 86, 0.28);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font-family: 'Avenir Next', Avenir, 'Helvetica Neue', Arial, sans-serif;
}

a {
  color: inherit;
}

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

svg {
  width: 1.2em;
  height: 1.2em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 24px clamp(22px, 5vw, 70px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
  color: var(--ivory);
}

.brand,
.header-contact,
.nav a,
.button,
.text-link,
.contact-card a {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 13px;
  font-family: 'Bodoni 72', Didot, 'Bodoni 72 Smallcaps', Georgia, serif;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  font-weight: 400;
}

.brand small {
  color: var(--gold);
  font-family: 'Avenir Next', Avenir, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
}

.nav a {
  position: relative;
  color: rgba(245, 239, 228, 0.7);
  font-size: 0.78rem;
  font-weight: 500;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -11px;
  height: 1px;
  transform: scaleX(0);
  background: var(--gold);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav a.active,
.nav a:hover,
.header-contact:hover {
  color: var(--gold-soft);
}

.nav a.active::after,
.nav a:hover::after {
  transform: scaleX(1);
}

.header-contact {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ivory);
  font-size: 0.9rem;
  font-weight: 600;
}

.section-dark {
  background: var(--black);
  color: var(--ivory);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 120px clamp(20px, 6vw, 90px) 72px;
  overflow: hidden;
  text-align: center;
}

.hero::before,
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.84) 72%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.9));
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(0.82) contrast(1.06);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 930px;
}

.hero-role {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 0 22px;
  color: var(--gold-soft);
  font-size: clamp(0.66rem, 1vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

.hero-role::before,
.hero-role::after {
  content: '';
  width: clamp(34px, 6vw, 76px);
  height: 1px;
  background: var(--gold);
}

h1,
h2,
h3 {
  font-family: 'Bodoni 72', Didot, 'Bodoni 72 Smallcaps', Georgia, serif;
  margin: 0;
  letter-spacing: 0;
}

h1 em,
h2 em {
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
}

h1 {
  font-size: clamp(3.6rem, 8.5vw, 7.15rem);
  line-height: 0.9;
  font-weight: 400;
}

h2 {
  font-size: clamp(2rem, 3.65vw, 3.6rem);
  line-height: 1.02;
  font-weight: 400;
}

h3 {
  font-size: 1.32rem;
  font-weight: 400;
}

.section-label {
  margin: 0 0 28px;
  color: var(--gold-soft);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.gold-rule {
  display: block;
  width: 50px;
  height: 1px;
  margin: 32px 0 0;
  background: var(--gold);
}

p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.72;
}

.hero p:not(.hero-role),
.page-hero p,
.contact-hero p {
  max-width: 760px;
  margin: 26px auto 0;
  color: rgba(245, 239, 228, 0.78);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.62;
}

.page-hero .section-label,
.contact-hero .section-label {
  max-width: none;
  margin: 0 0 28px;
  color: var(--gold-soft);
  font-size: 0.68rem;
  line-height: 1;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 42px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 30px;
  border: 1px solid rgba(216, 173, 86, 0.65);
  color: var(--ivory);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.button.primary {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.button.secondary {
  background: rgba(0, 0, 0, 0.24);
}

.intro-band,
.split-section,
.achievement-grid,
.teaching-list,
.contact-details,
.teaching-preview,
.lesson-band,
.mentor-section,
.pillars-section,
.theory-intro,
.level-grid,
.syllabus-section {
  border-top: 1px solid var(--line);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #070707;
}

.intro-band article {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: clamp(22px, 3.4vw, 38px);
  border-right: 1px solid var(--line);
}

.intro-band article:last-child {
  border-right: 0;
}

.intro-band svg,
.achievement-card svg,
.teaching-row svg,
.contact-details svg,
.quote-panel svg,
.mini-grid svg {
  color: var(--gold);
}

.intro-band span {
  color: var(--quiet);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.intro-band strong {
  color: var(--ivory);
  font-family: 'Bodoni 72', Didot, 'Bodoni 72 Smallcaps', Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  font-weight: 400;
  line-height: 1.12;
}

.split-section,
.achievement-grid,
.teaching-list,
.contact-details,
.pillars-section,
.theory-intro,
.level-grid,
.syllabus-section {
  padding: clamp(66px, 9vw, 132px) clamp(22px, 6vw, 92px);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  align-items: center;
  gap: clamp(38px, 7vw, 102px);
  background: var(--black);
}

.split-section.compact {
  align-items: start;
}

.large-text {
  margin-top: 24px;
  color: var(--muted);
  font-family: 'Avenir Next', Avenir, 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  line-height: 1.68;
}

.portrait-frame {
  margin: 0;
  box-shadow: var(--shadow);
  border: 1px solid rgba(216, 173, 86, 0.3);
  overflow: hidden;
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: left center;
  opacity: 0.9;
}

.portrait-frame figcaption {
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  background: #070707;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: var(--gold-soft);
  font-weight: 700;
}

.teaching-preview,
.lesson-band,
.mentor-section,
.contact-hero {
  padding: clamp(66px, 9vw, 124px) clamp(22px, 6vw, 92px);
}

.teaching-preview {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(34px, 6vw, 88px);
  align-items: start;
  background: #070707;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.mini-grid article {
  min-height: 160px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

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

.mini-grid h3 {
  margin-top: 24px;
}

.page-hero {
  position: relative;
  min-height: 60vh;
  display: grid;
  align-items: end;
  padding: 122px clamp(22px, 6vw, 92px) 64px;
  overflow: hidden;
  text-align: left;
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  filter: saturate(0.82) contrast(1.05);
}

.page-hero > div {
  position: relative;
  z-index: 2;
  max-width: 990px;
}

.page-hero.no-image {
  min-height: 50vh;
}

.page-hero.no-image::before {
  background:
    radial-gradient(circle at 76% 18%, rgba(216, 173, 86, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.88));
}

.page-hero p:not(.section-label),
.contact-hero p:not(.section-label) {
  margin-left: 0;
}

.about-story {
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.12fr);
  align-items: start;
}

.about-story .large-text {
  margin-top: 0;
}

.quote-panel {
  padding: clamp(30px, 4vw, 50px);
  background: #0d0b08;
  border: 1px solid var(--line);
}

.quote-panel p {
  margin: 24px 0 0;
  color: var(--ivory);
  font-family: 'Bodoni 72', Didot, 'Bodoni 72 Smallcaps', Georgia, serif;
  font-size: clamp(1.25rem, 1.9vw, 1.9rem);
  line-height: 1.24;
}

.pillars-section {
  background: #070707;
}

.pillars-section h2 {
  max-width: 900px;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 34px;
  border: 1px solid var(--line);
}

.pillar-grid article {
  min-height: 190px;
  padding: clamp(22px, 2.7vw, 32px);
  border-right: 1px solid var(--line);
}

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

.pillar-grid span {
  color: var(--gold);
  font-size: 2rem;
  line-height: 1;
}

.pillar-grid h3 {
  margin-top: 14px;
  color: var(--ivory);
}

.pillar-grid p {
  margin-bottom: 0;
}

.mentor-section {
  display: grid;
  grid-template-columns: minmax(0, 850px);
  background: var(--black);
}

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

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  background: var(--black);
}

.achievement-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-right: 0;
  background: #070707;
}

.achievement-card:last-child {
  border-right: 1px solid var(--line);
}

.achievement-card h2 {
  margin-top: 30px;
  font-size: clamp(1.24rem, 1.8vw, 1.72rem);
  line-height: 1.14;
}

.lined-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
}

.lined-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 500;
}

.teaching-list {
  display: grid;
  gap: 0;
  background: var(--black);
}

.teaching-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 24px;
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid var(--line);
  border-bottom: 0;
  background: #070707;
}

.teaching-row:last-child {
  border-bottom: 1px solid var(--line);
}

.teaching-row h2 {
  font-size: clamp(1.55rem, 2.45vw, 2.45rem);
}

.theory-note {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
  padding: clamp(52px, 7vw, 96px) clamp(22px, 6vw, 92px);
  border-top: 1px solid var(--line);
  background: var(--black);
}

.theory-note p:last-child {
  margin: 0;
}

.theory-note .text-link {
  margin-top: 0;
  white-space: nowrap;
}

.theory-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(34px, 7vw, 96px);
  background: var(--black);
}

.theory-intro h2 {
  margin-bottom: 20px;
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  background: #070707;
}

.level-grid article {
  min-height: 240px;
  padding: clamp(26px, 3.5vw, 42px);
  border: 1px solid var(--line);
  border-right: 0;
}

.level-grid article:last-child {
  border-right: 1px solid var(--line);
}

.level-grid p:last-child {
  margin-bottom: 0;
}

.syllabus-section {
  background: var(--black);
}

.syllabus-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.grade-table {
  border: 1px solid var(--line);
  background: #070707;
}

.grade-table + .grade-table {
  margin-top: 34px;
}

.grade-table h3 {
  padding: 24px clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  color: var(--gold-soft);
}

.grade-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.18fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  padding: 18px clamp(22px, 3vw, 34px);
  border-bottom: 1px solid rgba(216, 173, 86, 0.16);
}

.grade-row:last-child {
  border-bottom: 0;
}

.grade-row strong {
  color: var(--ivory);
  font-family: 'Bodoni 72', Didot, 'Bodoni 72 Smallcaps', Georgia, serif;
  font-size: 1.18rem;
  font-weight: 400;
}

.grade-row p {
  margin: 0;
}

.lesson-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  background: #050505;
}

.lesson-band p {
  grid-column: 1;
  margin: 0;
}

.lesson-band .button {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.contact-hero {
  min-height: 66vh;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(30px, 6vw, 90px);
  padding-top: 138px;
  background:
    radial-gradient(circle at 78% 10%, rgba(216, 173, 86, 0.09), transparent 34%),
    var(--black);
}

.contact-card {
  align-self: end;
  display: grid;
  gap: 14px;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
}

.contact-card span,
.contact-card small {
  color: var(--quiet);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.contact-card a {
  color: var(--gold-soft);
  font-family: 'Bodoni 72', Didot, 'Bodoni 72 Smallcaps', Georgia, serif;
  font-size: clamp(1.28rem, 2vw, 1.85rem);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #070707;
}

.contact-details div {
  padding: clamp(28px, 4vw, 50px);
  border: 1px solid var(--line);
  border-right: 0;
}

.contact-details div:last-child {
  border-right: 1px solid var(--line);
}

.contact-details h2 {
  margin-top: 18px;
  font-size: 1.8rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(22px, 6vw, 92px);
  border-top: 1px solid var(--line);
  background: var(--black);
  color: var(--quiet);
}

.site-footer div {
  display: grid;
  gap: 5px;
}

.site-footer strong {
  color: var(--ivory);
  font-family: 'Bodoni 72', Didot, 'Bodoni 72 Smallcaps', Georgia, serif;
  font-size: 1.25rem;
}

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

@media (max-width: 980px) {
  .site-header,
  .split-section,
  .teaching-preview,
  .lesson-band,
  .contact-hero,
  .theory-note,
  .theory-intro {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: absolute;
    gap: 16px;
  }

  .brand {
    display: grid;
    gap: 2px;
  }

  .nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: center;
    flex-wrap: wrap;
  }

  .intro-band,
  .mini-grid,
  .achievement-grid,
  .contact-details,
  .pillar-grid,
  .level-grid {
    grid-template-columns: 1fr;
  }

  .intro-band article,
  .mini-grid article,
  .achievement-card,
  .contact-details div,
  .pillar-grid article,
  .level-grid article {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .intro-band article:last-child,
  .mini-grid article:last-child,
  .achievement-card:last-child,
  .contact-details div:last-child,
  .pillar-grid article:last-child,
  .level-grid article:last-child {
    border-bottom: 1px solid var(--line);
  }

  .lesson-band .button,
  .lesson-band p {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 20px;
  }

  .brand small,
  .header-contact span {
    display: none;
  }

  .nav {
    gap: 14px;
  }

  .nav a {
    font-size: 0.72rem;
  }

  .hero {
    min-height: 92vh;
    padding-inline: 18px;
  }

  .hero-role {
    display: block;
    letter-spacing: 0.18em;
  }

  .hero-role::before,
  .hero-role::after {
    display: none;
  }

  h1 {
    font-size: clamp(3.25rem, 17vw, 4.8rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    padding-inline: 16px;
  }

  .teaching-row {
    grid-template-columns: 1fr;
  }

  .grade-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    flex-direction: column;
  }
}
