/* Prepared EMS. Static stylesheet. No build step. */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/source-serif-4-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --red: #c01018;
  --red-deep: #9d0e14;
  --red-ink: #8e1218;
  --blue: #3ec6dc;
  --blue-ink: #0c5f70;
  --char: #12161a;
  --char-2: #1b222a;
  --ink: #171c21;
  --muted: #3e474f;
  --faint: #5c656e;
  --line: #e4ddd3;
  --paper: #f4f1eb;
  --white: #fffcf8;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(18, 22, 26, 0.04), 0 16px 40px rgba(18, 22, 26, 0.06);
  --shadow-lift: 0 18px 44px rgba(18, 22, 26, 0.14);
  --header: 112px;
  --max: 1140px;
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h, var(--header));
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

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

a { color: var(--red-ink); text-underline-offset: 0.18em; }

a:hover { color: var(--red-deep); }

h1, h2, h3, h4, p { margin-top: 0; }

h1, h2, .slogan, .price, .step-n, .display {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); margin-bottom: 0.35em; }

h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 0.4em; color: var(--ink); }

h3 { font-family: var(--sans); font-style: normal; font-weight: 600; letter-spacing: -0.015em; font-size: 1.35rem; line-height: 1.25; margin-bottom: 0.35em; }

p { margin-bottom: 0.9em; }

.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 {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 80;
  background: #fff;
  color: var(--char);
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  transform: translateY(-140%);
  font-weight: 600;
}

.skip:focus { transform: none; }

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--blue-ink);
  outline-offset: 3px;
}

.site-header :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible,
.site-foot :focus-visible {
  outline-color: var(--blue);
}

::selection { background: #b7eef6; color: var(--char); }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-ink);
  margin-bottom: 0.7rem;
}

.lede {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 42rem;
}

.slogan .q { color: var(--blue); font-style: normal; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--char);
  color: #fff;
  height: auto;
  min-height: var(--header);
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s var(--ease);
}

.site-header.is-stuck { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28); }

.header-in {
  width: min(var(--max), calc(100% - 1.25rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo,
.logo picture,
.logo img {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.logo {
  display: flex;
  line-height: 0;
  flex: 0 0 auto;
  padding: 0;
}

.logo img { height: 96px; width: auto; }

.menu-btn {
  margin-left: auto;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-btn .bars,
.menu-btn .bars::before,
.menu-btn .bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fff;
  position: relative;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}

.menu-btn .bars::before,
.menu-btn .bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-btn .bars::before { top: -6px; }
.menu-btn .bars::after { top: 6px; }

.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

.nav {
  position: fixed;
  inset: var(--header-h, var(--header)) 0 0 0;
  background: rgba(18, 22, 26, 0.98);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem 1.25rem 2rem;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  overflow: auto;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav a {
  color: #f4f1eb;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.35rem;
  padding: 0.7rem 0.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav a:hover { color: var(--blue); }

.nav a[aria-current="page"] { color: var(--blue); }

.nav-book {
  margin-top: 0.8rem;
  background: var(--red) !important;
  color: #fff !important;
  text-align: center;
  border: 0 !important;
  border-radius: 12px;
  padding: 0.85rem 1rem !important;
  min-height: 48px;
}

.nav-book:hover { background: var(--red-deep) !important; color: #fff !important; }

.header-book {
  display: none;
  margin-left: auto;
  min-height: 44px;
  padding: 0.45rem 0.85rem;
  font-size: 0.95rem;
  flex: 0 0 auto;
}

.menu-btn { margin-left: 0.4rem; flex: 0 0 auto; }

html.nav-open { overflow: hidden; }

#book,
#courses,
#ce,
#career,
#tiers,
#register,
section[id],
.field input,
.field select,
.field textarea {
  scroll-margin-top: calc(var(--header-h, var(--header)) + 12px);
}

.card, .panel, .tilt { height: 100%; }

.thanks {
  margin: 0;
  padding: 0.85rem 0.95rem;
  background: #e7f6f8;
  border-radius: 12px;
  color: var(--ink);
}

.ecg-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  pointer-events: none;
}

.ecg-line svg { width: 100%; height: 14px; display: block; margin-top: -11px; }

.ecg-line polyline {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hero */

.hero {
  position: relative;
  min-height: clamp(560px, 82vh, 820px);
  color: #fff;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--char);
}

.hero-media {
  position: absolute;
  inset: -10% 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(12, 14, 16, 0.84) 0%, rgba(12, 14, 16, 0.5) 36%, rgba(12, 14, 16, 0.08) 62%, rgba(12, 14, 16, 0.2) 100%),
    linear-gradient(180deg, rgba(12, 14, 16, 0.08) 0%, rgba(12, 14, 16, 0.28) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.5rem 0 3.5rem;
}

.hero .kicker { color: var(--blue); }

.hero h1 { max-width: 11em; color: #fff; }

.hero .lede { color: rgba(255, 255, 255, 0.86); font-size: 1.15rem; max-width: 36rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.4rem; }

.ecg {
  margin-top: 2rem;
  width: min(420px, 100%);
  height: 42px;
}

.ecg polyline {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 680;
  stroke-dashoffset: 680;
  animation: ecg-draw 1.8s var(--ease) 0.35s forwards;
}

@keyframes ecg-draw { to { stroke-dashoffset: 0; } }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(192, 16, 24, 0.22); }
.btn-red:hover { background: var(--red-deep); color: #fff; }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover { background: #fff; color: var(--char); }

.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: #cfc6bb;
}
.btn-line:hover { border-color: var(--char); color: var(--char); background: #fff; }

.btn-block { width: 100%; }

.site-header .header-book { display: none; }

@media (hover: hover) and (pointer: fine) {
  .btn-red:hover,
  .btn-ghost:hover,
  .btn-line:hover { transform: translateY(-2px); }
}

/* Facts */

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--char);
  color: #fff;
}

.facts div {
  padding: 1.15rem 1rem 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.facts strong {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.facts span { display: block; color: rgba(255, 255, 255, 0.68); font-size: 0.9rem; margin-top: 0.15rem; }

/* Sections */

.section { padding: 4.25rem 0; }

.section-head { margin-bottom: 1.75rem; max-width: 40rem; }

.form-intro { text-align: center; }

.form-intro .lede { margin-inline: auto; }

.section-head.form-intro {
  width: min(920px, 100%);
  max-width: 920px;
  margin-inline: auto;
}

.page-hero-copy.form-intro {
  width: min(920px, calc(100% - 2rem));
  max-width: 920px;
  margin-inline: auto;
}

.page-hero-copy.form-intro-wide {
  width: min(var(--max), calc(100% - 2rem));
  max-width: var(--max);
}

.page-hero-copy.form-intro-narrow {
  width: min(760px, calc(100% - 2rem));
  max-width: 760px;
}

.wrap.form-column { width: min(920px, calc(100% - 2rem)); }

.wrap.form-column-narrow { width: min(760px, calc(100% - 2rem)); }

.form-column > .lede,
.form-column > .travel { text-align: center; }

.form-column > .lede { margin-inline: auto; }

.grid-2 {
  display: grid;
  gap: 1.25rem;
}

.card, .panel, .step, .form-card, .note-card, .founder, .thanks-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.tilt { perspective: 900px; }

.tilt-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s linear;
  will-change: transform;
}

.card-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: #d9d3cb;
}

.card-media img,
.panel-media img,
.split-media img,
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card-media.card-cover {
  aspect-ratio: 3 / 4;
  background: #ebe6de;
}

.card-media.card-cover img {
  object-fit: contain;
  padding: 0.85rem;
}

.card-body, .panel-body { padding: 1.2rem 1.2rem 1.35rem; display: flex; flex-direction: column; flex: 1; }

.card .meta, .panel .meta {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 1rem;
  display: grid;
  gap: 0.35rem;
}

.card .meta li, .soft-list li {
  display: grid;
  grid-template-columns: 5.6rem 1fr;
  gap: 0.4rem;
  font-size: 0.98rem;
}

.card .meta span, .soft-list span {
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 0.25rem;
}

.price {
  color: var(--red-ink);
  font-size: 1.85rem;
  margin: 0.15rem 0 0.2rem;
}

.price small, .term {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 0.35rem;
}

.card .btn, .tier .btn { margin-top: auto; }

.panel {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.panel-media { aspect-ratio: 16 / 10; overflow: hidden; background: #d9d3cb; }

.tier {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}

.tier-name {
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 0.2rem;
  letter-spacing: -0.015em;
}

.tier .price { font-size: 1.7rem; }

.paynote { color: var(--muted); font-size: 0.95rem; margin: 0.35rem 0 0; }

.paymsg {
  margin: 0.8rem 0 0;
  padding: 0.75rem 0.9rem;
  background: #f7f1e4;
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.95rem;
}

.pending {
  margin: 0.2rem 0 1rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--blue);
  background: #f3fbfd;
  color: var(--muted);
  font-family: var(--sans);
  font-style: normal;
  font-size: 1rem;
}

.benefits {
  list-style: none;
  padding: 0;
  margin: 0.2rem 0 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.benefits li {
  position: relative;
  padding-left: 1.15rem;
}

.benefits li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-ink);
  position: absolute;
  left: 0;
  top: 0.55em;
}

.feature {
  display: grid;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-media {
  min-height: 240px;
  background: #d9d3cb;
  overflow: hidden;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
}

.feature-body {
  padding: 1.4rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
}

/* Steps */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.step { padding: 1.35rem 1.25rem 1.4rem; }

.step-n {
  display: block;
  color: var(--blue-ink);
  font-size: 2rem;
  margin-bottom: 0.45rem;
}

.step p { margin: 0; color: var(--muted); }

.travel {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
}

/* Split */

.split {
  display: grid;
  background: var(--char);
  color: #fff;
}

.split-media { min-height: 260px; overflow: hidden; }

.split-media img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }

.split-copy { padding: 2.5rem 1.25rem; }

.split .kicker { color: var(--blue); }

.split h2 { color: #fff; }

.split p { color: rgba(255, 255, 255, 0.8); max-width: 38rem; }

/* Page hero */

.page-hero {
  background: var(--char);
  color: #fff;
  display: grid;
}

.page-hero-copy { padding: 2.6rem 1.25rem 2.4rem; }

.page-hero .kicker { color: var(--blue); }

.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.2rem); }

.page-hero .lede { color: rgba(255, 255, 255, 0.8); }

.page-hero-media { min-height: 220px; max-height: 320px; overflow: hidden; }

.page-hero-media img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }

.page-hero-plain { padding-bottom: 2.6rem; }

/* Prose and lists */

.prose { max-width: 44rem; }

.prose p { font-size: 1.08rem; }

.stack { display: grid; gap: 1rem; }

.offer-row {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 1.15rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.offer-row h3 { margin-bottom: 0.15rem; }

.offer-row p { margin: 0; color: var(--muted); }

.offer-row a.more { font-weight: 600; }

.soft-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }

/* Forms */

.form-card { padding: 1.25rem 1.1rem 1.4rem; max-width: 920px; margin-inline: auto; }

.form {
  display: grid;
  gap: 0.95rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.opt { font-weight: 500; color: var(--faint); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfc6bb;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  min-height: 48px;
}

.field textarea { min-height: 130px; resize: vertical; }

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--blue-ink);
  box-shadow: 0 0 0 4px rgba(62, 198, 220, 0.28);
}

.hint { display: block; margin-top: 0.3rem; color: var(--faint); font-size: 0.88rem; }

.inquiry-details { display: contents; }

@supports selector(:has(*)) {
  .inquiry:has(#f-interest option[value="Prepared EMS CE's"]:checked) .inquiry-details,
  .inquiry:has(#f-interest option[value="Career Development Program"]:checked) .inquiry-details,
  .inquiry:has(#f-interest option[value="Fire Service Training (coming soon)"]:checked) .inquiry-details,
  .inquiry:has(#f-interest option[value="General Question / Not Sure"]:checked) .inquiry-details {
    display: none;
  }
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.banner {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #fde8e6;
  color: var(--red-ink);
  border: 1px solid #f3c4c0;
  margin-bottom: 1rem;
}

.contact-layout { display: grid; gap: 1.25rem; }

.email-card {
  background: var(--char);
  color: #fff;
  border-radius: 20px;
  padding: 1.5rem 1.3rem;
}

.email-card .kicker { color: var(--blue); }

.email-card a { color: #fff; font-size: 1.25rem; font-weight: 600; }

.email-card p { color: rgba(255, 255, 255, 0.75); }

/* About */

.year {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--red-ink);
  line-height: 0.9;
  margin: 0 0 0.4rem;
}

.founder {
  display: grid;
  gap: 1.25rem;
  padding: 1.15rem;
  margin-top: 0.5rem;
}

.founder-frame {
  min-height: 240px;
  border-radius: 14px;
  background:
    linear-gradient(160deg, #e7f6f8 0%, #f4f1eb 55%, #f7e8e6 100%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  color: var(--blue-ink);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.reserved { margin: 0.5rem 0 0; display: grid; gap: 0.55rem; }

.reserved div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
}

.reserved dt { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.reserved dd { margin: 0; color: var(--muted); }

.cta-band {
  margin-top: 1rem;
  background: var(--char);
  color: #fff;
  border-radius: 20px;
  padding: 1.8rem 1.3rem;
}

.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }

.cta-band p { color: rgba(255, 255, 255, 0.78); }

/* Thanks */

.thanks-wrap { padding: 3rem 0 4rem; }

.thanks-card { padding: 2rem 1.3rem; max-width: 40rem; }

.thanks-card h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }

/* Footer */

.site-foot {
  background: var(--char);
  color: rgba(255, 255, 255, 0.78);
  padding: 2.8rem 0 1.4rem;
  position: relative;
}

.foot-grid {
  display: grid;
  gap: 1.6rem;
}

.site-foot .slogan {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.4rem;
}

.site-foot .kicker,
.cta-band .kicker { color: var(--blue); }

.site-foot a { color: #fff; text-decoration: none; }

.site-foot a:hover { color: var(--blue); }

.fnav { display: flex; flex-wrap: wrap; gap: 0.45rem 1rem; }

.fnav a { font-weight: 500; }

.legal {
  margin: 1.6rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
}

.legal a { text-decoration: underline; text-underline-offset: 0.15em; }

/* Reveal */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-in { opacity: 1; transform: none; }

.js .reveal-delay { transition-delay: 0.12s; }

/* Desktop */

@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts div { padding: 1.4rem 1.3rem; }
  .form { grid-template-columns: 1fr 1fr; }
  .full { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .contact-layout { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
  .founder { grid-template-columns: 220px 1fr; align-items: center; padding: 1.4rem; }
  .form-card { padding: 1.6rem 1.5rem 1.7rem; }
  .foot-grid { grid-template-columns: 1.3fr 1fr 0.8fr; }
}

@media (min-width: 880px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .feature { grid-template-columns: 1.08fr 0.92fr; align-items: stretch; }
  .feature-media, .feature-media img { min-height: 100%; height: 100%; }
  .feature-body { padding: 2rem 2rem 2.15rem; justify-content: center; }
  .split { grid-template-columns: 1.05fr 0.95fr; min-height: 460px; }
  .split-media, .split-media img { min-height: 100%; height: 100%; }
  .split-copy { padding: 4rem 3rem 4rem max(3rem, calc((100vw - var(--max)) / 2)); display: flex; flex-direction: column; justify-content: center; }
  .page-hero { grid-template-columns: 1.05fr 0.95fr; min-height: 460px; }
  .page-hero-plain { grid-template-columns: 1fr; }
  .page-hero:not(.page-hero-plain) .page-hero-copy {
    padding: 3.5rem 2.5rem 3.5rem max(1.5rem, calc((100vw - var(--max)) / 2));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .page-hero-media { max-height: none; min-height: 460px; }
  .page-hero-media img { min-height: 460px; }
  .section { padding: 5.25rem 0; }
}

@media (min-width: 1100px) {
  :root { --header: 148px; }
  .logo img { height: 128px; }
  .menu-btn { display: none; }
  .nav-book { display: none; }
  .site-header .header-book { display: inline-flex; margin-left: 0.35rem; }
  .nav {
    position: static;
    inset: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    padding: 0;
    margin-left: auto;
    overflow: visible;
  }
  .nav a {
    font-size: 0.95rem;
    padding: 0.4rem 0.55rem;
    border: 0;
    color: rgba(255, 255, 255, 0.82);
    white-space: nowrap;
  }
  .nav a[aria-current="page"] {
    color: #fff;
    box-shadow: inset 0 -2px 0 var(--blue);
  }
  .nav-book {
    margin: 0 0 0 0.35rem;
    font-size: 0.95rem;
    padding: 0.55rem 0.9rem !important;
    min-height: 42px;
  }
  .card-body, .panel-body { padding: 1.35rem 1.4rem 1.5rem; }
}

@media (min-width: 1100px) and (max-width: 1320px) {
  .nav a { font-size: 0.84rem; padding: 0.4rem 0.32rem; }
  .header-in { gap: 0.4rem; }
}

@media (hover: hover) and (pointer: fine) {
  .card:hover, .panel:hover, .offer-row:hover {
    box-shadow: var(--shadow-lift);
  }
  .card:hover .card-media img,
  .panel:hover .panel-media img { transform: scale(1.045); }
  .card:hover .card-media.card-cover img { 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;
  }
  .ecg polyline { stroke-dashoffset: 0; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .hero-media { transform: none !important; }
}

@media print {
  .site-header, .site-foot, .menu-btn, .btn { box-shadow: none; }
  .hero, .page-hero, .split, .site-header, .site-foot, .facts { background: #fff; color: #000; }
  .hero-shade, .hero-media { display: none; }
}

/* Matching title divider lines */
.title-line { margin: 0 !important; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.title-line + * { margin-top: .95rem !important; }
.title-line + .pay-block { margin-top: 0 !important; }
.title-line + .pay-block .tier:first-child { border-top: 0; }

/* Centered headings site-wide */
.section-head, .page-hero-copy { text-align: center; margin-left: auto !important; margin-right: auto !important; }
.section-head p, .section-head .lede, .page-hero-copy .lede, .page-hero-copy p { margin-left: auto; margin-right: auto; }
.page-hero-copy .cta-row { justify-content: center; }

/* ===== Smooth flow ===== */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: cubic-bezier(.22,.61,.36,1); }
html { scroll-behavior: smooth; }
/* soft blend from dark hero into page */
.hero::after, .page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; background: linear-gradient(to bottom, rgba(244,241,234,0), var(--paper)); pointer-events: none; z-index: 1; }
.page-hero { position: relative; }
.hero > *:not(.hero-media):not(.hero-shade) { position: relative; z-index: 2; }
/* softer, more consistent reveals */
.js .reveal { transform: translateY(28px); transition: opacity 1s cubic-bezier(.22,.61,.36,1), transform 1s cubic-bezier(.22,.61,.36,1); }
.js .section-head.reveal { transform: translateY(16px); }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } html { scroll-behavior: auto; } }

/* ===== Footer v2 ===== */
.site-foot-v2 { position: relative; padding: 0; background: radial-gradient(ellipse at 50% 0%, #1d2a33 0%, var(--char) 60%); color: rgba(255,255,255,.75); }
.foot-ekg { color: var(--blue); height: 40px; opacity: .9; }
.foot-ekg svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 6px rgba(73,200,220,.55)); }
.foot-v2 { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.1rem; padding: 2.2rem 1.25rem 2.6rem; }
.foot-logo img { height: 64px; width: auto; transition: transform .3s ease; }
.foot-logo:hover img { transform: scale(1.04); }
.foot-slogan { font-size: clamp(1.6rem, 3.2vw, 2.3rem); color: #fff; margin: 0; }
.fnav-v2 { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.6rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); width: min(100%, 860px); }
.fnav-v2 a { color: #fff; text-decoration: none; font-weight: 500; position: relative; padding: .2rem 0; }
.fnav-v2 a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .25s ease; }
.fnav-v2 a:hover::after { transform: scaleX(1); }
.foot-mail { display: inline-flex; flex-direction: column; align-items: center; padding: .7rem 1.6rem; border: 1px solid rgba(73,200,220,.45); border-radius: 999px; color: #fff; text-decoration: none; transition: background .25s, border-color .25s; }
.foot-mail:hover { background: rgba(73,200,220,.12); border-color: var(--blue); color: #fff; }
.foot-mail-label { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }
.foot-note { margin: 0; font-size: .95rem; }
.foot-bar { border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
.foot-bar .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: 1rem 1.25rem; }
.foot-bar a { color: rgba(255,255,255,.75); }
.foot-bar a:hover { color: #fff; }

/* ===== Home hero v2 ===== */
body.home .site-header { background: linear-gradient(180deg, rgba(12,14,16,.78) 0%, rgba(12,14,16,0) 100%); transition: background .35s ease, box-shadow .3s ease; }
body.home .site-header.is-stuck { background: var(--char); }
body.home .hero { margin-top: calc(-1 * var(--header)); min-height: 100vh; align-items: center; justify-content: center; }
body.home .hero-shade { background: linear-gradient(180deg, rgba(12,14,16,.55) 0%, rgba(12,14,16,.25) 45%, rgba(12,14,16,.55) 100%); }
.hero-copy-v2 { text-align: center; display: flex; flex-direction: column; align-items: center; padding: calc(var(--header) + 3rem) 0 5rem; }
.hero-copy-v2 h1.slogan { max-width: 14em; margin: 0 auto; font-size: clamp(2.6rem, 6.5vw, 5.2rem); text-shadow: 0 4px 30px rgba(0,0,0,.45); }
.hero-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 2rem; }
.hero-cat { min-width: 12rem; padding: .95rem 1.6rem; font-size: 1.05rem; letter-spacing: .02em; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.hero-cat:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(192,16,24,.45); }
.hero-copy-v2 .lede { margin: 1.6rem auto 0; text-align: center; }
.hero-copy-v2 .ecg { margin: 1.6rem auto 0; }
@media (max-width: 640px) { .hero-cat { min-width: 0; width: 100%; } }

/* ===== Header v3: centered logo, slide-out menu everywhere ===== */
.ecg-line { display: none !important; }
:root { --header: 128px !important; }
.site-header .header-in { display: grid !important; grid-template-columns: 1fr auto 1fr; align-items: center; width: min(var(--max), calc(100% - 2rem)); }
.site-header .logo { grid-column: 2; justify-self: center; }
.site-header .logo img { height: clamp(78px, 9vw, 118px) !important; width: auto; }
.site-header .header-book { display: inline-flex !important; grid-column: 1; grid-row: 1; justify-self: start; margin: 0; }
.site-header .menu-btn { display: inline-flex !important; grid-column: 3; grid-row: 1; justify-self: end; margin: 0; }
.site-header .nav, .site-header .nav.is-open { position: fixed !important; inset: var(--header-h, var(--header)) 0 0 0 !important; flex-direction: column !important; align-items: center; justify-content: center; background: rgba(14,16,18,.97) !important; }
.site-header .nav:not(.is-open) { opacity: 0 !important; visibility: hidden !important; }
.site-header .nav a { font-size: clamp(1.4rem, 3vw, 2rem) !important; border: 0 !important; text-align: center; }
.site-header .nav .nav-book { display: none !important; }
/* One-line headings */
.hero-copy-v2 h1.slogan { max-width: none !important; white-space: nowrap; font-size: clamp(1.6rem, 5vw, 4.6rem) !important; }
@media (min-width: 720px) { .section-head h2, .page-hero-copy h1, .section h2 { white-space: nowrap; max-width: none; font-size: clamp(1.8rem, 3.6vw, 3rem); } }

/* ===== Hero logo + interactive buttons + motion ===== */
.hero-logo { width: clamp(280px, 40vw, 560px); height: auto; margin: 0 auto 1.6rem; filter: drop-shadow(0 8px 30px rgba(0,0,0,.5)); animation: logoIn 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes logoIn { from { opacity: 0; transform: translateY(-18px) scale(.94); } to { opacity: 1; transform: none; } }
body.home .site-header .logo { opacity: 0; pointer-events: none; transition: opacity .35s ease; }
body.home .site-header.is-stuck .logo { opacity: 1; pointer-events: auto; }
body.home .hero-copy-v2 { padding-top: calc(var(--header) * .35); }
.site-header .header-book { min-width: 9.5rem; justify-content: center; padding: .6rem 1.6rem !important; font-size: 1.02rem !important; }
.btn { position: relative; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, background .22s ease, filter .22s ease !important; }
.btn::after { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .6s ease; pointer-events: none; }
.btn:hover::after { left: 130%; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.28); filter: brightness(1.06); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn .ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.45); transform: scale(0); animation: ripple .6s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
.hero-cat { animation: catIn .8s cubic-bezier(.2,.8,.2,1) both; }
.hero-cat:nth-child(1) { animation-delay: .35s; } .hero-cat:nth-child(2) { animation-delay: .5s; } .hero-cat:nth-child(3) { animation-delay: .65s; }
@keyframes catIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
/* Living photos: slow cinematic drift */
.hero-media img, .page-hero img { animation: drift 28s ease-in-out infinite alternate; transform-origin: 50% 60%; }
@keyframes drift { from { transform: scale(1.04) translate(0,0); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.card img, .feature img, figure img { transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.card:hover img, .feature:hover img, figure:hover img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .hero-media img, .page-hero img, .hero-logo, .hero-cat { animation: none !important; } }
body.home .hero { align-items: flex-start; }
body.home .hero-copy-v2 { padding-top: 1.2rem !important; margin-top: 0; }
.hero-logo { margin: 0 auto 2.4rem; display: block; position: relative; left: -1.5%; }
body.home .hero-cats { margin-bottom: 4rem; }
body.home .hero-copy-v2 { min-height: 100vh; justify-content: center; }
body.home .hero-copy-v2 { justify-content: flex-start; padding-top: .5rem !important; }
body.home .hero-copy-v2 h1.slogan { margin-top: 14vh; }
body.home .hero-copy-v2 { padding-top: 3.2rem !important; }
body.home .hero-copy-v2 h1.slogan { margin-top: 8vh; }
body.home .hero-copy-v2 { padding-top: 5.5rem !important; }
.hero-copy-v2 h1.slogan { font-style: italic !important; }
.hero-copy-v2 h1.slogan { font-family: var(--sans) !important; font-style: italic !important; font-weight: 800 !important; letter-spacing: -0.01em !important; }
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; display: block; }
.details-link { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; } .details-link:hover { color: var(--red-deep); }
.cdp-details { max-width: 46rem; margin: 1.5rem auto 0; text-align: center; } .cdp-details h3 { margin-top: 1.6rem; } .cdp-list { text-align: left; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: .35rem 1.5rem; padding-left: 1.4rem; margin: 1rem auto 0; }
.cdp-steps { text-align: left; max-width: 38rem; margin: 1rem auto 0; padding-left: 1.4rem; display: grid; gap: .6rem; } .cdp-close { margin-top: 2rem; font-size: 1.2rem; font-weight: 600; font-style: italic; }
#career-page-title .hl { display: block; }
.page-hero-solo { display: block !important; text-align: center; padding: 3.5rem 1rem 2.5rem; min-height: 0 !important; }
.page-hero-solo .page-hero-copy { max-width: 44rem; margin: 0 auto; }
.page-hero-solo .cta-row { justify-content: center; }
.cdp-solo { max-width: 46rem; margin: 0 auto; text-align: center; }
.cdp-solo .cdp-list { max-width: 40rem; }
.cdp-register { margin: 2.5rem auto 0; padding-top: 2rem; border-top: 1px solid rgba(0,0,0,.1); text-align: center; }
.cdp-register .price { font-size: 2.2rem; font-weight: 700; margin-bottom: 1rem; }
.btn-wide { min-width: 14rem; justify-content: center; }
.page-hero-solo .page-hero-copy { max-width: none !important; width: min(100%, 60rem); margin: 0 auto !important; padding: 0 !important; display: flex; flex-direction: column; align-items: center; }
.page-hero-solo h1, .page-hero-solo .lede { max-width: none !important; margin-left: auto !important; margin-right: auto !important; text-align: center !important; }
.page-hero-solo .lede { max-width: 36rem !important; }
#career-page-title .hl { display: inline !important; }
#career-page-title .hl + .hl::before { content: " "; }
#career-page-title { white-space: nowrap; font-size: clamp(1.5rem, 3.6vw, 3rem) !important; }
.cdp-details h3.title-line { margin-top: 2.8rem !important; }
.cdp-steps { margin-bottom: 1rem; }
.page-hero-solo { padding-bottom: 8rem !important; }
.page-hero-solo .page-hero-copy { position: relative; z-index: 2; }
#career-page-title { display: inline-block; position: relative; left: 50%; transform: translateX(-50%); width: max-content; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
/* Site-wide centered formation */
.page-hero-solo .page-hero-copy.wrap, .page-hero-solo .form-intro { max-width: 60rem !important; }
.page-hero-solo .kicker { text-align: center; }
.prose, .form-card { text-align: center; }
.prose ul, .prose ol, .form-card form, .form-card .field { text-align: left; }
.section h2, .section h3 { text-align: center; }
.section + .section { padding-top: 3rem; }
.section h3.title-line, .prose h3 { margin-top: 2.4rem; }
.about-col { max-width: 46rem; margin: 0 auto; text-align: center; }
.person { text-align: center; margin: 1.5rem auto 0; max-width: 22rem; }
.person-photo { width: 160px; height: 160px; border-radius: 50%; margin: 0 auto 1rem; background: #e6e1d8; color: #8a8378; display: flex; align-items: center; justify-content: center; font-size: .85rem; line-height: 1.3; box-shadow: 0 10px 30px rgba(0,0,0,.12); transition: transform .3s ease; }
.person:hover .person-photo { transform: scale(1.05); }
.person-role { color: var(--red); font-weight: 600; margin-top: -.3rem; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem; justify-items: center; }
.person-photo-img { display: block; overflow: hidden; background: none; } .person-photo-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: 50%; } .person .person-photo-img { width: 200px; height: 200px; }
/* Slogan quotes: curly, italic, tight to the words */
.slogan .q { font-style: italic !important; display: inline-block; margin: 0 .04em; }
.slogan .q:first-child { margin-right: .02em; }

/* Checkout page */
.pay-list { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.pay-card { width: 100%; max-width: 640px; text-align: center; scroll-margin-top: 120px; transition: box-shadow .3s, transform .3s; }
.pay-card .tier-name { white-space: nowrap; font-size: clamp(1rem, 3.6vw, 1.35rem); margin: 0 0 .25rem; }
.pay-card .price { font-size: 1.9rem; margin: 0 0 1.1rem; }
.pay-card.is-selected { box-shadow: 0 0 0 3px var(--red, #c8102e), 0 18px 40px rgba(0,0,0,.25); transform: translateY(-2px); }
.pay-btns { display: flex; justify-content: center; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.pay-opt { display: flex; flex-direction: column; align-items: center; flex: 1 1 200px; max-width: 260px; }
.pay-opt .btn { width: 100%; justify-content: center; }
.pay-opt .paynote { font-size: .82rem; text-align: center; margin-top: .5rem; }
.btn-venmo { background: #008cff; color: #fff; border-color: #008cff; }
.btn-venmo:hover, .btn-venmo:focus-visible { background: #0074d4; border-color: #0074d4; color: #fff; }

/* Responsive fixes (phone) */
@media (max-width: 719px) {
  .hero-copy-v2 h1.slogan { font-size: clamp(1.3rem, 6.2vw, 1.6rem) !important; }
  #career-page-title .hl { display: block !important; }
  #career-page-title .hl + .hl::before { content: none; }
  #career-page-title { overflow-wrap: anywhere; }
  iframe { max-width: 100%; }
}
