:root {
  --paper: #F7F4F1;
  --card: #FFFCF8;
  --ink: #3D0810;
  --ink-deep: #1C070B;
  --muted: #6E4A52;
  --gold: #C9A06E;
  --gold-soft: #E4C9A4;
  --line: color-mix(in srgb, var(--ink) 18%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 55%, transparent);
  --overlay: color-mix(in srgb, var(--ink-deep) 65%, transparent);
  --header-h: 5.5rem;
  --rail-w: clamp(16.5rem, 24vw, 20rem);
  --ease: cubic-bezier(.4, 0, .2, 1);
  /* Font tokens live in fonts.css (Salt: bentonSans + tiemposHeadline) */
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-muted: var(--muted);
  --surface: var(--card);
  --focus: var(--gold);
}

html[data-theme="dark"] {
  --bg: #1C070B;
  --fg: #F6EFE6;
  --fg-muted: #C9A8AE;
  --surface: #2A0C12;
  --line: color-mix(in srgb, var(--gold) 28%, transparent);
  --line-strong: color-mix(in srgb, var(--gold) 55%, transparent);
  --overlay: color-mix(in srgb, #000 55%, transparent);
  --paper: #1C070B;
  --card: #2A0C12;
  --ink: #F6EFE6;
  --muted: #C9A8AE;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--default-font-family);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--gold); }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--gold); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--gold) 40%, transparent); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--ink-deep); color: var(--gold-soft);
  padding: .6rem 1rem; transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ——— Header (Salt-like thin editorial bar) ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0 clamp(1rem, 3vw, 2rem);
  max-width: 100%;
  position: relative;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  justify-self: start;
  grid-column: 1;
  line-height: 0;
}
.site-logo__img {
  width: auto;
  height: 3.75rem;
  max-width: min(18rem, 55vw);
  aspect-ratio: 4 / 1;
  object-fit: contain;
  object-position: left center;
  border: 0;
  display: block;
}
.site-logo__text { display: none; }
.site-logo__name {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: .22em;
  font-size: .95rem;
}
.site-logo__tag {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: .08em;
  font-size: .62rem;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: .15rem;
}

.site-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin: 0;
  position: static;
  transform: none;
  left: auto;
  z-index: 1;
  justify-self: center;
  grid-column: 2;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: .04em;
  font-size: .78rem;
  text-transform: uppercase;
}
.site-nav > a,
.site-nav__trigger {
  text-decoration: none;
  padding: .35rem 0;
  border-bottom: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.site-nav > a:hover,
.site-nav > a.is-active,
.site-nav__dropdown.is-active .site-nav__trigger,
.site-nav__dropdown.is-open .site-nav__trigger {
  border-bottom-color: var(--gold);
  color: var(--fg);
}
.site-nav__dropdown { position: relative; }
.site-nav__chevron {
  display: inline-block;
  width: .45rem;
  height: .45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform .2s var(--ease);
  opacity: .7;
}
.site-nav__dropdown.is-open .site-nav__chevron {
  transform: rotate(-135deg) translateY(-1px);
}

/* Salt-style full-width mega menu */
.mega-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  width: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--ink-deep) 8%, transparent);
  z-index: 55;
}
.site-header.is-mega-open {
  background: var(--surface);
  backdrop-filter: none;
}
.site-header.is-mega-open .mega-menu,
.mega-menu:not([hidden]) {
  display: block;
}
.mega-menu__grid {
  display: grid;
  grid-template-columns: minmax(11rem, 1.05fr) minmax(12rem, 1fr) minmax(12rem, 1fr);
  width: 100%;
  margin: 0;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  box-sizing: border-box;
  min-height: 17rem;
}
.mega-menu__col {
  padding: 2.1rem 1.85rem 2.4rem;
  border-left: 1px solid var(--line);
}
.mega-menu__col:first-child { border-left: 0; padding-left: .25rem; }
.mega-menu__col:last-child { padding-right: .25rem; }
.mega-menu__heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  text-decoration: none;
  text-transform: none;
  color: var(--fg);
}
.mega-menu__heading:hover { color: var(--gold); }
.mega-menu__label {
  margin: 0 0 1.25rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  text-transform: none;
}
.mega-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.mega-menu__list a {
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg);
}
.mega-menu__list a:hover { color: var(--gold); }
.mega-menu__all {
  color: var(--fg-muted) !important;
  font-size: .92rem !important;
  margin-top: .35rem;
}

@media (max-width: 900px) {
  .mega-menu__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .mega-menu__col {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-right: 0;
  }
  .mega-menu__col:first-child { border-top: 0; }
}

.site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .45rem;
  margin-left: 0;
  position: relative;
  z-index: 2;
  justify-self: end;
  grid-column: 3;
  flex-shrink: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 0;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  padding: .45rem .5rem;
}
.icon-btn__hint {
  font-family: var(--font-label);
  font-size: .65rem;
  letter-spacing: .08em;
  color: var(--fg-muted);
  display: none;
}
html[data-theme="light"] .icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: none; }

.lang-switch {
  font-family: var(--font-label);
  font-weight: 300;
  letter-spacing: .14em;
  font-size: .78rem;
  text-decoration: none;
  padding: .4rem .55rem;
  border: 1px solid var(--line);
}
.lang-switch:hover { border-color: var(--gold); color: var(--fg); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  padding: .45rem .7rem;
  font-family: var(--font-label);
  font-weight: 300;
  letter-spacing: .1em;
  font-size: .72rem;
  text-transform: uppercase;
}
.menu-toggle__lines { display: flex; flex-direction: column; gap: 4px; width: 14px; }
.menu-toggle__lines i { display: block; height: 1px; background: currentColor; }

.site-header__cta { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .7rem 1.15rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-label);
  font-weight: 400;
  letter-spacing: .08em;
  font-size: .78rem;
  text-transform: uppercase;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--gold {
  background: var(--gold);
  color: var(--ink-deep);
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-soft); color: var(--ink-deep); }
.btn--ink {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
html[data-theme="dark"] .btn--ink { background: var(--gold); color: var(--ink-deep); border-color: var(--gold); }
.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--fg);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* Drawer */
.site-drawer[hidden] { display: none; }
.site-drawer {
  position: fixed; inset: 0; z-index: 80;
  background: var(--overlay);
}
.site-drawer__panel {
  margin-left: auto;
  width: min(100%, 26rem);
  height: 100%;
  height: 100dvh;
  background: var(--bg);
  border-left: 1px solid var(--line-strong);
  padding: 1.25rem 1.5rem max(2rem, env(safe-area-inset-bottom));
  padding-top: max(1.25rem, env(safe-area-inset-top));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  animation: slideIn .25s var(--ease);
}
@keyframes slideIn { from { transform: translateX(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.site-drawer__top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
  font-family: var(--font-label);
  letter-spacing: .2em;
}
.site-drawer__nav { display: flex; flex-direction: column; gap: .15rem; }
.site-drawer__nav > a,
.site-drawer__nav summary {
  display: block;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-family: var(--font-label);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .9rem;
  cursor: pointer;
  list-style: none;
}
.site-drawer__nav summary::-webkit-details-marker { display: none; }
.site-drawer__sub { display: flex; flex-direction: column; padding: .35rem 0 .85rem .75rem; }
.site-drawer__sub a {
  padding: .45rem 0;
  text-decoration: none;
  color: var(--fg-muted);
  font-size: .95rem;
}
.site-drawer__nav .btn { margin-top: 1.25rem; }

/* Search modal */
.search-modal[hidden] { display: none; }
.search-modal {
  position: fixed; inset: 0; z-index: 90;
  background: var(--overlay);
  display: grid; place-items: start center;
  padding-top: 12vh;
}
.search-modal__panel {
  width: min(40rem, calc(100% - 2rem));
  background: var(--bg);
  border: 1px solid var(--line-strong);
  padding: 1rem;
}
.search-modal__panel form { display: flex; gap: .5rem; }
.search-modal__panel input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  padding: .75rem .25rem;
  outline: none;
  font-size: 1rem;
}
.search-modal__panel input:focus { border-bottom-color: var(--gold); }

/* Right section rail — Salt: compact inactive, tall colored active */
.section-rail {
  --rail-active-fg: #1C070B;
  --rail-c-01: #E8D4A8;
  --rail-c-02: #C9A06E;
  --rail-c-03: #9EC5E8;
  --rail-c-04: #E4B8BE;
  --rail-c-05: #D8C4B0;
  --rail-c-06: #C4B8D8;
  --rail-c-07: #B9CFB4;
  display: none;
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 40;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  border-left: 1px solid var(--line-strong);
  background: var(--bg);
  overflow: hidden;
}
.section-rail__item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: .35rem;
  min-height: 0;
  margin: 0;
  padding: .85rem 1.1rem 1rem;
  text-decoration: none;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  border-radius: 0;
  transition:
    flex-grow .45s var(--ease),
    min-height .45s var(--ease),
    padding .35s var(--ease),
    background .25s var(--ease),
    color .25s var(--ease),
    margin .35s var(--ease),
    border-radius .25s var(--ease),
    border-color .25s var(--ease);
}
.section-rail__item:first-child { border-top-color: transparent; }
.section-rail__item:hover:not(.is-active) {
  color: var(--fg);
  background: color-mix(in srgb, var(--gold) 8%, transparent);
}
.section-rail__num {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .06em;
  line-height: 1;
  color: var(--fg);
}
.section-rail__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  line-height: 1.2;
  letter-spacing: -.01em;
}
.section-rail__item.is-active {
  flex: 1 1 auto;
  min-height: 11rem;
  justify-content: space-between;
  gap: 0;
  margin: .45rem .5rem .45rem .4rem;
  padding: 1.1rem 1.15rem 1.25rem;
  border: 0;
  border-radius: .75rem;
  color: var(--rail-active-fg);
  box-shadow: none;
}
.section-rail__item.is-active .section-rail__num,
.section-rail__item.is-active .section-rail__title {
  color: var(--rail-active-fg);
}
.section-rail__item.is-active .section-rail__num::after {
  content: "";
  display: block;
  width: .4rem;
  height: .4rem;
  margin-top: .85rem;
  border-radius: 50%;
  background: currentColor;
}
.section-rail__item[data-section="section-01"].is-active { background: var(--rail-c-01); }
.section-rail__item[data-section="section-02"].is-active { background: var(--rail-c-02); }
.section-rail__item[data-section="section-03"].is-active { background: var(--rail-c-03); }
.section-rail__item[data-section="section-04"].is-active { background: var(--rail-c-04); }
.section-rail__item[data-section="section-05"].is-active { background: var(--rail-c-05); }
.section-rail__item[data-section="section-06"].is-active { background: var(--rail-c-06); }
.section-rail__item[data-section="section-07"].is-active { background: var(--rail-c-07); }

body.has-section-nav #main {
  padding-right: 0;
}

/* Footer — full bleed; rail stops above it (see app.js pinRailToFooter) */
.site-footer {
  position: relative;
  z-index: 45;
  width: 100%;
  border-top: 1px solid var(--line-strong);
  margin-top: 0;
  background: var(--bg);
}
.page-wrap {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}
.page-wrap--narrow { width: min(46rem, calc(100% - 2rem)); }
.page-kicker {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: none;
  font-size: .95rem;
  color: var(--fg-muted);
  margin: 0 0 .75rem;
}
.page-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.12;
  margin: 0 0 1.35rem;
  letter-spacing: -.02em;
}
.page-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 40rem;
  margin: 0 0 2rem;
}
.page-kicker a {
  color: inherit;
  text-decoration: none;
}
.page-kicker a:hover { color: var(--gold); }
.program-cta {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.program-cta p { margin: 0 0 1rem; color: var(--fg-muted); max-width: 36rem; }
.program-cta .btn { margin-right: .75rem; margin-bottom: .5rem; }
.related-programs {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.related-programs__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  margin: 0 0 1.25rem;
}
.card__meta {
  margin: .65rem 0 0;
  font-size: .85rem;
  color: var(--fg-muted);
}

/* Salt-like content prose (Benton → IBM Plex Sans) */
.prose {
  max-width: 50ch;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 400;
  color: var(--fg);
}
.prose p { margin: 0 0 1.1rem; color: var(--fg); }
.prose a { color: var(--gold); }
.prose strong { font-weight: 600; }
.prose em { font-style: italic; }
.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.25;
  color: var(--fg);
  margin: 1.75rem 0 .85rem;
}
.prose h1 { font-size: 1.875rem; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }
.prose ul,
.prose ol { margin: 0 0 1.1rem; padding-left: 1.25rem; }
.prose li { margin: 0 0 .4rem; }
.prose > :first-child { margin-top: 0; }
.prose--on-dark,
.prose--on-dark p,
.prose--on-dark li {
  color: color-mix(in srgb, #F6EFE6 88%, transparent);
}
.prose--on-dark a { color: var(--gold-soft); }
.home-section__intro {
  max-width: 42rem;
  margin: 0 0 1.5rem;
}
.home-media {
  margin: 0 0 1.75rem;
  max-width: 100%;
}
.home-media__image {
  margin: 0;
}
.home-media__image img {
  display: block;
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  border: 1px solid var(--line);
}
.home-media__video video {
  display: block;
  width: 100%;
  max-height: 28rem;
  background: #000;
  border: 1px solid var(--line);
}
.home-media__video--embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
}
.home-media__video--embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.home-media--hero,
.home-media--hero .home-media__image,
.home-media--hero .home-media__video,
.home-media--hero .home-media__video--embed {
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  border: 0;
}

.prose--faq {
  max-width: 42rem;
}
.prose--faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.prose--faq details:first-child { padding-top: 0; }
.prose--faq summary {
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.prose--faq summary::-webkit-details-marker { display: none; }
.prose--faq summary::after {
  content: "+";
  font-weight: 400;
  color: var(--gold);
  font-size: 1.25rem;
  line-height: 1;
}
.prose--faq details[open] summary::after { content: "–"; }
.prose--faq details p {
  margin: .85rem 0 0;
  color: var(--fg-muted);
  font-size: 1rem;
}

/* Dedicated FAQ page */
.faq-page__intro {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}
.faq-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .65rem;
  margin-top: .25rem;
}
.faq-nav__link {
  display: inline-flex;
  align-items: center;
  padding: .4rem .85rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  text-decoration: none;
  color: var(--fg-muted);
  font-family: var(--font-label);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.faq-nav__link:hover {
  color: var(--gold);
  border-color: color-mix(in srgb, var(--gold) 50%, var(--line));
}
.faq-page__layout {
  display: grid;
  gap: 2.75rem;
  max-width: 44rem;
}
.faq-group__title {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  margin: 0 0 1rem;
  letter-spacing: -.01em;
}
.faq-group__num {
  font-family: var(--font-label);
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--gold);
  font-weight: 500;
}
.faq-group__list {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item__q {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.02rem, 1.2vw, 1.12rem);
  line-height: 1.4;
  color: var(--fg);
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
  content: "+";
  flex-shrink: 0;
  font-weight: 400;
  color: var(--gold);
  font-size: 1.35rem;
  line-height: 1.1;
  margin-top: .05rem;
  transition: transform .2s ease;
}
.faq-item[open] .faq-item__q::after {
  content: "–";
}
.faq-item__a {
  padding: 0 0 1.25rem;
  max-width: 38rem;
}
.faq-item__a p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}
.faq-page__cta {
  max-width: 44rem;
}

/* —— About page —— */
.about-page__intro {
  margin-bottom: 3rem;
}
.about-story {
  display: grid;
  gap: 0;
  margin: 0 0 3.5rem;
  border-top: 1px solid var(--line);
}
.about-story__block {
  display: grid;
  gap: 1rem;
  grid-template-columns: 3.5rem 1fr;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}
.about-story__num {
  font-family: var(--font-label);
  font-size: .75rem;
  letter-spacing: .14em;
  color: var(--gold);
  padding-top: .35rem;
}
.about-story__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  margin: 0 0 .75rem;
  letter-spacing: -.015em;
}
.about-story__copy p {
  margin: 0;
  max-width: 42rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--fg-muted);
}
.about-pillars {
  margin: 0 0 3.5rem;
}
.about-pillars__grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, 1fr);
  background: var(--line);
  border: 1px solid var(--line);
}
.about-pillar {
  background: var(--surface);
  padding: 1.5rem 1.35rem;
  min-height: 11rem;
}
.about-pillar__label {
  font-family: var(--font-label);
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--gold);
  margin-bottom: .85rem;
}
.about-pillar h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  margin: 0 0 .65rem;
  letter-spacing: -.015em;
}
.about-pillar p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--fg-muted);
}
.about-steps {
  margin: 0 0 3.5rem;
}
.about-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  background: var(--line);
  border: 1px solid var(--line);
  counter-reset: about-step;
}
.about-steps__item {
  background: var(--surface);
  padding: 1.5rem 1.35rem;
  counter-increment: about-step;
}
.about-steps__item::before {
  content: counter(about-step, decimal-leading-zero);
  display: block;
  font-family: var(--font-label);
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--gold);
  margin-bottom: .85rem;
}
.about-steps__item h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0 0 .55rem;
}
.about-steps__item p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--fg-muted);
}
.about-place {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.35fr .85fr;
  margin: 0 0 3.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.about-place__copy h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 1rem;
}
.about-place__copy p {
  margin: 0 0 1.25rem;
  max-width: 36rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--fg-muted);
}
.about-place__links {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
.about-place__links .btn { margin: 0; }
.about-place__stats {
  margin-top: .35rem;
}
.about-team {
  margin: 0 0 3rem;
}
.about-team__grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, 1fr);
  background: var(--line);
  border: 1px solid var(--line);
}
.about-team__card {
  background: var(--surface);
  padding: 1.5rem 1.35rem;
  min-height: 10rem;
}
.about-team__card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 0 0 .55rem;
}
.about-team__card p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 1.02rem;
  line-height: 1.55;
}
.about-page__cta {
  max-width: 44rem;
}

@media (max-width: 63.99rem) {
  .about-pillars__grid,
  .about-steps__list,
  .about-team__grid {
    grid-template-columns: 1fr;
  }
  .about-place {
    grid-template-columns: 1fr;
  }
  .about-story__block {
    grid-template-columns: 2.5rem 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item__q::after { transition: none; }
}

@media (min-width: 64rem) {
  .prose { font-size: 1.25rem; line-height: 1.7; }
  .prose h1 { font-size: 2.25rem; }
  .prose h2 { font-size: 1.875rem; }
}

/* Content pages: list/card copy matches Salt body */
.page-wrap .card h3,
.page-wrap .list-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -.015em;
}
.page-wrap .card p,
.page-wrap .list-card p,
.page-wrap .approach-grid p,
.page-wrap .teaser p,
.page-wrap .contact-aside p,
.page-wrap .meta-row {
  font-family: var(--font-body);
}
.page-wrap .card__label,
.page-wrap .list-card__date,
.page-wrap .meta-row strong {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: none;
}

/* Home sections */
.home-section {
  min-height: auto;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + .5rem);
}
.home-section__inner {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vh, 4.5rem) 0;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .28;
}
.hero__media .home-media,
.hero__media .home-media__image,
.hero__media .home-media__video,
.hero__media img,
.hero__media video,
.hero__media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  margin: 0;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent) 0%, var(--bg) 88%);
}
.hero--has-media {
  background: var(--bg);
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0 3.5rem;
}
.hero__brand {
  font-family: var(--font-label);
  letter-spacing: .32em;
  font-weight: 300;
  font-size: .85rem;
  margin-bottom: 1.25rem;
  color: var(--gold);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.08;
  max-width: 14ch;
  margin: 0 0 1.25rem;
  color: var(--fg);
  letter-spacing: -.02em;
}
.hero__text {
  max-width: 36rem;
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--fg-muted);
  margin: 0 0 1.75rem;
}
.hero__text.prose,
.hero__text.prose p,
.hero__text.prose li {
  color: var(--fg-muted);
}
.hero__text.prose a {
  color: var(--gold);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0;
}
.section-head__num {
  font-family: var(--font-label);
  letter-spacing: .14em;
  color: var(--gold);
  font-size: .8rem;
  display: block;
  margin-bottom: .35rem;
}

.approach-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.4fr .8fr;
}
.approach-grid__copy .prose {
  margin: 0 0 1.25rem;
  font-size: 1.2rem;
  line-height: 1.65;
  max-width: 40rem;
}
.approach-grid p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.65;
  max-width: 40rem;
  font-weight: 400;
}
.stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.stat-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-label);
  letter-spacing: .04em;
}
.stat-list strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gold);
}

.card-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, 1fr);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
}
.card {
  background: transparent;
  padding: 1.35rem 1.15rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 12rem;
  text-decoration: none;
  color: inherit;
  transition: background .2s var(--ease);
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--line);
}
.card:nth-child(3n + 1) {
  border-left: 0;
  padding-left: 0;
}
.card:nth-child(3n) {
  padding-right: 0;
}
.card:nth-child(n + 4) {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-top: 0;
}
.card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: color-mix(in srgb, var(--ink) 8%, var(--surface));
  margin: 0 0 1rem;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s var(--ease);
}
.card:hover .card__media img {
  transform: scale(1.03);
}
.card__body {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card:not(.card--has-media) .card__body {
  padding: 0;
}
.card:hover {
  background: transparent;
  color: inherit;
}
.card:hover h3 {
  color: var(--gold);
}
.card__label {
  font-family: var(--font-label);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: .75rem;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 0 0 .65rem;
  line-height: 1.25;
}
.card p {
  margin: 0;
  color: var(--fg-muted);
  font-size: .95rem;
  flex: 1;
}
.card__more {
  margin-top: 1.25rem;
  font-family: var(--font-label);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .7rem;
  color: var(--gold);
}
.card__tags {
  margin-top: .65rem;
}
.program-hero-image {
  margin: 0 0 1.75rem;
  overflow: hidden;
  border: 1px solid var(--line);
}
.program-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 22rem;
  object-fit: cover;
}

.list-cards {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.list-card {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.list-card:hover { color: inherit; }
.list-card:hover h3 { color: var(--gold); }
.list-card__date {
  font-family: var(--font-label);
  letter-spacing: .06em;
  font-size: .78rem;
  color: var(--fg-muted);
}
.list-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0 0 .35rem;
  font-size: 1.35rem;
}
.list-card p { margin: 0; color: var(--fg-muted); font-size: .95rem; }

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .65rem;
  margin: 0 0 2rem;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: .85rem 0 0;
}
.tag-row--inline { margin: .55rem 0 0; }
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .7rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  text-decoration: none;
  color: var(--fg-muted);
  font-family: var(--font-label);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .15s ease, border-color .15s ease;
}
a.tag-pill:hover {
  color: var(--gold);
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
}
.tag-pill span {
  color: var(--fg-muted);
  opacity: .75;
  font-variant-numeric: tabular-nums;
}
.tag-pill--muted {
  border-color: transparent;
  background: color-mix(in srgb, var(--fg) 5%, transparent);
  pointer-events: none;
}

.teaser {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: start;
}
.teaser__aside {
  padding: 0;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}
.teaser__aside h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  margin: 0 0 .75rem;
  color: var(--fg);
  letter-spacing: -.015em;
}
.teaser__aside .prose,
.teaser__aside .prose p,
.teaser__aside .prose li {
  color: var(--fg-muted);
}

.contact-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.form {
  display: grid;
  gap: .9rem;
}
.form label span,
.form .label {
  display: block;
  font-family: var(--font-label);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .68rem;
  margin-bottom: .35rem;
  color: var(--fg-muted);
}
.form input,
.form select,
.form textarea {
  width: 100%;
  max-width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  padding: .85rem 0;
  outline: none;
  border-radius: 0;
  font-size: 1rem;
}
.form input:focus,
.form select:focus,
.form textarea:focus { border-bottom-color: var(--gold); }
.form textarea { min-height: 7rem; resize: vertical; }
.check {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  font-size: .9rem;
  color: var(--fg-muted);
}
.check input { margin-top: .25rem; }
.form-note { font-size: .95rem; }
.form-note--ok { color: color-mix(in srgb, #2f6b3a 80%, var(--fg)); }
.form-note--err { color: #a33; }
.contact-aside {
  border-left: 1px solid var(--line);
  padding-left: 2rem;
}
.contact-aside h3 {
  font-family: var(--font-label);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .75rem;
  margin: 0 0 1rem;
  color: var(--fg-muted);
}
.contact-aside p { margin: 0 0 .65rem; }
.contact-map {
  margin-top: 1.35rem;
  width: 100%;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--ink) 6%, var(--surface));
  overflow: hidden;
  aspect-ratio: 5 / 4;
  max-height: 18rem;
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(.15) contrast(1.02);
}

/* Footer columns */
.site-footer__grid {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.site-footer__col h2 {
  font-family: var(--font-label);
  font-weight: 300;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .72rem;
  margin: 0 0 1rem;
  color: var(--fg-muted);
}
.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer__col li { margin: 0 0 .55rem; }
.site-footer__col a {
  text-decoration: none;
  font-size: .95rem;
}
.site-footer__col a:hover { color: var(--gold); }
.site-footer__brand {
  display: inline-flex;
  margin: 0 0 .85rem;
  line-height: 0;
  text-decoration: none;
}
.site-footer__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 18rem);
  aspect-ratio: 4 / 1;
  object-fit: contain;
  object-position: left center;
}
.site-footer__tagline {
  margin: 0 0 1.35rem;
  font-family: inherit;
  font-weight: 400;
  font-size: .95rem;
  line-height: 1.45;
  color: var(--fg-muted);
  max-width: 18rem;
}
.site-footer__col--newsletter > h2 {
  margin-top: .15rem;
}
.site-footer__lead {
  margin: 0 0 1rem;
  color: var(--fg-muted);
  font-size: .95rem;
}
.site-footer__lead.prose,
.site-footer__lead.prose p {
  margin: 0 0 .75rem;
  color: var(--fg-muted);
  font-size: .95rem;
}
.site-footer__lead.prose p:last-child { margin-bottom: 0; }
.site-footer__lead.prose a { color: var(--gold); }
.site-footer__contact-mini {
  margin-top: 1.25rem;
  font-size: .9rem;
  color: var(--fg-muted);
}
.newsletter-form__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: .5rem;
  margin-bottom: .85rem;
}
.newsletter-form input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  padding: .65rem .15rem;
  font: inherit;
  color: inherit;
  outline: none;
}
.newsletter-form input[type="email"]:focus { border-bottom-color: var(--gold); }
.newsletter-form__row .btn {
  flex: 0 0 auto;
  white-space: nowrap;
  padding-left: .9rem;
  padding-right: .9rem;
}
.site-footer__bottom {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 1.75rem;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--fg-muted);
  line-height: 1.5;
}
.site-footer__bottom p {
  margin: 0;
}
.site-footer__bottom a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .15em;
}
.site-footer__bottom a:hover {
  color: var(--gold);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin: 1.5rem 0 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
  color: var(--fg-muted);
}
.meta-row strong {
  display: block;
  font-family: var(--font-label);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: .2rem;
}

.admin-body { background: #f3eee8; color: #1c070b; }
.admin-shell { display: grid; grid-template-columns: 14rem 1fr; min-height: 100vh; }
.admin-nav {
  background: #1c070b;
  color: #f6efe6;
  padding: 1.5rem 1rem;
}
.admin-nav a {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: .45rem .5rem;
  font-size: .92rem;
  border-left: 2px solid transparent;
}
.admin-nav a:hover,
.admin-nav a.is-active { border-left-color: #c9a06e; color: #e4c9a4; }
.admin-nav__logout {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-left: 2px solid transparent;
  color: inherit;
  font: inherit;
  font-size: .92rem;
  padding: .45rem .5rem;
  cursor: pointer;
}
.admin-nav__logout:hover { border-left-color: #c9a06e; color: #e4c9a4; }
.admin-main { padding: 1.5rem; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; }
.admin-table th, .admin-table td {
  border-bottom: 1px solid #e6ddd4;
  padding: .65rem .75rem;
  text-align: left;
  font-size: .92rem;
}
.admin-card {
  background: #fff;
  border: 1px solid #e0d6cc;
  padding: 1.25rem;
  max-width: 40rem;
}
.admin-section {
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ebe4db;
}
.admin-section h2 {
  font-size: .95rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #666;
  margin: 0 0 1rem;
}
.admin-hint {
  font-size: .85rem;
  color: #777;
  margin: 0 0 .75rem;
  line-height: 1.45;
}
.admin-media {
  border: 1px solid #e4dcd2;
  padding: .85rem 1rem 1rem;
  margin: 1rem 0;
}
.admin-media legend {
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #666;
  padding: 0 .35rem;
}
.admin-media__preview img {
  max-height: 120px;
  border: 1px solid #ddd;
  display: block;
}
.admin-rich { display: block; margin-bottom: 1rem; }
.admin-rich .js-rich-host {
  background: #fff;
  border: 1px solid #d8cfc4;
  margin-top: .35rem;
}
.admin-rich .ql-toolbar.ql-snow {
  border-color: #d8cfc4;
  background: #faf7f3;
}
.admin-rich .ql-container.ql-snow {
  border-color: #d8cfc4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  min-height: 8rem;
}
.admin-gallery {
  border: 1px solid #e4dcd2;
  padding: .85rem 1rem 1rem;
  margin: 1rem 0 1.5rem;
}
.admin-gallery legend {
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #666;
  padding: 0 .35rem;
}
.admin-gallery__list {
  display: grid;
  gap: 1rem;
  margin: 0 0 1rem;
}
.admin-gallery__item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: .85rem;
  align-items: start;
  padding: .75rem;
  background: #faf7f3;
  border: 1px solid #ebe4db;
}
.admin-gallery__item img {
  width: 7rem;
  height: 5rem;
  object-fit: cover;
  border: 1px solid #ddd;
}
.admin-gallery__meta label { margin-bottom: .45rem; }
.admin-gallery code {
  font-size: .85em;
  background: #f0ebe4;
  padding: .1rem .3rem;
}

/* Salt-inspired scrollable gallery */
.ote-gallery {
  display: block;
  margin: 1.75rem 0 2.25rem;
  width: 100%;
}
.ote-gallery__viewport {
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
}
.ote-gallery__track {
  display: flex;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.ote-gallery__slide {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
}
.ote-gallery__frame {
  position: relative;
  width: 100%;
  background: color-mix(in srgb, var(--fg) 4%, var(--bg));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(14rem, 48vw, 32rem);
  max-height: min(70vh, 36rem);
  overflow: hidden;
}
.ote-gallery__frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: min(70vh, 36rem);
  object-fit: contain;
  margin: 0 auto;
}
.ote-gallery__caption {
  margin: .65rem 0 0;
  font-size: .92rem;
  color: var(--fg-muted);
  font-family: var(--font-body);
}
.ote-gallery__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .65rem;
}
.ote-gallery__counter {
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--fg-muted);
  letter-spacing: .02em;
}
.ote-gallery__nav {
  display: flex;
  gap: .4rem;
}
.ote-gallery__btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.ote-gallery__btn:hover:not(:disabled) {
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  border-color: var(--gold);
}
.ote-gallery__btn:disabled {
  opacity: .35;
  cursor: default;
}
.prose .ote-gallery {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

.badge {
  display: inline-block;
  padding: .15rem .45rem;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid currentColor;
}
.badge--on { color: #2f6b3a; }
.badge--off { color: #888; }

/* ——— Responsive ——— */
@media (min-width: 960px) {
  .site-nav { display: flex; }
  .site-header__cta { display: inline-flex; }
  .icon-btn__hint { display: inline; }
  .menu-toggle { display: none; }
}

@media (max-width: 959px) {
  .site-header__bar {
    display: flex;
    gap: .65rem;
  }
  .site-header__actions {
    margin-left: auto;
    grid-column: auto;
    gap: .25rem;
  }
  .site-nav { display: none !important; }
  .mega-menu { display: none !important; }
  .site-header.is-mega-open { background: color-mix(in srgb, var(--bg) 92%, transparent); }
  .menu-toggle { display: inline-flex; }
  .site-header__cta { display: none; }
  .icon-btn__hint { display: none !important; }
}

@media (min-width: 1100px) {
  .section-rail { display: flex; }
  body.has-section-nav #main {
    padding-right: var(--rail-w);
  }
}

@media (max-width: 1099px) {
  .card-grid,
  .list-cards { grid-template-columns: repeat(2, 1fr); }
  .card {
    border-left: 1px solid var(--line);
    padding-left: 1.15rem;
    padding-right: 1.15rem;
    border-top: 0;
  }
  .card:nth-child(3n + 1),
  .card:nth-child(3n) {
    border-left: 1px solid var(--line);
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
  .card:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
  .card:nth-child(even) {
    padding-right: 0;
  }
  .card:nth-child(n + 3) {
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
  }
}

@media (max-width: 900px) {
  .approach-grid,
  .teaser,
  .contact-band,
  .site-footer__grid { grid-template-columns: 1fr; }
  .contact-aside {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
  }
  .list-card { grid-template-columns: 1fr; gap: .35rem; }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .home-section__inner,
  .hero__inner,
  .page-wrap {
    width: min(72rem, calc(100% - 1.5rem));
  }
  .site-footer__grid,
  .site-footer__bottom {
    width: min(72rem, calc(100% - 1.5rem));
  }
  .search-modal {
    padding-top: 18vh;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .search-modal__panel form {
    flex-direction: column;
  }
  .search-modal__panel .btn {
    width: 100%;
  }
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    padding: 1rem;
  }
  .admin-nav a {
    border-left: 0;
    border-bottom: 2px solid transparent;
    padding: .4rem .55rem;
  }
  .admin-nav a:hover,
  .admin-nav a.is-active {
    border-left-color: transparent;
    border-bottom-color: #c9a06e;
  }
  .admin-main { padding: 1rem; }
  .admin-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .card-grid,
  .list-cards { grid-template-columns: 1fr; }
  .card,
  .card:nth-child(n),
  .card:nth-child(odd),
  .card:nth-child(even),
  .card:nth-child(3n + 1),
  .card:nth-child(3n) {
    border-left: 0;
    padding-left: 0;
    padding-right: 0;
    border-top: 0;
  }
  .card:nth-child(n + 2) {
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
  }
  .site-logo__tag { display: none; }
  .site-logo__img {
    height: 3.15rem;
    max-width: min(15rem, 62vw);
  }
  :root {
    --header-h: 5rem;
  }
  .site-header__bar {
    min-height: 3.75rem;
    padding-left: max(.85rem, env(safe-area-inset-left));
    padding-right: max(.85rem, env(safe-area-inset-right));
  }
  .hero {
    min-height: auto;
  }
  .hero__inner {
    padding: 2.35rem 0 2.1rem;
  }
  .hero h1 {
    font-size: clamp(1.85rem, 9vw, 2.6rem);
    max-width: none;
  }
  .hero__text {
    font-size: 1.02rem;
    margin-bottom: 1.35rem;
  }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .home-section__inner {
    padding: 2rem 0;
  }
  .page-wrap {
    padding: 1.75rem 0 3rem;
  }
  .page-title {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
  }
  .section-head h2 {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }
  .approach-grid p {
    font-size: 1.05rem;
  }
  .card {
    min-height: 0;
  }
  .teaser__aside {
    padding-top: 1rem;
  }
  .teaser__aside h3 {
    font-size: 1.4rem;
  }
  .btn {
    min-height: 2.75rem;
    padding: .75rem 1rem;
  }
  .newsletter-form__row {
    flex-wrap: nowrap;
  }
  .newsletter-form__row .btn {
    width: auto;
    flex: 0 0 auto;
  }
  .site-drawer__panel {
    width: 100%;
    border-left: 0;
  }
  .site-footer__grid {
    padding: 2.25rem 0 1.5rem;
    gap: 1.75rem;
  }
  .lang-switch {
    padding: .45rem .5rem;
  }
  .menu-toggle span:first-child {
    display: none;
  }
  .menu-toggle {
    padding: .55rem .65rem;
  }
}

@media (max-width: 400px) {
  .site-logo__name {
    letter-spacing: .16em;
    font-size: .88rem;
  }
  .stat-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
  }
}

@media (hover: none) {
  .site-nav__dropdown:hover .site-nav__chevron {
    transform: rotate(45deg) translateY(-1px);
  }
}
