/* ==========================================================
   Christholm Inc. - Design tokens
   Palette: scholarly navy, warm paper, muted gold, sage
   ========================================================== */
:root {
  --ink: #1F2A44;
  --ink-soft: #3A4664;
  --muted: #5F6B80;
  --paper: #F7F3EA;
  --paper-2: #EFE8DA;
  --white: #FFFFFF;
  --gold: #C08A2E;
  --gold-soft: #F1E2C4;
  --sage: #6E8B74;
  --line: rgba(31, 42, 68, 0.12);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(31, 42, 68, .06), 0 12px 32px -12px rgba(31, 42, 68, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1160px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.display {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.display em { font-style: italic; color: var(--gold); }
.h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.lead { font-size: 19px; color: var(--ink-soft); max-width: 34ch; }
.muted { color: var(--muted); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  font-size: 16px;
  border: 0;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { background: #2B3859; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--small { padding: 10px 18px; font-size: 15px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--ink);
}
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 234, .82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; height: 72px; gap: 32px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand__mark { width: 32px; height: 32px; }
.brand__name { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.brand--light { color: var(--paper); }

.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { font-size: 15px; color: var(--ink-soft); position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .3s var(--ease); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 85% 20%, var(--gold-soft), transparent 70%),
    radial-gradient(500px 360px at 10% 90%, rgba(110, 139, 116, .14), transparent 70%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
}
.hero__actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; }

/* Hero visual: photo carousel */
.hero__visual { position: relative; padding: 0 0 0 36px; }
.hero__visual::before {
  content: ""; position: absolute; right: -18px; top: 28px; bottom: -14px; left: 64px;
  border-radius: var(--radius-lg); background: var(--ink); transform: rotate(3deg); z-index: 0;
}
.carousel {
  position: relative; z-index: 1;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow);
  --interval: 5500ms;
}
.carousel__track { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 1s var(--ease), visibility 0s linear 1s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 1s var(--ease), visibility 0s; }
.slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  transition: transform 7s ease-out;
}
.slide.is-active img { transform: scale(1); }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(24, 33, 58, .72) 100%);
}
.slide figcaption {
  position: absolute; left: 28px; right: 28px; bottom: 76px; z-index: 1;
  font-family: var(--font-display); font-style: italic; font-size: 24px; line-height: 1.25;
  color: var(--paper);
  opacity: 0; transform: translateY(10px);
  transition: opacity .8s var(--ease) .3s, transform .8s var(--ease) .3s;
}
.slide.is-active figcaption { opacity: 1; transform: none; }

.carousel__controls {
  position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2;
  display: flex; align-items: center; gap: 14px;
}
.carousel__btn {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  border: 1px solid rgba(247, 243, 234, .4);
  background: rgba(24, 33, 58, .35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center; cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.carousel__btn:hover { background: var(--paper); border-color: var(--paper); }
.carousel__btn svg { width: 18px; height: 18px; fill: none; stroke: var(--paper); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carousel__btn:hover svg { stroke: var(--ink); }
.carousel__dots { flex: 1; display: flex; gap: 6px; }
.carousel__dot {
  flex: 1; height: 20px; padding: 0; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center;
}
.carousel__dot span {
  display: block; width: 100%; height: 3px; border-radius: 99px;
  background: rgba(247, 243, 234, .35); position: relative; overflow: hidden;
}
.carousel__dot span::after {
  content: ""; position: absolute; inset: 0; background: var(--paper);
  transform: scaleX(0); transform-origin: left;
}
.carousel__dot.is-active span::after { animation: dotfill var(--interval) linear forwards; }
.carousel.is-paused .carousel__dot.is-active span::after,
.carousel:focus-within .carousel__dot.is-active span::after { animation-play-state: paused; }
@keyframes dotfill { to { transform: scaleX(1); } }

/* Floating learning-path card */
.mini-card {
  position: absolute; left: 0; top: 48px; z-index: 3;
  width: 200px; padding: 18px 20px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 20px 40px -16px rgba(31, 42, 68, .35);
}
.mini-card .paper__head { margin-bottom: 14px; }
.path--mini { gap: 10px; }
.path--mini::before { left: 6px; top: 7px; bottom: 7px; }
.path--mini li { font-size: 16px; gap: 12px; }
.path--mini li span { width: 14px; height: 14px; }
.mini-card .progress { margin-top: 16px; height: 6px; }

/* About photo */
.about__photo { margin: 40px 0 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 2; box-shadow: var(--shadow); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about__photo:hover img { transform: scale(1.03); }

.map-link { display: inline-block; margin-top: 10px; font-size: 15px !important; color: var(--ink-soft); }

.paper__head { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.paper__head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sage); }
.paper__label { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.path { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; position: relative; }
.path::before { content: ""; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 2px; background: var(--paper-2); }
.path li {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-display); font-size: 22px; color: var(--muted); position: relative;
}
.path li span {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--paper-2); background: var(--white); flex: none;
}
.path li.is-done { color: var(--ink); }
.path li.is-done span { background: var(--ink); border-color: var(--ink); }
.path li.is-active { color: var(--ink); }
.path li.is-active span { border-color: var(--gold); box-shadow: 0 0 0 5px var(--gold-soft); }

.progress { margin-top: 20px; height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.progress__bar { width: 62%; height: 100%; background: linear-gradient(90deg, var(--sage), var(--gold)); border-radius: inherit; }

/* ---------- Strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.strip__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 16px; padding-top: 24px; padding-bottom: 24px;
  font-family: var(--font-display); font-size: 20px; color: var(--ink-soft);
}
.strip .sep { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section--tint { background: var(--paper-2); }
.section__head { max-width: 640px; margin-bottom: 56px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.split__body { color: var(--ink-soft); padding-top: 34px; }

.facts { margin: 36px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 140px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); font-weight: 500; }

/* Feature cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--gold-soft); display: grid; place-items: center; margin-bottom: 28px;
}
.feature__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-family: var(--font-display); font-size: 24px; margin-bottom: 12px; }
.feature p { color: var(--muted); flex: 1; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.steps li { padding: 28px 28px 0 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps__num { display: block; font-family: var(--font-display); font-size: 15px; color: var(--gold); margin-bottom: 40px; }
.steps h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 16px; }

/* Quote */
.quote { background: var(--ink); color: var(--paper); padding: 120px 0; }
.quote__inner { max-width: 900px; text-align: center; }
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.quote__cite { margin-top: 28px; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact .h2 { margin-bottom: 18px; }
.contact__block { margin-top: 32px; }
.contact__block h4 { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.contact__block address { font-style: normal; font-size: 18px; line-height: 1.6; }
.contact__block a { font-size: 18px; border-bottom: 1px solid var(--gold); }

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid; gap: 18px;
  box-shadow: var(--shadow);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.form textarea { resize: vertical; }
.form__note { margin: 0; font-size: 14px; color: var(--sage); min-height: 1.2em; }

/* Footer */
.footer { background: #18213A; color: rgba(247, 243, 234, .72); padding: 80px 0 32px; font-size: 15px; }
.footer__inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer__tag { margin-top: 14px; font-family: var(--font-display); font-style: italic; color: var(--paper); }
.footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer__cols div { display: grid; gap: 10px; align-content: start; }
.footer h5 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.footer a:hover { color: var(--paper); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 64px; padding-top: 24px;
  border-top: 1px solid rgba(247, 243, 234, .12);
  font-size: 13px;
}

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .slide img, .slide figcaption { transition: none; transform: none; }
  .carousel__dot.is-active span::after { animation: none; transform: scaleX(1); }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid, .split, .contact { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 48px; }
  .hero__visual { max-width: 520px; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li { padding-bottom: 32px; }
  .split__body { padding-top: 0; }
  .section { padding: 88px 0; }
}

@media (max-width: 760px) {
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
    display: none;
  }
  .nav__links a { padding: 12px 0; font-size: 17px; }
  .nav.is-open .nav__links { display: flex; }
  .nav .btn--small { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .strip__inner { justify-content: center; font-size: 17px; gap: 10px 24px; }
  .strip .sep { display: none; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding-left: 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .steps__num { margin-bottom: 16px; }
  .form { padding: 24px; }
  .form__row { grid-template-columns: 1fr; }
  .hero__actions { flex-wrap: wrap; gap: 20px; }
  .hero__visual { padding: 0 0 0 0; }
  .hero__visual::before { display: none; }
  .carousel { aspect-ratio: 4 / 4.4; }
  .slide figcaption { font-size: 20px; left: 20px; right: 20px; }
  .mini-card { display: none; }
}
