/* =====================================================================
   KATS Ayurveda College & Hospital — Design System
   Palette drawn from Ayurveda: deep forest green, turmeric gold, warm sand.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --green-900: #0e2f22;
  --green-800: #14472f;
  --green-700: #1a5c3a;
  --green-600: #217049;
  --green-500: #2d8a5c;
  --green-400: #4aa878;
  --green-100: #e3f2ea;
  --green-50:  #f2f9f5;

  --gold-700: #9a6a08;
  --gold-600: #c08a12;
  --gold-500: #e0a51c;
  --gold-400: #edc158;
  --gold-100: #fbf1d8;

  --clay-600: #a4552f;
  --clay-100: #fbeee7;

  /* Neutrals */
  --ink-900: #14201b;
  --ink-700: #33443c;
  --ink-500: #5c6f66;
  --ink-400: #7d8f86;
  --ink-300: #adbcb4;
  --ink-200: #dbe4df;
  --ink-100: #eef3f0;
  --paper:   #ffffff;
  --sand:    #faf8f4;

  /* Status */
  --danger:  #b3261e;
  --danger-bg: #fdecea;
  --success: #1a7f45;
  --success-bg: #e6f5ec;
  --warn:    #9a6a08;
  --warn-bg: #fdf4e0;
  --info:    #1c5f8a;
  --info-bg: #e7f2f9;

  /* Type — Segoe UI first, with per-platform fallbacks so the same weights
     and rhythm hold on macOS, Android and Linux. No webfont download. */
  --font-body: "Segoe UI", "Segoe UI Variable Text", -apple-system,
               BlinkMacSystemFont, "Helvetica Neue", Roboto, "Noto Sans",
               Arial, sans-serif;
  --font-head: "Segoe UI Semibold", "Segoe UI", "Segoe UI Variable Display",
               -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto,
               Arial, sans-serif;

  /* Space & shape */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(20, 32, 27, .06), 0 1px 3px rgba(20, 32, 27, .04);
  --shadow:    0 4px 12px rgba(20, 32, 27, .07), 0 2px 4px rgba(20, 32, 27, .04);
  --shadow-lg: 0 18px 40px rgba(20, 32, 27, .12), 0 6px 12px rgba(20, 32, 27, .06);

  --wrap: 1200px;
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  /* `clip` (unlike `hidden`) contains the off-canvas mobile drawer without
     creating a scroll container, so the sticky header keeps working. */
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--green-600); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--green-800); }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink-900);
  line-height: 1.18;
  /* Segoe UI is a sans; heavier weight and tighter tracking keep headings
     authoritative without the serif contrast the design started with. */
  font-weight: 700;
  letter-spacing: -.021em;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.15rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.35rem); letter-spacing: -.026em; }
h3 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); }
h4 { font-size: 1.15rem; letter-spacing: -.012em; }

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

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  /* Entrance animations translate content before settling; clipping here
     keeps that motion from ever widening the document. */
  overflow-x: clip;
}
.section--tight { padding: clamp(2.5rem, 4vw, 3.5rem) 0; }
.section--sand { background: var(--sand); }
.section--mint { background: var(--green-50); }

.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--green-800); color: #fff; padding: .8rem 1.3rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Section heading ---------- */
.sec-head { max-width: 720px; margin-bottom: 2.75rem; }
.sec-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--green-600); margin-bottom: .85rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--gold-500); border-radius: 2px;
}
.sec-head--center .eyebrow::before { display: none; }
.sec-head p { margin-top: .9rem; color: var(--ink-500); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.6rem; border-radius: 100px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; text-align: center;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-800); color: #fff; box-shadow: var(--shadow); }
.btn-gold { background: var(--gold-500); color: var(--green-900); }
.btn-gold:hover { background: var(--gold-400); color: var(--green-900); }
.btn-outline { border-color: var(--ink-200); color: var(--ink-700); background: transparent; }
.btn-outline:hover { border-color: var(--green-600); color: var(--green-700); background: var(--green-50); }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }
.btn-sm { padding: .5rem 1.05rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--green-900); color: rgba(255,255,255,.82);
  font-size: .83rem; padding: .5rem 0;
}
.topbar__inner { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; align-items: center; justify-content: space-between; }
.topbar a { color: rgba(255,255,255,.82); }
.topbar a:hover { color: var(--gold-400); }
.topbar__contact { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.topbar__contact span { display: inline-flex; align-items: center; gap: .45rem; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--ink-100);
  transition: box-shadow .2s ease;
}
.header.is-stuck { box-shadow: var(--shadow); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }
.brand__mark {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(140deg, var(--green-600), var(--green-800));
  display: grid; place-items: center; color: var(--gold-400);
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.brand__text strong {
  display: block; font-family: var(--font-head); font-size: 1.06rem;
  color: var(--green-900); line-height: 1.15; font-weight: 700;
}
.brand__text span { display: block; font-size: .74rem; color: var(--ink-400); letter-spacing: .02em; }

/* Official logo lockup — already contains the institution name. */
.brand__logo { height: 46px; width: auto; max-width: min(62vw, 420px); object-fit: contain; }
@media (max-width: 560px) { .brand__logo { height: 38px; } }

/* ---------- Navigation ---------- */
.nav { display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: .15rem; list-style: none; padding: 0; margin: 0; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: .3rem;
  padding: .6rem .78rem; border-radius: 8px;
  font-size: .93rem; font-weight: 500; color: var(--ink-700); white-space: nowrap;
}
.nav__link:hover { background: var(--green-50); color: var(--green-800); }
.nav__item.is-active > .nav__link { color: var(--green-700); font-weight: 600; }
.nav__link .chev { width: 10px; height: 10px; transition: transform .18s ease; opacity: .6; }
.nav__item:hover .chev { transform: rotate(180deg); }

.nav__sub {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 248px;
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: .45rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav__item:hover > .nav__sub,
.nav__item:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sub a {
  display: block; padding: .58rem .8rem; border-radius: 7px;
  font-size: .9rem; color: var(--ink-700);
}
.nav__sub a:hover { background: var(--green-50); color: var(--green-800); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--ink-200);
  background: #fff; border-radius: 10px; cursor: pointer; padding: 0;
  place-items: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink-700); position: relative; transition: background .2s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink-700);
  transition: transform .22s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(78vh, 660px); display: grid; isolation: isolate; overflow: hidden; }
.hero__slide {
  grid-area: 1 / 1; position: relative; display: grid; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(14,47,34,.93) 0%, rgba(14,47,34,.78) 42%, rgba(14,47,34,.42) 100%);
}
.hero__inner { padding: clamp(3.5rem, 8vw, 6rem) 0; max-width: 700px; color: #fff; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .95rem;
  border: 1px solid rgba(255,255,255,.32); border-radius: 100px;
  font-size: .78rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--gold-400); margin-bottom: 1.4rem; backdrop-filter: blur(6px);
}
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero p { font-size: clamp(1.02rem, .95rem + .4vw, 1.18rem); color: rgba(255,255,255,.88); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* Previous / next arrows */
.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 4; display: grid; place-items: center;
  width: 52px; height: 52px; padding: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .38);
  color: #fff;
  backdrop-filter: blur(6px);
  transition: background .22s ease, border-color .22s ease,
              transform .22s var(--ease-out), opacity .22s ease;
}
.hero__arrow svg { width: 24px; height: 24px; }
.hero__arrow:hover {
  background: var(--gold-500); border-color: var(--gold-500);
  color: var(--green-900);
}
.hero__arrow:active { transform: translateY(-50%) scale(.94); }
.hero__arrow--prev { left: clamp(.7rem, 2.4vw, 2rem); }
.hero__arrow--next { right: clamp(.7rem, 2.4vw, 2rem); }
.hero__arrow--prev:hover { transform: translateY(-50%) translateX(-3px); }
.hero__arrow--next:hover { transform: translateY(-50%) translateX(3px); }

/* Fade the arrows back until the hero is hovered or an arrow is focused,
   so they never compete with the headline on a large screen. */
@media (hover: hover) and (min-width: 900px) {
  .hero__arrow { opacity: 0; }
  .hero:hover .hero__arrow,
  .hero__arrow:focus-visible { opacity: 1; }
}

@media (max-width: 620px) {
  .hero__arrow { width: 42px; height: 42px; }
  .hero__arrow svg { width: 20px; height: 20px; }
}

.hero__dots {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .55rem; z-index: 3;
}
.hero__dots button {
  width: 34px; height: 4px; border: 0; padding: 0; border-radius: 4px; cursor: pointer;
  background: rgba(255,255,255,.38); transition: background .2s;
}
.hero__dots button.is-active { background: var(--gold-500); }

/* ---------- Marquee / ticker ---------- */
.ticker {
  background: var(--gold-100); border-bottom: 1px solid var(--gold-400);
  display: flex; align-items: stretch; overflow: hidden;
}
.ticker__label {
  background: var(--green-800); color: #fff; padding: .7rem 1.2rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  display: flex; align-items: center; gap: .5rem; flex-shrink: 0; white-space: nowrap;
}
/* min-width:0 lets this flex child shrink below its content width, so the
   scrolling track stays clipped instead of stretching the row. */
.ticker__viewport { overflow: hidden; flex: 1; min-width: 0; display: flex; align-items: center; }
.ticker__track { display: flex; gap: 3rem; padding-left: 1.5rem; white-space: nowrap; animation: ticker 42s linear infinite; }
.ticker__viewport:hover .ticker__track { animation-play-state: paused; }
.ticker__track a { color: var(--green-900); font-size: .9rem; font-weight: 500; }
.ticker__track a:hover { color: var(--clay-600); }
.ticker__track time { color: var(--gold-700); font-weight: 600; margin-right: .5rem; font-size: .82rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--ink-100); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.stat { background: #fff; padding: 1.9rem 1.2rem; text-align: center; }
.stat__num { font-family: var(--font-head); font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem); font-weight: 700; color: var(--green-700); line-height: 1; }
.stat__num sup { font-size: .5em; color: var(--gold-600); top: -.6em; }
.stat__label { margin-top: .5rem; font-size: .84rem; color: var(--ink-500); font-weight: 500; letter-spacing: .02em; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green-100); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-50); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card__title { font-size: 1.12rem; }
.card__title a { color: var(--ink-900); }
.card__title a:hover { color: var(--green-700); }
.card__text { color: var(--ink-500); font-size: .93rem; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .3rem; padding-top: .9rem; border-top: 1px solid var(--ink-100); font-size: .85rem; }

.chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .7rem;
  border-radius: 100px; font-size: .74rem; font-weight: 600;
  background: var(--green-100); color: var(--green-800);
  letter-spacing: .03em; text-transform: uppercase;
}
.chip--gold { background: var(--gold-100); color: var(--gold-700); }
.chip--clay { background: var(--clay-100); color: var(--clay-600); }

/* Department card */
.dept-card {
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius);
  padding: 1.6rem; display: flex; flex-direction: column; gap: .7rem;
  position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.dept-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(var(--green-500), var(--gold-500));
  transform: scaleY(0); transform-origin: top; transition: transform .3s ease;
}
.dept-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green-100); }
.dept-card:hover::before { transform: scaleY(1); }
.dept-card__num {
  font-family: var(--font-head); font-size: .95rem; font-weight: 700;
  color: var(--gold-600); letter-spacing: .05em;
}
.dept-card h3 { font-size: 1.08rem; }
.dept-card h3 a { color: var(--ink-900); }
.dept-card h3 a:hover { color: var(--green-700); }
.dept-card p { font-size: .9rem; color: var(--ink-500); flex: 1; }
.dept-card__meta { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; font-size: .82rem; color: var(--ink-400); }

/* Staff card */
.staff-card {
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius);
  padding: 1.25rem; display: flex; gap: 1rem; align-items: flex-start;
  position: relative; overflow: hidden;
  transition: box-shadow .24s var(--ease-out), border-color .24s ease, transform .24s var(--ease-out);
}
/* Gold edge slides in on hover. */
.staff-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(var(--gold-500), var(--green-500));
  transform: scaleY(0); transform-origin: top;
  transition: transform .3s var(--ease-out);
}
.staff-card:hover {
  box-shadow: var(--shadow); border-color: var(--green-100); transform: translateY(-3px);
}
.staff-card:hover::before { transform: scaleY(1); }
.staff-card__avatar {
  width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(140deg, var(--green-600), var(--green-800));
  display: grid; place-items: center; color: var(--gold-400);
  font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em;
  box-shadow: 0 3px 10px rgba(20,71,47,.22);
}
.staff-card__avatar img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
}
.staff-card__name { font-weight: 650; color: var(--ink-900); font-size: 1rem; line-height: 1.35; }
.staff-card__role { font-size: .86rem; color: var(--green-600); font-weight: 600; margin-top: .16rem; }
.staff-card__qual { font-size: .81rem; color: var(--ink-400); margin-top: .22rem; }

/* Department heading used to group staff lists. */
.group-head {
  display: flex; align-items: center; gap: .85rem;
  margin: 2.4rem 0 1.2rem; padding-bottom: .7rem;
  border-bottom: 2px solid var(--green-100);
}
.group-head__badge {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(140deg, var(--green-600), var(--green-800));
  color: var(--gold-400); display: grid; place-items: center;
  font-size: .82rem; font-weight: 700;
}
.group-head h3 { font-size: 1.12rem; margin: 0; color: var(--green-900); }
.group-head__count {
  margin-left: auto; font-size: .8rem; color: var(--ink-400); font-weight: 600;
  white-space: nowrap;
}

/* Download row */
.dl-row {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem;
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius);
  position: relative; overflow: hidden;
  transition: border-color .22s ease, box-shadow .22s var(--ease-out), transform .22s var(--ease-out);
}
/* Soft green wash sweeps in from the left on hover. */
.dl-row::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--green-50), transparent 60%);
  opacity: 0; transition: opacity .22s ease;
}
.dl-row > * { position: relative; }
.dl-row:hover {
  border-color: var(--green-100); box-shadow: var(--shadow); transform: translateX(4px);
}
.dl-row:hover::before { opacity: 1; }
.dl-row__icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 11px;
  display: grid; place-items: center; font-size: .66rem; font-weight: 700;
  background: linear-gradient(140deg, #c2603a, var(--clay-600));
  color: #fff; letter-spacing: .04em;
  box-shadow: 0 3px 9px rgba(164,85,47,.26);
}
.dl-row__icon.is-xls {
  background: linear-gradient(140deg, var(--green-500), var(--green-700));
  box-shadow: 0 3px 9px rgba(33,112,73,.26);
}
/* The title and meta are spans, so make them block-level to stack. */
.dl-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .18rem; }
.dl-row__title { display: block; font-weight: 620; color: var(--ink-900); font-size: .97rem; line-height: 1.4; }
.dl-row__meta  { display: block; font-size: .82rem; color: var(--ink-400); line-height: 1.5; }
.dl-row__arrow {
  flex-shrink: 0; color: var(--green-600); font-weight: 700;
  opacity: 0; transform: translateX(-6px);
  transition: opacity .22s ease, transform .22s var(--ease-out);
}
.dl-row:hover .dl-row__arrow { opacity: 1; transform: none; }

/* Category band used to head a group of downloads. */
.cat-head {
  display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem;
  padding: .9rem 1.15rem; border-radius: var(--radius);
  background: linear-gradient(120deg, var(--green-50), var(--sand));
  border: 1px solid var(--green-100);
}
.cat-head h2 { font-size: 1.15rem; margin: 0; color: var(--green-900); }
.cat-head__n {
  margin-left: auto; font-size: .78rem; font-weight: 700; color: var(--green-700);
  background: #fff; border: 1px solid var(--green-100);
  padding: .2rem .65rem; border-radius: 100px; white-space: nowrap;
}

/* ---------- Page hero ---------- */
.page-hero {
  background:
    radial-gradient(1100px 380px at 88% -10%, rgba(224,165,28,.20), transparent 62%),
    linear-gradient(120deg, var(--green-900) 0%, var(--green-800) 46%, var(--green-600) 100%);
  color: #fff; padding: clamp(2.8rem, 5.5vw, 4.6rem) 0 clamp(2.4rem, 4.5vw, 3.6rem);
  position: relative; overflow: hidden;
  border-bottom: 3px solid var(--gold-500);
}
/* Faint herbal-leaf motif, drawn in CSS so it costs no extra request. */
.page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 30%, #fff 1.5px, transparent 1.6px),
    radial-gradient(circle at 42% 72%, #fff 1.5px, transparent 1.6px),
    radial-gradient(circle at 72% 22%, #fff 1.5px, transparent 1.6px),
    radial-gradient(circle at 92% 62%, #fff 1.5px, transparent 1.6px);
  background-size: 220px 220px;
}
.page-hero::after {
  content: ""; position: absolute; right: -90px; bottom: -140px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.09), transparent 66%);
  pointer-events: none;
}
.page-hero > .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.18); }
.page-hero p {
  color: rgba(255,255,255,.86); margin-top: .8rem; max-width: 64ch;
  font-size: clamp(1rem, .95rem + .25vw, 1.1rem); line-height: 1.7;
}
/* Gold rule between the title and the sub-line. */
.page-hero h1::after {
  content: ""; display: block; width: 62px; height: 3px; border-radius: 3px;
  background: var(--gold-500); margin-top: .9rem;
}

/* Quick-facts strip that sits at the foot of a page hero. */
.hero-facts {
  display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.6rem;
}
.hero-facts span {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .42rem .9rem; border-radius: 100px;
  background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: .84rem; font-weight: 500;
  backdrop-filter: blur(4px);
  transition: background .2s ease, transform .2s var(--ease-out);
}
.hero-facts span:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.hero-facts strong { color: var(--gold-400); font-weight: 700; }

.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; margin-bottom: .9rem; position: relative; }
.crumbs a { color: rgba(255,255,255,.72); }
.crumbs a:hover { color: var(--gold-400); }
.crumbs span { color: rgba(255,255,255,.45); }
.crumbs strong { color: var(--gold-400); font-weight: 500; }

/* ---------- Article layout: content + sticky sidebar ---------- */
.article-grid { display: grid; gap: clamp(2rem, 4vw, 3.4rem); }
@media (min-width: 940px) {
  .article-grid { grid-template-columns: minmax(0, 1fr) 310px; align-items: start; }
}
.article-aside { display: grid; gap: 1.1rem; }
@media (min-width: 940px) {
  .article-aside { position: sticky; top: 96px; }
}

/* Sidebar panel */
.side-card {
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius);
  padding: 1.3rem; box-shadow: var(--shadow-sm);
}
.side-card--mint { background: var(--green-50); border-color: var(--green-100); }
.side-card--dark {
  background: linear-gradient(150deg, var(--green-900), var(--green-800));
  border: 0; color: #fff;
}
.side-card--dark h4, .side-card--dark strong { color: #fff; }
.side-card--dark p, .side-card--dark li { color: rgba(255,255,255,.8); }
.side-card__title {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--green-600); font-weight: 700; margin-bottom: .9rem;
  display: flex; align-items: center; gap: .5rem;
}
.side-card--dark .side-card__title { color: var(--gold-400); }
.side-card__title::before {
  content: ""; width: 18px; height: 2px; background: var(--gold-500); border-radius: 2px;
}
.side-nav { display: grid; gap: .2rem; }
.side-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .6rem .8rem; border-radius: 8px; font-size: .91rem;
  color: var(--ink-700); transition: background .18s ease, color .18s ease, transform .18s var(--ease-out);
}
.side-nav a:hover { background: var(--green-50); color: var(--green-800); transform: translateX(3px); }
.side-nav a.is-current { background: var(--green-700); color: #fff; font-weight: 600; }
.side-nav a.is-current:hover { background: var(--green-800); color: #fff; }

/* Key-value list for facts in a sidebar */
.fact-list { display: grid; gap: .7rem; }
.fact-list div { display: grid; gap: .1rem; }
.fact-list dt, .fact-list .k {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--ink-400); font-weight: 600;
}
.fact-list dd, .fact-list .v { margin: 0; font-weight: 600; color: var(--ink-900); font-size: .95rem; }
.side-card--dark .fact-list .k { color: rgba(255,255,255,.55); }
.side-card--dark .fact-list .v { color: #fff; }

/* ---------- Prose ---------- */
.prose { max-width: 74ch; color: var(--ink-700); font-size: 1.02rem; }
.prose > * + * { margin-top: 1.2rem; }
.prose p { line-height: 1.8; }

/* Opening paragraph reads as a lead-in. */
.prose > p:first-of-type {
  font-size: 1.12rem; line-height: 1.75; color: var(--ink-900);
}

/* Section headings get a gold marker so long pages scan easily. */
.prose h2 {
  margin-top: 2.6rem; padding-bottom: .5rem;
  border-bottom: 1px solid var(--ink-100);
}
.prose h3 {
  margin-top: 2.1rem; color: var(--green-800);
  display: flex; align-items: center; gap: .6rem;
}
.prose h3::before {
  content: ""; width: 4px; height: 1.05em; border-radius: 2px;
  background: linear-gradient(var(--gold-500), var(--green-500)); flex-shrink: 0;
}
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li + li { margin-top: .45rem; }
.prose li::marker { color: var(--green-500); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  border-left: 3px solid var(--gold-500); padding: .3rem 0 .3rem 1.3rem;
  color: var(--ink-500); font-style: italic;
}
.prose img { border-radius: var(--radius); margin-block: 1.6rem; }
.prose table { margin-block: 1.6rem; }

/* Archival portrait shown alongside biography text. */
.prose > .portrait-figure + * { margin-top: 0; }
.portrait-figure {
  float: right; width: min(300px, 42%);
  /* `.prose > * + *` adds a top margin to following siblings; keep the
     figure's own offsets explicit so the float still hugs the text. */
  margin: 0 0 1.4rem 1.8rem !important;
  padding: .6rem; background: var(--sand);
  border: 1px solid var(--ink-100); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.portrait-figure img { width: 100%; border-radius: var(--radius-sm); margin: 0; }
.portrait-figure figcaption {
  margin-top: .6rem; font-size: .82rem; color: var(--ink-500);
  text-align: center; line-height: 1.5;
}
@media (max-width: 620px) {
  .portrait-figure { float: none; width: min(320px, 100%); margin: 0 auto 1.6rem; }
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--ink-100);
  border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm);
  /* Right-edge shade hints that the table scrolls on narrow screens. */
  background-image: linear-gradient(to left, rgba(20,32,27,.055), transparent 42px);
  background-repeat: no-repeat; background-position: right; background-size: 42px 100%;
}
.table { width: 100%; font-size: .93rem; min-width: 520px; background: transparent; }
.table th, .table td { padding: .88rem 1.1rem; text-align: left; border-bottom: 1px solid var(--ink-100); }
.table thead th {
  background: linear-gradient(var(--green-800), var(--green-900));
  color: #fff; font-weight: 650;
  font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap;
  position: sticky; top: 0; z-index: 1;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .16s ease; }
.table tbody tr:hover { background: var(--green-50); }
.table tbody td:first-child { font-variant-numeric: tabular-nums; color: var(--ink-400); font-weight: 600; }
.table--zebra tbody tr:nth-child(even) { background: var(--green-50); }
.table--zebra tbody tr:nth-child(even):hover { background: var(--green-100); }

/* ---------- Gallery ---------- */
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1rem; }
.gal-item {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden;
  background: var(--green-50); cursor: pointer; border: 0; padding: 0; display: block; width: 100%;
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gal-item:hover img { transform: scale(1.07); }
.gal-item__cap {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem .9rem .8rem;
  background: linear-gradient(transparent, rgba(14,47,34,.85));
  color: #fff; font-size: .87rem; text-align: left;
  opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease;
}
.gal-item:hover .gal-item__cap { opacity: 1; transform: translateY(0); }

.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(10,20,15,.94);
  display: none; place-items: center; padding: 2rem;
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: var(--radius); object-fit: contain; }
.lightbox__cap { color: rgba(255,255,255,.85); text-align: center; margin-top: 1rem; font-size: .92rem; }
.lightbox__close {
  position: absolute; top: 1.4rem; right: 1.4rem; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08);
  color: #fff; font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.08); color: #fff; font-size: 1.4rem; cursor: pointer;
}
.lightbox__nav--prev { left: 1.4rem; }
.lightbox__nav--next { right: 1.4rem; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.1rem; }
.label { display: block; font-size: .87rem; font-weight: 600; color: var(--ink-700); margin-bottom: .4rem; }
.label .req { color: var(--danger); }
.input, .textarea, .select {
  width: 100%; padding: .72rem .95rem; border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-sm); background: #fff; font-size: .95rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px var(--green-100);
}
.textarea { min-height: 140px; resize: vertical; }
.hint { font-size: .8rem; color: var(--ink-400); margin-top: .3rem; }
.honey { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------- Alerts ---------- */
.alert {
  padding: .9rem 1.15rem; border-radius: var(--radius-sm); margin-bottom: 1rem;
  font-size: .92rem; border-left: 3px solid; display: flex; gap: .6rem; align-items: flex-start;
}
.alert-success { background: var(--success-bg); border-color: var(--success); color: #14532d; }
.alert-error   { background: var(--danger-bg);  border-color: var(--danger);  color: #7f1d1d; }
.alert-warning { background: var(--warn-bg);    border-color: var(--warn);    color: #713f12; }
.alert-info    { background: var(--info-bg);    border-color: var(--info);    color: #0c4a6e; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr .9fr; } }
.contact-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.05rem 1.1rem; margin-bottom: .6rem;
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius);
  transition: box-shadow .22s var(--ease-out), border-color .22s ease, transform .22s var(--ease-out);
}
.contact-item:hover {
  box-shadow: var(--shadow); border-color: var(--green-100); transform: translateY(-2px);
}
.contact-item__icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 1.05rem;
  background: linear-gradient(140deg, var(--green-600), var(--green-800));
  color: var(--gold-400);
  box-shadow: 0 3px 9px rgba(20,71,47,.2);
}

/* Form panel */
.form-card {
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow);
}
.contact-item__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-400); font-weight: 600; }
.contact-item__value { color: var(--ink-900); font-weight: 500; margin-top: .18rem; }
.map-frame { border: 0; width: 100%; height: 340px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Pagination ---------- */
.pager { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 3rem; }
.pager a, .pager span {
  min-width: 42px; height: 42px; padding: 0 .8rem; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ink-200); font-size: .92rem; font-weight: 500; color: var(--ink-700);
}
.pager a:hover { border-color: var(--green-500); color: var(--green-700); background: var(--green-50); }
.pager .is-current { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.pager .is-disabled { opacity: .4; pointer-events: none; }

/* ---------- Founder tribute band ---------- */
.founder-band {
  display: grid; gap: clamp(1.6rem, 4vw, 3rem); align-items: center;
  background: linear-gradient(120deg, var(--green-50), var(--sand));
  border: 1px solid var(--green-100); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 3rem); position: relative; overflow: hidden;
}
@media (min-width: 820px) { .founder-band { grid-template-columns: auto 1fr; } }
.founder-band::after {
  content: ""; position: absolute; right: -70px; top: -70px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,165,28,.16), transparent 70%);
  pointer-events: none;
}
.founder-band__portrait {
  margin: 0; width: min(280px, 100%); justify-self: center;
  padding: .55rem; background: #fff;
  border: 1px solid var(--ink-100); border-radius: var(--radius);
  box-shadow: var(--shadow); position: relative;
}
.founder-band__portrait img {
  width: 100%; border-radius: var(--radius-sm); display: block;
}
.founder-band__body { position: relative; }
.founder-band__body h2 { margin-top: .3rem; }
.founder-band__years {
  color: var(--gold-700); font-weight: 600; font-size: .9rem;
  margin: .5rem 0 1rem; letter-spacing: .01em;
}
.founder-band__body p { color: var(--ink-500); }

/* ---------- Quote byline with portrait ---------- */
.quote-byline {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 1.8rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.16);
}
.quote-byline__photo {
  width: 72px; height: 72px; flex-shrink: 0;
  /* The source is pre-cropped square and centred, so no object-position shift. */
  border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,.25);
  box-shadow: 0 4px 14px rgba(0,0,0,.28);
}

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(120deg, var(--green-800), var(--green-600));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(2.2rem, 4vw, 3.4rem);
  display: grid; gap: 1.6rem; align-items: center; position: relative; overflow: hidden;
}
@media (min-width: 860px) { .cta { grid-template-columns: 1fr auto; } }
.cta::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 280px; height: 280px;
  border-radius: 50%; background: radial-gradient(circle, rgba(224,165,28,.24), transparent 70%);
}
.cta h2 { color: #fff; position: relative; }
.cta p { color: rgba(255,255,255,.85); margin-top: .6rem; position: relative; max-width: 60ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; position: relative; }

/* ---------- Footer ---------- */
.footer { background: var(--green-900); color: rgba(255,255,255,.68); padding-top: 4rem; margin-top: 0; }
.footer__grid { display: grid; gap: 2.4rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); padding-bottom: 3rem; }
.footer h4 {
  color: #fff; font-size: .84rem; text-transform: uppercase; letter-spacing: .11em;
  margin-bottom: 1.1rem; font-family: var(--font-body); font-weight: 700;
}
.footer a { color: rgba(255,255,255,.68); }
.footer a:hover { color: var(--gold-400); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer ul a { font-size: .92rem; }

/* Footer icons — a single 24x24 stroke set, sized to match the text. */
.fico {
  width: 17px; height: 17px; flex-shrink: 0;
  stroke: var(--gold-500); opacity: .82;
  transition: stroke .18s ease, opacity .18s ease, transform .18s ease;
}
.footer__links a,
.footer__contact li {
  display: flex; align-items: flex-start; gap: .6rem;
}
.footer__links a { align-items: center; }
.footer__links a:hover .fico { opacity: 1; transform: translateX(2px); }
.footer__contact .fico { margin-top: .18rem; }

/* Nudge the icon column so wrapped text lines up under itself. */
.footer__links a span,
.footer__contact li > span,
.footer__contact li > a { min-width: 0; }
.footer__brand { display: flex; gap: .8rem; align-items: center; margin-bottom: 1.2rem; }
.footer__brand strong { color: #fff; font-family: var(--font-head); font-size: 1.05rem; display: block; line-height: 1.2; }
/* Official logo, light variant — sized to the footer column. Held just below
   full white so it sits with the muted footer text rather than shouting. */
.footer__logo { width: min(100%, 300px); height: auto; opacity: .92; }
.footer__about { font-size: .92rem; line-height: 1.7; }
.footer__contact { display: grid; gap: .7rem; font-size: .92rem; }
/* Layout for .footer__contact li is defined with the footer icon rules above. */
.footer__bar {
  border-top: 1px solid rgba(255,255,255,.11); padding: 1.4rem 0;
  display: flex; flex-wrap: wrap; gap: .7rem 1.5rem; justify-content: space-between;
  font-size: .85rem; color: rgba(255,255,255,.52);
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.muted { color: var(--ink-400); }
.small { font-size: .87rem; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.empty-state { text-align: center; padding: 3.5rem 1.5rem; color: var(--ink-400); }
.empty-state svg { margin: 0 auto 1rem; opacity: .35; }

/* =====================================================================
   Motion
   Every effect below is disabled wholesale by the reduced-motion block at
   the end of this file, so the site stays usable for anyone who asks for
   less animation at the OS level.
   ===================================================================== */

:root {
  --ease-out: cubic-bezier(.22, .68, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.32, .48, 1);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Directional variants for side-by-side sections.
   A horizontal translate on a full-width block extends the document and
   makes the page scrollable sideways on phones, so the offset is applied
   only from the tablet breakpoint up. Below that these fade and rise. */
.reveal-left,
.reveal-right { opacity: 0; transform: translateY(24px); transition: opacity .75s var(--ease-out), transform .75s var(--ease-out); }
.reveal-zoom  { opacity: 0; transform: scale(.94);       transition: opacity .7s var(--ease-out), transform .7s var(--ease-spring); }

@media (min-width: 820px) {
  .reveal-left  { transform: translateX(-34px); }
  .reveal-right { transform: translateX(34px); }
}

.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-zoom.is-visible { opacity: 1; transform: none; }

/* Children animate in sequence; the delay is set inline by JS. Vertical only,
   so a staggered grid can never widen the page. */
.stagger > * {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.stagger.is-visible > * { opacity: 1; transform: none; }

/* ---------- Entrance animations ---------- */
@keyframes fadeUp   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes floatY   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(224,165,28,.45); }
  70%  { box-shadow: 0 0 0 14px rgba(224,165,28,0); }
  100% { box-shadow: 0 0 0 0 rgba(224,165,28,0); }
}
@keyframes shimmer  { from { background-position: -420px 0; } to { background-position: 420px 0; } }
@keyframes gradientDrift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Hero content rises as each slide becomes active. */
.hero__slide.is-active .hero__badge { animation: fadeUp .7s var(--ease-out) .12s both; }
.hero__slide.is-active h1           { animation: fadeUp .8s var(--ease-out) .22s both; }
.hero__slide.is-active > .wrap > p,
.hero__slide.is-active .hero__inner > p { animation: fadeUp .8s var(--ease-out) .34s both; }
.hero__slide.is-active .hero__actions   { animation: fadeUp .8s var(--ease-out) .46s both; }

/* Slow zoom on the active slide keeps the hero alive without distraction. */
.hero__bg img { transition: transform 8s linear; }
.hero__slide.is-active .hero__bg img { transform: scale(1.06); }

/* ---------- Interaction polish ---------- */
.btn {
  position: relative; overflow: hidden;
  transition: transform .18s var(--ease-out), box-shadow .22s var(--ease-out),
              background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
/* Light sweep across the button on hover. */
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.28) 50%, transparent 62%);
  transform: translateX(-120%);
  transition: transform .6s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(26,92,58,.32); }
.btn-gold:hover    { box-shadow: 0 8px 22px rgba(224,165,28,.36); }

/* Cards lift a little further and faster than before. */
.card, .dept-card, .staff-card, .dl-row, .a-stat {
  transition: transform .26s var(--ease-out), box-shadow .26s var(--ease-out),
              border-color .26s ease;
}
.card:hover, .dept-card:hover { transform: translateY(-7px); }
.stat { transition: transform .26s var(--ease-out), background .26s ease; }
.stat:hover { transform: translateY(-4px); background: var(--green-50); }
.stat:hover .stat__num { color: var(--green-800); }

/* Gallery tiles */
.gal-item { transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out); }
.gal-item:hover { transform: translateY(-4px) scale(1.012); box-shadow: var(--shadow-lg); }

/* Nav links get an underline that grows from the left. */
.nav__link { position: relative; }
.nav__link::after {
  content: ""; position: absolute; left: .78rem; right: .78rem; bottom: .34rem;
  height: 2px; border-radius: 2px; background: var(--gold-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform .26s var(--ease-out);
}
.nav__item.is-active > .nav__link::after,
.nav__link:hover::after { transform: scaleX(1); }

/* Footer links slide on hover. */
.footer__links a { transition: transform .2s var(--ease-out), color .18s ease; }
.footer__links a:hover { transform: translateX(4px); }

/* Section eyebrow rule draws itself in. */
.eyebrow::before { transition: width .5s var(--ease-out); }
.is-visible .eyebrow::before,
.reveal.is-visible .eyebrow::before { width: 34px; }

/* Founder portrait drifts gently. */
.founder-band__portrait { animation: floatY 7s ease-in-out infinite; }
.founder-band__portrait:hover { animation-play-state: paused; }

/* Live-notice bell draws the eye once on load. */
.ticker__label span { display: inline-block; animation: pulseRing 2.6s ease-out 3; border-radius: 50%; }

/* Skeleton shimmer while an image loads; JS clears it on the load event so
   the animation never runs behind an image that has already arrived. */
.is-loading {
  background-image: linear-gradient(100deg, var(--green-50) 30%, #fff 50%, var(--green-50) 70%);
  background-size: 420px 100%;
  animation: shimmer 1.5s linear infinite;
}
.img-fade { opacity: 0; transition: opacity .5s var(--ease-out); }
.img-fade.is-loaded { opacity: 1; }

/* Page hero glow drifts slowly. */
.page-hero {
  background-size: 160% 160%;
  animation: gradientDrift 18s ease-in-out infinite;
}

/* Whole page fades in on first paint, so navigation feels smooth. */
body { animation: fadeIn .45s ease both; }

/* Scroll progress bar under the header. */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: left; z-index: 200;
  background: linear-gradient(90deg, var(--green-500), var(--gold-500));
  pointer-events: none;
}

/* Back-to-top control. */
.to-top {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--green-700); color: #fff; font-size: 1.1rem; line-height: 1;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9);
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-spring), visibility .28s, background .2s;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green-800); transform: translateY(-3px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 auto; width: min(88vw, 380px);
    background: #fff; border-left: 1px solid var(--ink-100); box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .28s ease, visibility .28s;
    /* Hidden when closed so it is not focusable or read by screen readers;
       `overflow-x: clip` on <body> keeps it from widening the document. */
    visibility: hidden;
    overflow-y: auto; padding: 1.2rem; display: block; z-index: 120;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .2rem; }
  .nav__link { padding: .78rem .9rem; justify-content: space-between; font-size: 1rem; }
  .nav__sub {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-left: 2px solid var(--green-100); border-radius: 0;
    margin: .15rem 0 .5rem .9rem; padding: 0 0 0 .5rem; display: none;
  }
  .nav__item.is-open > .nav__sub { display: block; }
  .nav__item.is-open > .nav__link .chev { transform: rotate(180deg); }
  .topbar__inner { justify-content: center; text-align: center; }
}

@media (max-width: 620px) {
  .hero { min-height: 74vh; }
  .hero__actions .btn { width: 100%; }
  .stat { padding: 1.4rem .8rem; }
  .ticker__label { padding: .7rem .85rem; font-size: .7rem; }
  .section { padding: 3rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .header, .topbar, .footer, .ticker, .hero__dots, .btn, .nav-toggle { display: none !important; }
  body { color: #000; }
  .page-hero { background: none; color: #000; }
  .page-hero h1, .page-hero p { color: #000; }
}
.footer__credit a { color: rgba(255,255,255,.72); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.28); transition: color .2s, border-color .2s; } .footer__credit a:hover, .footer__credit a:focus-visible { color: var(--gold-500); border-bottom-color: var(--gold-500); }