:root {
  --forest: #173b31;
  --forest-deep: #0f2d25;
  --sage: #738777;
  --moss: #53685b;
  --cream: #f4efe5;
  --paper: #fbf9f4;
  --clay: #b97355;
  --ink: #24312d;
  --muted: #68736e;
  --line: rgba(36, 49, 45, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-geist-sans), Arial, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { object-fit: cover; }

.site-header {
  align-items: center;
  background: rgba(251, 249, 244, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(36, 49, 45, 0.08);
  display: flex;
  height: 108px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(24px, 5vw, 78px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 50;
}
.brand { display: block; flex: 0 0 auto; height: 98px; line-height: 0; overflow: hidden; position: relative; width: clamp(310px, 27vw, 380px); }
.brand-logo { display: block; height: auto; max-width: none; object-fit: unset; transform: translateY(-16.1%); width: 100%; }
nav { align-items: center; display: flex; gap: clamp(20px, 3vw, 44px); }
nav a { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
nav a:not(.nav-cta) { position: relative; }
nav a:not(.nav-cta)::after { background: var(--clay); bottom: -7px; content: ""; height: 1px; left: 0; position: absolute; transform: scaleX(0); transform-origin: left; transition: transform .25s; width: 100%; }
nav a:hover::after { transform: scaleX(1); }
.nav-cta { border: 1px solid var(--forest); border-radius: 99px; padding: 12px 18px; transition: .25s; }
.nav-cta:hover { background: var(--forest); color: var(--cream); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  min-height: 760px;
  padding: 142px clamp(24px, 6vw, 94px) 70px;
  position: relative;
}
.hero-copy { align-self: center; max-width: 670px; padding: 35px 40px 70px 0; position: relative; z-index: 2; }
.eyebrow { color: var(--clay); font-size: 11px; font-weight: 700; letter-spacing: .2em; margin: 0 0 24px; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { font-size: clamp(64px, 6.2vw, 102px); letter-spacing: -.055em; line-height: .91; margin: 0; }
h1::after { background: var(--clay); content: ""; display: block; height: 2px; margin: 37px 0 29px; width: 76px; }
.hero-lead { color: #56625d; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.72; margin: 0; max-width: 600px; }
.hero-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 27px; margin-top: 37px; }
.button { border-radius: 99px; display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; padding: 16px 23px; text-transform: uppercase; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--forest); color: var(--cream); }
.button-primary:hover { background: var(--forest-deep); }
.text-link { border-bottom: 1px solid rgba(36, 49, 45, .4); font-size: 12px; font-weight: 700; letter-spacing: .08em; padding-bottom: 5px; text-transform: uppercase; }
.text-link span { color: var(--clay); margin-left: 7px; }
.hero-visual { align-self: stretch; min-height: 570px; position: relative; }
.hero-image-wrap {
  border-radius: 52% 48% 46% 54% / 42% 56% 44% 58%;
  inset: 4px 0 34px 20px;
  overflow: hidden;
  position: absolute;
}
.hero-image { height: 100%; inset: 0; object-position: 59% center; position: absolute; width: 100%; }
.hero-image-wrap::after { background: linear-gradient(90deg, rgba(18, 43, 35, .15), transparent 48%); content: ""; inset: 0; position: absolute; }
.hero-orbit { border: 1px solid rgba(185, 115, 85, .65); border-radius: 51% 49% 48% 52%; inset: -15px -28px 7px 45px; position: absolute; transform: rotate(4deg); }
.hero-note { align-items: center; background: transparent; bottom: 0; display: flex; gap: 16px; left: 54px; padding: 0; position: absolute; z-index: 2; }
.hero-note p { font-family: Georgia, serif; font-size: 16px; line-height: 1.4; margin: 0; }
.hero-note em { color: var(--clay); }
.note-line { background: var(--forest); height: 1px; width: 40px; }
.scroll-cue { align-items: center; bottom: 23px; display: flex; gap: 12px; left: clamp(24px, 6vw, 94px); position: absolute; }
.scroll-cue span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.scroll-cue i { border: solid var(--clay); border-width: 0 1px 1px 0; height: 7px; transform: rotate(45deg); width: 7px; }

.focus-band { align-items: center; background: var(--forest); color: rgba(244,239,229,.82); display: flex; gap: clamp(18px, 4vw, 58px); justify-content: center; min-height: 92px; padding: 24px; }
.focus-band span { font-family: Georgia, serif; font-size: clamp(15px, 1.6vw, 22px); }
.focus-band i { background: var(--clay); border-radius: 50%; height: 4px; width: 4px; }

.section { padding: clamp(90px, 10vw, 155px) clamp(24px, 8vw, 128px); }
.services { display: grid; gap: clamp(55px, 8vw, 125px); grid-template-columns: minmax(260px, .72fr) minmax(460px, 1.28fr); }
.section-heading h2, .philosophy h2, .search-copy h2, .contact h2 { font-size: clamp(48px, 5vw, 78px); letter-spacing: -.045em; line-height: .99; margin: 0; }
h2 em { color: var(--clay); font-weight: 400; }
.section-heading > p:last-child { color: var(--muted); font-size: 16px; line-height: 1.75; margin: 30px 0 0; max-width: 430px; }
.service-list { border-top: 1px solid var(--line); }
.service-card { border-bottom: 1px solid var(--line); display: grid; gap: 30px; grid-template-columns: 52px 1fr; padding: 35px 0 39px; transition: padding .25s; }
.service-card:hover { padding-left: 10px; }
.service-number { color: var(--clay); font-family: Georgia, serif; font-size: 14px; padding-top: 7px; }
.service-eyebrow { color: var(--moss); font-size: 10px !important; font-weight: 700; letter-spacing: .16em; margin: 0 0 8px !important; text-transform: uppercase; }
.service-card h3 { font-size: clamp(28px, 2.6vw, 39px); letter-spacing: -.025em; margin: 0 0 14px; }
.service-card p:last-child { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0; max-width: 650px; }

.philosophy { align-items: center; background: var(--cream); display: grid; gap: 7vw; grid-template-columns: .82fr 1.18fr; min-height: 640px; overflow: hidden; padding: 90px clamp(24px, 10vw, 160px); position: relative; }
.philosophy::after { border: 1px solid rgba(83,104,91,.25); border-radius: 50%; content: ""; height: 480px; position: absolute; right: -200px; top: -160px; width: 480px; }
.philosophy-image { inset: 0; overflow: hidden; position: absolute; width: 100%; }
.philosophy-image::after { background: linear-gradient(90deg, rgba(244,239,229,.6) 0%, rgba(244,239,229,.72) 48%, rgba(244,239,229,.88) 100%); content: ""; inset: 0; position: absolute; }
.philosophy-image img { filter: saturate(.7) sepia(.08); height: 100%; object-fit: cover; object-position: center; opacity: .58; width: 100%; }
.philosophy-copy { grid-column: 2; max-width: 650px; position: relative; z-index: 2; }
.philosophy-copy > p:nth-of-type(2) { color: var(--muted); font-size: 17px; line-height: 1.8; margin: 34px 0; }
.principles { display: flex; gap: 12px; flex-wrap: wrap; }
.principles span { border: 1px solid rgba(83,104,91,.35); border-radius: 99px; color: var(--moss); font-size: 10px; font-weight: 700; letter-spacing: .14em; padding: 10px 16px; text-transform: uppercase; }

.search-feature { align-items: center; background: var(--forest); color: var(--cream); display: grid; gap: clamp(55px, 8vw, 125px); grid-template-columns: 1fr .9fr; }
.search-image-wrap { aspect-ratio: 1.12; border-radius: 49% 51% 8px 8px / 38% 41% 8px 8px; min-height: 480px; overflow: hidden; position: relative; }
.search-image-wrap img { height: 100%; inset: 0; position: absolute; width: 100%; }
.search-image-wrap::after { background: linear-gradient(0deg, rgba(15,45,37,.7), transparent 40%); content: ""; inset: 0; position: absolute; }
.image-caption { bottom: 26px; color: rgba(244,239,229,.82); font-size: 9px; font-weight: 700; left: 30px; letter-spacing: .15em; position: absolute; text-transform: uppercase; z-index: 2; }
.search-copy { max-width: 650px; }
.search-copy .eyebrow { color: #d59274; }
.search-copy h2 em { color: #d59274; }
.search-copy > p:not(.eyebrow) { color: rgba(244,239,229,.7); font-size: 16px; line-height: 1.8; margin: 0 0 18px; }
.search-copy > p:nth-of-type(2) { margin-top: 34px; }
.search-copy .text-link { display: inline-block; margin-top: 20px; }
.text-link-light { border-color: rgba(244,239,229,.45); color: var(--cream); }
.text-link-light span { color: #d59274; }

.exam { background: var(--paper); }
.exam-intro { display: grid; gap: clamp(50px, 8vw, 120px); grid-template-columns: .94fr 1.06fr; }
.exam-intro h2, .boar-feature h2 { font-size: clamp(48px, 5vw, 78px); letter-spacing: -.045em; line-height: .99; margin: 0; }
.exam-lead { border-left: 1px solid var(--clay); padding-left: clamp(25px, 4vw, 55px); }
.exam-lead p { color: var(--muted); font-size: 16px; line-height: 1.8; margin: 0 0 19px; }
.exam-lead p:last-child { margin-bottom: 0; }
.course-program { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); margin-top: clamp(60px, 7vw, 105px); }
.program-block { display: grid; gap: clamp(35px, 6vw, 90px); grid-template-columns: 245px 1fr; padding: clamp(38px, 5vw, 66px) 0; }
.program-block + .program-block { border-top: 1px solid var(--line); }
.program-label span { color: var(--clay); font-family: Georgia, serif; font-size: 14px; }
.program-label h3 { font-size: clamp(31px, 3.2vw, 46px); margin: 12px 0 0; }
.program-subjects ul { display: grid; gap: 0 36px; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.program-subjects li { border-top: 1px solid rgba(36,49,45,.12); color: var(--muted); font-size: 14px; line-height: 1.5; padding: 14px 0 14px 23px; position: relative; }
.program-subjects li::before { color: var(--clay); content: "•"; left: 2px; position: absolute; }
.program-flow { align-items: start; }
.program-flow ol { display: grid; gap: 18px; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.program-flow li { color: var(--muted); font-size: 13px; line-height: 1.55; min-width: 0; }
.program-flow li > span { align-items: center; background: var(--forest); border-radius: 50%; color: var(--cream); display: flex; font-size: 10px; font-weight: 700; height: 29px; justify-content: center; margin-bottom: 14px; width: 29px; }
.exam-goal { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; gap: 60px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 42px; padding: 40px 0; }
.exam-goal > div { max-width: 540px; }
.exam-goal .eyebrow { margin-bottom: 13px; }
.exam-goal p:last-child { color: var(--muted); font-size: 15px; line-height: 1.75; margin: 0; }
.exam blockquote { color: var(--forest); font-family: Georgia, serif; font-size: clamp(26px, 3vw, 43px); line-height: 1.3; margin: clamp(55px, 7vw, 95px) auto 0; max-width: 1050px; padding: 0 0 0 clamp(24px, 5vw, 65px); position: relative; }
.exam blockquote::before { background: var(--clay); content: ""; height: 100%; left: 0; position: absolute; top: 0; width: 2px; }

.boar-feature { background: var(--forest-deep); color: var(--cream); display: grid; gap: clamp(55px, 9vw, 145px); grid-template-columns: 1.05fr .95fr; padding: clamp(85px, 10vw, 150px) clamp(24px, 9vw, 145px); }
.boar-feature .eyebrow { color: #d59274; }
.boar-feature h2 em { color: #d59274; }
.boar-feature > div:last-child { align-self: end; }
.boar-feature > div:last-child p { color: rgba(244,239,229,.72); font-size: 16px; line-height: 1.8; margin: 0 0 18px; }
.boar-feature .text-link { display: inline-block; margin-top: 20px; }

.team { background: var(--paper); }
.team-heading { margin-bottom: 54px; }
.team-grid { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.team-card { background: #f4efe5; border: 1px solid rgba(36,49,45,.1); border-radius: 24px; display: grid; gap: 28px; grid-template-columns: 185px 1fr; min-height: 330px; overflow: hidden; padding: 18px; }
.team-photo { border-radius: 16px; min-height: 294px; overflow: hidden; position: relative; }
.team-photo img { height: 100%; inset: 0; object-position: center 24%; position: absolute; transition: transform .5s; width: 100%; }
.team-card:hover .team-photo img { transform: scale(1.025); }
.team-info { align-self: center; border-left: 1px solid var(--clay); padding: 3px 5px 3px 24px; }
.team-role { color: var(--clay); font-size: 9px; font-weight: 700; letter-spacing: .13em; line-height: 1.5; margin: 0 0 9px; text-transform: uppercase; }
.team-info h3 { font-size: 38px; margin: 0 0 12px; }
.team-info > p:not(.team-role) { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 0 0 10px; }
.team-info > p:last-child { margin-bottom: 0; }

.contact { align-items: center; background: var(--clay); color: #fffaf1; display: grid; gap: 8vw; grid-template-columns: 1.1fr .9fr; padding: clamp(80px, 9vw, 135px) clamp(24px, 10vw, 160px); }
.contact .eyebrow { color: var(--forest-deep); }
.contact h2 em { color: var(--forest-deep); }
.contact-actions { align-items: flex-start; display: flex; flex-direction: column; }
.contact-actions p { font-size: 17px; line-height: 1.7; margin: 0 0 26px; max-width: 480px; }
.button-cream { background: var(--cream); color: var(--forest); }
.phone-link { border-bottom: 1px solid rgba(255,250,241,.6); font-family: Georgia, serif; font-size: 22px; margin-top: 25px; padding-bottom: 4px; }

footer { align-items: center; background: var(--forest-deep); color: rgba(244,239,229,.75); display: grid; grid-template-columns: 1fr auto 1fr; min-height: 130px; padding: 35px clamp(24px, 6vw, 94px); }
.footer-wordmark { display: flex; flex-direction: column; gap: 6px; }
.footer-wordmark strong { color: var(--cream); font-family: Georgia, serif; font-size: 21px; font-weight: 400; }
.footer-wordmark span { color: rgba(244,239,229,.6); font-size: 9px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
footer > p { font-size: 11px; letter-spacing: .08em; }
footer > div { display: flex; gap: 25px; justify-self: end; }
footer > .footer-wordmark { flex-direction: column; gap: 6px; justify-self: start; }
footer > div a { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

@media (max-width: 980px) {
  nav a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 130px; }
  .hero-copy { padding-bottom: 50px; }
  .hero-visual { min-height: 610px; }
  .hero-image-wrap { inset: 0 0 30px; }
  .hero-orbit { inset: -16px -18px 0 24px; }
  .scroll-cue { display: none; }
  .services { grid-template-columns: 1fr; }
  .section-heading { max-width: 650px; }
  .philosophy { gap: 2vw; grid-template-columns: .7fr 1.3fr; }
  .search-feature { gap: 60px; grid-template-columns: 1fr; }
  .search-image-wrap { min-height: unset; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card { grid-template-columns: 210px 1fr; }
  .exam-intro, .boar-feature { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .site-header { height: 78px; padding: 0 18px; }
  .brand { height: 62px; width: 230px; }
  .brand-logo { width: 100%; }
  .nav-cta { padding: 10px 14px; }
  .hero { min-height: auto; padding: 116px 20px 60px; }
  h1 { font-size: clamp(56px, 17vw, 78px); }
  .hero-visual { min-height: 470px; }
  .hero-note { bottom: 3px; left: 12px; padding: 0; }
  .hero-note p { font-size: 14px; }
  .focus-band { align-items: flex-start; flex-direction: column; gap: 9px; padding: 28px 24px; }
  .focus-band i { display: none; }
  .focus-band span { font-size: 17px; }
  .section { padding: 80px 22px; }
  .section-heading h2, .philosophy h2, .search-copy h2, .contact h2 { font-size: clamp(46px, 13vw, 62px); }
  .service-card { gap: 15px; grid-template-columns: 38px 1fr; }
  .philosophy { display: block; min-height: 680px; padding: 80px 22px; }
  .philosophy-image { height: auto; inset: 0; width: 100%; }
  .philosophy-image::after { background: rgba(244,239,229,.76); }
  .philosophy-image img { object-position: 34% center; opacity: .52; }
  .philosophy-copy { margin-top: 0; }
  .search-feature { padding-top: 65px; }
  .search-image-wrap { aspect-ratio: .92; }
  .exam-intro h2, .boar-feature h2 { font-size: clamp(46px, 13vw, 62px); }
  .exam-lead { border-left: 0; border-top: 1px solid var(--clay); padding: 28px 0 0; }
  .program-block { gap: 25px; grid-template-columns: 1fr; }
  .program-subjects ul { grid-template-columns: 1fr; }
  .program-flow ol { grid-template-columns: 1fr; }
  .program-flow li { align-items: center; display: grid; gap: 14px; grid-template-columns: 29px 1fr; }
  .program-flow li > span { margin: 0; }
  .exam-goal { grid-template-columns: 1fr; }
  .exam-goal { gap: 35px; }
  .boar-feature { padding: 80px 22px; }
  .team-heading { margin-bottom: 45px; }
  .team-card { gap: 20px; grid-template-columns: 1fr; padding: 14px; }
  .team-photo { aspect-ratio: 1.45; min-height: 0; }
  .team-info { border-left: 0; border-top: 1px solid var(--clay); padding: 20px 5px 8px; }
  .contact { grid-template-columns: 1fr; padding: 80px 22px; }
  footer { gap: 30px; grid-template-columns: 1fr; }
  footer > p { margin: 0; }
  footer > div { justify-self: start; }
}

@media (max-width: 400px) {
  .site-header { padding: 0 13px; }
  .brand { height: 54px; width: 194px; }
  .nav-cta { padding: 9px 12px; }
}

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

/* Accessibility and responsive refinements */
.sr-only {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
.skip-link {
  background: var(--forest-deep);
  color: var(--cream);
  font-weight: 700;
  left: 16px;
  padding: 12px 16px;
  position: fixed;
  top: 12px;
  transform: translateY(-150%);
  transition: transform .2s;
  z-index: 1000;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible {
  outline: 3px solid #d06f43;
  outline-offset: 4px;
}
section[id] { scroll-margin-top: 118px; }
a, button { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.menu-toggle, .nav-backdrop { display: none; }

/* Redesigned course programme */
.course-program {
  border: 0;
  display: grid;
  gap: 24px;
  margin-top: clamp(60px, 7vw, 105px);
}
.program-block {
  background: #f4efe5;
  border: 1px solid rgba(36,49,45,.11);
  border-radius: 24px;
  gap: clamp(32px, 5vw, 72px);
  grid-template-columns: minmax(190px, 245px) 1fr;
  padding: clamp(28px, 4vw, 52px);
}
.program-block + .program-block { border-top: 1px solid rgba(36,49,45,.11); }
.program-label { align-self: start; }
.program-label > span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
}
.program-label h3 { margin-top: 10px; }
.program-label p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 18px 0 0;
  max-width: 230px;
}
.program-subjects ul {
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.program-subjects li {
  align-items: center;
  background: var(--paper);
  border: 1px solid rgba(36,49,45,.1);
  border-radius: 14px;
  color: var(--ink);
  display: grid;
  font-size: 14px;
  gap: 13px;
  grid-template-columns: 34px 1fr;
  min-height: 68px;
  padding: 12px 15px;
}
.program-subjects li::before { content: none; }
.subject-icon {
  align-items: center;
  background: rgba(185,115,85,.12);
  border-radius: 9px;
  color: #9d573a;
  display: flex;
  font-size: 10px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  letter-spacing: .04em;
  width: 34px;
}
.program-flow ol {
  counter-reset: course-step;
  gap: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  position: relative;
}
.program-flow ol::before {
  background: rgba(23,59,49,.18);
  content: "";
  height: 1px;
  left: 21px;
  position: absolute;
  right: 21px;
  top: 21px;
}
.program-flow li {
  color: var(--ink);
  display: flex;
  flex-direction: column;
  font-size: 14px;
  line-height: 1.5;
  padding-right: 20px;
  position: relative;
  z-index: 1;
}
.program-flow li:last-child { padding-right: 0; }
.program-flow li > .flow-number {
  align-items: center;
  background: var(--forest);
  border: 5px solid #f4efe5;
  border-radius: 50%;
  color: var(--cream);
  display: flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  margin: 0 0 18px -5px;
  width: 42px;
}
.program-flow strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 7px;
}
.program-flow li div > span {
  color: var(--muted);
  display: block;
  font-size: 13px;
}

@media (max-width: 980px) {
  .menu-toggle {
    align-items: center;
    background: transparent;
    border: 1px solid rgba(23,59,49,.3);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 46px;
    justify-content: center;
    padding: 0;
    position: relative;
    width: 46px;
    z-index: 53;
  }
  .menu-toggle > span:not(.sr-only) {
    background: var(--forest);
    display: block;
    height: 2px;
    transition: transform .2s, opacity .2s;
    width: 20px;
  }
  .menu-toggle[aria-expanded="true"] > span:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-of-type(3) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] > span:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }
  #hauptnavigation {
    align-items: stretch;
    background: var(--paper);
    border-left: 1px solid var(--line);
    box-shadow: -16px 0 40px rgba(15,45,37,.12);
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100dvh;
    max-width: 360px;
    padding: 112px 24px 32px;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(105%);
    transition: transform .25s ease;
    width: min(88vw, 360px);
    z-index: 52;
  }
  #hauptnavigation a, #hauptnavigation a:not(.nav-cta) {
    border-bottom: 1px solid var(--line);
    display: block;
    font-size: 15px;
    min-height: 50px;
    padding: 16px 8px;
  }
  #hauptnavigation .nav-cta {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav-backdrop {
    background: rgba(15,45,37,.46);
    inset: 0;
    opacity: 0;
    position: fixed;
    transition: opacity .25s;
    visibility: hidden;
    z-index: 51;
  }
  .menu-open { overflow: hidden; }
  .menu-open #hauptnavigation { transform: translateX(0); }
  .menu-open .nav-backdrop { display: block; opacity: 1; visibility: visible; }
  .program-block { grid-template-columns: 1fr; }
  .program-label p { max-width: 540px; }
}

@media (max-width: 700px) {
  section[id] { scroll-margin-top: 86px; }
  .site-header { gap: 12px; }
  .brand { max-width: calc(100vw - 92px); }
  .hero { padding-left: 22px; padding-right: 22px; }
  .hero-copy { padding-right: 0; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 18px; }
  .hero-actions .button { text-align: center; }
  .hero-actions .text-link { align-self: flex-start; }
  .program-block { border-radius: 18px; padding: 24px 18px; }
  .program-subjects ul { grid-template-columns: 1fr; }
  .program-subjects li { min-height: 62px; }
  .program-flow ol { gap: 0; grid-template-columns: 1fr; }
  .program-flow ol::before {
    bottom: 22px;
    height: auto;
    left: 16px;
    right: auto;
    top: 22px;
    width: 1px;
  }
  .program-flow li {
    align-items: start;
    display: grid;
    gap: 14px;
    grid-template-columns: 32px 1fr;
    padding: 0 0 25px;
  }
  .program-flow li:last-child { padding-bottom: 0; }
  .program-flow li > .flow-number {
    border-width: 4px;
    height: 34px;
    margin: -1px 0 0 -1px;
    width: 34px;
  }
  .program-flow strong { font-size: 18px; }
  .button, .nav-cta, .phone-link { min-height: 44px; }
  .phone-link { align-items: center; display: inline-flex; }
}

@media (max-width: 400px) {
  .brand { width: 190px; }
  h1 { font-size: clamp(49px, 15.5vw, 62px); }
  .section-heading h2, .philosophy h2, .search-copy h2, .contact h2,
  .exam-intro h2, .boar-feature h2 { font-size: clamp(40px, 12vw, 52px); }
}

@media (prefers-contrast: more) {
  :root { --muted: #46514d; --line: rgba(20,30,27,.35); }
  .program-block, .program-subjects li { border-color: rgba(20,30,27,.35); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Rechtliche Unterseiten */
.legal-page { background: var(--paper); color: var(--ink); }
.legal-header {
  align-items: center; border-bottom: 1px solid var(--line); display: flex;
  justify-content: space-between; min-height: 94px; padding: 18px clamp(24px, 5vw, 98px);
}
.legal-header .brand-logo { height: auto; max-height: 62px; width: min(280px, 58vw); }
.legal-back { border-bottom: 1px solid currentColor; font-size: 14px; padding: 8px 0; }
.legal-main { margin: 0 auto; max-width: 1120px; padding: clamp(56px, 8vw, 110px) clamp(24px, 5vw, 70px); }
.legal-title { border-bottom: 1px solid var(--line); margin-bottom: clamp(38px, 6vw, 70px); padding-bottom: clamp(28px, 4vw, 48px); }
.legal-title h1 { color: var(--forest); font-size: clamp(42px, 7vw, 82px); line-height: 1; margin: 12px 0 18px; }
.legal-title > p:last-child { color: var(--muted); }
.legal-content { max-width: 820px; }
.legal-content section { border-bottom: 1px solid var(--line); padding: 0 0 34px; margin: 0 0 34px; }
.legal-content h2 { color: var(--forest); font-size: clamp(24px, 3vw, 34px); line-height: 1.2; margin: 0 0 18px; }
.legal-content p, .legal-content li { font-size: 16px; line-height: 1.75; }
.legal-content a { text-decoration: underline; text-underline-offset: 3px; }
.legal-note { background: #ece5d8; border-left: 4px solid var(--clay); line-height: 1.65; margin-top: 42px; padding: 22px 24px; }
.legal-footer { align-items: center; background: var(--forest); color: var(--cream); display: grid; gap: 22px; grid-template-columns: 1fr auto 1fr; padding: 38px clamp(24px, 5vw, 98px); }
.legal-footer > div:last-child { display: flex; flex-wrap: wrap; gap: 18px; justify-content: flex-end; }
.legal-footer a { color: var(--cream); }
footer > div:last-child { align-items: center; display: flex; flex-wrap: wrap; gap: 16px; justify-content: flex-end; }
@media (max-width: 760px) {
  .legal-header { min-height: 78px; padding: 14px 20px; }
  .legal-header .brand-logo { max-height: 50px; width: min(220px, 55vw); }
  .legal-back { font-size: 13px; }
  .legal-main { padding: 48px 22px 70px; }
  .legal-content p, .legal-content li { font-size: 15px; line-height: 1.7; }
  .legal-footer { align-items: start; grid-template-columns: 1fr; padding: 34px 22px; }
  .legal-footer > div:last-child { justify-content: flex-start; }
  footer > div:last-child { justify-content: flex-start; }
}


/* Minimaler, einheitlicher Footer */
.site-footer-minimal {
  align-items: center;
  background: var(--forest-deep, #173b31);
  color: rgba(244, 239, 229, .78);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  min-height: auto;
  padding: 22px clamp(22px, 5vw, 84px);
}
.site-footer-minimal p { font-size: 12px; letter-spacing: .04em; margin: 0; }
.site-footer-minimal nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.site-footer-minimal a { color: inherit; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.site-footer-minimal a:hover { color: #fffaf1; text-decoration: underline; text-underline-offset: 4px; }
.site-footer-minimal a:focus-visible { outline: 3px solid #c36e4d; outline-offset: 4px; }
@media (max-width: 700px) {
  .site-footer-minimal { align-items: flex-start; flex-direction: column; padding: 22px; }
  .site-footer-minimal nav { gap: 10px 16px; }
}
