/* ==========================================================================
   Alpine — site styles
   One stylesheet for every page. Sections:
   1. Tokens   2. Base   3. Layout   4. Buttons & badges   5. Header / nav
   6. Hero     7. Sections & cards   8. Testimonials   9. FAQ   10. Forms
   11. Embeds  12. CTA band  13. Footer  14. Motion  15. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: light;

  --navy: #20344e;
  --navy-900: #15243a;
  --navy-700: #2c4566;
  --text: #20344e;
  --muted: #56677e;
  --subtle: #8a97a8;
  --line: #e6e9ef;
  --line-strong: #d5dae3;

  --bg: #ffffff;
  --bg-soft: #f6f7fa;
  --bg-warm: #fbf8f6;

  --coral: #f25c54;
  --coral-600: #e0443c;
  --coral-50: #fff2f1;
  --coral-100: #ffe1de;
  --grad: linear-gradient(90deg, #ff6b5f, #d63a3a);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(21, 36, 58, 0.06);
  --shadow: 0 1px 2px rgba(21, 36, 58, 0.05), 0 8px 24px -6px rgba(21, 36, 58, 0.10);
  --shadow-lg: 0 2px 4px rgba(21, 36, 58, 0.04), 0 24px 48px -12px rgba(21, 36, 58, 0.18);
  --shadow-coral: 0 10px 24px -8px rgba(242, 92, 84, 0.55);

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 9vw, 128px);
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { color: var(--navy); font-weight: 800; text-wrap: balance; }
p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

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

::selection { background: var(--coral-100); color: var(--navy-900); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Type scale */
.display {
  font-size: clamp(2.6rem, 4.6vw + 0.6rem, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.h2 {
  font-size: clamp(2rem, 2.6vw + 1rem, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 700;
}
.lead {
  font-size: clamp(1.075rem, 0.4vw + 1rem, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
}
.muted { color: var(--muted); }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--coral);
  /* keep descenders from being clipped */
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.nowrap { white-space: nowrap; }

/* 3. Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }

.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--tight-top { padding-top: clamp(24px, 4vw, 48px); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .h2 { margin-top: 18px; }
.section-head .lead { margin-top: 18px; }

.stack > * + * { margin-top: var(--stack, 16px); }

/* 4. Buttons & badges ------------------------------------------------------ */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.975rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.25s var(--ease); }
.btn:hover svg.icon-arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  --btn-bg: var(--coral);
  box-shadow: var(--shadow-coral);
}
.btn--primary:hover { --btn-bg: var(--coral-600); transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(242, 92, 84, 0.65); }

.btn--secondary {
  --btn-bg: #fff;
  --btn-fg: var(--navy);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn--secondary:hover { border-color: var(--navy); transform: translateY(-1px); }

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--navy);
}
.btn--light:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.5); }

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }

.btn--sm { min-height: 40px; padding: 10px 16px; font-size: 0.9rem; border-radius: 10px; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--coral-100);
  border-radius: 999px;
  background: var(--coral-50);
  color: var(--coral-600);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(242, 92, 84, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

.checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--navy);
  font-size: 0.925rem;
  font-weight: 600;
}
.checklist li { display: inline-flex; align-items: center; gap: 8px; }
.checklist svg {
  width: 20px; height: 20px; padding: 3px; flex: none;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
}

/* 5. Header / nav ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 12px;
}
.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  padding-inline: 16px 12px;
  border: 1px solid rgba(230, 233, 239, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s;
}
.is-scrolled .nav { box-shadow: var(--shadow); border-color: var(--line); }

.brand { display: inline-flex; align-items: center; flex: none; }
.nav-panel { display: flex; align-items: center; flex: 1; gap: 16px; }
.brand img { width: 128px; height: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.nav-link:hover { background: var(--bg-soft); }
.nav-link[aria-current="page"] { color: var(--coral-600); }
.nav-link .chev { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }

.nav-actions { display: flex; align-items: center; gap: 8px; padding-left: 16px; border-left: 1px solid var(--line); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: 340px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
}
.dropdown::before { /* hover bridge */
  content: "";
  position: absolute;
  inset: -14px 0 auto;
  height: 14px;
}
.has-dropdown.is-open .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
@media (hover: hover) and (min-width: 992px) {
  .has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .has-dropdown:hover .chev { transform: rotate(180deg); }
}
.has-dropdown.is-open .chev { transform: rotate(180deg); }

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 12px;
  transition: background-color 0.2s;
}
.dropdown-link:hover { background: var(--bg-soft); }
.dropdown-link[aria-current="page"] { background: var(--coral-50); }
.dropdown-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 12px;
  background: var(--bg-warm);
  border: 1px solid #f3ece8;
}
.dropdown-icon img { width: 30px; height: 30px; object-fit: contain; }
.dropdown-title { display: block; color: var(--navy); font-weight: 700; font-size: 0.95rem; line-height: 1.3; }
.dropdown-desc { display: block; color: var(--muted); font-size: 0.85rem; line-height: 1.4; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  place-items: center;
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: background-color 0.2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.3s var(--ease);
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(6px); }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: rotate(45deg); }
.nav-open .nav-toggle span::after { transform: rotate(-45deg); }

/* 6. Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  padding-block: clamp(40px, 5vw, 72px) clamp(32px, 4vw, 56px);
  overflow: hidden;
}
.hero::before { /* soft brand glow */
  content: "";
  position: absolute;
  inset: -35% auto auto -20%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(closest-side, rgba(242, 92, 84, 0.07), rgba(242, 92, 84, 0));
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 24px;
  min-height: 540px;
}
.hero-copy { position: relative; z-index: 1; }
.hero-copy .display { margin-top: 22px; }
.hero-copy .lead { margin-top: 22px; max-width: 30em; }
.hero-copy .btn-row { margin-top: 32px; }
.hero-copy .checklist { margin-top: 28px; }

/* The card animation is shown whole (never cropped or zoomed), large and to the
   right of the headline, like the original site. White frame areas disappear via multiply. */
.hero-visual {
  position: absolute;
  top: 50%;
  left: 78%;
  width: min(1300px, 95vw);
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-visual img,
.hero-visual video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.hero-visual img { transition: opacity 0.6s; }
.hero-visual video { opacity: 0; transition: opacity 0.6s; }
.hero-visual.is-playing video { opacity: 1; }
.hero-visual.is-playing img { opacity: 0; }

/* Word-by-word headline reveal (CSS only) */
.reveal-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.reveal-words .w > span { display: inline-block; animation: word-up 0.9s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 80ms); }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding-block: clamp(56px, 7vw, 104px) clamp(32px, 4vw, 56px);
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% 0 auto;
  height: 520px;
  margin-inline: auto;
  max-width: 900px;
  background: radial-gradient(closest-side, rgba(242, 92, 84, 0.09), rgba(242, 92, 84, 0));
  pointer-events: none;
}
.page-hero > .container { position: relative; }
.page-hero .display { margin-top: 20px; }
.page-hero .lead { max-width: 36em; margin: 20px auto 0; }

/* 7. Sections & cards ------------------------------------------------------ */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stat { padding: 28px 28px 26px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-value {
  display: block;
  color: var(--navy);
  font-size: clamp(1.9rem, 1.6vw + 1rem, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.stat-value em { font-style: normal; color: var(--coral); }
.stat-label { display: block; margin-top: 8px; color: var(--muted); font-size: 0.925rem; line-height: 1.45; }

/* Split section (copy + embed) */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.split-copy { position: sticky; top: calc(var(--header-h) + 40px); }
.split-copy .h2 { margin-top: 18px; }
.split-copy .lead { margin-top: 18px; }

/* Steps */
.steps { counter-reset: step; margin: 36px 0 0; padding: 0; list-style: none; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding-bottom: 28px;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--coral);
  font-weight: 800;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 21.5px;
  top: 52px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(var(--line-strong), transparent);
}
.step h3 { font-size: 1.075rem; font-weight: 700; letter-spacing: -0.01em; margin-top: 10px; }
.step p { margin-top: 6px; color: var(--muted); font-size: 0.975rem; }

/* Feature timeline (about) */
.timeline {
  position: relative;
  max-width: 1040px;
  margin-inline: auto;
  padding: 0;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, var(--line-strong) 8%, var(--line-strong) 92%, transparent);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
}
.timeline-item + .timeline-item { margin-top: clamp(24px, 4vw, 48px); }
.timeline-item::before { /* glowing dot */
  content: "";
  position: absolute;
  left: 50%;
  top: 34px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--coral);
  box-shadow: 0 0 0 6px rgba(242, 92, 84, 0.14), 0 0 24px 6px rgba(242, 92, 84, 0.35);
}
.timeline-card { grid-column: 1; padding: 28px 30px; }
.timeline-item:nth-child(even) .timeline-card { grid-column: 2; }
.timeline-num {
  display: block;
  color: var(--coral);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.timeline-card h3 { margin-top: 10px; }
.timeline-card p { margin-top: 10px; color: var(--muted); }

/* Team */
.team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.member { overflow: hidden; text-align: center; }
.member-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #f6716a 0%, #fbc6c1 62%, #fff 100%);
}
.member-art span {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--coral-600);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 10px 30px -10px rgba(214, 58, 58, 0.55);
}
.member-body { padding: 20px 20px 24px; }
.member-body h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
.member-body p { margin-top: 4px; color: var(--muted); font-size: 0.925rem; font-weight: 600; }

/* About intro */
.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
}
.about-hero-grid .display { margin-top: 22px; }
.about-hero-grid .lead { margin-top: 22px; max-width: 32em; }
.about-hero-grid .btn-row { margin-top: 32px; }
.about-visual,
.hero-visual {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
  mask-composite: intersect;
}
.about-visual { position: relative; aspect-ratio: 4 / 3.4; margin-right: calc(var(--gutter) * -1); }
.about-visual video,
.about-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% 50%;
  mix-blend-mode: multiply;
}

/* Contact options */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.option-list { display: grid; gap: 16px; }
.option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.2s;
}
.option:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.option .dropdown-icon { width: 56px; height: 56px; }
.option .dropdown-icon img { width: 34px; height: 34px; }
.option-text { flex: 1; min-width: 0; }
.option-text strong { display: block; color: var(--navy); font-size: 1rem; }
.option-text span { display: block; color: var(--muted); font-size: 0.9rem; line-height: 1.45; margin-top: 2px; }
.option > svg { width: 20px; height: 20px; color: var(--subtle); flex: none; transition: transform 0.25s var(--ease), color 0.2s; }
.option:hover > svg { color: var(--coral); transform: translateX(3px); }

/* 8. Testimonials ---------------------------------------------------------- */
.marquee {
  --gap: 20px;
  display: flex;
  overflow: hidden;
  gap: var(--gap);
  padding-block: 12px 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee + .marquee { margin-top: -8px; }
.marquee-track {
  display: flex;
  flex: none;
  gap: var(--gap);
  min-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: marquee var(--duration, 60s) linear infinite;
}
.marquee-track > li { display: flex; }
.marquee--reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }

.quote {
  display: flex;
  flex-direction: column;
  width: 360px;
  flex: none;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}
.quote-mark {
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 12px;
  background: var(--coral-50);
  color: var(--coral);
}
.quote blockquote {
  flex: 1;
  margin-top: 16px;
  color: var(--navy);
  font-size: 0.975rem;
  line-height: 1.6;
}
.quote blockquote mark {
  background: none;
  color: var(--coral-600);
  font-weight: 700;
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.quote figcaption img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line);
}

/* 9. FAQ ------------------------------------------------------------------- */
.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.faq-col { display: grid; gap: 16px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease), border-color 0.2s;
}
.faq-item:hover { border-color: var(--line-strong); }
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.025rem;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-soft);
  transition: background-color 0.2s, transform 0.3s var(--ease);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--coral); transform: rotate(180deg); }
.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after { background: #fff; }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { padding: 0 22px 22px; color: var(--muted); }
.faq-item[open] .faq-answer { animation: fade-down 0.35s var(--ease); }

/* 10. Forms ---------------------------------------------------------------- */
.form-card { padding: clamp(24px, 3.5vw, 40px); }
.form-card h2 { font-size: 1.5rem; letter-spacing: -0.02em; }
.form-card > p { margin-top: 6px; color: var(--muted); }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--navy); font-size: 0.875rem; font-weight: 700; }
.field label .optional { color: var(--subtle); font-weight: 500; }
.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: #a3aebd; }
.input:hover { border-color: #bfc7d3; }
.input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px rgba(242, 92, 84, 0.15); }
textarea.input { min-height: 140px; resize: vertical; }
select.input {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2320344e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.form-foot small { color: var(--subtle); font-size: 0.825rem; }
.hidden-field { display: none; }

/* 11. Embeds --------------------------------------------------------------- */
.embed-card {
  position: relative;
  overflow: hidden;
  padding: 8px;
}
.embed-frame {
  position: relative;
  min-height: 700px;
  border-radius: 18px;
  background: var(--bg-soft);
  overflow: hidden;
}
.embed-frame .calendly-inline-widget { min-width: 300px; height: 700px; }
.embed-frame [data-tf-live] { min-height: 620px; }
.embed-frame [data-tf-live] iframe { border-radius: 18px; }
.embed-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.925rem;
  font-weight: 600;
  pointer-events: none;
}
.embed-loading::before {
  content: "";
  width: 28px;
  height: 28px;
  border: 3px solid var(--coral-100);
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.embed-fallback { display: none; max-width: 22em; text-align: center; font-weight: 500; }
.embed-loading.is-stalled { pointer-events: auto; }
.embed-loading.is-stalled::before,
.embed-loading.is-stalled .embed-status { display: none; }
.embed-loading.is-stalled .embed-fallback { display: block; }
.embed-fallback a { color: var(--coral-600); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* 12. CTA band ------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 72px);
  border-radius: var(--radius-xl);
  background: var(--navy-900);
  color: #fff;
  isolation: isolate;
}
.cta::before,
.cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(10px);
}
.cta::before {
  right: -10%;
  top: -60%;
  width: 640px;
  height: 640px;
  background: radial-gradient(closest-side, rgba(242, 92, 84, 0.55), rgba(242, 92, 84, 0));
}
.cta::after {
  left: -15%;
  bottom: -80%;
  width: 560px;
  height: 560px;
  background: radial-gradient(closest-side, rgba(72, 113, 165, 0.45), rgba(72, 113, 165, 0));
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta h2 { color: #fff; max-width: 16em; }
.cta p { margin-top: 14px; max-width: 34em; color: rgba(255, 255, 255, 0.75); font-size: 1.075rem; }

/* 13. Footer --------------------------------------------------------------- */
.site-footer {
  padding-block: 64px 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.6fr;
  gap: 40px;
}
.footer-brand img { width: 84px; }
.footer-brand p { margin-top: 18px; max-width: 18em; color: var(--muted); font-size: 0.925rem; }
.footer-title {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--coral-600); }
.subscribe p { color: var(--muted); font-size: 0.925rem; margin-bottom: 14px; }
.subscribe-row {
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.subscribe-row:focus-within { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(242, 92, 84, 0.15); }
.subscribe-row input {
  flex: 1;
  min-width: 0;
  padding: 0 10px;
  border: 0;
  background: none;
  color: var(--navy);
  font: inherit;
  font-size: 0.95rem;
}
.subscribe-row input:focus { outline: none; }
.subscribe-row input::placeholder { color: #a3aebd; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.875rem;
}
.footer-bottom a:hover { color: var(--navy); }

/* Simple centered message pages (thank you / 404) */
.message {
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--header-h) - 12px);
  padding-block: 64px;
  text-align: center;
}
.message-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  box-shadow: 0 0 0 10px var(--coral-50), var(--shadow-coral);
}
.message-icon svg { width: 34px; height: 34px; }
.message .lead { margin: 18px auto 0; max-width: 28em; }
.message .btn-row { justify-content: center; margin-top: 32px; }

/* 14. Motion --------------------------------------------------------------- */
@keyframes word-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes marquee { to { transform: translateX(calc(-100% - var(--gap))); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(242, 92, 84, 0.06); } }

/* Scroll reveal: only hides content once JS has confirmed it can reveal it */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; }
  .marquee-track[aria-hidden="true"] { display: none; }
}

/* 15. Responsive ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .subscribe { grid-column: 1 / -1; max-width: 460px; }
}

@media (max-width: 991px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: grid; }
  .nav-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    max-height: calc(100svh - var(--header-h) - 40px);
    overflow-y: auto;
  }
  .nav-open .nav-panel { display: block; animation: fade-down 0.3s var(--ease); }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 2px; margin: 0; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px; font-size: 1rem; }
  .nav-link .chev { margin-left: auto; }
  .dropdown {
    position: static;
    width: auto;
    display: none;
    margin: 4px 0 8px;
    padding: 4px;
    border: 0;
    border-radius: 14px;
    background: var(--bg-soft);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .dropdown::before { display: none; }
  .has-dropdown.is-open .dropdown { display: block; transform: none; }
  .has-dropdown:focus-within .dropdown { transform: none; }
  .dropdown-link:hover { background: #fff; }
  .nav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 10px;
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .nav-actions .btn { min-height: 48px; }

  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
  .hero-copy { text-align: left; }
  .hero-grid { min-height: 0; }
  .hero-visual { position: relative; top: auto; left: auto; transform: none; width: 100%; max-width: 760px; margin: 8px auto 0; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .split { grid-template-columns: 1fr; }
  .split-copy { position: static; }

  .about-hero-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 480px; width: 100%; margin-inline: auto; aspect-ratio: 16 / 10; }

  .contact-grid { grid-template-columns: 1fr; }

  .timeline::before { left: 7px; transform: none; }
  .timeline-item { grid-template-columns: 1fr; gap: 0; padding-left: 40px; }
  .timeline-item::before { left: 0; transform: none; top: 32px; }
  .timeline-card,
  .timeline-item:nth-child(even) .timeline-card { grid-column: 1; }
}

@media (max-width: 767px) {
  .faq { display: flex; flex-direction: column; align-items: stretch; }
  .hero-visual { aspect-ratio: 16 / 10; }
  .hero-visual img { object-fit: cover; transform: scale(2.3); }
  .about-visual { display: none; }
  .faq-col { display: contents; }
  .team { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .member { display: grid; grid-template-columns: 112px 1fr; align-items: center; text-align: left; }
  .member-art { aspect-ratio: auto; height: 100%; min-height: 112px; }
  .member-art span { width: 64px; height: 64px; font-size: 1.3rem; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-inner .btn-row { width: 100%; }
  .quote { width: 300px; padding: 22px; }
}

@media (max-width: 479px) {
  .nav { padding-inline: 12px 8px; border-radius: 16px; }
  .brand img { width: 112px; }
  .hero-copy .btn-row .btn,
  .cta .btn-row .btn,
  .about-hero-grid .btn-row .btn { flex: 1 1 100%; }
  .checklist { gap: 10px 16px; font-size: 0.875rem; }
  .stat { padding: 22px 18px; }
  .embed-card { padding: 4px; }
  .embed-frame, .embed-frame .calendly-inline-widget { min-height: 640px; height: 640px; }
  .form-foot .btn { width: 100%; }
}

/* Typeform sets its own height; reserve space only while it loads */
.embed-frame--auto { min-height: 0; }
.embed-frame--auto:has(.embed-loading) { min-height: 520px; }
