@font-face {
  font-family: 'Fraunces';
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/fraunces-var.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Work Sans';
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/worksans-var.woff2') format('woff2-variations');
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f4efe3;
  --bg-alt: #ece4d2;
  --ink: #1c2018;
  --ink-soft: #45493f;
  --spruce: #1e3a2f;
  --spruce-deep: #10241d;
  --timber: #8a5a35;
  --ochre: #9d4f22;
  --ochre-btn: #b8461b;
  --line: #d9cfb8;
  --card-bg: #ffffff;
  /* Surfaces that stay dark in both themes, and the text that sits on them. */
  --forest: #1e3a2f;
  --on-dark: #fdfaf2;
  --on-dark-soft: #d6dccd;
  --sand: #e7c39a;
  --display: 'Fraunces', Georgia, serif;
  --text: 'Work Sans', system-ui, sans-serif;
  --radius: 4px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101511;
  --bg-alt: #171c17;
  --ink: #ece6d8;
  --ink-soft: #b9b6a8;
  --spruce: #6fa989;
  --spruce-deep: #0c1712;
  --timber: #c99569;
  --ochre: #e08650;
  --ochre-btn: #b8461b;
  --line: #2c332a;
  --card-bg: #171c17;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: color-mix(in oklab, var(--spruce) 45%, transparent) var(--bg); }
html, body { margin: 0; padding: 0; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  accent-color: var(--ochre);
  caret-color: var(--ochre);
}
::selection { background: color-mix(in oklab, var(--ochre) 28%, var(--bg)); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .page-hero :focus-visible, .visit-band :focus-visible, footer :focus-visible { outline-color: var(--sand); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  text-wrap: balance;
  margin: 0;
  color: var(--spruce);
  letter-spacing: -0.01em;
}
:root[data-theme="dark"] :is(h1, h2, h3) { color: var(--ink); }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

.link {
  font-weight: 600; font-size: 0.98rem; color: var(--ochre);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px; max-width: 1180px; margin: 0 auto; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 46px; width: auto; max-width: none; }
.brand span {
  font-family: var(--display); font-weight: 600; font-size: 1.3rem;
  letter-spacing: 0.01em; color: var(--spruce); white-space: nowrap;
}
:root[data-theme="dark"] .brand span { color: var(--ink); }
@media (max-width: 520px) {
  .brand span { display: none; }
  .nav-row { padding: 12px 20px; gap: 12px; }
  .cta-row { gap: 8px; }
}
@media (max-width: 400px) { .cta-row .btn-primary { padding: 10px 14px; } }
@media (max-width: 350px) { .cta-row .theme-toggle { display: none; } }

nav.primary { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
nav.primary a {
  text-decoration: none; font-size: 0.95rem; font-weight: 500; white-space: nowrap;
  color: var(--ink-soft);
}
nav.primary a:hover { color: var(--spruce); }

.nav-dropdown { position: relative; }
.dropdown-trigger { display: inline-flex; align-items: center; gap: 5px; }
.dropdown-trigger .caret { width: 8px; height: 8px; flex-shrink: 0; transition: transform 0.15s ease; }
.nav-dropdown:hover .dropdown-trigger .caret,
.nav-dropdown:focus-within .dropdown-trigger .caret { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: 100%; left: -14px; padding-top: 14px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu .menu-inner {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius);
  min-width: 190px; padding: 8px; box-shadow: 0 18px 40px -20px rgba(16,23,17,0.35);
}
.dropdown-menu .menu-inner a {
  display: block; padding: 9px 12px; border-radius: 3px;
  font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); text-decoration: none;
  white-space: nowrap;
}
.dropdown-menu .menu-inner a:hover { background: var(--bg-alt); color: var(--spruce); }

.cta-row { display: flex; gap: 10px; align-items: center; }
.theme-toggle {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; padding: 0; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: 6px;
  background: transparent; color: var(--ink-soft); cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-soft); }
.theme-toggle svg { width: 17px; height: 17px; display: block; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 3px;
  font-weight: 600; font-size: 0.92rem; text-decoration: none;
  border: 1px solid transparent; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ochre-btn); color: #fff9f0; }
.btn-primary:hover { background: color-mix(in oklab, var(--ochre-btn) 85%, black); }
.btn-ghost { border-color: var(--spruce); color: var(--spruce); }
.btn-ghost:hover { background: var(--spruce); color: #fff9f0; }
:root[data-theme="dark"] .btn-ghost { border-color: var(--ink); color: var(--ink); }
:root[data-theme="dark"] .btn-ghost:hover { background: var(--ink); color: var(--spruce-deep); }

nav.primary a[aria-current] { color: var(--spruce); }
:root[data-theme="dark"] nav.primary a[aria-current] { color: var(--ink); }

/* Skip link: off-screen until a keyboard user tabs to it. */
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: 3px;
  background: var(--forest); color: #fff9f0; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.nav-toggle { display: none; }
nav.primary .nav-visit { display: none; }

@media (max-width: 1150px) {
  .cta-row .btn-ghost { display: none; }
  .nav-toggle {
    display: block; position: relative;
    width: 38px; height: 38px; padding: 0;
    border: 1px solid var(--line); border-radius: 6px;
    background: transparent; cursor: pointer;
  }
  /* Lines are centred on the button and offset from the middle, so the X crosses at the centre. */
  .nav-toggle span {
    position: absolute; left: 9px; right: 9px; top: 50%; height: 2px; margin-top: -1px;
    background: var(--ink); transition: transform .2s ease, opacity .2s ease;
  }
  .nav-toggle span:nth-child(1) { transform: translateY(-6px); }
  .nav-toggle span:nth-child(3) { transform: translateY(6px); }
  header.site.is-open .nav-toggle span:nth-child(1) { transform: rotate(45deg); }
  header.site.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  header.site.is-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg); }

  /* Closed: hidden. Open: full-width panel under the header row. */
  nav.primary {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px; max-height: calc(100vh - 75px); overflow-y: auto;
  }
  header.site.is-open nav.primary { display: flex; }
  nav.primary > a[data-nav-top],
  nav.primary .nav-dropdown > .dropdown-trigger {
    display: flex; padding: 12px 0; font-size: 1.05rem; font-weight: 600;
  }
  nav.primary > a[data-nav-top] { border-bottom: 1px solid var(--line); }
  .nav-dropdown { border-bottom: 1px solid var(--line); }
  nav.primary .nav-visit { display: flex; justify-content: center; margin-top: 16px; padding: 12px 20px; }
  .dropdown-trigger .caret { display: none; }
  .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none; padding: 0 0 10px 14px;
  }
  .dropdown-menu .menu-inner { background: none; border: 0; box-shadow: none; padding: 0; min-width: 0; }
  .dropdown-menu .menu-inner a { padding: 8px 0; }
}

/* ---------- Sections ---------- */
section { padding: 112px 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.head {
  display: grid; grid-template-columns: 7fr 5fr; gap: 20px 64px; align-items: end; margin-bottom: 56px;
}
.head h2 { max-width: 18ch; }
.head p { color: var(--ink-soft); font-size: 1.1rem; max-width: 46ch; }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; margin-bottom: 40px; } }
.section-head h2, .head h2, .faith h2 {
  font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.06; letter-spacing: -0.02em;
}
.section-head p { margin-top: 18px; color: var(--ink-soft); font-size: 1.1rem; max-width: 56ch; }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  min-height: min(92svh, 940px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0;
  color: var(--on-dark);
  isolation: isolate;
}
.hero-img, .hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
/* The loop stays transparent until it really plays, so the still never flashes. */
.hero-video { opacity: 0; transition: opacity 1s ease; }
.hero-video.is-playing { opacity: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* Left-weighted wash keeps the copy legible on any frame; the right stays open so faces read. */
  background:
    linear-gradient(90deg, rgba(10,15,11,0.82) 0%, rgba(10,15,11,0.46) 46%, rgba(10,15,11,0.12) 76%, rgba(10,15,11,0) 100%),
    linear-gradient(180deg, rgba(16,23,17,0.30) 0%, rgba(12,18,13,0.25) 45%, rgba(10,15,11,0.88) 100%);
}
.hero-inner { padding: 120px 32px 56px; max-width: 1180px; margin: 0 auto; width: 100%; }
.hero h1 {
  color: var(--on-dark);
  font-size: clamp(2.7rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line > span { display: block; }
.hero-sub { font-size: 1.18rem; max-width: 46ch; color: #eee7d6; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-primary, .hero .btn-ghost { padding: 15px 26px; font-size: 1rem; }
.hero .btn-ghost { border-color: var(--on-dark); color: var(--on-dark); }
.hero .btn-ghost:hover { background: var(--on-dark); color: var(--spruce-deep); }

.hero-dates {
  list-style: none; margin: 0 auto; padding: 0 32px; width: 100%; max-width: 1180px;
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.hero-dates li { border-top: 1px solid rgba(253,250,242,0.22); }
.hero-dates a {
  display: block; padding: 18px 24px 26px 0; text-decoration: none;
  color: var(--on-dark); font-family: var(--display); font-weight: 500; font-size: 1.08rem;
}
.hero-dates a span {
  display: block; font-family: var(--text); font-size: 0.86rem; font-weight: 600; color: var(--sand);
  margin-bottom: 2px;
}
.hero-dates a:hover { text-decoration: underline; text-decoration-color: var(--sand); }

/* The page's one authored moment: the headline rises out of its own line box. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .line > span { animation: rise 1.1s var(--ease-out) both; }
  .hero h1 .line + .line > span { animation-delay: .12s; }
  .hero-sub, .hero-ctas, .hero-dates { animation: settle 1s var(--ease-out) .45s both; }
}
@keyframes rise { from { transform: translateY(105%); } }
@keyframes settle { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 780px) {
  .hero::before {
    background: linear-gradient(180deg, rgba(16,23,17,0.40) 0%, rgba(12,18,13,0.50) 40%, rgba(10,15,11,0.92) 100%);
  }
  .hero-inner { padding: 96px 20px 36px; }
  .hero-sub { font-size: 1.05rem; }
  .hero-dates { grid-template-columns: 1fr; padding: 0 20px 12px; }
  .hero-dates a {
    display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    padding: 12px 0; font-size: 0.98rem; text-align: right;
  }
  .hero-dates a span { margin: 0; text-align: left; }
}

/* ---------- Intro ---------- */
.intro { padding: 128px 0 112px; }
.intro-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; }
.intro-body { padding-top: 0.5rem; }
.intro-statement {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.05; letter-spacing: -0.025em;
}
.intro-body > p { color: var(--ink-soft); font-size: 1.12rem; }
.intro-facts { margin: 28px 0 0; }
.intro-facts div {
  display: grid; grid-template-columns: 3.4ch 1fr; gap: 16px; align-items: baseline;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.intro-facts div:last-child { border-bottom: 1px solid var(--line); }
.intro-facts dt {
  font-family: var(--display); font-weight: 600; font-size: 1.6rem; color: var(--ochre);
  font-variant-numeric: lining-nums tabular-nums;
}
.intro-facts dd { margin: 0; color: var(--ink); }
.feed { margin-top: 96px; }
.feed-head {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 24px;
  padding-top: 24px; border-top: 1px solid var(--ink-soft); margin-bottom: 28px;
}
.feed-head h3 { font-size: 1.5rem; }
@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .intro-body { padding-top: 0; }
  .intro { padding: 88px 0 80px; }
  .feed { margin-top: 64px; }
}

/* ---------- Film ---------- */
.film { padding: 112px 0; }
.film-grid { display: grid; grid-template-columns: 0.75fr 1.6fr; gap: 56px; align-items: center; }
.film-copy h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.1; margin-bottom: 14px; }
.film-copy p { color: var(--ink-soft); }
.video-frame {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
  background: #000; cursor: pointer; border: none; padding: 0; width: 100%; display: block;
}
.video-frame img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.8;
  transition: opacity 0.3s ease, transform 1.2s var(--ease-out);
}
.video-frame:hover img { opacity: 0.62; transform: scale(1.025); }
.video-frame .play {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px;
}
.video-frame .play > span:first-child {
  width: 82px; height: 82px; border-radius: 50%;
  background: var(--ochre-btn); display: grid; place-items: center;
  transition: transform 0.3s var(--ease-out);
  box-shadow: 0 12px 30px -8px rgba(0,0,0,0.55);
}
.video-frame:hover .play > span:first-child { transform: scale(1.07); }
.video-frame .play svg { width: 26px; height: 26px; margin-left: 4px; }
.video-frame .play-label { color: var(--on-dark); font-weight: 600; font-size: 0.95rem; text-shadow: 0 1px 8px rgba(0,0,0,0.6); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) { .film-grid { grid-template-columns: 1fr; gap: 24px; } .film { padding: 80px 0; } }

/* ---------- Programs ---------- */
.programs { background: var(--bg-alt); }
.program-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.program-panel {
  position: relative; display: flex; align-items: flex-end;
  aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius);
  color: var(--on-dark); text-decoration: none; isolation: isolate;
  background: var(--forest);
}
.program-panel img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform 1.4s var(--ease-out);
}
.program-panel::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,15,11,0) 30%, rgba(10,15,11,0.55) 58%, rgba(10,15,11,0.92) 100%);
}
.program-panel:hover img { transform: scale(1.04); }
.program-panel-body { padding: 40px; }
.program-panel h3 { color: var(--on-dark); font-size: clamp(2.2rem, 3.6vw, 3rem); letter-spacing: -0.02em; margin-bottom: 10px; }
:root[data-theme="dark"] .program-panel h3 { color: var(--on-dark); }
.program-panel p { color: #eee7d6; max-width: 40ch; }
.program-route { list-style: none; margin: 22px 0 24px; padding: 0; display: grid; gap: 6px; }
.program-route li { position: relative; padding-left: 22px; font-size: 0.95rem; color: var(--on-dark-soft); }
.program-route li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px;
  border-radius: 50%; border: 1.5px solid var(--sand);
}
.program-route li + li::after {
  content: ""; position: absolute; left: 4px; bottom: calc(100% - 0.55em); height: calc(100% - 2px);
  width: 1px; background: rgba(231,195,154,0.5);
}
.program-panel .link { color: var(--sand); }
.program-panel:hover .link { text-decoration: underline; }
@media (max-width: 860px) {
  .program-panels { grid-template-columns: 1fr; }
  .program-panel { aspect-ratio: auto; min-height: 560px; }
  .program-panel-body { padding: 28px 24px; }
}

/* ---------- Student voices ---------- */
.voices { background: var(--bg-alt); }
.voices-note { font-size: 0.95rem !important; }
.voices-grid {
  display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 24px;
}
.voice {
  position: relative; margin: 0; padding: 40px 40px 34px;
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}
.voice:first-child { grid-row: span 2; padding: 56px 52px 44px; }
.voice blockquote { margin: 0; }
.voice blockquote p {
  font-family: var(--display); font-weight: 500; font-size: 1.3rem; line-height: 1.35;
  color: var(--spruce); letter-spacing: -0.01em;
}
.voice:first-child blockquote p { font-size: clamp(1.7rem, 2.8vw, 2.35rem); line-height: 1.2; }
.voice blockquote p::before { content: "«"; color: var(--ochre); }
.voice blockquote p::after { content: "»"; color: var(--ochre); }
:root[data-theme="dark"] .voice blockquote p { color: var(--ink); }
.voice figcaption { display: grid; gap: 2px; font-size: 0.95rem; }
.voice-name { font-weight: 600; color: var(--ink); }
.voice-meta { color: var(--ink-soft); }
/* Sample quotes must never pass as real: dashed frame plus a visible flag. */
.voice.is-placeholder { border-style: dashed; border-color: var(--timber); }
.voice-flag {
  align-self: flex-start;
  font-size: 0.78rem; font-weight: 600; color: var(--timber);
  border: 1px dashed var(--timber); border-radius: 999px; padding: 3px 10px;
}
@media (max-width: 860px) {
  .voices-grid { grid-template-columns: 1fr; }
  .voice:first-child { grid-row: auto; padding: 40px 28px 32px; }
  .voice { padding: 32px 28px 28px; }
}

/* ---------- Life after three ---------- */
.mosaic {
  display: grid; grid-template-columns: 1.7fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px;
  height: clamp(380px, 46vw, 600px);
}
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.mosaic-a { grid-row: span 2; }
@media (max-width: 860px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; gap: 10px; }
  .mosaic-a { grid-column: span 2; grid-row: auto; aspect-ratio: 4/3; }
  .mosaic-b, .mosaic-c { aspect-ratio: 1; }
}

/* Columns of text separated by hairlines: the week, facts, anything list-like. */
.cols {
  list-style: none; margin: 56px 0 40px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 32px;
}
.cols > li, .cols > div { border-top: 1px solid var(--ink-soft); padding: 22px 0 28px; }
.cols h3 { font-size: 1.35rem; margin-bottom: 8px; }
.cols p { color: var(--ink-soft); font-size: 0.98rem; }
.cols p + p { margin-top: 10px; }
.cols a { color: var(--ochre); font-weight: 600; }
.week-when { display: block; font-size: 0.92rem; font-weight: 600; color: var(--timber); margin-bottom: 10px; }
.week-when b { font-family: var(--display); font-weight: 600; font-size: 1.05rem; font-variant-numeric: tabular-nums; }

/* ---------- Visit band (the main conversion) ---------- */
.visit-band { background: var(--forest); color: var(--on-dark); }
:root[data-theme="dark"] .visit-band { background: #16291f; }
.visit-band .head h2, :root[data-theme="dark"] .visit-band .head h2 { color: var(--on-dark); }
.visit-band .head p { color: var(--on-dark-soft); }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.visit-option {
  padding: 36px 36px 32px; border-radius: var(--radius);
  border: 1px solid rgba(253,250,242,0.16); background: rgba(253,250,242,0.03);
  display: flex; flex-direction: column;
  transition: border-color .3s ease, background-color .3s ease;
}
.visit-option:hover { border-color: rgba(231,195,154,0.5); background: rgba(253,250,242,0.05); }
.visit-date {
  font-family: var(--display); font-weight: 500; color: var(--sand);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.15; margin-bottom: 22px;
}
.visit-option h3 { color: var(--on-dark); font-size: 1.5rem; margin-bottom: 10px; }
:root[data-theme="dark"] .visit-option h3 { color: var(--on-dark); }
.visit-option > p:not(.visit-date) { color: var(--on-dark-soft); flex: 1; }
.visit-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 28px; }
.visit-band .link { color: var(--sand); }
@media (max-width: 860px) {
  .visit-grid { grid-template-columns: 1fr; gap: 20px; }
  .visit-option { padding: 28px 24px; }
}

/* ---------- Faith ---------- */
.faith-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.faith h2 { margin-bottom: 22px; }
.faith-grid p { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 22px; }
.faith-list { list-style: none; margin: 0; padding: 0; }
.faith-list li { padding: 20px 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 1.05rem; }
.faith-list li:last-child { border-bottom: 1px solid var(--line); }
.faith-list strong {
  display: block; font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--spruce); margin-bottom: 2px;
}
:root[data-theme="dark"] .faith-list strong { color: var(--ink); }
@media (max-width: 860px) { .faith-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Apply steps ---------- */
.apply { background: var(--bg-alt); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step { border-top: 1px solid var(--ink-soft); padding-top: 24px; }
.step .step-n {
  font-family: var(--display); font-weight: 600; font-size: 2.6rem; line-height: 1;
  color: var(--ochre); display: block; margin-bottom: 18px; font-variant-numeric: lining-nums;
}
.step h2, .step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step p { color: var(--ink-soft); }
.step a { color: var(--ochre); font-weight: 600; }
.apply-cta { margin-top: 56px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.apply-cta .deadline { color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Instagram ---------- */
.insta { padding-bottom: 96px; }
.insta .section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; max-width: none; }
behold-widget { display: block; min-height: 200px; }

/* ---------- Place ---------- */
.place { padding: 0 0 112px; }
.place-figure { margin: 0; }
.place-figure img { width: 100%; height: clamp(320px, 52vw, 720px); object-fit: cover; }
.place-figure figcaption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px 32px; flex-wrap: wrap;
  padding-top: 20px; color: var(--ink-soft);
}
.place-name { font-family: var(--display); font-weight: 600; font-size: 1.4rem; color: var(--spruce); }
:root[data-theme="dark"] .place-name { color: var(--ink); }

/* ---------- Content pages ---------- */
.page-hero {
  position: relative; isolation: isolate;
  background: var(--spruce-deep); color: var(--on-dark);
  padding: 128px 0 72px;
}
.page-hero.has-image { min-height: 62vh; display: flex; align-items: flex-end; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero.has-image::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,15,11,0.2) 0%, rgba(10,15,11,0.35) 40%, rgba(10,15,11,0.88) 100%);
}
.page-hero-inner { width: 100%; }
.page-hero h1 {
  color: var(--on-dark); font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1; letter-spacing: -0.03em;
  margin: 14px 0 20px; max-width: 16ch;
}
:root[data-theme="dark"] .page-hero h1 { color: var(--on-dark); }
.page-hero .lead { font-size: 1.2rem; max-width: 52ch; color: #eee7d6; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.9rem; }
.crumbs li { color: var(--sand); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: rgba(253,250,242,0.4); }
.crumbs a { color: var(--on-dark-soft); text-decoration: none; }
.crumbs a:hover { color: var(--on-dark); text-decoration: underline; }

.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); line-height: 1.1; margin: 0 0 18px; letter-spacing: -0.015em; }
.prose h3 { font-size: 1.3rem; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 1.06rem; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 1.2em; }
.prose a { color: var(--ochre); font-weight: 600; }
.alt { background: var(--bg-alt); }

[id] { scroll-margin-top: 90px; }

/* Study route: one step per school year. */
.route-band { padding: 72px 0; border-bottom: 1px solid var(--line); }
.route-band h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 36px; }
.route-band h3 { font-size: 1.35rem; margin-bottom: 28px; }
.route-band .route + h3 { margin-top: 56px; }
.route {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
}
.route-step { position: relative; padding: 30px 24px 0 0; border-top: 1px solid var(--ink-soft); }
.route-step::before {
  content: ""; position: absolute; left: 0; top: -7px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--ochre);
}
.alt .route-step::before { background: var(--bg-alt); }
.route-step:first-child::before { background: var(--ochre); }
.route-year { display: block; font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: var(--ochre); margin-bottom: 8px; }
.route-options { display: grid; gap: 4px; }
.route-options a, .route-options span { color: var(--ink); font-weight: 500; }
.route-options a { text-decoration: underline; text-decoration-color: var(--line); }
.route-options a:hover { text-decoration-color: var(--ochre); color: var(--ochre); }
@media (max-width: 780px) {
  .route { grid-auto-flow: row; }
  .route-step { border-top: 0; border-left: 1px solid var(--ink-soft); padding: 0 0 28px 28px; }
  .route-step:last-child { padding-bottom: 0; }
  .route-step::before { left: -7px; top: 4px; }
}

/* One editorial row per study track; images alternate sides. */
.tracks { display: grid; gap: 96px; }
.track { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.track > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.track:nth-child(even) > img { order: 2; }
.track-body h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); line-height: 1.1; letter-spacing: -0.015em; margin-bottom: 16px; }
.track-body p, .track-body li { color: var(--ink-soft); font-size: 1.04rem; }
.track-body p + p { margin-top: 12px; }
.track-body ul { padding-left: 1.1em; margin: 0; display: grid; gap: 6px; }
.track-body a:not(.btn) { color: var(--ochre); font-weight: 600; }
.track-next { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.98rem; }
.track-next strong { color: var(--ink); }
.track-body .btn { margin-top: 26px; }
.track-body .visit-date { color: var(--ochre); margin-bottom: 12px; }
@media (max-width: 860px) {
  .tracks { gap: 64px; }
  .track { grid-template-columns: 1fr; gap: 24px; }
  .track:nth-child(even) > img { order: 0; }
  .track > img { aspect-ratio: 16/10; }
}

/* Closing cross-link on the study pages. */
.next-life-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.next-life img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: 60% center; border-radius: var(--radius); }
.next-life h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.08; margin-bottom: 16px; }
.next-life p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 20px; max-width: 44ch; }
@media (max-width: 860px) { .next-life-inner { grid-template-columns: 1fr; gap: 28px; } }

/* Program voice: one quote on its study page. */
.program-voice { padding: 0 0 112px; }
.program-voice .voice { max-width: 820px; }
.program-voice .voice blockquote p { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.22; }

/* Two-column text + image used on Livet, Kontakt and Om oss. */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.08; margin-bottom: 18px; }
.split p { color: var(--ink-soft); font-size: 1.06rem; }
.split p + p { margin-top: 14px; }
.split h3 { font-size: 1.25rem; margin: 32px 0 14px; }
.split-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.split .link { margin-top: 20px; }
.split a:not(.link):not(.btn) { color: var(--ochre); font-weight: 600; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .split > :is(img, a):first-child { order: -1; } }

.campus-figure { margin: 56px 0 0; }
.campus-figure img { width: 100%; height: auto; aspect-ratio: 21/9; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 780px) { .campus-figure { margin-top: 36px; } .campus-figure img { aspect-ratio: 16/10; } }

/* Program overview cards (Studietilbud) reuse the homepage panels. */
.programs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .programs-grid { grid-template-columns: 1fr; } }

/* Jaktterreng band on Livet på KVS. */
.terrain { position: relative; color: var(--on-dark); isolation: isolate; padding: 0; }
.terrain-inner { display: grid; place-items: center; text-align: center; min-height: 60vh; padding: 80px 32px; }
.terrain-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.terrain::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,16,11,0.5), rgba(10,16,11,0.72));
}
.terrain .num {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.03em;
  font-size: clamp(3rem, 8vw, 6rem); color: var(--on-dark); line-height: 1; display: block;
}
.terrain p.lead { font-size: 1.2rem; max-width: 46ch; color: #ece7d8; margin-top: 18px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--bg-alt); padding: 88px 0; }
.cta-band-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.08; letter-spacing: -0.015em; margin-bottom: 12px; max-width: 22ch; }
.cta-band p { color: var(--ink-soft); }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer { background: var(--spruce-deep); color: #d9d3bf; padding: 80px 0 36px; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { height: 44px; width: auto; }
.footer-brand span { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--on-dark); }
footer h2 {
  font-family: var(--text); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--sand); margin: 0 0 16px;
}
:root[data-theme="dark"] footer h2 { color: var(--sand); }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
footer a { text-decoration: none; color: #d9d3bf; font-size: 0.95rem; }
footer a:hover { color: var(--on-dark); text-decoration: underline; }
footer p.addr { font-size: 0.95rem; line-height: 1.7; color: #d9d3bf; max-width: 32ch; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; font-size: 0.85rem; color: #a3a28f; flex-wrap: wrap; gap: 12px;
}
.socials { display: flex; gap: 14px; }
.socials a { color: #d9d3bf; }

@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 780px) { section { padding: 80px 0; } }
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Tables, documents, staff ---------- */
.price-table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 1rem; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table td:last-child { text-align: right; white-space: nowrap; color: var(--ink); }
.price-table th { font-weight: 600; color: var(--ink); }
.note { font-size: 0.93rem; color: var(--ink-soft); }
.track-body .note { margin-top: 16px; font-size: 0.93rem; }
.doc-list { list-style: none; padding: 0; margin: 0 0 16px; }
.doc-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }

.staff-group { font-size: 1.5rem; margin: 56px 0 20px; }
.staff-group:first-child { margin-top: 0; }
.staff-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.staff-card {
  display: flex; align-items: center; gap: 18px;
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.staff-card img, .staff-initials { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; flex-shrink: 0; }
.staff-initials { display: grid; place-items: center; background: var(--bg-alt); color: var(--spruce); font-family: var(--display); font-weight: 600; }
.staff-body { min-width: 0; }
.staff-card h3 { font-size: 1.15rem; line-height: 1.2; }
.staff-card p { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.4; margin-top: 3px; }
.staff-actions { display: flex; gap: 8px; margin-top: 14px; }
.staff-action {
  position: relative; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ochre);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.staff-action svg { width: 17px; height: 17px; }
.staff-action:hover, .staff-action:focus-visible { background: var(--ochre-btn); border-color: var(--ochre-btn); color: #fff9f0; }
.staff-action:focus-visible { outline-offset: 2px; border-radius: 50%; }
/* The number or address appears above the icon on hover and keyboard focus.
   Anchored to the icon's left edge so it never runs off the card's left side. */
.staff-tip {
  position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 5;
  padding: 6px 10px; border-radius: 3px; white-space: nowrap;
  background: var(--forest); color: var(--on-dark);
  font-size: 0.85rem; font-weight: 500; font-variant-numeric: tabular-nums;
  box-shadow: 0 8px 20px -10px rgba(16,23,17,0.5);
  opacity: 0; transform: translateY(4px); pointer-events: none;
  transition: opacity .15s ease, transform .2s var(--ease-out);
}
.staff-action:focus-visible .staff-tip { opacity: 1; transform: none; }
@media (hover: hover) { .staff-action:hover .staff-tip { opacity: 1; transform: none; } }
.staff-grid.is-lead { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.is-lead .staff-card { flex-direction: column; gap: 18px; padding: 32px 24px 28px; text-align: center; }
.is-lead .staff-actions { justify-content: center; }
.is-lead .staff-tip { left: 50%; transform: translate(-50%, 4px); }
.is-lead .staff-action:focus-visible .staff-tip { transform: translate(-50%, 0); }
@media (hover: hover) { .is-lead .staff-action:hover .staff-tip { transform: translate(-50%, 0); } }
.is-lead .staff-card img, .is-lead .staff-initials { width: 88px; height: 88px; }
.is-lead .staff-card h3 { font-size: 1.3rem; }
.staff-more { margin-top: 32px; }
.program-panel .h3 { color: var(--on-dark); font-size: clamp(2.2rem, 3.6vw, 3rem); letter-spacing: -0.02em; margin-bottom: 10px; }
.contact { align-items: start; }
.contact-map { margin: 0; }
.contact-map figcaption { margin-top: 14px; }
@media (max-width: 520px) {
  .hero-ctas { gap: 10px; }
  .hero-ctas .btn { flex: 1 1 0; padding: 14px 12px; font-size: 0.95rem; }
}
@media (max-width: 600px) {
  .is-lead .staff-card { flex-direction: row; gap: 20px; padding: 20px; text-align: left; }
  .is-lead .staff-actions { justify-content: flex-start; }
  .is-lead .staff-tip { left: 0; transform: translateY(4px); }
  .is-lead .staff-action:is(:hover, :focus-visible) .staff-tip { transform: none; }
  .is-lead .staff-card img, .is-lead .staff-initials { width: 84px; height: 84px; }
  .is-lead .staff-card h3 { font-size: 1.2rem; }
}
.head + .cols { margin-top: 0; }
