/* SommerFilz — modern atelier design system */
:root {
  --ink: #1a2b24;
  --ink-soft: #3d5248;
  --forest: #2a4a3c;
  --sage: #5f7d6c;
  --mist: #e4ece6;
  --fog: #f0f5f1;
  --wool: #fbfcf9;
  --accent: #c46b4a;
  --accent-deep: #a35338;
  --line: rgba(42, 74, 60, 0.14);
  --shadow-soft: 0 18px 40px rgba(26, 43, 36, 0.08);
  --radius: 4px;
  --font-display: "Fraunces", "Palatino Linotype", Georgia, serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
  --nav-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 72rem;
  --text: 1.0625rem;
  --leading: 1.7;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text);
  line-height: var(--leading);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(95, 125, 108, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(196, 107, 74, 0.08), transparent 45%),
    linear-gradient(180deg, var(--fog) 0%, var(--wool) 35%, var(--mist) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--accent-deep);
}

h1,
h2,
h3,
.brand-word {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

p {
  margin: 0 0 1.1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--wool);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

/* ——— Nav: transparent over hero; horizontal desktop / drawer mobile ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: none;
  background-color: transparent;
  background-image: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  transition: background-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  background-color: transparent;
  box-shadow: none;
}

/* Solid chrome: non-hero pages, scrolled past hero, or mobile drawer open */
.site-header.is-solid,
.site-header.is-scrolled,
body.nav-open .site-header {
  background: rgba(251, 252, 249, 0.92);
  background-color: rgba(251, 252, 249, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

/*
 * Force clear bar over photo heroes at rest.
 * !important beats .is-solid / .is-scrolled / body.nav-open specificity wars
 * that previously left a frosted wool strip on mobile.
 */
body:not(.nav-open) .site-header.is-over-hero:not(.is-scrolled),
body:not(.nav-open) .site-header.is-over-hero:not(.is-scrolled) .header-inner {
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  height: 3.25rem;
  width: auto;
  max-width: min(42vw, 9.5rem);
  object-fit: contain;
  display: block;
  border-radius: 3px;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.custom-logo-link img,
.custom-logo {
  height: 3.25rem;
  width: auto;
  max-width: min(42vw, 9.5rem);
  object-fit: contain;
  display: block;
  border-radius: 3px;
}

.brand-word {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--forest);
}

/* Desktop: inline horizontal links */
.nav-desktop .nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop .nav-list a {
  position: relative;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-desktop .nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-desktop .nav-list a:hover,
.nav-desktop .nav-list a:focus-visible {
  color: var(--forest);
}

.nav-desktop .nav-list a:hover::after,
.nav-desktop .nav-list a:focus-visible::after,
.nav-desktop .nav-list a[aria-current="page"]::after,
.nav-desktop .nav-list .current-menu-item > a::after,
.nav-desktop .nav-list .current_page_item > a::after {
  transform: scaleX(1);
}

.nav-desktop .nav-list a[aria-current="page"],
.nav-desktop .nav-list .current-menu-item > a,
.nav-desktop .nav-list .current_page_item > a {
  color: var(--forest);
}

/* Transparent over dark hero: light nav chrome */
.site-header.is-over-hero:not(.is-scrolled) .nav-desktop .nav-list a {
  color: var(--wool);
}

.site-header.is-over-hero:not(.is-scrolled) .nav-desktop .nav-list a::after {
  background: var(--wool);
}

.site-header.is-over-hero:not(.is-scrolled) .nav-desktop .nav-list a:hover,
.site-header.is-over-hero:not(.is-scrolled) .nav-desktop .nav-list a:focus-visible,
.site-header.is-over-hero:not(.is-scrolled) .nav-desktop .nav-list a[aria-current="page"],
.site-header.is-over-hero:not(.is-scrolled) .nav-desktop .nav-list .current-menu-item > a,
.site-header.is-over-hero:not(.is-scrolled) .nav-desktop .nav-list .current_page_item > a {
  color: var(--wool);
}

/* Mobile chrome: hidden on desktop */
.nav-toggle,
.nav-backdrop,
.nav-drawer {
  display: none;
}

@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  /* Mobile: restate clear bar (beats any later mobile solid fills) */
  body:not(.nav-open) .site-header.is-over-hero:not(.is-scrolled),
  body:not(.nav-open) .site-header.is-over-hero:not(.is-scrolled) .header-inner {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
  }

  body:not(.nav-open) .site-header.is-over-hero:not(.is-scrolled) .brand-word {
    color: var(--wool);
    text-shadow: 0 1px 10px rgba(18, 32, 26, 0.45);
  }

  body:not(.nav-open) .site-header.is-over-hero:not(.is-scrolled) .brand-logo,
  body:not(.nav-open) .site-header.is-over-hero:not(.is-scrolled) .custom-logo-link img,
  body:not(.nav-open) .site-header.is-over-hero:not(.is-scrolled) .custom-logo {
    filter: drop-shadow(0 1px 8px rgba(18, 32, 26, 0.4));
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 1.5px solid rgba(196, 107, 74, 0.55);
    background: rgba(196, 107, 74, 0.12);
    color: var(--accent-deep);
    min-height: 2.65rem;
    padding: 0.4rem 0.75rem 0.4rem 0.65rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition:
      background 0.25s var(--ease),
      border-color 0.25s var(--ease),
      color 0.25s var(--ease),
      box-shadow 0.25s var(--ease);
  }

  .nav-toggle:hover,
  .nav-toggle:focus-visible {
    background: rgba(196, 107, 74, 0.2);
    border-color: var(--accent);
    color: var(--accent-deep);
    box-shadow: 0 0 0 3px rgba(196, 107, 74, 0.18);
  }

  /* Over dark hero: coral accents on the button only — not a full-width bar */
  body:not(.nav-open) .site-header.is-over-hero:not(.is-scrolled) .nav-toggle {
    color: var(--wool);
    border-color: rgba(251, 252, 249, 0.65);
    background: rgba(196, 107, 74, 0.28);
    box-shadow: none;
  }

  body:not(.nav-open) .site-header.is-over-hero:not(.is-scrolled) .nav-toggle-bars span {
    background: var(--wool);
  }

  body:not(.nav-open) .site-header.is-over-hero:not(.is-scrolled) .nav-toggle:hover,
  body:not(.nav-open) .site-header.is-over-hero:not(.is-scrolled) .nav-toggle:focus-visible {
    color: var(--wool);
    border-color: rgba(251, 252, 249, 0.85);
    background: rgba(196, 107, 74, 0.42);
    box-shadow: 0 0 0 3px rgba(196, 107, 74, 0.28);
  }

  body.nav-open .site-header.is-over-hero .nav-toggle,
  body.nav-open .site-header.is-over-hero .nav-toggle:hover,
  body.nav-open .site-header.is-over-hero .nav-toggle:focus-visible {
    color: var(--accent-deep);
    border-color: rgba(196, 107, 74, 0.55);
    background: rgba(196, 107, 74, 0.12);
    box-shadow: none;
  }

  body.nav-open .site-header.is-over-hero .nav-toggle-bars span {
    background: currentColor;
  }

  .nav-toggle-bars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 1.2rem;
    height: 1rem;
    gap: 0.22rem;
  }

  .nav-toggle-bars span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s var(--ease), opacity 0.3s, background 0.25s var(--ease);
    transform-origin: center;
  }

  .nav-toggle-label {
    line-height: 1;
  }

  body.nav-open .nav-toggle-bars span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }

  body.nav-open .nav-toggle-bars span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle-bars span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(18, 32, 26, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
  }

  .nav-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-drawer {
    display: block;
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 70;
    width: min(22rem, 88vw);
    height: 100%;
    height: 100dvh;
    pointer-events: none;
  }

  .nav-drawer-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    background:
      linear-gradient(165deg, rgba(240, 245, 241, 0.98) 0%, rgba(251, 252, 249, 1) 45%, rgba(228, 236, 230, 0.95) 100%);
    box-shadow: -16px 0 40px rgba(26, 43, 36, 0.14);
    border-left: 1px solid var(--line);
    padding: 1.25rem 1.35rem 2rem;
    transform: translateX(105%);
    transition: transform 0.4s var(--ease);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.nav-open .nav-drawer {
    pointer-events: auto;
  }

  body.nav-open .nav-drawer-panel {
    transform: translateX(0);
  }

  .nav-drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(196, 107, 74, 0.28);
  }

  .nav-drawer-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 550;
    color: var(--forest);
    letter-spacing: -0.02em;
  }

  .nav-close {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 0;
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.35rem 0.4rem;
    border-radius: var(--radius);
    transition: color 0.25s var(--ease), background 0.25s var(--ease);
  }

  .nav-close span[aria-hidden="true"] {
    font-size: 1.45rem;
    line-height: 1;
  }

  .nav-close:hover,
  .nav-close:focus-visible {
    color: var(--accent-deep);
    background: rgba(196, 107, 74, 0.14);
  }

  .nav-drawer .nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav-drawer .nav-list a {
    position: relative;
    display: block;
    text-decoration: none;
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.4vw, 1.45rem);
    font-weight: 550;
    letter-spacing: -0.02em;
    padding: 0.7rem 0.35rem;
    border-radius: var(--radius);
    transition: color 0.25s var(--ease), background 0.25s var(--ease), padding-left 0.25s var(--ease);
  }

  .nav-drawer .nav-list a::after {
    content: "";
    position: absolute;
    left: 0.35rem;
    bottom: 0.45rem;
    width: calc(100% - 0.7rem);
    height: 1.5px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
  }

  .nav-drawer .nav-list a:hover,
  .nav-drawer .nav-list a:focus-visible {
    color: var(--accent-deep);
    background: rgba(196, 107, 74, 0.1);
    padding-left: 0.65rem;
  }

  .nav-drawer .nav-list a:hover::after,
  .nav-drawer .nav-list a:focus-visible::after,
  .nav-drawer .nav-list a[aria-current="page"]::after,
  .nav-drawer .nav-list .current-menu-item > a::after,
  .nav-drawer .nav-list .current_page_item > a::after {
    transform: scaleX(1);
  }

  .nav-drawer .nav-list a[aria-current="page"],
  .nav-drawer .nav-list .current-menu-item > a,
  .nav-drawer .nav-list .current_page_item > a {
    color: var(--accent-deep);
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-backdrop,
  .nav-drawer-panel,
  .nav-toggle-bars span,
  .nav-desktop .nav-list a::after,
  .nav-drawer .nav-list a,
  .nav-drawer .nav-list a::after {
    transition: none;
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: var(--wool);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.06);
  animation: heroDrift 22s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-media--rotator img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  animation: none;
  will-change: opacity;
  transition: opacity 1.15s ease;
}

.hero-media--rotator img.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 32, 26, 0.35) 0%, rgba(18, 32, 26, 0.15) 35%, rgba(18, 32, 26, 0.72) 100%),
    linear-gradient(90deg, rgba(18, 32, 26, 0.45) 0%, transparent 55%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: calc(var(--nav-h) + 3rem) 0 4.5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--wool);
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(1.25rem);
  animation: riseIn 0.9s var(--ease) 0.15s forwards;
}

.hero-lead {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 400;
  max-width: 28ch;
  margin: 0 0 0.75rem;
  color: var(--wool);
  opacity: 0;
  transform: translateY(1.25rem);
  animation: riseIn 0.9s var(--ease) 0.35s forwards;
}

.hero-support {
  max-width: 36ch;
  margin: 0 0 1.75rem;
  color: rgba(251, 252, 249, 0.86);
  font-size: 1rem;
  opacity: 0;
  transform: translateY(1.25rem);
  animation: riseIn 0.9s var(--ease) 0.5s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  opacity: 0;
  transform: translateY(1.25rem);
  animation: riseIn 0.9s var(--ease) 0.65s forwards;
}

.page-hero {
  position: relative;
  min-height: 48vh;
  display: grid;
  align-items: end;
  color: var(--wool);
  overflow: hidden;
}

.page-hero .hero-content {
  padding-bottom: 3rem;
}

.page-hero .hero-brand {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  animation: none;
  opacity: 1;
  transform: none;
}

.page-hero h1 {
  color: var(--wool);
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: 0 0 0.5rem;
}

.page-hero p {
  margin: 0;
  max-width: 40ch;
  color: rgba(251, 252, 249, 0.88);
}

.page-hero--plain {
  min-height: auto;
  color: var(--ink);
  background:
    linear-gradient(160deg, rgba(42, 74, 60, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(228, 236, 230, 0.65));
  border-bottom: 1px solid var(--line);
}

.page-hero--plain .hero-content {
  padding: calc(var(--nav-h) + 2.75rem) 0 2.75rem;
}

.page-hero--plain .hero-brand {
  color: var(--forest);
  text-shadow: none;
}

.page-hero--plain h1 {
  color: var(--ink);
}

.page-hero--plain p {
  color: var(--ink-soft);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--wool);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--forest);
  border-color: rgba(42, 74, 60, 0.35);
}

.btn-outline:hover {
  border-color: var(--forest);
  color: var(--forest);
  background: rgba(42, 74, 60, 0.05);
}

/* ——— Sections ——— */
.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  margin: 0 0 0.75rem;
}

.section-head p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 1.05rem;
}

.section-head--solo {
  margin-bottom: 0;
}

.section-muted {
  background: rgba(255, 255, 255, 0.45);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split.reverse .split-copy {
  order: 2;
}

.split-media {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.split:hover .split-media img {
  transform: scale(1.03);
}

.split-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin: 0 0 1rem;
}

.split-copy p {
  color: var(--ink-soft);
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.75rem;
}

.prose p + p {
  margin-top: 1rem;
}

/* ——— Courses (photo-led, interactive) ——— */
.courses-section .section-head {
  max-width: 36rem;
}

.course-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.course-feature {
  display: grid;
  grid-template-rows: auto 1fr;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.course-feature:hover {
  color: inherit;
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(42, 74, 60, 0.28);
}

.course-feature-media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.course-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.course-feature:hover .course-feature-media img {
  transform: scale(1.04);
}

.course-feature-copy {
  display: grid;
  gap: 0.65rem;
  padding: 1.35rem 1.4rem 1.5rem;
  align-content: start;
}

.course-feature--text {
  grid-template-rows: 1fr;
}

.course-feature--text .course-feature-copy {
  padding: 1.5rem 1.45rem 1.6rem;
}

.course-feature-copy h3,
.course-tile h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  color: var(--forest);
}

.course-feature-copy p,
.course-tile p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.course-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-deep);
}

.course-cta::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

.course-feature:hover .course-cta::after,
.course-tile:hover .course-cta::after {
  transform: translateX(0.25rem);
}

.course-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.course-tile {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 1.35rem 1.4rem 1.5rem;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.course-tile:hover {
  color: inherit;
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(42, 74, 60, 0.28);
}

.course-tile--media {
  padding: 0;
  overflow: hidden;
}

.course-tile-media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.course-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.course-tile--media:hover .course-tile-media img {
  transform: scale(1.04);
}

.course-tile-copy {
  display: grid;
  gap: 0.55rem;
  padding: 1.2rem 1.35rem 1.4rem;
}

/* Legacy course-list kept for any residual markup */
.course-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.course-item {
  display: grid;
  grid-template-columns: minmax(10rem, 0.35fr) 1fr;
  gap: 1rem 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}

.course-item:hover {
  background: rgba(255, 255, 255, 0.55);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  color: inherit;
}

.course-item h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--forest);
}

.course-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ——— Gallery ——— */
.gallery-bleed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  margin: 0;
}

.gallery-bleed figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.gallery-bleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.gallery-bleed figure:hover img {
  transform: scale(1.05);
}

.gallery-wide {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0.4rem;
}

.gallery-wide figure {
  margin: 0;
  overflow: hidden;
  min-height: 16rem;
}

.gallery-wide figure:first-child {
  grid-row: span 2;
  min-height: 100%;
}

.gallery-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.gallery-wide figure:hover img {
  transform: scale(1.04);
}

/* ——— News / contact ——— */
.event-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.event-block img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.meta-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.meta-list strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 550;
  margin-bottom: 0.2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-portrait {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center top;
}

.contact-details {
  font-size: 1.05rem;
}

.contact-details a {
  font-weight: 600;
}

.contact-details .contact-address {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.contact-details .contact-address:hover {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.legal {
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 4rem;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 1.5rem;
}

.legal h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ——— Reveal motion ——— */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--forest);
  color: rgba(251, 252, 249, 0.82);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer .brand-word {
  color: var(--wool);
}

.site-footer a {
  color: rgba(251, 252, 249, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-title {
  font-family: var(--font-display);
  color: var(--wool);
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* ——— CTA band ——— */
.cta-band {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background:
    linear-gradient(135deg, rgba(42, 74, 60, 0.94), rgba(42, 74, 60, 0.82)),
    url("../images/DSC04224-scaled.jpg") center / cover;
  color: var(--wool);
  text-align: center;
}

.cta-band--plain {
  background:
    linear-gradient(135deg, rgba(42, 74, 60, 0.96), rgba(42, 74, 60, 0.88));
}

.cta-band h2 {
  color: var(--wool);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0 0 0.75rem;
}

.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 36ch;
  color: rgba(251, 252, 249, 0.88);
}

/* ——— Animations ——— */
@keyframes riseIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.06) translate(0, 0);
  }
  to {
    transform: scale(1.12) translate(-1.5%, -1%);
  }
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pageExit {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  body.page-enter main,
  body.page-enter .site-footer {
    animation: pageEnter 0.55s var(--ease) both;
  }

  body.page-exit {
    pointer-events: none;
  }

  body.page-exit main,
  body.page-exit .site-footer {
    animation: pageExit 0.32s var(--ease) both;
  }

  /* Safety: never leave main/footer invisible outside an active transition */
  body:not(.page-enter):not(.page-exit) main,
  body:not(.page-enter):not(.page-exit) .site-footer {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media:not(.hero-media--rotator) img,
  .hero-brand,
  .hero-lead,
  .hero-support,
  .hero-actions,
  .reveal,
  body.page-enter main,
  body.page-enter .site-footer,
  body.page-exit main,
  body.page-exit .site-footer {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }

  .hero-media--rotator img {
    animation: none !important;
    opacity: 0 !important;
    transition: none !important;
    transform: none !important;
  }

  .hero-media--rotator img.is-active {
    opacity: 1 !important;
  }
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  body {
    background-attachment: scroll;
  }

  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .split,
  .split.reverse,
  .event-block,
  .contact-grid,
  .footer-grid,
  .course-featured,
  .course-grid {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-copy {
    order: 0;
  }

  .split-media,
  .split-media img {
    min-height: 16rem;
  }

  .gallery-bleed,
  .gallery-wide {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-wide figure:first-child {
    grid-row: auto;
    grid-column: span 2;
    min-height: 16rem;
  }

  .course-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-content {
    padding: calc(var(--nav-h) + 2.25rem) 0 3rem;
  }

  .hero-brand {
    font-size: clamp(2.4rem, 12vw, 4.25rem);
  }

  .page-hero {
    min-height: 38vh;
  }

  .page-hero--plain {
    min-height: auto;
  }

  .page-hero .hero-content,
  .page-hero--plain .hero-content {
    padding-bottom: 2.25rem;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .nav-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .nav-toggle {
    min-height: 2.75rem;
    min-width: 2.75rem;
    padding: 0.55rem;
    justify-content: center;
  }

  .brand-logo,
  .custom-logo-link img,
  .custom-logo {
    height: 2.65rem;
    max-width: min(46vw, 8.5rem);
  }

  .section {
    padding: clamp(2.75rem, 10vw, 4.5rem) 0;
  }

  .course-feature-copy,
  .course-tile,
  .course-tile-copy,
  .course-feature--text .course-feature-copy {
    padding: 1.2rem 1.15rem 1.3rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  :root {
    --nav-h: 3.85rem;
    --text: 1rem;
  }

  .container {
    width: min(100% - 1.25rem, var(--max));
  }

  .header-inner {
    width: min(100% - 1.25rem, var(--max));
  }

  .gallery-bleed,
  .gallery-wide {
    grid-template-columns: 1fr;
  }

  .gallery-wide figure,
  .gallery-wide figure:first-child {
    grid-column: auto;
    min-height: 14rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-support {
    max-width: none;
    font-size: 0.95rem;
  }

  .hero-lead {
    max-width: none;
    font-size: clamp(1.05rem, 4.4vw, 1.25rem);
  }

  .page-hero--plain .hero-content {
    padding: calc(var(--nav-h) + 2rem) 0 2rem;
  }

  .page-hero .hero-brand,
  .page-hero--plain .hero-brand {
    font-size: clamp(2rem, 11vw, 3rem);
    margin-bottom: 0.65rem;
  }

  .btn {
    width: 100%;
    min-height: 2.85rem;
  }

  .btn-sm {
    width: auto;
    min-height: 2.35rem;
  }

  .split-media,
  .split-media img {
    min-height: 13.5rem;
  }

  .section-head {
    margin-bottom: 1.75rem;
  }

  .course-featured,
  .course-grid {
    gap: 0.85rem;
  }

  .course-feature:hover,
  .course-tile:hover {
    transform: none;
  }

  .contact-grid {
    gap: 1.75rem;
  }

  .contact-portrait {
    aspect-ratio: 4 / 3;
  }

  .posts-feed {
    gap: 2.5rem;
  }

  .post-card .post-media img {
    aspect-ratio: 16 / 11;
  }

  .cta-band {
    padding: 2.75rem 0;
  }

  .site-footer {
    padding: 2.5rem 0 1.75rem;
  }

  .footer-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 430px) {
  .hero-brand {
    font-size: clamp(2.15rem, 13vw, 3.35rem);
  }

  .page-hero h1 {
    font-size: clamp(1.85rem, 10vw, 2.45rem);
  }

  .course-feature-copy h3,
  .course-tile h3 {
    font-size: 1.15rem;
  }

  .course-feature-copy p,
  .course-tile p {
    font-size: 0.94rem;
  }

  .nav-drawer {
    width: min(20rem, 92vw);
  }

  .nav-close-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

/* ——— Auth & CMS ——— */
.auth-page {
  padding-top: calc(var(--nav-h) + 2rem);
  min-height: 70vh;
}

.auth-card {
  max-width: 26rem;
  margin-inline: auto;
}

.auth-card h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 0 0 0.75rem;
}

.auth-lead {
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.auth-form,
.cms-form {
  display: grid;
  gap: 1.15rem;
}

.auth-form label,
.cms-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.auth-form input,
.cms-form input[type="text"],
.cms-form input[type="file"],
.cms-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}

.auth-form input:focus,
.cms-form input:focus,
.cms-form textarea:focus {
  outline: 2px solid rgba(95, 125, 108, 0.45);
  outline-offset: 1px;
  border-color: var(--sage);
}

.cms-form textarea {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.55;
}

.form-message {
  margin: 0;
  font-size: 0.92rem;
}

.form-error {
  color: var(--accent-deep);
}

.form-ok {
  color: var(--forest);
}

.auth-bar-wrap {
  padding-top: 1.25rem;
}

.auth-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  min-height: 2rem;
}

.auth-link {
  font-size: 0.88rem;
  color: var(--sage);
  text-decoration: none;
}

.auth-link:hover {
  color: var(--accent-deep);
}

.auth-status {
  font-size: 0.88rem;
  color: var(--sage);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}

.btn-danger {
  background: transparent;
  color: var(--accent-deep);
  border-color: rgba(196, 107, 74, 0.45);
}

.btn-danger:hover {
  background: rgba(196, 107, 74, 0.08);
  color: var(--accent-deep);
}

.cms-panel {
  max-width: 40rem;
}

.cms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.posts-feed {
  display: grid;
  gap: 3.5rem;
}

.post-card .post-media {
  display: grid;
  gap: 0.5rem;
}

.post-card .post-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.post-body p {
  color: var(--ink-soft);
  margin: 0 0 0.65rem;
}

.post-admin {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.empty-posts {
  color: var(--ink-soft);
  margin: 0;
}

.navigation.pagination {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}

.navigation.pagination a,
.navigation.pagination .current {
  text-decoration: none;
  font-weight: 500;
  color: var(--forest);
  padding: 0.35rem 0.6rem;
}

.navigation.pagination .current {
  color: var(--accent-deep);
}

.current-images .field-hint {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0 0 0.5rem;
}

.thumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.thumb-row img {
  width: 4.5rem;
  height: 3.4rem;
  object-fit: cover;
  border-radius: var(--radius);
}
