/* ==========================================================================
   SWEEP design tokens
   A caseworker's field ledger: warm paper, deep teal, gold seals for
   achievement. Schools are numbered because there truly are only ten of
   them and the number tells you where you are in the set.
   ========================================================================== */

:root {
  --paper: #EEF0F5;
  --paper-raised: #F7F8FA;
  --ink: #16202E;
  --primary: #4C8B1D;
  --primary-dark: #356114;
  --blue: #1E9BE0;
  --green: #0B2C7A;
  --gold: #F5A400;
  --clay: #F2650A;
  --line: #D9DEE8;
  --danger: #C1440E;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --radius: 6px;
  --shadow: 0 1px 2px rgba(7, 29, 82, 0.08), 0 6px 18px rgba(7, 29, 82, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------------------------------------------------------------------- */
/* Motion system: shared elevation + reveal-on-scroll                      */
/* ---------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.hover-lift {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, opacity 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 { font-size: 2.5rem; letter-spacing: -0.01em; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3rem; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
}

.subheading{
  font-family: var(--font-mono);
  font-size: 1.9rem;
  text-transform: uppercase;
  color: var(--clay)

}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------------------- */
/* Navigation: folder-tab bar                                              */
/* ---------------------------------------------------------------------- */

.sw-nav {
  background: var(--paper-raised);
  color: var(--paper);
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.sw-nav.is-scrolled {
  background: rgba(247, 248, 250, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(7, 29, 82, 0.1);
}

.sw-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.sw-nav-bar {
  display: contents;
}

.sw-nav .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.brand-mark {
  display: block;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 4px rgba(7, 29, 82, 0.25));
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.sw-nav .brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.06);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.footer-heading h3{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
  letter-spacing: 0.02em;

}

.sw-nav .brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
}

.sw-nav-links { display: flex; gap: 4px; align-items: center; }

.sw-nav-links a {
  position: relative;
  color: var(--primary-dark);
  padding: 10px 10px;
  border-radius: var(--radius);
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sw-nav-links a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.sw-nav-links a:hover {
  background: transparent;
  text-decoration: none;
}

.sw-nav-links a:hover::after {
  transform: scaleX(1);
}

.sw-nav-links a.button {
  background: var(--gold);
  color: var(--primary-dark);
  border-radius: var(--radius);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sw-nav-links a.button::after { display: none; }

.sw-nav-links a.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(7, 29, 82, 0.18);
}

.nav-user-pill {
  position: relative;
  display: inline-flex;
  margin-left: 6px;
}

.nav-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(11, 44, 122, 0.16);
  border-radius: 999px;
  background: rgba(11, 44, 122, 0.06);
  color: var(--primary-dark);
  font: inherit;
  cursor: pointer;
}

.nav-user-trigger:hover {
  background: rgba(11, 44, 122, 0.1);
}

.nav-user-pill.open .nav-user-trigger {
  background: rgba(11, 44, 122, 0.12);
}

@media (min-width: 721px) {
  .nav-user-pill.open .nav-user-menu {
    display: flex;
  }
}

.nav-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
}

.nav-user-text {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.nav-user-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-raised);
  box-shadow: var(--shadow);
  z-index: 20;
}

.nav-user-menu a,
.nav-user-menu button {
  display: block;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  text-align: left;
  font: inherit;
  border-radius: 8px;
}

.nav-user-menu a:hover,
.nav-user-menu button:hover {
  background: rgba(11, 44, 122, 0.08);
  text-decoration: none;
  cursor: pointer;
}

.nav-user-menu form {
  margin: 0;
}

.nav-link-auth {
  display: inline-block;
}

@media (min-width: 721px) {
  .nav-link-auth {
    display: none;
  }
}

.sw-nav-toggle {
  display: none;
  background: var(--gold);
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--paper);
  padding: 10px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.4rem;
}

.sw-nav-toggle:hover {
  background: rgba(255,255,255,0.08);
}

/* ---------------------------------------------------------------------- */
/* Buttons & forms                                                         */
/* ---------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(7, 29, 82, 0.16); }
.btn:active { transform: translateY(0); box-shadow: none; }

.btn-primary { background: var(--primary); color: var(--paper); }
.btn-primary:hover { background: var(--primary-dark); }

.btn-gold { background: var(--gold); color: var(--primary-dark); }
.btn-gold:hover { background: #b3872f; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--paper); }

.btn-block { display: block; width: 100%; }

.sw-input, select.sw-input, textarea.sw-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}

.sw-input:focus, select.sw-input:focus, textarea.sw-input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

form p { margin: 0 0 14px; }
form label { display: block; font-size: 0.85rem; margin-bottom: 4px; color: var(--primary-dark); font-weight: 600; }

/* ---------------------------------------------------------------------- */
/* Featured courses carousel                                               */
/* ---------------------------------------------------------------------- */

.featured-section { padding: 16px 0 16px; }

.carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.carousel-viewport { overflow: hidden; border-radius: 16px; }

.carousel-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 4px;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  background: linear-gradient(120deg, #071D52 0%, #0B2C7A 100%);
  color: var(--paper);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 240px;
}

.featured-card .featured-body {
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.featured-card .eyebrow { color: var(--gold); }
.featured-card h3 { color: var(--paper); font-size: 1.6rem; margin-bottom: 4px; }
.featured-card p { color: #DCE8F5; margin: 0 0 6px; }
.featured-card .meta { font-family: var(--font-mono); font-size: 0.8rem; color: #BFD9F0; }

.featured-card .featured-visual {
  position: relative;
  background:
    radial-gradient(320px 240px at 80% 20%, rgba(245, 164, 0, 0.35), transparent 60%),
    repeating-linear-gradient(135deg, rgba(238,240,234,0.06) 0 2px, transparent 2px 18px),
    linear-gradient(160deg, #1E9BE0, #0B2C7A);
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-card .featured-emblem {
  font-size: 4.5rem;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.25));
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--paper-raised);
  color: var(--primary-dark);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-arrow:hover { background: var(--gold); color: var(--primary-dark); }
.carousel-arrow.prev { left: 14px; }
.carousel-arrow.next { right: 14px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--line);
  cursor: pointer;
  transition: all 0.25s ease;
}
.carousel-dot.active { background: var(--primary); width: 24px; border-radius: 5px; }

@media (max-width: 720px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-card .featured-visual { min-height: 140px; }
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */

.sw-footer {
  margin-top: 56px;
  background: linear-gradient(180deg, #0B2C7A 0%, #051A47 100%);
  color: var(--paper);
  padding: 40px 0 24px;
}

.sw-footer h3,
.sw-footer h4 {
  color: var(--paper);
  margin-bottom: 0.6rem;
}

.sw-footer p {
  margin: 0;
  color: #C9D6EC;
  max-width: 460px;
}

.sw-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.9fr;
  gap: 24px;
}

.sw-footer a {
  display: block;
  color: #F0F2EC;
  margin-bottom: 6px;
}

.sw-footer a:hover {
  color: var(--gold);
  text-decoration: none;
}

.sw-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.sw-footer-social .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #F0F2EC;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.sw-footer-social .social-icon:hover {
  background: var(--gold);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .sw-footer-grid {
    grid-template-columns: 1fr;
  }
}

.sw-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #B9C4DC;
  font-size: 0.92rem;
}

@media (max-width: 720px) {
  .sw-footer-grid {
    grid-template-columns: 1fr;
  }

  .sw-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------------------------------------------------------------------- */
/* Cards / index cards                                                     */
/* ---------------------------------------------------------------------- */

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 22px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.school-grid, .course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 12px 0;
}

.section-cta {
  display: flex;
  justify-content: center;
  margin: 8px 0 12px;
}

.btn.btn-outline.all {
  margin-top: 40px;
  width: 40%;
}

.school-card {
  position: relative;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0 0 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.school-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  z-index: 2;
}

.school-card::after {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-1) 0%, transparent 70%);
  opacity: 0.16;
  pointer-events: none;
  z-index: 2;
}

.school-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(7, 29, 82, 0.14);
}

.school-card.accent-leaf { --accent-1: #4C8B1D; --accent-2: #0B2C7A; }
.school-card.accent-moss { --accent-1: #1E9BE0; --accent-2: #071D52; }
.school-card.accent-fern { --accent-1: #F2650A; --accent-2: #4C8B1D; }
.school-card.accent-sage { --accent-1: #F5A400; --accent-2: #0B2C7A; }
.school-card.accent-pine { --accent-1: #4C8B1D; --accent-2: #071D52; }

.school-card .card-poster {
  position: relative;
  width: 100%;
  height: 210px;
  flex: none;
}

.school-card .card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.school-card .card-poster.poster-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
}

.school-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 22px 0;
}

.school-card .tab-index {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  color: var(--clay);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0;
  border-radius: 0;
  z-index: 3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.school-card h3 { margin-bottom: 2px; }
.school-card .tagline { color: var(--clay); font-size: 0.85rem; margin-bottom: 6px; }
.school-card .meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--primary-dark); }

.badge-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 100px;
}

.badge-pill.beginner { background: #DCE8F5; color: var(--primary-dark); }
.badge-pill.intermediate { background: #FBE7C2; color: #7A5A16; }
.badge-pill.advanced { background: #FBE0D0; color: var(--danger); }

.badge-pill.status-completed { background: var(--primary); color: var(--paper); }
.badge-pill.status-in_progress { background: var(--gold); color: var(--primary-dark); }
.badge-pill.status-not_started { background: var(--line); color: var(--primary-dark); }

.course-card {
  position: relative;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, opacity 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.course-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--blue), var(--primary));
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(7, 29, 82, 0.16);
}

/* ---------------------------------------------------------------------- */
/* Ledger progress bar                                                     */
/* ---------------------------------------------------------------------- */

.ledger-bar {
  display: flex;
  gap: 3px;
  height: 10px;
}

.ledger-bar .tick {
  flex: 1;
  border-radius: 2px;
  background: var(--line);
  transition: background-color 0.4s ease;
}

.ledger-bar .tick.filled { background: var(--primary); }

.progress-track {
  height: 10px;
  border-radius: 6px;
  background: var(--line);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--blue));
  border-radius: 6px;
  width: var(--fill, 0%);
  animation: progress-grow 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes progress-grow {
  from { width: 0; }
  to { width: var(--fill, 0%); }
}

/* ---------------------------------------------------------------------- */
/* Quiz                                                                    */
/* ---------------------------------------------------------------------- */

.quiz-question {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  background: var(--paper-raised);
  transition: box-shadow 0.25s ease, opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.quiz-question .q-number {
  font-family: var(--font-mono);
  color: var(--clay);
  font-size: 0.8rem;
}

.quiz-choice {
  display: block;
  padding: 10px 12px;
  margin: 4px 0;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.quiz-choice:hover { background: rgba(11, 44, 122, 0.05); }
.quiz-choice:has(input:checked) {
  background: rgba(76, 139, 29, 0.1);
  border-color: var(--primary);
}
.quiz-choice input { margin-right: 10px; }

/* ---------------------------------------------------------------------- */
/* Assessment result banners                                              */
/* ---------------------------------------------------------------------- */

.result-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 30px;
  border-radius: 18px;
  margin: 8px 0 24px;
}

.result-banner.is-pass {
  background: linear-gradient(120deg, rgba(76, 139, 29, 0.14), rgba(30, 155, 224, 0.1));
  border: 1px solid rgba(76, 139, 29, 0.3);
}

.result-banner.is-fail {
  background: linear-gradient(120deg, rgba(242, 101, 10, 0.1), rgba(193, 68, 14, 0.08));
  border: 1px solid rgba(242, 101, 10, 0.28);
}

.result-banner-icon {
  flex-shrink: 0;
  font-size: 2.6rem;
  line-height: 1;
}

.result-banner h1 { margin-bottom: 4px; }
.result-banner .lede { margin: 0; }

@media (max-width: 560px) {
  .result-banner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; }
}

/* ---------------------------------------------------------------------- */
/* Credentials wall                                                        */
/* ---------------------------------------------------------------------- */

.credential-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.credential-card {
  position: relative;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, opacity 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.credential-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(7, 29, 82, 0.16);
}

.credential-card .img-wrap { overflow: hidden; border-bottom: 1px solid var(--line); }
.credential-card img {
  width: 100%;
  display: block;
  border-bottom: 1px solid var(--line);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.credential-card:hover img { transform: scale(1.05); }
.credential-card .body { padding: 14px; }
.credential-card .actions { display: flex; gap: 8px; padding: 0 14px 14px; }

/* ---------------------------------------------------------------------- */
/* Misc                                                                    */
/* ---------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 0;
  padding: 32px 40px 40px;
  border-radius: 0;
  background:
    radial-gradient(680px 420px at 85% -10%, rgba(76, 139, 29, 0.45), transparent 60%),
    radial-gradient(520px 420px at 8% 110%, rgba(245, 164, 0, 0.28), transparent 55%),
    radial-gradient(460px 360px at 100% 100%, rgba(242, 101, 10, 0.20), transparent 60%),
    linear-gradient(155deg, #102608 0%, #356114 46%, #4C8B1D 100%);
  color: var(--paper);
  border-bottom: none;
  box-shadow: 0 18px 40px rgba(5, 26, 71, 0.28);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 32px;
}

.hero-blobs {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
}

.hero .eyebrow { color: var(--gold); }

.hero h1 {
  color: var(--paper);
  font-size: 2.9rem;
  max-width: 620px;
}

.hero .lede {
  color: #DCE8F5;
  font-size: 1.15rem;
  max-width: 520px;
}

.hero .btn-outline {
  border-color: rgba(238, 240, 234, 0.6);
  color: var(--paper);
}
.hero .btn-outline:hover { background: rgba(238, 240, 234, 0.14); color: var(--paper); }

.hero .stat-row .stat-num { color: var(--gold); }
.hero .stat-row .stat-label { color: #BFD9F0; }

.hero-illustration {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

/* ---------------------------------------------------------------------- */
/* Hero carousel (2 interchanging hero slides)                            */
/* ---------------------------------------------------------------------- */

.hero-carousel {
  position: relative;
  z-index: 2;
}

.hero-carousel .carousel-viewport { overflow: hidden; }

.hero-carousel .carousel-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-carousel .carousel-slide {
  flex: 0 0 100%;
  max-width: 100%;
}

.hero-carousel .carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(238, 240, 234, 0.35);
  background: rgba(6, 20, 4, 0.35);
  color: var(--paper);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-carousel .carousel-arrow:hover {
  background: rgba(6, 20, 4, 0.55);
  transform: translateY(-50%) scale(1.06);
}

.hero-carousel .carousel-arrow.prev { left: -6px; }
.hero-carousel .carousel-arrow.next { right: -6px; }

.hero-carousel .carousel-dots {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}

.hero-carousel .carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(238, 240, 234, 0.5);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-carousel .carousel-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.2);
}

@media (max-width: 720px) {
  .hero-carousel .carousel-arrow { display: none; }
}

.hero-map {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.hero-map-glow {
  position: absolute;
  inset: 8% 4%;
  z-index: 0;
  background:
    radial-gradient(closest-side, rgba(245, 164, 0, 0.20), transparent 72%),
    radial-gradient(closest-side, rgba(30, 155, 224, 0.22), transparent 78%);
  filter: blur(2px);
  border-radius: 50%;
}

.hero-map-dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-map-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 30px rgba(5, 26, 71, 0.55));
}

.hero-photo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 340px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 18px;
  border: 3px solid rgba(238, 240, 234, 0.7);
  box-shadow: 0 20px 40px rgba(5, 26, 71, 0.45);
}

.hero-list {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin: 0 0 24px -50vw;
  padding: 28px 30px 30px;
  border-radius: 0;
  box-shadow: var(--shadow);
}

.hero-list .hero-grid {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  gap: 20px;
}

.hero-list .hero-copy h1 {
  font-size: 2.2rem;
}

.hero-list .hero-illustration {
  max-width: 400px;
}

.hero-list .stat-row {
  margin-top: 20px;
}

.hero-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 220px;
  margin: 0 auto;
  border-radius: 50%;
  font-size: 5.5rem;
  background: linear-gradient(135deg, var(--accent-1, var(--gold)), var(--accent-2, var(--primary)));
  box-shadow: 0 16px 34px rgba(7, 29, 82, 0.22);
  animation: emblem-float 5s ease-in-out infinite;
}

.hero-emblem.accent-leaf { --accent-1: #4C8B1D; --accent-2: #0B2C7A; }
.hero-emblem.accent-moss { --accent-1: #1E9BE0; --accent-2: #071D52; }
.hero-emblem.accent-fern { --accent-1: #F2650A; --accent-2: #4C8B1D; }
.hero-emblem.accent-sage { --accent-1: #F5A400; --accent-2: #0B2C7A; }
.hero-emblem.accent-pine { --accent-1: #4C8B1D; --accent-2: #071D52; }

.hero-poster {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid rgba(238, 240, 234, 0.7);
  box-shadow: 0 20px 40px rgba(5, 26, 71, 0.45);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-poster.poster-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5.5rem;
  background: linear-gradient(135deg, var(--accent-1, var(--gold)), var(--accent-2, var(--primary)));
  animation: emblem-float 5s ease-in-out infinite;
}

.hero-poster.poster-fallback.accent-leaf { --accent-1: #4C8B1D; --accent-2: #0B2C7A; }
.hero-poster.poster-fallback.accent-moss { --accent-1: #1E9BE0; --accent-2: #071D52; }
.hero-poster.poster-fallback.accent-fern { --accent-1: #F2650A; --accent-2: #4C8B1D; }
.hero-poster.poster-fallback.accent-sage { --accent-1: #F5A400; --accent-2: #0B2C7A; }
.hero-poster.poster-fallback.accent-pine { --accent-1: #4C8B1D; --accent-2: #071D52; }

@keyframes emblem-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 720px) {
  .hero-emblem { width: 160px; height: 160px; font-size: 4rem; }
  .hero-poster { max-width: 220px; }
  .hero-poster.poster-fallback { font-size: 4rem; }
}

.typewriter {
  position: relative;
  display: inline-block;
  white-space: pre-wrap;
}

.typewriter::after {
  content: "";
  position: absolute;
  right: -0.2em;
  bottom: 0.1em;
  width: 0.55ch;
  height: 1.05em;
  border-right: 2px solid rgba(255, 255, 255, 0.95);
  animation: caret-blink 1s step-end infinite;
}

.typewriter.is-typed::after {
  display: none;
}

@keyframes caret-blink {
  50% { border-color: transparent; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-illustration { max-width: 280px; order: -1; }
  .hero h1 { font-size: 2.2rem; }
}

@media (max-width: 720px) {
  .sw-nav .container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .sw-nav-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand-mark {
    flex-shrink: 0;
  }

  .brand-text {
    min-width: 0;
  }

  .sw-nav .brand small {
    white-space: normal;
    overflow-wrap: break-word;
  }

  .sw-nav-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .sw-nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 14px 16px;
    background: rgba(255,255,255,0.06);
    border-radius: 14px;
  }

  .sw-nav-links.open {
    display: flex;
  }

  .sw-nav-links a,
  .sw-nav-links form {
    width: 100%;
  }

  .sw-nav-links a {
    padding: 10px 0;
    border-radius: 0;
  }

  .nav-link-auth {
    display: inline-block;
  }

  .nav-user-pill {
    margin-left: 0;
    width: fit-content;
  }

  .nav-user-trigger {
    border-radius: 12px;
  }

  .nav-user-text {
    font-size: 0.72rem;
  }

  .nav-user-menu {
    display: none;
    left: 0;
    right: auto;
  }

  .sw-nav-links a.button {
    margin-top: 10px;
    width: fit-content;
    padding: 16px 16px;
    align-self: flex-start;
    display: inline-block;
  }

  .featured-card { grid-template-columns: 1fr; }
  .featured-card .featured-visual { min-height: 140px; order: -1; }

  .featured-section .subheading,
  .page-section > .subheading {
    margin: 24px 8px 8px;
    padding-left: 4px;
  }

  .school-grid { gap: 32px; }

  .hero-blobs {
    inset: auto 0 0 0;
    top: auto;
    bottom: 0;
    opacity: 0.95;
  }
}

.stat-row { display: flex; gap: 32px; margin-top: 28px; }
.stat-row .stat-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--primary);
  display: block;
}
.stat-row .stat-label { font-size: 0.8rem; color: var(--clay); text-transform: uppercase; letter-spacing: 0.06em; }

.messages { list-style: none; margin: 16px 0; padding: 0; }
.messages li {
  padding: 10px 16px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--paper-raised);
  border-left: 4px solid var(--primary);
  font-size: 0.92rem;
}
.messages li.error { border-left-color: var(--danger); }
.messages li.success { border-left-color: var(--gold); }

footer.sw-footer {
  margin-top: 60px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--clay);
  font-size: 0.85rem;
}

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.filter-bar .sw-input { width: auto; min-width: 160px; }

.empty-state {
  padding: 40px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--clay);
}

.page-section { padding: 0 0 32px; }

.featured-section + .page-section { padding-top: 24px; }

.page-header {
  position: relative;
  margin: 8px 0 32px;
  padding: 32px 34px;
  border-radius: 18px;
  background: linear-gradient(120deg, #FBF6E9 0%, #EEF0F5 55%, #E8EDF6 100%);
  border: 1px solid var(--line);
  overflow: hidden;
}

.page-header .eyebrow { margin-bottom: 6px; }
.page-header h1 { margin-bottom: 10px; }
.page-header .lede { color: var(--primary-dark); max-width: 560px; margin-bottom: 0; }
.page-header .stat-row { margin-top: 22px; flex-wrap: wrap; gap: 28px; }

.section-heading {
  margin-top: 32px;
}

.section-intro {
  margin-top: 8px;
}

@media (max-width: 720px) {
  .section-heading {
    margin-top: 28px;
    margin-left: 8px;
    margin-right: 8px;
  }

  .section-intro {
    margin-left: 8px;
    margin-right: 8px;
  }
}

.tutor-widget {
  position: relative;
  display: inline-block;
}

.tutor-widget.tutor-widget-compact { display: block; width: 100%; }
.tutor-widget.tutor-widget-compact .tutor-trigger { width: 100%; }

.tutor-trigger { display: inline-flex; align-items: center; gap: 6px; }
.tutor-spark { color: var(--gold); }

.tutor-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-width: 90vw;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(7, 29, 82, 0.22);
  padding: 16px;
}

.tutor-widget-compact .tutor-panel { left: 0; right: auto; width: 300px; }

.tutor-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.tutor-panel-head strong { font-family: var(--font-display); color: var(--primary-dark); }

.tutor-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--clay);
  cursor: pointer;
  padding: 2px 6px;
}

.tutor-quick-btn { margin-bottom: 10px; }

.tutor-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.tutor-input-row .sw-input { flex: 1; }

.tutor-body { font-size: 0.9rem; }

.tutor-hint { color: var(--clay); margin: 0; }

.tutor-loading {
  color: var(--primary-dark);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.tutor-answer {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  color: var(--ink);
  line-height: 1.5;
  max-height: 320px;
  overflow-y: auto;
}

.tutor-error {
  background: #F6E4DE;
  border: 1px solid var(--clay);
  border-radius: 10px;
  padding: 10px 12px;
  color: #7A2E15;
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  .tutor-panel { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; }
}

/* ---------------------------------------------------------------------- */
/* Mission & Vision                                                        */
/* ---------------------------------------------------------------------- */

.mv-section {
  margin: 64px 0;
  padding: 48px 32px;
  border-radius: 22px;
  background: linear-gradient(120deg, #FBF6E9 0%, #EEF0F5 55%, #E8EDF6 100%);
  border: 1px solid var(--line);
}

.mv-section .subheading { text-align: center; margin-bottom: 8px; }

.mv-section.mv-intro {
  position: relative;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  overflow: hidden;
  isolation: isolate;
}

.mv-section.mv-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(120deg, rgba(5, 26, 71, 0.88) 0%, rgba(11, 44, 122, 0.8) 55%, rgba(7, 29, 82, 0.85) 100%);
}

.mv-section.mv-intro > * {
  position: relative;
  z-index: 1;
}

.mv-section.mv-intro .eyebrow { color: var(--gold); }
.mv-section.mv-intro .subheading { color: var(--paper); }

.mv-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 32px;
  align-items: stretch;
}

.mv-panel {
  position: relative;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 30px 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, opacity 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.mv-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(7, 29, 82, 0.14);
}

.mv-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
}

.mv-mission::before { background: linear-gradient(90deg, #4C8B1D, #0B2C7A); }
.mv-vision::before { background: linear-gradient(90deg, #1E9BE0, #051A47); }

.mv-mark {
  position: absolute;
  top: -14px;
  right: 2px;
  font-size: 5.5rem;
  line-height: 1;
  opacity: 0.10;
  pointer-events: none;
}

.mv-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 12px;
}

.mv-text {
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
}

.mv-connector {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 0 0 6px var(--paper-raised), 0 6px 14px rgba(7, 29, 82, 0.22);
  z-index: 2;
}

@media (max-width: 720px) {
  .mv-section { padding: 36px 20px; margin: 40px 0; }
  .mv-grid { grid-template-columns: 1fr; gap: 40px; }
  .mv-connector { display: none; }
  .mv-mark { font-size: 4.2rem; }
}

/* ---------------------------------------------------------------------- */
/* Strategic Objectives & Value Proposition (About family)                 */
/* ---------------------------------------------------------------------- */

.mv-section.mv-objectives {
  background: linear-gradient(135deg, #D0E2B8 0%, #E9EAEB 65%, #DFE0E2 100%);
  color: var(--ink);
}

.mv-section.mv-objectives .eyebrow {
  color: var(--clay);
}

.mv-section.mv-objectives .subheading {
  color: var(--clay);
  text-align: left;
}

.mv-section.mv-objectives .value-prop-intro {
  color: var(--primary-dark);
  text-align: left;
}

.mv-section.mv-values {
  position: relative;
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  overflow: hidden;
  isolation: isolate;
  color: var(--paper);
}

.mv-section.mv-values::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(125deg, rgba(58, 20, 4, 0.9) 0%, rgba(193, 68, 14, 0.78) 55%, rgba(89, 39, 10, 0.88) 100%);
}

.mv-section.mv-values > * {
  position: relative;
  z-index: 1;
}

.mv-section.mv-values .subheading { color: var(--gold); }
.mv-section.mv-values .value-prop-intro { color: #FBE3D3; }

.value-prop-intro {
  color: var(--primary-dark);
  font-size: 1.02rem;
  line-height: 1.6;
}

.objectives-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}

.objective-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, opacity 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.objective-row:hover {
  transform: translateX(4px);
  box-shadow: 0 10px 22px rgba(7, 29, 82, 0.1);
}

.objective-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--paper);
}

.objective-row h3 {
  font-size: 1.05rem;
  margin: 0 0 4px;
  color: var(--primary-dark);
}

.objective-row p {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.5;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.value-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 16px;
  text-align: center;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease, opacity 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(7, 29, 82, 0.14);
  border-color: transparent;
}

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #C97F00);
  font-size: 1.3rem;
  margin-bottom: 10px;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.value-card:hover .value-icon {
  transform: scale(1.1) rotate(-4deg);
}

.value-card h3 {
  font-size: 1rem;
  margin: 0 0 6px;
  color: var(--primary-dark);
}

.value-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .value-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .objective-row { flex-direction: column; }
  .objective-num { margin-bottom: 4px; }
}

@media (max-width: 520px) {
  .value-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------- */
/* Services page                                                           */
/* ---------------------------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px 36px;
  margin: 36px 0 20px;
}

.service-group h3 {
  font-size: 1.02rem;
  color: var(--primary-dark);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
  margin: 0 0 14px;
}

.service-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.service-group li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.45;
}

.service-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 7px;
}

/* ---------------------------------------------------------------------- */
/* About / Team pages                                                     */
/* ---------------------------------------------------------------------- */

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 34px;
  box-shadow: var(--shadow);
}

.cta-band h2 { margin-bottom: 4px; font-size: 1.4rem; }
.cta-band p { margin: 0; color: var(--clay); }

/* Team grid: auto-fit + aspect-ratio means photo tiles resize fluidly with
   the viewport and the column count adapts on its own — no fixed pixel
   heights and no extra breakpoints needed for the photos themselves. */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin: 36px 0 20px;
}

.team-card {
  position: relative;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, opacity 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(7, 29, 82, 0.14);
}

.team-card.accent-leaf { --accent-1: #4C8B1D; --accent-2: #0B2C7A; }
.team-card.accent-moss { --accent-1: #1E9BE0; --accent-2: #071D52; }
.team-card.accent-fern { --accent-1: #F2650A; --accent-2: #4C8B1D; }
.team-card.accent-sage { --accent-1: #F5A400; --accent-2: #0B2C7A; }
.team-card.accent-pine { --accent-1: #4C8B1D; --accent-2: #071D52; }

.team-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-photo.photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.6rem;
  color: var(--paper);
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
}

.team-body { padding: 18px 18px 22px; }
.team-body h3 { font-size: 1.05rem; margin-bottom: 2px; }

.team-role {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--clay);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 12px;
}

.team-bio {
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.5;
  margin: 0 0 14px;
  text-align: left;
}

.team-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.team-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--primary-dark);
  transition: background 0.2s ease, color 0.2s ease;
}

.team-links a:hover { background: var(--primary); color: var(--paper); }

@media (max-width: 520px) {
  .cta-band { flex-direction: column; align-items: flex-start; }
}

/* ---------------------------------------------------------------------- */
/* SweepCare AI widget (site-wide floating link, stacked above feedback)   */
/* ---------------------------------------------------------------------- */

.sweepcare-widget {
  position: fixed;
  right: 24px;
  bottom: 94px;
  z-index: 200;
  text-decoration: none;
}

.sweepcare-fab {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  padding: 14px 18px 14px 16px;
  box-shadow: 0 10px 26px rgba(7, 29, 82, 0.28);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.sweepcare-widget:hover .sweepcare-fab {
  background: var(--primary-dark);
}

.sweepcare-fab-icon {
  font-size: 1.3rem;
  line-height: 1;
}

@media (max-width: 480px) {
  .sweepcare-widget { right: 14px; bottom: 70px; }
  .sweepcare-fab { padding: 12px 14px; font-size: 0.8rem; gap: 8px; }
}

/* ---------------------------------------------------------------------- */
/* Feedback widget (site-wide floating button + modal)                     */
/* ---------------------------------------------------------------------- */

.feedback-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
}

.feedback-fab {
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  border-radius: 999px;
  background: var(--gold);
  color: var(--primary-dark);
  padding: 14px 18px 14px 16px;
  box-shadow: 0 10px 26px rgba(7, 29, 82, 0.28);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
}

.feedback-fab:hover {
  background: #CC8800;
}

.feedback-fab-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.feedback-fab-bubble {
  transition: opacity 0.22s ease;
  white-space: nowrap;
}

.feedback-fab-bubble.is-fading {
  opacity: 0;
}

.feedback-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 26, 71, 0.55);
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 20px;
}

.feedback-modal-overlay.is-open {
  display: flex;
}

.feedback-modal {
  width: 100%;
  max-width: 440px;
  background: var(--paper-raised);
  border-radius: 16px;
  padding: 22px 24px 26px;
  box-shadow: 0 20px 50px rgba(5, 26, 71, 0.35);
  max-height: 90vh;
  overflow-y: auto;
}

.feedback-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.feedback-modal-head h3 {
  font-family: var(--font-display);
  color: var(--primary-dark);
  margin: 0;
}

.feedback-status {
  min-height: 20px;
  font-size: 0.85rem;
  margin: -4px 0 12px;
  color: var(--primary-dark);
}

.feedback-status.is-error {
  color: #7A2E15;
}

.feedback-thanks p {
  margin: 0 0 16px;
  color: var(--ink);
}

@media (max-width: 480px) {
  .feedback-widget { right: 14px; bottom: 14px; }
  .feedback-fab { padding: 12px 14px; font-size: 0.8rem; gap: 8px; }
}