:root {
  --annex-header-height: 83px;
}

html {
  scroll-padding-top: calc(var(--annex-header-height) + 18px);
}

body.menu-open {
  overflow: hidden;
}

.section[id],
article[id] {
  scroll-margin-top: calc(var(--annex-header-height) + 18px);
}

.annex-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  background: rgba(239, 235, 227, 0.9);
  border-bottom: 1px solid rgba(18, 17, 15, 0.08);
  backdrop-filter: blur(18px);
}

.annex-nav {
  position: relative;
  width: min(1460px, 100%);
  min-height: var(--annex-header-height);
  margin: 0 auto;
  padding: 16px clamp(20px, 4vw, 58px);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
}

.annex-brand {
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.42em;
  white-space: nowrap;
}

.annex-nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
  color: var(--ink-soft, var(--ink, #12110f));
  font-size: 0.82rem;
  font-weight: 750;
}

.annex-nav-links a {
  opacity: 0.76;
}

.annex-nav-links a:hover,
.annex-nav-links a:focus-visible {
  opacity: 1;
}

.annex-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(18, 17, 15, 0.18);
  border-radius: 999px;
  background: rgba(248, 245, 238, 0.72);
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
}

.annex-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green, #6f7a43);
}

.annex-menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line, rgba(18, 17, 15, 0.13));
  border-radius: 50%;
  background: rgba(248, 245, 238, 0.82);
  align-items: center;
  justify-content: center;
}

.annex-menu-btn span,
.annex-menu-btn span::before,
.annex-menu-btn span::after {
  display: block;
  width: 18px;
  height: 2px;
  position: relative;
  background: var(--ink, #12110f);
  transition: 0.18s ease;
}

.annex-menu-btn span::before,
.annex-menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}

.annex-menu-btn span::before { top: -6px; }
.annex-menu-btn span::after { top: 6px; }
.annex-menu-btn[aria-expanded="true"] span { background: transparent; }
.annex-menu-btn[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.annex-menu-btn[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.annex-mobile-nav {
  display: none;
}

.section {
  padding: clamp(72px, 8vw, 112px) clamp(20px, 4vw, 58px);
}

.section h2 {
  font-size: clamp(2.7rem, 5.1vw, 5.35rem);
}

.hero {
  min-height: 92svh;
  padding-top: 126px;
}

.hero-inner {
  width: min(1380px, 100%);
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.78fr);
  gap: clamp(30px, 5vw, 70px);
}

.hero h1 {
  font-size: clamp(3.9rem, 7vw, 7rem);
}

.hero-copy {
  max-width: 820px;
}

.hero-intro {
  max-width: 720px;
}

.hero-panel {
  min-height: 560px;
}

.method-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.method-card {
  min-height: 285px;
}

.annex-final {
  background: var(--cream-light, #f8f5ee);
}

.annex-final-card {
  padding: clamp(34px, 6vw, 76px);
  border-radius: 40px;
  position: relative;
  overflow: hidden;
  background: var(--ink, #12110f);
  color: #fff;
  box-shadow: var(--shadow, 0 28px 90px rgba(18, 17, 15, 0.11));
}

.annex-final-card::after {
  content: "";
  position: absolute;
  width: 34rem;
  height: 34rem;
  right: -18rem;
  top: -20rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 122, 67, 0.32), transparent 64%);
  pointer-events: none;
}

.annex-final-card > * {
  position: relative;
  z-index: 1;
}

.annex-final .kicker {
  color: #d7dfb6;
}

.annex-final h2 {
  max-width: 950px;
  color: #fff;
}

.annex-final-copy {
  max-width: 760px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.04rem;
  line-height: 1.68;
}

.annex-final-copy p {
  margin: 0;
}

.annex-final-copy p + p {
  margin-top: 10px;
}

.annex-final-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 18px 24px;
  flex-wrap: wrap;
}

.annex-final .btn-primary {
  background: var(--cream-light, #f8f5ee);
  color: var(--ink, #12110f);
  box-shadow: none;
}

.annex-final-links {
  display: flex;
  align-items: center;
  gap: 12px 22px;
  flex-wrap: wrap;
}

.annex-final-links a {
  color: #d7dfb6;
  font-size: 0.88rem;
  font-weight: 850;
}

.annex-final-links a:hover {
  color: #fff;
}

.annex-support-band {
  margin-top: -32px;
  margin-bottom: 72px;
  padding: 22px 26px;
  border: 1px solid rgba(111, 122, 67, 0.24);
  border-radius: 24px;
  background: rgba(239, 235, 227, 0.76);
  color: var(--muted, #716b60);
  line-height: 1.65;
}

.annex-footer {
  padding: 28px clamp(20px, 4vw, 58px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--ink, #12110f);
  color: rgba(255, 255, 255, 0.68);
}

.annex-footer-inner {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  font-size: 0.82rem;
  line-height: 1.55;
}

.annex-footer a:hover {
  color: #fff;
}

.annex-mobile-sticky {
  display: none;
}

@media (max-width: 1040px) {
  .annex-nav {
    grid-template-columns: 1fr auto;
  }

  .annex-nav-links,
  .annex-header-cta {
    display: none;
  }

  .annex-menu-btn {
    display: flex;
  }

  .annex-mobile-nav {
    position: fixed;
    inset: var(--annex-header-height) 0 auto;
    padding: 18px clamp(20px, 4vw, 58px) 24px;
    display: none;
    gap: 0;
    background: rgba(239, 235, 227, 0.98);
    border-bottom: 1px solid var(--line, rgba(18, 17, 15, 0.13));
    box-shadow: 0 24px 60px rgba(18, 17, 15, 0.12);
  }

  .annex-mobile-nav[data-open="true"] {
    display: grid;
  }

  .annex-mobile-nav a {
    padding: 14px 2px;
    border-bottom: 1px solid var(--line, rgba(18, 17, 15, 0.13));
    font-weight: 800;
  }

  .annex-mobile-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 130px;
  }

  .hero-inner,
  .section-head,
  .program-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 410px;
  }

  .program-intro,
  .faq-intro {
    position: static;
  }
}

@media (max-width: 720px) {
  :root {
    --annex-header-height: 76px;
  }

  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .section {
    padding: 66px 18px;
  }

  .hero {
    padding: 112px 18px 46px;
  }

  .hero h1 {
    font-size: clamp(3rem, 14.5vw, 4.45rem);
  }

  .hero-inner {
    gap: 28px;
  }

  .hero-panel {
    min-height: 360px;
    border-radius: 30px;
  }

  .section h2 {
    font-size: clamp(2.55rem, 12vw, 4rem);
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .method-card {
    min-height: 0;
  }

  .annex-final-card {
    border-radius: 30px;
  }

  .annex-final-actions,
  .annex-final-links {
    display: grid;
    align-items: stretch;
  }

  .annex-final-actions .btn {
    width: 100%;
  }

  .annex-footer {
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }

  .annex-footer-inner {
    display: grid;
  }

  .annex-mobile-sticky {
    position: fixed;
    z-index: 35;
    left: 14px;
    right: 14px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 13px 18px;
    border-radius: 999px;
    background: var(--ink, #12110f);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 900;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
