/* ==========================================================================
   Sam The Roof Man University — Design System
   Royal purple + royal gold · Fraunces (display) + Manrope (text)
   ========================================================================== */

:root {
  /* Brand */
  --purple-975: #0f0724;
  --purple-950: #170a35;
  --purple-900: #200f47;
  --purple-800: #2c1563;
  --purple-700: #3a1c80;
  --purple-600: #4a2391; /* logo purple */
  --purple-500: #6339b5;
  --purple-200: #d9cdf2;
  --purple-100: #efe9fa;
  --purple-50:  #f7f3fd;

  --gold-300: #ffe08a;
  --gold-400: #ffd447;
  --gold-500: #f7c51e; /* logo gold */
  --gold-600: #d9a80d;
  --gold-700: #8a6a00; /* gold text on light surfaces (AA) */

  /* Semantic */
  --bg: #fbf8f2;
  --surface: #ffffff;
  --surface-2: #f4efe4;
  --ink: #1a1430;
  --ink-soft: #3b3452;
  --muted: #5b5470;
  --line: #e6dfd0;
  --line-strong: #d4c9b2;
  --on-dark: #f8f5ff;
  --on-dark-muted: #c9bfe3;
  --ring: #6339b5;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-text: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  --fs-h4: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-h3: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --fs-h2: clamp(2.125rem, 1.6rem + 2.2vw, 3.5rem);
  --fs-h1: clamp(2.75rem, 1.8rem + 4.6vw, 6rem);

  /* Space (8pt) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  --container: 1200px;

  /* Shape + depth */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 32px;
  --shadow-1: 0 1px 2px rgba(23, 10, 53, .06), 0 2px 8px rgba(23, 10, 53, .05);
  --shadow-2: 0 4px 12px rgba(23, 10, 53, .08), 0 18px 40px -12px rgba(23, 10, 53, .18);
  --shadow-3: 0 30px 80px -20px rgba(15, 7, 36, .45);
  --shadow-gold: 0 10px 30px -8px rgba(247, 197, 30, .55);

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 160ms; --t-med: 280ms; --t-slow: 600ms;

  /* Layers */
  --z-header: 100; --z-menu: 200; --z-skip: 1000;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 560; line-height: 1.08; letter-spacing: -0.015em; font-optical-sizing: auto; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }
.on-light :focus-visible, .section:not(.section-dark) :focus-visible { outline-color: var(--ring); }
::selection { background: var(--gold-400); color: var(--purple-950); }

[hidden] { display: none !important; }
.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; }
.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: var(--z-skip);
  background: var(--gold-500); color: var(--purple-950); padding: var(--s-3) var(--s-5);
  border-radius: var(--r-sm); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: var(--s-4); }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - var(--gutter) * 2, 780px); margin-inline: auto; }

.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-text); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--purple-600);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold-500); border-radius: 2px; }
.section-dark .eyebrow, .page-hero .eyebrow, .hero .eyebrow { color: var(--gold-400); }
.h1 { font-size: var(--fs-h1); font-weight: 520; letter-spacing: -0.03em; line-height: 0.98; }
.h2 { font-size: var(--fs-h2); letter-spacing: -0.025em; }
.h3 { font-size: var(--fs-h3); }
.h4 { font-size: var(--fs-h4); }
.h1 em, .h2 em, .h3 em { font-style: italic; font-weight: 440; color: var(--gold-500); }
.section:not(.section-dark) .h2 em { color: var(--purple-600); }
.lead { font-size: var(--fs-lg); color: var(--muted); line-height: 1.6; max-width: 62ch; }
.section-dark .lead, .page-hero .lead, .hero .lead { color: var(--on-dark-muted); }
.section-head { display: grid; gap: var(--s-4); margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--purple-600); --btn-fg: #fff; --btn-bd: transparent;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 52px; padding: 0 1.5rem;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  border-radius: 999px; font-weight: 700; font-size: var(--fs-sm); letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; cursor: pointer; touch-action: manipulation;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn::after { /* sheen */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 700ms var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: 80ms; }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform var(--t-med) var(--ease-out); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-gold { --btn-bg: var(--gold-500); --btn-fg: var(--purple-950); }
.btn-gold:hover { box-shadow: var(--shadow-gold); background: var(--gold-400); }
.btn-purple:hover { box-shadow: 0 10px 30px -8px rgba(74, 35, 145, .55); background: var(--purple-700); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--on-dark); --btn-bd: rgba(248, 245, 255, .35); }
.btn-ghost:hover { --btn-bd: var(--gold-400); --btn-fg: var(--gold-300); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--purple-700); --btn-bd: var(--purple-200); }
.btn-outline:hover { --btn-bd: var(--purple-600); background: var(--purple-50); }
.btn-sm { min-height: 44px; padding: 0 1.15rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 700; color: var(--purple-600);
  text-decoration: none; min-height: 44px;
}
.link-arrow .icon { transition: transform var(--t-med) var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }
.section-dark .link-arrow { color: var(--gold-400); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  color: var(--on-dark);
  transition: background-color var(--t-med), box-shadow var(--t-med), color var(--t-med), transform var(--t-med) var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(251, 248, 242, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  color: var(--ink); box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; gap: var(--s-5); height: 80px; transition: height var(--t-med) var(--ease-out); }
.is-scrolled .header-inner { height: 68px; }

.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; margin-right: auto; min-height: 44px; }
.seal {
  display: block; position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
  background: #fff; box-shadow: 0 0 0 2px var(--gold-500), 0 4px 14px rgba(0,0,0,.18);
}
/* Show only the emblem from the square logo: clip the wordmark, center the figure */
.seal img { position: absolute; width: 120%; max-width: none; left: -10%; top: 11%; clip-path: inset(0 0 42.5% 0); }
.brand-text { display: grid; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand-sub { font-size: .6875rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-400); }
.is-scrolled .brand-sub { color: var(--gold-700); }

.nav-list { display: flex; align-items: center; gap: var(--s-1); list-style: none; }
.nav-list a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .85rem;
  font-size: var(--fs-sm); font-weight: 600; text-decoration: none; opacity: .88; transition: opacity var(--t-fast);
}
.nav-list a::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: 8px; height: 2px; border-radius: 2px;
  background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease-out);
}
.nav-list a:hover, .nav-list a[aria-current="page"] { opacity: 1; }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: transparent; color: inherit;
  align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 26px; height: 26px; }

.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--purple-950); color: var(--on-dark);
  display: flex; flex-direction: column; padding: 96px var(--gutter) var(--s-7);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu ul { list-style: none; display: grid; gap: var(--s-1); }
.mobile-menu a:not(.btn) {
  display: flex; align-items: center; justify-content: space-between; min-height: 60px;
  font-family: var(--font-display); font-size: 1.875rem; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-menu a[aria-current="page"] { color: var(--gold-400); }
.mobile-menu .btn { margin-top: var(--s-6); }
.mobile-close { position: absolute; top: 16px; right: var(--gutter); color: var(--on-dark); display: inline-flex; }

@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}
body.menu-open { overflow: hidden; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 10%, var(--purple-700) 0%, var(--purple-900) 45%, var(--purple-975) 100%);
  color: var(--on-dark);
  padding: calc(80px + clamp(3rem, 2rem + 5vw, 6rem)) 0 clamp(7rem, 5rem + 8vw, 11rem);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.shingles {
  position: absolute; inset: 0; opacity: .05;
  background-image:
    linear-gradient(to bottom, transparent 27px, rgba(255,255,255,.9) 27px, rgba(255,255,255,.9) 28px),
    linear-gradient(to right, transparent 55px, rgba(255,255,255,.9) 55px, rgba(255,255,255,.9) 56px);
  background-size: 56px 28px, 56px 56px;
  -webkit-mask-image: radial-gradient(80% 70% at 70% 30%, #000 0%, transparent 75%);
          mask-image: radial-gradient(80% 70% at 70% 30%, #000 0%, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(60px); will-change: transform; }
.glow-gold { width: 46vmax; height: 46vmax; right: -14vmax; top: -18vmax; background: radial-gradient(circle, rgba(247,197,30,.32), transparent 65%); animation: drift 18s var(--ease-in-out) infinite alternate; }
.glow-violet { width: 40vmax; height: 40vmax; left: -16vmax; bottom: -20vmax; background: radial-gradient(circle, rgba(99,57,181,.55), transparent 65%); animation: drift 22s var(--ease-in-out) infinite alternate-reverse; }
@keyframes drift { to { transform: translate3d(-6vmax, 4vmax, 0) scale(1.08); } }

.hero-grid { display: grid; gap: clamp(3rem, 2rem + 4vw, 5rem); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero-copy { display: grid; gap: var(--s-5); justify-items: start; }
.hero .h1 { font-size: clamp(3.25rem, 2rem + 6.5vw, 7.25rem); }
.hero .lead { max-width: 54ch; }
.hero-meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--fs-sm); color: var(--on-dark-muted); margin-top: var(--s-2); }
.hero-meta span { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero-meta .icon { color: var(--gold-500); }

.roofline { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(48px, 8.3vw, 120px); z-index: -1; }
.roofline path { fill: none; stroke: var(--gold-500); stroke-width: 1.5; stroke-linejoin: round; opacity: .55; }
.roofline .roof-fill { fill: var(--bg); stroke: none; opacity: 1; }

/* Split words */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.word-inner { display: inline-block; will-change: transform; }

/* ---------- Certificate ---------- */
.cert-stage { perspective: 1200px; display: grid; place-items: center; }
.cert {
  --cert-w: min(100%, 460px);
  position: relative; width: var(--cert-w); aspect-ratio: 1.36;
  background:
    radial-gradient(120% 120% at 50% 0%, #fffdf6 0%, #f8f0dc 100%);
  color: var(--purple-900); border-radius: 10px;
  box-shadow: var(--shadow-3);
  padding: 7%; text-align: center; overflow: hidden;
  transform-style: preserve-3d; will-change: transform;
}
.cert::before, .cert::after { content: ""; position: absolute; pointer-events: none; }
.cert::before { inset: 3.2%; border: 2px solid var(--gold-600); border-radius: 4px; box-shadow: inset 0 0 0 4px #fffaf0, inset 0 0 0 5px rgba(217,168,13,.55); }
.cert::after { /* sheen */
  inset: -50%; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.75) 50%, transparent 60%);
  transform: translateX(-60%); animation: sheen 6s var(--ease-in-out) infinite 1.5s;
}
@keyframes sheen { 0%, 70% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
.cert-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; }
.cert-org { font-size: clamp(.5rem, .4rem + .5vw, .7rem); font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--purple-600); }
.cert-title { font-family: var(--font-display); font-size: clamp(1.1rem, .8rem + 1.6vw, 1.9rem); font-weight: 500; font-style: italic; line-height: 1; color: var(--purple-900); }
.cert-small { font-size: clamp(.5rem, .45rem + .3vw, .68rem); color: #6b5e45; letter-spacing: .04em; }
.cert-course { display: grid; font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, .8rem + 1.2vw, 1.6rem); color: var(--purple-600); min-height: 1.3em; }
.cert-course > span { grid-area: 1 / 1; }
.cert-foot { width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 6%; }
.cert-sign { flex: 1; border-top: 1px solid rgba(32,15,71,.35); padding-top: 4px; font-size: clamp(.45rem, .4rem + .25vw, .62rem); color: #6b5e45; text-align: left; }
.cert-sign strong { display: block; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.6em; color: var(--purple-900); line-height: 1.1; }
.cert-seal { position: relative; width: 22%; aspect-ratio: 1; flex: none; }
.cert-seal .seal { width: 100%; height: 100%; box-shadow: 0 0 0 3px var(--gold-500), 0 0 0 6px #fff7dc, 0 0 0 7px var(--gold-600), 0 6px 16px rgba(0,0,0,.2); }
.cert-ribbon { position: absolute; left: 50%; bottom: -14%; width: 40%; height: 30%; transform: translateX(-50%); z-index: -1; }
.cert-ribbon::before, .cert-ribbon::after { content: ""; position: absolute; bottom: 0; width: 45%; height: 100%; background: var(--purple-600); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }
.cert-ribbon::before { left: 0; transform: rotate(12deg); }
.cert-ribbon::after { right: 0; transform: rotate(-12deg); background: var(--purple-700); }

.hero-cert { position: relative; }
.hero-cert .cert { transform: rotate(3deg); }
.hero-badge {
  position: absolute; left: -6%; bottom: -16%; z-index: 2;
  display: flex; align-items: center; gap: var(--s-3);
  background: rgba(23, 10, 53, .78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(247,197,30,.35); border-radius: var(--r-md); padding: .85rem 1.1rem; box-shadow: var(--shadow-2);
}
.hero-badge .icon { width: 32px; height: 32px; color: var(--gold-500); stroke-width: 1.5; }
.hero-badge strong { display: block; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.1; }
.hero-badge span { font-size: var(--fs-xs); color: var(--on-dark-muted); }
@media (max-width: 999px) { .hero-cert { max-width: 440px; width: 100%; margin-inline: auto; } .hero-badge { left: 0; } }

/* ---------- Stats ---------- */
.stats {
  position: relative; z-index: 2; margin-top: calc(-1 * clamp(4rem, 3rem + 4vw, 6rem));
}
.stats-card {
  display: grid; grid-template-columns: repeat(2, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2);
}
@media (min-width: 860px) { .stats-card { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) clamp(1rem, .5rem + 1.5vw, 2rem); text-align: center; border-color: var(--line); border-style: solid; border-width: 0; }
.stat:nth-child(odd) { border-right-width: 1px; }
.stat:nth-child(-n+2) { border-bottom-width: 1px; }
@media (min-width: 860px) {
  .stat { border-width: 0 !important; }
  .stat:not(:last-child) { border-right-width: 1px !important; }
}
.stat-num { font-family: var(--font-display); font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); font-weight: 560; line-height: 1; color: var(--purple-600); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat-num sup { font-size: .5em; color: var(--gold-600); vertical-align: .5em; margin-left: .05em; }
.stat-label { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section-tight { padding-block: calc(var(--section) * .65); }
.section-alt { background: var(--surface-2); }
.section-dark { background: var(--purple-950); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.section-dark .muted { color: var(--on-dark-muted); }
.muted { color: var(--muted); }

/* Pillars */
.pillars { display: grid; gap: var(--s-5); }
@media (min-width: 860px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { display: grid; gap: var(--s-4); align-content: start; padding: var(--s-6); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), border-color var(--t-med); }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.pillar-num { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--gold-700); }
.pillar p { color: var(--muted); }
.icon-tile { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--purple-50); color: var(--purple-600); border: 1px solid var(--purple-100); }
.icon-tile .icon { width: 26px; height: 26px; stroke-width: 1.6; }

/* Course cards */
.course-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.course-card {
  position: relative; display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-6) var(--s-5) var(--s-5); border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid var(--line); text-decoration: none; color: inherit; overflow: hidden; isolation: isolate;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), border-color var(--t-med);
}
.course-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(160deg, var(--purple-800), var(--purple-950));
  opacity: 0; transition: opacity var(--t-med) var(--ease-out);
}
.course-card:hover, .course-card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: transparent; color: var(--on-dark); }
.course-card:hover::before, .course-card:focus-visible::before { opacity: 1; }
.course-card .icon-tile { transition: background-color var(--t-med), color var(--t-med), border-color var(--t-med); }
.course-card:hover .icon-tile, .course-card:focus-visible .icon-tile { background: rgba(247,197,30,.12); color: var(--gold-400); border-color: rgba(247,197,30,.3); }
.course-code { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .16em; color: var(--gold-700); transition: color var(--t-med); }
.course-card:hover .course-code, .course-card:focus-visible .course-code { color: var(--gold-400); }
.course-card h3 { font-size: 1.5rem; }
.course-card p { font-size: var(--fs-sm); color: var(--muted); transition: color var(--t-med); }
.course-card:hover p, .course-card:focus-visible p { color: var(--on-dark-muted); }
.course-card .card-foot { margin-top: auto; padding-top: var(--s-3); display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-sm); font-weight: 700; }
.course-card .card-foot .icon { transition: transform var(--t-med) var(--ease-out); }
.course-card:hover .card-foot .icon { transform: translateX(4px); }
.course-card.is-cta { background: var(--purple-50); border-style: dashed; border-color: var(--purple-200); justify-content: center; }

/* Track / semesters */
.track { position: relative; padding-left: 56px; }
.track-list { list-style: none; display: grid; gap: var(--s-7); }
.track-line { position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: rgba(255,255,255,.1); border-radius: 2px; }
.track-progress { position: absolute; inset: 0; background: linear-gradient(var(--gold-400), var(--gold-600)); transform-origin: top; border-radius: 2px; }
.semester { position: relative; display: grid; gap: var(--s-4); }
.semester-dot {
  position: absolute; left: -56px; top: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-style: italic;
  background: var(--purple-950); color: var(--gold-400); border: 2px solid var(--gold-500); box-shadow: 0 0 0 6px var(--purple-950);
}
.semester-label { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-400); }
.semester h3 { font-size: var(--fs-h3); }
.semester-courses { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; padding: 0 1rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); font-size: var(--fs-sm); font-weight: 600; text-decoration: none;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
a.chip:hover { border-color: var(--gold-500); background: rgba(247,197,30,.08); }
.chip b { color: var(--gold-400); font-weight: 800; font-size: .75rem; letter-spacing: .1em; }
.semester-201 { opacity: .7; }
.semester-201 .semester-dot { border-style: dashed; color: var(--on-dark-muted); border-color: var(--on-dark-muted); }

.split { display: grid; gap: clamp(3rem, 2rem + 4vw, 6rem); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split-wide-left { grid-template-columns: 1.1fr .9fr; } }
.split > .stack, .stack { display: grid; gap: var(--s-5); align-content: start; justify-items: start; }

/* Check list */
.checklist { list-style: none; display: grid; gap: var(--s-3); }
.checklist li { display: flex; gap: var(--s-3); align-items: flex-start; }
.checklist .icon { margin-top: .2em; color: var(--purple-600); width: 1.15em; height: 1.15em; stroke-width: 2.25; }
.section-dark .checklist .icon, .price-card.featured .checklist .icon { color: var(--gold-500); }

/* Section decorations */
.dark-glow { position: absolute; z-index: -1; width: 50vmax; height: 50vmax; border-radius: 50%; filter: blur(70px); background: radial-gradient(circle, rgba(99,57,181,.45), transparent 65%); pointer-events: none; }

/* Portrait photo with caption overlay */
.photo-slot {
  position: relative; overflow: hidden; border-radius: var(--r-xl); aspect-ratio: 4 / 5; margin: 0;
  background:
    linear-gradient(160deg, rgba(74,35,145,.92), rgba(23,10,53,.96)),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(255,255,255,.06) 22px 23px);
  box-shadow: var(--shadow-3); color: var(--on-dark);
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.split > .photo-slot { width: 100%; max-width: 540px; justify-self: center; }
.photo-slot figcaption {
  position: absolute; left: var(--s-4); right: var(--s-4); bottom: var(--s-4);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: .8rem 1rem; border-radius: var(--r-md); background: rgba(15,7,36,.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: var(--fs-sm);
}
.photo-slot figcaption strong { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; display: block; }
.photo-slot figcaption span { color: var(--on-dark-muted); font-size: var(--fs-xs); }

/* Photo mosaic + framed photos */
.mosaic { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(150px, 42vw, 220px); }
@media (min-width: 720px) { .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(170px, 19vw, 270px); gap: var(--s-4); } }
.mosaic-item, .photo-frame { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--purple-900); box-shadow: var(--shadow-1); isolation: isolate; }
.mosaic-item img, .photo-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.mosaic-item:hover img, .photo-frame:hover img { transform: scale(1.04); }
.m-feature { grid-column: span 2; grid-row: span 2; }
.m-wide { grid-column: span 2; }
.mosaic-item figcaption, .photo-frame figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 2.5rem var(--s-4) var(--s-4);
  background: linear-gradient(to top, rgba(15,7,36,.82), transparent);
  color: #fff; font-size: var(--fs-sm); font-weight: 700; letter-spacing: .01em;
}
.mosaic-item figcaption::before, .photo-frame figcaption::before { content: ""; display: inline-block; width: 18px; height: 2px; margin-right: .6rem; vertical-align: middle; background: var(--gold-500); border-radius: 2px; }
.photo-wide { aspect-ratio: 16 / 9; max-height: 620px; width: 100%; }
@media (max-width: 719px) { .photo-wide { aspect-ratio: 4 / 3; } }
.photo-vintage { width: min(100%, 440px); aspect-ratio: 4 / 3; margin-top: var(--s-3); transform: rotate(-1.5deg); border: 6px solid #f8f0dc; box-shadow: var(--shadow-3); }
.photo-vintage img { filter: sepia(.15) contrast(1.02); }

/* Through the years (About) */
.years { margin-top: clamp(4rem, 3rem + 4vw, 7rem); }
.years-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); }
.years-grid { list-style: none; display: grid; gap: var(--s-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .years-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }
.year-card { border-radius: var(--r-lg); overflow: hidden; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); transition: transform var(--t-med) var(--ease-out), border-color var(--t-med); }
.year-card:hover { transform: translateY(-4px); border-color: rgba(247,197,30,.45); }
.year-card figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.year-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.year-card:hover img { transform: scale(1.05); }
.year-body { padding: var(--s-4) var(--s-4) var(--s-5); display: grid; gap: var(--s-1); }
.year { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 560; line-height: 1; color: var(--gold-400); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.year-body p { font-size: var(--fs-sm); color: var(--on-dark-muted); line-height: 1.45; }

/* Faith & family (About) */
.section-warm { background: radial-gradient(90% 70% at 85% 20%, #fff3d6 0%, transparent 60%), var(--surface-2); }
.role-chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.role-chips li { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 .9rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 700; color: var(--purple-700); }
.role-chips .icon { width: 15px; height: 15px; color: #c0392b; fill: currentColor; stroke: none; }
.family-collage { position: relative; padding: 0 12% 14% 0; }
/* Polaroid-style prints: white frame, photo, handwritten-feel caption strip */
.family-collage figure { margin: 0; padding: 10px 10px 0; background: #fff; border-radius: 6px; box-shadow: var(--shadow-3); }
.family-collage img { width: 100%; object-fit: cover; display: block; border-radius: 2px; }
.family-collage figcaption { padding: .7rem .2rem .8rem; font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--purple-900); }
.fam-main { position: relative; transform: rotate(-2deg); }
.fam-main img { aspect-ratio: 4 / 3; }
.fam-accent { position: absolute; right: 0; bottom: 0; width: 40%; padding: 7px 7px 0 !important; transform: rotate(4deg); }
.fam-accent img { aspect-ratio: 4 / 5; }
.fam-accent figcaption { font-size: .9rem; padding: .45rem .1rem .55rem; }

/* Values */
.values { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.value { padding: var(--s-5); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.value .h4 { font-size: 1.2rem; margin-bottom: var(--s-2); }
.value p { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Testimonials ---------- */
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: var(--s-5); width: max-content; animation: marquee 70s linear infinite; padding-block: var(--s-4); }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--s-5) / 2)); } }
.marquee-controls { display: flex; justify-content: center; margin-top: var(--s-5); }
.pause-btn {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 1.1rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2); background: transparent; color: var(--on-dark-muted); font-size: var(--fs-sm); font-weight: 600;
}
.pause-btn:hover { color: var(--on-dark); border-color: var(--gold-500); }
.pause-btn .icon { width: 1em; height: 1em; }

.quote {
  position: relative; display: flex; flex-direction: column; gap: var(--s-5);
  width: min(82vw, 420px); flex: none; padding: var(--s-6); border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.1); color: var(--on-dark);
}
.quote-title { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-400); }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.45; font-weight: 400; }
.quote blockquote::before { content: "\201C"; display: block; font-size: 3.5rem; line-height: .6; color: var(--gold-500); margin-bottom: var(--s-2); font-style: normal; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: var(--s-3); font-weight: 700; font-size: var(--fs-sm); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-500); color: var(--purple-950); font-family: var(--font-display); font-weight: 700; flex: none; }
.quote figcaption span span { display: block; font-weight: 500; color: var(--on-dark-muted); font-size: var(--fs-xs); }
.fine-print { font-size: var(--fs-xs); color: var(--muted); text-align: center; }
.section-dark .fine-print { color: var(--on-dark-muted); }

/* Light quote grid (reviews page) */
.quote-grid { columns: 1; column-gap: var(--s-5); }
@media (min-width: 720px) { .quote-grid { columns: 2; } }
@media (min-width: 1080px) { .quote-grid { columns: 3; } }
.quote-grid .quote { width: 100%; break-inside: avoid; margin-bottom: var(--s-5); background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-1); }
.quote-grid .quote-title { color: var(--purple-600); }
.quote-grid .quote figcaption span span { color: var(--muted); }
.quote-grid .avatar { background: var(--purple-600); color: #fff; }

.feature-quote { text-align: center; display: grid; gap: var(--s-6); justify-items: center; }
.feature-quote blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.6rem, 1.1rem + 2vw, 2.75rem); line-height: 1.25; font-weight: 400; letter-spacing: -0.015em; max-width: 26ch; }
.feature-quote blockquote em { color: var(--gold-500); }

.gallery { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.gallery a { display: block; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-1); aspect-ratio: 1; transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med); }
.gallery a:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; gap: var(--s-5); align-items: stretch; }
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card {
  position: relative; display: flex; flex-direction: column; gap: var(--s-5);
  padding: var(--s-6); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.price-card.featured {
  background: linear-gradient(170deg, var(--purple-800), var(--purple-950)); color: var(--on-dark); border-color: transparent;
  box-shadow: var(--shadow-3), inset 0 0 0 1px rgba(247,197,30,.35);
}
@media (min-width: 900px) { .price-card.featured { transform: scale(1.03); } .price-card.featured:hover { transform: scale(1.03) translateY(-4px); } }
.price-badge {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  padding: .4rem .95rem; border-radius: 999px; background: var(--gold-500); color: var(--purple-950);
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; box-shadow: var(--shadow-gold);
}
.price-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 560; }
.price-desc { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--s-2); }
.featured .price-desc, .featured .price-note { color: var(--on-dark-muted); }
.price { display: flex; align-items: baseline; gap: var(--s-2); }
.price-amount { font-family: var(--font-display); font-size: clamp(2.75rem, 2.2rem + 2vw, 3.75rem); font-weight: 560; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price-amount small { font-size: .45em; vertical-align: .9em; margin-right: .05em; }
.price-note { font-size: var(--fs-sm); color: var(--muted); }
.price-was { text-decoration: line-through; opacity: .7; }
.price-save { color: var(--gold-700); font-weight: 700; }
.featured .price-save { color: var(--gold-400); }
.price-card .checklist { font-size: var(--fs-sm); }
.price-card .btn { margin-top: auto; }
.price-divider { height: 1px; background: var(--line); }
.featured .price-divider { background: rgba(255,255,255,.12); }

.enterprise {
  display: grid; gap: var(--s-5); align-items: center; margin-top: var(--s-6);
  padding: var(--s-6); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
}
@media (min-width: 860px) { .enterprise { grid-template-columns: auto 1fr auto; } }

/* Compare table */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 620px; font-size: var(--fs-sm); }
.compare th, .compare td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; background: var(--surface-2); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .icon { margin-inline: auto; color: var(--purple-600); stroke-width: 2.25; }
.compare .dash { color: var(--line-strong); }
.compare .col-featured { background: var(--purple-50); }

/* FAQ */
.faq { display: grid; gap: var(--s-3); }
.faq details { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); transition: border-color var(--t-fast), box-shadow var(--t-med); }
.faq details[open] { border-color: var(--purple-200); box-shadow: var(--shadow-1); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 64px; padding: var(--s-4) var(--s-5); font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--purple-600); transition: transform var(--t-med) var(--ease-out); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .answer { padding: 0 var(--s-5) var(--s-5); color: var(--muted); }
.faq .answer p + p { margin-top: var(--s-3); }

/* ---------- Course catalog (detail) ---------- */
.catalog { display: grid; gap: var(--s-5); }
.course-row {
  display: grid; gap: var(--s-5); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 100px;
  transition: box-shadow var(--t-med) var(--ease-out), border-color var(--t-med);
}
.course-row:hover { box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.course-row:target { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(247,197,30,.3), var(--shadow-2); }
@media (min-width: 900px) { .course-row { grid-template-columns: 72px 1.2fr 1fr auto; align-items: start; } }
.course-row .icon-tile { width: 72px; height: 72px; border-radius: 20px; }
.course-row .icon-tile .icon { width: 32px; height: 32px; }
.course-row h2 { font-size: var(--fs-h3); margin-block: var(--s-2) var(--s-3); }
.course-row .tagline { font-family: var(--font-display); font-style: italic; color: var(--purple-600); font-size: 1.125rem; margin-bottom: var(--s-3); }
.course-row p { color: var(--muted); }
.course-row .h4 { font-family: var(--font-text); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-3); }
.course-row .checklist { font-size: var(--fs-sm); }
.course-buy { display: grid; gap: var(--s-3); justify-items: stretch; min-width: 200px; }
.course-buy .price-amount { font-size: 2.5rem; }
.course-meta { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: .3rem .7rem; border-radius: 999px; background: var(--surface-2); font-size: var(--fs-xs); font-weight: 700; color: var(--ink-soft); }
.tag .icon { width: 14px; height: 14px; }

.filter-bar { position: sticky; top: 68px; z-index: 10; padding-block: var(--s-3); background: rgba(251,248,242,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); margin-bottom: var(--s-5); border-bottom: 1px solid var(--line); }
.filter-scroll { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.filter-scroll::-webkit-scrollbar { display: none; }
.filter-scroll a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: var(--fs-sm); font-weight: 700; text-decoration: none; transition: border-color var(--t-fast), background-color var(--t-fast); }
.filter-scroll a:hover { border-color: var(--purple-600); background: var(--purple-50); }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--on-dark);
  background: radial-gradient(110% 120% at 90% 0%, var(--purple-700) 0%, var(--purple-900) 50%, var(--purple-975) 100%);
  padding: calc(80px + clamp(3rem, 2rem + 4vw, 5.5rem)) 0 clamp(4.5rem, 3rem + 5vw, 7rem);
}
.page-hero .container { display: grid; gap: var(--s-5); justify-items: start; }
.page-hero .h1 { font-size: clamp(2.75rem, 1.8rem + 4.5vw, 5.5rem); max-width: 16ch; }
.breadcrumb { display: flex; gap: var(--s-2); font-size: var(--fs-sm); color: var(--on-dark-muted); list-style: none; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-300); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--s-2); opacity: .5; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden; text-align: center; color: var(--on-dark);
  padding: clamp(3rem, 2rem + 5vw, 6rem) var(--gutter); border-radius: var(--r-xl);
  background: radial-gradient(90% 140% at 50% 0%, var(--purple-700), var(--purple-950) 70%);
  display: grid; gap: var(--s-5); justify-items: center;
}
.cta-band .h2 { max-width: 18ch; }
.cta-band .lead { color: var(--on-dark-muted); }
.cta-band .glow-gold { right: -20%; top: -60%; width: 60%; height: 140%; animation-duration: 14s; }

/* ---------- Forms ---------- */
.form-card { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.form-grid { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: grid; gap: var(--s-2); }
.field label { font-size: var(--fs-sm); font-weight: 700; }
.field .req { color: #b42318; }
.field .hint { font-size: var(--fs-xs); color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem; border-radius: var(--r-sm);
  border: 1.5px solid var(--line-strong); background: var(--bg); font-size: 1rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--purple-200); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--purple-600); background: #fff; box-shadow: 0 0 0 4px rgba(99,57,181,.15); }
.field [aria-invalid="true"] { border-color: #b42318; }
.field .error { font-size: var(--fs-xs); color: #b42318; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.field .error:empty { display: none; }
.form-status { margin-top: var(--s-4); padding: var(--s-4); border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 600; display: flex; gap: var(--s-3); align-items: flex-start; }
.form-status:empty { display: none; }
.form-status.ok { background: #ecfdf3; color: #05603a; border: 1px solid #abefc6; }
.form-status.warn { background: #fffaeb; color: #93370d; border: 1px solid #fedf89; }
.btn[aria-busy="true"] { pointer-events: none; opacity: .75; }

.contact-cards { display: grid; gap: var(--s-4); }
.contact-card { display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-5); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color var(--t-fast), transform var(--t-med) var(--ease-out); }
a.contact-card:hover { border-color: var(--purple-200); transform: translateY(-2px); }
.contact-card strong { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.contact-card span { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-975); color: var(--on-dark-muted); padding: var(--s-9) 0 var(--s-6); font-size: var(--fs-sm); }
.footer-grid { display: grid; gap: var(--s-7); }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-brand { display: grid; gap: var(--s-4); justify-items: start; max-width: 340px; }
.footer-logo { width: 132px; border-radius: var(--r-md); background: #fff; padding: 6px; box-shadow: 0 0 0 2px var(--gold-500); }
.footer-tag { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--gold-400); }
.site-footer h2 { font-family: var(--font-text); font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark); font-weight: 800; margin-bottom: var(--s-4); }
.site-footer ul { list-style: none; display: grid; gap: var(--s-1); }
.site-footer ul a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; transition: color var(--t-fast); }
.site-footer ul a:hover { color: var(--gold-300); }
.footer-bottom { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); justify-content: space-between; font-size: var(--fs-xs); }

/* ---------- Utilities ---------- */
.mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); }
.center { text-align: center; }
.gold { color: var(--gold-500); }

/* ---------- Motion: initial states (only when JS animation is active) ---------- */
html.anim [data-reveal] { opacity: 0; }
html.anim [data-split] { visibility: hidden; }
html.anim .hero [data-hero-fade], html.anim .page-hero [data-hero-fade] { opacity: 0; }
html.anim .hero-cert { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .glow { animation: none; }
  .cert::after { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .marquee-controls { display: none; }
  .quote { width: min(100%, 420px); }
}

@media print {
  .site-header, .mobile-menu, .hero-bg, .roofline, .marquee-controls { display: none !important; }
  .hero, .page-hero, .section-dark { background: #fff !important; color: #000 !important; }
}
